@digital8/lighting-illusions-ts-sdk 0.0.2053 → 0.0.2054

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 (389) hide show
  1. package/.openapi-generator/FILES +0 -166
  2. package/README.md +2 -114
  3. package/dist/apis/AdminApi.d.ts +0 -17
  4. package/dist/apis/AdminApi.js +0 -60
  5. package/dist/apis/ProductApi.d.ts +0 -16
  6. package/dist/apis/ProductApi.js +0 -59
  7. package/dist/apis/SiteApi.d.ts +0 -16
  8. package/dist/apis/SiteApi.js +0 -60
  9. package/dist/apis/index.d.ts +0 -4
  10. package/dist/apis/index.js +0 -4
  11. package/dist/models/AddressFrontendResource.d.ts +1 -1
  12. package/dist/models/AddressFrontendResource.js +3 -1
  13. package/dist/models/AddressResource.d.ts +0 -18
  14. package/dist/models/AddressResource.js +6 -14
  15. package/dist/models/CreateStoreRequestAddress.d.ts +0 -6
  16. package/dist/models/CreateStoreRequestAddress.js +0 -2
  17. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  18. package/dist/models/ExternalApiLogResource.js +1 -3
  19. package/dist/models/ProductChildFrontendResource.d.ts +3 -2
  20. package/dist/models/ProductChildFrontendResource.js +3 -2
  21. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +0 -7
  22. package/dist/models/ProductChildSiteDetailLiteResource.js +0 -5
  23. package/dist/models/SitePaymentConfigResource.d.ts +0 -6
  24. package/dist/models/SitePaymentConfigResource.js +0 -4
  25. package/dist/models/StoreListResource.d.ts +1 -1
  26. package/dist/models/StoreListResource.js +1 -3
  27. package/dist/models/StoreResource.d.ts +1 -1
  28. package/dist/models/StoreResource.js +1 -3
  29. package/dist/models/UpdateSiteRequest.d.ts +0 -6
  30. package/dist/models/UpdateSiteRequest.js +0 -4
  31. package/dist/models/index.d.ts +0 -79
  32. package/dist/models/index.js +0 -79
  33. package/docs/AddressResource.md +0 -6
  34. package/docs/AdminApi.md +0 -66
  35. package/docs/CreateStoreRequestAddress.md +0 -2
  36. package/docs/ProductApi.md +0 -66
  37. package/docs/ProductChildFrontendResource.md +1 -1
  38. package/docs/ProductChildSiteDetailLiteResource.md +0 -2
  39. package/docs/SiteApi.md +0 -66
  40. package/docs/SitePaymentConfigResource.md +0 -2
  41. package/docs/UpdateSiteRequest.md +0 -2
  42. package/package.json +1 -1
  43. package/src/apis/AdminApi.ts +0 -54
  44. package/src/apis/ProductApi.ts +0 -49
  45. package/src/apis/SiteApi.ts +0 -54
  46. package/src/apis/index.ts +0 -4
  47. package/src/models/AddressFrontendResource.ts +3 -2
  48. package/src/models/AddressResource.ts +6 -31
  49. package/src/models/CreateStoreRequestAddress.ts +0 -8
  50. package/src/models/ExternalApiLogResource.ts +2 -3
  51. package/src/models/ProductChildFrontendResource.ts +11 -4
  52. package/src/models/ProductChildSiteDetailLiteResource.ts +0 -16
  53. package/src/models/SitePaymentConfigResource.ts +0 -9
  54. package/src/models/StoreListResource.ts +2 -3
  55. package/src/models/StoreResource.ts +2 -3
  56. package/src/models/UpdateSiteRequest.ts +0 -9
  57. package/src/models/index.ts +0 -79
  58. package/dist/apis/CartsApi.d.ts +0 -215
  59. package/dist/apis/CartsApi.js +0 -814
  60. package/dist/apis/CustomersApi.d.ts +0 -66
  61. package/dist/apis/CustomersApi.js +0 -258
  62. package/dist/apis/OrdersApi.d.ts +0 -213
  63. package/dist/apis/OrdersApi.js +0 -811
  64. package/dist/apis/TransactionsApi.d.ts +0 -69
  65. package/dist/apis/TransactionsApi.js +0 -262
  66. package/dist/models/AddressType.d.ts +0 -25
  67. package/dist/models/AddressType.js +0 -51
  68. package/dist/models/AdminNoteResource.d.ts +0 -57
  69. package/dist/models/AdminNoteResource.js +0 -64
  70. package/dist/models/AdminNoteResourceArrayResponse.d.ts +0 -33
  71. package/dist/models/AdminNoteResourceArrayResponse.js +0 -50
  72. package/dist/models/AdminOrderResource.d.ts +0 -282
  73. package/dist/models/AdminOrderResource.js +0 -211
  74. package/dist/models/AdminOrderResourceArrayResponse.d.ts +0 -33
  75. package/dist/models/AdminOrderResourceArrayResponse.js +0 -50
  76. package/dist/models/AttachCouponRequest.d.ts +0 -32
  77. package/dist/models/AttachCouponRequest.js +0 -51
  78. package/dist/models/AttachLineItemRequest.d.ts +0 -44
  79. package/dist/models/AttachLineItemRequest.js +0 -57
  80. package/dist/models/CartCouponResource.d.ts +0 -50
  81. package/dist/models/CartCouponResource.js +0 -63
  82. package/dist/models/CartCouponResourceArrayResponse.d.ts +0 -33
  83. package/dist/models/CartCouponResourceArrayResponse.js +0 -50
  84. package/dist/models/CartListResource.d.ts +0 -89
  85. package/dist/models/CartListResource.js +0 -82
  86. package/dist/models/CartListResourceArrayResponse.d.ts +0 -33
  87. package/dist/models/CartListResourceArrayResponse.js +0 -50
  88. package/dist/models/CartOrderSource.d.ts +0 -25
  89. package/dist/models/CartOrderSource.js +0 -51
  90. package/dist/models/CartResource.d.ts +0 -235
  91. package/dist/models/CartResource.js +0 -170
  92. package/dist/models/CartResourceArrayResponse.d.ts +0 -33
  93. package/dist/models/CartResourceArrayResponse.js +0 -50
  94. package/dist/models/CartStatus.d.ts +0 -26
  95. package/dist/models/CartStatus.js +0 -52
  96. package/dist/models/CreateCartRequest.d.ts +0 -167
  97. package/dist/models/CreateCartRequest.js +0 -113
  98. package/dist/models/CreateCartRequestItemsInner.d.ts +0 -44
  99. package/dist/models/CreateCartRequestItemsInner.js +0 -57
  100. package/dist/models/CreateCartRequestShippingAddress.d.ts +0 -74
  101. package/dist/models/CreateCartRequestShippingAddress.js +0 -63
  102. package/dist/models/CreateCustomerRequest.d.ts +0 -56
  103. package/dist/models/CreateCustomerRequest.js +0 -65
  104. package/dist/models/CreateTransactionRequest.d.ts +0 -87
  105. package/dist/models/CreateTransactionRequest.js +0 -80
  106. package/dist/models/CustomerListResource.d.ts +0 -63
  107. package/dist/models/CustomerListResource.js +0 -70
  108. package/dist/models/CustomerListResourceArrayResponse.d.ts +0 -33
  109. package/dist/models/CustomerListResourceArrayResponse.js +0 -50
  110. package/dist/models/CustomerResource.d.ts +0 -70
  111. package/dist/models/CustomerResource.js +0 -75
  112. package/dist/models/CustomerResourceArrayResponse.d.ts +0 -33
  113. package/dist/models/CustomerResourceArrayResponse.js +0 -50
  114. package/dist/models/DetachCouponRequest.d.ts +0 -32
  115. package/dist/models/DetachCouponRequest.js +0 -51
  116. package/dist/models/DiscountResource.d.ts +0 -68
  117. package/dist/models/DiscountResource.js +0 -73
  118. package/dist/models/DiscountResourceArrayResponse.d.ts +0 -33
  119. package/dist/models/DiscountResourceArrayResponse.js +0 -50
  120. package/dist/models/DiscountType.d.ts +0 -26
  121. package/dist/models/DiscountType.js +0 -52
  122. package/dist/models/DiscountValueType.d.ts +0 -25
  123. package/dist/models/DiscountValueType.js +0 -51
  124. package/dist/models/LiAddressResource.d.ts +0 -86
  125. package/dist/models/LiAddressResource.js +0 -83
  126. package/dist/models/LiAddressResourceArrayResponse.d.ts +0 -33
  127. package/dist/models/LiAddressResourceArrayResponse.js +0 -50
  128. package/dist/models/LiAdminUserLiteResource.d.ts +0 -50
  129. package/dist/models/LiAdminUserLiteResource.js +0 -61
  130. package/dist/models/LiAdminUserLiteResourceArrayResponse.d.ts +0 -33
  131. package/dist/models/LiAdminUserLiteResourceArrayResponse.js +0 -50
  132. package/dist/models/LineItemDiscountResource.d.ts +0 -50
  133. package/dist/models/LineItemDiscountResource.js +0 -63
  134. package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +0 -33
  135. package/dist/models/LineItemDiscountResourceArrayResponse.js +0 -50
  136. package/dist/models/LineItemListResource.d.ts +0 -89
  137. package/dist/models/LineItemListResource.js +0 -90
  138. package/dist/models/LineItemListResourceArrayResponse.d.ts +0 -33
  139. package/dist/models/LineItemListResourceArrayResponse.js +0 -50
  140. package/dist/models/OmnisendSyncLiteResource.d.ts +0 -44
  141. package/dist/models/OmnisendSyncLiteResource.js +0 -59
  142. package/dist/models/OmnisendSyncLiteResourceArrayResponse.d.ts +0 -33
  143. package/dist/models/OmnisendSyncLiteResourceArrayResponse.js +0 -50
  144. package/dist/models/OrderListResource.d.ts +0 -103
  145. package/dist/models/OrderListResource.js +0 -94
  146. package/dist/models/OrderListResourceArrayResponse.d.ts +0 -33
  147. package/dist/models/OrderListResourceArrayResponse.js +0 -50
  148. package/dist/models/OrderLiteResource.d.ts +0 -62
  149. package/dist/models/OrderLiteResource.js +0 -67
  150. package/dist/models/OrderLiteResourceArrayResponse.d.ts +0 -33
  151. package/dist/models/OrderLiteResourceArrayResponse.js +0 -50
  152. package/dist/models/OrderStatusLiteResource.d.ts +0 -44
  153. package/dist/models/OrderStatusLiteResource.js +0 -59
  154. package/dist/models/OrderStatusLiteResourceArrayResponse.d.ts +0 -33
  155. package/dist/models/OrderStatusLiteResourceArrayResponse.js +0 -50
  156. package/dist/models/OrderStatusWithCountResource.d.ts +0 -50
  157. package/dist/models/OrderStatusWithCountResource.js +0 -63
  158. package/dist/models/OrderStatusWithCountResourceArrayResponse.d.ts +0 -33
  159. package/dist/models/OrderStatusWithCountResourceArrayResponse.js +0 -50
  160. package/dist/models/PaginatedAdminNoteResourceResponse.d.ts +0 -40
  161. package/dist/models/PaginatedAdminNoteResourceResponse.js +0 -57
  162. package/dist/models/PaginatedCartListResourceResponse.d.ts +0 -40
  163. package/dist/models/PaginatedCartListResourceResponse.js +0 -57
  164. package/dist/models/PaginatedCustomerListResourceResponse.d.ts +0 -40
  165. package/dist/models/PaginatedCustomerListResourceResponse.js +0 -57
  166. package/dist/models/PaginatedOrderListResourceResponse.d.ts +0 -40
  167. package/dist/models/PaginatedOrderListResourceResponse.js +0 -57
  168. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
  169. package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
  170. package/dist/models/PaginatedTransactionResourceResponse.d.ts +0 -40
  171. package/dist/models/PaginatedTransactionResourceResponse.js +0 -57
  172. package/dist/models/PaymentMethod.d.ts +0 -30
  173. package/dist/models/PaymentMethod.js +0 -56
  174. package/dist/models/PaymentSource.d.ts +0 -26
  175. package/dist/models/PaymentSource.js +0 -52
  176. package/dist/models/PaymentStatus.d.ts +0 -25
  177. package/dist/models/PaymentStatus.js +0 -51
  178. package/dist/models/ProductChildLineItemLiteResource.d.ts +0 -88
  179. package/dist/models/ProductChildLineItemLiteResource.js +0 -89
  180. package/dist/models/ProductChildLineItemLiteResourceArrayResponse.d.ts +0 -33
  181. package/dist/models/ProductChildLineItemLiteResourceArrayResponse.js +0 -50
  182. package/dist/models/RefundTransactionRequest.d.ts +0 -38
  183. package/dist/models/RefundTransactionRequest.js +0 -53
  184. package/dist/models/SearchAdminNotesRequest.d.ts +0 -102
  185. package/dist/models/SearchAdminNotesRequest.js +0 -82
  186. package/dist/models/SearchAllOrdersRequest.d.ts +0 -105
  187. package/dist/models/SearchAllOrdersRequest.js +0 -85
  188. package/dist/models/SearchCartsRequest.d.ts +0 -146
  189. package/dist/models/SearchCartsRequest.js +0 -98
  190. package/dist/models/SearchCustomersRequest.d.ts +0 -99
  191. package/dist/models/SearchCustomersRequest.js +0 -83
  192. package/dist/models/SearchOrdersRequest.d.ts +0 -153
  193. package/dist/models/SearchOrdersRequest.js +0 -101
  194. package/dist/models/SearchTransactionsRequest.d.ts +0 -135
  195. package/dist/models/SearchTransactionsRequest.js +0 -98
  196. package/dist/models/ShippingType.d.ts +0 -28
  197. package/dist/models/ShippingType.js +0 -54
  198. package/dist/models/SkuSearchProductChildRequest.d.ts +0 -38
  199. package/dist/models/SkuSearchProductChildRequest.js +0 -55
  200. package/dist/models/StoreTransactionResource.d.ts +0 -39
  201. package/dist/models/StoreTransactionResource.js +0 -56
  202. package/dist/models/StoreTransactionResourceArrayResponse.d.ts +0 -33
  203. package/dist/models/StoreTransactionResourceArrayResponse.js +0 -50
  204. package/dist/models/TransactionListResource.d.ts +0 -116
  205. package/dist/models/TransactionListResource.js +0 -97
  206. package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
  207. package/dist/models/TransactionListResourceArrayResponse.js +0 -50
  208. package/dist/models/TransactionLiteResource.d.ts +0 -98
  209. package/dist/models/TransactionLiteResource.js +0 -89
  210. package/dist/models/TransactionLiteResourceArrayResponse.d.ts +0 -33
  211. package/dist/models/TransactionLiteResourceArrayResponse.js +0 -50
  212. package/dist/models/TransactionResource.d.ts +0 -128
  213. package/dist/models/TransactionResource.js +0 -101
  214. package/dist/models/TransactionResourceArrayResponse.d.ts +0 -33
  215. package/dist/models/TransactionResourceArrayResponse.js +0 -50
  216. package/dist/models/TransactionType.d.ts +0 -25
  217. package/dist/models/TransactionType.js +0 -51
  218. package/dist/models/UpdateCartRequest.d.ts +0 -148
  219. package/dist/models/UpdateCartRequest.js +0 -100
  220. package/dist/models/UpdateLineItemRequest.d.ts +0 -38
  221. package/dist/models/UpdateLineItemRequest.js +0 -53
  222. package/dist/models/UpdateOrderRequest.d.ts +0 -130
  223. package/dist/models/UpdateOrderRequest.js +0 -104
  224. package/docs/AddressType.md +0 -32
  225. package/docs/AdminNoteResource.md +0 -42
  226. package/docs/AdminNoteResourceArrayResponse.md +0 -34
  227. package/docs/AdminOrderResource.md +0 -114
  228. package/docs/AdminOrderResourceArrayResponse.md +0 -34
  229. package/docs/AttachCouponRequest.md +0 -34
  230. package/docs/AttachLineItemRequest.md +0 -38
  231. package/docs/CartCouponResource.md +0 -40
  232. package/docs/CartCouponResourceArrayResponse.md +0 -34
  233. package/docs/CartListResource.md +0 -52
  234. package/docs/CartListResourceArrayResponse.md +0 -34
  235. package/docs/CartOrderSource.md +0 -32
  236. package/docs/CartResource.md +0 -100
  237. package/docs/CartResourceArrayResponse.md +0 -34
  238. package/docs/CartStatus.md +0 -32
  239. package/docs/CartsApi.md +0 -821
  240. package/docs/CreateCartRequest.md +0 -72
  241. package/docs/CreateCartRequestItemsInner.md +0 -38
  242. package/docs/CreateCartRequestShippingAddress.md +0 -48
  243. package/docs/CreateCustomerRequest.md +0 -42
  244. package/docs/CreateTransactionRequest.md +0 -48
  245. package/docs/CustomerListResource.md +0 -44
  246. package/docs/CustomerListResourceArrayResponse.md +0 -34
  247. package/docs/CustomerResource.md +0 -46
  248. package/docs/CustomerResourceArrayResponse.md +0 -34
  249. package/docs/CustomersApi.md +0 -206
  250. package/docs/DetachCouponRequest.md +0 -34
  251. package/docs/DiscountResource.md +0 -46
  252. package/docs/DiscountResourceArrayResponse.md +0 -34
  253. package/docs/DiscountType.md +0 -32
  254. package/docs/DiscountValueType.md +0 -32
  255. package/docs/LiAddressResource.md +0 -52
  256. package/docs/LiAddressResourceArrayResponse.md +0 -34
  257. package/docs/LiAdminUserLiteResource.md +0 -40
  258. package/docs/LiAdminUserLiteResourceArrayResponse.md +0 -34
  259. package/docs/LineItemDiscountResource.md +0 -40
  260. package/docs/LineItemDiscountResourceArrayResponse.md +0 -34
  261. package/docs/LineItemListResource.md +0 -52
  262. package/docs/LineItemListResourceArrayResponse.md +0 -34
  263. package/docs/OmnisendSyncLiteResource.md +0 -38
  264. package/docs/OmnisendSyncLiteResourceArrayResponse.md +0 -34
  265. package/docs/OrderListResource.md +0 -56
  266. package/docs/OrderListResourceArrayResponse.md +0 -34
  267. package/docs/OrderLiteResource.md +0 -44
  268. package/docs/OrderLiteResourceArrayResponse.md +0 -34
  269. package/docs/OrderStatusLiteResource.md +0 -38
  270. package/docs/OrderStatusLiteResourceArrayResponse.md +0 -34
  271. package/docs/OrderStatusWithCountResource.md +0 -40
  272. package/docs/OrderStatusWithCountResourceArrayResponse.md +0 -34
  273. package/docs/OrdersApi.md +0 -813
  274. package/docs/PaginatedAdminNoteResourceResponse.md +0 -36
  275. package/docs/PaginatedCartListResourceResponse.md +0 -36
  276. package/docs/PaginatedCustomerListResourceResponse.md +0 -36
  277. package/docs/PaginatedOrderListResourceResponse.md +0 -36
  278. package/docs/PaginatedTransactionListResourceResponse.md +0 -36
  279. package/docs/PaginatedTransactionResourceResponse.md +0 -36
  280. package/docs/PaymentMethod.md +0 -32
  281. package/docs/PaymentSource.md +0 -32
  282. package/docs/PaymentStatus.md +0 -32
  283. package/docs/ProductChildLineItemLiteResource.md +0 -52
  284. package/docs/ProductChildLineItemLiteResourceArrayResponse.md +0 -34
  285. package/docs/RefundTransactionRequest.md +0 -36
  286. package/docs/SearchAdminNotesRequest.md +0 -52
  287. package/docs/SearchAllOrdersRequest.md +0 -52
  288. package/docs/SearchCartsRequest.md +0 -66
  289. package/docs/SearchCustomersRequest.md +0 -50
  290. package/docs/SearchOrdersRequest.md +0 -68
  291. package/docs/SearchTransactionsRequest.md +0 -60
  292. package/docs/ShippingType.md +0 -32
  293. package/docs/SkuSearchProductChildRequest.md +0 -36
  294. package/docs/StoreTransactionResource.md +0 -36
  295. package/docs/StoreTransactionResourceArrayResponse.md +0 -34
  296. package/docs/TransactionListResource.md +0 -62
  297. package/docs/TransactionListResourceArrayResponse.md +0 -34
  298. package/docs/TransactionLiteResource.md +0 -56
  299. package/docs/TransactionLiteResourceArrayResponse.md +0 -34
  300. package/docs/TransactionResource.md +0 -66
  301. package/docs/TransactionResourceArrayResponse.md +0 -34
  302. package/docs/TransactionType.md +0 -32
  303. package/docs/TransactionsApi.md +0 -209
  304. package/docs/UpdateCartRequest.md +0 -66
  305. package/docs/UpdateLineItemRequest.md +0 -36
  306. package/docs/UpdateOrderRequest.md +0 -60
  307. package/src/apis/CartsApi.ts +0 -693
  308. package/src/apis/CustomersApi.ts +0 -179
  309. package/src/apis/OrdersApi.ts +0 -686
  310. package/src/apis/TransactionsApi.ts +0 -193
  311. package/src/models/AddressType.ts +0 -53
  312. package/src/models/AdminNoteResource.ts +0 -108
  313. package/src/models/AdminNoteResourceArrayResponse.ts +0 -73
  314. package/src/models/AdminOrderResource.ts +0 -492
  315. package/src/models/AdminOrderResourceArrayResponse.ts +0 -73
  316. package/src/models/AttachCouponRequest.ts +0 -66
  317. package/src/models/AttachLineItemRequest.ts +0 -83
  318. package/src/models/CartCouponResource.ts +0 -93
  319. package/src/models/CartCouponResourceArrayResponse.ts +0 -73
  320. package/src/models/CartListResource.ts +0 -165
  321. package/src/models/CartListResourceArrayResponse.ts +0 -73
  322. package/src/models/CartOrderSource.ts +0 -53
  323. package/src/models/CartResource.ts +0 -390
  324. package/src/models/CartResourceArrayResponse.ts +0 -73
  325. package/src/models/CartStatus.ts +0 -54
  326. package/src/models/CreateCartRequest.ts +0 -258
  327. package/src/models/CreateCartRequestItemsInner.ts +0 -83
  328. package/src/models/CreateCartRequestShippingAddress.ts +0 -121
  329. package/src/models/CreateCustomerRequest.ts +0 -101
  330. package/src/models/CreateTransactionRequest.ts +0 -139
  331. package/src/models/CustomerListResource.ts +0 -118
  332. package/src/models/CustomerListResourceArrayResponse.ts +0 -73
  333. package/src/models/CustomerResource.ts +0 -134
  334. package/src/models/CustomerResourceArrayResponse.ts +0 -73
  335. package/src/models/DetachCouponRequest.ts +0 -66
  336. package/src/models/DiscountResource.ts +0 -119
  337. package/src/models/DiscountResourceArrayResponse.ts +0 -73
  338. package/src/models/DiscountType.ts +0 -54
  339. package/src/models/DiscountValueType.ts +0 -53
  340. package/src/models/LiAddressResource.ts +0 -145
  341. package/src/models/LiAddressResourceArrayResponse.ts +0 -73
  342. package/src/models/LiAdminUserLiteResource.ts +0 -92
  343. package/src/models/LiAdminUserLiteResourceArrayResponse.ts +0 -73
  344. package/src/models/LineItemDiscountResource.ts +0 -93
  345. package/src/models/LineItemDiscountResourceArrayResponse.ts +0 -73
  346. package/src/models/LineItemListResource.ts +0 -169
  347. package/src/models/LineItemListResourceArrayResponse.ts +0 -73
  348. package/src/models/OmnisendSyncLiteResource.ts +0 -84
  349. package/src/models/OmnisendSyncLiteResourceArrayResponse.ts +0 -73
  350. package/src/models/OrderListResource.ts +0 -198
  351. package/src/models/OrderListResourceArrayResponse.ts +0 -73
  352. package/src/models/OrderLiteResource.ts +0 -109
  353. package/src/models/OrderLiteResourceArrayResponse.ts +0 -73
  354. package/src/models/OrderStatusLiteResource.ts +0 -84
  355. package/src/models/OrderStatusLiteResourceArrayResponse.ts +0 -73
  356. package/src/models/OrderStatusWithCountResource.ts +0 -93
  357. package/src/models/OrderStatusWithCountResourceArrayResponse.ts +0 -73
  358. package/src/models/PaginatedAdminNoteResourceResponse.ts +0 -90
  359. package/src/models/PaginatedCartListResourceResponse.ts +0 -90
  360. package/src/models/PaginatedCustomerListResourceResponse.ts +0 -90
  361. package/src/models/PaginatedOrderListResourceResponse.ts +0 -90
  362. package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
  363. package/src/models/PaginatedTransactionResourceResponse.ts +0 -90
  364. package/src/models/PaymentMethod.ts +0 -58
  365. package/src/models/PaymentSource.ts +0 -54
  366. package/src/models/PaymentStatus.ts +0 -53
  367. package/src/models/ProductChildLineItemLiteResource.ts +0 -162
  368. package/src/models/ProductChildLineItemLiteResourceArrayResponse.ts +0 -73
  369. package/src/models/RefundTransactionRequest.ts +0 -74
  370. package/src/models/SearchAdminNotesRequest.ts +0 -157
  371. package/src/models/SearchAllOrdersRequest.ts +0 -160
  372. package/src/models/SearchCartsRequest.ts +0 -215
  373. package/src/models/SearchCustomersRequest.ts +0 -152
  374. package/src/models/SearchOrdersRequest.ts +0 -224
  375. package/src/models/SearchTransactionsRequest.ts +0 -199
  376. package/src/models/ShippingType.ts +0 -56
  377. package/src/models/SkuSearchProductChildRequest.ts +0 -75
  378. package/src/models/StoreTransactionResource.ts +0 -83
  379. package/src/models/StoreTransactionResourceArrayResponse.ts +0 -73
  380. package/src/models/TransactionListResource.ts +0 -187
  381. package/src/models/TransactionListResourceArrayResponse.ts +0 -73
  382. package/src/models/TransactionLiteResource.ts +0 -162
  383. package/src/models/TransactionLiteResourceArrayResponse.ts +0 -73
  384. package/src/models/TransactionResource.ts +0 -203
  385. package/src/models/TransactionResourceArrayResponse.ts +0 -73
  386. package/src/models/TransactionType.ts +0 -53
  387. package/src/models/UpdateCartRequest.ts +0 -224
  388. package/src/models/UpdateLineItemRequest.ts +0 -74
  389. package/src/models/UpdateOrderRequest.ts +0 -205
