@digital8/lighting-illusions-ts-sdk 0.0.1913 → 0.0.1914

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (473) hide show
  1. package/.openapi-generator/FILES +2 -140
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +4 -98
  4. package/dist/apis/AdminApi.d.ts +2 -1
  5. package/dist/apis/AdminApi.js +8 -7
  6. package/dist/apis/AssetApi.d.ts +6 -1
  7. package/dist/apis/AssetApi.js +15 -10
  8. package/dist/apis/AttributeApi.d.ts +22 -1
  9. package/dist/apis/AttributeApi.js +63 -42
  10. package/dist/apis/DefinitionApi.d.ts +8 -1
  11. package/dist/apis/DefinitionApi.js +21 -14
  12. package/dist/apis/DocumentApi.d.ts +12 -1
  13. package/dist/apis/DocumentApi.js +33 -22
  14. package/dist/apis/ExternalApiLogApi.d.ts +4 -1
  15. package/dist/apis/ExternalApiLogApi.js +8 -5
  16. package/dist/apis/GoogleCategoryApi.d.ts +2 -1
  17. package/dist/apis/GoogleCategoryApi.js +4 -3
  18. package/dist/apis/LabelApi.d.ts +6 -1
  19. package/dist/apis/LabelApi.js +19 -14
  20. package/dist/apis/MenuApi.d.ts +8 -1
  21. package/dist/apis/MenuApi.js +21 -14
  22. package/dist/apis/MenuItemsApi.d.ts +9 -1
  23. package/dist/apis/MenuItemsApi.js +24 -16
  24. package/dist/apis/OverlayTemplateApi.d.ts +14 -1
  25. package/dist/apis/OverlayTemplateApi.js +46 -33
  26. package/dist/apis/ProductApi.d.ts +23 -1
  27. package/dist/apis/ProductApi.js +79 -57
  28. package/dist/apis/ProductCategoryApi.d.ts +15 -1
  29. package/dist/apis/ProductCategoryApi.js +46 -32
  30. package/dist/apis/ProductRangeApi.d.ts +16 -1
  31. package/dist/apis/ProductRangeApi.js +59 -44
  32. package/dist/apis/ProductRegistrationApi.d.ts +9 -1
  33. package/dist/apis/ProductRegistrationApi.js +21 -13
  34. package/dist/apis/ProductTypeApi.d.ts +9 -1
  35. package/dist/apis/ProductTypeApi.js +31 -23
  36. package/dist/apis/RedirectApi.d.ts +2 -1
  37. package/dist/apis/RedirectApi.js +4 -3
  38. package/dist/apis/SiteApi.d.ts +11 -1
  39. package/dist/apis/SiteApi.js +29 -19
  40. package/dist/apis/StoreApi.d.ts +12 -1
  41. package/dist/apis/StoreApi.js +41 -30
  42. package/dist/apis/SupplierApi.d.ts +10 -1
  43. package/dist/apis/SupplierApi.js +31 -22
  44. package/dist/apis/TagApi.d.ts +9 -1
  45. package/dist/apis/TagApi.js +28 -20
  46. package/dist/apis/index.d.ts +0 -4
  47. package/dist/apis/index.js +0 -4
  48. package/dist/models/AddressFrontendResource.d.ts +1 -1
  49. package/dist/models/AddressFrontendResource.js +1 -3
  50. package/dist/models/AddressResource.d.ts +1 -19
  51. package/dist/models/AddressResource.js +1 -13
  52. package/dist/models/AssetFrontendResource.d.ts +12 -0
  53. package/dist/models/AssetFrontendResource.js +6 -0
  54. package/dist/models/AssetLiteResource.d.ts +14 -2
  55. package/dist/models/AssetLiteResource.js +6 -0
  56. package/dist/models/AssetResource.d.ts +14 -2
  57. package/dist/models/AssetResource.js +6 -0
  58. package/dist/models/AssetWithOverlayLinkResource.d.ts +14 -2
  59. package/dist/models/AssetWithOverlayLinkResource.js +6 -0
  60. package/dist/models/ExternalApiSyncStatus.d.ts +1 -0
  61. package/dist/models/ExternalApiSyncStatus.js +2 -1
  62. package/dist/models/MenuPosition.d.ts +0 -1
  63. package/dist/models/MenuPosition.js +1 -2
  64. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +0 -7
  65. package/dist/models/ProductChildSiteDetailLiteResource.js +0 -5
  66. package/dist/models/SitePaymentConfigResource.d.ts +0 -6
  67. package/dist/models/SitePaymentConfigResource.js +0 -4
  68. package/dist/models/StoreAssetForAssetableRequest.d.ts +14 -2
  69. package/dist/models/StoreAssetForAssetableRequest.js +6 -6
  70. package/dist/models/StoreListResource.d.ts +14 -2
  71. package/dist/models/StoreListResource.js +12 -8
  72. package/dist/models/StoreMenuRequest.d.ts +0 -1
  73. package/dist/models/StoreMenuRequest.js +1 -2
  74. package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +14 -2
  75. package/dist/models/StoreOverlayTemplateAssetRequest.js +6 -6
  76. package/dist/models/StoreProductCategoryRequest.d.ts +12 -0
  77. package/dist/models/StoreProductCategoryRequest.js +4 -0
  78. package/dist/models/StoreProductChildRequestAssetsInner.d.ts +14 -2
  79. package/dist/models/StoreProductChildRequestAssetsInner.js +6 -6
  80. package/dist/models/StoreResource.d.ts +13 -1
  81. package/dist/models/StoreResource.js +14 -8
  82. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  83. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  84. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  85. package/dist/models/StoreSpecialDateResource.js +5 -7
  86. package/dist/models/StoreStockType.d.ts +25 -0
  87. package/dist/models/StoreStockType.js +51 -0
  88. package/dist/models/StoreStoreRequest.d.ts +12 -0
  89. package/dist/models/StoreStoreRequest.js +4 -0
  90. package/dist/models/StoreStoreRequestAddress.d.ts +0 -6
  91. package/dist/models/StoreStoreRequestAddress.js +0 -2
  92. package/dist/models/StoreSupplierRequest.d.ts +14 -2
  93. package/dist/models/StoreSupplierRequest.js +6 -6
  94. package/dist/models/UpdateAssetForAssetableRequest.d.ts +12 -0
  95. package/dist/models/UpdateAssetForAssetableRequest.js +4 -0
  96. package/dist/models/UpdateMenuRequest.d.ts +0 -1
  97. package/dist/models/UpdateMenuRequest.js +1 -2
  98. package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +14 -2
  99. package/dist/models/UpdateOverlayTemplateAssetRequest.js +6 -6
  100. package/dist/models/UpdateProductCategoryRequest.d.ts +12 -0
  101. package/dist/models/UpdateProductCategoryRequest.js +4 -0
  102. package/dist/models/UpdateProductChildRequestAssetsInner.d.ts +14 -2
  103. package/dist/models/UpdateProductChildRequestAssetsInner.js +6 -6
  104. package/dist/models/UpdateSiteRequest.d.ts +0 -6
  105. package/dist/models/UpdateSiteRequest.js +0 -4
  106. package/dist/models/UpdateStoreRequest.d.ts +12 -0
  107. package/dist/models/UpdateStoreRequest.js +4 -0
  108. package/dist/models/UpdateSupplierRequest.d.ts +14 -2
  109. package/dist/models/UpdateSupplierRequest.js +6 -6
  110. package/dist/models/index.d.ts +1 -66
  111. package/dist/models/index.js +1 -66
  112. package/dist/runtime.js +1 -1
  113. package/docs/AddressResource.md +0 -6
  114. package/docs/AssetFrontendResource.md +4 -0
  115. package/docs/AssetLiteResource.md +5 -1
  116. package/docs/AssetResource.md +5 -1
  117. package/docs/AssetWithOverlayLinkResource.md +5 -1
  118. package/docs/ProductChildSiteDetailLiteResource.md +0 -2
  119. package/docs/SitePaymentConfigResource.md +0 -2
  120. package/docs/StoreAssetForAssetableRequest.md +4 -0
  121. package/docs/StoreListResource.md +4 -0
  122. package/docs/StoreOverlayTemplateAssetRequest.md +4 -0
  123. package/docs/StoreProductCategoryRequest.md +4 -0
  124. package/docs/StoreProductChildRequestAssetsInner.md +4 -0
  125. package/docs/StoreResource.md +4 -0
  126. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  127. package/docs/StoreSpecialDateResource.md +1 -1
  128. package/docs/{AddressType.md → StoreStockType.md} +4 -4
  129. package/docs/StoreStoreRequest.md +4 -0
  130. package/docs/StoreStoreRequestAddress.md +0 -2
  131. package/docs/StoreSupplierRequest.md +4 -0
  132. package/docs/UpdateAssetForAssetableRequest.md +4 -0
  133. package/docs/UpdateOverlayTemplateAssetRequest.md +4 -0
  134. package/docs/UpdateProductCategoryRequest.md +4 -0
  135. package/docs/UpdateProductChildRequestAssetsInner.md +4 -0
  136. package/docs/UpdateSiteRequest.md +0 -2
  137. package/docs/UpdateStoreRequest.md +4 -0
  138. package/docs/UpdateSupplierRequest.md +4 -0
  139. package/package.json +1 -1
  140. package/src/apis/AdminApi.ts +5 -6
  141. package/src/apis/AssetApi.ts +19 -12
  142. package/src/apis/AttributeApi.ts +75 -36
  143. package/src/apis/DefinitionApi.ts +26 -15
  144. package/src/apis/DocumentApi.ts +40 -21
  145. package/src/apis/ExternalApiLogApi.ts +11 -8
  146. package/src/apis/GoogleCategoryApi.ts +5 -6
  147. package/src/apis/LabelApi.ts +20 -13
  148. package/src/apis/MenuApi.ts +26 -15
  149. package/src/apis/MenuItemsApi.ts +29 -16
  150. package/src/apis/OverlayTemplateApi.ts +51 -28
  151. package/src/apis/ProductApi.ts +86 -45
  152. package/src/apis/ProductCategoryApi.ts +52 -27
  153. package/src/apis/ProductRangeApi.ts +60 -33
  154. package/src/apis/ProductRegistrationApi.ts +29 -16
  155. package/src/apis/ProductTypeApi.ts +33 -20
  156. package/src/apis/RedirectApi.ts +5 -6
  157. package/src/apis/SiteApi.ts +36 -19
  158. package/src/apis/StoreApi.ts +45 -26
  159. package/src/apis/SupplierApi.ts +34 -19
  160. package/src/apis/TagApi.ts +32 -19
  161. package/src/apis/index.ts +0 -4
  162. package/src/models/AddressFrontendResource.ts +2 -3
  163. package/src/models/AddressResource.ts +2 -29
  164. package/src/models/AssetFrontendResource.ts +17 -0
  165. package/src/models/AssetLiteResource.ts +19 -2
  166. package/src/models/AssetResource.ts +19 -2
  167. package/src/models/AssetWithOverlayLinkResource.ts +19 -2
  168. package/src/models/ExternalApiSyncStatus.ts +2 -1
  169. package/src/models/MenuPosition.ts +1 -2
  170. package/src/models/ProductChildSiteDetailLiteResource.ts +0 -16
  171. package/src/models/SitePaymentConfigResource.ts +0 -9
  172. package/src/models/StoreAssetForAssetableRequest.ts +20 -6
  173. package/src/models/StoreListResource.ts +25 -9
  174. package/src/models/StoreMenuRequest.ts +1 -2
  175. package/src/models/StoreOverlayTemplateAssetRequest.ts +20 -6
  176. package/src/models/StoreProductCategoryRequest.ts +16 -0
  177. package/src/models/StoreProductChildRequestAssetsInner.ts +20 -6
  178. package/src/models/StoreResource.ts +26 -9
  179. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  180. package/src/models/StoreSpecialDateResource.ts +7 -8
  181. package/src/models/StoreStockType.ts +53 -0
  182. package/src/models/StoreStoreRequest.ts +16 -0
  183. package/src/models/StoreStoreRequestAddress.ts +0 -8
  184. package/src/models/StoreSupplierRequest.ts +20 -6
  185. package/src/models/UpdateAssetForAssetableRequest.ts +16 -0
  186. package/src/models/UpdateMenuRequest.ts +1 -2
  187. package/src/models/UpdateOverlayTemplateAssetRequest.ts +20 -6
  188. package/src/models/UpdateProductCategoryRequest.ts +16 -0
  189. package/src/models/UpdateProductChildRequestAssetsInner.ts +20 -6
  190. package/src/models/UpdateSiteRequest.ts +0 -9
  191. package/src/models/UpdateStoreRequest.ts +16 -0
  192. package/src/models/UpdateSupplierRequest.ts +20 -6
  193. package/src/models/index.ts +1 -66
  194. package/src/runtime.ts +1 -2
  195. package/dist/apis/CartsApi.d.ts +0 -205
  196. package/dist/apis/CartsApi.js +0 -804
  197. package/dist/apis/CustomersApi.d.ts +0 -79
  198. package/dist/apis/CustomersApi.js +0 -316
  199. package/dist/apis/OrdersApi.d.ts +0 -170
  200. package/dist/apis/OrdersApi.js +0 -678
  201. package/dist/apis/TransactionsApi.d.ts +0 -64
  202. package/dist/apis/TransactionsApi.js +0 -257
  203. package/dist/models/AddressType.d.ts +0 -25
  204. package/dist/models/AddressType.js +0 -51
  205. package/dist/models/AdminOrderResource.d.ts +0 -262
  206. package/dist/models/AdminOrderResource.js +0 -187
  207. package/dist/models/AdminOrderResourceArrayResponse.d.ts +0 -33
  208. package/dist/models/AdminOrderResourceArrayResponse.js +0 -50
  209. package/dist/models/AttachCouponCartRequest.d.ts +0 -32
  210. package/dist/models/AttachCouponCartRequest.js +0 -51
  211. package/dist/models/AttachItemCartRequest.d.ts +0 -44
  212. package/dist/models/AttachItemCartRequest.js +0 -57
  213. package/dist/models/AttachItemOrderRequest.d.ts +0 -44
  214. package/dist/models/AttachItemOrderRequest.js +0 -57
  215. package/dist/models/CartCouponResource.d.ts +0 -50
  216. package/dist/models/CartCouponResource.js +0 -63
  217. package/dist/models/CartCouponResourceArrayResponse.d.ts +0 -33
  218. package/dist/models/CartCouponResourceArrayResponse.js +0 -50
  219. package/dist/models/CartListResource.d.ts +0 -131
  220. package/dist/models/CartListResource.js +0 -104
  221. package/dist/models/CartListResourceArrayResponse.d.ts +0 -33
  222. package/dist/models/CartListResourceArrayResponse.js +0 -50
  223. package/dist/models/CartOrderSource.d.ts +0 -29
  224. package/dist/models/CartOrderSource.js +0 -55
  225. package/dist/models/CartResource.d.ts +0 -229
  226. package/dist/models/CartResource.js +0 -166
  227. package/dist/models/CartResourceArrayResponse.d.ts +0 -33
  228. package/dist/models/CartResourceArrayResponse.js +0 -50
  229. package/dist/models/CartStatus.d.ts +0 -26
  230. package/dist/models/CartStatus.js +0 -52
  231. package/dist/models/CustomerListResource.d.ts +0 -70
  232. package/dist/models/CustomerListResource.js +0 -75
  233. package/dist/models/CustomerListResourceArrayResponse.d.ts +0 -33
  234. package/dist/models/CustomerListResourceArrayResponse.js +0 -50
  235. package/dist/models/CustomerResource.d.ts +0 -70
  236. package/dist/models/CustomerResource.js +0 -75
  237. package/dist/models/CustomerResourceArrayResponse.d.ts +0 -33
  238. package/dist/models/CustomerResourceArrayResponse.js +0 -50
  239. package/dist/models/DetachCouponCartRequest.d.ts +0 -32
  240. package/dist/models/DetachCouponCartRequest.js +0 -51
  241. package/dist/models/DiscountType.d.ts +0 -26
  242. package/dist/models/DiscountType.js +0 -52
  243. package/dist/models/DiscountValueType.d.ts +0 -25
  244. package/dist/models/DiscountValueType.js +0 -51
  245. package/dist/models/GetAllOrderRequest.d.ts +0 -104
  246. package/dist/models/GetAllOrderRequest.js +0 -84
  247. package/dist/models/IndexCartRequest.d.ts +0 -154
  248. package/dist/models/IndexCartRequest.js +0 -105
  249. package/dist/models/IndexCustomerRequest.d.ts +0 -99
  250. package/dist/models/IndexCustomerRequest.js +0 -83
  251. package/dist/models/IndexOrderRequest.d.ts +0 -140
  252. package/dist/models/IndexOrderRequest.js +0 -96
  253. package/dist/models/IndexTransactionRequest.d.ts +0 -127
  254. package/dist/models/IndexTransactionRequest.js +0 -91
  255. package/dist/models/LiAddressResource.d.ts +0 -86
  256. package/dist/models/LiAddressResource.js +0 -83
  257. package/dist/models/LiAddressResourceArrayResponse.d.ts +0 -33
  258. package/dist/models/LiAddressResourceArrayResponse.js +0 -50
  259. package/dist/models/LineItemDiscountResource.d.ts +0 -50
  260. package/dist/models/LineItemDiscountResource.js +0 -63
  261. package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +0 -33
  262. package/dist/models/LineItemDiscountResourceArrayResponse.js +0 -50
  263. package/dist/models/LineItemListResource.d.ts +0 -82
  264. package/dist/models/LineItemListResource.js +0 -83
  265. package/dist/models/LineItemListResourceArrayResponse.d.ts +0 -33
  266. package/dist/models/LineItemListResourceArrayResponse.js +0 -50
  267. package/dist/models/OrderListResource.d.ts +0 -101
  268. package/dist/models/OrderListResource.js +0 -90
  269. package/dist/models/OrderListResourceArrayResponse.d.ts +0 -33
  270. package/dist/models/OrderListResourceArrayResponse.js +0 -50
  271. package/dist/models/OrderLiteResource.d.ts +0 -62
  272. package/dist/models/OrderLiteResource.js +0 -67
  273. package/dist/models/OrderLiteResourceArrayResponse.d.ts +0 -33
  274. package/dist/models/OrderLiteResourceArrayResponse.js +0 -50
  275. package/dist/models/PaginatedCartListResourceResponse.d.ts +0 -40
  276. package/dist/models/PaginatedCartListResourceResponse.js +0 -57
  277. package/dist/models/PaginatedCustomerListResourceResponse.d.ts +0 -40
  278. package/dist/models/PaginatedCustomerListResourceResponse.js +0 -57
  279. package/dist/models/PaginatedOrderListResourceResponse.d.ts +0 -40
  280. package/dist/models/PaginatedOrderListResourceResponse.js +0 -57
  281. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
  282. package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
  283. package/dist/models/PaginatedTransactionResourceResponse.d.ts +0 -40
  284. package/dist/models/PaginatedTransactionResourceResponse.js +0 -57
  285. package/dist/models/PaymentMethod.d.ts +0 -30
  286. package/dist/models/PaymentMethod.js +0 -56
  287. package/dist/models/PaymentSource.d.ts +0 -26
  288. package/dist/models/PaymentSource.js +0 -52
  289. package/dist/models/PaymentStatus.d.ts +0 -25
  290. package/dist/models/PaymentStatus.js +0 -51
  291. package/dist/models/ProductChildCartLiteResource.d.ts +0 -88
  292. package/dist/models/ProductChildCartLiteResource.js +0 -89
  293. package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
  294. package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
  295. package/dist/models/RefundTransactionRequest.d.ts +0 -38
  296. package/dist/models/RefundTransactionRequest.js +0 -53
  297. package/dist/models/ShippingType.d.ts +0 -28
  298. package/dist/models/ShippingType.js +0 -54
  299. package/dist/models/StoreCartRequest.d.ts +0 -160
  300. package/dist/models/StoreCartRequest.js +0 -112
  301. package/dist/models/StoreCartRequestCustomer.d.ts +0 -50
  302. package/dist/models/StoreCartRequestCustomer.js +0 -55
  303. package/dist/models/StoreCartRequestItemsInner.d.ts +0 -44
  304. package/dist/models/StoreCartRequestItemsInner.js +0 -57
  305. package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -80
  306. package/dist/models/StoreCartRequestShippingAddress.js +0 -65
  307. package/dist/models/StoreCustomerRequest.d.ts +0 -56
  308. package/dist/models/StoreCustomerRequest.js +0 -65
  309. package/dist/models/StoreTransactionRequest.d.ts +0 -81
  310. package/dist/models/StoreTransactionRequest.js +0 -78
  311. package/dist/models/TransactionListResource.d.ts +0 -152
  312. package/dist/models/TransactionListResource.js +0 -109
  313. package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
  314. package/dist/models/TransactionListResourceArrayResponse.js +0 -50
  315. package/dist/models/TransactionResource.d.ts +0 -152
  316. package/dist/models/TransactionResource.js +0 -109
  317. package/dist/models/TransactionResourceArrayResponse.d.ts +0 -33
  318. package/dist/models/TransactionResourceArrayResponse.js +0 -50
  319. package/dist/models/TransactionType.d.ts +0 -25
  320. package/dist/models/TransactionType.js +0 -51
  321. package/dist/models/UpdateCartRequest.d.ts +0 -135
  322. package/dist/models/UpdateCartRequest.js +0 -99
  323. package/dist/models/UpdateCustomerRequest.d.ts +0 -56
  324. package/dist/models/UpdateCustomerRequest.js +0 -63
  325. package/dist/models/UpdateItemCartRequest.d.ts +0 -38
  326. package/dist/models/UpdateItemCartRequest.js +0 -53
  327. package/dist/models/UpdateItemOrderRequest.d.ts +0 -38
  328. package/dist/models/UpdateItemOrderRequest.js +0 -53
  329. package/dist/models/UpdateOrderRequest.d.ts +0 -111
  330. package/dist/models/UpdateOrderRequest.js +0 -99
  331. package/dist/models/UpdateOrderRequestBillingAddress.d.ts +0 -80
  332. package/dist/models/UpdateOrderRequestBillingAddress.js +0 -67
  333. package/dist/models/UpdateOrderRequestShippingAddress.d.ts +0 -80
  334. package/dist/models/UpdateOrderRequestShippingAddress.js +0 -67
  335. package/docs/AdminOrderResource.md +0 -110
  336. package/docs/AdminOrderResourceArrayResponse.md +0 -34
  337. package/docs/AttachCouponCartRequest.md +0 -34
  338. package/docs/AttachItemCartRequest.md +0 -38
  339. package/docs/AttachItemOrderRequest.md +0 -38
  340. package/docs/CartCouponResource.md +0 -40
  341. package/docs/CartCouponResourceArrayResponse.md +0 -34
  342. package/docs/CartListResource.md +0 -66
  343. package/docs/CartListResourceArrayResponse.md +0 -34
  344. package/docs/CartOrderSource.md +0 -32
  345. package/docs/CartResource.md +0 -98
  346. package/docs/CartResourceArrayResponse.md +0 -34
  347. package/docs/CartStatus.md +0 -32
  348. package/docs/CartsApi.md +0 -821
  349. package/docs/CustomerListResource.md +0 -46
  350. package/docs/CustomerListResourceArrayResponse.md +0 -34
  351. package/docs/CustomerResource.md +0 -46
  352. package/docs/CustomerResourceArrayResponse.md +0 -34
  353. package/docs/CustomersApi.md +0 -275
  354. package/docs/DetachCouponCartRequest.md +0 -34
  355. package/docs/DiscountType.md +0 -32
  356. package/docs/DiscountValueType.md +0 -32
  357. package/docs/GetAllOrderRequest.md +0 -52
  358. package/docs/IndexCartRequest.md +0 -66
  359. package/docs/IndexCustomerRequest.md +0 -50
  360. package/docs/IndexOrderRequest.md +0 -64
  361. package/docs/IndexTransactionRequest.md +0 -60
  362. package/docs/LiAddressResource.md +0 -52
  363. package/docs/LiAddressResourceArrayResponse.md +0 -34
  364. package/docs/LineItemDiscountResource.md +0 -40
  365. package/docs/LineItemDiscountResourceArrayResponse.md +0 -34
  366. package/docs/LineItemListResource.md +0 -50
  367. package/docs/LineItemListResourceArrayResponse.md +0 -34
  368. package/docs/OrderListResource.md +0 -56
  369. package/docs/OrderListResourceArrayResponse.md +0 -34
  370. package/docs/OrderLiteResource.md +0 -44
  371. package/docs/OrderLiteResourceArrayResponse.md +0 -34
  372. package/docs/OrdersApi.md +0 -675
  373. package/docs/PaginatedCartListResourceResponse.md +0 -36
  374. package/docs/PaginatedCustomerListResourceResponse.md +0 -36
  375. package/docs/PaginatedOrderListResourceResponse.md +0 -36
  376. package/docs/PaginatedTransactionListResourceResponse.md +0 -36
  377. package/docs/PaginatedTransactionResourceResponse.md +0 -36
  378. package/docs/PaymentMethod.md +0 -32
  379. package/docs/PaymentSource.md +0 -32
  380. package/docs/PaymentStatus.md +0 -32
  381. package/docs/ProductChildCartLiteResource.md +0 -52
  382. package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
  383. package/docs/RefundTransactionRequest.md +0 -36
  384. package/docs/ShippingType.md +0 -32
  385. package/docs/StoreCartRequest.md +0 -68
  386. package/docs/StoreCartRequestCustomer.md +0 -40
  387. package/docs/StoreCartRequestItemsInner.md +0 -38
  388. package/docs/StoreCartRequestShippingAddress.md +0 -50
  389. package/docs/StoreCustomerRequest.md +0 -42
  390. package/docs/StoreTransactionRequest.md +0 -46
  391. package/docs/TransactionListResource.md +0 -74
  392. package/docs/TransactionListResourceArrayResponse.md +0 -34
  393. package/docs/TransactionResource.md +0 -74
  394. package/docs/TransactionResourceArrayResponse.md +0 -34
  395. package/docs/TransactionType.md +0 -32
  396. package/docs/TransactionsApi.md +0 -209
  397. package/docs/UpdateCartRequest.md +0 -60
  398. package/docs/UpdateCustomerRequest.md +0 -42
  399. package/docs/UpdateItemCartRequest.md +0 -36
  400. package/docs/UpdateItemOrderRequest.md +0 -36
  401. package/docs/UpdateOrderRequest.md +0 -52
  402. package/docs/UpdateOrderRequestBillingAddress.md +0 -50
  403. package/docs/UpdateOrderRequestShippingAddress.md +0 -50
  404. package/src/apis/CartsApi.ts +0 -676
  405. package/src/apis/CustomersApi.ts +0 -232
  406. package/src/apis/OrdersApi.ts +0 -552
  407. package/src/apis/TransactionsApi.ts +0 -186
  408. package/src/models/AddressType.ts +0 -53
  409. package/src/models/AdminOrderResource.ts +0 -414
  410. package/src/models/AdminOrderResourceArrayResponse.ts +0 -73
  411. package/src/models/AttachCouponCartRequest.ts +0 -66
  412. package/src/models/AttachItemCartRequest.ts +0 -83
  413. package/src/models/AttachItemOrderRequest.ts +0 -83
  414. package/src/models/CartCouponResource.ts +0 -93
  415. package/src/models/CartCouponResourceArrayResponse.ts +0 -73
  416. package/src/models/CartListResource.ts +0 -225
  417. package/src/models/CartListResourceArrayResponse.ts +0 -73
  418. package/src/models/CartOrderSource.ts +0 -57
  419. package/src/models/CartResource.ts +0 -381
  420. package/src/models/CartResourceArrayResponse.ts +0 -73
  421. package/src/models/CartStatus.ts +0 -54
  422. package/src/models/CustomerListResource.ts +0 -134
  423. package/src/models/CustomerListResourceArrayResponse.ts +0 -73
  424. package/src/models/CustomerResource.ts +0 -134
  425. package/src/models/CustomerResourceArrayResponse.ts +0 -73
  426. package/src/models/DetachCouponCartRequest.ts +0 -66
  427. package/src/models/DiscountType.ts +0 -54
  428. package/src/models/DiscountValueType.ts +0 -53
  429. package/src/models/GetAllOrderRequest.ts +0 -159
  430. package/src/models/IndexCartRequest.ts +0 -224
  431. package/src/models/IndexCustomerRequest.ts +0 -152
  432. package/src/models/IndexOrderRequest.ts +0 -207
  433. package/src/models/IndexTransactionRequest.ts +0 -190
  434. package/src/models/LiAddressResource.ts +0 -145
  435. package/src/models/LiAddressResourceArrayResponse.ts +0 -73
  436. package/src/models/LineItemDiscountResource.ts +0 -93
  437. package/src/models/LineItemDiscountResourceArrayResponse.ts +0 -73
  438. package/src/models/LineItemListResource.ts +0 -152
  439. package/src/models/LineItemListResourceArrayResponse.ts +0 -73
  440. package/src/models/OrderListResource.ts +0 -183
  441. package/src/models/OrderListResourceArrayResponse.ts +0 -73
  442. package/src/models/OrderLiteResource.ts +0 -109
  443. package/src/models/OrderLiteResourceArrayResponse.ts +0 -73
  444. package/src/models/PaginatedCartListResourceResponse.ts +0 -90
  445. package/src/models/PaginatedCustomerListResourceResponse.ts +0 -90
  446. package/src/models/PaginatedOrderListResourceResponse.ts +0 -90
  447. package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
  448. package/src/models/PaginatedTransactionResourceResponse.ts +0 -90
  449. package/src/models/PaymentMethod.ts +0 -58
  450. package/src/models/PaymentSource.ts +0 -54
  451. package/src/models/PaymentStatus.ts +0 -53
  452. package/src/models/ProductChildCartLiteResource.ts +0 -162
  453. package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
  454. package/src/models/RefundTransactionRequest.ts +0 -74
  455. package/src/models/ShippingType.ts +0 -56
  456. package/src/models/StoreCartRequest.ts +0 -252
  457. package/src/models/StoreCartRequestCustomer.ts +0 -89
  458. package/src/models/StoreCartRequestItemsInner.ts +0 -83
  459. package/src/models/StoreCartRequestShippingAddress.ts +0 -129
  460. package/src/models/StoreCustomerRequest.ts +0 -101
  461. package/src/models/StoreTransactionRequest.ts +0 -131
  462. package/src/models/TransactionListResource.ts +0 -235
  463. package/src/models/TransactionListResourceArrayResponse.ts +0 -73
  464. package/src/models/TransactionResource.ts +0 -235
  465. package/src/models/TransactionResourceArrayResponse.ts +0 -73
  466. package/src/models/TransactionType.ts +0 -53
  467. package/src/models/UpdateCartRequest.ts +0 -211
  468. package/src/models/UpdateCustomerRequest.ts +0 -100
  469. package/src/models/UpdateItemCartRequest.ts +0 -74
  470. package/src/models/UpdateItemOrderRequest.ts +0 -74
  471. package/src/models/UpdateOrderRequest.ts +0 -183
  472. package/src/models/UpdateOrderRequestBillingAddress.ts +0 -130
  473. package/src/models/UpdateOrderRequestShippingAddress.ts +0 -130
