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

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 (477) 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 +2 -2
  49. package/dist/models/AddressFrontendResource.js +4 -4
  50. package/dist/models/AddressResource.d.ts +0 -18
  51. package/dist/models/AddressResource.js +0 -10
  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/ExternalApiLogResource.d.ts +1 -1
  61. package/dist/models/ExternalApiLogResource.js +3 -1
  62. package/dist/models/ExternalApiSyncStatus.d.ts +1 -0
  63. package/dist/models/ExternalApiSyncStatus.js +2 -1
  64. package/dist/models/MenuPosition.d.ts +0 -1
  65. package/dist/models/MenuPosition.js +1 -2
  66. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +0 -7
  67. package/dist/models/ProductChildSiteDetailLiteResource.js +0 -5
  68. package/dist/models/SitePaymentConfigResource.d.ts +0 -6
  69. package/dist/models/SitePaymentConfigResource.js +0 -4
  70. package/dist/models/StoreAssetForAssetableRequest.d.ts +14 -2
  71. package/dist/models/StoreAssetForAssetableRequest.js +6 -6
  72. package/dist/models/StoreFrontendResource.d.ts +2 -2
  73. package/dist/models/StoreFrontendResource.js +2 -6
  74. package/dist/models/StoreListResource.d.ts +14 -2
  75. package/dist/models/StoreListResource.js +12 -8
  76. package/dist/models/StoreMenuRequest.d.ts +0 -1
  77. package/dist/models/StoreMenuRequest.js +1 -2
  78. package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +14 -2
  79. package/dist/models/StoreOverlayTemplateAssetRequest.js +6 -6
  80. package/dist/models/StoreProductCategoryRequest.d.ts +12 -0
  81. package/dist/models/StoreProductCategoryRequest.js +4 -0
  82. package/dist/models/StoreProductChildRequestAssetsInner.d.ts +14 -2
  83. package/dist/models/StoreProductChildRequestAssetsInner.js +6 -6
  84. package/dist/models/StoreResource.d.ts +12 -0
  85. package/dist/models/StoreResource.js +14 -6
  86. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  87. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  88. package/dist/models/StoreSpecialDateResource.js +4 -4
  89. package/dist/models/StoreStockType.d.ts +25 -0
  90. package/dist/models/StoreStockType.js +51 -0
  91. package/dist/models/StoreStoreRequest.d.ts +12 -0
  92. package/dist/models/StoreStoreRequest.js +4 -0
  93. package/dist/models/StoreStoreRequestAddress.d.ts +0 -6
  94. package/dist/models/StoreStoreRequestAddress.js +0 -2
  95. package/dist/models/StoreSupplierRequest.d.ts +14 -2
  96. package/dist/models/StoreSupplierRequest.js +6 -6
  97. package/dist/models/UpdateAssetForAssetableRequest.d.ts +12 -0
  98. package/dist/models/UpdateAssetForAssetableRequest.js +4 -0
  99. package/dist/models/UpdateMenuRequest.d.ts +0 -1
  100. package/dist/models/UpdateMenuRequest.js +1 -2
  101. package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +14 -2
  102. package/dist/models/UpdateOverlayTemplateAssetRequest.js +6 -6
  103. package/dist/models/UpdateProductCategoryRequest.d.ts +12 -0
  104. package/dist/models/UpdateProductCategoryRequest.js +4 -0
  105. package/dist/models/UpdateProductChildRequestAssetsInner.d.ts +14 -2
  106. package/dist/models/UpdateProductChildRequestAssetsInner.js +6 -6
  107. package/dist/models/UpdateSiteRequest.d.ts +0 -6
  108. package/dist/models/UpdateSiteRequest.js +0 -4
  109. package/dist/models/UpdateStoreRequest.d.ts +12 -0
  110. package/dist/models/UpdateStoreRequest.js +4 -0
  111. package/dist/models/UpdateSupplierRequest.d.ts +14 -2
  112. package/dist/models/UpdateSupplierRequest.js +6 -6
  113. package/dist/models/index.d.ts +1 -66
  114. package/dist/models/index.js +1 -66
  115. package/dist/runtime.js +1 -1
  116. package/docs/AddressResource.md +0 -6
  117. package/docs/AssetFrontendResource.md +4 -0
  118. package/docs/AssetLiteResource.md +5 -1
  119. package/docs/AssetResource.md +5 -1
  120. package/docs/AssetWithOverlayLinkResource.md +5 -1
  121. package/docs/ProductChildSiteDetailLiteResource.md +0 -2
  122. package/docs/SitePaymentConfigResource.md +0 -2
  123. package/docs/StoreAssetForAssetableRequest.md +4 -0
  124. package/docs/StoreListResource.md +4 -0
  125. package/docs/StoreOverlayTemplateAssetRequest.md +4 -0
  126. package/docs/StoreProductCategoryRequest.md +4 -0
  127. package/docs/StoreProductChildRequestAssetsInner.md +4 -0
  128. package/docs/StoreResource.md +4 -0
  129. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  130. package/docs/{AddressType.md → StoreStockType.md} +4 -4
  131. package/docs/StoreStoreRequest.md +4 -0
  132. package/docs/StoreStoreRequestAddress.md +0 -2
  133. package/docs/StoreSupplierRequest.md +4 -0
  134. package/docs/UpdateAssetForAssetableRequest.md +4 -0
  135. package/docs/UpdateOverlayTemplateAssetRequest.md +4 -0
  136. package/docs/UpdateProductCategoryRequest.md +4 -0
  137. package/docs/UpdateProductChildRequestAssetsInner.md +4 -0
  138. package/docs/UpdateSiteRequest.md +0 -2
  139. package/docs/UpdateStoreRequest.md +4 -0
  140. package/docs/UpdateSupplierRequest.md +4 -0
  141. package/package.json +1 -1
  142. package/src/apis/AdminApi.ts +5 -6
  143. package/src/apis/AssetApi.ts +19 -12
  144. package/src/apis/AttributeApi.ts +75 -36
  145. package/src/apis/DefinitionApi.ts +26 -15
  146. package/src/apis/DocumentApi.ts +40 -21
  147. package/src/apis/ExternalApiLogApi.ts +11 -8
  148. package/src/apis/GoogleCategoryApi.ts +5 -6
  149. package/src/apis/LabelApi.ts +20 -13
  150. package/src/apis/MenuApi.ts +26 -15
  151. package/src/apis/MenuItemsApi.ts +29 -16
  152. package/src/apis/OverlayTemplateApi.ts +51 -28
  153. package/src/apis/ProductApi.ts +86 -45
  154. package/src/apis/ProductCategoryApi.ts +52 -27
  155. package/src/apis/ProductRangeApi.ts +60 -33
  156. package/src/apis/ProductRegistrationApi.ts +29 -16
  157. package/src/apis/ProductTypeApi.ts +33 -20
  158. package/src/apis/RedirectApi.ts +5 -6
  159. package/src/apis/SiteApi.ts +36 -19
  160. package/src/apis/StoreApi.ts +45 -26
  161. package/src/apis/SupplierApi.ts +34 -19
  162. package/src/apis/TagApi.ts +32 -19
  163. package/src/apis/index.ts +0 -4
  164. package/src/models/AddressFrontendResource.ts +5 -5
  165. package/src/models/AddressResource.ts +0 -26
  166. package/src/models/AssetFrontendResource.ts +17 -0
  167. package/src/models/AssetLiteResource.ts +19 -2
  168. package/src/models/AssetResource.ts +19 -2
  169. package/src/models/AssetWithOverlayLinkResource.ts +19 -2
  170. package/src/models/ExternalApiLogResource.ts +3 -2
  171. package/src/models/ExternalApiSyncStatus.ts +2 -1
  172. package/src/models/MenuPosition.ts +1 -2
  173. package/src/models/ProductChildSiteDetailLiteResource.ts +0 -16
  174. package/src/models/SitePaymentConfigResource.ts +0 -9
  175. package/src/models/StoreAssetForAssetableRequest.ts +20 -6
  176. package/src/models/StoreFrontendResource.ts +4 -6
  177. package/src/models/StoreListResource.ts +25 -9
  178. package/src/models/StoreMenuRequest.ts +1 -2
  179. package/src/models/StoreOverlayTemplateAssetRequest.ts +20 -6
  180. package/src/models/StoreProductCategoryRequest.ts +16 -0
  181. package/src/models/StoreProductChildRequestAssetsInner.ts +20 -6
  182. package/src/models/StoreResource.ts +24 -6
  183. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  184. package/src/models/StoreSpecialDateResource.ts +4 -4
  185. package/src/models/StoreStockType.ts +53 -0
  186. package/src/models/StoreStoreRequest.ts +16 -0
  187. package/src/models/StoreStoreRequestAddress.ts +0 -8
  188. package/src/models/StoreSupplierRequest.ts +20 -6
  189. package/src/models/UpdateAssetForAssetableRequest.ts +16 -0
  190. package/src/models/UpdateMenuRequest.ts +1 -2
  191. package/src/models/UpdateOverlayTemplateAssetRequest.ts +20 -6
  192. package/src/models/UpdateProductCategoryRequest.ts +16 -0
  193. package/src/models/UpdateProductChildRequestAssetsInner.ts +20 -6
  194. package/src/models/UpdateSiteRequest.ts +0 -9
  195. package/src/models/UpdateStoreRequest.ts +16 -0
  196. package/src/models/UpdateSupplierRequest.ts +20 -6
  197. package/src/models/index.ts +1 -66
  198. package/src/runtime.ts +1 -2
  199. package/dist/apis/CartsApi.d.ts +0 -205
  200. package/dist/apis/CartsApi.js +0 -804
  201. package/dist/apis/CustomersApi.d.ts +0 -79
  202. package/dist/apis/CustomersApi.js +0 -316
  203. package/dist/apis/OrdersApi.d.ts +0 -170
  204. package/dist/apis/OrdersApi.js +0 -678
  205. package/dist/apis/TransactionsApi.d.ts +0 -64
  206. package/dist/apis/TransactionsApi.js +0 -257
  207. package/dist/models/AddressType.d.ts +0 -25
  208. package/dist/models/AddressType.js +0 -51
  209. package/dist/models/AdminOrderResource.d.ts +0 -262
  210. package/dist/models/AdminOrderResource.js +0 -187
  211. package/dist/models/AdminOrderResourceArrayResponse.d.ts +0 -33
  212. package/dist/models/AdminOrderResourceArrayResponse.js +0 -50
  213. package/dist/models/AttachCouponCartRequest.d.ts +0 -32
  214. package/dist/models/AttachCouponCartRequest.js +0 -51
  215. package/dist/models/AttachItemCartRequest.d.ts +0 -44
  216. package/dist/models/AttachItemCartRequest.js +0 -57
  217. package/dist/models/AttachItemOrderRequest.d.ts +0 -44
  218. package/dist/models/AttachItemOrderRequest.js +0 -57
  219. package/dist/models/CartCouponResource.d.ts +0 -50
  220. package/dist/models/CartCouponResource.js +0 -63
  221. package/dist/models/CartCouponResourceArrayResponse.d.ts +0 -33
  222. package/dist/models/CartCouponResourceArrayResponse.js +0 -50
  223. package/dist/models/CartListResource.d.ts +0 -131
  224. package/dist/models/CartListResource.js +0 -104
  225. package/dist/models/CartListResourceArrayResponse.d.ts +0 -33
  226. package/dist/models/CartListResourceArrayResponse.js +0 -50
  227. package/dist/models/CartOrderSource.d.ts +0 -29
  228. package/dist/models/CartOrderSource.js +0 -55
  229. package/dist/models/CartResource.d.ts +0 -229
  230. package/dist/models/CartResource.js +0 -166
  231. package/dist/models/CartResourceArrayResponse.d.ts +0 -33
  232. package/dist/models/CartResourceArrayResponse.js +0 -50
  233. package/dist/models/CartStatus.d.ts +0 -26
  234. package/dist/models/CartStatus.js +0 -52
  235. package/dist/models/CustomerListResource.d.ts +0 -70
  236. package/dist/models/CustomerListResource.js +0 -75
  237. package/dist/models/CustomerListResourceArrayResponse.d.ts +0 -33
  238. package/dist/models/CustomerListResourceArrayResponse.js +0 -50
  239. package/dist/models/CustomerResource.d.ts +0 -70
  240. package/dist/models/CustomerResource.js +0 -75
  241. package/dist/models/CustomerResourceArrayResponse.d.ts +0 -33
  242. package/dist/models/CustomerResourceArrayResponse.js +0 -50
  243. package/dist/models/DetachCouponCartRequest.d.ts +0 -32
  244. package/dist/models/DetachCouponCartRequest.js +0 -51
  245. package/dist/models/DiscountType.d.ts +0 -26
  246. package/dist/models/DiscountType.js +0 -52
  247. package/dist/models/DiscountValueType.d.ts +0 -25
  248. package/dist/models/DiscountValueType.js +0 -51
  249. package/dist/models/GetAllOrderRequest.d.ts +0 -104
  250. package/dist/models/GetAllOrderRequest.js +0 -84
  251. package/dist/models/IndexCartRequest.d.ts +0 -154
  252. package/dist/models/IndexCartRequest.js +0 -105
  253. package/dist/models/IndexCustomerRequest.d.ts +0 -99
  254. package/dist/models/IndexCustomerRequest.js +0 -83
  255. package/dist/models/IndexOrderRequest.d.ts +0 -140
  256. package/dist/models/IndexOrderRequest.js +0 -96
  257. package/dist/models/IndexTransactionRequest.d.ts +0 -127
  258. package/dist/models/IndexTransactionRequest.js +0 -91
  259. package/dist/models/LiAddressResource.d.ts +0 -86
  260. package/dist/models/LiAddressResource.js +0 -83
  261. package/dist/models/LiAddressResourceArrayResponse.d.ts +0 -33
  262. package/dist/models/LiAddressResourceArrayResponse.js +0 -50
  263. package/dist/models/LineItemDiscountResource.d.ts +0 -50
  264. package/dist/models/LineItemDiscountResource.js +0 -63
  265. package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +0 -33
  266. package/dist/models/LineItemDiscountResourceArrayResponse.js +0 -50
  267. package/dist/models/LineItemListResource.d.ts +0 -82
  268. package/dist/models/LineItemListResource.js +0 -83
  269. package/dist/models/LineItemListResourceArrayResponse.d.ts +0 -33
  270. package/dist/models/LineItemListResourceArrayResponse.js +0 -50
  271. package/dist/models/OrderListResource.d.ts +0 -101
  272. package/dist/models/OrderListResource.js +0 -90
  273. package/dist/models/OrderListResourceArrayResponse.d.ts +0 -33
  274. package/dist/models/OrderListResourceArrayResponse.js +0 -50
  275. package/dist/models/OrderLiteResource.d.ts +0 -62
  276. package/dist/models/OrderLiteResource.js +0 -67
  277. package/dist/models/OrderLiteResourceArrayResponse.d.ts +0 -33
  278. package/dist/models/OrderLiteResourceArrayResponse.js +0 -50
  279. package/dist/models/PaginatedCartListResourceResponse.d.ts +0 -40
  280. package/dist/models/PaginatedCartListResourceResponse.js +0 -57
  281. package/dist/models/PaginatedCustomerListResourceResponse.d.ts +0 -40
  282. package/dist/models/PaginatedCustomerListResourceResponse.js +0 -57
  283. package/dist/models/PaginatedOrderListResourceResponse.d.ts +0 -40
  284. package/dist/models/PaginatedOrderListResourceResponse.js +0 -57
  285. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
  286. package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
  287. package/dist/models/PaginatedTransactionResourceResponse.d.ts +0 -40
  288. package/dist/models/PaginatedTransactionResourceResponse.js +0 -57
  289. package/dist/models/PaymentMethod.d.ts +0 -30
  290. package/dist/models/PaymentMethod.js +0 -56
  291. package/dist/models/PaymentSource.d.ts +0 -26
  292. package/dist/models/PaymentSource.js +0 -52
  293. package/dist/models/PaymentStatus.d.ts +0 -25
  294. package/dist/models/PaymentStatus.js +0 -51
  295. package/dist/models/ProductChildCartLiteResource.d.ts +0 -88
  296. package/dist/models/ProductChildCartLiteResource.js +0 -89
  297. package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
  298. package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
  299. package/dist/models/RefundTransactionRequest.d.ts +0 -38
  300. package/dist/models/RefundTransactionRequest.js +0 -53
  301. package/dist/models/ShippingType.d.ts +0 -28
  302. package/dist/models/ShippingType.js +0 -54
  303. package/dist/models/StoreCartRequest.d.ts +0 -160
  304. package/dist/models/StoreCartRequest.js +0 -112
  305. package/dist/models/StoreCartRequestCustomer.d.ts +0 -50
  306. package/dist/models/StoreCartRequestCustomer.js +0 -55
  307. package/dist/models/StoreCartRequestItemsInner.d.ts +0 -44
  308. package/dist/models/StoreCartRequestItemsInner.js +0 -57
  309. package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -80
  310. package/dist/models/StoreCartRequestShippingAddress.js +0 -65
  311. package/dist/models/StoreCustomerRequest.d.ts +0 -56
  312. package/dist/models/StoreCustomerRequest.js +0 -65
  313. package/dist/models/StoreTransactionRequest.d.ts +0 -81
  314. package/dist/models/StoreTransactionRequest.js +0 -78
  315. package/dist/models/TransactionListResource.d.ts +0 -152
  316. package/dist/models/TransactionListResource.js +0 -109
  317. package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
  318. package/dist/models/TransactionListResourceArrayResponse.js +0 -50
  319. package/dist/models/TransactionResource.d.ts +0 -152
  320. package/dist/models/TransactionResource.js +0 -109
  321. package/dist/models/TransactionResourceArrayResponse.d.ts +0 -33
  322. package/dist/models/TransactionResourceArrayResponse.js +0 -50
  323. package/dist/models/TransactionType.d.ts +0 -25
  324. package/dist/models/TransactionType.js +0 -51
  325. package/dist/models/UpdateCartRequest.d.ts +0 -135
  326. package/dist/models/UpdateCartRequest.js +0 -99
  327. package/dist/models/UpdateCustomerRequest.d.ts +0 -56
  328. package/dist/models/UpdateCustomerRequest.js +0 -63
  329. package/dist/models/UpdateItemCartRequest.d.ts +0 -38
  330. package/dist/models/UpdateItemCartRequest.js +0 -53
  331. package/dist/models/UpdateItemOrderRequest.d.ts +0 -38
  332. package/dist/models/UpdateItemOrderRequest.js +0 -53
  333. package/dist/models/UpdateOrderRequest.d.ts +0 -111
  334. package/dist/models/UpdateOrderRequest.js +0 -99
  335. package/dist/models/UpdateOrderRequestBillingAddress.d.ts +0 -80
  336. package/dist/models/UpdateOrderRequestBillingAddress.js +0 -67
  337. package/dist/models/UpdateOrderRequestShippingAddress.d.ts +0 -80
  338. package/dist/models/UpdateOrderRequestShippingAddress.js +0 -67
  339. package/docs/AdminOrderResource.md +0 -110
  340. package/docs/AdminOrderResourceArrayResponse.md +0 -34
  341. package/docs/AttachCouponCartRequest.md +0 -34
  342. package/docs/AttachItemCartRequest.md +0 -38
  343. package/docs/AttachItemOrderRequest.md +0 -38
  344. package/docs/CartCouponResource.md +0 -40
  345. package/docs/CartCouponResourceArrayResponse.md +0 -34
  346. package/docs/CartListResource.md +0 -66
  347. package/docs/CartListResourceArrayResponse.md +0 -34
  348. package/docs/CartOrderSource.md +0 -32
  349. package/docs/CartResource.md +0 -98
  350. package/docs/CartResourceArrayResponse.md +0 -34
  351. package/docs/CartStatus.md +0 -32
  352. package/docs/CartsApi.md +0 -821
  353. package/docs/CustomerListResource.md +0 -46
  354. package/docs/CustomerListResourceArrayResponse.md +0 -34
  355. package/docs/CustomerResource.md +0 -46
  356. package/docs/CustomerResourceArrayResponse.md +0 -34
  357. package/docs/CustomersApi.md +0 -275
  358. package/docs/DetachCouponCartRequest.md +0 -34
  359. package/docs/DiscountType.md +0 -32
  360. package/docs/DiscountValueType.md +0 -32
  361. package/docs/GetAllOrderRequest.md +0 -52
  362. package/docs/IndexCartRequest.md +0 -66
  363. package/docs/IndexCustomerRequest.md +0 -50
  364. package/docs/IndexOrderRequest.md +0 -64
  365. package/docs/IndexTransactionRequest.md +0 -60
  366. package/docs/LiAddressResource.md +0 -52
  367. package/docs/LiAddressResourceArrayResponse.md +0 -34
  368. package/docs/LineItemDiscountResource.md +0 -40
  369. package/docs/LineItemDiscountResourceArrayResponse.md +0 -34
  370. package/docs/LineItemListResource.md +0 -50
  371. package/docs/LineItemListResourceArrayResponse.md +0 -34
  372. package/docs/OrderListResource.md +0 -56
  373. package/docs/OrderListResourceArrayResponse.md +0 -34
  374. package/docs/OrderLiteResource.md +0 -44
  375. package/docs/OrderLiteResourceArrayResponse.md +0 -34
  376. package/docs/OrdersApi.md +0 -675
  377. package/docs/PaginatedCartListResourceResponse.md +0 -36
  378. package/docs/PaginatedCustomerListResourceResponse.md +0 -36
  379. package/docs/PaginatedOrderListResourceResponse.md +0 -36
  380. package/docs/PaginatedTransactionListResourceResponse.md +0 -36
  381. package/docs/PaginatedTransactionResourceResponse.md +0 -36
  382. package/docs/PaymentMethod.md +0 -32
  383. package/docs/PaymentSource.md +0 -32
  384. package/docs/PaymentStatus.md +0 -32
  385. package/docs/ProductChildCartLiteResource.md +0 -52
  386. package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
  387. package/docs/RefundTransactionRequest.md +0 -36
  388. package/docs/ShippingType.md +0 -32
  389. package/docs/StoreCartRequest.md +0 -68
  390. package/docs/StoreCartRequestCustomer.md +0 -40
  391. package/docs/StoreCartRequestItemsInner.md +0 -38
  392. package/docs/StoreCartRequestShippingAddress.md +0 -50
  393. package/docs/StoreCustomerRequest.md +0 -42
  394. package/docs/StoreTransactionRequest.md +0 -46
  395. package/docs/TransactionListResource.md +0 -74
  396. package/docs/TransactionListResourceArrayResponse.md +0 -34
  397. package/docs/TransactionResource.md +0 -74
  398. package/docs/TransactionResourceArrayResponse.md +0 -34
  399. package/docs/TransactionType.md +0 -32
  400. package/docs/TransactionsApi.md +0 -209
  401. package/docs/UpdateCartRequest.md +0 -60
  402. package/docs/UpdateCustomerRequest.md +0 -42
  403. package/docs/UpdateItemCartRequest.md +0 -36
  404. package/docs/UpdateItemOrderRequest.md +0 -36
  405. package/docs/UpdateOrderRequest.md +0 -52
  406. package/docs/UpdateOrderRequestBillingAddress.md +0 -50
  407. package/docs/UpdateOrderRequestShippingAddress.md +0 -50
  408. package/src/apis/CartsApi.ts +0 -676
  409. package/src/apis/CustomersApi.ts +0 -232
  410. package/src/apis/OrdersApi.ts +0 -552
  411. package/src/apis/TransactionsApi.ts +0 -186
  412. package/src/models/AddressType.ts +0 -53
  413. package/src/models/AdminOrderResource.ts +0 -414
  414. package/src/models/AdminOrderResourceArrayResponse.ts +0 -73
  415. package/src/models/AttachCouponCartRequest.ts +0 -66
  416. package/src/models/AttachItemCartRequest.ts +0 -83
  417. package/src/models/AttachItemOrderRequest.ts +0 -83
  418. package/src/models/CartCouponResource.ts +0 -93
  419. package/src/models/CartCouponResourceArrayResponse.ts +0 -73
  420. package/src/models/CartListResource.ts +0 -225
  421. package/src/models/CartListResourceArrayResponse.ts +0 -73
  422. package/src/models/CartOrderSource.ts +0 -57
  423. package/src/models/CartResource.ts +0 -381
  424. package/src/models/CartResourceArrayResponse.ts +0 -73
  425. package/src/models/CartStatus.ts +0 -54
  426. package/src/models/CustomerListResource.ts +0 -134
  427. package/src/models/CustomerListResourceArrayResponse.ts +0 -73
  428. package/src/models/CustomerResource.ts +0 -134
  429. package/src/models/CustomerResourceArrayResponse.ts +0 -73
  430. package/src/models/DetachCouponCartRequest.ts +0 -66
  431. package/src/models/DiscountType.ts +0 -54
  432. package/src/models/DiscountValueType.ts +0 -53
  433. package/src/models/GetAllOrderRequest.ts +0 -159
  434. package/src/models/IndexCartRequest.ts +0 -224
  435. package/src/models/IndexCustomerRequest.ts +0 -152
  436. package/src/models/IndexOrderRequest.ts +0 -207
  437. package/src/models/IndexTransactionRequest.ts +0 -190
  438. package/src/models/LiAddressResource.ts +0 -145
  439. package/src/models/LiAddressResourceArrayResponse.ts +0 -73
  440. package/src/models/LineItemDiscountResource.ts +0 -93
  441. package/src/models/LineItemDiscountResourceArrayResponse.ts +0 -73
  442. package/src/models/LineItemListResource.ts +0 -152
  443. package/src/models/LineItemListResourceArrayResponse.ts +0 -73
  444. package/src/models/OrderListResource.ts +0 -183
  445. package/src/models/OrderListResourceArrayResponse.ts +0 -73
  446. package/src/models/OrderLiteResource.ts +0 -109
  447. package/src/models/OrderLiteResourceArrayResponse.ts +0 -73
  448. package/src/models/PaginatedCartListResourceResponse.ts +0 -90
  449. package/src/models/PaginatedCustomerListResourceResponse.ts +0 -90
  450. package/src/models/PaginatedOrderListResourceResponse.ts +0 -90
  451. package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
  452. package/src/models/PaginatedTransactionResourceResponse.ts +0 -90
  453. package/src/models/PaymentMethod.ts +0 -58
  454. package/src/models/PaymentSource.ts +0 -54
  455. package/src/models/PaymentStatus.ts +0 -53
  456. package/src/models/ProductChildCartLiteResource.ts +0 -162
  457. package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
  458. package/src/models/RefundTransactionRequest.ts +0 -74
  459. package/src/models/ShippingType.ts +0 -56
  460. package/src/models/StoreCartRequest.ts +0 -252
  461. package/src/models/StoreCartRequestCustomer.ts +0 -89
  462. package/src/models/StoreCartRequestItemsInner.ts +0 -83
  463. package/src/models/StoreCartRequestShippingAddress.ts +0 -129
  464. package/src/models/StoreCustomerRequest.ts +0 -101
  465. package/src/models/StoreTransactionRequest.ts +0 -131
  466. package/src/models/TransactionListResource.ts +0 -235
  467. package/src/models/TransactionListResourceArrayResponse.ts +0 -73
  468. package/src/models/TransactionResource.ts +0 -235
  469. package/src/models/TransactionResourceArrayResponse.ts +0 -73
  470. package/src/models/TransactionType.ts +0 -53
  471. package/src/models/UpdateCartRequest.ts +0 -211
  472. package/src/models/UpdateCustomerRequest.ts +0 -100
  473. package/src/models/UpdateItemCartRequest.ts +0 -74
  474. package/src/models/UpdateItemOrderRequest.ts +0 -74
  475. package/src/models/UpdateOrderRequest.ts +0 -183
  476. package/src/models/UpdateOrderRequestBillingAddress.ts +0 -130
  477. 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
-