package/docs/CartsApi.md DELETED
@@ -1,821 +0,0 @@
1
- # CartsApi
2
-
3
- All URIs are relative to *http://localhost/api*
4
-
5
- | Method | HTTP request | Description |
6
- |------------- | ------------- | -------------|
7
- | [**attachCouponCart**](CartsApi.md#attachcouponcart) | **POST** /admin-api/carts/{cart}/coupons/attach | Auto-generated: attachCouponCart |
8
- | [**attachItemCart**](CartsApi.md#attachitemcart) | **POST** /admin-api/carts/{cart}/items/attach | Auto-generated: attachItemCart |
9
- | [**destroyCart**](CartsApi.md#destroycart) | **DELETE** /admin-api/carts/{cart}/delete | Auto-generated: destroyCart |
10
- | [**detachCouponCart**](CartsApi.md#detachcouponcart) | **DELETE** /admin-api/carts/{cart}/coupons/detach | Auto-generated: detachCouponCart |
11
- | [**detachItemCart**](CartsApi.md#detachitemcart) | **DELETE** /admin-api/carts/{cart}/items/{lineItem}/detach | Auto-generated: detachItemCart |
12
- | [**indexCart**](CartsApi.md#indexcart) | **POST** /admin-api/carts/list | Auto-generated: indexCart |
13
- | [**sendPaymentLinkCart**](CartsApi.md#sendpaymentlinkcart) | **POST** /admin-api/carts/{cart}/send-payment-link | Auto-generated: sendPaymentLinkCart |
14
- | [**showCart**](CartsApi.md#showcart) | **GET** /admin-api/carts/{cart} | Auto-generated: showCart |
15
- | [**storeCart**](CartsApi.md#storecart) | **POST** /admin-api/carts/create | Auto-generated: storeCart |
16
- | [**storeFromCartOrder**](CartsApi.md#storefromcartorder) | **POST** /admin-api/carts/{cart}/place-order | Auto-generated: storeFromCartOrder |
17
- | [**updateCart**](CartsApi.md#updatecartoperation) | **PUT** /admin-api/carts/{cart}/update | Auto-generated: updateCart |
18
- | [**updateItemCart**](CartsApi.md#updateitemcart) | **PUT** /admin-api/carts/{cart}/items/{lineItem}/update | Auto-generated: updateItemCart |
19
-
20
-
21
-
22
- ## attachCouponCart
23
-
24
- > CartResource attachCouponCart(cart, attachCouponRequest)
25
-
26
- Auto-generated: attachCouponCart
27
-
28
- ### Example
29
-
30
- ```ts
31
- import {
32
- Configuration,
33
- CartsApi,
34
- } from '@digital8/lighting-illusions-ts-sdk';
35
- import type { AttachCouponCartRequest } from '@digital8/lighting-illusions-ts-sdk';
36
-
37
- async function example() {
38
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
39
- const api = new CartsApi();
40
-
41
- const body = {
42
- // number | The id of the cart
43
- cart: 56,
44
- // AttachCouponRequest (optional)
45
- attachCouponRequest: ...,
46
- } satisfies AttachCouponCartRequest;
47
-
48
- try {
49
- const data = await api.attachCouponCart(body);
50
- console.log(data);
51
- } catch (error) {
52
- console.error(error);
53
- }
54
- }
55
-
56
- // Run the test
57
- example().catch(console.error);
58
- ```
59
-
60
- ### Parameters
61
-
62
-
63
- | Name | Type | Description | Notes |
64
- |------------- | ------------- | ------------- | -------------|
65
- | **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
66
- | **attachCouponRequest** | [AttachCouponRequest](AttachCouponRequest.md) | | [Optional] |
67
-
68
- ### Return type
69
-
70
- [**CartResource**](CartResource.md)
71
-
72
- ### Authorization
73
-
74
- No authorization required
75
-
76
- ### HTTP request headers
77
-
78
- - **Content-Type**: `application/json`
79
- - **Accept**: `application/json`
80
-
81
-
82
- ### HTTP response details
83
- | Status code | Description | Response headers |
84
- |-------------|-------------|------------------|
85
- | **200** | Successful resource response | - |
86
-
87
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
88
-
89
-
90
- ## attachItemCart
91
-
92
- > CartResource attachItemCart(cart, attachLineItemRequest)
93
-
94
- Auto-generated: attachItemCart
95
-
96
- ### Example
97
-
98
- ```ts
99
- import {
100
- Configuration,
101
- CartsApi,
102
- } from '@digital8/lighting-illusions-ts-sdk';
103
- import type { AttachItemCartRequest } from '@digital8/lighting-illusions-ts-sdk';
104
-
105
- async function example() {
106
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
107
- const api = new CartsApi();
108
-
109
- const body = {
110
- // number | The id of the cart
111
- cart: 56,
112
- // AttachLineItemRequest (optional)
113
- attachLineItemRequest: ...,
114
- } satisfies AttachItemCartRequest;
115
-
116
- try {
117
- const data = await api.attachItemCart(body);
118
- console.log(data);
119
- } catch (error) {
120
- console.error(error);
121
- }
122
- }
123
-
124
- // Run the test
125
- example().catch(console.error);
126
- ```
127
-
128
- ### Parameters
129
-
130
-
131
- | Name | Type | Description | Notes |
132
- |------------- | ------------- | ------------- | -------------|
133
- | **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
134
- | **attachLineItemRequest** | [AttachLineItemRequest](AttachLineItemRequest.md) | | [Optional] |
135
-
136
- ### Return type
137
-
138
- [**CartResource**](CartResource.md)
139
-
140
- ### Authorization
141
-
142
- No authorization required
143
-
144
- ### HTTP request headers
145
-
146
- - **Content-Type**: `application/json`
147
- - **Accept**: `application/json`
148
-
149
-
150
- ### HTTP response details
151
- | Status code | Description | Response headers |
152
- |-------------|-------------|------------------|
153
- | **200** | Successful resource response | - |
154
-
155
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
156
-
157
-
158
- ## destroyCart
159
-
160
- > GenericResponse destroyCart(cart)
161
-
162
- Auto-generated: destroyCart
163
-
164
- ### Example
165
-
166
- ```ts
167
- import {
168
- Configuration,
169
- CartsApi,
170
- } from '@digital8/lighting-illusions-ts-sdk';
171
- import type { DestroyCartRequest } from '@digital8/lighting-illusions-ts-sdk';
172
-
173
- async function example() {
174
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
175
- const api = new CartsApi();
176
-
177
- const body = {
178
- // number | The id of the cart
179
- cart: 56,
180
- } satisfies DestroyCartRequest;
181
-
182
- try {
183
- const data = await api.destroyCart(body);
184
- console.log(data);
185
- } catch (error) {
186
- console.error(error);
187
- }
188
- }
189
-
190
- // Run the test
191
- example().catch(console.error);
192
- ```
193
-
194
- ### Parameters
195
-
196
-
197
- | Name | Type | Description | Notes |
198
- |------------- | ------------- | ------------- | -------------|
199
- | **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
200
-
201
- ### Return type
202
-
203
- [**GenericResponse**](GenericResponse.md)
204
-
205
- ### Authorization
206
-
207
- No authorization required
208
-
209
- ### HTTP request headers
210
-
211
- - **Content-Type**: Not defined
212
- - **Accept**: `application/json`
213
-
214
-
215
- ### HTTP response details
216
- | Status code | Description | Response headers |
217
- |-------------|-------------|------------------|
218
- | **200** | \\JsonResponse | - |
219
-
220
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
221
-
222
-
223
- ## detachCouponCart
224
-
225
- > CartResource detachCouponCart(cart, detachCouponRequest)
226
-
227
- Auto-generated: detachCouponCart
228
-
229
- ### Example
230
-
231
- ```ts
232
- import {
233
- Configuration,
234
- CartsApi,
235
- } from '@digital8/lighting-illusions-ts-sdk';
236
- import type { DetachCouponCartRequest } from '@digital8/lighting-illusions-ts-sdk';
237
-
238
- async function example() {
239
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
240
- const api = new CartsApi();
241
-
242
- const body = {
243
- // number | The id of the cart
244
- cart: 56,
245
- // DetachCouponRequest (optional)
246
- detachCouponRequest: ...,
247
- } satisfies DetachCouponCartRequest;
248
-
249
- try {
250
- const data = await api.detachCouponCart(body);
251
- console.log(data);
252
- } catch (error) {
253
- console.error(error);
254
- }
255
- }
256
-
257
- // Run the test
258
- example().catch(console.error);
259
- ```
260
-
261
- ### Parameters
262
-
263
-
264
- | Name | Type | Description | Notes |
265
- |------------- | ------------- | ------------- | -------------|
266
- | **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
267
- | **detachCouponRequest** | [DetachCouponRequest](DetachCouponRequest.md) | | [Optional] |
268
-
269
- ### Return type
270
-
271
- [**CartResource**](CartResource.md)
272
-
273
- ### Authorization
274
-
275
- No authorization required
276
-
277
- ### HTTP request headers
278
-
279
- - **Content-Type**: `application/json`
280
- - **Accept**: `application/json`
281
-
282
-
283
- ### HTTP response details
284
- | Status code | Description | Response headers |
285
- |-------------|-------------|------------------|
286
- | **200** | Successful resource response | - |
287
-
288
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
289
-
290
-
291
- ## detachItemCart
292
-
293
- > CartResource detachItemCart(cart, lineItem)
294
-
295
- Auto-generated: detachItemCart
296
-
297
- ### Example
298
-
299
- ```ts
300
- import {
301
- Configuration,
302
- CartsApi,
303
- } from '@digital8/lighting-illusions-ts-sdk';
304
- import type { DetachItemCartRequest } from '@digital8/lighting-illusions-ts-sdk';
305
-
306
- async function example() {
307
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
308
- const api = new CartsApi();
309
-
310
- const body = {
311
- // number | The id of the cart
312
- cart: 56,
313
- // number | The id of the lineItem
314
- lineItem: 56,
315
- } satisfies DetachItemCartRequest;
316
-
317
- try {
318
- const data = await api.detachItemCart(body);
319
- console.log(data);
320
- } catch (error) {
321
- console.error(error);
322
- }
323
- }
324
-
325
- // Run the test
326
- example().catch(console.error);
327
- ```
328
-
329
- ### Parameters
330
-
331
-
332
- | Name | Type | Description | Notes |
333
- |------------- | ------------- | ------------- | -------------|
334
- | **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
335
- | **lineItem** | `number` | The id of the lineItem | [Defaults to `undefined`] |
336
-
337
- ### Return type
338
-
339
- [**CartResource**](CartResource.md)
340
-
341
- ### Authorization
342
-
343
- No authorization required
344
-
345
- ### HTTP request headers
346
-
347
- - **Content-Type**: Not defined
348
- - **Accept**: `application/json`
349
-
350
-
351
- ### HTTP response details
352
- | Status code | Description | Response headers |
353
- |-------------|-------------|------------------|
354
- | **200** | Successful resource response | - |
355
-
356
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
357
-
358
-
359
- ## indexCart
360
-
361
- > PaginatedCartListResourceResponse indexCart(searchCartsRequest)
362
-
363
- Auto-generated: indexCart
364
-
365
- ### Example
366
-
367
- ```ts
368
- import {
369
- Configuration,
370
- CartsApi,
371
- } from '@digital8/lighting-illusions-ts-sdk';
372
- import type { IndexCartRequest } from '@digital8/lighting-illusions-ts-sdk';
373
-
374
- async function example() {
375
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
376
- const api = new CartsApi();
377
-
378
- const body = {
379
- // SearchCartsRequest (optional)
380
- searchCartsRequest: ...,
381
- } satisfies IndexCartRequest;
382
-
383
- try {
384
- const data = await api.indexCart(body);
385
- console.log(data);
386
- } catch (error) {
387
- console.error(error);
388
- }
389
- }
390
-
391
- // Run the test
392
- example().catch(console.error);
393
- ```
394
-
395
- ### Parameters
396
-
397
-
398
- | Name | Type | Description | Notes |
399
- |------------- | ------------- | ------------- | -------------|
400
- | **searchCartsRequest** | [SearchCartsRequest](SearchCartsRequest.md) | | [Optional] |
401
-
402
- ### Return type
403
-
404
- [**PaginatedCartListResourceResponse**](PaginatedCartListResourceResponse.md)
405
-
406
- ### Authorization
407
-
408
- No authorization required
409
-
410
- ### HTTP request headers
411
-
412
- - **Content-Type**: `application/json`
413
- - **Accept**: `application/json`
414
-
415
-
416
- ### HTTP response details
417
- | Status code | Description | Response headers |
418
- |-------------|-------------|------------------|
419
- | **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\CartListResource[]>> | - |
420
-
421
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
422
-
423
-
424
- ## sendPaymentLinkCart
425
-
426
- > CartResource sendPaymentLinkCart(cart)
427
-
428
- Auto-generated: sendPaymentLinkCart
429
-
430
- ### Example
431
-
432
- ```ts
433
- import {
434
- Configuration,
435
- CartsApi,
436
- } from '@digital8/lighting-illusions-ts-sdk';
437
- import type { SendPaymentLinkCartRequest } from '@digital8/lighting-illusions-ts-sdk';
438
-
439
- async function example() {
440
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
441
- const api = new CartsApi();
442
-
443
- const body = {
444
- // number | The id of the cart
445
- cart: 56,
446
- } satisfies SendPaymentLinkCartRequest;
447
-
448
- try {
449
- const data = await api.sendPaymentLinkCart(body);
450
- console.log(data);
451
- } catch (error) {
452
- console.error(error);
453
- }
454
- }
455
-
456
- // Run the test
457
- example().catch(console.error);
458
- ```
459
-
460
- ### Parameters
461
-
462
-
463
- | Name | Type | Description | Notes |
464
- |------------- | ------------- | ------------- | -------------|
465
- | **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
466
-
467
- ### Return type
468
-
469
- [**CartResource**](CartResource.md)
470
-
471
- ### Authorization
472
-
473
- No authorization required
474
-
475
- ### HTTP request headers
476
-
477
- - **Content-Type**: Not defined
478
- - **Accept**: `application/json`
479
-
480
-
481
- ### HTTP response details
482
- | Status code | Description | Response headers |
483
- |-------------|-------------|------------------|
484
- | **200** | Successful resource response | - |
485
-
486
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
487
-
488
-
489
- ## showCart
490
-
491
- > CartResource showCart(cart)
492
-
493
- Auto-generated: showCart
494
-
495
- ### Example
496
-
497
- ```ts
498
- import {
499
- Configuration,
500
- CartsApi,
501
- } from '@digital8/lighting-illusions-ts-sdk';
502
- import type { ShowCartRequest } from '@digital8/lighting-illusions-ts-sdk';
503
-
504
- async function example() {
505
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
506
- const api = new CartsApi();
507
-
508
- const body = {
509
- // number | The id of the cart
510
- cart: 56,
511
- } satisfies ShowCartRequest;
512
-
513
- try {
514
- const data = await api.showCart(body);
515
- console.log(data);
516
- } catch (error) {
517
- console.error(error);
518
- }
519
- }
520
-
521
- // Run the test
522
- example().catch(console.error);
523
- ```
524
-
525
- ### Parameters
526
-
527
-
528
- | Name | Type | Description | Notes |
529
- |------------- | ------------- | ------------- | -------------|
530
- | **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
531
-
532
- ### Return type
533
-
534
- [**CartResource**](CartResource.md)
535
-
536
- ### Authorization
537
-
538
- No authorization required
539
-
540
- ### HTTP request headers
541
-
542
- - **Content-Type**: Not defined
543
- - **Accept**: `application/json`
544
-
545
-
546
- ### HTTP response details
547
- | Status code | Description | Response headers |
548
- |-------------|-------------|------------------|
549
- | **200** | Successful resource response | - |
550
-
551
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
552
-
553
-
554
- ## storeCart
555
-
556
- > CartResource storeCart(createCartRequest)
557
-
558
- Auto-generated: storeCart
559
-
560
- ### Example
561
-
562
- ```ts
563
- import {
564
- Configuration,
565
- CartsApi,
566
- } from '@digital8/lighting-illusions-ts-sdk';
567
- import type { StoreCartRequest } from '@digital8/lighting-illusions-ts-sdk';
568
-
569
- async function example() {
570
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
571
- const api = new CartsApi();
572
-
573
- const body = {
574
- // CreateCartRequest (optional)
575
- createCartRequest: ...,
576
- } satisfies StoreCartRequest;
577
-
578
- try {
579
- const data = await api.storeCart(body);
580
- console.log(data);
581
- } catch (error) {
582
- console.error(error);
583
- }
584
- }
585
-
586
- // Run the test
587
- example().catch(console.error);
588
- ```
589
-
590
- ### Parameters
591
-
592
-
593
- | Name | Type | Description | Notes |
594
- |------------- | ------------- | ------------- | -------------|
595
- | **createCartRequest** | [CreateCartRequest](CreateCartRequest.md) | | [Optional] |
596
-
597
- ### Return type
598
-
599
- [**CartResource**](CartResource.md)
600
-
601
- ### Authorization
602
-
603
- No authorization required
604
-
605
- ### HTTP request headers
606
-
607
- - **Content-Type**: `application/json`
608
- - **Accept**: `application/json`
609
-
610
-
611
- ### HTTP response details
612
- | Status code | Description | Response headers |
613
- |-------------|-------------|------------------|
614
- | **200** | Successful resource response | - |
615
-
616
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
617
-
618
-
619
- ## storeFromCartOrder
620
-
621
- > AdminOrderResource storeFromCartOrder(cart)
622
-
623
- Auto-generated: storeFromCartOrder
624
-
625
- ### Example
626
-
627
- ```ts
628
- import {
629
- Configuration,
630
- CartsApi,
631
- } from '@digital8/lighting-illusions-ts-sdk';
632
- import type { StoreFromCartOrderRequest } from '@digital8/lighting-illusions-ts-sdk';
633
-
634
- async function example() {
635
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
636
- const api = new CartsApi();
637
-
638
- const body = {
639
- // number | The id of the cart
640
- cart: 56,
641
- } satisfies StoreFromCartOrderRequest;
642
-
643
- try {
644
- const data = await api.storeFromCartOrder(body);
645
- console.log(data);
646
- } catch (error) {
647
- console.error(error);
648
- }
649
- }
650
-
651
- // Run the test
652
- example().catch(console.error);
653
- ```
654
-
655
- ### Parameters
656
-
657
-
658
- | Name | Type | Description | Notes |
659
- |------------- | ------------- | ------------- | -------------|
660
- | **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
661
-
662
- ### Return type
663
-
664
- [**AdminOrderResource**](AdminOrderResource.md)
665
-
666
- ### Authorization
667
-
668
- No authorization required
669
-
670
- ### HTTP request headers
671
-
672
- - **Content-Type**: Not defined
673
- - **Accept**: `application/json`
674
-
675
-
676
- ### HTTP response details
677
- | Status code | Description | Response headers |
678
- |-------------|-------------|------------------|
679
- | **200** | Successful resource response | - |
680
-
681
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
682
-
683
-
684
- ## updateCart
685
-
686
- > CartResource updateCart(cart, updateCartRequest)
687
-
688
- Auto-generated: updateCart
689
-
690
- ### Example
691
-
692
- ```ts
693
- import {
694
- Configuration,
695
- CartsApi,
696
- } from '@digital8/lighting-illusions-ts-sdk';
697
- import type { UpdateCartOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
698
-
699
- async function example() {
700
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
701
- const api = new CartsApi();
702
-
703
- const body = {
704
- // number | The id of the cart
705
- cart: 56,
706
- // UpdateCartRequest (optional)
707
- updateCartRequest: ...,
708
- } satisfies UpdateCartOperationRequest;
709
-
710
- try {
711
- const data = await api.updateCart(body);
712
- console.log(data);
713
- } catch (error) {
714
- console.error(error);
715
- }
716
- }
717
-
718
- // Run the test
719
- example().catch(console.error);
720
- ```
721
-
722
- ### Parameters
723
-
724
-
725
- | Name | Type | Description | Notes |
726
- |------------- | ------------- | ------------- | -------------|
727
- | **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
728
- | **updateCartRequest** | [UpdateCartRequest](UpdateCartRequest.md) | | [Optional] |
729
-
730
- ### Return type
731
-
732
- [**CartResource**](CartResource.md)
733
-
734
- ### Authorization
735
-
736
- No authorization required
737
-
738
- ### HTTP request headers
739
-
740
- - **Content-Type**: `application/json`
741
- - **Accept**: `application/json`
742
-
743
-
744
- ### HTTP response details
745
- | Status code | Description | Response headers |
746
- |-------------|-------------|------------------|
747
- | **200** | Successful resource response | - |
748
-
749
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
750
-
751
-
752
- ## updateItemCart
753
-
754
- > CartResource updateItemCart(cart, lineItem, updateLineItemRequest)
755
-
756
- Auto-generated: updateItemCart
757
-
758
- ### Example
759
-
760
- ```ts
761
- import {
762
- Configuration,
763
- CartsApi,
764
- } from '@digital8/lighting-illusions-ts-sdk';
765
- import type { UpdateItemCartRequest } from '@digital8/lighting-illusions-ts-sdk';
766
-
767
- async function example() {
768
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
769
- const api = new CartsApi();
770
-
771
- const body = {
772
- // number | The id of the cart
773
- cart: 56,
774
- // number | The id of the lineItem
775
- lineItem: 56,
776
- // UpdateLineItemRequest (optional)
777
- updateLineItemRequest: ...,
778
- } satisfies UpdateItemCartRequest;
779
-
780
- try {
781
- const data = await api.updateItemCart(body);
782
- console.log(data);
783
- } catch (error) {
784
- console.error(error);
785
- }
786
- }
787
-
788
- // Run the test
789
- example().catch(console.error);
790
- ```
791
-
792
- ### Parameters
793
-
794
-
795
- | Name | Type | Description | Notes |
796
- |------------- | ------------- | ------------- | -------------|
797
- | **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
798
- | **lineItem** | `number` | The id of the lineItem | [Defaults to `undefined`] |
799
- | **updateLineItemRequest** | [UpdateLineItemRequest](UpdateLineItemRequest.md) | | [Optional] |
800
-
801
- ### Return type
802
-
803
- [**CartResource**](CartResource.md)
804
-
805
- ### Authorization
806
-
807
- No authorization required
808
-
809
- ### HTTP request headers
810
-
811
- - **Content-Type**: `application/json`
812
- - **Accept**: `application/json`
813
-
814
-
815
- ### HTTP response details
816
- | Status code | Description | Response headers |
817
- |-------------|-------------|------------------|
818
- | **200** | Successful resource response | - |
819
-
820
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
821
-