@@ -1,73 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { CartListResource } from './CartListResource';
17
- import {
18
- CartListResourceFromJSON,
19
- CartListResourceFromJSONTyped,
20
- CartListResourceToJSON,
21
- CartListResourceToJSONTyped,
22
- } from './CartListResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface CartListResourceArrayResponse
28
- */
29
- export interface CartListResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<CartListResource>}
33
- * @memberof CartListResourceArrayResponse
34
- */
35
- data?: Array<CartListResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the CartListResourceArrayResponse interface.
40
- */
41
- export function instanceOfCartListResourceArrayResponse(value: object): value is CartListResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function CartListResourceArrayResponseFromJSON(json: any): CartListResourceArrayResponse {
46
- return CartListResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function CartListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartListResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CartListResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function CartListResourceArrayResponseToJSON(json: any): CartListResourceArrayResponse {
60
- return CartListResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function CartListResourceArrayResponseToJSONTyped(value?: CartListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
- if (value == null) {
65
- return value;
66
- }
67
-
68
- return {
69
-
70
- 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(CartListResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,57 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- /**
17
- *
18
- * @export
19
- */
20
- export const CartOrderSource = {
21
- Checkout: 'checkout',
22
- Admin: 'admin',
23
- Phone: 'phone',
24
- Email: 'email',
25
- Ebay: 'ebay',
26
- InStore: 'in_store'
27
- } as const;
28
- export type CartOrderSource = typeof CartOrderSource[keyof typeof CartOrderSource];
29
-
30
-
31
- export function instanceOfCartOrderSource(value: any): boolean {
32
- for (const key in CartOrderSource) {
33
- if (Object.prototype.hasOwnProperty.call(CartOrderSource, key)) {
34
- if (CartOrderSource[key as keyof typeof CartOrderSource] === value) {
35
- return true;
36
- }
37
- }
38
- }
39
- return false;
40
- }
41
-
42
- export function CartOrderSourceFromJSON(json: any): CartOrderSource {
43
- return CartOrderSourceFromJSONTyped(json, false);
44
- }
45
-
46
- export function CartOrderSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartOrderSource {
47
- return json as CartOrderSource;
48
- }
49
-
50
- export function CartOrderSourceToJSON(value?: CartOrderSource | null): any {
51
- return value as any;
52
- }
53
-
54
- export function CartOrderSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): CartOrderSource {
55
- return value as CartOrderSource;
56
- }
57
-
@@ -1,381 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { SiteLiteResource } from './SiteLiteResource';
17
- import {
18
- SiteLiteResourceFromJSON,
19
- SiteLiteResourceFromJSONTyped,
20
- SiteLiteResourceToJSON,
21
- SiteLiteResourceToJSONTyped,
22
- } from './SiteLiteResource';
23
- import type { LineItemListResource } from './LineItemListResource';
24
- import {
25
- LineItemListResourceFromJSON,
26
- LineItemListResourceFromJSONTyped,
27
- LineItemListResourceToJSON,
28
- LineItemListResourceToJSONTyped,
29
- } from './LineItemListResource';
30
- import type { CartCouponResource } from './CartCouponResource';
31
- import {
32
- CartCouponResourceFromJSON,
33
- CartCouponResourceFromJSONTyped,
34
- CartCouponResourceToJSON,
35
- CartCouponResourceToJSONTyped,
36
- } from './CartCouponResource';
37
- import type { CustomerListResource } from './CustomerListResource';
38
- import {
39
- CustomerListResourceFromJSON,
40
- CustomerListResourceFromJSONTyped,
41
- CustomerListResourceToJSON,
42
- CustomerListResourceToJSONTyped,
43
- } from './CustomerListResource';
44
- import type { AddressResource } from './AddressResource';
45
- import {
46
- AddressResourceFromJSON,
47
- AddressResourceFromJSONTyped,
48
- AddressResourceToJSON,
49
- AddressResourceToJSONTyped,
50
- } from './AddressResource';
51
-
52
- /**
53
- *
54
- * @export
55
- * @interface CartResource
56
- */
57
- export interface CartResource {
58
- /**
59
- *
60
- * @type {number}
61
- * @memberof CartResource
62
- */
63
- id?: number | null;
64
- /**
65
- *
66
- * @type {string}
67
- * @memberof CartResource
68
- */
69
- guestEmail?: string | null;
70
- /**
71
- *
72
- * @type {string}
73
- * @memberof CartResource
74
- */
75
- source: string;
76
- /**
77
- *
78
- * @type {string}
79
- * @memberof CartResource
80
- */
81
- sessionToken?: string | null;
82
- /**
83
- *
84
- * @type {string}
85
- * @memberof CartResource
86
- */
87
- paymentToken?: string | null;
88
- /**
89
- *
90
- * @type {Date}
91
- * @memberof CartResource
92
- */
93
- expiryDate: Date;
94
- /**
95
- *
96
- * @type {Date}
97
- * @memberof CartResource
98
- */
99
- checkoutCompletedAt?: Date | null;
100
- /**
101
- *
102
- * @type {Date}
103
- * @memberof CartResource
104
- */
105
- createdAt?: Date | null;
106
- /**
107
- *
108
- * @type {Date}
109
- * @memberof CartResource
110
- */
111
- updatedAt?: Date | null;
112
- /**
113
- *
114
- * @type {string}
115
- * @memberof CartResource
116
- */
117
- shippingType: string;
118
- /**
119
- *
120
- * @type {number}
121
- * @memberof CartResource
122
- */
123
- shippingSubtotal?: number | null;
124
- /**
125
- *
126
- * @type {boolean}
127
- * @memberof CartResource
128
- */
129
- overrideShipping: boolean;
130
- /**
131
- *
132
- * @type {string}
133
- * @memberof CartResource
134
- */
135
- insuranceSubtotal?: string | null;
136
- /**
137
- *
138
- * @type {boolean}
139
- * @memberof CartResource
140
- */
141
- overrideInsurance: boolean;
142
- /**
143
- *
144
- * @type {boolean}
145
- * @memberof CartResource
146
- */
147
- useAsBillingAddress: boolean;
148
- /**
149
- *
150
- * @type {object}
151
- * @memberof CartResource
152
- */
153
- admin: object;
154
- /**
155
- *
156
- * @type {SiteLiteResource}
157
- * @memberof CartResource
158
- */
159
- site: SiteLiteResource | null;
160
- /**
161
- *
162
- * @type {CustomerListResource}
163
- * @memberof CartResource
164
- */
165
- customer: CustomerListResource | null;
166
- /**
167
- *
168
- * @type {Array<LineItemListResource>}
169
- * @memberof CartResource
170
- */
171
- lineItems: Array<LineItemListResource> | null;
172
- /**
173
- *
174
- * @type {Array<CartCouponResource>}
175
- * @memberof CartResource
176
- */
177
- coupons: Array<CartCouponResource> | null;
178
- /**
179
- *
180
- * @type {AddressResource}
181
- * @memberof CartResource
182
- */
183
- shippingAddress: AddressResource | null;
184
- /**
185
- *
186
- * @type {AddressResource}
187
- * @memberof CartResource
188
- */
189
- billingAddress: AddressResource | null;
190
- /**
191
- *
192
- * @type {number}
193
- * @memberof CartResource
194
- */
195
- discountPreview: number;
196
- /**
197
- *
198
- * @type {number}
199
- * @memberof CartResource
200
- */
201
- subtotal: number;
202
- /**
203
- *
204
- * @type {number}
205
- * @memberof CartResource
206
- */
207
- shippingAmount: number;
208
- /**
209
- *
210
- * @type {number}
211
- * @memberof CartResource
212
- */
213
- insuranceAmount: number;
214
- /**
215
- *
216
- * @type {number}
217
- * @memberof CartResource
218
- */
219
- total: number;
220
- /**
221
- *
222
- * @type {number}
223
- * @memberof CartResource
224
- */
225
- discountAmount: number;
226
- /**
227
- *
228
- * @type {number}
229
- * @memberof CartResource
230
- */
231
- productDiscountAmount: number;
232
- /**
233
- *
234
- * @type {number}
235
- * @memberof CartResource
236
- */
237
- shippingDiscountAmount: number;
238
- /**
239
- *
240
- * @type {number}
241
- * @memberof CartResource
242
- */
243
- subtotalDiscountAmount: number;
244
- /**
245
- *
246
- * @type {number}
247
- * @memberof CartResource
248
- */
249
- finalTotalAmount: number;
250
- /**
251
- *
252
- * @type {string}
253
- * @memberof CartResource
254
- */
255
- status: string;
256
- }
257
-
258
- /**
259
- * Check if a given object implements the CartResource interface.
260
- */
261
- export function instanceOfCartResource(value: object): value is CartResource {
262
- if (!('source' in value) || value['source'] === undefined) return false;
263
- if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
264
- if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
265
- if (!('overrideShipping' in value) || value['overrideShipping'] === undefined) return false;
266
- if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined) return false;
267
- if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
268
- if (!('admin' in value) || value['admin'] === undefined) return false;
269
- if (!('site' in value) || value['site'] === undefined) return false;
270
- if (!('customer' in value) || value['customer'] === undefined) return false;
271
- if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
272
- if (!('coupons' in value) || value['coupons'] === undefined) return false;
273
- if (!('shippingAddress' in value) || value['shippingAddress'] === undefined) return false;
274
- if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
275
- if (!('discountPreview' in value) || value['discountPreview'] === undefined) return false;
276
- if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
277
- if (!('shippingAmount' in value) || value['shippingAmount'] === undefined) return false;
278
- if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined) return false;
279
- if (!('total' in value) || value['total'] === undefined) return false;
280
- if (!('discountAmount' in value) || value['discountAmount'] === undefined) return false;
281
- if (!('productDiscountAmount' in value) || value['productDiscountAmount'] === undefined) return false;
282
- if (!('shippingDiscountAmount' in value) || value['shippingDiscountAmount'] === undefined) return false;
283
- if (!('subtotalDiscountAmount' in value) || value['subtotalDiscountAmount'] === undefined) return false;
284
- if (!('finalTotalAmount' in value) || value['finalTotalAmount'] === undefined) return false;
285
- if (!('status' in value) || value['status'] === undefined) return false;
286
- return true;
287
- }
288
-
289
- export function CartResourceFromJSON(json: any): CartResource {
290
- return CartResourceFromJSONTyped(json, false);
291
- }
292
-
293
- export function CartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartResource {
294
- if (json == null) {
295
- return json;
296
- }
297
- return {
298
-
299
- 'id': json['id'] == null ? undefined : json['id'],
300
- 'guestEmail': json['guest_email'] == null ? undefined : json['guest_email'],
301
- 'source': json['source'],
302
- 'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
303
- 'paymentToken': json['payment_token'] == null ? undefined : json['payment_token'],
304
- 'expiryDate': (new Date(json['expiry_date'])),
305
- 'checkoutCompletedAt': json['checkout_completed_at'] == null ? undefined : (new Date(json['checkout_completed_at'])),
306
- 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
307
- 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
308
- 'shippingType': json['shipping_type'],
309
- 'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
310
- 'overrideShipping': json['override_shipping'],
311
- 'insuranceSubtotal': json['insurance_subtotal'] == null ? undefined : json['insurance_subtotal'],
312
- 'overrideInsurance': json['override_insurance'],
313
- 'useAsBillingAddress': json['use_as_billing_address'],
314
- 'admin': json['admin'],
315
- 'site': SiteLiteResourceFromJSON(json['site']),
316
- 'customer': CustomerListResourceFromJSON(json['customer']),
317
- 'lineItems': (json['line_items'] == null ? null : (json['line_items'] as Array<any>).map(LineItemListResourceFromJSON)),
318
- 'coupons': (json['coupons'] == null ? null : (json['coupons'] as Array<any>).map(CartCouponResourceFromJSON)),
319
- 'shippingAddress': AddressResourceFromJSON(json['shipping_address']),
320
- 'billingAddress': AddressResourceFromJSON(json['billing_address']),
321
- 'discountPreview': json['discount_preview'],
322
- 'subtotal': json['subtotal'],
323
- 'shippingAmount': json['shipping_amount'],
324
- 'insuranceAmount': json['insurance_amount'],
325
- 'total': json['total'],
326
- 'discountAmount': json['discount_amount'],
327
- 'productDiscountAmount': json['product_discount_amount'],
328
- 'shippingDiscountAmount': json['shipping_discount_amount'],
329
- 'subtotalDiscountAmount': json['subtotal_discount_amount'],
330
- 'finalTotalAmount': json['final_total_amount'],
331
- 'status': json['status'],
332
- };
333
- }
334
-
335
- export function CartResourceToJSON(json: any): CartResource {
336
- return CartResourceToJSONTyped(json, false);
337
- }
338
-
339
- export function CartResourceToJSONTyped(value?: CartResource | null, ignoreDiscriminator: boolean = false): any {
340
- if (value == null) {
341
- return value;
342
- }
343
-
344
- return {
345
-
346
- 'id': value['id'],
347
- 'guest_email': value['guestEmail'],
348
- 'source': value['source'],
349
- 'session_token': value['sessionToken'],
350
- 'payment_token': value['paymentToken'],
351
- 'expiry_date': value['expiryDate'].toISOString(),
352
- 'checkout_completed_at': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
353
- 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
354
- 'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
355
- 'shipping_type': value['shippingType'],
356
- 'shipping_subtotal': value['shippingSubtotal'],
357
- 'override_shipping': value['overrideShipping'],
358
- 'insurance_subtotal': value['insuranceSubtotal'],
359
- 'override_insurance': value['overrideInsurance'],
360
- 'use_as_billing_address': value['useAsBillingAddress'],
361
- 'admin': value['admin'],
362
- 'site': SiteLiteResourceToJSON(value['site']),
363
- 'customer': CustomerListResourceToJSON(value['customer']),
364
- 'line_items': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
365
- 'coupons': (value['coupons'] == null ? null : (value['coupons'] as Array<any>).map(CartCouponResourceToJSON)),
366
- 'shipping_address': AddressResourceToJSON(value['shippingAddress']),
367
- 'billing_address': AddressResourceToJSON(value['billingAddress']),
368
- 'discount_preview': value['discountPreview'],
369
- 'subtotal': value['subtotal'],
370
- 'shipping_amount': value['shippingAmount'],
371
- 'insurance_amount': value['insuranceAmount'],
372
- 'total': value['total'],
373
- 'discount_amount': value['discountAmount'],
374
- 'product_discount_amount': value['productDiscountAmount'],
375
- 'shipping_discount_amount': value['shippingDiscountAmount'],
376
- 'subtotal_discount_amount': value['subtotalDiscountAmount'],
377
- 'final_total_amount': value['finalTotalAmount'],
378
- 'status': value['status'],
379
- };
380
- }
381
-
@@ -1,73 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { CartResource } from './CartResource';
17
- import {
18
- CartResourceFromJSON,
19
- CartResourceFromJSONTyped,
20
- CartResourceToJSON,
21
- CartResourceToJSONTyped,
22
- } from './CartResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface CartResourceArrayResponse
28
- */
29
- export interface CartResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<CartResource>}
33
- * @memberof CartResourceArrayResponse
34
- */
35
- data?: Array<CartResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the CartResourceArrayResponse interface.
40
- */
41
- export function instanceOfCartResourceArrayResponse(value: object): value is CartResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function CartResourceArrayResponseFromJSON(json: any): CartResourceArrayResponse {
46
- return CartResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function CartResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CartResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function CartResourceArrayResponseToJSON(json: any): CartResourceArrayResponse {
60
- return CartResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function CartResourceArrayResponseToJSONTyped(value?: CartResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
- if (value == null) {
65
- return value;
66
- }
67
-
68
- return {
69
-
70
- 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(CartResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,54 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- /**
17
- *
18
- * @export
19
- */
20
- export const CartStatus = {
21
- Completed: 'completed',
22
- Active: 'active',
23
- Expired: 'expired'
24
- } as const;
25
- export type CartStatus = typeof CartStatus[keyof typeof CartStatus];
26
-
27
-
28
- export function instanceOfCartStatus(value: any): boolean {
29
- for (const key in CartStatus) {
30
- if (Object.prototype.hasOwnProperty.call(CartStatus, key)) {
31
- if (CartStatus[key as keyof typeof CartStatus] === value) {
32
- return true;
33
- }
34
- }
35
- }
36
- return false;
37
- }
38
-
39
- export function CartStatusFromJSON(json: any): CartStatus {
40
- return CartStatusFromJSONTyped(json, false);
41
- }
42
-
43
- export function CartStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartStatus {
44
- return json as CartStatus;
45
- }
46
-
47
- export function CartStatusToJSON(value?: CartStatus | null): any {
48
- return value as any;
49
- }
50
-
51
- export function CartStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): CartStatus {
52
- return value as CartStatus;
53
- }
54
-