@digital8/lighting-illusions-ts-sdk 0.0.1946 → 0.0.1948

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 (410) hide show
  1. package/.openapi-generator/FILES +2 -146
  2. package/README.md +3 -102
  3. package/dist/apis/index.d.ts +0 -4
  4. package/dist/apis/index.js +0 -4
  5. package/dist/models/AddressResource.d.ts +0 -18
  6. package/dist/models/AddressResource.js +0 -10
  7. package/dist/models/AssetFrontendResource.d.ts +12 -0
  8. package/dist/models/AssetFrontendResource.js +6 -0
  9. package/dist/models/AssetLiteResource.d.ts +14 -2
  10. package/dist/models/AssetLiteResource.js +6 -0
  11. package/dist/models/AssetResource.d.ts +14 -2
  12. package/dist/models/AssetResource.js +6 -0
  13. package/dist/models/AssetWithOverlayLinkResource.d.ts +14 -2
  14. package/dist/models/AssetWithOverlayLinkResource.js +6 -0
  15. package/dist/models/ExternalApiSyncStatus.d.ts +1 -0
  16. package/dist/models/ExternalApiSyncStatus.js +2 -1
  17. package/dist/models/MenuPosition.d.ts +0 -1
  18. package/dist/models/MenuPosition.js +1 -2
  19. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +0 -7
  20. package/dist/models/ProductChildSiteDetailLiteResource.js +0 -5
  21. package/dist/models/SitePaymentConfigResource.d.ts +0 -6
  22. package/dist/models/SitePaymentConfigResource.js +0 -4
  23. package/dist/models/StoreAssetForAssetableRequest.d.ts +14 -2
  24. package/dist/models/StoreAssetForAssetableRequest.js +6 -6
  25. package/dist/models/StoreListResource.d.ts +13 -1
  26. package/dist/models/StoreListResource.js +12 -6
  27. package/dist/models/StoreMenuRequest.d.ts +0 -1
  28. package/dist/models/StoreMenuRequest.js +1 -2
  29. package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +14 -2
  30. package/dist/models/StoreOverlayTemplateAssetRequest.js +6 -6
  31. package/dist/models/StoreProductCategoryRequest.d.ts +12 -0
  32. package/dist/models/StoreProductCategoryRequest.js +4 -0
  33. package/dist/models/StoreProductChildRequestAssetsInner.d.ts +14 -2
  34. package/dist/models/StoreProductChildRequestAssetsInner.js +6 -6
  35. package/dist/models/StoreResource.d.ts +13 -1
  36. package/dist/models/StoreResource.js +14 -8
  37. package/dist/models/StoreSpecialDateResource.js +4 -4
  38. package/dist/models/StoreStockType.d.ts +25 -0
  39. package/dist/models/StoreStockType.js +51 -0
  40. package/dist/models/StoreStoreRequest.d.ts +12 -0
  41. package/dist/models/StoreStoreRequest.js +4 -0
  42. package/dist/models/StoreStoreRequestAddress.d.ts +0 -6
  43. package/dist/models/StoreStoreRequestAddress.js +0 -2
  44. package/dist/models/StoreSupplierRequest.d.ts +14 -2
  45. package/dist/models/StoreSupplierRequest.js +6 -6
  46. package/dist/models/UpdateAssetForAssetableRequest.d.ts +12 -0
  47. package/dist/models/UpdateAssetForAssetableRequest.js +4 -0
  48. package/dist/models/UpdateMenuRequest.d.ts +0 -1
  49. package/dist/models/UpdateMenuRequest.js +1 -2
  50. package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +14 -2
  51. package/dist/models/UpdateOverlayTemplateAssetRequest.js +6 -6
  52. package/dist/models/UpdateProductCategoryRequest.d.ts +12 -0
  53. package/dist/models/UpdateProductCategoryRequest.js +4 -0
  54. package/dist/models/UpdateProductChildRequestAssetsInner.d.ts +14 -2
  55. package/dist/models/UpdateProductChildRequestAssetsInner.js +6 -6
  56. package/dist/models/UpdateSiteRequest.d.ts +0 -6
  57. package/dist/models/UpdateSiteRequest.js +0 -4
  58. package/dist/models/UpdateStoreRequest.d.ts +12 -0
  59. package/dist/models/UpdateStoreRequest.js +4 -0
  60. package/dist/models/UpdateSupplierRequest.d.ts +14 -2
  61. package/dist/models/UpdateSupplierRequest.js +6 -6
  62. package/dist/models/index.d.ts +1 -69
  63. package/dist/models/index.js +1 -69
  64. package/docs/AddressResource.md +0 -6
  65. package/docs/AssetFrontendResource.md +4 -0
  66. package/docs/AssetLiteResource.md +5 -1
  67. package/docs/AssetResource.md +5 -1
  68. package/docs/AssetWithOverlayLinkResource.md +5 -1
  69. package/docs/ProductChildSiteDetailLiteResource.md +0 -2
  70. package/docs/SitePaymentConfigResource.md +0 -2
  71. package/docs/StoreAssetForAssetableRequest.md +4 -0
  72. package/docs/StoreListResource.md +4 -0
  73. package/docs/StoreOverlayTemplateAssetRequest.md +4 -0
  74. package/docs/StoreProductCategoryRequest.md +4 -0
  75. package/docs/StoreProductChildRequestAssetsInner.md +4 -0
  76. package/docs/StoreResource.md +4 -0
  77. package/docs/{AddressType.md → StoreStockType.md} +4 -4
  78. package/docs/StoreStoreRequest.md +4 -0
  79. package/docs/StoreStoreRequestAddress.md +0 -2
  80. package/docs/StoreSupplierRequest.md +4 -0
  81. package/docs/UpdateAssetForAssetableRequest.md +4 -0
  82. package/docs/UpdateOverlayTemplateAssetRequest.md +4 -0
  83. package/docs/UpdateProductCategoryRequest.md +4 -0
  84. package/docs/UpdateProductChildRequestAssetsInner.md +4 -0
  85. package/docs/UpdateSiteRequest.md +0 -2
  86. package/docs/UpdateStoreRequest.md +4 -0
  87. package/docs/UpdateSupplierRequest.md +4 -0
  88. package/package.json +1 -1
  89. package/src/apis/index.ts +0 -4
  90. package/src/models/AddressResource.ts +0 -26
  91. package/src/models/AssetFrontendResource.ts +17 -0
  92. package/src/models/AssetLiteResource.ts +19 -2
  93. package/src/models/AssetResource.ts +19 -2
  94. package/src/models/AssetWithOverlayLinkResource.ts +19 -2
  95. package/src/models/ExternalApiSyncStatus.ts +2 -1
  96. package/src/models/MenuPosition.ts +1 -2
  97. package/src/models/ProductChildSiteDetailLiteResource.ts +0 -16
  98. package/src/models/SitePaymentConfigResource.ts +0 -9
  99. package/src/models/StoreAssetForAssetableRequest.ts +20 -6
  100. package/src/models/StoreListResource.ts +23 -6
  101. package/src/models/StoreMenuRequest.ts +1 -2
  102. package/src/models/StoreOverlayTemplateAssetRequest.ts +20 -6
  103. package/src/models/StoreProductCategoryRequest.ts +16 -0
  104. package/src/models/StoreProductChildRequestAssetsInner.ts +20 -6
  105. package/src/models/StoreResource.ts +25 -8
  106. package/src/models/StoreSpecialDateResource.ts +4 -4
  107. package/src/models/StoreStockType.ts +53 -0
  108. package/src/models/StoreStoreRequest.ts +16 -0
  109. package/src/models/StoreStoreRequestAddress.ts +0 -8
  110. package/src/models/StoreSupplierRequest.ts +20 -6
  111. package/src/models/UpdateAssetForAssetableRequest.ts +16 -0
  112. package/src/models/UpdateMenuRequest.ts +1 -2
  113. package/src/models/UpdateOverlayTemplateAssetRequest.ts +20 -6
  114. package/src/models/UpdateProductCategoryRequest.ts +16 -0
  115. package/src/models/UpdateProductChildRequestAssetsInner.ts +20 -6
  116. package/src/models/UpdateSiteRequest.ts +0 -9
  117. package/src/models/UpdateStoreRequest.ts +16 -0
  118. package/src/models/UpdateSupplierRequest.ts +20 -6
  119. package/src/models/index.ts +1 -69
  120. package/dist/apis/CartsApi.d.ts +0 -215
  121. package/dist/apis/CartsApi.js +0 -814
  122. package/dist/apis/CustomersApi.d.ts +0 -83
  123. package/dist/apis/CustomersApi.js +0 -320
  124. package/dist/apis/OrdersApi.d.ts +0 -213
  125. package/dist/apis/OrdersApi.js +0 -811
  126. package/dist/apis/TransactionsApi.d.ts +0 -69
  127. package/dist/apis/TransactionsApi.js +0 -262
  128. package/dist/models/AddressType.d.ts +0 -25
  129. package/dist/models/AddressType.js +0 -51
  130. package/dist/models/AdminOrderResource.d.ts +0 -268
  131. package/dist/models/AdminOrderResource.js +0 -191
  132. package/dist/models/AdminOrderResourceArrayResponse.d.ts +0 -33
  133. package/dist/models/AdminOrderResourceArrayResponse.js +0 -50
  134. package/dist/models/AttachCouponCartRequest.d.ts +0 -32
  135. package/dist/models/AttachCouponCartRequest.js +0 -51
  136. package/dist/models/AttachCouponOrderRequest.d.ts +0 -32
  137. package/dist/models/AttachCouponOrderRequest.js +0 -51
  138. package/dist/models/AttachItemCartRequest.d.ts +0 -44
  139. package/dist/models/AttachItemCartRequest.js +0 -57
  140. package/dist/models/AttachItemOrderRequest.d.ts +0 -44
  141. package/dist/models/AttachItemOrderRequest.js +0 -57
  142. package/dist/models/CartCouponResource.d.ts +0 -50
  143. package/dist/models/CartCouponResource.js +0 -63
  144. package/dist/models/CartCouponResourceArrayResponse.d.ts +0 -33
  145. package/dist/models/CartCouponResourceArrayResponse.js +0 -50
  146. package/dist/models/CartListResource.d.ts +0 -131
  147. package/dist/models/CartListResource.js +0 -104
  148. package/dist/models/CartListResourceArrayResponse.d.ts +0 -33
  149. package/dist/models/CartListResourceArrayResponse.js +0 -50
  150. package/dist/models/CartOrderSource.d.ts +0 -29
  151. package/dist/models/CartOrderSource.js +0 -55
  152. package/dist/models/CartResource.d.ts +0 -229
  153. package/dist/models/CartResource.js +0 -166
  154. package/dist/models/CartResourceArrayResponse.d.ts +0 -33
  155. package/dist/models/CartResourceArrayResponse.js +0 -50
  156. package/dist/models/CartStatus.d.ts +0 -26
  157. package/dist/models/CartStatus.js +0 -52
  158. package/dist/models/CustomerListResource.d.ts +0 -70
  159. package/dist/models/CustomerListResource.js +0 -75
  160. package/dist/models/CustomerListResourceArrayResponse.d.ts +0 -33
  161. package/dist/models/CustomerListResourceArrayResponse.js +0 -50
  162. package/dist/models/CustomerResource.d.ts +0 -70
  163. package/dist/models/CustomerResource.js +0 -75
  164. package/dist/models/CustomerResourceArrayResponse.d.ts +0 -33
  165. package/dist/models/CustomerResourceArrayResponse.js +0 -50
  166. package/dist/models/DetachCouponCartRequest.d.ts +0 -32
  167. package/dist/models/DetachCouponCartRequest.js +0 -51
  168. package/dist/models/DetachCouponOrderRequest.d.ts +0 -32
  169. package/dist/models/DetachCouponOrderRequest.js +0 -51
  170. package/dist/models/DiscountType.d.ts +0 -26
  171. package/dist/models/DiscountType.js +0 -52
  172. package/dist/models/DiscountValueType.d.ts +0 -25
  173. package/dist/models/DiscountValueType.js +0 -51
  174. package/dist/models/GetAllOrderRequest.d.ts +0 -105
  175. package/dist/models/GetAllOrderRequest.js +0 -85
  176. package/dist/models/IndexCartRequest.d.ts +0 -154
  177. package/dist/models/IndexCartRequest.js +0 -105
  178. package/dist/models/IndexCustomerRequest.d.ts +0 -99
  179. package/dist/models/IndexCustomerRequest.js +0 -83
  180. package/dist/models/IndexOrderRequest.d.ts +0 -141
  181. package/dist/models/IndexOrderRequest.js +0 -97
  182. package/dist/models/IndexTransactionRequest.d.ts +0 -127
  183. package/dist/models/IndexTransactionRequest.js +0 -91
  184. package/dist/models/LiAddressResource.d.ts +0 -86
  185. package/dist/models/LiAddressResource.js +0 -83
  186. package/dist/models/LiAddressResourceArrayResponse.d.ts +0 -33
  187. package/dist/models/LiAddressResourceArrayResponse.js +0 -50
  188. package/dist/models/LineItemDiscountResource.d.ts +0 -50
  189. package/dist/models/LineItemDiscountResource.js +0 -63
  190. package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +0 -33
  191. package/dist/models/LineItemDiscountResourceArrayResponse.js +0 -50
  192. package/dist/models/LineItemListResource.d.ts +0 -82
  193. package/dist/models/LineItemListResource.js +0 -83
  194. package/dist/models/LineItemListResourceArrayResponse.d.ts +0 -33
  195. package/dist/models/LineItemListResourceArrayResponse.js +0 -50
  196. package/dist/models/OrderListResource.d.ts +0 -126
  197. package/dist/models/OrderListResource.js +0 -105
  198. package/dist/models/OrderListResourceArrayResponse.d.ts +0 -33
  199. package/dist/models/OrderListResourceArrayResponse.js +0 -50
  200. package/dist/models/OrderLiteResource.d.ts +0 -62
  201. package/dist/models/OrderLiteResource.js +0 -67
  202. package/dist/models/OrderLiteResourceArrayResponse.d.ts +0 -33
  203. package/dist/models/OrderLiteResourceArrayResponse.js +0 -50
  204. package/dist/models/OrderStatusWithCountResource.d.ts +0 -50
  205. package/dist/models/OrderStatusWithCountResource.js +0 -63
  206. package/dist/models/OrderStatusWithCountResourceArrayResponse.d.ts +0 -33
  207. package/dist/models/OrderStatusWithCountResourceArrayResponse.js +0 -50
  208. package/dist/models/PaginatedCartListResourceResponse.d.ts +0 -40
  209. package/dist/models/PaginatedCartListResourceResponse.js +0 -57
  210. package/dist/models/PaginatedCustomerListResourceResponse.d.ts +0 -40
  211. package/dist/models/PaginatedCustomerListResourceResponse.js +0 -57
  212. package/dist/models/PaginatedOrderListResourceResponse.d.ts +0 -40
  213. package/dist/models/PaginatedOrderListResourceResponse.js +0 -57
  214. package/dist/models/PaginatedTransactionResourceResponse.d.ts +0 -40
  215. package/dist/models/PaginatedTransactionResourceResponse.js +0 -57
  216. package/dist/models/PaymentMethod.d.ts +0 -30
  217. package/dist/models/PaymentMethod.js +0 -56
  218. package/dist/models/PaymentSource.d.ts +0 -26
  219. package/dist/models/PaymentSource.js +0 -52
  220. package/dist/models/PaymentStatus.d.ts +0 -25
  221. package/dist/models/PaymentStatus.js +0 -51
  222. package/dist/models/ProductChildCartLiteResource.d.ts +0 -88
  223. package/dist/models/ProductChildCartLiteResource.js +0 -89
  224. package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
  225. package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
  226. package/dist/models/RefundTransactionRequest.d.ts +0 -38
  227. package/dist/models/RefundTransactionRequest.js +0 -53
  228. package/dist/models/ShippingType.d.ts +0 -28
  229. package/dist/models/ShippingType.js +0 -54
  230. package/dist/models/StoreCartRequest.d.ts +0 -160
  231. package/dist/models/StoreCartRequest.js +0 -112
  232. package/dist/models/StoreCartRequestCustomer.d.ts +0 -50
  233. package/dist/models/StoreCartRequestCustomer.js +0 -55
  234. package/dist/models/StoreCartRequestItemsInner.d.ts +0 -44
  235. package/dist/models/StoreCartRequestItemsInner.js +0 -57
  236. package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -80
  237. package/dist/models/StoreCartRequestShippingAddress.js +0 -65
  238. package/dist/models/StoreCustomerRequest.d.ts +0 -56
  239. package/dist/models/StoreCustomerRequest.js +0 -65
  240. package/dist/models/StoreTransactionRequest.d.ts +0 -81
  241. package/dist/models/StoreTransactionRequest.js +0 -78
  242. package/dist/models/TransactionLiteResource.d.ts +0 -74
  243. package/dist/models/TransactionLiteResource.js +0 -77
  244. package/dist/models/TransactionLiteResourceArrayResponse.d.ts +0 -33
  245. package/dist/models/TransactionLiteResourceArrayResponse.js +0 -50
  246. package/dist/models/TransactionResource.d.ts +0 -122
  247. package/dist/models/TransactionResource.js +0 -99
  248. package/dist/models/TransactionResourceArrayResponse.d.ts +0 -33
  249. package/dist/models/TransactionResourceArrayResponse.js +0 -50
  250. package/dist/models/TransactionType.d.ts +0 -25
  251. package/dist/models/TransactionType.js +0 -51
  252. package/dist/models/UpdateCartRequest.d.ts +0 -135
  253. package/dist/models/UpdateCartRequest.js +0 -99
  254. package/dist/models/UpdateCustomerRequest.d.ts +0 -56
  255. package/dist/models/UpdateCustomerRequest.js +0 -63
  256. package/dist/models/UpdateItemCartRequest.d.ts +0 -38
  257. package/dist/models/UpdateItemCartRequest.js +0 -53
  258. package/dist/models/UpdateItemOrderRequest.d.ts +0 -38
  259. package/dist/models/UpdateItemOrderRequest.js +0 -53
  260. package/dist/models/UpdateOrderRequest.d.ts +0 -111
  261. package/dist/models/UpdateOrderRequest.js +0 -99
  262. package/dist/models/UpdateOrderRequestBillingAddress.d.ts +0 -80
  263. package/dist/models/UpdateOrderRequestBillingAddress.js +0 -67
  264. package/dist/models/UpdateOrderRequestShippingAddress.d.ts +0 -80
  265. package/dist/models/UpdateOrderRequestShippingAddress.js +0 -67
  266. package/docs/AdminOrderResource.md +0 -112
  267. package/docs/AdminOrderResourceArrayResponse.md +0 -34
  268. package/docs/AttachCouponCartRequest.md +0 -34
  269. package/docs/AttachCouponOrderRequest.md +0 -34
  270. package/docs/AttachItemCartRequest.md +0 -38
  271. package/docs/AttachItemOrderRequest.md +0 -38
  272. package/docs/CartCouponResource.md +0 -40
  273. package/docs/CartCouponResourceArrayResponse.md +0 -34
  274. package/docs/CartListResource.md +0 -66
  275. package/docs/CartListResourceArrayResponse.md +0 -34
  276. package/docs/CartOrderSource.md +0 -32
  277. package/docs/CartResource.md +0 -98
  278. package/docs/CartResourceArrayResponse.md +0 -34
  279. package/docs/CartStatus.md +0 -32
  280. package/docs/CartsApi.md +0 -821
  281. package/docs/CustomerListResource.md +0 -46
  282. package/docs/CustomerListResourceArrayResponse.md +0 -34
  283. package/docs/CustomerResource.md +0 -46
  284. package/docs/CustomerResourceArrayResponse.md +0 -34
  285. package/docs/CustomersApi.md +0 -275
  286. package/docs/DetachCouponCartRequest.md +0 -34
  287. package/docs/DetachCouponOrderRequest.md +0 -34
  288. package/docs/DiscountType.md +0 -32
  289. package/docs/DiscountValueType.md +0 -32
  290. package/docs/GetAllOrderRequest.md +0 -52
  291. package/docs/IndexCartRequest.md +0 -66
  292. package/docs/IndexCustomerRequest.md +0 -50
  293. package/docs/IndexOrderRequest.md +0 -64
  294. package/docs/IndexTransactionRequest.md +0 -60
  295. package/docs/LiAddressResource.md +0 -52
  296. package/docs/LiAddressResourceArrayResponse.md +0 -34
  297. package/docs/LineItemDiscountResource.md +0 -40
  298. package/docs/LineItemDiscountResourceArrayResponse.md +0 -34
  299. package/docs/LineItemListResource.md +0 -50
  300. package/docs/LineItemListResourceArrayResponse.md +0 -34
  301. package/docs/OrderListResource.md +0 -64
  302. package/docs/OrderListResourceArrayResponse.md +0 -34
  303. package/docs/OrderLiteResource.md +0 -44
  304. package/docs/OrderLiteResourceArrayResponse.md +0 -34
  305. package/docs/OrderStatusWithCountResource.md +0 -40
  306. package/docs/OrderStatusWithCountResourceArrayResponse.md +0 -34
  307. package/docs/OrdersApi.md +0 -813
  308. package/docs/PaginatedCartListResourceResponse.md +0 -36
  309. package/docs/PaginatedCustomerListResourceResponse.md +0 -36
  310. package/docs/PaginatedOrderListResourceResponse.md +0 -36
  311. package/docs/PaginatedTransactionResourceResponse.md +0 -36
  312. package/docs/PaymentMethod.md +0 -32
  313. package/docs/PaymentSource.md +0 -32
  314. package/docs/PaymentStatus.md +0 -32
  315. package/docs/ProductChildCartLiteResource.md +0 -52
  316. package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
  317. package/docs/RefundTransactionRequest.md +0 -36
  318. package/docs/ShippingType.md +0 -32
  319. package/docs/StoreCartRequest.md +0 -68
  320. package/docs/StoreCartRequestCustomer.md +0 -40
  321. package/docs/StoreCartRequestItemsInner.md +0 -38
  322. package/docs/StoreCartRequestShippingAddress.md +0 -50
  323. package/docs/StoreCustomerRequest.md +0 -42
  324. package/docs/StoreTransactionRequest.md +0 -46
  325. package/docs/TransactionLiteResource.md +0 -48
  326. package/docs/TransactionLiteResourceArrayResponse.md +0 -34
  327. package/docs/TransactionResource.md +0 -64
  328. package/docs/TransactionResourceArrayResponse.md +0 -34
  329. package/docs/TransactionType.md +0 -32
  330. package/docs/TransactionsApi.md +0 -209
  331. package/docs/UpdateCartRequest.md +0 -60
  332. package/docs/UpdateCustomerRequest.md +0 -42
  333. package/docs/UpdateItemCartRequest.md +0 -36
  334. package/docs/UpdateItemOrderRequest.md +0 -36
  335. package/docs/UpdateOrderRequest.md +0 -52
  336. package/docs/UpdateOrderRequestBillingAddress.md +0 -50
  337. package/docs/UpdateOrderRequestShippingAddress.md +0 -50
  338. package/src/apis/CartsApi.ts +0 -693
  339. package/src/apis/CustomersApi.ts +0 -237
  340. package/src/apis/OrdersApi.ts +0 -686
  341. package/src/apis/TransactionsApi.ts +0 -193
  342. package/src/models/AddressType.ts +0 -53
  343. package/src/models/AdminOrderResource.ts +0 -423
  344. package/src/models/AdminOrderResourceArrayResponse.ts +0 -73
  345. package/src/models/AttachCouponCartRequest.ts +0 -66
  346. package/src/models/AttachCouponOrderRequest.ts +0 -66
  347. package/src/models/AttachItemCartRequest.ts +0 -83
  348. package/src/models/AttachItemOrderRequest.ts +0 -83
  349. package/src/models/CartCouponResource.ts +0 -93
  350. package/src/models/CartCouponResourceArrayResponse.ts +0 -73
  351. package/src/models/CartListResource.ts +0 -225
  352. package/src/models/CartListResourceArrayResponse.ts +0 -73
  353. package/src/models/CartOrderSource.ts +0 -57
  354. package/src/models/CartResource.ts +0 -381
  355. package/src/models/CartResourceArrayResponse.ts +0 -73
  356. package/src/models/CartStatus.ts +0 -54
  357. package/src/models/CustomerListResource.ts +0 -134
  358. package/src/models/CustomerListResourceArrayResponse.ts +0 -73
  359. package/src/models/CustomerResource.ts +0 -134
  360. package/src/models/CustomerResourceArrayResponse.ts +0 -73
  361. package/src/models/DetachCouponCartRequest.ts +0 -66
  362. package/src/models/DetachCouponOrderRequest.ts +0 -66
  363. package/src/models/DiscountType.ts +0 -54
  364. package/src/models/DiscountValueType.ts +0 -53
  365. package/src/models/GetAllOrderRequest.ts +0 -160
  366. package/src/models/IndexCartRequest.ts +0 -224
  367. package/src/models/IndexCustomerRequest.ts +0 -152
  368. package/src/models/IndexOrderRequest.ts +0 -208
  369. package/src/models/IndexTransactionRequest.ts +0 -190
  370. package/src/models/LiAddressResource.ts +0 -145
  371. package/src/models/LiAddressResourceArrayResponse.ts +0 -73
  372. package/src/models/LineItemDiscountResource.ts +0 -93
  373. package/src/models/LineItemDiscountResourceArrayResponse.ts +0 -73
  374. package/src/models/LineItemListResource.ts +0 -152
  375. package/src/models/LineItemListResourceArrayResponse.ts +0 -73
  376. package/src/models/OrderListResource.ts +0 -225
  377. package/src/models/OrderListResourceArrayResponse.ts +0 -73
  378. package/src/models/OrderLiteResource.ts +0 -109
  379. package/src/models/OrderLiteResourceArrayResponse.ts +0 -73
  380. package/src/models/OrderStatusWithCountResource.ts +0 -93
  381. package/src/models/OrderStatusWithCountResourceArrayResponse.ts +0 -73
  382. package/src/models/PaginatedCartListResourceResponse.ts +0 -90
  383. package/src/models/PaginatedCustomerListResourceResponse.ts +0 -90
  384. package/src/models/PaginatedOrderListResourceResponse.ts +0 -90
  385. package/src/models/PaginatedTransactionResourceResponse.ts +0 -90
  386. package/src/models/PaymentMethod.ts +0 -58
  387. package/src/models/PaymentSource.ts +0 -54
  388. package/src/models/PaymentStatus.ts +0 -53
  389. package/src/models/ProductChildCartLiteResource.ts +0 -162
  390. package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
  391. package/src/models/RefundTransactionRequest.ts +0 -74
  392. package/src/models/ShippingType.ts +0 -56
  393. package/src/models/StoreCartRequest.ts +0 -252
  394. package/src/models/StoreCartRequestCustomer.ts +0 -89
  395. package/src/models/StoreCartRequestItemsInner.ts +0 -83
  396. package/src/models/StoreCartRequestShippingAddress.ts +0 -129
  397. package/src/models/StoreCustomerRequest.ts +0 -101
  398. package/src/models/StoreTransactionRequest.ts +0 -131
  399. package/src/models/TransactionLiteResource.ts +0 -128
  400. package/src/models/TransactionLiteResourceArrayResponse.ts +0 -73
  401. package/src/models/TransactionResource.ts +0 -195
  402. package/src/models/TransactionResourceArrayResponse.ts +0 -73
  403. package/src/models/TransactionType.ts +0 -53
  404. package/src/models/UpdateCartRequest.ts +0 -211
  405. package/src/models/UpdateCustomerRequest.ts +0 -100
  406. package/src/models/UpdateItemCartRequest.ts +0 -74
  407. package/src/models/UpdateItemOrderRequest.ts +0 -74
  408. package/src/models/UpdateOrderRequest.ts +0 -183
  409. package/src/models/UpdateOrderRequestBillingAddress.ts +0 -130
  410. package/src/models/UpdateOrderRequestShippingAddress.ts +0 -130
