@commercelayer/sdk 5.0.0-alpha.4 → 5.0.0-beta.1

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 (720) hide show
  1. package/README.md +201 -123
  2. package/lib/cjs/api.d.ts +113 -0
  3. package/lib/cjs/api.js +355 -0
  4. package/lib/cjs/client.d.ts +33 -0
  5. package/lib/cjs/client.js +123 -0
  6. package/lib/cjs/commercelayer.d.ts +139 -0
  7. package/lib/cjs/commercelayer.js +230 -0
  8. package/lib/cjs/common.d.ts +4 -0
  9. package/lib/cjs/common.js +14 -0
  10. package/lib/cjs/config.d.ts +11 -0
  11. package/lib/cjs/config.js +13 -0
  12. package/lib/cjs/debug.d.ts +3 -0
  13. package/lib/cjs/debug.js +42 -0
  14. package/lib/cjs/error.d.ts +28 -0
  15. package/lib/cjs/error.js +43 -0
  16. package/lib/cjs/index.d.ts +7 -0
  17. package/lib/cjs/index.js +29 -0
  18. package/lib/cjs/interceptor.d.ts +25 -0
  19. package/lib/cjs/interceptor.js +2 -0
  20. package/lib/cjs/jsonapi.d.ts +5 -0
  21. package/lib/cjs/jsonapi.js +82 -0
  22. package/lib/cjs/model.d.ts +111 -0
  23. package/lib/cjs/model.js +3 -0
  24. package/lib/cjs/query.d.ts +24 -0
  25. package/lib/cjs/query.js +51 -0
  26. package/lib/cjs/resource.d.ts +90 -0
  27. package/lib/cjs/resource.js +167 -0
  28. package/lib/cjs/resources/addresses.d.ts +89 -0
  29. package/lib/cjs/resources/addresses.js +33 -0
  30. package/lib/cjs/resources/adjustments.d.ts +36 -0
  31. package/lib/cjs/resources/adjustments.js +29 -0
  32. package/lib/cjs/resources/adyen_gateways.d.ts +57 -0
  33. package/lib/cjs/resources/adyen_gateways.js +37 -0
  34. package/lib/cjs/resources/adyen_payments.d.ts +47 -0
  35. package/lib/cjs/resources/adyen_payments.js +37 -0
  36. package/lib/cjs/resources/application.d.ts +21 -0
  37. package/lib/cjs/resources/application.js +17 -0
  38. package/lib/cjs/resources/attachments.d.ts +157 -0
  39. package/lib/cjs/resources/attachments.js +29 -0
  40. package/lib/cjs/resources/authorizations.d.ts +61 -0
  41. package/lib/cjs/resources/authorizations.js +39 -0
  42. package/lib/cjs/resources/avalara_accounts.d.ts +56 -0
  43. package/lib/cjs/resources/avalara_accounts.js +41 -0
  44. package/lib/cjs/resources/axerve_gateways.d.ts +44 -0
  45. package/lib/cjs/resources/axerve_gateways.js +37 -0
  46. package/lib/cjs/resources/axerve_payments.d.ts +47 -0
  47. package/lib/cjs/resources/axerve_payments.js +37 -0
  48. package/lib/cjs/resources/billing_info_validation_rules.d.ts +36 -0
  49. package/lib/cjs/resources/billing_info_validation_rules.js +37 -0
  50. package/lib/cjs/resources/bing_geocoders.d.ts +36 -0
  51. package/lib/cjs/resources/bing_geocoders.js +37 -0
  52. package/lib/cjs/resources/braintree_gateways.d.ts +57 -0
  53. package/lib/cjs/resources/braintree_gateways.js +37 -0
  54. package/lib/cjs/resources/braintree_payments.d.ts +49 -0
  55. package/lib/cjs/resources/braintree_payments.js +37 -0
  56. package/lib/cjs/resources/bundles.d.ts +77 -0
  57. package/lib/cjs/resources/bundles.js +45 -0
  58. package/lib/cjs/resources/captures.d.ts +52 -0
  59. package/lib/cjs/resources/captures.js +39 -0
  60. package/lib/cjs/resources/carrier_accounts.d.ts +27 -0
  61. package/lib/cjs/resources/carrier_accounts.js +28 -0
  62. package/lib/cjs/resources/checkout_com_gateways.d.ts +46 -0
  63. package/lib/cjs/resources/checkout_com_gateways.js +37 -0
  64. package/lib/cjs/resources/checkout_com_payments.d.ts +60 -0
  65. package/lib/cjs/resources/checkout_com_payments.js +37 -0
  66. package/lib/cjs/resources/cleanups.d.ts +37 -0
  67. package/lib/cjs/resources/cleanups.js +30 -0
  68. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +60 -0
  69. package/lib/cjs/resources/coupon_codes_promotion_rules.js +33 -0
  70. package/lib/cjs/resources/coupon_recipients.d.ts +45 -0
  71. package/lib/cjs/resources/coupon_recipients.js +37 -0
  72. package/lib/cjs/resources/coupons.d.ts +46 -0
  73. package/lib/cjs/resources/coupons.js +33 -0
  74. package/lib/cjs/resources/customer_addresses.d.ts +45 -0
  75. package/lib/cjs/resources/customer_addresses.js +41 -0
  76. package/lib/cjs/resources/customer_groups.d.ts +37 -0
  77. package/lib/cjs/resources/customer_groups.js +41 -0
  78. package/lib/cjs/resources/customer_password_resets.d.ts +37 -0
  79. package/lib/cjs/resources/customer_password_resets.js +37 -0
  80. package/lib/cjs/resources/customer_payment_sources.d.ts +79 -0
  81. package/lib/cjs/resources/customer_payment_sources.js +33 -0
  82. package/lib/cjs/resources/customer_subscriptions.d.ts +32 -0
  83. package/lib/cjs/resources/customer_subscriptions.js +37 -0
  84. package/lib/cjs/resources/customers.d.ts +67 -0
  85. package/lib/cjs/resources/customers.js +69 -0
  86. package/lib/cjs/resources/delivery_lead_times.d.ts +52 -0
  87. package/lib/cjs/resources/delivery_lead_times.js +41 -0
  88. package/lib/cjs/resources/event_callbacks.d.ts +25 -0
  89. package/lib/cjs/resources/event_callbacks.js +24 -0
  90. package/lib/cjs/resources/events.d.ts +25 -0
  91. package/lib/cjs/resources/events.js +28 -0
  92. package/lib/cjs/resources/exports.d.ts +41 -0
  93. package/lib/cjs/resources/exports.js +30 -0
  94. package/lib/cjs/resources/external_gateways.d.ts +50 -0
  95. package/lib/cjs/resources/external_gateways.js +37 -0
  96. package/lib/cjs/resources/external_payments.d.ts +45 -0
  97. package/lib/cjs/resources/external_payments.js +41 -0
  98. package/lib/cjs/resources/external_promotions.d.ts +91 -0
  99. package/lib/cjs/resources/external_promotions.js +53 -0
  100. package/lib/cjs/resources/external_tax_calculators.d.ts +38 -0
  101. package/lib/cjs/resources/external_tax_calculators.js +37 -0
  102. package/lib/cjs/resources/fixed_amount_promotions.d.ts +92 -0
  103. package/lib/cjs/resources/fixed_amount_promotions.js +53 -0
  104. package/lib/cjs/resources/fixed_price_promotions.d.ts +103 -0
  105. package/lib/cjs/resources/fixed_price_promotions.js +61 -0
  106. package/lib/cjs/resources/free_gift_promotions.d.ts +101 -0
  107. package/lib/cjs/resources/free_gift_promotions.js +61 -0
  108. package/lib/cjs/resources/free_shipping_promotions.d.ts +84 -0
  109. package/lib/cjs/resources/free_shipping_promotions.js +49 -0
  110. package/lib/cjs/resources/geocoders.d.ts +25 -0
  111. package/lib/cjs/resources/geocoders.js +28 -0
  112. package/lib/cjs/resources/gift_card_recipients.d.ts +45 -0
  113. package/lib/cjs/resources/gift_card_recipients.js +37 -0
  114. package/lib/cjs/resources/gift_cards.d.ts +86 -0
  115. package/lib/cjs/resources/gift_cards.js +45 -0
  116. package/lib/cjs/resources/google_geocoders.d.ts +36 -0
  117. package/lib/cjs/resources/google_geocoders.js +37 -0
  118. package/lib/cjs/resources/imports.d.ts +46 -0
  119. package/lib/cjs/resources/imports.js +30 -0
  120. package/lib/cjs/resources/in_stock_subscriptions.d.ts +63 -0
  121. package/lib/cjs/resources/in_stock_subscriptions.js +45 -0
  122. package/lib/cjs/resources/inventory_models.d.ts +43 -0
  123. package/lib/cjs/resources/inventory_models.js +41 -0
  124. package/lib/cjs/resources/inventory_return_locations.d.ts +44 -0
  125. package/lib/cjs/resources/inventory_return_locations.js +37 -0
  126. package/lib/cjs/resources/inventory_stock_locations.d.ts +47 -0
  127. package/lib/cjs/resources/inventory_stock_locations.js +37 -0
  128. package/lib/cjs/resources/klarna_gateways.d.ts +45 -0
  129. package/lib/cjs/resources/klarna_gateways.js +37 -0
  130. package/lib/cjs/resources/klarna_payments.d.ts +47 -0
  131. package/lib/cjs/resources/klarna_payments.js +37 -0
  132. package/lib/cjs/resources/line_item_options.d.ts +58 -0
  133. package/lib/cjs/resources/line_item_options.js +37 -0
  134. package/lib/cjs/resources/line_items.d.ts +127 -0
  135. package/lib/cjs/resources/line_items.js +45 -0
  136. package/lib/cjs/resources/manual_gateways.d.ts +31 -0
  137. package/lib/cjs/resources/manual_gateways.js +33 -0
  138. package/lib/cjs/resources/manual_tax_calculators.d.ts +42 -0
  139. package/lib/cjs/resources/manual_tax_calculators.js +41 -0
  140. package/lib/cjs/resources/markets.d.ts +89 -0
  141. package/lib/cjs/resources/markets.js +53 -0
  142. package/lib/cjs/resources/merchants.d.ts +39 -0
  143. package/lib/cjs/resources/merchants.js +37 -0
  144. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +57 -0
  145. package/lib/cjs/resources/order_amount_promotion_rules.js +29 -0
  146. package/lib/cjs/resources/order_copies.d.ts +49 -0
  147. package/lib/cjs/resources/order_copies.js +42 -0
  148. package/lib/cjs/resources/order_subscriptions.d.ts +71 -0
  149. package/lib/cjs/resources/order_subscriptions.js +53 -0
  150. package/lib/cjs/resources/order_validation_rules.d.ts +24 -0
  151. package/lib/cjs/resources/order_validation_rules.js +28 -0
  152. package/lib/cjs/resources/orders.d.ts +297 -0
  153. package/lib/cjs/resources/orders.js +109 -0
  154. package/lib/cjs/resources/organization.d.ts +32 -0
  155. package/lib/cjs/resources/organization.js +17 -0
  156. package/lib/cjs/resources/packages.d.ts +57 -0
  157. package/lib/cjs/resources/packages.js +41 -0
  158. package/lib/cjs/resources/parcel_line_items.d.ts +52 -0
  159. package/lib/cjs/resources/parcel_line_items.js +37 -0
  160. package/lib/cjs/resources/parcels.d.ts +120 -0
  161. package/lib/cjs/resources/parcels.js +49 -0
  162. package/lib/cjs/resources/payment_gateways.d.ts +22 -0
  163. package/lib/cjs/resources/payment_gateways.js +24 -0
  164. package/lib/cjs/resources/payment_methods.d.ts +73 -0
  165. package/lib/cjs/resources/payment_methods.js +41 -0
  166. package/lib/cjs/resources/paypal_gateways.d.ts +38 -0
  167. package/lib/cjs/resources/paypal_gateways.js +37 -0
  168. package/lib/cjs/resources/paypal_payments.d.ts +53 -0
  169. package/lib/cjs/resources/paypal_payments.js +37 -0
  170. package/lib/cjs/resources/percentage_discount_promotions.d.ts +101 -0
  171. package/lib/cjs/resources/percentage_discount_promotions.js +61 -0
  172. package/lib/cjs/resources/price_lists.d.ts +40 -0
  173. package/lib/cjs/resources/price_lists.js +37 -0
  174. package/lib/cjs/resources/price_tiers.d.ts +29 -0
  175. package/lib/cjs/resources/price_tiers.js +28 -0
  176. package/lib/cjs/resources/price_volume_tiers.d.ts +47 -0
  177. package/lib/cjs/resources/price_volume_tiers.js +37 -0
  178. package/lib/cjs/resources/prices.d.ts +69 -0
  179. package/lib/cjs/resources/prices.js +49 -0
  180. package/lib/cjs/resources/promotion_rules.d.ts +25 -0
  181. package/lib/cjs/resources/promotion_rules.js +20 -0
  182. package/lib/cjs/resources/promotions.d.ts +42 -0
  183. package/lib/cjs/resources/promotions.js +40 -0
  184. package/lib/cjs/resources/refunds.d.ts +38 -0
  185. package/lib/cjs/resources/refunds.js +32 -0
  186. package/lib/cjs/resources/return_line_items.d.ts +50 -0
  187. package/lib/cjs/resources/return_line_items.js +37 -0
  188. package/lib/cjs/resources/returns.d.ts +76 -0
  189. package/lib/cjs/resources/returns.js +61 -0
  190. package/lib/cjs/resources/satispay_gateways.d.ts +40 -0
  191. package/lib/cjs/resources/satispay_gateways.js +37 -0
  192. package/lib/cjs/resources/satispay_payments.d.ts +44 -0
  193. package/lib/cjs/resources/satispay_payments.js +37 -0
  194. package/lib/cjs/resources/shipments.d.ts +94 -0
  195. package/lib/cjs/resources/shipments.js +79 -0
  196. package/lib/cjs/resources/shipping_categories.d.ts +34 -0
  197. package/lib/cjs/resources/shipping_categories.js +37 -0
  198. package/lib/cjs/resources/shipping_method_tiers.d.ts +29 -0
  199. package/lib/cjs/resources/shipping_method_tiers.js +28 -0
  200. package/lib/cjs/resources/shipping_methods.d.ts +108 -0
  201. package/lib/cjs/resources/shipping_methods.js +61 -0
  202. package/lib/cjs/resources/shipping_weight_tiers.d.ts +47 -0
  203. package/lib/cjs/resources/shipping_weight_tiers.js +37 -0
  204. package/lib/cjs/resources/shipping_zones.d.ts +49 -0
  205. package/lib/cjs/resources/shipping_zones.js +33 -0
  206. package/lib/cjs/resources/sku_list_items.d.ts +48 -0
  207. package/lib/cjs/resources/sku_list_items.js +37 -0
  208. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +69 -0
  209. package/lib/cjs/resources/sku_list_promotion_rules.js +37 -0
  210. package/lib/cjs/resources/sku_lists.d.ts +61 -0
  211. package/lib/cjs/resources/sku_lists.js +49 -0
  212. package/lib/cjs/resources/sku_options.d.ts +57 -0
  213. package/lib/cjs/resources/sku_options.js +37 -0
  214. package/lib/cjs/resources/skus.d.ts +79 -0
  215. package/lib/cjs/resources/skus.js +53 -0
  216. package/lib/cjs/resources/stock_items.d.ts +50 -0
  217. package/lib/cjs/resources/stock_items.js +41 -0
  218. package/lib/cjs/resources/stock_line_items.d.ts +30 -0
  219. package/lib/cjs/resources/stock_line_items.js +32 -0
  220. package/lib/cjs/resources/stock_locations.d.ts +58 -0
  221. package/lib/cjs/resources/stock_locations.js +53 -0
  222. package/lib/cjs/resources/stock_transfers.d.ts +75 -0
  223. package/lib/cjs/resources/stock_transfers.js +53 -0
  224. package/lib/cjs/resources/stripe_gateways.d.ts +42 -0
  225. package/lib/cjs/resources/stripe_gateways.js +37 -0
  226. package/lib/cjs/resources/stripe_payments.d.ts +48 -0
  227. package/lib/cjs/resources/stripe_payments.js +37 -0
  228. package/lib/cjs/resources/tax_calculators.d.ts +25 -0
  229. package/lib/cjs/resources/tax_calculators.js +28 -0
  230. package/lib/cjs/resources/tax_categories.d.ts +60 -0
  231. package/lib/cjs/resources/tax_categories.js +37 -0
  232. package/lib/cjs/resources/tax_rules.d.ts +70 -0
  233. package/lib/cjs/resources/tax_rules.js +33 -0
  234. package/lib/cjs/resources/taxjar_accounts.d.ts +44 -0
  235. package/lib/cjs/resources/taxjar_accounts.js +41 -0
  236. package/lib/cjs/resources/transactions.d.ts +32 -0
  237. package/lib/cjs/resources/transactions.js +24 -0
  238. package/lib/cjs/resources/voids.d.ts +38 -0
  239. package/lib/cjs/resources/voids.js +32 -0
  240. package/lib/cjs/resources/webhooks.d.ts +44 -0
  241. package/lib/cjs/resources/webhooks.js +33 -0
  242. package/lib/cjs/resources/wire_transfers.d.ts +34 -0
  243. package/lib/cjs/resources/wire_transfers.js +33 -0
  244. package/lib/cjs/static.d.ts +9 -0
  245. package/lib/cjs/static.js +45 -0
  246. package/lib/cjs/util.d.ts +10 -0
  247. package/lib/cjs/util.js +15 -0
  248. package/lib/esm/api.d.ts +113 -0
  249. package/lib/esm/api.js +239 -0
  250. package/lib/esm/client.d.ts +33 -0
  251. package/lib/esm/client.js +118 -0
  252. package/lib/esm/commercelayer.d.ts +139 -0
  253. package/lib/esm/commercelayer.js +201 -0
  254. package/lib/esm/common.d.ts +4 -0
  255. package/lib/esm/common.js +10 -0
  256. package/lib/esm/config.d.ts +11 -0
  257. package/lib/esm/config.js +11 -0
  258. package/lib/esm/debug.d.ts +3 -0
  259. package/lib/esm/debug.js +40 -0
  260. package/lib/esm/error.d.ts +28 -0
  261. package/lib/esm/error.js +38 -0
  262. package/lib/esm/index.d.ts +7 -0
  263. package/lib/esm/index.js +6 -0
  264. package/lib/esm/interceptor.d.ts +25 -0
  265. package/lib/esm/interceptor.js +1 -0
  266. package/lib/esm/jsonapi.d.ts +5 -0
  267. package/lib/esm/jsonapi.js +75 -0
  268. package/lib/esm/model.d.ts +111 -0
  269. package/lib/esm/model.js +2 -0
  270. package/lib/esm/query.d.ts +24 -0
  271. package/lib/esm/query.js +45 -0
  272. package/lib/esm/resource.d.ts +90 -0
  273. package/lib/esm/resource.js +160 -0
  274. package/lib/esm/resources/addresses.d.ts +89 -0
  275. package/lib/esm/resources/addresses.js +31 -0
  276. package/lib/esm/resources/adjustments.d.ts +36 -0
  277. package/lib/esm/resources/adjustments.js +27 -0
  278. package/lib/esm/resources/adyen_gateways.d.ts +57 -0
  279. package/lib/esm/resources/adyen_gateways.js +35 -0
  280. package/lib/esm/resources/adyen_payments.d.ts +47 -0
  281. package/lib/esm/resources/adyen_payments.js +35 -0
  282. package/lib/esm/resources/application.d.ts +21 -0
  283. package/lib/esm/resources/application.js +15 -0
  284. package/lib/esm/resources/attachments.d.ts +157 -0
  285. package/lib/esm/resources/attachments.js +27 -0
  286. package/lib/esm/resources/authorizations.d.ts +61 -0
  287. package/lib/esm/resources/authorizations.js +37 -0
  288. package/lib/esm/resources/avalara_accounts.d.ts +56 -0
  289. package/lib/esm/resources/avalara_accounts.js +39 -0
  290. package/lib/esm/resources/axerve_gateways.d.ts +44 -0
  291. package/lib/esm/resources/axerve_gateways.js +35 -0
  292. package/lib/esm/resources/axerve_payments.d.ts +47 -0
  293. package/lib/esm/resources/axerve_payments.js +35 -0
  294. package/lib/esm/resources/billing_info_validation_rules.d.ts +36 -0
  295. package/lib/esm/resources/billing_info_validation_rules.js +35 -0
  296. package/lib/esm/resources/bing_geocoders.d.ts +36 -0
  297. package/lib/esm/resources/bing_geocoders.js +35 -0
  298. package/lib/esm/resources/braintree_gateways.d.ts +57 -0
  299. package/lib/esm/resources/braintree_gateways.js +35 -0
  300. package/lib/esm/resources/braintree_payments.d.ts +49 -0
  301. package/lib/esm/resources/braintree_payments.js +35 -0
  302. package/lib/esm/resources/bundles.d.ts +77 -0
  303. package/lib/esm/resources/bundles.js +43 -0
  304. package/lib/esm/resources/captures.d.ts +52 -0
  305. package/lib/esm/resources/captures.js +37 -0
  306. package/lib/esm/resources/carrier_accounts.d.ts +27 -0
  307. package/lib/esm/resources/carrier_accounts.js +26 -0
  308. package/lib/esm/resources/checkout_com_gateways.d.ts +46 -0
  309. package/lib/esm/resources/checkout_com_gateways.js +35 -0
  310. package/lib/esm/resources/checkout_com_payments.d.ts +60 -0
  311. package/lib/esm/resources/checkout_com_payments.js +35 -0
  312. package/lib/esm/resources/cleanups.d.ts +37 -0
  313. package/lib/esm/resources/cleanups.js +28 -0
  314. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +60 -0
  315. package/lib/esm/resources/coupon_codes_promotion_rules.js +31 -0
  316. package/lib/esm/resources/coupon_recipients.d.ts +45 -0
  317. package/lib/esm/resources/coupon_recipients.js +35 -0
  318. package/lib/esm/resources/coupons.d.ts +46 -0
  319. package/lib/esm/resources/coupons.js +31 -0
  320. package/lib/esm/resources/customer_addresses.d.ts +45 -0
  321. package/lib/esm/resources/customer_addresses.js +39 -0
  322. package/lib/esm/resources/customer_groups.d.ts +37 -0
  323. package/lib/esm/resources/customer_groups.js +39 -0
  324. package/lib/esm/resources/customer_password_resets.d.ts +37 -0
  325. package/lib/esm/resources/customer_password_resets.js +35 -0
  326. package/lib/esm/resources/customer_payment_sources.d.ts +79 -0
  327. package/lib/esm/resources/customer_payment_sources.js +31 -0
  328. package/lib/esm/resources/customer_subscriptions.d.ts +32 -0
  329. package/lib/esm/resources/customer_subscriptions.js +35 -0
  330. package/lib/esm/resources/customers.d.ts +67 -0
  331. package/lib/esm/resources/customers.js +67 -0
  332. package/lib/esm/resources/delivery_lead_times.d.ts +52 -0
  333. package/lib/esm/resources/delivery_lead_times.js +39 -0
  334. package/lib/esm/resources/event_callbacks.d.ts +25 -0
  335. package/lib/esm/resources/event_callbacks.js +22 -0
  336. package/lib/esm/resources/events.d.ts +25 -0
  337. package/lib/esm/resources/events.js +26 -0
  338. package/lib/esm/resources/exports.d.ts +41 -0
  339. package/lib/esm/resources/exports.js +28 -0
  340. package/lib/esm/resources/external_gateways.d.ts +50 -0
  341. package/lib/esm/resources/external_gateways.js +35 -0
  342. package/lib/esm/resources/external_payments.d.ts +45 -0
  343. package/lib/esm/resources/external_payments.js +39 -0
  344. package/lib/esm/resources/external_promotions.d.ts +91 -0
  345. package/lib/esm/resources/external_promotions.js +51 -0
  346. package/lib/esm/resources/external_tax_calculators.d.ts +38 -0
  347. package/lib/esm/resources/external_tax_calculators.js +35 -0
  348. package/lib/esm/resources/fixed_amount_promotions.d.ts +92 -0
  349. package/lib/esm/resources/fixed_amount_promotions.js +51 -0
  350. package/lib/esm/resources/fixed_price_promotions.d.ts +103 -0
  351. package/lib/esm/resources/fixed_price_promotions.js +59 -0
  352. package/lib/esm/resources/free_gift_promotions.d.ts +101 -0
  353. package/lib/esm/resources/free_gift_promotions.js +59 -0
  354. package/lib/esm/resources/free_shipping_promotions.d.ts +84 -0
  355. package/lib/esm/resources/free_shipping_promotions.js +47 -0
  356. package/lib/esm/resources/geocoders.d.ts +25 -0
  357. package/lib/esm/resources/geocoders.js +26 -0
  358. package/lib/esm/resources/gift_card_recipients.d.ts +45 -0
  359. package/lib/esm/resources/gift_card_recipients.js +35 -0
  360. package/lib/esm/resources/gift_cards.d.ts +86 -0
  361. package/lib/esm/resources/gift_cards.js +43 -0
  362. package/lib/esm/resources/google_geocoders.d.ts +36 -0
  363. package/lib/esm/resources/google_geocoders.js +35 -0
  364. package/lib/esm/resources/imports.d.ts +46 -0
  365. package/lib/esm/resources/imports.js +28 -0
  366. package/lib/esm/resources/in_stock_subscriptions.d.ts +63 -0
  367. package/lib/esm/resources/in_stock_subscriptions.js +43 -0
  368. package/lib/esm/resources/inventory_models.d.ts +43 -0
  369. package/lib/esm/resources/inventory_models.js +39 -0
  370. package/lib/esm/resources/inventory_return_locations.d.ts +44 -0
  371. package/lib/esm/resources/inventory_return_locations.js +35 -0
  372. package/lib/esm/resources/inventory_stock_locations.d.ts +47 -0
  373. package/lib/esm/resources/inventory_stock_locations.js +35 -0
  374. package/lib/esm/resources/klarna_gateways.d.ts +45 -0
  375. package/lib/esm/resources/klarna_gateways.js +35 -0
  376. package/lib/esm/resources/klarna_payments.d.ts +47 -0
  377. package/lib/esm/resources/klarna_payments.js +35 -0
  378. package/lib/esm/resources/line_item_options.d.ts +58 -0
  379. package/lib/esm/resources/line_item_options.js +35 -0
  380. package/lib/esm/resources/line_items.d.ts +127 -0
  381. package/lib/esm/resources/line_items.js +43 -0
  382. package/lib/esm/resources/manual_gateways.d.ts +31 -0
  383. package/lib/esm/resources/manual_gateways.js +31 -0
  384. package/lib/esm/resources/manual_tax_calculators.d.ts +42 -0
  385. package/lib/esm/resources/manual_tax_calculators.js +39 -0
  386. package/lib/esm/resources/markets.d.ts +89 -0
  387. package/lib/esm/resources/markets.js +51 -0
  388. package/lib/esm/resources/merchants.d.ts +39 -0
  389. package/lib/esm/resources/merchants.js +35 -0
  390. package/lib/esm/resources/order_amount_promotion_rules.d.ts +57 -0
  391. package/lib/esm/resources/order_amount_promotion_rules.js +27 -0
  392. package/lib/esm/resources/order_copies.d.ts +49 -0
  393. package/lib/esm/resources/order_copies.js +40 -0
  394. package/lib/esm/resources/order_subscriptions.d.ts +71 -0
  395. package/lib/esm/resources/order_subscriptions.js +51 -0
  396. package/lib/esm/resources/order_validation_rules.d.ts +24 -0
  397. package/lib/esm/resources/order_validation_rules.js +26 -0
  398. package/lib/esm/resources/orders.d.ts +297 -0
  399. package/lib/esm/resources/orders.js +107 -0
  400. package/lib/esm/resources/organization.d.ts +32 -0
  401. package/lib/esm/resources/organization.js +15 -0
  402. package/lib/esm/resources/packages.d.ts +57 -0
  403. package/lib/esm/resources/packages.js +39 -0
  404. package/lib/esm/resources/parcel_line_items.d.ts +52 -0
  405. package/lib/esm/resources/parcel_line_items.js +35 -0
  406. package/lib/esm/resources/parcels.d.ts +120 -0
  407. package/lib/esm/resources/parcels.js +47 -0
  408. package/lib/esm/resources/payment_gateways.d.ts +22 -0
  409. package/lib/esm/resources/payment_gateways.js +22 -0
  410. package/lib/esm/resources/payment_methods.d.ts +73 -0
  411. package/lib/esm/resources/payment_methods.js +39 -0
  412. package/lib/esm/resources/paypal_gateways.d.ts +38 -0
  413. package/lib/esm/resources/paypal_gateways.js +35 -0
  414. package/lib/esm/resources/paypal_payments.d.ts +53 -0
  415. package/lib/esm/resources/paypal_payments.js +35 -0
  416. package/lib/esm/resources/percentage_discount_promotions.d.ts +101 -0
  417. package/lib/esm/resources/percentage_discount_promotions.js +59 -0
  418. package/lib/esm/resources/price_lists.d.ts +40 -0
  419. package/lib/esm/resources/price_lists.js +35 -0
  420. package/lib/esm/resources/price_tiers.d.ts +29 -0
  421. package/lib/esm/resources/price_tiers.js +26 -0
  422. package/lib/esm/resources/price_volume_tiers.d.ts +47 -0
  423. package/lib/esm/resources/price_volume_tiers.js +35 -0
  424. package/lib/esm/resources/prices.d.ts +69 -0
  425. package/lib/esm/resources/prices.js +47 -0
  426. package/lib/esm/resources/promotion_rules.d.ts +25 -0
  427. package/lib/esm/resources/promotion_rules.js +18 -0
  428. package/lib/esm/resources/promotions.d.ts +42 -0
  429. package/lib/esm/resources/promotions.js +38 -0
  430. package/lib/esm/resources/refunds.d.ts +38 -0
  431. package/lib/esm/resources/refunds.js +30 -0
  432. package/lib/esm/resources/return_line_items.d.ts +50 -0
  433. package/lib/esm/resources/return_line_items.js +35 -0
  434. package/lib/esm/resources/returns.d.ts +76 -0
  435. package/lib/esm/resources/returns.js +59 -0
  436. package/lib/esm/resources/satispay_gateways.d.ts +40 -0
  437. package/lib/esm/resources/satispay_gateways.js +35 -0
  438. package/lib/esm/resources/satispay_payments.d.ts +44 -0
  439. package/lib/esm/resources/satispay_payments.js +35 -0
  440. package/lib/esm/resources/shipments.d.ts +94 -0
  441. package/lib/esm/resources/shipments.js +77 -0
  442. package/lib/esm/resources/shipping_categories.d.ts +34 -0
  443. package/lib/esm/resources/shipping_categories.js +35 -0
  444. package/lib/esm/resources/shipping_method_tiers.d.ts +29 -0
  445. package/lib/esm/resources/shipping_method_tiers.js +26 -0
  446. package/lib/esm/resources/shipping_methods.d.ts +108 -0
  447. package/lib/esm/resources/shipping_methods.js +59 -0
  448. package/lib/esm/resources/shipping_weight_tiers.d.ts +47 -0
  449. package/lib/esm/resources/shipping_weight_tiers.js +35 -0
  450. package/lib/esm/resources/shipping_zones.d.ts +49 -0
  451. package/lib/esm/resources/shipping_zones.js +31 -0
  452. package/lib/esm/resources/sku_list_items.d.ts +48 -0
  453. package/lib/esm/resources/sku_list_items.js +35 -0
  454. package/lib/esm/resources/sku_list_promotion_rules.d.ts +69 -0
  455. package/lib/esm/resources/sku_list_promotion_rules.js +35 -0
  456. package/lib/esm/resources/sku_lists.d.ts +61 -0
  457. package/lib/esm/resources/sku_lists.js +47 -0
  458. package/lib/esm/resources/sku_options.d.ts +57 -0
  459. package/lib/esm/resources/sku_options.js +35 -0
  460. package/lib/esm/resources/skus.d.ts +79 -0
  461. package/lib/esm/resources/skus.js +51 -0
  462. package/lib/esm/resources/stock_items.d.ts +50 -0
  463. package/lib/esm/resources/stock_items.js +39 -0
  464. package/lib/esm/resources/stock_line_items.d.ts +30 -0
  465. package/lib/esm/resources/stock_line_items.js +30 -0
  466. package/lib/esm/resources/stock_locations.d.ts +58 -0
  467. package/lib/esm/resources/stock_locations.js +51 -0
  468. package/lib/esm/resources/stock_transfers.d.ts +75 -0
  469. package/lib/esm/resources/stock_transfers.js +51 -0
  470. package/lib/esm/resources/stripe_gateways.d.ts +42 -0
  471. package/lib/esm/resources/stripe_gateways.js +35 -0
  472. package/lib/esm/resources/stripe_payments.d.ts +48 -0
  473. package/lib/esm/resources/stripe_payments.js +35 -0
  474. package/lib/esm/resources/tax_calculators.d.ts +25 -0
  475. package/lib/esm/resources/tax_calculators.js +26 -0
  476. package/lib/esm/resources/tax_categories.d.ts +60 -0
  477. package/lib/esm/resources/tax_categories.js +35 -0
  478. package/lib/esm/resources/tax_rules.d.ts +70 -0
  479. package/lib/esm/resources/tax_rules.js +31 -0
  480. package/lib/esm/resources/taxjar_accounts.d.ts +44 -0
  481. package/lib/esm/resources/taxjar_accounts.js +39 -0
  482. package/lib/esm/resources/transactions.d.ts +32 -0
  483. package/lib/esm/resources/transactions.js +22 -0
  484. package/lib/esm/resources/voids.d.ts +38 -0
  485. package/lib/esm/resources/voids.js +30 -0
  486. package/lib/esm/resources/webhooks.d.ts +44 -0
  487. package/lib/esm/resources/webhooks.js +31 -0
  488. package/lib/esm/resources/wire_transfers.d.ts +34 -0
  489. package/lib/esm/resources/wire_transfers.js +31 -0
  490. package/lib/esm/static.d.ts +9 -0
  491. package/lib/esm/static.js +19 -0
  492. package/lib/esm/util.d.ts +10 -0
  493. package/lib/esm/util.js +11 -0
  494. package/lib/tsconfig.esm.tsbuildinfo +1 -0
  495. package/lib/tsconfig.tsbuildinfo +1 -0
  496. package/package.json +28 -37
  497. package/lib/api.d.ts +0 -1
  498. package/lib/api.js +0 -1
  499. package/lib/client.d.ts +0 -2
  500. package/lib/client.js +0 -1
  501. package/lib/commercelayer.d.ts +0 -1
  502. package/lib/commercelayer.js +0 -1
  503. package/lib/common.d.ts +0 -1
  504. package/lib/common.js +0 -1
  505. package/lib/config.d.ts +0 -1
  506. package/lib/config.js +0 -1
  507. package/lib/debug.d.ts +0 -1
  508. package/lib/debug.js +0 -1
  509. package/lib/error.d.ts +0 -1
  510. package/lib/error.js +0 -1
  511. package/lib/index.d.ts +0 -1
  512. package/lib/index.js +0 -1
  513. package/lib/interceptor.d.ts +0 -1
  514. package/lib/interceptor.js +0 -1
  515. package/lib/jsonapi.d.ts +0 -1
  516. package/lib/jsonapi.js +0 -1
  517. package/lib/model.d.ts +0 -1
  518. package/lib/model.js +0 -1
  519. package/lib/query.d.ts +0 -1
  520. package/lib/query.js +0 -1
  521. package/lib/resource.d.ts +0 -1
  522. package/lib/resource.js +0 -1
  523. package/lib/resources/addresses.d.ts +0 -1
  524. package/lib/resources/addresses.js +0 -1
  525. package/lib/resources/adjustments.d.ts +0 -1
  526. package/lib/resources/adjustments.js +0 -1
  527. package/lib/resources/adyen_gateways.d.ts +0 -1
  528. package/lib/resources/adyen_gateways.js +0 -1
  529. package/lib/resources/adyen_payments.d.ts +0 -1
  530. package/lib/resources/adyen_payments.js +0 -1
  531. package/lib/resources/application.d.ts +0 -1
  532. package/lib/resources/application.js +0 -1
  533. package/lib/resources/attachments.d.ts +0 -1
  534. package/lib/resources/attachments.js +0 -1
  535. package/lib/resources/authorizations.d.ts +0 -1
  536. package/lib/resources/authorizations.js +0 -1
  537. package/lib/resources/avalara_accounts.d.ts +0 -1
  538. package/lib/resources/avalara_accounts.js +0 -1
  539. package/lib/resources/billing_info_validation_rules.d.ts +0 -1
  540. package/lib/resources/billing_info_validation_rules.js +0 -1
  541. package/lib/resources/bing_geocoders.d.ts +0 -1
  542. package/lib/resources/bing_geocoders.js +0 -1
  543. package/lib/resources/braintree_gateways.d.ts +0 -1
  544. package/lib/resources/braintree_gateways.js +0 -1
  545. package/lib/resources/braintree_payments.d.ts +0 -1
  546. package/lib/resources/braintree_payments.js +0 -1
  547. package/lib/resources/bundles.d.ts +0 -1
  548. package/lib/resources/bundles.js +0 -1
  549. package/lib/resources/captures.d.ts +0 -1
  550. package/lib/resources/captures.js +0 -1
  551. package/lib/resources/carrier_accounts.d.ts +0 -1
  552. package/lib/resources/carrier_accounts.js +0 -1
  553. package/lib/resources/checkout_com_gateways.d.ts +0 -1
  554. package/lib/resources/checkout_com_gateways.js +0 -1
  555. package/lib/resources/checkout_com_payments.d.ts +0 -1
  556. package/lib/resources/checkout_com_payments.js +0 -1
  557. package/lib/resources/coupon_codes_promotion_rules.d.ts +0 -1
  558. package/lib/resources/coupon_codes_promotion_rules.js +0 -1
  559. package/lib/resources/coupon_recipients.d.ts +0 -1
  560. package/lib/resources/coupon_recipients.js +0 -1
  561. package/lib/resources/coupons.d.ts +0 -1
  562. package/lib/resources/coupons.js +0 -1
  563. package/lib/resources/customer_addresses.d.ts +0 -1
  564. package/lib/resources/customer_addresses.js +0 -1
  565. package/lib/resources/customer_groups.d.ts +0 -1
  566. package/lib/resources/customer_groups.js +0 -1
  567. package/lib/resources/customer_password_resets.d.ts +0 -1
  568. package/lib/resources/customer_password_resets.js +0 -1
  569. package/lib/resources/customer_payment_sources.d.ts +0 -1
  570. package/lib/resources/customer_payment_sources.js +0 -1
  571. package/lib/resources/customer_subscriptions.d.ts +0 -1
  572. package/lib/resources/customer_subscriptions.js +0 -1
  573. package/lib/resources/customers.d.ts +0 -1
  574. package/lib/resources/customers.js +0 -1
  575. package/lib/resources/delivery_lead_times.d.ts +0 -1
  576. package/lib/resources/delivery_lead_times.js +0 -1
  577. package/lib/resources/event_callbacks.d.ts +0 -1
  578. package/lib/resources/event_callbacks.js +0 -1
  579. package/lib/resources/external_gateways.d.ts +0 -1
  580. package/lib/resources/external_gateways.js +0 -1
  581. package/lib/resources/external_payments.d.ts +0 -1
  582. package/lib/resources/external_payments.js +0 -1
  583. package/lib/resources/external_promotions.d.ts +0 -1
  584. package/lib/resources/external_promotions.js +0 -1
  585. package/lib/resources/external_tax_calculators.d.ts +0 -1
  586. package/lib/resources/external_tax_calculators.js +0 -1
  587. package/lib/resources/fixed_amount_promotions.d.ts +0 -1
  588. package/lib/resources/fixed_amount_promotions.js +0 -1
  589. package/lib/resources/fixed_price_promotions.d.ts +0 -1
  590. package/lib/resources/fixed_price_promotions.js +0 -1
  591. package/lib/resources/free_gift_promotions.d.ts +0 -1
  592. package/lib/resources/free_gift_promotions.js +0 -1
  593. package/lib/resources/free_shipping_promotions.d.ts +0 -1
  594. package/lib/resources/free_shipping_promotions.js +0 -1
  595. package/lib/resources/geocoders.d.ts +0 -1
  596. package/lib/resources/geocoders.js +0 -1
  597. package/lib/resources/gift_card_recipients.d.ts +0 -1
  598. package/lib/resources/gift_card_recipients.js +0 -1
  599. package/lib/resources/gift_cards.d.ts +0 -1
  600. package/lib/resources/gift_cards.js +0 -1
  601. package/lib/resources/google_geocoders.d.ts +0 -1
  602. package/lib/resources/google_geocoders.js +0 -1
  603. package/lib/resources/imports.d.ts +0 -1
  604. package/lib/resources/imports.js +0 -1
  605. package/lib/resources/in_stock_subscriptions.d.ts +0 -1
  606. package/lib/resources/in_stock_subscriptions.js +0 -1
  607. package/lib/resources/inventory_models.d.ts +0 -1
  608. package/lib/resources/inventory_models.js +0 -1
  609. package/lib/resources/inventory_return_locations.d.ts +0 -1
  610. package/lib/resources/inventory_return_locations.js +0 -1
  611. package/lib/resources/inventory_stock_locations.d.ts +0 -1
  612. package/lib/resources/inventory_stock_locations.js +0 -1
  613. package/lib/resources/klarna_gateways.d.ts +0 -1
  614. package/lib/resources/klarna_gateways.js +0 -1
  615. package/lib/resources/klarna_payments.d.ts +0 -1
  616. package/lib/resources/klarna_payments.js +0 -1
  617. package/lib/resources/line_item_options.d.ts +0 -1
  618. package/lib/resources/line_item_options.js +0 -1
  619. package/lib/resources/line_items.d.ts +0 -1
  620. package/lib/resources/line_items.js +0 -1
  621. package/lib/resources/manual_gateways.d.ts +0 -1
  622. package/lib/resources/manual_gateways.js +0 -1
  623. package/lib/resources/manual_tax_calculators.d.ts +0 -1
  624. package/lib/resources/manual_tax_calculators.js +0 -1
  625. package/lib/resources/markets.d.ts +0 -1
  626. package/lib/resources/markets.js +0 -1
  627. package/lib/resources/merchants.d.ts +0 -1
  628. package/lib/resources/merchants.js +0 -1
  629. package/lib/resources/order_amount_promotion_rules.d.ts +0 -1
  630. package/lib/resources/order_amount_promotion_rules.js +0 -1
  631. package/lib/resources/order_copies.d.ts +0 -1
  632. package/lib/resources/order_copies.js +0 -1
  633. package/lib/resources/order_subscriptions.d.ts +0 -1
  634. package/lib/resources/order_subscriptions.js +0 -1
  635. package/lib/resources/order_validation_rules.d.ts +0 -1
  636. package/lib/resources/order_validation_rules.js +0 -1
  637. package/lib/resources/orders.d.ts +0 -1
  638. package/lib/resources/orders.js +0 -1
  639. package/lib/resources/organization.d.ts +0 -1
  640. package/lib/resources/organization.js +0 -1
  641. package/lib/resources/packages.d.ts +0 -1
  642. package/lib/resources/packages.js +0 -1
  643. package/lib/resources/parcel_line_items.d.ts +0 -1
  644. package/lib/resources/parcel_line_items.js +0 -1
  645. package/lib/resources/parcels.d.ts +0 -1
  646. package/lib/resources/parcels.js +0 -1
  647. package/lib/resources/payment_gateways.d.ts +0 -1
  648. package/lib/resources/payment_gateways.js +0 -1
  649. package/lib/resources/payment_methods.d.ts +0 -1
  650. package/lib/resources/payment_methods.js +0 -1
  651. package/lib/resources/paypal_gateways.d.ts +0 -1
  652. package/lib/resources/paypal_gateways.js +0 -1
  653. package/lib/resources/paypal_payments.d.ts +0 -1
  654. package/lib/resources/paypal_payments.js +0 -1
  655. package/lib/resources/percentage_discount_promotions.d.ts +0 -1
  656. package/lib/resources/percentage_discount_promotions.js +0 -1
  657. package/lib/resources/price_lists.d.ts +0 -1
  658. package/lib/resources/price_lists.js +0 -1
  659. package/lib/resources/prices.d.ts +0 -1
  660. package/lib/resources/prices.js +0 -1
  661. package/lib/resources/promotion_rules.d.ts +0 -1
  662. package/lib/resources/promotion_rules.js +0 -1
  663. package/lib/resources/promotions.d.ts +0 -1
  664. package/lib/resources/promotions.js +0 -1
  665. package/lib/resources/refunds.d.ts +0 -1
  666. package/lib/resources/refunds.js +0 -1
  667. package/lib/resources/return_line_items.d.ts +0 -1
  668. package/lib/resources/return_line_items.js +0 -1
  669. package/lib/resources/returns.d.ts +0 -1
  670. package/lib/resources/returns.js +0 -1
  671. package/lib/resources/shipments.d.ts +0 -1
  672. package/lib/resources/shipments.js +0 -1
  673. package/lib/resources/shipping_categories.d.ts +0 -1
  674. package/lib/resources/shipping_categories.js +0 -1
  675. package/lib/resources/shipping_methods.d.ts +0 -1
  676. package/lib/resources/shipping_methods.js +0 -1
  677. package/lib/resources/shipping_zones.d.ts +0 -1
  678. package/lib/resources/shipping_zones.js +0 -1
  679. package/lib/resources/sku_list_items.d.ts +0 -1
  680. package/lib/resources/sku_list_items.js +0 -1
  681. package/lib/resources/sku_list_promotion_rules.d.ts +0 -1
  682. package/lib/resources/sku_list_promotion_rules.js +0 -1
  683. package/lib/resources/sku_lists.d.ts +0 -1
  684. package/lib/resources/sku_lists.js +0 -1
  685. package/lib/resources/sku_options.d.ts +0 -1
  686. package/lib/resources/sku_options.js +0 -1
  687. package/lib/resources/skus.d.ts +0 -1
  688. package/lib/resources/skus.js +0 -1
  689. package/lib/resources/stock_items.d.ts +0 -1
  690. package/lib/resources/stock_items.js +0 -1
  691. package/lib/resources/stock_line_items.d.ts +0 -1
  692. package/lib/resources/stock_line_items.js +0 -1
  693. package/lib/resources/stock_locations.d.ts +0 -1
  694. package/lib/resources/stock_locations.js +0 -1
  695. package/lib/resources/stock_transfers.d.ts +0 -1
  696. package/lib/resources/stock_transfers.js +0 -1
  697. package/lib/resources/stripe_gateways.d.ts +0 -1
  698. package/lib/resources/stripe_gateways.js +0 -1
  699. package/lib/resources/stripe_payments.d.ts +0 -1
  700. package/lib/resources/stripe_payments.js +0 -1
  701. package/lib/resources/tax_calculators.d.ts +0 -1
  702. package/lib/resources/tax_calculators.js +0 -1
  703. package/lib/resources/tax_categories.d.ts +0 -1
  704. package/lib/resources/tax_categories.js +0 -1
  705. package/lib/resources/tax_rules.d.ts +0 -1
  706. package/lib/resources/tax_rules.js +0 -1
  707. package/lib/resources/taxjar_accounts.d.ts +0 -1
  708. package/lib/resources/taxjar_accounts.js +0 -1
  709. package/lib/resources/transactions.d.ts +0 -1
  710. package/lib/resources/transactions.js +0 -1
  711. package/lib/resources/voids.d.ts +0 -1
  712. package/lib/resources/voids.js +0 -1
  713. package/lib/resources/webhooks.d.ts +0 -1
  714. package/lib/resources/webhooks.js +0 -1
  715. package/lib/resources/wire_transfers.d.ts +0 -1
  716. package/lib/resources/wire_transfers.js +0 -1
  717. package/lib/static.d.ts +0 -1
  718. package/lib/static.js +0 -1
  719. package/lib/util.d.ts +0 -2
  720. package/lib/util.js +0 -1
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{Attachment}from'./attachments';import type{SkuList}from'./sku_lists';import type{Sku}from'./skus';declare type PercentageDiscountPromotionRel=ResourceRel&{type:typeof PercentageDiscountPromotions.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type PromotionRuleRel=ResourceRel&{type:'promotion_rules';};declare type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};declare type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};declare type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};declare type SkuListRel=ResourceRel&{type:'sku_lists';};interface PercentageDiscountPromotion extends Resource{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;percentage?:number;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;attachments?:Attachment[];sku_list?:SkuList;skus?:Sku[];}interface PercentageDiscountPromotionCreate extends ResourceCreate{name:string;currency_code?:string;starts_at:string;expires_at:string;total_usage_limit:number;percentage:number;market?:MarketRel;promotion_rules?:PromotionRuleRel[];order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;sku_list?:SkuListRel;}interface PercentageDiscountPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;percentage?:number;market?:MarketRel;promotion_rules?:PromotionRuleRel[];order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;sku_list?:SkuListRel;}declare class PercentageDiscountPromotions extends ApiResource{static readonly TYPE:'percentage_discount_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PercentageDiscountPromotion>>;create(resource:PercentageDiscountPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PercentageDiscountPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PercentageDiscountPromotion>;update(resource:PercentageDiscountPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PercentageDiscountPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;attachments(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;sku_list(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;skus(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isPercentageDiscountPromotion(resource:any):resource is PercentageDiscountPromotion;relationship(id:string|ResourceId|null):PercentageDiscountPromotionRel;type():string;}export default PercentageDiscountPromotions;export{PercentageDiscountPromotion,PercentageDiscountPromotionCreate,PercentageDiscountPromotionUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as n}from"../resource";class o extends n{static TYPE="percentage_discount_promotions";async list(e,t){return this.resources.list({type:o.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:o.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:o.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:o.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:o.TYPE,id:e},t)}async market(e,t,s){const r=e.id||e;return this.resources.fetch({type:"markets"},`percentage_discount_promotions/${r}/market`,t,s)}async order_amount_promotion_rule(e,t,s){const r=e.id||e;return this.resources.fetch({type:"order_amount_promotion_rules"},`percentage_discount_promotions/${r}/order_amount_promotion_rule`,t,s)}async sku_list_promotion_rule(e,t,s){const r=e.id||e;return this.resources.fetch({type:"sku_list_promotion_rules"},`percentage_discount_promotions/${r}/sku_list_promotion_rule`,t,s)}async coupon_codes_promotion_rule(e,t,s){const r=e.id||e;return this.resources.fetch({type:"coupon_codes_promotion_rules"},`percentage_discount_promotions/${r}/coupon_codes_promotion_rule`,t,s)}async attachments(e,t,s){const r=e.id||e;return this.resources.fetch({type:"attachments"},`percentage_discount_promotions/${r}/attachments`,t,s)}async sku_list(e,t,s){const r=e.id||e;return this.resources.fetch({type:"sku_lists"},`percentage_discount_promotions/${r}/sku_list`,t,s)}async skus(e,t,s){const r=e.id||e;return this.resources.fetch({type:"skus"},`percentage_discount_promotions/${r}/skus`,t,s)}isPercentageDiscountPromotion(e){return e.type&&e.type===o.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:o.TYPE}:{id:e.id,type:o.TYPE}}type(){return o.TYPE}}export default o;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Price}from'./prices';import type{Attachment}from'./attachments';declare type PriceListRel=ResourceRel&{type:typeof PriceLists.TYPE;};interface PriceList extends Resource{name?:string;currency_code?:string;tax_included?:boolean;prices?:Price[];attachments?:Attachment[];}interface PriceListCreate extends ResourceCreate{name:string;currency_code:string;tax_included?:boolean;}interface PriceListUpdate extends ResourceUpdate{name?:string;currency_code?:string;tax_included?:boolean;}declare class PriceLists extends ApiResource{static readonly TYPE:'price_lists';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PriceList>>;create(resource:PriceListCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;update(resource:PriceListUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;delete(id:string,options?:ResourcesConfig):Promise<void>;prices(priceListId:string|PriceList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Price>>;attachments(priceListId:string|PriceList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isPriceList(resource:any):resource is PriceList;relationship(id:string|ResourceId|null):PriceListRel;type():string;}export default PriceLists;export{PriceList,PriceListCreate,PriceListUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as c}from"../resource";class r extends c{static TYPE="price_lists";async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async prices(e,t,s){const i=e.id||e;return this.resources.fetch({type:"prices"},`price_lists/${i}/prices`,t,s)}async attachments(e,t,s){const i=e.id||e;return this.resources.fetch({type:"attachments"},`price_lists/${i}/attachments`,t,s)}isPriceList(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}export default r;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PriceList}from'./price_lists';import type{Sku}from'./skus';import type{Attachment}from'./attachments';declare type PriceRel=ResourceRel&{type:typeof Prices.TYPE;};declare type PriceListRel=ResourceRel&{type:'price_lists';};declare type SkuRel=ResourceRel&{type:'skus';};interface Price extends Resource{currency_code?:string;sku_code?:string;amount_cents?:number;amount_float?:number;formatted_amount?:string;compare_at_amount_cents?:number;compare_at_amount_float?:number;formatted_compare_at_amount?:string;price_list?:PriceList;sku?:Sku;attachments?:Attachment[];}interface PriceCreate extends ResourceCreate{sku_code?:string;amount_cents:number;compare_at_amount_cents:number;price_list:PriceListRel;sku?:SkuRel;}interface PriceUpdate extends ResourceUpdate{sku_code?:string;amount_cents?:number;compare_at_amount_cents?:number;price_list?:PriceListRel;sku?:SkuRel;}declare class Prices extends ApiResource{static readonly TYPE:'prices';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Price>>;create(resource:PriceCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Price>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Price>;update(resource:PriceUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Price>;delete(id:string,options?:ResourcesConfig):Promise<void>;price_list(priceId:string|Price,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;sku(priceId:string|Price,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;attachments(priceId:string|Price,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isPrice(resource:any):resource is Price;relationship(id:string|ResourceId|null):PriceRel;type():string;}export default Prices;export{Price,PriceCreate,PriceUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as i}from"../resource";class r extends i{static TYPE="prices";async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async price_list(e,t,s){const c=e.id||e;return this.resources.fetch({type:"price_lists"},`prices/${c}/price_list`,t,s)}async sku(e,t,s){const c=e.id||e;return this.resources.fetch({type:"skus"},`prices/${c}/sku`,t,s)}async attachments(e,t,s){const c=e.id||e;return this.resources.fetch({type:"attachments"},`prices/${c}/attachments`,t,s)}isPrice(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}export default r;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PercentageDiscountPromotion}from'./percentage_discount_promotions';import type{FreeShippingPromotion}from'./free_shipping_promotions';import type{FixedAmountPromotion}from'./fixed_amount_promotions';import type{FreeGiftPromotion}from'./free_gift_promotions';import type{FixedPricePromotion}from'./fixed_price_promotions';import type{ExternalPromotion}from'./external_promotions';declare type PromotionRuleRel=ResourceRel&{type:typeof PromotionRules.TYPE;};interface PromotionRule extends Resource{promotion?:PercentageDiscountPromotion|FreeShippingPromotion|FixedAmountPromotion|FreeGiftPromotion|FixedPricePromotion|ExternalPromotion;}declare class PromotionRules extends ApiResource{static readonly TYPE:'promotion_rules';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PromotionRule>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PromotionRule>;isPromotionRule(resource:any):resource is PromotionRule;relationship(id:string|ResourceId|null):PromotionRuleRel;type():string;}export default PromotionRules;export{PromotionRule};
@@ -1 +0,0 @@
1
- import{ApiResource as s}from"../resource";class e extends s{static TYPE="promotion_rules";async list(t,r){return this.resources.list({type:e.TYPE},t,r)}async retrieve(t,r,i){return this.resources.retrieve({type:e.TYPE,id:t},r,i)}isPromotionRule(t){return t.type&&t.type===e.TYPE}relationship(t){return t===null||typeof t=="string"?{id:t,type:e.TYPE}:{id:t.id,type:e.TYPE}}type(){return e.TYPE}}export default e;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{Attachment}from'./attachments';declare type PromotionRel=ResourceRel&{type:typeof Promotions.TYPE;};interface Promotion extends Resource{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;attachments?:Attachment[];}declare class Promotions extends ApiResource{static readonly TYPE:'promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Promotion>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Promotion>;market(promotionId:string|Promotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(promotionId:string|Promotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(promotionId:string|Promotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(promotionId:string|Promotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;attachments(promotionId:string|Promotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isPromotion(resource:any):resource is Promotion;relationship(id:string|ResourceId|null):PromotionRel;type():string;}export default Promotions;export{Promotion};
@@ -1 +0,0 @@
1
- import{ApiResource as n}from"../resource";class s extends n{static TYPE="promotions";async list(t,e){return this.resources.list({type:s.TYPE},t,e)}async retrieve(t,e,r){return this.resources.retrieve({type:s.TYPE,id:t},e,r)}async market(t,e,r){const o=t.id||t;return this.resources.fetch({type:"markets"},`promotions/${o}/market`,e,r)}async order_amount_promotion_rule(t,e,r){const o=t.id||t;return this.resources.fetch({type:"order_amount_promotion_rules"},`promotions/${o}/order_amount_promotion_rule`,e,r)}async sku_list_promotion_rule(t,e,r){const o=t.id||t;return this.resources.fetch({type:"sku_list_promotion_rules"},`promotions/${o}/sku_list_promotion_rule`,e,r)}async coupon_codes_promotion_rule(t,e,r){const o=t.id||t;return this.resources.fetch({type:"coupon_codes_promotion_rules"},`promotions/${o}/coupon_codes_promotion_rule`,e,r)}async attachments(t,e,r){const o=t.id||t;return this.resources.fetch({type:"attachments"},`promotions/${o}/attachments`,e,r)}isPromotion(t){return t.type&&t.type===s.TYPE}relationship(t){return t===null||typeof t=="string"?{id:t,type:s.TYPE}:{id:t.id,type:s.TYPE}}type(){return s.TYPE}}export default s;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{Capture}from'./captures';declare type RefundRel=ResourceRel&{type:typeof Refunds.TYPE;};interface Refund extends Resource{number?:string;currency_code?:string;amount_cents?:number;amount_float?:number;formatted_amount?:string;succeeded?:boolean;message?:string;error_code?:string;error_detail?:string;token?:string;gateway_transaction_id?:string;order?:Order;reference_capture?:Capture;}declare class Refunds extends ApiResource{static readonly TYPE:'refunds';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Refund>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Refund>;order(refundId:string|Refund,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;reference_capture(refundId:string|Refund,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Capture>;isRefund(resource:any):resource is Refund;relationship(id:string|ResourceId|null):RefundRel;type():string;}export default Refunds;export{Refund};
@@ -1 +0,0 @@
1
- import{ApiResource as c}from"../resource";class r extends c{static TYPE="refunds";async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async order(e,t,s){const n=e.id||e;return this.resources.fetch({type:"orders"},`refunds/${n}/order`,t,s)}async reference_capture(e,t,s){const n=e.id||e;return this.resources.fetch({type:"captures"},`refunds/${n}/reference_capture`,t,s)}isRefund(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}export default r;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Return}from'./returns';import type{LineItem}from'./line_items';declare type ReturnLineItemRel=ResourceRel&{type:typeof ReturnLineItems.TYPE;};declare type ReturnRel=ResourceRel&{type:'returns';};declare type LineItemRel=ResourceRel&{type:'line_items';};interface ReturnLineItem extends Resource{sku_code?:string;bundle_code?:string;name?:string;quantity?:number;return_reason?:object;restocked_at?:string;return?:Return;line_item?:LineItem;}interface ReturnLineItemCreate extends ResourceCreate{quantity:number;return_reason?:object;return:ReturnRel;line_item:LineItemRel;}interface ReturnLineItemUpdate extends ResourceUpdate{quantity?:number;_restock?:boolean;return_reason?:object;}declare class ReturnLineItems extends ApiResource{static readonly TYPE:'return_line_items';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ReturnLineItem>>;create(resource:ReturnLineItemCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ReturnLineItem>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ReturnLineItem>;update(resource:ReturnLineItemUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ReturnLineItem>;delete(id:string,options?:ResourcesConfig):Promise<void>;return(returnLineItemId:string|ReturnLineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Return>;line_item(returnLineItemId:string|ReturnLineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;isReturnLineItem(resource:any):resource is ReturnLineItem;relationship(id:string|ResourceId|null):ReturnLineItemRel;type():string;}export default ReturnLineItems;export{ReturnLineItem,ReturnLineItemCreate,ReturnLineItemUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as n}from"../resource";class r extends n{static TYPE="return_line_items";async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async return(e,t,s){const i=e.id||e;return this.resources.fetch({type:"returns"},`return_line_items/${i}/return`,t,s)}async line_item(e,t,s){const i=e.id||e;return this.resources.fetch({type:"line_items"},`return_line_items/${i}/line_item`,t,s)}isReturnLineItem(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}export default r;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{Customer}from'./customers';import type{StockLocation}from'./stock_locations';import type{Address}from'./addresses';import type{ReturnLineItem}from'./return_line_items';import type{Attachment}from'./attachments';declare type ReturnRel=ResourceRel&{type:typeof Returns.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};declare type StockLocationRel=ResourceRel&{type:'stock_locations';};interface Return extends Resource{number?:string;status?:string;customer_email?:string;skus_count?:number;approved_at?:string;cancelled_at?:string;shipped_at?:string;rejected_at?:string;received_at?:string;archived_at?:string;order?:Order;customer?:Customer;stock_location?:StockLocation;origin_address?:Address;destination_address?:Address;return_line_items?:ReturnLineItem[];attachments?:Attachment[];}interface ReturnCreate extends ResourceCreate{order:OrderRel;stock_location?:StockLocationRel;}interface ReturnUpdate extends ResourceUpdate{_request?:boolean;_approve?:boolean;_cancel?:boolean;_ship?:boolean;_reject?:boolean;_receive?:boolean;_restock?:boolean;_archive?:boolean;_unarchive?:boolean;stock_location?:StockLocationRel;}declare class Returns extends ApiResource{static readonly TYPE:'returns';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Return>>;create(resource:ReturnCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Return>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Return>;update(resource:ReturnUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Return>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(returnId:string|Return,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;customer(returnId:string|Return,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;stock_location(returnId:string|Return,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;origin_address(returnId:string|Return,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;destination_address(returnId:string|Return,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;return_line_items(returnId:string|Return,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ReturnLineItem>>;attachments(returnId:string|Return,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isReturn(resource:any):resource is Return;relationship(id:string|ResourceId|null):ReturnRel;type():string;}export default Returns;export{Return,ReturnCreate,ReturnUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as i}from"../resource";class n extends i{static TYPE="returns";async list(e,t){return this.resources.list({type:n.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:n.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:n.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:n.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:n.TYPE,id:e},t)}async order(e,t,s){const r=e.id||e;return this.resources.fetch({type:"orders"},`returns/${r}/order`,t,s)}async customer(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customers"},`returns/${r}/customer`,t,s)}async stock_location(e,t,s){const r=e.id||e;return this.resources.fetch({type:"stock_locations"},`returns/${r}/stock_location`,t,s)}async origin_address(e,t,s){const r=e.id||e;return this.resources.fetch({type:"addresses"},`returns/${r}/origin_address`,t,s)}async destination_address(e,t,s){const r=e.id||e;return this.resources.fetch({type:"addresses"},`returns/${r}/destination_address`,t,s)}async return_line_items(e,t,s){const r=e.id||e;return this.resources.fetch({type:"return_line_items"},`returns/${r}/return_line_items`,t,s)}async attachments(e,t,s){const r=e.id||e;return this.resources.fetch({type:"attachments"},`returns/${r}/attachments`,t,s)}isReturn(e){return e.type&&e.type===n.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:n.TYPE}:{id:e.id,type:n.TYPE}}type(){return n.TYPE}}export default n;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{ShippingCategory}from'./shipping_categories';import type{StockLocation}from'./stock_locations';import type{Address}from'./addresses';import type{ShippingMethod}from'./shipping_methods';import type{DeliveryLeadTime}from'./delivery_lead_times';import type{StockLineItem}from'./stock_line_items';import type{StockTransfer}from'./stock_transfers';import type{CarrierAccount}from'./carrier_accounts';import type{Parcel}from'./parcels';import type{Attachment}from'./attachments';declare type ShipmentRel=ResourceRel&{type:typeof Shipments.TYPE;};declare type ShippingMethodRel=ResourceRel&{type:'shipping_methods';};interface Shipment extends Resource{number?:string;status?:string;currency_code?:string;cost_amount_cents?:number;cost_amount_float?:number;formatted_cost_amount?:string;skus_count?:number;selected_rate_id?:string;rates?:object[];purchase_error_code?:string;purchase_error_message?:string;get_rates_started_at?:string;get_rates_completed_at?:string;purchase_started_at?:string;purchase_completed_at?:string;purchase_failed_at?:string;order?:Order;shipping_category?:ShippingCategory;stock_location?:StockLocation;origin_address?:Address;shipping_address?:Address;shipping_method?:ShippingMethod;delivery_lead_time?:DeliveryLeadTime;shipment_line_items?:object[];stock_line_items?:StockLineItem[];stock_transfers?:StockTransfer[];available_shipping_methods?:ShippingMethod[];carrier_accounts?:CarrierAccount[];parcels?:Parcel[];attachments?:Attachment[];}interface ShipmentUpdate extends ResourceUpdate{_on_hold?:boolean;_picking?:boolean;_packing?:boolean;_ready_to_ship?:boolean;_ship?:boolean;_get_rates?:boolean;selected_rate_id?:string;_purchase?:boolean;shipping_method?:ShippingMethodRel;}declare class Shipments extends ApiResource{static readonly TYPE:'shipments';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Shipment>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;update(resource:ShipmentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;order(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;shipping_category(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingCategory>;stock_location(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;origin_address(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;shipping_address(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;shipping_method(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingMethod>;delivery_lead_time(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<DeliveryLeadTime>;stock_line_items(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLineItem>>;stock_transfers(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;available_shipping_methods(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ShippingMethod>>;carrier_accounts(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CarrierAccount>>;parcels(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Parcel>>;attachments(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isShipment(resource:any):resource is Shipment;relationship(id:string|ResourceId|null):ShipmentRel;type():string;}export default Shipments;export{Shipment,ShipmentUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as n}from"../resource";class i extends n{static TYPE="shipments";async list(s,t){return this.resources.list({type:i.TYPE},s,t)}async retrieve(s,t,e){return this.resources.retrieve({type:i.TYPE,id:s},t,e)}async update(s,t,e){return this.resources.update({...s,type:i.TYPE},t,e)}async order(s,t,e){const r=s.id||s;return this.resources.fetch({type:"orders"},`shipments/${r}/order`,t,e)}async shipping_category(s,t,e){const r=s.id||s;return this.resources.fetch({type:"shipping_categories"},`shipments/${r}/shipping_category`,t,e)}async stock_location(s,t,e){const r=s.id||s;return this.resources.fetch({type:"stock_locations"},`shipments/${r}/stock_location`,t,e)}async origin_address(s,t,e){const r=s.id||s;return this.resources.fetch({type:"addresses"},`shipments/${r}/origin_address`,t,e)}async shipping_address(s,t,e){const r=s.id||s;return this.resources.fetch({type:"addresses"},`shipments/${r}/shipping_address`,t,e)}async shipping_method(s,t,e){const r=s.id||s;return this.resources.fetch({type:"shipping_methods"},`shipments/${r}/shipping_method`,t,e)}async delivery_lead_time(s,t,e){const r=s.id||s;return this.resources.fetch({type:"delivery_lead_times"},`shipments/${r}/delivery_lead_time`,t,e)}async stock_line_items(s,t,e){const r=s.id||s;return this.resources.fetch({type:"stock_line_items"},`shipments/${r}/stock_line_items`,t,e)}async stock_transfers(s,t,e){const r=s.id||s;return this.resources.fetch({type:"stock_transfers"},`shipments/${r}/stock_transfers`,t,e)}async available_shipping_methods(s,t,e){const r=s.id||s;return this.resources.fetch({type:"shipping_methods"},`shipments/${r}/available_shipping_methods`,t,e)}async carrier_accounts(s,t,e){const r=s.id||s;return this.resources.fetch({type:"carrier_accounts"},`shipments/${r}/carrier_accounts`,t,e)}async parcels(s,t,e){const r=s.id||s;return this.resources.fetch({type:"parcels"},`shipments/${r}/parcels`,t,e)}async attachments(s,t,e){const r=s.id||s;return this.resources.fetch({type:"attachments"},`shipments/${r}/attachments`,t,e)}isShipment(s){return s.type&&s.type===i.TYPE}relationship(s){return s===null||typeof s=="string"?{id:s,type:i.TYPE}:{id:s.id,type:i.TYPE}}type(){return i.TYPE}}export default i;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Sku}from'./skus';import type{Attachment}from'./attachments';declare type ShippingCategoryRel=ResourceRel&{type:typeof ShippingCategories.TYPE;};interface ShippingCategory extends Resource{name?:string;skus?:Sku[];attachments?:Attachment[];}interface ShippingCategoryCreate extends ResourceCreate{name:string;}interface ShippingCategoryUpdate extends ResourceUpdate{name?:string;}declare class ShippingCategories extends ApiResource{static readonly TYPE:'shipping_categories';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ShippingCategory>>;create(resource:ShippingCategoryCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingCategory>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingCategory>;update(resource:ShippingCategoryUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingCategory>;delete(id:string,options?:ResourcesConfig):Promise<void>;skus(shippingCategoryId:string|ShippingCategory,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;attachments(shippingCategoryId:string|ShippingCategory,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isShippingCategory(resource:any):resource is ShippingCategory;relationship(id:string|ResourceId|null):ShippingCategoryRel;type():string;}export default ShippingCategories;export{ShippingCategory,ShippingCategoryCreate,ShippingCategoryUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as c}from"../resource";class s extends c{static TYPE="shipping_categories";async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create({...e,type:s.TYPE},t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update({...e,type:s.TYPE},t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async skus(e,t,r){const i=e.id||e;return this.resources.fetch({type:"skus"},`shipping_categories/${i}/skus`,t,r)}async attachments(e,t,r){const i=e.id||e;return this.resources.fetch({type:"attachments"},`shipping_categories/${i}/attachments`,t,r)}isShippingCategory(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}export default s;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{ShippingZone}from'./shipping_zones';import type{ShippingCategory}from'./shipping_categories';import type{DeliveryLeadTime}from'./delivery_lead_times';import type{Attachment}from'./attachments';declare type ShippingMethodRel=ResourceRel&{type:typeof ShippingMethods.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type ShippingZoneRel=ResourceRel&{type:'shipping_zones';};declare type ShippingCategoryRel=ResourceRel&{type:'shipping_categories';};interface ShippingMethod extends Resource{name?:string;currency_code?:string;disabled_at?:string;price_amount_cents?:number;price_amount_float?:number;formatted_price_amount?:string;free_over_amount_cents?:number;free_over_amount_float?:number;formatted_free_over_amount?:string;price_amount_for_shipment_cents?:number;price_amount_for_shipment_float?:number;formatted_price_amount_for_shipment?:string;market?:Market;shipping_zone?:ShippingZone;shipping_category?:ShippingCategory;delivery_lead_time_for_shipment?:DeliveryLeadTime;attachments?:Attachment[];}interface ShippingMethodCreate extends ResourceCreate{name:string;currency_code?:string;price_amount_cents:number;free_over_amount_cents?:number;market?:MarketRel;shipping_zone:ShippingZoneRel;shipping_category:ShippingCategoryRel;}interface ShippingMethodUpdate extends ResourceUpdate{name?:string;currency_code?:string;price_amount_cents?:number;free_over_amount_cents?:number;market?:MarketRel;shipping_zone?:ShippingZoneRel;shipping_category?:ShippingCategoryRel;}declare class ShippingMethods extends ApiResource{static readonly TYPE:'shipping_methods';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ShippingMethod>>;create(resource:ShippingMethodCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingMethod>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingMethod>;update(resource:ShippingMethodUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingMethod>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(shippingMethodId:string|ShippingMethod,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;shipping_zone(shippingMethodId:string|ShippingMethod,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingZone>;shipping_category(shippingMethodId:string|ShippingMethod,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingCategory>;delivery_lead_time_for_shipment(shippingMethodId:string|ShippingMethod,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<DeliveryLeadTime>;attachments(shippingMethodId:string|ShippingMethod,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isShippingMethod(resource:any):resource is ShippingMethod;relationship(id:string|ResourceId|null):ShippingMethodRel;type():string;}export default ShippingMethods;export{ShippingMethod,ShippingMethodCreate,ShippingMethodUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as n}from"../resource";class r extends n{static TYPE="shipping_methods";async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async market(e,t,s){const i=e.id||e;return this.resources.fetch({type:"markets"},`shipping_methods/${i}/market`,t,s)}async shipping_zone(e,t,s){const i=e.id||e;return this.resources.fetch({type:"shipping_zones"},`shipping_methods/${i}/shipping_zone`,t,s)}async shipping_category(e,t,s){const i=e.id||e;return this.resources.fetch({type:"shipping_categories"},`shipping_methods/${i}/shipping_category`,t,s)}async delivery_lead_time_for_shipment(e,t,s){const i=e.id||e;return this.resources.fetch({type:"delivery_lead_times"},`shipping_methods/${i}/delivery_lead_time_for_shipment`,t,s)}async attachments(e,t,s){const i=e.id||e;return this.resources.fetch({type:"attachments"},`shipping_methods/${i}/attachments`,t,s)}isShippingMethod(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}export default r;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Attachment}from'./attachments';declare type ShippingZoneRel=ResourceRel&{type:typeof ShippingZones.TYPE;};interface ShippingZone extends Resource{name?:string;country_code_regex?:string;not_country_code_regex?:string;state_code_regex?:string;not_state_code_regex?:string;zip_code_regex?:string;not_zip_code_regex?:string;attachments?:Attachment[];}interface ShippingZoneCreate extends ResourceCreate{name:string;country_code_regex?:string;not_country_code_regex?:string;state_code_regex?:string;not_state_code_regex?:string;zip_code_regex?:string;not_zip_code_regex?:string;}interface ShippingZoneUpdate extends ResourceUpdate{name?:string;country_code_regex?:string;not_country_code_regex?:string;state_code_regex?:string;not_state_code_regex?:string;zip_code_regex?:string;not_zip_code_regex?:string;}declare class ShippingZones extends ApiResource{static readonly TYPE:'shipping_zones';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ShippingZone>>;create(resource:ShippingZoneCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingZone>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingZone>;update(resource:ShippingZoneUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingZone>;delete(id:string,options?:ResourcesConfig):Promise<void>;attachments(shippingZoneId:string|ShippingZone,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isShippingZone(resource:any):resource is ShippingZone;relationship(id:string|ResourceId|null):ShippingZoneRel;type():string;}export default ShippingZones;export{ShippingZone,ShippingZoneCreate,ShippingZoneUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as n}from"../resource";class r extends n{static TYPE="shipping_zones";async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async attachments(e,t,s){const i=e.id||e;return this.resources.fetch({type:"attachments"},`shipping_zones/${i}/attachments`,t,s)}isShippingZone(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}export default r;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{SkuList}from'./sku_lists';import type{Sku}from'./skus';declare type SkuListItemRel=ResourceRel&{type:typeof SkuListItems.TYPE;};declare type SkuListRel=ResourceRel&{type:'sku_lists';};declare type SkuRel=ResourceRel&{type:'skus';};interface SkuListItem extends Resource{position?:number;sku_code?:string;quantity?:number;sku_list?:SkuList;sku?:Sku;}interface SkuListItemCreate extends ResourceCreate{position?:number;sku_code?:string;quantity?:number;sku_list:SkuListRel;sku:SkuRel;}interface SkuListItemUpdate extends ResourceUpdate{position?:number;sku_code?:string;quantity?:number;}declare class SkuListItems extends ApiResource{static readonly TYPE:'sku_list_items';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<SkuListItem>>;create(resource:SkuListItemCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListItem>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListItem>;update(resource:SkuListItemUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListItem>;delete(id:string,options?:ResourcesConfig):Promise<void>;sku_list(skuListItemId:string|SkuListItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;sku(skuListItemId:string|SkuListItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;isSkuListItem(resource:any):resource is SkuListItem;relationship(id:string|ResourceId|null):SkuListItemRel;type():string;}export default SkuListItems;export{SkuListItem,SkuListItemCreate,SkuListItemUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as u}from"../resource";class s extends u{static TYPE="sku_list_items";async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create({...e,type:s.TYPE},t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update({...e,type:s.TYPE},t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async sku_list(e,t,r){const i=e.id||e;return this.resources.fetch({type:"sku_lists"},`sku_list_items/${i}/sku_list`,t,r)}async sku(e,t,r){const i=e.id||e;return this.resources.fetch({type:"skus"},`sku_list_items/${i}/sku`,t,r)}isSkuListItem(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}export default s;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PercentageDiscountPromotion}from'./percentage_discount_promotions';import type{FreeShippingPromotion}from'./free_shipping_promotions';import type{FixedAmountPromotion}from'./fixed_amount_promotions';import type{FreeGiftPromotion}from'./free_gift_promotions';import type{FixedPricePromotion}from'./fixed_price_promotions';import type{ExternalPromotion}from'./external_promotions';import type{SkuList}from'./sku_lists';import type{Sku}from'./skus';declare type SkuListPromotionRuleRel=ResourceRel&{type:typeof SkuListPromotionRules.TYPE;};declare type PercentageDiscountPromotionRel=ResourceRel&{type:'percentage_discount_promotions';};declare type FreeShippingPromotionRel=ResourceRel&{type:'free_shipping_promotions';};declare type FixedAmountPromotionRel=ResourceRel&{type:'fixed_amount_promotions';};declare type FreeGiftPromotionRel=ResourceRel&{type:'free_gift_promotions';};declare type FixedPricePromotionRel=ResourceRel&{type:'fixed_price_promotions';};declare type ExternalPromotionRel=ResourceRel&{type:'external_promotions';};declare type SkuListRel=ResourceRel&{type:'sku_lists';};interface SkuListPromotionRule extends Resource{all_skus?:boolean;min_quantity?:number;promotion?:PercentageDiscountPromotion|FreeShippingPromotion|FixedAmountPromotion|FreeGiftPromotion|FixedPricePromotion|ExternalPromotion;sku_list?:SkuList;skus?:Sku[];}interface SkuListPromotionRuleCreate extends ResourceCreate{all_skus?:boolean;min_quantity?:number;promotion:PercentageDiscountPromotionRel|FreeShippingPromotionRel|FixedAmountPromotionRel|FreeGiftPromotionRel|FixedPricePromotionRel|ExternalPromotionRel;sku_list?:SkuListRel;}interface SkuListPromotionRuleUpdate extends ResourceUpdate{all_skus?:boolean;min_quantity?:number;promotion?:PercentageDiscountPromotionRel|FreeShippingPromotionRel|FixedAmountPromotionRel|FreeGiftPromotionRel|FixedPricePromotionRel|ExternalPromotionRel;sku_list?:SkuListRel;}declare class SkuListPromotionRules extends ApiResource{static readonly TYPE:'sku_list_promotion_rules';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<SkuListPromotionRule>>;create(resource:SkuListPromotionRuleCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;update(resource:SkuListPromotionRuleUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;delete(id:string,options?:ResourcesConfig):Promise<void>;sku_list(skuListPromotionRuleId:string|SkuListPromotionRule,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;skus(skuListPromotionRuleId:string|SkuListPromotionRule,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isSkuListPromotionRule(resource:any):resource is SkuListPromotionRule;relationship(id:string|ResourceId|null):SkuListPromotionRuleRel;type():string;}export default SkuListPromotionRules;export{SkuListPromotionRule,SkuListPromotionRuleCreate,SkuListPromotionRuleUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as u}from"../resource";class s extends u{static TYPE="sku_list_promotion_rules";async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create({...e,type:s.TYPE},t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update({...e,type:s.TYPE},t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async sku_list(e,t,r){const i=e.id||e;return this.resources.fetch({type:"sku_lists"},`sku_list_promotion_rules/${i}/sku_list`,t,r)}async skus(e,t,r){const i=e.id||e;return this.resources.fetch({type:"skus"},`sku_list_promotion_rules/${i}/skus`,t,r)}isSkuListPromotionRule(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}export default s;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Sku}from'./skus';import type{SkuListItem}from'./sku_list_items';import type{Bundle}from'./bundles';declare type SkuListRel=ResourceRel&{type:typeof SkuLists.TYPE;};interface SkuList extends Resource{name?:string;slug?:string;description?:string;image_url?:string;manual?:boolean;sku_code_regex?:string;skus?:Sku[];sku_list_items?:SkuListItem[];bundles?:Bundle[];}interface SkuListCreate extends ResourceCreate{name:string;description?:string;image_url?:string;manual?:boolean;sku_code_regex?:string;}interface SkuListUpdate extends ResourceUpdate{name?:string;description?:string;image_url?:string;manual?:boolean;sku_code_regex?:string;}declare class SkuLists extends ApiResource{static readonly TYPE:'sku_lists';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<SkuList>>;create(resource:SkuListCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;update(resource:SkuListUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;delete(id:string,options?:ResourcesConfig):Promise<void>;skus(skuListId:string|SkuList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;sku_list_items(skuListId:string|SkuList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<SkuListItem>>;bundles(skuListId:string|SkuList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Bundle>>;isSkuList(resource:any):resource is SkuList;relationship(id:string|ResourceId|null):SkuListRel;type():string;}export default SkuLists;export{SkuList,SkuListCreate,SkuListUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as u}from"../resource";class i extends u{static TYPE="sku_lists";async list(e,s){return this.resources.list({type:i.TYPE},e,s)}async create(e,s,t){return this.resources.create({...e,type:i.TYPE},s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:i.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update({...e,type:i.TYPE},s,t)}async delete(e,s){await this.resources.delete({type:i.TYPE,id:e},s)}async skus(e,s,t){const r=e.id||e;return this.resources.fetch({type:"skus"},`sku_lists/${r}/skus`,s,t)}async sku_list_items(e,s,t){const r=e.id||e;return this.resources.fetch({type:"sku_list_items"},`sku_lists/${r}/sku_list_items`,s,t)}async bundles(e,s,t){const r=e.id||e;return this.resources.fetch({type:"bundles"},`sku_lists/${r}/bundles`,s,t)}isSkuList(e){return e.type&&e.type===i.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:i.TYPE}:{id:e.id,type:i.TYPE}}type(){return i.TYPE}}export default i;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{Attachment}from'./attachments';declare type SkuOptionRel=ResourceRel&{type:typeof SkuOptions.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};interface SkuOption extends Resource{name?:string;currency_code?:string;description?:string;price_amount_cents?:number;price_amount_float?:number;formatted_price_amount?:string;delay_hours?:number;delay_days?:number;sku_code_regex?:string;market?:Market;attachments?:Attachment[];}interface SkuOptionCreate extends ResourceCreate{name:string;currency_code?:string;description?:string;price_amount_cents?:number;delay_hours?:number;sku_code_regex?:string;market?:MarketRel;}interface SkuOptionUpdate extends ResourceUpdate{name?:string;currency_code?:string;description?:string;price_amount_cents?:number;delay_hours?:number;sku_code_regex?:string;market?:MarketRel;}declare class SkuOptions extends ApiResource{static readonly TYPE:'sku_options';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<SkuOption>>;create(resource:SkuOptionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuOption>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuOption>;update(resource:SkuOptionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuOption>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(skuOptionId:string|SkuOption,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;attachments(skuOptionId:string|SkuOption,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isSkuOption(resource:any):resource is SkuOption;relationship(id:string|ResourceId|null):SkuOptionRel;type():string;}export default SkuOptions;export{SkuOption,SkuOptionCreate,SkuOptionUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as n}from"../resource";class r extends n{static TYPE="sku_options";async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async market(e,t,s){const i=e.id||e;return this.resources.fetch({type:"markets"},`sku_options/${i}/market`,t,s)}async attachments(e,t,s){const i=e.id||e;return this.resources.fetch({type:"attachments"},`sku_options/${i}/attachments`,t,s)}isSkuOption(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}export default r;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{ShippingCategory}from'./shipping_categories';import type{Price}from'./prices';import type{StockItem}from'./stock_items';import type{DeliveryLeadTime}from'./delivery_lead_times';import type{SkuOption}from'./sku_options';import type{Attachment}from'./attachments';declare type SkuRel=ResourceRel&{type:typeof Skus.TYPE;};declare type ShippingCategoryRel=ResourceRel&{type:'shipping_categories';};interface Sku extends Resource{code?:string;name?:string;description?:string;image_url?:string;pieces_per_pack?:number;weight?:number;unit_of_weight?:string;hs_tariff_number?:string;do_not_ship?:boolean;do_not_track?:boolean;inventory?:object;shipping_category?:ShippingCategory;prices?:Price[];stock_items?:StockItem[];delivery_lead_times?:DeliveryLeadTime[];sku_options?:SkuOption[];attachments?:Attachment[];}interface SkuCreate extends ResourceCreate{code:string;name:string;description?:string;image_url?:string;pieces_per_pack?:number;weight?:number;unit_of_weight?:string;hs_tariff_number?:string;do_not_ship?:boolean;do_not_track?:boolean;shipping_category:ShippingCategoryRel;}interface SkuUpdate extends ResourceUpdate{code?:string;name?:string;description?:string;image_url?:string;pieces_per_pack?:number;weight?:number;unit_of_weight?:string;hs_tariff_number?:string;do_not_ship?:boolean;do_not_track?:boolean;shipping_category?:ShippingCategoryRel;}declare class Skus extends ApiResource{static readonly TYPE:'skus';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;create(resource:SkuCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;update(resource:SkuUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;delete(id:string,options?:ResourcesConfig):Promise<void>;shipping_category(skuId:string|Sku,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingCategory>;prices(skuId:string|Sku,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Price>>;stock_items(skuId:string|Sku,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockItem>>;delivery_lead_times(skuId:string|Sku,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<DeliveryLeadTime>>;sku_options(skuId:string|Sku,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<SkuOption>>;attachments(skuId:string|Sku,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isSku(resource:any):resource is Sku;relationship(id:string|ResourceId|null):SkuRel;type():string;}export default Skus;export{Sku,SkuCreate,SkuUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as i}from"../resource";class c extends i{static TYPE="skus";async list(e,t){return this.resources.list({type:c.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:c.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:c.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:c.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:c.TYPE,id:e},t)}async shipping_category(e,t,s){const r=e.id||e;return this.resources.fetch({type:"shipping_categories"},`skus/${r}/shipping_category`,t,s)}async prices(e,t,s){const r=e.id||e;return this.resources.fetch({type:"prices"},`skus/${r}/prices`,t,s)}async stock_items(e,t,s){const r=e.id||e;return this.resources.fetch({type:"stock_items"},`skus/${r}/stock_items`,t,s)}async delivery_lead_times(e,t,s){const r=e.id||e;return this.resources.fetch({type:"delivery_lead_times"},`skus/${r}/delivery_lead_times`,t,s)}async sku_options(e,t,s){const r=e.id||e;return this.resources.fetch({type:"sku_options"},`skus/${r}/sku_options`,t,s)}async attachments(e,t,s){const r=e.id||e;return this.resources.fetch({type:"attachments"},`skus/${r}/attachments`,t,s)}isSku(e){return e.type&&e.type===c.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:c.TYPE}:{id:e.id,type:c.TYPE}}type(){return c.TYPE}}export default c;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{StockLocation}from'./stock_locations';import type{Sku}from'./skus';import type{Attachment}from'./attachments';declare type StockItemRel=ResourceRel&{type:typeof StockItems.TYPE;};declare type StockLocationRel=ResourceRel&{type:'stock_locations';};declare type SkuRel=ResourceRel&{type:'skus';};interface StockItem extends Resource{sku_code?:string;quantity?:number;stock_location?:StockLocation;sku?:Sku;attachments?:Attachment[];}interface StockItemCreate extends ResourceCreate{sku_code?:string;quantity:number;stock_location:StockLocationRel;sku?:SkuRel;}interface StockItemUpdate extends ResourceUpdate{sku_code?:string;quantity?:number;stock_location?:StockLocationRel;sku?:SkuRel;}declare class StockItems extends ApiResource{static readonly TYPE:'stock_items';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockItem>>;create(resource:StockItemCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockItem>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockItem>;update(resource:StockItemUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockItem>;delete(id:string,options?:ResourcesConfig):Promise<void>;stock_location(stockItemId:string|StockItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;sku(stockItemId:string|StockItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;attachments(stockItemId:string|StockItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isStockItem(resource:any):resource is StockItem;relationship(id:string|ResourceId|null):StockItemRel;type():string;}export default StockItems;export{StockItem,StockItemCreate,StockItemUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as c}from"../resource";class r extends c{static TYPE="stock_items";async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async stock_location(e,t,s){const i=e.id||e;return this.resources.fetch({type:"stock_locations"},`stock_items/${i}/stock_location`,t,s)}async sku(e,t,s){const i=e.id||e;return this.resources.fetch({type:"skus"},`stock_items/${i}/sku`,t,s)}async attachments(e,t,s){const i=e.id||e;return this.resources.fetch({type:"attachments"},`stock_items/${i}/attachments`,t,s)}isStockItem(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}export default r;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Shipment}from'./shipments';import type{LineItem}from'./line_items';import type{StockItem}from'./stock_items';declare type StockLineItemRel=ResourceRel&{type:typeof StockLineItems.TYPE;};interface StockLineItem extends Resource{sku_code?:string;bundle_code?:string;quantity?:number;shipment?:Shipment;line_item?:LineItem;stock_item?:StockItem;}declare class StockLineItems extends ApiResource{static readonly TYPE:'stock_line_items';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLineItem>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLineItem>;shipment(stockLineItemId:string|StockLineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;line_item(stockLineItemId:string|StockLineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;stock_item(stockLineItemId:string|StockLineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockItem>;isStockLineItem(resource:any):resource is StockLineItem;relationship(id:string|ResourceId|null):StockLineItemRel;type():string;}export default StockLineItems;export{StockLineItem};
@@ -1 +0,0 @@
1
- import{ApiResource as n}from"../resource";class s extends n{static TYPE="stock_line_items";async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async retrieve(e,t,i){return this.resources.retrieve({type:s.TYPE,id:e},t,i)}async shipment(e,t,i){const r=e.id||e;return this.resources.fetch({type:"shipments"},`stock_line_items/${r}/shipment`,t,i)}async line_item(e,t,i){const r=e.id||e;return this.resources.fetch({type:"line_items"},`stock_line_items/${r}/line_item`,t,i)}async stock_item(e,t,i){const r=e.id||e;return this.resources.fetch({type:"stock_items"},`stock_line_items/${r}/stock_item`,t,i)}isStockLineItem(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}export default s;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Address}from'./addresses';import type{InventoryStockLocation}from'./inventory_stock_locations';import type{InventoryReturnLocation}from'./inventory_return_locations';import type{StockItem}from'./stock_items';import type{StockTransfer}from'./stock_transfers';import type{Attachment}from'./attachments';declare type StockLocationRel=ResourceRel&{type:typeof StockLocations.TYPE;};declare type AddressRel=ResourceRel&{type:'addresses';};interface StockLocation extends Resource{number?:number;name?:string;label_format?:string;suppress_etd?:boolean;address?:Address;inventory_stock_locations?:InventoryStockLocation[];inventory_return_locations?:InventoryReturnLocation[];stock_items?:StockItem[];stock_transfers?:StockTransfer[];attachments?:Attachment[];}interface StockLocationCreate extends ResourceCreate{name:string;label_format?:string;suppress_etd?:boolean;address:AddressRel;}interface StockLocationUpdate extends ResourceUpdate{name?:string;label_format?:string;suppress_etd?:boolean;address?:AddressRel;}declare class StockLocations extends ApiResource{static readonly TYPE:'stock_locations';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLocation>>;create(resource:StockLocationCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;update(resource:StockLocationUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;delete(id:string,options?:ResourcesConfig):Promise<void>;address(stockLocationId:string|StockLocation,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;inventory_stock_locations(stockLocationId:string|StockLocation,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InventoryStockLocation>>;inventory_return_locations(stockLocationId:string|StockLocation,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InventoryReturnLocation>>;stock_items(stockLocationId:string|StockLocation,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockItem>>;stock_transfers(stockLocationId:string|StockLocation,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;attachments(stockLocationId:string|StockLocation,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isStockLocation(resource:any):resource is StockLocation;relationship(id:string|ResourceId|null):StockLocationRel;type():string;}export default StockLocations;export{StockLocation,StockLocationCreate,StockLocationUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as n}from"../resource";class o extends n{static TYPE="stock_locations";async list(t,s){return this.resources.list({type:o.TYPE},t,s)}async create(t,s,e){return this.resources.create({...t,type:o.TYPE},s,e)}async retrieve(t,s,e){return this.resources.retrieve({type:o.TYPE,id:t},s,e)}async update(t,s,e){return this.resources.update({...t,type:o.TYPE},s,e)}async delete(t,s){await this.resources.delete({type:o.TYPE,id:t},s)}async address(t,s,e){const r=t.id||t;return this.resources.fetch({type:"addresses"},`stock_locations/${r}/address`,s,e)}async inventory_stock_locations(t,s,e){const r=t.id||t;return this.resources.fetch({type:"inventory_stock_locations"},`stock_locations/${r}/inventory_stock_locations`,s,e)}async inventory_return_locations(t,s,e){const r=t.id||t;return this.resources.fetch({type:"inventory_return_locations"},`stock_locations/${r}/inventory_return_locations`,s,e)}async stock_items(t,s,e){const r=t.id||t;return this.resources.fetch({type:"stock_items"},`stock_locations/${r}/stock_items`,s,e)}async stock_transfers(t,s,e){const r=t.id||t;return this.resources.fetch({type:"stock_transfers"},`stock_locations/${r}/stock_transfers`,s,e)}async attachments(t,s,e){const r=t.id||t;return this.resources.fetch({type:"attachments"},`stock_locations/${r}/attachments`,s,e)}isStockLocation(t){return t.type&&t.type===o.TYPE}relationship(t){return t===null||typeof t=="string"?{id:t,type:o.TYPE}:{id:t.id,type:o.TYPE}}type(){return o.TYPE}}export default o;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Sku}from'./skus';import type{StockLocation}from'./stock_locations';import type{Shipment}from'./shipments';import type{LineItem}from'./line_items';declare type StockTransferRel=ResourceRel&{type:typeof StockTransfers.TYPE;};declare type SkuRel=ResourceRel&{type:'skus';};declare type StockLocationRel=ResourceRel&{type:'stock_locations';};declare type ShipmentRel=ResourceRel&{type:'shipments';};declare type LineItemRel=ResourceRel&{type:'line_items';};interface StockTransfer extends Resource{sku_code?:string;status?:string;quantity?:number;completed_at?:string;cancelled_at?:string;sku?:Sku;origin_stock_location?:StockLocation;destination_stock_location?:StockLocation;shipment?:Shipment;line_item?:LineItem;}interface StockTransferCreate extends ResourceCreate{sku_code?:string;quantity:number;sku:SkuRel;origin_stock_location:StockLocationRel;destination_stock_location:StockLocationRel;shipment?:ShipmentRel;line_item?:LineItemRel;}interface StockTransferUpdate extends ResourceUpdate{sku_code?:string;_upcoming?:boolean;_picking?:boolean;_in_transit?:boolean;_complete?:boolean;_cancel?:boolean;sku?:SkuRel;origin_stock_location?:StockLocationRel;destination_stock_location?:StockLocationRel;}declare class StockTransfers extends ApiResource{static readonly TYPE:'stock_transfers';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;create(resource:StockTransferCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;update(resource:StockTransferUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;delete(id:string,options?:ResourcesConfig):Promise<void>;sku(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;origin_stock_location(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;destination_stock_location(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;shipment(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;line_item(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;isStockTransfer(resource:any):resource is StockTransfer;relationship(id:string|ResourceId|null):StockTransferRel;type():string;}export default StockTransfers;export{StockTransfer,StockTransferCreate,StockTransferUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as n}from"../resource";class r extends n{static TYPE="stock_transfers";async list(t,s){return this.resources.list({type:r.TYPE},t,s)}async create(t,s,e){return this.resources.create({...t,type:r.TYPE},s,e)}async retrieve(t,s,e){return this.resources.retrieve({type:r.TYPE,id:t},s,e)}async update(t,s,e){return this.resources.update({...t,type:r.TYPE},s,e)}async delete(t,s){await this.resources.delete({type:r.TYPE,id:t},s)}async sku(t,s,e){const i=t.id||t;return this.resources.fetch({type:"skus"},`stock_transfers/${i}/sku`,s,e)}async origin_stock_location(t,s,e){const i=t.id||t;return this.resources.fetch({type:"stock_locations"},`stock_transfers/${i}/origin_stock_location`,s,e)}async destination_stock_location(t,s,e){const i=t.id||t;return this.resources.fetch({type:"stock_locations"},`stock_transfers/${i}/destination_stock_location`,s,e)}async shipment(t,s,e){const i=t.id||t;return this.resources.fetch({type:"shipments"},`stock_transfers/${i}/shipment`,s,e)}async line_item(t,s,e){const i=t.id||t;return this.resources.fetch({type:"line_items"},`stock_transfers/${i}/line_item`,s,e)}isStockTransfer(t){return t.type&&t.type===r.TYPE}relationship(t){return t===null||typeof t=="string"?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}}type(){return r.TYPE}}export default r;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PaymentMethod}from'./payment_methods';import type{StripePayment}from'./stripe_payments';declare type StripeGatewayRel=ResourceRel&{type:typeof StripeGateways.TYPE;};interface StripeGateway extends Resource{name?:string;webhook_endpoint_id?:string;webhook_endpoint_secret?:string;webhook_endpoint_url?:string;payment_methods?:PaymentMethod[];stripe_payments?:StripePayment[];}interface StripeGatewayCreate extends ResourceCreate{name:string;login:string;publishable_key?:string;}interface StripeGatewayUpdate extends ResourceUpdate{name?:string;}declare class StripeGateways extends ApiResource{static readonly TYPE:'stripe_gateways';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StripeGateway>>;create(resource:StripeGatewayCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripeGateway>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripeGateway>;update(resource:StripeGatewayUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripeGateway>;delete(id:string,options?:ResourcesConfig):Promise<void>;payment_methods(stripeGatewayId:string|StripeGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;stripe_payments(stripeGatewayId:string|StripeGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StripePayment>>;isStripeGateway(resource:any):resource is StripeGateway;relationship(id:string|ResourceId|null):StripeGatewayRel;type():string;}export default StripeGateways;export{StripeGateway,StripeGatewayCreate,StripeGatewayUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as p}from"../resource";class s extends p{static TYPE="stripe_gateways";async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create({...e,type:s.TYPE},t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update({...e,type:s.TYPE},t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async payment_methods(e,t,r){const i=e.id||e;return this.resources.fetch({type:"payment_methods"},`stripe_gateways/${i}/payment_methods`,t,r)}async stripe_payments(e,t,r){const i=e.id||e;return this.resources.fetch({type:"stripe_payments"},`stripe_gateways/${i}/stripe_payments`,t,r)}isStripeGateway(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}export default s;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{PaymentGateway}from'./payment_gateways';declare type StripePaymentRel=ResourceRel&{type:typeof StripePayments.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};interface StripePayment extends Resource{client_secret?:string;publishable_key?:string;options?:object;payment_method?:object;mismatched_amounts?:boolean;intent_amount_cents?:number;intent_amount_float?:number;formatted_intent_amount?:string;order?:Order;payment_gateway?:PaymentGateway;}interface StripePaymentCreate extends ResourceCreate{options?:object;order:OrderRel;}interface StripePaymentUpdate extends ResourceUpdate{options?:object;_refresh?:boolean;order?:OrderRel;}declare class StripePayments extends ApiResource{static readonly TYPE:'stripe_payments';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StripePayment>>;create(resource:StripePaymentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripePayment>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripePayment>;update(resource:StripePaymentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripePayment>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(stripePaymentId:string|StripePayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;payment_gateway(stripePaymentId:string|StripePayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentGateway>;isStripePayment(resource:any):resource is StripePayment;relationship(id:string|ResourceId|null):StripePaymentRel;type():string;}export default StripePayments;export{StripePayment,StripePaymentCreate,StripePaymentUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as i}from"../resource";class r extends i{static TYPE="stripe_payments";async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async order(e,t,s){const a=e.id||e;return this.resources.fetch({type:"orders"},`stripe_payments/${a}/order`,t,s)}async payment_gateway(e,t,s){const a=e.id||e;return this.resources.fetch({type:"payment_gateways"},`stripe_payments/${a}/payment_gateway`,t,s)}isStripePayment(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}export default r;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{TaxCategory}from'./tax_categories';import type{Market}from'./markets';import type{Attachment}from'./attachments';declare type TaxCalculatorRel=ResourceRel&{type:typeof TaxCalculators.TYPE;};interface TaxCalculator extends Resource{name?:string;tax_categories?:TaxCategory[];markets?:Market[];attachments?:Attachment[];}declare class TaxCalculators extends ApiResource{static readonly TYPE:'tax_calculators';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxCalculator>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCalculator>;tax_categories(taxCalculatorId:string|TaxCalculator,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxCategory>>;markets(taxCalculatorId:string|TaxCalculator,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;attachments(taxCalculatorId:string|TaxCalculator,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isTaxCalculator(resource:any):resource is TaxCalculator;relationship(id:string|ResourceId|null):TaxCalculatorRel;type():string;}export default TaxCalculators;export{TaxCalculator};
@@ -1 +0,0 @@
1
- import{ApiResource as c}from"../resource";class r extends c{static TYPE="tax_calculators";async list(t,e){return this.resources.list({type:r.TYPE},t,e)}async retrieve(t,e,a){return this.resources.retrieve({type:r.TYPE,id:t},e,a)}async tax_categories(t,e,a){const s=t.id||t;return this.resources.fetch({type:"tax_categories"},`tax_calculators/${s}/tax_categories`,e,a)}async markets(t,e,a){const s=t.id||t;return this.resources.fetch({type:"markets"},`tax_calculators/${s}/markets`,e,a)}async attachments(t,e,a){const s=t.id||t;return this.resources.fetch({type:"attachments"},`tax_calculators/${s}/attachments`,e,a)}isTaxCalculator(t){return t.type&&t.type===r.TYPE}relationship(t){return t===null||typeof t=="string"?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}}type(){return r.TYPE}}export default r;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Sku}from'./skus';import type{AvalaraAccount}from'./avalara_accounts';import type{TaxjarAccount}from'./taxjar_accounts';import type{ManualTaxCalculator}from'./manual_tax_calculators';import type{ExternalTaxCalculator}from'./external_tax_calculators';import type{Attachment}from'./attachments';declare type TaxCategoryRel=ResourceRel&{type:typeof TaxCategories.TYPE;};declare type SkuRel=ResourceRel&{type:'skus';};declare type AvalaraAccountRel=ResourceRel&{type:'avalara_accounts';};declare type TaxjarAccountRel=ResourceRel&{type:'taxjar_accounts';};declare type ManualTaxCalculatorRel=ResourceRel&{type:'manual_tax_calculators';};declare type ExternalTaxCalculatorRel=ResourceRel&{type:'external_tax_calculators';};interface TaxCategory extends Resource{code?:string;sku_code?:string;sku?:Sku;tax_calculator?:AvalaraAccount|TaxjarAccount|ManualTaxCalculator|ExternalTaxCalculator;attachments?:Attachment[];}interface TaxCategoryCreate extends ResourceCreate{code:string;sku_code?:string;sku:SkuRel;tax_calculator:AvalaraAccountRel|TaxjarAccountRel|ManualTaxCalculatorRel|ExternalTaxCalculatorRel;}interface TaxCategoryUpdate extends ResourceUpdate{code?:string;sku_code?:string;sku?:SkuRel;}declare class TaxCategories extends ApiResource{static readonly TYPE:'tax_categories';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxCategory>>;create(resource:TaxCategoryCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCategory>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCategory>;update(resource:TaxCategoryUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCategory>;delete(id:string,options?:ResourcesConfig):Promise<void>;sku(taxCategoryId:string|TaxCategory,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;attachments(taxCategoryId:string|TaxCategory,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isTaxCategory(resource:any):resource is TaxCategory;relationship(id:string|ResourceId|null):TaxCategoryRel;type():string;}export default TaxCategories;export{TaxCategory,TaxCategoryCreate,TaxCategoryUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as c}from"../resource";class s extends c{static TYPE="tax_categories";async list(t,e){return this.resources.list({type:s.TYPE},t,e)}async create(t,e,r){return this.resources.create({...t,type:s.TYPE},e,r)}async retrieve(t,e,r){return this.resources.retrieve({type:s.TYPE,id:t},e,r)}async update(t,e,r){return this.resources.update({...t,type:s.TYPE},e,r)}async delete(t,e){await this.resources.delete({type:s.TYPE,id:t},e)}async sku(t,e,r){const a=t.id||t;return this.resources.fetch({type:"skus"},`tax_categories/${a}/sku`,e,r)}async attachments(t,e,r){const a=t.id||t;return this.resources.fetch({type:"attachments"},`tax_categories/${a}/attachments`,e,r)}isTaxCategory(t){return t.type&&t.type===s.TYPE}relationship(t){return t===null||typeof t=="string"?{id:t,type:s.TYPE}:{id:t.id,type:s.TYPE}}type(){return s.TYPE}}export default s;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{ManualTaxCalculator}from'./manual_tax_calculators';declare type TaxRuleRel=ResourceRel&{type:typeof TaxRules.TYPE;};declare type ManualTaxCalculatorRel=ResourceRel&{type:'manual_tax_calculators';};interface TaxRule extends Resource{name?:string;tax_rate?:number;country_code_regex?:string;not_country_code_regex?:string;state_code_regex?:string;not_state_code_regex?:string;zip_code_regex?:string;not_zip_code_regex?:string;freight_taxable?:boolean;payment_method_taxable?:boolean;gift_card_taxable?:boolean;adjustment_taxable?:boolean;breakdown?:object;manual_tax_calculator?:ManualTaxCalculator;}interface TaxRuleCreate extends ResourceCreate{name:string;tax_rate?:number;country_code_regex?:string;not_country_code_regex?:string;state_code_regex?:string;not_state_code_regex?:string;zip_code_regex?:string;not_zip_code_regex?:string;freight_taxable?:boolean;payment_method_taxable?:boolean;gift_card_taxable?:boolean;adjustment_taxable?:boolean;manual_tax_calculator:ManualTaxCalculatorRel;}interface TaxRuleUpdate extends ResourceUpdate{name?:string;tax_rate?:number;country_code_regex?:string;not_country_code_regex?:string;state_code_regex?:string;not_state_code_regex?:string;zip_code_regex?:string;not_zip_code_regex?:string;freight_taxable?:boolean;payment_method_taxable?:boolean;gift_card_taxable?:boolean;adjustment_taxable?:boolean;manual_tax_calculator?:ManualTaxCalculatorRel;}declare class TaxRules extends ApiResource{static readonly TYPE:'tax_rules';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxRule>>;create(resource:TaxRuleCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxRule>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxRule>;update(resource:TaxRuleUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxRule>;delete(id:string,options?:ResourcesConfig):Promise<void>;manual_tax_calculator(taxRuleId:string|TaxRule,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ManualTaxCalculator>;isTaxRule(resource:any):resource is TaxRule;relationship(id:string|ResourceId|null):TaxRuleRel;type():string;}export default TaxRules;export{TaxRule,TaxRuleCreate,TaxRuleUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as u}from"../resource";class r extends u{static TYPE="tax_rules";async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,a){return this.resources.create({...e,type:r.TYPE},t,a)}async retrieve(e,t,a){return this.resources.retrieve({type:r.TYPE,id:e},t,a)}async update(e,t,a){return this.resources.update({...e,type:r.TYPE},t,a)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async manual_tax_calculator(e,t,a){const s=e.id||e;return this.resources.fetch({type:"manual_tax_calculators"},`tax_rules/${s}/manual_tax_calculator`,t,a)}isTaxRule(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}export default r;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{TaxCategory}from'./tax_categories';import type{Market}from'./markets';import type{Attachment}from'./attachments';declare type TaxjarAccountRel=ResourceRel&{type:typeof TaxjarAccounts.TYPE;};declare type TaxCategoryRel=ResourceRel&{type:'tax_categories';};interface TaxjarAccount extends Resource{name?:string;tax_categories?:TaxCategory[];markets?:Market[];attachments?:Attachment[];}interface TaxjarAccountCreate extends ResourceCreate{name:string;api_key:string;tax_categories?:TaxCategoryRel[];}interface TaxjarAccountUpdate extends ResourceUpdate{name?:string;api_key?:string;tax_categories?:TaxCategoryRel[];}declare class TaxjarAccounts extends ApiResource{static readonly TYPE:'taxjar_accounts';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxjarAccount>>;create(resource:TaxjarAccountCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxjarAccount>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxjarAccount>;update(resource:TaxjarAccountUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxjarAccount>;delete(id:string,options?:ResourcesConfig):Promise<void>;tax_categories(taxjarAccountId:string|TaxjarAccount,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxCategory>>;markets(taxjarAccountId:string|TaxjarAccount,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;attachments(taxjarAccountId:string|TaxjarAccount,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isTaxjarAccount(resource:any):resource is TaxjarAccount;relationship(id:string|ResourceId|null):TaxjarAccountRel;type():string;}export default TaxjarAccounts;export{TaxjarAccount,TaxjarAccountCreate,TaxjarAccountUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as a}from"../resource";class r extends a{static TYPE="taxjar_accounts";async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async tax_categories(e,t,s){const c=e.id||e;return this.resources.fetch({type:"tax_categories"},`taxjar_accounts/${c}/tax_categories`,t,s)}async markets(e,t,s){const c=e.id||e;return this.resources.fetch({type:"markets"},`taxjar_accounts/${c}/markets`,t,s)}async attachments(e,t,s){const c=e.id||e;return this.resources.fetch({type:"attachments"},`taxjar_accounts/${c}/attachments`,t,s)}isTaxjarAccount(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}export default r;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';declare type TransactionRel=ResourceRel&{type:typeof Transactions.TYPE;};interface Transaction extends Resource{number?:string;currency_code?:string;amount_cents?:number;amount_float?:number;formatted_amount?:string;succeeded?:boolean;message?:string;error_code?:string;error_detail?:string;token?:string;gateway_transaction_id?:string;order?:Order;}declare class Transactions extends ApiResource{static readonly TYPE:'transactions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Transaction>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Transaction>;order(transactionId:string|Transaction,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;isTransaction(resource:any):resource is Transaction;relationship(id:string|ResourceId|null):TransactionRel;type():string;}export default Transactions;export{Transaction};
@@ -1 +0,0 @@
1
- import{ApiResource as n}from"../resource";class e extends n{static TYPE="transactions";async list(t,r){return this.resources.list({type:e.TYPE},t,r)}async retrieve(t,r,s){return this.resources.retrieve({type:e.TYPE,id:t},r,s)}async order(t,r,s){const i=t.id||t;return this.resources.fetch({type:"orders"},`transactions/${i}/order`,r,s)}isTransaction(t){return t.type&&t.type===e.TYPE}relationship(t){return t===null||typeof t=="string"?{id:t,type:e.TYPE}:{id:t.id,type:e.TYPE}}type(){return e.TYPE}}export default e;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{Authorization}from'./authorizations';declare type VoidRel=ResourceRel&{type:typeof Voids.TYPE;};interface Void extends Resource{number?:string;currency_code?:string;amount_cents?:number;amount_float?:number;formatted_amount?:string;succeeded?:boolean;message?:string;error_code?:string;error_detail?:string;token?:string;gateway_transaction_id?:string;order?:Order;reference_authorization?:Authorization;}declare class Voids extends ApiResource{static readonly TYPE:'voids';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Void>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Void>;order(voidId:string|Void,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;reference_authorization(voidId:string|Void,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Authorization>;isVoid(resource:any):resource is Void;relationship(id:string|ResourceId|null):VoidRel;type():string;}export default Voids;export{Void};
@@ -1 +0,0 @@
1
- import{ApiResource as o}from"../resource";class r extends o{static TYPE="voids";async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async order(e,t,s){const i=e.id||e;return this.resources.fetch({type:"orders"},`voids/${i}/order`,t,s)}async reference_authorization(e,t,s){const i=e.id||e;return this.resources.fetch({type:"authorizations"},`voids/${i}/reference_authorization`,t,s)}isVoid(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}export default r;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{EventCallback}from'./event_callbacks';declare type WebhookRel=ResourceRel&{type:typeof Webhooks.TYPE;};interface Webhook extends Resource{name?:string;topic?:string;callback_url?:string;include_resources?:string[];circuit_state?:string;circuit_failure_count?:number;last_event_callbacks?:EventCallback[];}interface WebhookCreate extends ResourceCreate{name?:string;topic:string;callback_url:string;include_resources?:string[];}interface WebhookUpdate extends ResourceUpdate{name?:string;topic?:string;callback_url?:string;include_resources?:string[];_reset_circuit?:boolean;}declare class Webhooks extends ApiResource{static readonly TYPE:'webhooks';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Webhook>>;create(resource:WebhookCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Webhook>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Webhook>;update(resource:WebhookUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Webhook>;delete(id:string,options?:ResourcesConfig):Promise<void>;last_event_callbacks(webhookId:string|Webhook,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<EventCallback>>;isWebhook(resource:any):resource is Webhook;relationship(id:string|ResourceId|null):WebhookRel;type():string;}export default Webhooks;export{Webhook,WebhookCreate,WebhookUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as c}from"../resource";class r extends c{static TYPE="webhooks";async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async last_event_callbacks(e,t,s){const a=e.id||e;return this.resources.fetch({type:"event_callbacks"},`webhooks/${a}/last_event_callbacks`,t,s)}isWebhook(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}export default r;
@@ -1 +0,0 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';declare type WireTransferRel=ResourceRel&{type:typeof WireTransfers.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};interface WireTransfer extends Resource{order?:Order;}interface WireTransferCreate extends ResourceCreate{order:OrderRel;}interface WireTransferUpdate extends ResourceUpdate{order?:OrderRel;}declare class WireTransfers extends ApiResource{static readonly TYPE:'wire_transfers';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<WireTransfer>>;create(resource:WireTransferCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<WireTransfer>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<WireTransfer>;update(resource:WireTransferUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<WireTransfer>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(wireTransferId:string|WireTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;isWireTransfer(resource:any):resource is WireTransfer;relationship(id:string|ResourceId|null):WireTransferRel;type():string;}export default WireTransfers;export{WireTransfer,WireTransferCreate,WireTransferUpdate};
@@ -1 +0,0 @@
1
- import{ApiResource as n}from"../resource";class r extends n{static TYPE="wire_transfers";async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async order(e,t,s){const i=e.id||e;return this.resources.fetch({type:"orders"},`wire_transfers/${i}/order`,t,s)}isWireTransfer(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}export default r;
package/lib/static.d.ts DELETED
@@ -1 +0,0 @@
1
- import{SdkError,ApiError}from'./error';import{CommerceLayerClient,CommerceLayerInitConfig}from'./commercelayer';export declare const CommerceLayerStatic:{resources:()=>readonly string[];isSdkError:(error:unknown)=>error is SdkError;isApiError:(error:unknown)=>error is ApiError;init:(config:CommerceLayerInitConfig)=>CommerceLayerClient;};
package/lib/static.js DELETED
@@ -1 +0,0 @@
1
- import*as o from"./api";import{SdkError as i,ApiError as s}from"./error";import t from"./commercelayer";export const CommerceLayerStatic={resources:()=>o.resourceList,isSdkError:r=>i.isSdkError(r),isApiError:r=>s.isApiError(r),init:r=>t(r)};
package/lib/util.d.ts DELETED
@@ -1,2 +0,0 @@
1
- /// <reference types="node" />
2
- declare const sleep:(ms:number)=>Promise<NodeJS.Timeout>;export{sleep};
package/lib/util.js DELETED
@@ -1 +0,0 @@
1
- const t=async e=>new Promise(s=>setTimeout(s,e));export{t as sleep};