@commercelayer/sdk 4.3.0-alpha.1 → 4.3.0-beta.12

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 (539) hide show
  1. package/README.md +5 -0
  2. package/lib/{api.d.ts → cjs/api.d.ts} +0 -0
  3. package/lib/cjs/api.js +1 -0
  4. package/lib/{client.d.ts → cjs/client.d.ts} +0 -0
  5. package/lib/cjs/client.js +1 -0
  6. package/lib/{commercelayer.d.ts → cjs/commercelayer.d.ts} +0 -0
  7. package/lib/cjs/commercelayer.js +1 -0
  8. package/lib/{common.d.ts → cjs/common.d.ts} +0 -0
  9. package/lib/cjs/common.js +1 -0
  10. package/lib/{config.d.ts → cjs/config.d.ts} +0 -0
  11. package/lib/cjs/config.js +1 -0
  12. package/lib/{debug.d.ts → cjs/debug.d.ts} +0 -0
  13. package/lib/cjs/debug.js +1 -0
  14. package/lib/{error.d.ts → cjs/error.d.ts} +0 -0
  15. package/lib/cjs/error.js +1 -0
  16. package/lib/{index.d.ts → cjs/index.d.ts} +0 -0
  17. package/lib/cjs/index.js +1 -0
  18. package/lib/{interceptor.d.ts → cjs/interceptor.d.ts} +0 -0
  19. package/lib/cjs/interceptor.js +1 -0
  20. package/lib/{jsonapi.d.ts → cjs/jsonapi.d.ts} +0 -0
  21. package/lib/cjs/jsonapi.js +1 -0
  22. package/lib/{model.d.ts → cjs/model.d.ts} +0 -0
  23. package/lib/cjs/model.js +1 -0
  24. package/lib/{query.d.ts → cjs/query.d.ts} +0 -0
  25. package/lib/cjs/query.js +1 -0
  26. package/lib/{resource.d.ts → cjs/resource.d.ts} +0 -0
  27. package/lib/cjs/resource.js +1 -0
  28. package/lib/{resources → cjs/resources}/addresses.d.ts +0 -0
  29. package/lib/cjs/resources/addresses.js +1 -0
  30. package/lib/{resources → cjs/resources}/adjustments.d.ts +0 -0
  31. package/lib/cjs/resources/adjustments.js +1 -0
  32. package/lib/{resources → cjs/resources}/adyen_gateways.d.ts +0 -0
  33. package/lib/cjs/resources/adyen_gateways.js +1 -0
  34. package/lib/{resources → cjs/resources}/adyen_payments.d.ts +0 -0
  35. package/lib/cjs/resources/adyen_payments.js +1 -0
  36. package/lib/{resources → cjs/resources}/application.d.ts +0 -0
  37. package/lib/cjs/resources/application.js +1 -0
  38. package/lib/{resources → cjs/resources}/attachments.d.ts +0 -0
  39. package/lib/cjs/resources/attachments.js +1 -0
  40. package/lib/{resources → cjs/resources}/authorizations.d.ts +0 -0
  41. package/lib/cjs/resources/authorizations.js +1 -0
  42. package/lib/{resources → cjs/resources}/avalara_accounts.d.ts +0 -0
  43. package/lib/cjs/resources/avalara_accounts.js +1 -0
  44. package/lib/{resources → cjs/resources}/billing_info_validation_rules.d.ts +0 -0
  45. package/lib/cjs/resources/billing_info_validation_rules.js +1 -0
  46. package/lib/{resources → cjs/resources}/bing_geocoders.d.ts +0 -0
  47. package/lib/cjs/resources/bing_geocoders.js +1 -0
  48. package/lib/{resources → cjs/resources}/braintree_gateways.d.ts +0 -0
  49. package/lib/cjs/resources/braintree_gateways.js +1 -0
  50. package/lib/{resources → cjs/resources}/braintree_payments.d.ts +0 -0
  51. package/lib/cjs/resources/braintree_payments.js +1 -0
  52. package/lib/{resources → cjs/resources}/bundles.d.ts +0 -0
  53. package/lib/cjs/resources/bundles.js +1 -0
  54. package/lib/{resources → cjs/resources}/captures.d.ts +0 -0
  55. package/lib/cjs/resources/captures.js +1 -0
  56. package/lib/{resources → cjs/resources}/carrier_accounts.d.ts +0 -0
  57. package/lib/cjs/resources/carrier_accounts.js +1 -0
  58. package/lib/{resources → cjs/resources}/checkout_com_gateways.d.ts +0 -0
  59. package/lib/cjs/resources/checkout_com_gateways.js +1 -0
  60. package/lib/{resources → cjs/resources}/checkout_com_payments.d.ts +0 -0
  61. package/lib/cjs/resources/checkout_com_payments.js +1 -0
  62. package/lib/{resources → cjs/resources}/coupon_codes_promotion_rules.d.ts +0 -0
  63. package/lib/cjs/resources/coupon_codes_promotion_rules.js +1 -0
  64. package/lib/{resources → cjs/resources}/coupon_recipients.d.ts +0 -0
  65. package/lib/cjs/resources/coupon_recipients.js +1 -0
  66. package/lib/{resources → cjs/resources}/coupons.d.ts +0 -0
  67. package/lib/cjs/resources/coupons.js +1 -0
  68. package/lib/{resources → cjs/resources}/customer_addresses.d.ts +0 -0
  69. package/lib/cjs/resources/customer_addresses.js +1 -0
  70. package/lib/{resources → cjs/resources}/customer_groups.d.ts +0 -0
  71. package/lib/cjs/resources/customer_groups.js +1 -0
  72. package/lib/{resources → cjs/resources}/customer_password_resets.d.ts +0 -0
  73. package/lib/cjs/resources/customer_password_resets.js +1 -0
  74. package/lib/{resources → cjs/resources}/customer_payment_sources.d.ts +0 -0
  75. package/lib/cjs/resources/customer_payment_sources.js +1 -0
  76. package/lib/{resources → cjs/resources}/customer_subscriptions.d.ts +0 -0
  77. package/lib/cjs/resources/customer_subscriptions.js +1 -0
  78. package/lib/{resources → cjs/resources}/customers.d.ts +0 -0
  79. package/lib/cjs/resources/customers.js +1 -0
  80. package/lib/{resources → cjs/resources}/delivery_lead_times.d.ts +0 -0
  81. package/lib/cjs/resources/delivery_lead_times.js +1 -0
  82. package/lib/{resources → cjs/resources}/event_callbacks.d.ts +0 -0
  83. package/lib/cjs/resources/event_callbacks.js +1 -0
  84. package/lib/{resources → cjs/resources}/external_gateways.d.ts +0 -0
  85. package/lib/cjs/resources/external_gateways.js +1 -0
  86. package/lib/{resources → cjs/resources}/external_payments.d.ts +0 -0
  87. package/lib/cjs/resources/external_payments.js +1 -0
  88. package/lib/{resources → cjs/resources}/external_promotions.d.ts +0 -0
  89. package/lib/cjs/resources/external_promotions.js +1 -0
  90. package/lib/{resources → cjs/resources}/external_tax_calculators.d.ts +0 -0
  91. package/lib/cjs/resources/external_tax_calculators.js +1 -0
  92. package/lib/{resources → cjs/resources}/fixed_amount_promotions.d.ts +0 -0
  93. package/lib/cjs/resources/fixed_amount_promotions.js +1 -0
  94. package/lib/{resources → cjs/resources}/fixed_price_promotions.d.ts +0 -0
  95. package/lib/cjs/resources/fixed_price_promotions.js +1 -0
  96. package/lib/{resources → cjs/resources}/free_gift_promotions.d.ts +0 -0
  97. package/lib/cjs/resources/free_gift_promotions.js +1 -0
  98. package/lib/{resources → cjs/resources}/free_shipping_promotions.d.ts +0 -0
  99. package/lib/cjs/resources/free_shipping_promotions.js +1 -0
  100. package/lib/{resources → cjs/resources}/geocoders.d.ts +0 -0
  101. package/lib/cjs/resources/geocoders.js +1 -0
  102. package/lib/{resources → cjs/resources}/gift_card_recipients.d.ts +0 -0
  103. package/lib/cjs/resources/gift_card_recipients.js +1 -0
  104. package/lib/{resources → cjs/resources}/gift_cards.d.ts +0 -0
  105. package/lib/cjs/resources/gift_cards.js +1 -0
  106. package/lib/{resources → cjs/resources}/google_geocoders.d.ts +0 -0
  107. package/lib/cjs/resources/google_geocoders.js +1 -0
  108. package/lib/{resources → cjs/resources}/imports.d.ts +0 -0
  109. package/lib/cjs/resources/imports.js +1 -0
  110. package/lib/{resources → cjs/resources}/in_stock_subscriptions.d.ts +0 -0
  111. package/lib/cjs/resources/in_stock_subscriptions.js +1 -0
  112. package/lib/{resources → cjs/resources}/inventory_models.d.ts +0 -0
  113. package/lib/cjs/resources/inventory_models.js +1 -0
  114. package/lib/{resources → cjs/resources}/inventory_return_locations.d.ts +0 -0
  115. package/lib/cjs/resources/inventory_return_locations.js +1 -0
  116. package/lib/{resources → cjs/resources}/inventory_stock_locations.d.ts +0 -0
  117. package/lib/cjs/resources/inventory_stock_locations.js +1 -0
  118. package/lib/{resources → cjs/resources}/klarna_gateways.d.ts +0 -0
  119. package/lib/cjs/resources/klarna_gateways.js +1 -0
  120. package/lib/{resources → cjs/resources}/klarna_payments.d.ts +0 -0
  121. package/lib/cjs/resources/klarna_payments.js +1 -0
  122. package/lib/{resources → cjs/resources}/line_item_options.d.ts +0 -0
  123. package/lib/cjs/resources/line_item_options.js +1 -0
  124. package/lib/{resources → cjs/resources}/line_items.d.ts +0 -0
  125. package/lib/cjs/resources/line_items.js +1 -0
  126. package/lib/{resources → cjs/resources}/manual_gateways.d.ts +0 -0
  127. package/lib/cjs/resources/manual_gateways.js +1 -0
  128. package/lib/{resources → cjs/resources}/manual_tax_calculators.d.ts +0 -0
  129. package/lib/cjs/resources/manual_tax_calculators.js +1 -0
  130. package/lib/{resources → cjs/resources}/markets.d.ts +0 -0
  131. package/lib/cjs/resources/markets.js +1 -0
  132. package/lib/{resources → cjs/resources}/merchants.d.ts +0 -0
  133. package/lib/cjs/resources/merchants.js +1 -0
  134. package/lib/{resources → cjs/resources}/order_amount_promotion_rules.d.ts +0 -0
  135. package/lib/cjs/resources/order_amount_promotion_rules.js +1 -0
  136. package/lib/{resources → cjs/resources}/order_copies.d.ts +0 -0
  137. package/lib/cjs/resources/order_copies.js +1 -0
  138. package/lib/{resources → cjs/resources}/order_subscriptions.d.ts +0 -0
  139. package/lib/cjs/resources/order_subscriptions.js +1 -0
  140. package/lib/{resources → cjs/resources}/order_validation_rules.d.ts +0 -0
  141. package/lib/cjs/resources/order_validation_rules.js +1 -0
  142. package/lib/{resources → cjs/resources}/orders.d.ts +0 -0
  143. package/lib/cjs/resources/orders.js +1 -0
  144. package/lib/{resources → cjs/resources}/organization.d.ts +0 -0
  145. package/lib/cjs/resources/organization.js +1 -0
  146. package/lib/{resources → cjs/resources}/packages.d.ts +0 -0
  147. package/lib/cjs/resources/packages.js +1 -0
  148. package/lib/{resources → cjs/resources}/parcel_line_items.d.ts +0 -0
  149. package/lib/cjs/resources/parcel_line_items.js +1 -0
  150. package/lib/{resources → cjs/resources}/parcels.d.ts +0 -0
  151. package/lib/cjs/resources/parcels.js +1 -0
  152. package/lib/{resources → cjs/resources}/payment_gateways.d.ts +0 -0
  153. package/lib/cjs/resources/payment_gateways.js +1 -0
  154. package/lib/{resources → cjs/resources}/payment_methods.d.ts +0 -0
  155. package/lib/cjs/resources/payment_methods.js +1 -0
  156. package/lib/{resources → cjs/resources}/paypal_gateways.d.ts +0 -0
  157. package/lib/cjs/resources/paypal_gateways.js +1 -0
  158. package/lib/{resources → cjs/resources}/paypal_payments.d.ts +0 -0
  159. package/lib/cjs/resources/paypal_payments.js +1 -0
  160. package/lib/{resources → cjs/resources}/percentage_discount_promotions.d.ts +0 -0
  161. package/lib/cjs/resources/percentage_discount_promotions.js +1 -0
  162. package/lib/{resources → cjs/resources}/price_lists.d.ts +0 -0
  163. package/lib/cjs/resources/price_lists.js +1 -0
  164. package/lib/{resources → cjs/resources}/prices.d.ts +0 -0
  165. package/lib/cjs/resources/prices.js +1 -0
  166. package/lib/{resources → cjs/resources}/promotion_rules.d.ts +0 -0
  167. package/lib/cjs/resources/promotion_rules.js +1 -0
  168. package/lib/{resources → cjs/resources}/promotions.d.ts +0 -0
  169. package/lib/cjs/resources/promotions.js +1 -0
  170. package/lib/{resources → cjs/resources}/refunds.d.ts +0 -0
  171. package/lib/cjs/resources/refunds.js +1 -0
  172. package/lib/{resources → cjs/resources}/return_line_items.d.ts +0 -0
  173. package/lib/cjs/resources/return_line_items.js +1 -0
  174. package/lib/{resources → cjs/resources}/returns.d.ts +0 -0
  175. package/lib/cjs/resources/returns.js +1 -0
  176. package/lib/{resources → cjs/resources}/shipments.d.ts +0 -0
  177. package/lib/cjs/resources/shipments.js +1 -0
  178. package/lib/{resources → cjs/resources}/shipping_categories.d.ts +0 -0
  179. package/lib/cjs/resources/shipping_categories.js +1 -0
  180. package/lib/{resources → cjs/resources}/shipping_methods.d.ts +0 -0
  181. package/lib/cjs/resources/shipping_methods.js +1 -0
  182. package/lib/{resources → cjs/resources}/shipping_zones.d.ts +0 -0
  183. package/lib/cjs/resources/shipping_zones.js +1 -0
  184. package/lib/{resources → cjs/resources}/sku_list_items.d.ts +0 -0
  185. package/lib/cjs/resources/sku_list_items.js +1 -0
  186. package/lib/{resources → cjs/resources}/sku_list_promotion_rules.d.ts +0 -0
  187. package/lib/cjs/resources/sku_list_promotion_rules.js +1 -0
  188. package/lib/{resources → cjs/resources}/sku_lists.d.ts +0 -0
  189. package/lib/cjs/resources/sku_lists.js +1 -0
  190. package/lib/{resources → cjs/resources}/sku_options.d.ts +0 -0
  191. package/lib/cjs/resources/sku_options.js +1 -0
  192. package/lib/{resources → cjs/resources}/skus.d.ts +0 -0
  193. package/lib/cjs/resources/skus.js +1 -0
  194. package/lib/{resources → cjs/resources}/stock_items.d.ts +0 -0
  195. package/lib/cjs/resources/stock_items.js +1 -0
  196. package/lib/{resources → cjs/resources}/stock_line_items.d.ts +0 -0
  197. package/lib/cjs/resources/stock_line_items.js +1 -0
  198. package/lib/{resources → cjs/resources}/stock_locations.d.ts +0 -0
  199. package/lib/cjs/resources/stock_locations.js +1 -0
  200. package/lib/{resources → cjs/resources}/stock_transfers.d.ts +0 -0
  201. package/lib/cjs/resources/stock_transfers.js +1 -0
  202. package/lib/{resources → cjs/resources}/stripe_gateways.d.ts +0 -0
  203. package/lib/cjs/resources/stripe_gateways.js +1 -0
  204. package/lib/{resources → cjs/resources}/stripe_payments.d.ts +0 -0
  205. package/lib/cjs/resources/stripe_payments.js +1 -0
  206. package/lib/{resources → cjs/resources}/tax_calculators.d.ts +0 -0
  207. package/lib/cjs/resources/tax_calculators.js +1 -0
  208. package/lib/{resources → cjs/resources}/tax_categories.d.ts +0 -0
  209. package/lib/cjs/resources/tax_categories.js +1 -0
  210. package/lib/{resources → cjs/resources}/tax_rules.d.ts +0 -0
  211. package/lib/cjs/resources/tax_rules.js +1 -0
  212. package/lib/{resources → cjs/resources}/taxjar_accounts.d.ts +0 -0
  213. package/lib/cjs/resources/taxjar_accounts.js +1 -0
  214. package/lib/{resources → cjs/resources}/transactions.d.ts +0 -0
  215. package/lib/cjs/resources/transactions.js +1 -0
  216. package/lib/{resources → cjs/resources}/voids.d.ts +0 -0
  217. package/lib/cjs/resources/voids.js +1 -0
  218. package/lib/{resources → cjs/resources}/webhooks.d.ts +0 -0
  219. package/lib/cjs/resources/webhooks.js +1 -0
  220. package/lib/{resources → cjs/resources}/wire_transfers.d.ts +0 -0
  221. package/lib/cjs/resources/wire_transfers.js +1 -0
  222. package/lib/{static.d.ts → cjs/static.d.ts} +0 -0
  223. package/lib/cjs/static.js +1 -0
  224. package/lib/{util.d.ts → cjs/util.d.ts} +0 -0
  225. package/lib/cjs/util.js +1 -0
  226. package/lib/esm/api.d.ts +103 -0
  227. package/lib/{api.js → esm/api.js} +0 -0
  228. package/lib/esm/client.d.ts +32 -0
  229. package/lib/esm/client.js +1 -0
  230. package/lib/esm/commercelayer.d.ts +122 -0
  231. package/lib/{commercelayer.js → esm/commercelayer.js} +1 -1
  232. package/lib/esm/common.d.ts +4 -0
  233. package/lib/{common.js → esm/common.js} +0 -0
  234. package/lib/esm/config.d.ts +11 -0
  235. package/lib/{config.js → esm/config.js} +0 -0
  236. package/lib/esm/debug.d.ts +3 -0
  237. package/lib/{debug.js → esm/debug.js} +0 -0
  238. package/lib/esm/error.d.ts +26 -0
  239. package/lib/esm/error.js +1 -0
  240. package/lib/esm/index.d.ts +7 -0
  241. package/lib/{index.js → esm/index.js} +0 -0
  242. package/lib/esm/interceptor.d.ts +19 -0
  243. package/lib/{interceptor.js → esm/interceptor.js} +0 -0
  244. package/lib/esm/jsonapi.d.ts +5 -0
  245. package/lib/esm/jsonapi.js +1 -0
  246. package/lib/esm/model.d.ts +101 -0
  247. package/lib/{model.js → esm/model.js} +0 -0
  248. package/lib/esm/query.d.ts +23 -0
  249. package/lib/{query.js → esm/query.js} +0 -0
  250. package/lib/esm/resource.d.ts +76 -0
  251. package/lib/esm/resource.js +1 -0
  252. package/lib/esm/resources/addresses.d.ts +88 -0
  253. package/lib/esm/resources/addresses.js +1 -0
  254. package/lib/esm/resources/adjustments.d.ts +35 -0
  255. package/lib/esm/resources/adjustments.js +1 -0
  256. package/lib/esm/resources/adyen_gateways.d.ts +47 -0
  257. package/lib/esm/resources/adyen_gateways.js +1 -0
  258. package/lib/esm/resources/adyen_payments.d.ts +44 -0
  259. package/lib/esm/resources/adyen_payments.js +1 -0
  260. package/lib/esm/resources/application.d.ts +21 -0
  261. package/lib/{resources → esm/resources}/application.js +0 -0
  262. package/lib/esm/resources/attachments.d.ts +156 -0
  263. package/lib/esm/resources/attachments.js +1 -0
  264. package/lib/esm/resources/authorizations.d.ts +57 -0
  265. package/lib/esm/resources/authorizations.js +1 -0
  266. package/lib/esm/resources/avalara_accounts.d.ts +52 -0
  267. package/lib/esm/resources/avalara_accounts.js +1 -0
  268. package/lib/esm/resources/billing_info_validation_rules.d.ts +32 -0
  269. package/lib/esm/resources/billing_info_validation_rules.js +1 -0
  270. package/lib/esm/resources/bing_geocoders.d.ts +35 -0
  271. package/lib/esm/resources/bing_geocoders.js +1 -0
  272. package/lib/esm/resources/braintree_gateways.d.ts +56 -0
  273. package/lib/esm/resources/braintree_gateways.js +1 -0
  274. package/lib/esm/resources/braintree_payments.d.ts +47 -0
  275. package/lib/esm/resources/braintree_payments.js +1 -0
  276. package/lib/esm/resources/bundles.d.ts +74 -0
  277. package/lib/esm/resources/bundles.js +1 -0
  278. package/lib/esm/resources/captures.d.ts +48 -0
  279. package/lib/esm/resources/captures.js +1 -0
  280. package/lib/esm/resources/carrier_accounts.d.ts +26 -0
  281. package/lib/{resources → esm/resources}/carrier_accounts.js +0 -0
  282. package/lib/esm/resources/checkout_com_gateways.d.ts +45 -0
  283. package/lib/esm/resources/checkout_com_gateways.js +1 -0
  284. package/lib/esm/resources/checkout_com_payments.d.ts +50 -0
  285. package/lib/esm/resources/checkout_com_payments.js +1 -0
  286. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +59 -0
  287. package/lib/esm/resources/coupon_codes_promotion_rules.js +1 -0
  288. package/lib/esm/resources/coupon_recipients.d.ts +44 -0
  289. package/lib/esm/resources/coupon_recipients.js +1 -0
  290. package/lib/esm/resources/coupons.d.ts +45 -0
  291. package/lib/esm/resources/coupons.js +1 -0
  292. package/lib/esm/resources/customer_addresses.d.ts +41 -0
  293. package/lib/esm/resources/customer_addresses.js +1 -0
  294. package/lib/esm/resources/customer_groups.d.ts +36 -0
  295. package/lib/esm/resources/customer_groups.js +1 -0
  296. package/lib/esm/resources/customer_password_resets.d.ts +33 -0
  297. package/lib/esm/resources/customer_password_resets.js +1 -0
  298. package/lib/esm/resources/customer_payment_sources.d.ts +70 -0
  299. package/lib/esm/resources/customer_payment_sources.js +1 -0
  300. package/lib/esm/resources/customer_subscriptions.d.ts +28 -0
  301. package/lib/esm/resources/customer_subscriptions.js +1 -0
  302. package/lib/esm/resources/customers.d.ts +60 -0
  303. package/lib/esm/resources/customers.js +1 -0
  304. package/lib/esm/resources/delivery_lead_times.d.ts +51 -0
  305. package/lib/esm/resources/delivery_lead_times.js +1 -0
  306. package/lib/esm/resources/event_callbacks.d.ts +24 -0
  307. package/lib/{resources → esm/resources}/event_callbacks.js +0 -0
  308. package/lib/esm/resources/external_gateways.d.ts +49 -0
  309. package/lib/esm/resources/external_gateways.js +1 -0
  310. package/lib/esm/resources/external_payments.d.ts +43 -0
  311. package/lib/esm/resources/external_payments.js +1 -0
  312. package/lib/esm/resources/external_promotions.d.ts +86 -0
  313. package/lib/esm/resources/external_promotions.js +1 -0
  314. package/lib/esm/resources/external_tax_calculators.d.ts +44 -0
  315. package/lib/esm/resources/external_tax_calculators.js +1 -0
  316. package/lib/esm/resources/fixed_amount_promotions.d.ts +88 -0
  317. package/lib/esm/resources/fixed_amount_promotions.js +1 -0
  318. package/lib/esm/resources/fixed_price_promotions.d.ts +99 -0
  319. package/lib/esm/resources/fixed_price_promotions.js +1 -0
  320. package/lib/esm/resources/free_gift_promotions.d.ts +97 -0
  321. package/lib/esm/resources/free_gift_promotions.js +1 -0
  322. package/lib/esm/resources/free_shipping_promotions.d.ts +83 -0
  323. package/lib/esm/resources/free_shipping_promotions.js +1 -0
  324. package/lib/esm/resources/geocoders.d.ts +24 -0
  325. package/lib/{resources → esm/resources}/geocoders.js +0 -0
  326. package/lib/esm/resources/gift_card_recipients.d.ts +44 -0
  327. package/lib/esm/resources/gift_card_recipients.js +1 -0
  328. package/lib/esm/resources/gift_cards.d.ts +82 -0
  329. package/lib/esm/resources/gift_cards.js +1 -0
  330. package/lib/esm/resources/google_geocoders.d.ts +35 -0
  331. package/lib/esm/resources/google_geocoders.js +1 -0
  332. package/lib/esm/resources/imports.d.ts +40 -0
  333. package/lib/esm/resources/imports.js +1 -0
  334. package/lib/esm/resources/in_stock_subscriptions.d.ts +59 -0
  335. package/lib/esm/resources/in_stock_subscriptions.js +1 -0
  336. package/lib/esm/resources/inventory_models.d.ts +42 -0
  337. package/lib/esm/resources/inventory_models.js +1 -0
  338. package/lib/esm/resources/inventory_return_locations.d.ts +43 -0
  339. package/lib/esm/resources/inventory_return_locations.js +1 -0
  340. package/lib/esm/resources/inventory_stock_locations.d.ts +46 -0
  341. package/lib/esm/resources/inventory_stock_locations.js +1 -0
  342. package/lib/esm/resources/klarna_gateways.d.ts +44 -0
  343. package/lib/esm/resources/klarna_gateways.js +1 -0
  344. package/lib/esm/resources/klarna_payments.d.ts +41 -0
  345. package/lib/esm/resources/klarna_payments.js +1 -0
  346. package/lib/esm/resources/line_item_options.d.ts +57 -0
  347. package/lib/esm/resources/line_item_options.js +1 -0
  348. package/lib/esm/resources/line_items.d.ts +125 -0
  349. package/lib/esm/resources/line_items.js +1 -0
  350. package/lib/esm/resources/manual_gateways.d.ts +33 -0
  351. package/lib/esm/resources/manual_gateways.js +1 -0
  352. package/lib/esm/resources/manual_tax_calculators.d.ts +49 -0
  353. package/lib/esm/resources/manual_tax_calculators.js +1 -0
  354. package/lib/esm/resources/markets.d.ts +81 -0
  355. package/lib/esm/resources/markets.js +1 -0
  356. package/lib/esm/resources/merchants.d.ts +38 -0
  357. package/lib/esm/resources/merchants.js +1 -0
  358. package/lib/esm/resources/order_amount_promotion_rules.d.ts +56 -0
  359. package/lib/esm/resources/order_amount_promotion_rules.js +1 -0
  360. package/lib/esm/resources/order_copies.d.ts +45 -0
  361. package/lib/esm/resources/order_copies.js +1 -0
  362. package/lib/esm/resources/order_subscriptions.d.ts +67 -0
  363. package/lib/esm/resources/order_subscriptions.js +1 -0
  364. package/lib/esm/resources/order_validation_rules.d.ts +20 -0
  365. package/lib/{resources → esm/resources}/order_validation_rules.js +0 -0
  366. package/lib/esm/resources/orders.d.ts +271 -0
  367. package/lib/esm/resources/orders.js +1 -0
  368. package/lib/esm/resources/organization.d.ts +32 -0
  369. package/lib/{resources → esm/resources}/organization.js +0 -0
  370. package/lib/esm/resources/packages.d.ts +56 -0
  371. package/lib/esm/resources/packages.js +1 -0
  372. package/lib/esm/resources/parcel_line_items.d.ts +49 -0
  373. package/lib/esm/resources/parcel_line_items.js +1 -0
  374. package/lib/esm/resources/parcels.d.ts +108 -0
  375. package/lib/esm/resources/parcels.js +1 -0
  376. package/lib/esm/resources/payment_gateways.d.ts +21 -0
  377. package/lib/{resources → esm/resources}/payment_gateways.js +0 -0
  378. package/lib/esm/resources/payment_methods.d.ts +59 -0
  379. package/lib/esm/resources/payment_methods.js +1 -0
  380. package/lib/esm/resources/paypal_gateways.d.ts +39 -0
  381. package/lib/esm/resources/paypal_gateways.js +1 -0
  382. package/lib/esm/resources/paypal_payments.d.ts +47 -0
  383. package/lib/esm/resources/paypal_payments.js +1 -0
  384. package/lib/esm/resources/percentage_discount_promotions.d.ts +97 -0
  385. package/lib/esm/resources/percentage_discount_promotions.js +1 -0
  386. package/lib/esm/resources/price_lists.d.ts +39 -0
  387. package/lib/esm/resources/price_lists.js +1 -0
  388. package/lib/esm/resources/prices.d.ts +57 -0
  389. package/lib/esm/resources/prices.js +1 -0
  390. package/lib/esm/resources/promotion_rules.d.ts +24 -0
  391. package/lib/{resources → esm/resources}/promotion_rules.js +0 -0
  392. package/lib/esm/resources/promotions.d.ts +41 -0
  393. package/lib/{resources → esm/resources}/promotions.js +0 -0
  394. package/lib/esm/resources/refunds.d.ts +34 -0
  395. package/lib/{resources → esm/resources}/refunds.js +0 -0
  396. package/lib/esm/resources/return_line_items.d.ts +49 -0
  397. package/lib/esm/resources/return_line_items.js +1 -0
  398. package/lib/esm/resources/returns.d.ts +72 -0
  399. package/lib/esm/resources/returns.js +1 -0
  400. package/lib/esm/resources/shipments.d.ts +89 -0
  401. package/lib/esm/resources/shipments.js +1 -0
  402. package/lib/esm/resources/shipping_categories.d.ts +33 -0
  403. package/lib/esm/resources/shipping_categories.js +1 -0
  404. package/lib/esm/resources/shipping_methods.d.ts +74 -0
  405. package/lib/esm/resources/shipping_methods.js +1 -0
  406. package/lib/esm/resources/shipping_zones.d.ts +48 -0
  407. package/lib/esm/resources/shipping_zones.js +1 -0
  408. package/lib/esm/resources/sku_list_items.d.ts +47 -0
  409. package/lib/esm/resources/sku_list_items.js +1 -0
  410. package/lib/esm/resources/sku_list_promotion_rules.d.ts +68 -0
  411. package/lib/esm/resources/sku_list_promotion_rules.js +1 -0
  412. package/lib/esm/resources/sku_lists.d.ts +49 -0
  413. package/lib/esm/resources/sku_lists.js +1 -0
  414. package/lib/esm/resources/sku_options.d.ts +56 -0
  415. package/lib/esm/resources/sku_options.js +1 -0
  416. package/lib/esm/resources/skus.d.ts +78 -0
  417. package/lib/esm/resources/skus.js +1 -0
  418. package/lib/esm/resources/stock_items.d.ts +49 -0
  419. package/lib/esm/resources/stock_items.js +1 -0
  420. package/lib/esm/resources/stock_line_items.d.ts +29 -0
  421. package/lib/{resources → esm/resources}/stock_line_items.js +0 -0
  422. package/lib/esm/resources/stock_locations.d.ts +57 -0
  423. package/lib/esm/resources/stock_locations.js +1 -0
  424. package/lib/esm/resources/stock_transfers.d.ts +71 -0
  425. package/lib/esm/resources/stock_transfers.js +1 -0
  426. package/lib/esm/resources/stripe_gateways.d.ts +38 -0
  427. package/lib/esm/resources/stripe_gateways.js +1 -0
  428. package/lib/esm/resources/stripe_payments.d.ts +42 -0
  429. package/lib/esm/resources/stripe_payments.js +1 -0
  430. package/lib/esm/resources/tax_calculators.d.ts +27 -0
  431. package/lib/{resources → esm/resources}/tax_calculators.js +0 -0
  432. package/lib/esm/resources/tax_categories.d.ts +59 -0
  433. package/lib/esm/resources/tax_categories.js +1 -0
  434. package/lib/esm/resources/tax_rules.d.ts +69 -0
  435. package/lib/esm/resources/tax_rules.js +1 -0
  436. package/lib/esm/resources/taxjar_accounts.d.ts +43 -0
  437. package/lib/esm/resources/taxjar_accounts.js +1 -0
  438. package/lib/esm/resources/transactions.d.ts +31 -0
  439. package/lib/{resources → esm/resources}/transactions.js +0 -0
  440. package/lib/esm/resources/voids.d.ts +34 -0
  441. package/lib/{resources → esm/resources}/voids.js +0 -0
  442. package/lib/esm/resources/webhooks.d.ts +42 -0
  443. package/lib/esm/resources/webhooks.js +1 -0
  444. package/lib/esm/resources/wire_transfers.d.ts +32 -0
  445. package/lib/esm/resources/wire_transfers.js +1 -0
  446. package/lib/esm/static.d.ts +6 -0
  447. package/lib/{static.js → esm/static.js} +0 -0
  448. package/lib/esm/util.d.ts +3 -0
  449. package/lib/{util.js → esm/util.js} +0 -0
  450. package/lib/tsconfig.esm.tsbuildinfo +1 -0
  451. package/lib/tsconfig.tsbuildinfo +1 -0
  452. package/package.json +5 -4
  453. package/lib/client.js +0 -1
  454. package/lib/error.js +0 -1
  455. package/lib/jsonapi.js +0 -1
  456. package/lib/resource.js +0 -1
  457. package/lib/resources/addresses.js +0 -1
  458. package/lib/resources/adjustments.js +0 -1
  459. package/lib/resources/adyen_gateways.js +0 -1
  460. package/lib/resources/adyen_payments.js +0 -1
  461. package/lib/resources/attachments.js +0 -1
  462. package/lib/resources/authorizations.js +0 -1
  463. package/lib/resources/avalara_accounts.js +0 -1
  464. package/lib/resources/billing_info_validation_rules.js +0 -1
  465. package/lib/resources/bing_geocoders.js +0 -1
  466. package/lib/resources/braintree_gateways.js +0 -1
  467. package/lib/resources/braintree_payments.js +0 -1
  468. package/lib/resources/bundles.js +0 -1
  469. package/lib/resources/captures.js +0 -1
  470. package/lib/resources/checkout_com_gateways.js +0 -1
  471. package/lib/resources/checkout_com_payments.js +0 -1
  472. package/lib/resources/coupon_codes_promotion_rules.js +0 -1
  473. package/lib/resources/coupon_recipients.js +0 -1
  474. package/lib/resources/coupons.js +0 -1
  475. package/lib/resources/customer_addresses.js +0 -1
  476. package/lib/resources/customer_groups.js +0 -1
  477. package/lib/resources/customer_password_resets.js +0 -1
  478. package/lib/resources/customer_payment_sources.js +0 -1
  479. package/lib/resources/customer_subscriptions.js +0 -1
  480. package/lib/resources/customers.js +0 -1
  481. package/lib/resources/delivery_lead_times.js +0 -1
  482. package/lib/resources/external_gateways.js +0 -1
  483. package/lib/resources/external_payments.js +0 -1
  484. package/lib/resources/external_promotions.js +0 -1
  485. package/lib/resources/external_tax_calculators.js +0 -1
  486. package/lib/resources/fixed_amount_promotions.js +0 -1
  487. package/lib/resources/fixed_price_promotions.js +0 -1
  488. package/lib/resources/free_gift_promotions.js +0 -1
  489. package/lib/resources/free_shipping_promotions.js +0 -1
  490. package/lib/resources/gift_card_recipients.js +0 -1
  491. package/lib/resources/gift_cards.js +0 -1
  492. package/lib/resources/google_geocoders.js +0 -1
  493. package/lib/resources/imports.js +0 -1
  494. package/lib/resources/in_stock_subscriptions.js +0 -1
  495. package/lib/resources/inventory_models.js +0 -1
  496. package/lib/resources/inventory_return_locations.js +0 -1
  497. package/lib/resources/inventory_stock_locations.js +0 -1
  498. package/lib/resources/klarna_gateways.js +0 -1
  499. package/lib/resources/klarna_payments.js +0 -1
  500. package/lib/resources/line_item_options.js +0 -1
  501. package/lib/resources/line_items.js +0 -1
  502. package/lib/resources/manual_gateways.js +0 -1
  503. package/lib/resources/manual_tax_calculators.js +0 -1
  504. package/lib/resources/markets.js +0 -1
  505. package/lib/resources/merchants.js +0 -1
  506. package/lib/resources/order_amount_promotion_rules.js +0 -1
  507. package/lib/resources/order_copies.js +0 -1
  508. package/lib/resources/order_subscriptions.js +0 -1
  509. package/lib/resources/orders.js +0 -1
  510. package/lib/resources/packages.js +0 -1
  511. package/lib/resources/parcel_line_items.js +0 -1
  512. package/lib/resources/parcels.js +0 -1
  513. package/lib/resources/payment_methods.js +0 -1
  514. package/lib/resources/paypal_gateways.js +0 -1
  515. package/lib/resources/paypal_payments.js +0 -1
  516. package/lib/resources/percentage_discount_promotions.js +0 -1
  517. package/lib/resources/price_lists.js +0 -1
  518. package/lib/resources/prices.js +0 -1
  519. package/lib/resources/return_line_items.js +0 -1
  520. package/lib/resources/returns.js +0 -1
  521. package/lib/resources/shipments.js +0 -1
  522. package/lib/resources/shipping_categories.js +0 -1
  523. package/lib/resources/shipping_methods.js +0 -1
  524. package/lib/resources/shipping_zones.js +0 -1
  525. package/lib/resources/sku_list_items.js +0 -1
  526. package/lib/resources/sku_list_promotion_rules.js +0 -1
  527. package/lib/resources/sku_lists.js +0 -1
  528. package/lib/resources/sku_options.js +0 -1
  529. package/lib/resources/skus.js +0 -1
  530. package/lib/resources/stock_items.js +0 -1
  531. package/lib/resources/stock_locations.js +0 -1
  532. package/lib/resources/stock_transfers.js +0 -1
  533. package/lib/resources/stripe_gateways.js +0 -1
  534. package/lib/resources/stripe_payments.js +0 -1
  535. package/lib/resources/tax_categories.js +0 -1
  536. package/lib/resources/tax_rules.js +0 -1
  537. package/lib/resources/taxjar_accounts.js +0 -1
  538. package/lib/resources/webhooks.js +0 -1
  539. package/lib/resources/wire_transfers.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class InStockSubscriptions extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:InStockSubscriptions.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:InStockSubscriptions.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:InStockSubscriptions.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:InStockSubscriptions.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:InStockSubscriptions.TYPE,id:e},s)}async market(e,s,t){return this.resources.fetch({type:"markets"},`in_stock_subscriptions/${e}/market`,s,t)}async customer(e,s,t){return this.resources.fetch({type:"customers"},`in_stock_subscriptions/${e}/customer`,s,t)}async sku(e,s,t){return this.resources.fetch({type:"skus"},`in_stock_subscriptions/${e}/sku`,s,t)}isInStockSubscription(e){return e.type&&e.type===InStockSubscriptions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:InStockSubscriptions.TYPE}:{id:e.id,type:InStockSubscriptions.TYPE}}type(){return InStockSubscriptions.TYPE}}InStockSubscriptions.TYPE="in_stock_subscriptions",exports.default=InStockSubscriptions;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class InventoryModels extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:InventoryModels.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:InventoryModels.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:InventoryModels.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:InventoryModels.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:InventoryModels.TYPE,id:e},t)}async inventory_stock_locations(e,t,r){return this.resources.fetch({type:"inventory_stock_locations"},`inventory_models/${e}/inventory_stock_locations`,t,r)}async inventory_return_locations(e,t,r){return this.resources.fetch({type:"inventory_return_locations"},`inventory_models/${e}/inventory_return_locations`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`inventory_models/${e}/attachments`,t,r)}isInventoryModel(e){return e.type&&e.type===InventoryModels.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:InventoryModels.TYPE}:{id:e.id,type:InventoryModels.TYPE}}type(){return InventoryModels.TYPE}}InventoryModels.TYPE="inventory_models",exports.default=InventoryModels;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class InventoryReturnLocations extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:InventoryReturnLocations.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:InventoryReturnLocations.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:InventoryReturnLocations.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:InventoryReturnLocations.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:InventoryReturnLocations.TYPE,id:e},t)}async stock_location(e,t,s){return this.resources.fetch({type:"stock_locations"},`inventory_return_locations/${e}/stock_location`,t,s)}async inventory_model(e,t,s){return this.resources.fetch({type:"inventory_models"},`inventory_return_locations/${e}/inventory_model`,t,s)}isInventoryReturnLocation(e){return e.type&&e.type===InventoryReturnLocations.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:InventoryReturnLocations.TYPE}:{id:e.id,type:InventoryReturnLocations.TYPE}}type(){return InventoryReturnLocations.TYPE}}InventoryReturnLocations.TYPE="inventory_return_locations",exports.default=InventoryReturnLocations;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class InventoryStockLocations extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:InventoryStockLocations.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:InventoryStockLocations.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:InventoryStockLocations.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:InventoryStockLocations.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:InventoryStockLocations.TYPE,id:e},s)}async stock_location(e,s,t){return this.resources.fetch({type:"stock_locations"},`inventory_stock_locations/${e}/stock_location`,s,t)}async inventory_model(e,s,t){return this.resources.fetch({type:"inventory_models"},`inventory_stock_locations/${e}/inventory_model`,s,t)}isInventoryStockLocation(e){return e.type&&e.type===InventoryStockLocations.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:InventoryStockLocations.TYPE}:{id:e.id,type:InventoryStockLocations.TYPE}}type(){return InventoryStockLocations.TYPE}}InventoryStockLocations.TYPE="inventory_stock_locations",exports.default=InventoryStockLocations;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class KlarnaGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:KlarnaGateways.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:KlarnaGateways.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:KlarnaGateways.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:KlarnaGateways.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:KlarnaGateways.TYPE,id:e},t)}async payment_methods(e,t,s){return this.resources.fetch({type:"payment_methods"},`klarna_gateways/${e}/payment_methods`,t,s)}async klarna_payments(e,t,s){return this.resources.fetch({type:"klarna_payments"},`klarna_gateways/${e}/klarna_payments`,t,s)}isKlarnaGateway(e){return e.type&&e.type===KlarnaGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:KlarnaGateways.TYPE}:{id:e.id,type:KlarnaGateways.TYPE}}type(){return KlarnaGateways.TYPE}}KlarnaGateways.TYPE="klarna_gateways",exports.default=KlarnaGateways;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class KlarnaPayments extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:KlarnaPayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:KlarnaPayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:KlarnaPayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:KlarnaPayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:KlarnaPayments.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`klarna_payments/${e}/order`,t,r)}async payment_gateway(e,t,r){return this.resources.fetch({type:"payment_gateways"},`klarna_payments/${e}/payment_gateway`,t,r)}isKlarnaPayment(e){return e.type&&e.type===KlarnaPayments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:KlarnaPayments.TYPE}:{id:e.id,type:KlarnaPayments.TYPE}}type(){return KlarnaPayments.TYPE}}KlarnaPayments.TYPE="klarna_payments",exports.default=KlarnaPayments;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class LineItemOptions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:LineItemOptions.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:LineItemOptions.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:LineItemOptions.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:LineItemOptions.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:LineItemOptions.TYPE,id:e},t)}async line_item(e,t,s){return this.resources.fetch({type:"line_items"},`line_item_options/${e}/line_item`,t,s)}async sku_option(e,t,s){return this.resources.fetch({type:"sku_options"},`line_item_options/${e}/sku_option`,t,s)}isLineItemOption(e){return e.type&&e.type===LineItemOptions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:LineItemOptions.TYPE}:{id:e.id,type:LineItemOptions.TYPE}}type(){return LineItemOptions.TYPE}}LineItemOptions.TYPE="line_item_options",exports.default=LineItemOptions;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class LineItems extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:LineItems.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:LineItems.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:LineItems.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:LineItems.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:LineItems.TYPE,id:e},t)}async order(e,t,s){return this.resources.fetch({type:"orders"},`line_items/${e}/order`,t,s)}async line_item_options(e,t,s){return this.resources.fetch({type:"line_item_options"},`line_items/${e}/line_item_options`,t,s)}async stock_line_items(e,t,s){return this.resources.fetch({type:"stock_line_items"},`line_items/${e}/stock_line_items`,t,s)}async stock_transfers(e,t,s){return this.resources.fetch({type:"stock_transfers"},`line_items/${e}/stock_transfers`,t,s)}isLineItem(e){return e.type&&e.type===LineItems.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:LineItems.TYPE}:{id:e.id,type:LineItems.TYPE}}type(){return LineItems.TYPE}}LineItems.TYPE="line_items",exports.default=LineItems;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ManualGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ManualGateways.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ManualGateways.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ManualGateways.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ManualGateways.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ManualGateways.TYPE,id:e},t)}async payment_methods(e,t,r){return this.resources.fetch({type:"payment_methods"},`manual_gateways/${e}/payment_methods`,t,r)}isManualGateway(e){return e.type&&e.type===ManualGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ManualGateways.TYPE}:{id:e.id,type:ManualGateways.TYPE}}type(){return ManualGateways.TYPE}}ManualGateways.TYPE="manual_gateways",exports.default=ManualGateways;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ManualTaxCalculators extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ManualTaxCalculators.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ManualTaxCalculators.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:ManualTaxCalculators.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ManualTaxCalculators.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:ManualTaxCalculators.TYPE,id:e},t)}async tax_categories(e,t,s){return this.resources.fetch({type:"tax_categories"},`manual_tax_calculators/${e}/tax_categories`,t,s)}async markets(e,t,s){return this.resources.fetch({type:"markets"},`manual_tax_calculators/${e}/markets`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`manual_tax_calculators/${e}/attachments`,t,s)}async tax_rules(e,t,s){return this.resources.fetch({type:"tax_rules"},`manual_tax_calculators/${e}/tax_rules`,t,s)}isManualTaxCalculator(e){return e.type&&e.type===ManualTaxCalculators.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ManualTaxCalculators.TYPE}:{id:e.id,type:ManualTaxCalculators.TYPE}}type(){return ManualTaxCalculators.TYPE}}ManualTaxCalculators.TYPE="manual_tax_calculators",exports.default=ManualTaxCalculators;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Markets extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Markets.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Markets.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Markets.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Markets.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Markets.TYPE,id:e},t)}async merchant(e,t,r){return this.resources.fetch({type:"merchants"},`markets/${e}/merchant`,t,r)}async price_list(e,t,r){return this.resources.fetch({type:"price_lists"},`markets/${e}/price_list`,t,r)}async inventory_model(e,t,r){return this.resources.fetch({type:"inventory_models"},`markets/${e}/inventory_model`,t,r)}async tax_calculator(e,t,r){return this.resources.fetch({type:"tax_calculators"},`markets/${e}/tax_calculator`,t,r)}async customer_group(e,t,r){return this.resources.fetch({type:"customer_groups"},`markets/${e}/customer_group`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`markets/${e}/attachments`,t,r)}isMarket(e){return e.type&&e.type===Markets.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Markets.TYPE}:{id:e.id,type:Markets.TYPE}}type(){return Markets.TYPE}}Markets.TYPE="markets",exports.default=Markets;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Merchants extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Merchants.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Merchants.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:Merchants.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Merchants.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:Merchants.TYPE,id:e},t)}async address(e,t,s){return this.resources.fetch({type:"addresses"},`merchants/${e}/address`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`merchants/${e}/attachments`,t,s)}isMerchant(e){return e.type&&e.type===Merchants.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Merchants.TYPE}:{id:e.id,type:Merchants.TYPE}}type(){return Merchants.TYPE}}Merchants.TYPE="merchants",exports.default=Merchants;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderAmountPromotionRules extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:OrderAmountPromotionRules.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderAmountPromotionRules.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:OrderAmountPromotionRules.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:OrderAmountPromotionRules.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:OrderAmountPromotionRules.TYPE,id:e},s)}isOrderAmountPromotionRule(e){return e.type&&e.type===OrderAmountPromotionRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:OrderAmountPromotionRules.TYPE}:{id:e.id,type:OrderAmountPromotionRules.TYPE}}type(){return OrderAmountPromotionRules.TYPE}}OrderAmountPromotionRules.TYPE="order_amount_promotion_rules",exports.default=OrderAmountPromotionRules;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderCopies extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:OrderCopies.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderCopies.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:OrderCopies.TYPE,id:e},r,t)}async delete(e,r){await this.resources.delete({type:OrderCopies.TYPE,id:e},r)}async source_order(e,r,t){return this.resources.fetch({type:"orders"},`order_copies/${e}/source_order`,r,t)}async target_order(e,r,t){return this.resources.fetch({type:"orders"},`order_copies/${e}/target_order`,r,t)}async order_subscription(e,r,t){return this.resources.fetch({type:"order_subscriptions"},`order_copies/${e}/order_subscription`,r,t)}isOrderCopy(e){return e.type&&e.type===OrderCopies.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:OrderCopies.TYPE}:{id:e.id,type:OrderCopies.TYPE}}type(){return OrderCopies.TYPE}}OrderCopies.TYPE="order_copies",exports.default=OrderCopies;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderSubscriptions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:OrderSubscriptions.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderSubscriptions.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:OrderSubscriptions.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:OrderSubscriptions.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:OrderSubscriptions.TYPE,id:e},r)}async market(e,r,s){return this.resources.fetch({type:"markets"},`order_subscriptions/${e}/market`,r,s)}async source_order(e,r,s){return this.resources.fetch({type:"orders"},`order_subscriptions/${e}/source_order`,r,s)}async customer(e,r,s){return this.resources.fetch({type:"customers"},`order_subscriptions/${e}/customer`,r,s)}async order_copies(e,r,s){return this.resources.fetch({type:"order_copies"},`order_subscriptions/${e}/order_copies`,r,s)}async orders(e,r,s){return this.resources.fetch({type:"orders"},`order_subscriptions/${e}/orders`,r,s)}isOrderSubscription(e){return e.type&&e.type===OrderSubscriptions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:OrderSubscriptions.TYPE}:{id:e.id,type:OrderSubscriptions.TYPE}}type(){return OrderSubscriptions.TYPE}}OrderSubscriptions.TYPE="order_subscriptions",exports.default=OrderSubscriptions;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderValidationRules extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:OrderValidationRules.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:OrderValidationRules.TYPE,id:e},r,t)}async market(e,r,t){return this.resources.fetch({type:"markets"},`order_validation_rules/${e}/market`,r,t)}isOrderValidationRule(e){return e.type&&e.type===OrderValidationRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:OrderValidationRules.TYPE}:{id:e.id,type:OrderValidationRules.TYPE}}type(){return OrderValidationRules.TYPE}}OrderValidationRules.TYPE="order_validation_rules",exports.default=OrderValidationRules;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Orders extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:Orders.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Orders.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:Orders.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Orders.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:Orders.TYPE,id:e},s)}async market(e,s,r){return this.resources.fetch({type:"markets"},`orders/${e}/market`,s,r)}async customer(e,s,r){return this.resources.fetch({type:"customers"},`orders/${e}/customer`,s,r)}async shipping_address(e,s,r){return this.resources.fetch({type:"addresses"},`orders/${e}/shipping_address`,s,r)}async billing_address(e,s,r){return this.resources.fetch({type:"addresses"},`orders/${e}/billing_address`,s,r)}async available_payment_methods(e,s,r){return this.resources.fetch({type:"payment_methods"},`orders/${e}/available_payment_methods`,s,r)}async available_customer_payment_sources(e,s,r){return this.resources.fetch({type:"customer_payment_sources"},`orders/${e}/available_customer_payment_sources`,s,r)}async payment_method(e,s,r){return this.resources.fetch({type:"payment_methods"},`orders/${e}/payment_method`,s,r)}async line_items(e,s,r){return this.resources.fetch({type:"line_items"},`orders/${e}/line_items`,s,r)}async shipments(e,s,r){return this.resources.fetch({type:"shipments"},`orders/${e}/shipments`,s,r)}async authorizations(e,s,r){return this.resources.fetch({type:"authorizations"},`orders/${e}/authorizations`,s,r)}async captures(e,s,r){return this.resources.fetch({type:"captures"},`orders/${e}/captures`,s,r)}async voids(e,s,r){return this.resources.fetch({type:"voids"},`orders/${e}/voids`,s,r)}async refunds(e,s,r){return this.resources.fetch({type:"refunds"},`orders/${e}/refunds`,s,r)}async order_subscriptions(e,s,r){return this.resources.fetch({type:"order_subscriptions"},`orders/${e}/order_subscriptions`,s,r)}async order_copies(e,s,r){return this.resources.fetch({type:"order_copies"},`orders/${e}/order_copies`,s,r)}async attachments(e,s,r){return this.resources.fetch({type:"attachments"},`orders/${e}/attachments`,s,r)}isOrder(e){return e.type&&e.type===Orders.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Orders.TYPE}:{id:e.id,type:Orders.TYPE}}type(){return Orders.TYPE}}Orders.TYPE="orders",exports.default=Orders;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Organizations extends resource_1.ApiResource{async retrieve(e,r){return this.resources.singleton({type:Organizations.TYPE},e,r)}isOrganization(e){return e.type&&e.type===Organizations.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Organizations.TYPE}:{id:e.id,type:Organizations.TYPE}}type(){return Organizations.TYPE}}Organizations.TYPE="organization",exports.default=Organizations;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Packages extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Packages.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Packages.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:Packages.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Packages.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:Packages.TYPE,id:e},t)}async stock_location(e,t,s){return this.resources.fetch({type:"stock_locations"},`packages/${e}/stock_location`,t,s)}async parcels(e,t,s){return this.resources.fetch({type:"parcels"},`packages/${e}/parcels`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`packages/${e}/attachments`,t,s)}isPackage(e){return e.type&&e.type===Packages.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Packages.TYPE}:{id:e.id,type:Packages.TYPE}}type(){return Packages.TYPE}}Packages.TYPE="packages",exports.default=Packages;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ParcelLineItems extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ParcelLineItems.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ParcelLineItems.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:ParcelLineItems.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ParcelLineItems.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:ParcelLineItems.TYPE,id:e},t)}async parcel(e,t,s){return this.resources.fetch({type:"parcels"},`parcel_line_items/${e}/parcel`,t,s)}async stock_line_item(e,t,s){return this.resources.fetch({type:"stock_line_items"},`parcel_line_items/${e}/stock_line_item`,t,s)}isParcelLineItem(e){return e.type&&e.type===ParcelLineItems.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ParcelLineItems.TYPE}:{id:e.id,type:ParcelLineItems.TYPE}}type(){return ParcelLineItems.TYPE}}ParcelLineItems.TYPE="parcel_line_items",exports.default=ParcelLineItems;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Parcels extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Parcels.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Parcels.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:Parcels.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Parcels.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:Parcels.TYPE,id:e},t)}async shipment(e,t,s){return this.resources.fetch({type:"shipments"},`parcels/${e}/shipment`,t,s)}async package(e,t,s){return this.resources.fetch({type:"packages"},`parcels/${e}/package`,t,s)}async parcel_line_items(e,t,s){return this.resources.fetch({type:"parcel_line_items"},`parcels/${e}/parcel_line_items`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`parcels/${e}/attachments`,t,s)}isParcel(e){return e.type&&e.type===Parcels.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Parcels.TYPE}:{id:e.id,type:Parcels.TYPE}}type(){return Parcels.TYPE}}Parcels.TYPE="parcels",exports.default=Parcels;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentGateways extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaymentGateways.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:PaymentGateways.TYPE,id:e},r,t)}async payment_methods(e,r,t){return this.resources.fetch({type:"payment_methods"},`payment_gateways/${e}/payment_methods`,r,t)}isPaymentGateway(e){return e.type&&e.type===PaymentGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PaymentGateways.TYPE}:{id:e.id,type:PaymentGateways.TYPE}}type(){return PaymentGateways.TYPE}}PaymentGateways.TYPE="payment_gateways",exports.default=PaymentGateways;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentMethods extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PaymentMethods.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:PaymentMethods.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:PaymentMethods.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:PaymentMethods.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:PaymentMethods.TYPE,id:e},t)}async market(e,t,r){return this.resources.fetch({type:"markets"},`payment_methods/${e}/market`,t,r)}async payment_gateway(e,t,r){return this.resources.fetch({type:"payment_gateways"},`payment_methods/${e}/payment_gateway`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`payment_methods/${e}/attachments`,t,r)}isPaymentMethod(e){return e.type&&e.type===PaymentMethods.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PaymentMethods.TYPE}:{id:e.id,type:PaymentMethods.TYPE}}type(){return PaymentMethods.TYPE}}PaymentMethods.TYPE="payment_methods",exports.default=PaymentMethods;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaypalGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PaypalGateways.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:PaypalGateways.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:PaypalGateways.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:PaypalGateways.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:PaypalGateways.TYPE,id:e},t)}async payment_methods(e,t,s){return this.resources.fetch({type:"payment_methods"},`paypal_gateways/${e}/payment_methods`,t,s)}async paypal_payments(e,t,s){return this.resources.fetch({type:"paypal_payments"},`paypal_gateways/${e}/paypal_payments`,t,s)}isPaypalGateway(e){return e.type&&e.type===PaypalGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PaypalGateways.TYPE}:{id:e.id,type:PaypalGateways.TYPE}}type(){return PaypalGateways.TYPE}}PaypalGateways.TYPE="paypal_gateways",exports.default=PaypalGateways;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaypalPayments extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PaypalPayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:PaypalPayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:PaypalPayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:PaypalPayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:PaypalPayments.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`paypal_payments/${e}/order`,t,r)}async payment_gateway(e,t,r){return this.resources.fetch({type:"payment_gateways"},`paypal_payments/${e}/payment_gateway`,t,r)}isPaypalPayment(e){return e.type&&e.type===PaypalPayments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PaypalPayments.TYPE}:{id:e.id,type:PaypalPayments.TYPE}}type(){return PaypalPayments.TYPE}}PaypalPayments.TYPE="paypal_payments",exports.default=PaypalPayments;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PercentageDiscountPromotions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PercentageDiscountPromotions.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:PercentageDiscountPromotions.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:PercentageDiscountPromotions.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:PercentageDiscountPromotions.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:PercentageDiscountPromotions.TYPE,id:e},t)}async market(e,t,s){return this.resources.fetch({type:"markets"},`percentage_discount_promotions/${e}/market`,t,s)}async order_amount_promotion_rule(e,t,s){return this.resources.fetch({type:"order_amount_promotion_rules"},`percentage_discount_promotions/${e}/order_amount_promotion_rule`,t,s)}async sku_list_promotion_rule(e,t,s){return this.resources.fetch({type:"sku_list_promotion_rules"},`percentage_discount_promotions/${e}/sku_list_promotion_rule`,t,s)}async coupon_codes_promotion_rule(e,t,s){return this.resources.fetch({type:"coupon_codes_promotion_rules"},`percentage_discount_promotions/${e}/coupon_codes_promotion_rule`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`percentage_discount_promotions/${e}/attachments`,t,s)}async sku_list(e,t,s){return this.resources.fetch({type:"sku_lists"},`percentage_discount_promotions/${e}/sku_list`,t,s)}async skus(e,t,s){return this.resources.fetch({type:"skus"},`percentage_discount_promotions/${e}/skus`,t,s)}isPercentageDiscountPromotion(e){return e.type&&e.type===PercentageDiscountPromotions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PercentageDiscountPromotions.TYPE}:{id:e.id,type:PercentageDiscountPromotions.TYPE}}type(){return PercentageDiscountPromotions.TYPE}}PercentageDiscountPromotions.TYPE="percentage_discount_promotions",exports.default=PercentageDiscountPromotions;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PriceLists extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PriceLists.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:PriceLists.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:PriceLists.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:PriceLists.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:PriceLists.TYPE,id:e},t)}async prices(e,t,r){return this.resources.fetch({type:"prices"},`price_lists/${e}/prices`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`price_lists/${e}/attachments`,t,r)}isPriceList(e){return e.type&&e.type===PriceLists.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PriceLists.TYPE}:{id:e.id,type:PriceLists.TYPE}}type(){return PriceLists.TYPE}}PriceLists.TYPE="price_lists",exports.default=PriceLists;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Prices extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Prices.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Prices.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:Prices.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Prices.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:Prices.TYPE,id:e},t)}async price_list(e,t,s){return this.resources.fetch({type:"price_lists"},`prices/${e}/price_list`,t,s)}async sku(e,t,s){return this.resources.fetch({type:"skus"},`prices/${e}/sku`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`prices/${e}/attachments`,t,s)}isPrice(e){return e.type&&e.type===Prices.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Prices.TYPE}:{id:e.id,type:Prices.TYPE}}type(){return Prices.TYPE}}Prices.TYPE="prices",exports.default=Prices;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PromotionRules extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PromotionRules.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:PromotionRules.TYPE,id:e},r,t)}isPromotionRule(e){return e.type&&e.type===PromotionRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PromotionRules.TYPE}:{id:e.id,type:PromotionRules.TYPE}}type(){return PromotionRules.TYPE}}PromotionRules.TYPE="promotion_rules",exports.default=PromotionRules;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Promotions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Promotions.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Promotions.TYPE,id:e},r,t)}async market(e,r,t){return this.resources.fetch({type:"markets"},`promotions/${e}/market`,r,t)}async order_amount_promotion_rule(e,r,t){return this.resources.fetch({type:"order_amount_promotion_rules"},`promotions/${e}/order_amount_promotion_rule`,r,t)}async sku_list_promotion_rule(e,r,t){return this.resources.fetch({type:"sku_list_promotion_rules"},`promotions/${e}/sku_list_promotion_rule`,r,t)}async coupon_codes_promotion_rule(e,r,t){return this.resources.fetch({type:"coupon_codes_promotion_rules"},`promotions/${e}/coupon_codes_promotion_rule`,r,t)}async attachments(e,r,t){return this.resources.fetch({type:"attachments"},`promotions/${e}/attachments`,r,t)}isPromotion(e){return e.type&&e.type===Promotions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Promotions.TYPE}:{id:e.id,type:Promotions.TYPE}}type(){return Promotions.TYPE}}Promotions.TYPE="promotions",exports.default=Promotions;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Refunds extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Refunds.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Refunds.TYPE,id:e},r,t)}async order(e,r,t){return this.resources.fetch({type:"orders"},`refunds/${e}/order`,r,t)}async reference_capture(e,r,t){return this.resources.fetch({type:"captures"},`refunds/${e}/reference_capture`,r,t)}isRefund(e){return e.type&&e.type===Refunds.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Refunds.TYPE}:{id:e.id,type:Refunds.TYPE}}type(){return Refunds.TYPE}}Refunds.TYPE="refunds",exports.default=Refunds;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ReturnLineItems extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:ReturnLineItems.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:ReturnLineItems.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:ReturnLineItems.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:ReturnLineItems.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:ReturnLineItems.TYPE,id:e},r)}async return(e,r,t){return this.resources.fetch({type:"returns"},`return_line_items/${e}/return`,r,t)}async line_item(e,r,t){return this.resources.fetch({type:"line_items"},`return_line_items/${e}/line_item`,r,t)}isReturnLineItem(e){return e.type&&e.type===ReturnLineItems.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ReturnLineItems.TYPE}:{id:e.id,type:ReturnLineItems.TYPE}}type(){return ReturnLineItems.TYPE}}ReturnLineItems.TYPE="return_line_items",exports.default=ReturnLineItems;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Returns extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Returns.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Returns.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Returns.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Returns.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Returns.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`returns/${e}/order`,t,r)}async customer(e,t,r){return this.resources.fetch({type:"customers"},`returns/${e}/customer`,t,r)}async stock_location(e,t,r){return this.resources.fetch({type:"stock_locations"},`returns/${e}/stock_location`,t,r)}async origin_address(e,t,r){return this.resources.fetch({type:"addresses"},`returns/${e}/origin_address`,t,r)}async destination_address(e,t,r){return this.resources.fetch({type:"addresses"},`returns/${e}/destination_address`,t,r)}async return_line_items(e,t,r){return this.resources.fetch({type:"return_line_items"},`returns/${e}/return_line_items`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`returns/${e}/attachments`,t,r)}isReturn(e){return e.type&&e.type===Returns.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Returns.TYPE}:{id:e.id,type:Returns.TYPE}}type(){return Returns.TYPE}}Returns.TYPE="returns",exports.default=Returns;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Shipments extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:Shipments.TYPE},e,s)}async retrieve(e,s,t){return this.resources.retrieve({type:Shipments.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:Shipments.TYPE}),s,t)}async order(e,s,t){return this.resources.fetch({type:"orders"},`shipments/${e}/order`,s,t)}async shipping_category(e,s,t){return this.resources.fetch({type:"shipping_categories"},`shipments/${e}/shipping_category`,s,t)}async stock_location(e,s,t){return this.resources.fetch({type:"stock_locations"},`shipments/${e}/stock_location`,s,t)}async origin_address(e,s,t){return this.resources.fetch({type:"addresses"},`shipments/${e}/origin_address`,s,t)}async shipping_address(e,s,t){return this.resources.fetch({type:"addresses"},`shipments/${e}/shipping_address`,s,t)}async shipping_method(e,s,t){return this.resources.fetch({type:"shipping_methods"},`shipments/${e}/shipping_method`,s,t)}async delivery_lead_time(e,s,t){return this.resources.fetch({type:"delivery_lead_times"},`shipments/${e}/delivery_lead_time`,s,t)}async stock_line_items(e,s,t){return this.resources.fetch({type:"stock_line_items"},`shipments/${e}/stock_line_items`,s,t)}async stock_transfers(e,s,t){return this.resources.fetch({type:"stock_transfers"},`shipments/${e}/stock_transfers`,s,t)}async available_shipping_methods(e,s,t){return this.resources.fetch({type:"shipping_methods"},`shipments/${e}/available_shipping_methods`,s,t)}async carrier_accounts(e,s,t){return this.resources.fetch({type:"carrier_accounts"},`shipments/${e}/carrier_accounts`,s,t)}async parcels(e,s,t){return this.resources.fetch({type:"parcels"},`shipments/${e}/parcels`,s,t)}async attachments(e,s,t){return this.resources.fetch({type:"attachments"},`shipments/${e}/attachments`,s,t)}isShipment(e){return e.type&&e.type===Shipments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Shipments.TYPE}:{id:e.id,type:Shipments.TYPE}}type(){return Shipments.TYPE}}Shipments.TYPE="shipments",exports.default=Shipments;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ShippingCategories extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ShippingCategories.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ShippingCategories.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:ShippingCategories.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ShippingCategories.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:ShippingCategories.TYPE,id:e},t)}async skus(e,t,s){return this.resources.fetch({type:"skus"},`shipping_categories/${e}/skus`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`shipping_categories/${e}/attachments`,t,s)}isShippingCategory(e){return e.type&&e.type===ShippingCategories.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ShippingCategories.TYPE}:{id:e.id,type:ShippingCategories.TYPE}}type(){return ShippingCategories.TYPE}}ShippingCategories.TYPE="shipping_categories",exports.default=ShippingCategories;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ShippingMethods extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ShippingMethods.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ShippingMethods.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:ShippingMethods.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ShippingMethods.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:ShippingMethods.TYPE,id:e},t)}async market(e,t,s){return this.resources.fetch({type:"markets"},`shipping_methods/${e}/market`,t,s)}async shipping_zone(e,t,s){return this.resources.fetch({type:"shipping_zones"},`shipping_methods/${e}/shipping_zone`,t,s)}async shipping_category(e,t,s){return this.resources.fetch({type:"shipping_categories"},`shipping_methods/${e}/shipping_category`,t,s)}async delivery_lead_time_for_shipment(e,t,s){return this.resources.fetch({type:"delivery_lead_times"},`shipping_methods/${e}/delivery_lead_time_for_shipment`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`shipping_methods/${e}/attachments`,t,s)}isShippingMethod(e){return e.type&&e.type===ShippingMethods.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ShippingMethods.TYPE}:{id:e.id,type:ShippingMethods.TYPE}}type(){return ShippingMethods.TYPE}}ShippingMethods.TYPE="shipping_methods",exports.default=ShippingMethods;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ShippingZones extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ShippingZones.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ShippingZones.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ShippingZones.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ShippingZones.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ShippingZones.TYPE,id:e},t)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`shipping_zones/${e}/attachments`,t,r)}isShippingZone(e){return e.type&&e.type===ShippingZones.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ShippingZones.TYPE}:{id:e.id,type:ShippingZones.TYPE}}type(){return ShippingZones.TYPE}}ShippingZones.TYPE="shipping_zones",exports.default=ShippingZones;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class SkuListItems extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:SkuListItems.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:SkuListItems.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:SkuListItems.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:SkuListItems.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:SkuListItems.TYPE,id:e},s)}async sku_list(e,s,r){return this.resources.fetch({type:"sku_lists"},`sku_list_items/${e}/sku_list`,s,r)}async sku(e,s,r){return this.resources.fetch({type:"skus"},`sku_list_items/${e}/sku`,s,r)}isSkuListItem(e){return e.type&&e.type===SkuListItems.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:SkuListItems.TYPE}:{id:e.id,type:SkuListItems.TYPE}}type(){return SkuListItems.TYPE}}SkuListItems.TYPE="sku_list_items",exports.default=SkuListItems;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class SkuListPromotionRules extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:SkuListPromotionRules.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:SkuListPromotionRules.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:SkuListPromotionRules.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:SkuListPromotionRules.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:SkuListPromotionRules.TYPE,id:e},s)}async sku_list(e,s,t){return this.resources.fetch({type:"sku_lists"},`sku_list_promotion_rules/${e}/sku_list`,s,t)}async skus(e,s,t){return this.resources.fetch({type:"skus"},`sku_list_promotion_rules/${e}/skus`,s,t)}isSkuListPromotionRule(e){return e.type&&e.type===SkuListPromotionRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:SkuListPromotionRules.TYPE}:{id:e.id,type:SkuListPromotionRules.TYPE}}type(){return SkuListPromotionRules.TYPE}}SkuListPromotionRules.TYPE="sku_list_promotion_rules",exports.default=SkuListPromotionRules;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class SkuLists extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:SkuLists.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:SkuLists.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:SkuLists.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:SkuLists.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:SkuLists.TYPE,id:e},s)}async skus(e,s,t){return this.resources.fetch({type:"skus"},`sku_lists/${e}/skus`,s,t)}async sku_list_items(e,s,t){return this.resources.fetch({type:"sku_list_items"},`sku_lists/${e}/sku_list_items`,s,t)}async bundles(e,s,t){return this.resources.fetch({type:"bundles"},`sku_lists/${e}/bundles`,s,t)}isSkuList(e){return e.type&&e.type===SkuLists.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:SkuLists.TYPE}:{id:e.id,type:SkuLists.TYPE}}type(){return SkuLists.TYPE}}SkuLists.TYPE="sku_lists",exports.default=SkuLists;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class SkuOptions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:SkuOptions.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:SkuOptions.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:SkuOptions.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:SkuOptions.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:SkuOptions.TYPE,id:e},t)}async market(e,t,r){return this.resources.fetch({type:"markets"},`sku_options/${e}/market`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`sku_options/${e}/attachments`,t,r)}isSkuOption(e){return e.type&&e.type===SkuOptions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:SkuOptions.TYPE}:{id:e.id,type:SkuOptions.TYPE}}type(){return SkuOptions.TYPE}}SkuOptions.TYPE="sku_options",exports.default=SkuOptions;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Skus extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:Skus.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:Skus.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:Skus.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:Skus.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:Skus.TYPE,id:e},s)}async shipping_category(e,s,t){return this.resources.fetch({type:"shipping_categories"},`skus/${e}/shipping_category`,s,t)}async prices(e,s,t){return this.resources.fetch({type:"prices"},`skus/${e}/prices`,s,t)}async stock_items(e,s,t){return this.resources.fetch({type:"stock_items"},`skus/${e}/stock_items`,s,t)}async delivery_lead_times(e,s,t){return this.resources.fetch({type:"delivery_lead_times"},`skus/${e}/delivery_lead_times`,s,t)}async sku_options(e,s,t){return this.resources.fetch({type:"sku_options"},`skus/${e}/sku_options`,s,t)}async attachments(e,s,t){return this.resources.fetch({type:"attachments"},`skus/${e}/attachments`,s,t)}isSku(e){return e.type&&e.type===Skus.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Skus.TYPE}:{id:e.id,type:Skus.TYPE}}type(){return Skus.TYPE}}Skus.TYPE="skus",exports.default=Skus;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockItems extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StockItems.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StockItems.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:StockItems.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StockItems.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:StockItems.TYPE,id:e},t)}async stock_location(e,t,s){return this.resources.fetch({type:"stock_locations"},`stock_items/${e}/stock_location`,t,s)}async sku(e,t,s){return this.resources.fetch({type:"skus"},`stock_items/${e}/sku`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`stock_items/${e}/attachments`,t,s)}isStockItem(e){return e.type&&e.type===StockItems.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StockItems.TYPE}:{id:e.id,type:StockItems.TYPE}}type(){return StockItems.TYPE}}StockItems.TYPE="stock_items",exports.default=StockItems;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockLineItems extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StockLineItems.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:StockLineItems.TYPE,id:e},t,s)}async shipment(e,t,s){return this.resources.fetch({type:"shipments"},`stock_line_items/${e}/shipment`,t,s)}async line_item(e,t,s){return this.resources.fetch({type:"line_items"},`stock_line_items/${e}/line_item`,t,s)}async stock_item(e,t,s){return this.resources.fetch({type:"stock_items"},`stock_line_items/${e}/stock_item`,t,s)}isStockLineItem(e){return e.type&&e.type===StockLineItems.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StockLineItems.TYPE}:{id:e.id,type:StockLineItems.TYPE}}type(){return StockLineItems.TYPE}}StockLineItems.TYPE="stock_line_items",exports.default=StockLineItems;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockLocations extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StockLocations.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StockLocations.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:StockLocations.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StockLocations.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:StockLocations.TYPE,id:e},t)}async address(e,t,s){return this.resources.fetch({type:"addresses"},`stock_locations/${e}/address`,t,s)}async inventory_stock_locations(e,t,s){return this.resources.fetch({type:"inventory_stock_locations"},`stock_locations/${e}/inventory_stock_locations`,t,s)}async inventory_return_locations(e,t,s){return this.resources.fetch({type:"inventory_return_locations"},`stock_locations/${e}/inventory_return_locations`,t,s)}async stock_items(e,t,s){return this.resources.fetch({type:"stock_items"},`stock_locations/${e}/stock_items`,t,s)}async stock_transfers(e,t,s){return this.resources.fetch({type:"stock_transfers"},`stock_locations/${e}/stock_transfers`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`stock_locations/${e}/attachments`,t,s)}isStockLocation(e){return e.type&&e.type===StockLocations.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StockLocations.TYPE}:{id:e.id,type:StockLocations.TYPE}}type(){return StockLocations.TYPE}}StockLocations.TYPE="stock_locations",exports.default=StockLocations;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockTransfers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StockTransfers.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StockTransfers.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:StockTransfers.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StockTransfers.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:StockTransfers.TYPE,id:e},t)}async sku(e,t,s){return this.resources.fetch({type:"skus"},`stock_transfers/${e}/sku`,t,s)}async origin_stock_location(e,t,s){return this.resources.fetch({type:"stock_locations"},`stock_transfers/${e}/origin_stock_location`,t,s)}async destination_stock_location(e,t,s){return this.resources.fetch({type:"stock_locations"},`stock_transfers/${e}/destination_stock_location`,t,s)}async shipment(e,t,s){return this.resources.fetch({type:"shipments"},`stock_transfers/${e}/shipment`,t,s)}async line_item(e,t,s){return this.resources.fetch({type:"line_items"},`stock_transfers/${e}/line_item`,t,s)}isStockTransfer(e){return e.type&&e.type===StockTransfers.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StockTransfers.TYPE}:{id:e.id,type:StockTransfers.TYPE}}type(){return StockTransfers.TYPE}}StockTransfers.TYPE="stock_transfers",exports.default=StockTransfers;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StripeGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StripeGateways.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StripeGateways.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:StripeGateways.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StripeGateways.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:StripeGateways.TYPE,id:e},t)}async payment_methods(e,t,s){return this.resources.fetch({type:"payment_methods"},`stripe_gateways/${e}/payment_methods`,t,s)}async stripe_payments(e,t,s){return this.resources.fetch({type:"stripe_payments"},`stripe_gateways/${e}/stripe_payments`,t,s)}isStripeGateway(e){return e.type&&e.type===StripeGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StripeGateways.TYPE}:{id:e.id,type:StripeGateways.TYPE}}type(){return StripeGateways.TYPE}}StripeGateways.TYPE="stripe_gateways",exports.default=StripeGateways;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StripePayments extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StripePayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:StripePayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:StripePayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:StripePayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:StripePayments.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`stripe_payments/${e}/order`,t,r)}async payment_gateway(e,t,r){return this.resources.fetch({type:"payment_gateways"},`stripe_payments/${e}/payment_gateway`,t,r)}isStripePayment(e){return e.type&&e.type===StripePayments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StripePayments.TYPE}:{id:e.id,type:StripePayments.TYPE}}type(){return StripePayments.TYPE}}StripePayments.TYPE="stripe_payments",exports.default=StripePayments;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxCalculators extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxCalculators.TYPE},e,t)}async retrieve(e,t,r){return this.resources.retrieve({type:TaxCalculators.TYPE,id:e},t,r)}async tax_categories(e,t,r){return this.resources.fetch({type:"tax_categories"},`tax_calculators/${e}/tax_categories`,t,r)}async markets(e,t,r){return this.resources.fetch({type:"markets"},`tax_calculators/${e}/markets`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`tax_calculators/${e}/attachments`,t,r)}isTaxCalculator(e){return e.type&&e.type===TaxCalculators.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:TaxCalculators.TYPE}:{id:e.id,type:TaxCalculators.TYPE}}type(){return TaxCalculators.TYPE}}TaxCalculators.TYPE="tax_calculators",exports.default=TaxCalculators;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxCategories extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxCategories.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:TaxCategories.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:TaxCategories.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:TaxCategories.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:TaxCategories.TYPE,id:e},t)}async sku(e,t,s){return this.resources.fetch({type:"skus"},`tax_categories/${e}/sku`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`tax_categories/${e}/attachments`,t,s)}isTaxCategory(e){return e.type&&e.type===TaxCategories.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:TaxCategories.TYPE}:{id:e.id,type:TaxCategories.TYPE}}type(){return TaxCategories.TYPE}}TaxCategories.TYPE="tax_categories",exports.default=TaxCategories;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxRules extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxRules.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:TaxRules.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:TaxRules.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:TaxRules.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:TaxRules.TYPE,id:e},t)}async manual_tax_calculator(e,t,r){return this.resources.fetch({type:"manual_tax_calculators"},`tax_rules/${e}/manual_tax_calculator`,t,r)}isTaxRule(e){return e.type&&e.type===TaxRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:TaxRules.TYPE}:{id:e.id,type:TaxRules.TYPE}}type(){return TaxRules.TYPE}}TaxRules.TYPE="tax_rules",exports.default=TaxRules;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxjarAccounts extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxjarAccounts.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:TaxjarAccounts.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:TaxjarAccounts.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:TaxjarAccounts.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:TaxjarAccounts.TYPE,id:e},t)}async tax_categories(e,t,s){return this.resources.fetch({type:"tax_categories"},`taxjar_accounts/${e}/tax_categories`,t,s)}async markets(e,t,s){return this.resources.fetch({type:"markets"},`taxjar_accounts/${e}/markets`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`taxjar_accounts/${e}/attachments`,t,s)}isTaxjarAccount(e){return e.type&&e.type===TaxjarAccounts.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:TaxjarAccounts.TYPE}:{id:e.id,type:TaxjarAccounts.TYPE}}type(){return TaxjarAccounts.TYPE}}TaxjarAccounts.TYPE="taxjar_accounts",exports.default=TaxjarAccounts;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Transactions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Transactions.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Transactions.TYPE,id:e},r,t)}async order(e,r,t){return this.resources.fetch({type:"orders"},`transactions/${e}/order`,r,t)}isTransaction(e){return e.type&&e.type===Transactions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Transactions.TYPE}:{id:e.id,type:Transactions.TYPE}}type(){return Transactions.TYPE}}Transactions.TYPE="transactions",exports.default=Transactions;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Voids extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Voids.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Voids.TYPE,id:e},r,t)}async order(e,r,t){return this.resources.fetch({type:"orders"},`voids/${e}/order`,r,t)}async reference_authorization(e,r,t){return this.resources.fetch({type:"authorizations"},`voids/${e}/reference_authorization`,r,t)}isVoid(e){return e.type&&e.type===Voids.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Voids.TYPE}:{id:e.id,type:Voids.TYPE}}type(){return Voids.TYPE}}Voids.TYPE="voids",exports.default=Voids;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Webhooks extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Webhooks.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Webhooks.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Webhooks.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Webhooks.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Webhooks.TYPE,id:e},t)}async last_event_callbacks(e,t,r){return this.resources.fetch({type:"event_callbacks"},`webhooks/${e}/last_event_callbacks`,t,r)}isWebhook(e){return e.type&&e.type===Webhooks.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Webhooks.TYPE}:{id:e.id,type:Webhooks.TYPE}}type(){return Webhooks.TYPE}}Webhooks.TYPE="webhooks",exports.default=Webhooks;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class WireTransfers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:WireTransfers.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:WireTransfers.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:WireTransfers.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:WireTransfers.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:WireTransfers.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`wire_transfers/${e}/order`,t,r)}isWireTransfer(e){return e.type&&e.type===WireTransfers.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:WireTransfers.TYPE}:{id:e.id,type:WireTransfers.TYPE}}type(){return WireTransfers.TYPE}}WireTransfers.TYPE="wire_transfers",exports.default=WireTransfers;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,i){i===void 0&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,i){i===void 0&&(i=t),e[i]=r[t]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&__createBinding(r,e,t);return __setModuleDefault(r,e),r};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CommerceLayerStatic=void 0;const api=__importStar(require("./api")),error_1=require("./error");exports.CommerceLayerStatic={resources:()=>api.resourceList,isSdkError:e=>error_1.SdkError.isSdkError(e),isApiError:e=>error_1.ApiError.isApiError(e)};
File without changes
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.sleep=void 0;const sleep=async e=>new Promise(s=>setTimeout(s,e));exports.sleep=sleep;