@@ -1,162 +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 { LabelResource } from './LabelResource';
17
- import {
18
- LabelResourceFromJSON,
19
- LabelResourceFromJSONTyped,
20
- LabelResourceToJSON,
21
- LabelResourceToJSONTyped,
22
- } from './LabelResource';
23
- import type { AssetLiteResource } from './AssetLiteResource';
24
- import {
25
- AssetLiteResourceFromJSON,
26
- AssetLiteResourceFromJSONTyped,
27
- AssetLiteResourceToJSON,
28
- AssetLiteResourceToJSONTyped,
29
- } from './AssetLiteResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface ProductChildCartLiteResource
35
- */
36
- export interface ProductChildCartLiteResource {
37
- /**
38
- *
39
- * @type {number}
40
- * @memberof ProductChildCartLiteResource
41
- */
42
- id: number;
43
- /**
44
- *
45
- * @type {number}
46
- * @memberof ProductChildCartLiteResource
47
- */
48
- parentId: number;
49
- /**
50
- *
51
- * @type {string}
52
- * @memberof ProductChildCartLiteResource
53
- */
54
- sku: string;
55
- /**
56
- *
57
- * @type {string}
58
- * @memberof ProductChildCartLiteResource
59
- */
60
- model: string;
61
- /**
62
- *
63
- * @type {string}
64
- * @memberof ProductChildCartLiteResource
65
- */
66
- modelNumber: string;
67
- /**
68
- *
69
- * @type {string}
70
- * @memberof ProductChildCartLiteResource
71
- */
72
- name: string;
73
- /**
74
- *
75
- * @type {number}
76
- * @memberof ProductChildCartLiteResource
77
- */
78
- stock: number;
79
- /**
80
- *
81
- * @type {number}
82
- * @memberof ProductChildCartLiteResource
83
- */
84
- salePrice: number;
85
- /**
86
- *
87
- * @type {AssetLiteResource}
88
- * @memberof ProductChildCartLiteResource
89
- */
90
- thumbnail: AssetLiteResource | null;
91
- /**
92
- *
93
- * @type {LabelResource}
94
- * @memberof ProductChildCartLiteResource
95
- */
96
- label: LabelResource | null;
97
- }
98
-
99
- /**
100
- * Check if a given object implements the ProductChildCartLiteResource interface.
101
- */
102
- export function instanceOfProductChildCartLiteResource(value: object): value is ProductChildCartLiteResource {
103
- if (!('id' in value) || value['id'] === undefined) return false;
104
- if (!('parentId' in value) || value['parentId'] === undefined) return false;
105
- if (!('sku' in value) || value['sku'] === undefined) return false;
106
- if (!('model' in value) || value['model'] === undefined) return false;
107
- if (!('modelNumber' in value) || value['modelNumber'] === undefined) return false;
108
- if (!('name' in value) || value['name'] === undefined) return false;
109
- if (!('stock' in value) || value['stock'] === undefined) return false;
110
- if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
111
- if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
112
- if (!('label' in value) || value['label'] === undefined) return false;
113
- return true;
114
- }
115
-
116
- export function ProductChildCartLiteResourceFromJSON(json: any): ProductChildCartLiteResource {
117
- return ProductChildCartLiteResourceFromJSONTyped(json, false);
118
- }
119
-
120
- export function ProductChildCartLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResource {
121
- if (json == null) {
122
- return json;
123
- }
124
- return {
125
-
126
- 'id': json['id'],
127
- 'parentId': json['parent_id'],
128
- 'sku': json['sku'],
129
- 'model': json['model'],
130
- 'modelNumber': json['model_number'],
131
- 'name': json['name'],
132
- 'stock': json['stock'],
133
- 'salePrice': json['sale_price'],
134
- 'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
135
- 'label': LabelResourceFromJSON(json['label']),
136
- };
137
- }
138
-
139
- export function ProductChildCartLiteResourceToJSON(json: any): ProductChildCartLiteResource {
140
- return ProductChildCartLiteResourceToJSONTyped(json, false);
141
- }
142
-
143
- export function ProductChildCartLiteResourceToJSONTyped(value?: ProductChildCartLiteResource | null, ignoreDiscriminator: boolean = false): any {
144
- if (value == null) {
145
- return value;
146
- }
147
-
148
- return {
149
-
150
- 'id': value['id'],
151
- 'parent_id': value['parentId'],
152
- 'sku': value['sku'],
153
- 'model': value['model'],
154
- 'model_number': value['modelNumber'],
155
- 'name': value['name'],
156
- 'stock': value['stock'],
157
- 'sale_price': value['salePrice'],
158
- 'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
159
- 'label': LabelResourceToJSON(value['label']),
160
- };
161
- }
162
-
@@ -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 { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
17
- import {
18
- ProductChildCartLiteResourceFromJSON,
19
- ProductChildCartLiteResourceFromJSONTyped,
20
- ProductChildCartLiteResourceToJSON,
21
- ProductChildCartLiteResourceToJSONTyped,
22
- } from './ProductChildCartLiteResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface ProductChildCartLiteResourceArrayResponse
28
- */
29
- export interface ProductChildCartLiteResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<ProductChildCartLiteResource>}
33
- * @memberof ProductChildCartLiteResourceArrayResponse
34
- */
35
- data?: Array<ProductChildCartLiteResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
40
- */
41
- export function instanceOfProductChildCartLiteResourceArrayResponse(value: object): value is ProductChildCartLiteResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function ProductChildCartLiteResourceArrayResponseFromJSON(json: any): ProductChildCartLiteResourceArrayResponse {
46
- return ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductChildCartLiteResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function ProductChildCartLiteResourceArrayResponseToJSON(json: any): ProductChildCartLiteResourceArrayResponse {
60
- return ProductChildCartLiteResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function ProductChildCartLiteResourceArrayResponseToJSONTyped(value?: ProductChildCartLiteResourceArrayResponse | 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(ProductChildCartLiteResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,74 +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
- /**
17
- *
18
- * @export
19
- * @interface RefundTransactionRequest
20
- */
21
- export interface RefundTransactionRequest {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof RefundTransactionRequest
26
- */
27
- amount: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof RefundTransactionRequest
32
- */
33
- description?: string | null;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the RefundTransactionRequest interface.
38
- */
39
- export function instanceOfRefundTransactionRequest(value: object): value is RefundTransactionRequest {
40
- if (!('amount' in value) || value['amount'] === undefined) return false;
41
- return true;
42
- }
43
-
44
- export function RefundTransactionRequestFromJSON(json: any): RefundTransactionRequest {
45
- return RefundTransactionRequestFromJSONTyped(json, false);
46
- }
47
-
48
- export function RefundTransactionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefundTransactionRequest {
49
- if (json == null) {
50
- return json;
51
- }
52
- return {
53
-
54
- 'amount': json['amount'],
55
- 'description': json['description'] == null ? undefined : json['description'],
56
- };
57
- }
58
-
59
- export function RefundTransactionRequestToJSON(json: any): RefundTransactionRequest {
60
- return RefundTransactionRequestToJSONTyped(json, false);
61
- }
62
-
63
- export function RefundTransactionRequestToJSONTyped(value?: RefundTransactionRequest | null, ignoreDiscriminator: boolean = false): any {
64
- if (value == null) {
65
- return value;
66
- }
67
-
68
- return {
69
-
70
- 'amount': value['amount'],
71
- 'description': value['description'],
72
- };
73
- }
74
-
@@ -1,56 +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 ShippingType = {
21
- Pickup: 'pickup',
22
- Delivery: 'delivery',
23
- Express: 'express',
24
- Courier: 'courier',
25
- DontShip: 'dont_ship'
26
- } as const;
27
- export type ShippingType = typeof ShippingType[keyof typeof ShippingType];
28
-
29
-
30
- export function instanceOfShippingType(value: any): boolean {
31
- for (const key in ShippingType) {
32
- if (Object.prototype.hasOwnProperty.call(ShippingType, key)) {
33
- if (ShippingType[key as keyof typeof ShippingType] === value) {
34
- return true;
35
- }
36
- }
37
- }
38
- return false;
39
- }
40
-
41
- export function ShippingTypeFromJSON(json: any): ShippingType {
42
- return ShippingTypeFromJSONTyped(json, false);
43
- }
44
-
45
- export function ShippingTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShippingType {
46
- return json as ShippingType;
47
- }
48
-
49
- export function ShippingTypeToJSON(value?: ShippingType | null): any {
50
- return value as any;
51
- }
52
-
53
- export function ShippingTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ShippingType {
54
- return value as ShippingType;
55
- }
56
-
@@ -1,252 +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 { StoreCartRequestShippingAddress } from './StoreCartRequestShippingAddress';
17
- import {
18
- StoreCartRequestShippingAddressFromJSON,
19
- StoreCartRequestShippingAddressFromJSONTyped,
20
- StoreCartRequestShippingAddressToJSON,
21
- StoreCartRequestShippingAddressToJSONTyped,
22
- } from './StoreCartRequestShippingAddress';
23
- import type { StoreCartRequestCustomer } from './StoreCartRequestCustomer';
24
- import {
25
- StoreCartRequestCustomerFromJSON,
26
- StoreCartRequestCustomerFromJSONTyped,
27
- StoreCartRequestCustomerToJSON,
28
- StoreCartRequestCustomerToJSONTyped,
29
- } from './StoreCartRequestCustomer';
30
- import type { StoreCartRequestItemsInner } from './StoreCartRequestItemsInner';
31
- import {
32
- StoreCartRequestItemsInnerFromJSON,
33
- StoreCartRequestItemsInnerFromJSONTyped,
34
- StoreCartRequestItemsInnerToJSON,
35
- StoreCartRequestItemsInnerToJSONTyped,
36
- } from './StoreCartRequestItemsInner';
37
-
38
- /**
39
- *
40
- * @export
41
- * @interface StoreCartRequest
42
- */
43
- export interface StoreCartRequest {
44
- /**
45
- *
46
- * @type {number}
47
- * @memberof StoreCartRequest
48
- */
49
- customerId?: number | null;
50
- /**
51
- *
52
- * @type {number}
53
- * @memberof StoreCartRequest
54
- */
55
- siteId: number;
56
- /**
57
- *
58
- * @type {string}
59
- * @memberof StoreCartRequest
60
- */
61
- sessionToken?: string | null;
62
- /**
63
- *
64
- * @type {string}
65
- * @memberof StoreCartRequest
66
- */
67
- paymentToken?: string | null;
68
- /**
69
- *
70
- * @type {string}
71
- * @memberof StoreCartRequest
72
- */
73
- guestEmail?: string | null;
74
- /**
75
- *
76
- * @type {StoreCartRequestSourceEnum}
77
- * @memberof StoreCartRequest
78
- */
79
- source: StoreCartRequestSourceEnum;
80
- /**
81
- *
82
- * @type {Array<StoreCartRequestItemsInner>}
83
- * @memberof StoreCartRequest
84
- */
85
- items?: Array<StoreCartRequestItemsInner>;
86
- /**
87
- *
88
- * @type {StoreCartRequestCustomer}
89
- * @memberof StoreCartRequest
90
- */
91
- customer?: StoreCartRequestCustomer;
92
- /**
93
- *
94
- * @type {StoreCartRequestShippingTypeEnum}
95
- * @memberof StoreCartRequest
96
- */
97
- shippingType?: StoreCartRequestShippingTypeEnum | null;
98
- /**
99
- *
100
- * @type {number}
101
- * @memberof StoreCartRequest
102
- */
103
- shippingSubtotal?: number | null;
104
- /**
105
- *
106
- * @type {boolean}
107
- * @memberof StoreCartRequest
108
- */
109
- overrideShipping?: boolean;
110
- /**
111
- *
112
- * @type {number}
113
- * @memberof StoreCartRequest
114
- */
115
- insuranceAmount?: number | null;
116
- /**
117
- *
118
- * @type {boolean}
119
- * @memberof StoreCartRequest
120
- */
121
- overrideInsurance?: boolean;
122
- /**
123
- *
124
- * @type {boolean}
125
- * @memberof StoreCartRequest
126
- */
127
- useAsBillingAddress?: boolean;
128
- /**
129
- *
130
- * @type {number}
131
- * @memberof StoreCartRequest
132
- */
133
- shippingAddressId?: number | null;
134
- /**
135
- *
136
- * @type {number}
137
- * @memberof StoreCartRequest
138
- */
139
- billingAddressId?: number | null;
140
- /**
141
- *
142
- * @type {StoreCartRequestShippingAddress}
143
- * @memberof StoreCartRequest
144
- */
145
- shippingAddress?: StoreCartRequestShippingAddress;
146
- /**
147
- *
148
- * @type {StoreCartRequestShippingAddress}
149
- * @memberof StoreCartRequest
150
- */
151
- billingAddress?: StoreCartRequestShippingAddress;
152
- }
153
-
154
-
155
- /**
156
- * @export
157
- */
158
- export const StoreCartRequestSourceEnum = {
159
- Checkout: 'checkout',
160
- Admin: 'admin',
161
- Phone: 'phone',
162
- Email: 'email',
163
- Ebay: 'ebay',
164
- InStore: 'in_store'
165
- } as const;
166
- export type StoreCartRequestSourceEnum = typeof StoreCartRequestSourceEnum[keyof typeof StoreCartRequestSourceEnum];
167
-
168
- /**
169
- * @export
170
- */
171
- export const StoreCartRequestShippingTypeEnum = {
172
- Pickup: 'pickup',
173
- Delivery: 'delivery',
174
- Express: 'express',
175
- Courier: 'courier',
176
- DontShip: 'dont_ship'
177
- } as const;
178
- export type StoreCartRequestShippingTypeEnum = typeof StoreCartRequestShippingTypeEnum[keyof typeof StoreCartRequestShippingTypeEnum];
179
-
180
-
181
- /**
182
- * Check if a given object implements the StoreCartRequest interface.
183
- */
184
- export function instanceOfStoreCartRequest(value: object): value is StoreCartRequest {
185
- if (!('siteId' in value) || value['siteId'] === undefined) return false;
186
- if (!('source' in value) || value['source'] === undefined) return false;
187
- return true;
188
- }
189
-
190
- export function StoreCartRequestFromJSON(json: any): StoreCartRequest {
191
- return StoreCartRequestFromJSONTyped(json, false);
192
- }
193
-
194
- export function StoreCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCartRequest {
195
- if (json == null) {
196
- return json;
197
- }
198
- return {
199
-
200
- 'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
201
- 'siteId': json['site_id'],
202
- 'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
203
- 'paymentToken': json['payment_token'] == null ? undefined : json['payment_token'],
204
- 'guestEmail': json['guest_email'] == null ? undefined : json['guest_email'],
205
- 'source': json['source'],
206
- 'items': json['items'] == null ? undefined : ((json['items'] as Array<any>).map(StoreCartRequestItemsInnerFromJSON)),
207
- 'customer': json['customer'] == null ? undefined : StoreCartRequestCustomerFromJSON(json['customer']),
208
- 'shippingType': json['shipping_type'] == null ? undefined : json['shipping_type'],
209
- 'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
210
- 'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
211
- 'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
212
- 'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
213
- 'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
214
- 'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
215
- 'billingAddressId': json['billing_address_id'] == null ? undefined : json['billing_address_id'],
216
- 'shippingAddress': json['shipping_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['shipping_address']),
217
- 'billingAddress': json['billing_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['billing_address']),
218
- };
219
- }
220
-
221
- export function StoreCartRequestToJSON(json: any): StoreCartRequest {
222
- return StoreCartRequestToJSONTyped(json, false);
223
- }
224
-
225
- export function StoreCartRequestToJSONTyped(value?: StoreCartRequest | null, ignoreDiscriminator: boolean = false): any {
226
- if (value == null) {
227
- return value;
228
- }
229
-
230
- return {
231
-
232
- 'customer_id': value['customerId'],
233
- 'site_id': value['siteId'],
234
- 'session_token': value['sessionToken'],
235
- 'payment_token': value['paymentToken'],
236
- 'guest_email': value['guestEmail'],
237
- 'source': value['source'],
238
- 'items': value['items'] == null ? undefined : ((value['items'] as Array<any>).map(StoreCartRequestItemsInnerToJSON)),
239
- 'customer': StoreCartRequestCustomerToJSON(value['customer']),
240
- 'shipping_type': value['shippingType'],
241
- 'shipping_subtotal': value['shippingSubtotal'],
242
- 'override_shipping': value['overrideShipping'],
243
- 'insurance_amount': value['insuranceAmount'],
244
- 'override_insurance': value['overrideInsurance'],
245
- 'use_as_billing_address': value['useAsBillingAddress'],
246
- 'shipping_address_id': value['shippingAddressId'],
247
- 'billing_address_id': value['billingAddressId'],
248
- 'shipping_address': StoreCartRequestShippingAddressToJSON(value['shippingAddress']),
249
- 'billing_address': StoreCartRequestShippingAddressToJSON(value['billingAddress']),
250
- };
251
- }
252
-
@@ -1,89 +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
- /**
17
- *
18
- * @export
19
- * @interface StoreCartRequestCustomer
20
- */
21
- export interface StoreCartRequestCustomer {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof StoreCartRequestCustomer
26
- */
27
- firstName?: string | null;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof StoreCartRequestCustomer
32
- */
33
- lastName?: string | null;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof StoreCartRequestCustomer
38
- */
39
- email?: string | null;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof StoreCartRequestCustomer
44
- */
45
- phone?: string | null;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the StoreCartRequestCustomer interface.
50
- */
51
- export function instanceOfStoreCartRequestCustomer(value: object): value is StoreCartRequestCustomer {
52
- return true;
53
- }
54
-
55
- export function StoreCartRequestCustomerFromJSON(json: any): StoreCartRequestCustomer {
56
- return StoreCartRequestCustomerFromJSONTyped(json, false);
57
- }
58
-
59
- export function StoreCartRequestCustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCartRequestCustomer {
60
- if (json == null) {
61
- return json;
62
- }
63
- return {
64
-
65
- 'firstName': json['first_name'] == null ? undefined : json['first_name'],
66
- 'lastName': json['last_name'] == null ? undefined : json['last_name'],
67
- 'email': json['email'] == null ? undefined : json['email'],
68
- 'phone': json['phone'] == null ? undefined : json['phone'],
69
- };
70
- }
71
-
72
- export function StoreCartRequestCustomerToJSON(json: any): StoreCartRequestCustomer {
73
- return StoreCartRequestCustomerToJSONTyped(json, false);
74
- }
75
-
76
- export function StoreCartRequestCustomerToJSONTyped(value?: StoreCartRequestCustomer | null, ignoreDiscriminator: boolean = false): any {
77
- if (value == null) {
78
- return value;
79
- }
80
-
81
- return {
82
-
83
- 'first_name': value['firstName'],
84
- 'last_name': value['lastName'],
85
- 'email': value['email'],
86
- 'phone': value['phone'],
87
- };
88
- }
89
-