@commercelayer/sdk 5.0.0-beta.1 → 5.0.0-beta.10

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 (469) hide show
  1. package/lib/cjs/api.d.ts +15 -0
  2. package/lib/cjs/api.js +0 -13
  3. package/lib/cjs/client.js +11 -8
  4. package/lib/cjs/commercelayer.d.ts +4 -4
  5. package/lib/cjs/commercelayer.js +1 -1
  6. package/lib/cjs/common.js +0 -2
  7. package/lib/cjs/config.d.ts +1 -0
  8. package/lib/cjs/config.js +1 -0
  9. package/lib/cjs/debug.js +0 -4
  10. package/lib/cjs/error.js +1 -4
  11. package/lib/cjs/index.d.ts +1 -0
  12. package/lib/cjs/jsonapi.js +5 -1
  13. package/lib/cjs/query.d.ts +3 -2
  14. package/lib/cjs/query.js +3 -2
  15. package/lib/cjs/resource.d.ts +12 -15
  16. package/lib/cjs/resource.js +11 -8
  17. package/lib/cjs/resources/addresses.d.ts +56 -57
  18. package/lib/cjs/resources/addresses.js +2 -6
  19. package/lib/cjs/resources/adjustments.d.ts +10 -11
  20. package/lib/cjs/resources/adjustments.js +2 -6
  21. package/lib/cjs/resources/adyen_gateways.d.ts +21 -22
  22. package/lib/cjs/resources/adyen_gateways.js +2 -6
  23. package/lib/cjs/resources/adyen_payments.d.ts +16 -17
  24. package/lib/cjs/resources/adyen_payments.js +2 -6
  25. package/lib/cjs/resources/application.d.ts +5 -5
  26. package/lib/cjs/resources/application.js +0 -1
  27. package/lib/cjs/resources/attachments.d.ts +12 -13
  28. package/lib/cjs/resources/attachments.js +2 -6
  29. package/lib/cjs/resources/authorizations.d.ts +32 -33
  30. package/lib/cjs/resources/authorizations.js +1 -5
  31. package/lib/cjs/resources/avalara_accounts.d.ts +18 -19
  32. package/lib/cjs/resources/avalara_accounts.js +2 -6
  33. package/lib/cjs/resources/axerve_gateways.d.ts +9 -10
  34. package/lib/cjs/resources/axerve_gateways.js +2 -6
  35. package/lib/cjs/resources/axerve_payments.d.ts +15 -16
  36. package/lib/cjs/resources/axerve_payments.js +2 -6
  37. package/lib/cjs/resources/billing_info_validation_rules.d.ts +3 -4
  38. package/lib/cjs/resources/billing_info_validation_rules.js +2 -6
  39. package/lib/cjs/resources/bing_geocoders.d.ts +5 -6
  40. package/lib/cjs/resources/bing_geocoders.js +2 -6
  41. package/lib/cjs/resources/braintree_gateways.d.ts +20 -21
  42. package/lib/cjs/resources/braintree_gateways.js +2 -6
  43. package/lib/cjs/resources/braintree_payments.d.ts +18 -19
  44. package/lib/cjs/resources/braintree_payments.js +2 -6
  45. package/lib/cjs/resources/bundles.d.ts +33 -34
  46. package/lib/cjs/resources/bundles.js +2 -6
  47. package/lib/cjs/resources/captures.d.ts +23 -24
  48. package/lib/cjs/resources/captures.js +1 -5
  49. package/lib/cjs/resources/carrier_accounts.d.ts +5 -6
  50. package/lib/cjs/resources/carrier_accounts.js +0 -4
  51. package/lib/cjs/resources/checkout_com_gateways.d.ts +11 -12
  52. package/lib/cjs/resources/checkout_com_gateways.js +2 -6
  53. package/lib/cjs/resources/checkout_com_payments.d.ts +27 -28
  54. package/lib/cjs/resources/checkout_com_payments.js +2 -6
  55. package/lib/cjs/resources/cleanups.d.ts +12 -13
  56. package/lib/cjs/resources/cleanups.js +1 -5
  57. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +5 -6
  58. package/lib/cjs/resources/coupon_codes_promotion_rules.js +2 -6
  59. package/lib/cjs/resources/coupon_recipients.d.ts +12 -13
  60. package/lib/cjs/resources/coupon_recipients.js +2 -6
  61. package/lib/cjs/resources/coupons.d.ts +15 -16
  62. package/lib/cjs/resources/coupons.js +2 -6
  63. package/lib/cjs/resources/customer_addresses.d.ts +6 -7
  64. package/lib/cjs/resources/customer_addresses.js +2 -6
  65. package/lib/cjs/resources/customer_groups.d.ts +5 -6
  66. package/lib/cjs/resources/customer_groups.js +2 -6
  67. package/lib/cjs/resources/customer_password_resets.d.ts +7 -8
  68. package/lib/cjs/resources/customer_password_resets.js +2 -6
  69. package/lib/cjs/resources/customer_payment_sources.d.ts +9 -10
  70. package/lib/cjs/resources/customer_payment_sources.js +2 -6
  71. package/lib/cjs/resources/customer_subscriptions.d.ts +3 -4
  72. package/lib/cjs/resources/customer_subscriptions.js +2 -6
  73. package/lib/cjs/resources/customers.d.ts +18 -19
  74. package/lib/cjs/resources/customers.js +2 -6
  75. package/lib/cjs/resources/delivery_lead_times.d.ts +11 -12
  76. package/lib/cjs/resources/delivery_lead_times.js +2 -6
  77. package/lib/cjs/resources/event_callbacks.d.ts +7 -8
  78. package/lib/cjs/resources/event_callbacks.js +0 -4
  79. package/lib/cjs/resources/events.d.ts +3 -4
  80. package/lib/cjs/resources/events.js +0 -4
  81. package/lib/cjs/resources/exports.d.ts +16 -17
  82. package/lib/cjs/resources/exports.js +1 -5
  83. package/lib/cjs/resources/external_gateways.d.ts +20 -21
  84. package/lib/cjs/resources/external_gateways.js +2 -6
  85. package/lib/cjs/resources/external_payments.d.ts +11 -12
  86. package/lib/cjs/resources/external_payments.js +2 -6
  87. package/lib/cjs/resources/external_promotions.d.ts +33 -34
  88. package/lib/cjs/resources/external_promotions.js +2 -6
  89. package/lib/cjs/resources/external_tax_calculators.d.ts +7 -8
  90. package/lib/cjs/resources/external_tax_calculators.js +2 -6
  91. package/lib/cjs/resources/fixed_amount_promotions.d.ts +34 -35
  92. package/lib/cjs/resources/fixed_amount_promotions.js +2 -6
  93. package/lib/cjs/resources/fixed_price_promotions.d.ts +37 -38
  94. package/lib/cjs/resources/fixed_price_promotions.js +2 -6
  95. package/lib/cjs/resources/free_gift_promotions.d.ts +36 -37
  96. package/lib/cjs/resources/free_gift_promotions.js +2 -6
  97. package/lib/cjs/resources/free_shipping_promotions.d.ts +29 -30
  98. package/lib/cjs/resources/free_shipping_promotions.js +2 -6
  99. package/lib/cjs/resources/geocoders.d.ts +3 -4
  100. package/lib/cjs/resources/geocoders.js +0 -4
  101. package/lib/cjs/resources/gift_card_recipients.d.ts +12 -13
  102. package/lib/cjs/resources/gift_card_recipients.js +2 -6
  103. package/lib/cjs/resources/gift_cards.d.ts +46 -47
  104. package/lib/cjs/resources/gift_cards.js +2 -6
  105. package/lib/cjs/resources/google_geocoders.d.ts +5 -6
  106. package/lib/cjs/resources/google_geocoders.js +2 -6
  107. package/lib/cjs/resources/imports.d.ts +20 -21
  108. package/lib/cjs/resources/imports.js +1 -5
  109. package/lib/cjs/resources/in_stock_subscriptions.d.ts +18 -19
  110. package/lib/cjs/resources/in_stock_subscriptions.js +2 -6
  111. package/lib/cjs/resources/inventory_models.d.ts +11 -12
  112. package/lib/cjs/resources/inventory_models.js +2 -6
  113. package/lib/cjs/resources/inventory_return_locations.d.ts +8 -9
  114. package/lib/cjs/resources/inventory_return_locations.js +2 -6
  115. package/lib/cjs/resources/inventory_stock_locations.d.ts +11 -12
  116. package/lib/cjs/resources/inventory_stock_locations.js +2 -6
  117. package/lib/cjs/resources/klarna_gateways.d.ts +9 -10
  118. package/lib/cjs/resources/klarna_gateways.js +2 -6
  119. package/lib/cjs/resources/klarna_payments.d.ts +16 -17
  120. package/lib/cjs/resources/klarna_payments.js +2 -6
  121. package/lib/cjs/resources/line_item_options.d.ts +21 -22
  122. package/lib/cjs/resources/line_item_options.js +2 -6
  123. package/lib/cjs/resources/line_items.d.ts +45 -46
  124. package/lib/cjs/resources/line_items.js +2 -6
  125. package/lib/cjs/resources/manual_gateways.d.ts +3 -4
  126. package/lib/cjs/resources/manual_gateways.js +2 -6
  127. package/lib/cjs/resources/manual_tax_calculators.d.ts +7 -8
  128. package/lib/cjs/resources/manual_tax_calculators.js +2 -6
  129. package/lib/cjs/resources/markets.d.ts +33 -34
  130. package/lib/cjs/resources/markets.js +2 -6
  131. package/lib/cjs/resources/merchants.d.ts +5 -6
  132. package/lib/cjs/resources/merchants.js +2 -6
  133. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +9 -10
  134. package/lib/cjs/resources/order_amount_promotion_rules.js +2 -6
  135. package/lib/cjs/resources/order_copies.d.ts +16 -17
  136. package/lib/cjs/resources/order_copies.js +1 -5
  137. package/lib/cjs/resources/order_subscriptions.d.ts +27 -28
  138. package/lib/cjs/resources/order_subscriptions.js +2 -6
  139. package/lib/cjs/resources/order_validation_rules.d.ts +2 -3
  140. package/lib/cjs/resources/order_validation_rules.js +0 -4
  141. package/lib/cjs/resources/orders.d.ts +182 -183
  142. package/lib/cjs/resources/orders.js +2 -6
  143. package/lib/cjs/resources/organization.d.ts +16 -16
  144. package/lib/cjs/resources/organization.js +0 -1
  145. package/lib/cjs/resources/packages.d.ts +17 -18
  146. package/lib/cjs/resources/packages.js +2 -6
  147. package/lib/cjs/resources/parcel_line_items.d.ts +9 -10
  148. package/lib/cjs/resources/parcel_line_items.js +2 -6
  149. package/lib/cjs/resources/parcels.d.ts +75 -76
  150. package/lib/cjs/resources/parcels.js +2 -6
  151. package/lib/cjs/resources/payment_gateways.d.ts +2 -3
  152. package/lib/cjs/resources/payment_gateways.js +0 -4
  153. package/lib/cjs/resources/payment_methods.d.ts +33 -34
  154. package/lib/cjs/resources/payment_methods.js +2 -6
  155. package/lib/cjs/resources/paypal_gateways.d.ts +6 -7
  156. package/lib/cjs/resources/paypal_gateways.js +2 -6
  157. package/lib/cjs/resources/paypal_payments.d.ts +20 -21
  158. package/lib/cjs/resources/paypal_payments.js +2 -6
  159. package/lib/cjs/resources/percentage_discount_promotions.d.ts +36 -37
  160. package/lib/cjs/resources/percentage_discount_promotions.js +2 -6
  161. package/lib/cjs/resources/price_lists.d.ts +9 -10
  162. package/lib/cjs/resources/price_lists.js +2 -6
  163. package/lib/cjs/resources/price_tiers.d.ts +7 -8
  164. package/lib/cjs/resources/price_tiers.js +0 -4
  165. package/lib/cjs/resources/price_volume_tiers.d.ts +12 -13
  166. package/lib/cjs/resources/price_volume_tiers.js +2 -6
  167. package/lib/cjs/resources/prices.d.ts +21 -22
  168. package/lib/cjs/resources/prices.js +2 -6
  169. package/lib/cjs/resources/promotion_rules.d.ts +2 -4
  170. package/lib/cjs/resources/promotion_rules.js +0 -4
  171. package/lib/cjs/resources/promotions.d.ts +13 -14
  172. package/lib/cjs/resources/promotions.js +0 -4
  173. package/lib/cjs/resources/refunds.d.ts +14 -15
  174. package/lib/cjs/resources/refunds.js +0 -4
  175. package/lib/cjs/resources/return_line_items.d.ts +14 -15
  176. package/lib/cjs/resources/return_line_items.js +2 -6
  177. package/lib/cjs/resources/returns.d.ts +29 -30
  178. package/lib/cjs/resources/returns.js +2 -6
  179. package/lib/cjs/resources/satispay_gateways.d.ts +7 -8
  180. package/lib/cjs/resources/satispay_gateways.js +2 -6
  181. package/lib/cjs/resources/satispay_payments.d.ts +13 -14
  182. package/lib/cjs/resources/satispay_payments.js +2 -6
  183. package/lib/cjs/resources/shipments.d.ts +40 -41
  184. package/lib/cjs/resources/shipments.js +1 -5
  185. package/lib/cjs/resources/shipping_categories.d.ts +4 -5
  186. package/lib/cjs/resources/shipping_categories.js +2 -6
  187. package/lib/cjs/resources/shipping_method_tiers.d.ts +7 -8
  188. package/lib/cjs/resources/shipping_method_tiers.js +0 -4
  189. package/lib/cjs/resources/shipping_methods.d.ts +50 -51
  190. package/lib/cjs/resources/shipping_methods.js +2 -6
  191. package/lib/cjs/resources/shipping_weight_tiers.d.ts +12 -13
  192. package/lib/cjs/resources/shipping_weight_tiers.js +2 -6
  193. package/lib/cjs/resources/shipping_zones.d.ts +21 -22
  194. package/lib/cjs/resources/shipping_zones.js +2 -6
  195. package/lib/cjs/resources/sku_list_items.d.ts +13 -14
  196. package/lib/cjs/resources/sku_list_items.js +2 -6
  197. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +12 -13
  198. package/lib/cjs/resources/sku_list_promotion_rules.js +2 -6
  199. package/lib/cjs/resources/sku_lists.d.ts +22 -23
  200. package/lib/cjs/resources/sku_lists.js +2 -6
  201. package/lib/cjs/resources/sku_options.d.ts +24 -25
  202. package/lib/cjs/resources/sku_options.js +2 -6
  203. package/lib/cjs/resources/skus.d.ts +36 -37
  204. package/lib/cjs/resources/skus.js +2 -6
  205. package/lib/cjs/resources/stock_items.d.ts +11 -12
  206. package/lib/cjs/resources/stock_items.js +2 -6
  207. package/lib/cjs/resources/stock_line_items.d.ts +8 -9
  208. package/lib/cjs/resources/stock_line_items.js +0 -4
  209. package/lib/cjs/resources/stock_locations.d.ts +16 -17
  210. package/lib/cjs/resources/stock_locations.js +2 -6
  211. package/lib/cjs/resources/stock_transfers.d.ts +23 -24
  212. package/lib/cjs/resources/stock_transfers.js +2 -6
  213. package/lib/cjs/resources/stripe_gateways.d.ts +11 -12
  214. package/lib/cjs/resources/stripe_gateways.js +2 -6
  215. package/lib/cjs/resources/stripe_payments.d.ts +17 -18
  216. package/lib/cjs/resources/stripe_payments.js +2 -6
  217. package/lib/cjs/resources/tax_calculators.d.ts +3 -4
  218. package/lib/cjs/resources/tax_calculators.js +0 -4
  219. package/lib/cjs/resources/tax_categories.d.ts +9 -10
  220. package/lib/cjs/resources/tax_categories.js +2 -6
  221. package/lib/cjs/resources/tax_rules.d.ts +40 -41
  222. package/lib/cjs/resources/tax_rules.js +2 -6
  223. package/lib/cjs/resources/taxjar_accounts.d.ts +8 -9
  224. package/lib/cjs/resources/taxjar_accounts.js +2 -6
  225. package/lib/cjs/resources/transactions.d.ts +14 -15
  226. package/lib/cjs/resources/transactions.js +0 -4
  227. package/lib/cjs/resources/voids.d.ts +14 -15
  228. package/lib/cjs/resources/voids.js +0 -4
  229. package/lib/cjs/resources/webhooks.d.ts +15 -16
  230. package/lib/cjs/resources/webhooks.js +2 -6
  231. package/lib/cjs/resources/wire_transfers.d.ts +5 -6
  232. package/lib/cjs/resources/wire_transfers.js +2 -6
  233. package/lib/cjs/static.d.ts +1 -1
  234. package/lib/esm/api.d.ts +15 -0
  235. package/lib/esm/api.js +0 -13
  236. package/lib/esm/client.js +11 -8
  237. package/lib/esm/commercelayer.d.ts +4 -4
  238. package/lib/esm/commercelayer.js +1 -1
  239. package/lib/esm/common.js +0 -2
  240. package/lib/esm/config.d.ts +1 -0
  241. package/lib/esm/config.js +1 -0
  242. package/lib/esm/debug.js +0 -4
  243. package/lib/esm/error.js +1 -4
  244. package/lib/esm/index.d.ts +1 -0
  245. package/lib/esm/jsonapi.js +5 -1
  246. package/lib/esm/query.d.ts +3 -2
  247. package/lib/esm/query.js +2 -2
  248. package/lib/esm/resource.d.ts +12 -15
  249. package/lib/esm/resource.js +12 -9
  250. package/lib/esm/resources/addresses.d.ts +56 -57
  251. package/lib/esm/resources/addresses.js +2 -6
  252. package/lib/esm/resources/adjustments.d.ts +10 -11
  253. package/lib/esm/resources/adjustments.js +2 -6
  254. package/lib/esm/resources/adyen_gateways.d.ts +21 -22
  255. package/lib/esm/resources/adyen_gateways.js +2 -6
  256. package/lib/esm/resources/adyen_payments.d.ts +16 -17
  257. package/lib/esm/resources/adyen_payments.js +2 -6
  258. package/lib/esm/resources/application.d.ts +5 -5
  259. package/lib/esm/resources/application.js +0 -1
  260. package/lib/esm/resources/attachments.d.ts +12 -13
  261. package/lib/esm/resources/attachments.js +2 -6
  262. package/lib/esm/resources/authorizations.d.ts +32 -33
  263. package/lib/esm/resources/authorizations.js +1 -5
  264. package/lib/esm/resources/avalara_accounts.d.ts +18 -19
  265. package/lib/esm/resources/avalara_accounts.js +2 -6
  266. package/lib/esm/resources/axerve_gateways.d.ts +9 -10
  267. package/lib/esm/resources/axerve_gateways.js +2 -6
  268. package/lib/esm/resources/axerve_payments.d.ts +15 -16
  269. package/lib/esm/resources/axerve_payments.js +2 -6
  270. package/lib/esm/resources/billing_info_validation_rules.d.ts +3 -4
  271. package/lib/esm/resources/billing_info_validation_rules.js +2 -6
  272. package/lib/esm/resources/bing_geocoders.d.ts +5 -6
  273. package/lib/esm/resources/bing_geocoders.js +2 -6
  274. package/lib/esm/resources/braintree_gateways.d.ts +20 -21
  275. package/lib/esm/resources/braintree_gateways.js +2 -6
  276. package/lib/esm/resources/braintree_payments.d.ts +18 -19
  277. package/lib/esm/resources/braintree_payments.js +2 -6
  278. package/lib/esm/resources/bundles.d.ts +33 -34
  279. package/lib/esm/resources/bundles.js +2 -6
  280. package/lib/esm/resources/captures.d.ts +23 -24
  281. package/lib/esm/resources/captures.js +1 -5
  282. package/lib/esm/resources/carrier_accounts.d.ts +5 -6
  283. package/lib/esm/resources/carrier_accounts.js +0 -4
  284. package/lib/esm/resources/checkout_com_gateways.d.ts +11 -12
  285. package/lib/esm/resources/checkout_com_gateways.js +2 -6
  286. package/lib/esm/resources/checkout_com_payments.d.ts +27 -28
  287. package/lib/esm/resources/checkout_com_payments.js +2 -6
  288. package/lib/esm/resources/cleanups.d.ts +12 -13
  289. package/lib/esm/resources/cleanups.js +1 -5
  290. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +5 -6
  291. package/lib/esm/resources/coupon_codes_promotion_rules.js +2 -6
  292. package/lib/esm/resources/coupon_recipients.d.ts +12 -13
  293. package/lib/esm/resources/coupon_recipients.js +2 -6
  294. package/lib/esm/resources/coupons.d.ts +15 -16
  295. package/lib/esm/resources/coupons.js +2 -6
  296. package/lib/esm/resources/customer_addresses.d.ts +6 -7
  297. package/lib/esm/resources/customer_addresses.js +2 -6
  298. package/lib/esm/resources/customer_groups.d.ts +5 -6
  299. package/lib/esm/resources/customer_groups.js +2 -6
  300. package/lib/esm/resources/customer_password_resets.d.ts +7 -8
  301. package/lib/esm/resources/customer_password_resets.js +2 -6
  302. package/lib/esm/resources/customer_payment_sources.d.ts +9 -10
  303. package/lib/esm/resources/customer_payment_sources.js +2 -6
  304. package/lib/esm/resources/customer_subscriptions.d.ts +3 -4
  305. package/lib/esm/resources/customer_subscriptions.js +2 -6
  306. package/lib/esm/resources/customers.d.ts +18 -19
  307. package/lib/esm/resources/customers.js +2 -6
  308. package/lib/esm/resources/delivery_lead_times.d.ts +11 -12
  309. package/lib/esm/resources/delivery_lead_times.js +2 -6
  310. package/lib/esm/resources/event_callbacks.d.ts +7 -8
  311. package/lib/esm/resources/event_callbacks.js +0 -4
  312. package/lib/esm/resources/events.d.ts +3 -4
  313. package/lib/esm/resources/events.js +0 -4
  314. package/lib/esm/resources/exports.d.ts +16 -17
  315. package/lib/esm/resources/exports.js +1 -5
  316. package/lib/esm/resources/external_gateways.d.ts +20 -21
  317. package/lib/esm/resources/external_gateways.js +2 -6
  318. package/lib/esm/resources/external_payments.d.ts +11 -12
  319. package/lib/esm/resources/external_payments.js +2 -6
  320. package/lib/esm/resources/external_promotions.d.ts +33 -34
  321. package/lib/esm/resources/external_promotions.js +2 -6
  322. package/lib/esm/resources/external_tax_calculators.d.ts +7 -8
  323. package/lib/esm/resources/external_tax_calculators.js +2 -6
  324. package/lib/esm/resources/fixed_amount_promotions.d.ts +34 -35
  325. package/lib/esm/resources/fixed_amount_promotions.js +2 -6
  326. package/lib/esm/resources/fixed_price_promotions.d.ts +37 -38
  327. package/lib/esm/resources/fixed_price_promotions.js +2 -6
  328. package/lib/esm/resources/free_gift_promotions.d.ts +36 -37
  329. package/lib/esm/resources/free_gift_promotions.js +2 -6
  330. package/lib/esm/resources/free_shipping_promotions.d.ts +29 -30
  331. package/lib/esm/resources/free_shipping_promotions.js +2 -6
  332. package/lib/esm/resources/geocoders.d.ts +3 -4
  333. package/lib/esm/resources/geocoders.js +0 -4
  334. package/lib/esm/resources/gift_card_recipients.d.ts +12 -13
  335. package/lib/esm/resources/gift_card_recipients.js +2 -6
  336. package/lib/esm/resources/gift_cards.d.ts +46 -47
  337. package/lib/esm/resources/gift_cards.js +2 -6
  338. package/lib/esm/resources/google_geocoders.d.ts +5 -6
  339. package/lib/esm/resources/google_geocoders.js +2 -6
  340. package/lib/esm/resources/imports.d.ts +20 -21
  341. package/lib/esm/resources/imports.js +1 -5
  342. package/lib/esm/resources/in_stock_subscriptions.d.ts +18 -19
  343. package/lib/esm/resources/in_stock_subscriptions.js +2 -6
  344. package/lib/esm/resources/inventory_models.d.ts +11 -12
  345. package/lib/esm/resources/inventory_models.js +2 -6
  346. package/lib/esm/resources/inventory_return_locations.d.ts +8 -9
  347. package/lib/esm/resources/inventory_return_locations.js +2 -6
  348. package/lib/esm/resources/inventory_stock_locations.d.ts +11 -12
  349. package/lib/esm/resources/inventory_stock_locations.js +2 -6
  350. package/lib/esm/resources/klarna_gateways.d.ts +9 -10
  351. package/lib/esm/resources/klarna_gateways.js +2 -6
  352. package/lib/esm/resources/klarna_payments.d.ts +16 -17
  353. package/lib/esm/resources/klarna_payments.js +2 -6
  354. package/lib/esm/resources/line_item_options.d.ts +21 -22
  355. package/lib/esm/resources/line_item_options.js +2 -6
  356. package/lib/esm/resources/line_items.d.ts +45 -46
  357. package/lib/esm/resources/line_items.js +2 -6
  358. package/lib/esm/resources/manual_gateways.d.ts +3 -4
  359. package/lib/esm/resources/manual_gateways.js +2 -6
  360. package/lib/esm/resources/manual_tax_calculators.d.ts +7 -8
  361. package/lib/esm/resources/manual_tax_calculators.js +2 -6
  362. package/lib/esm/resources/markets.d.ts +33 -34
  363. package/lib/esm/resources/markets.js +2 -6
  364. package/lib/esm/resources/merchants.d.ts +5 -6
  365. package/lib/esm/resources/merchants.js +2 -6
  366. package/lib/esm/resources/order_amount_promotion_rules.d.ts +9 -10
  367. package/lib/esm/resources/order_amount_promotion_rules.js +2 -6
  368. package/lib/esm/resources/order_copies.d.ts +16 -17
  369. package/lib/esm/resources/order_copies.js +1 -5
  370. package/lib/esm/resources/order_subscriptions.d.ts +27 -28
  371. package/lib/esm/resources/order_subscriptions.js +2 -6
  372. package/lib/esm/resources/order_validation_rules.d.ts +2 -3
  373. package/lib/esm/resources/order_validation_rules.js +0 -4
  374. package/lib/esm/resources/orders.d.ts +182 -183
  375. package/lib/esm/resources/orders.js +2 -6
  376. package/lib/esm/resources/organization.d.ts +16 -16
  377. package/lib/esm/resources/organization.js +0 -1
  378. package/lib/esm/resources/packages.d.ts +17 -18
  379. package/lib/esm/resources/packages.js +2 -6
  380. package/lib/esm/resources/parcel_line_items.d.ts +9 -10
  381. package/lib/esm/resources/parcel_line_items.js +2 -6
  382. package/lib/esm/resources/parcels.d.ts +75 -76
  383. package/lib/esm/resources/parcels.js +2 -6
  384. package/lib/esm/resources/payment_gateways.d.ts +2 -3
  385. package/lib/esm/resources/payment_gateways.js +0 -4
  386. package/lib/esm/resources/payment_methods.d.ts +33 -34
  387. package/lib/esm/resources/payment_methods.js +2 -6
  388. package/lib/esm/resources/paypal_gateways.d.ts +6 -7
  389. package/lib/esm/resources/paypal_gateways.js +2 -6
  390. package/lib/esm/resources/paypal_payments.d.ts +20 -21
  391. package/lib/esm/resources/paypal_payments.js +2 -6
  392. package/lib/esm/resources/percentage_discount_promotions.d.ts +36 -37
  393. package/lib/esm/resources/percentage_discount_promotions.js +2 -6
  394. package/lib/esm/resources/price_lists.d.ts +9 -10
  395. package/lib/esm/resources/price_lists.js +2 -6
  396. package/lib/esm/resources/price_tiers.d.ts +7 -8
  397. package/lib/esm/resources/price_tiers.js +0 -4
  398. package/lib/esm/resources/price_volume_tiers.d.ts +12 -13
  399. package/lib/esm/resources/price_volume_tiers.js +2 -6
  400. package/lib/esm/resources/prices.d.ts +21 -22
  401. package/lib/esm/resources/prices.js +2 -6
  402. package/lib/esm/resources/promotion_rules.d.ts +2 -4
  403. package/lib/esm/resources/promotion_rules.js +0 -4
  404. package/lib/esm/resources/promotions.d.ts +13 -14
  405. package/lib/esm/resources/promotions.js +0 -4
  406. package/lib/esm/resources/refunds.d.ts +14 -15
  407. package/lib/esm/resources/refunds.js +0 -4
  408. package/lib/esm/resources/return_line_items.d.ts +14 -15
  409. package/lib/esm/resources/return_line_items.js +2 -6
  410. package/lib/esm/resources/returns.d.ts +29 -30
  411. package/lib/esm/resources/returns.js +2 -6
  412. package/lib/esm/resources/satispay_gateways.d.ts +7 -8
  413. package/lib/esm/resources/satispay_gateways.js +2 -6
  414. package/lib/esm/resources/satispay_payments.d.ts +13 -14
  415. package/lib/esm/resources/satispay_payments.js +2 -6
  416. package/lib/esm/resources/shipments.d.ts +40 -41
  417. package/lib/esm/resources/shipments.js +1 -5
  418. package/lib/esm/resources/shipping_categories.d.ts +4 -5
  419. package/lib/esm/resources/shipping_categories.js +2 -6
  420. package/lib/esm/resources/shipping_method_tiers.d.ts +7 -8
  421. package/lib/esm/resources/shipping_method_tiers.js +0 -4
  422. package/lib/esm/resources/shipping_methods.d.ts +50 -51
  423. package/lib/esm/resources/shipping_methods.js +2 -6
  424. package/lib/esm/resources/shipping_weight_tiers.d.ts +12 -13
  425. package/lib/esm/resources/shipping_weight_tiers.js +2 -6
  426. package/lib/esm/resources/shipping_zones.d.ts +21 -22
  427. package/lib/esm/resources/shipping_zones.js +2 -6
  428. package/lib/esm/resources/sku_list_items.d.ts +13 -14
  429. package/lib/esm/resources/sku_list_items.js +2 -6
  430. package/lib/esm/resources/sku_list_promotion_rules.d.ts +12 -13
  431. package/lib/esm/resources/sku_list_promotion_rules.js +2 -6
  432. package/lib/esm/resources/sku_lists.d.ts +22 -23
  433. package/lib/esm/resources/sku_lists.js +2 -6
  434. package/lib/esm/resources/sku_options.d.ts +24 -25
  435. package/lib/esm/resources/sku_options.js +2 -6
  436. package/lib/esm/resources/skus.d.ts +36 -37
  437. package/lib/esm/resources/skus.js +2 -6
  438. package/lib/esm/resources/stock_items.d.ts +11 -12
  439. package/lib/esm/resources/stock_items.js +2 -6
  440. package/lib/esm/resources/stock_line_items.d.ts +8 -9
  441. package/lib/esm/resources/stock_line_items.js +0 -4
  442. package/lib/esm/resources/stock_locations.d.ts +16 -17
  443. package/lib/esm/resources/stock_locations.js +2 -6
  444. package/lib/esm/resources/stock_transfers.d.ts +23 -24
  445. package/lib/esm/resources/stock_transfers.js +2 -6
  446. package/lib/esm/resources/stripe_gateways.d.ts +11 -12
  447. package/lib/esm/resources/stripe_gateways.js +2 -6
  448. package/lib/esm/resources/stripe_payments.d.ts +17 -18
  449. package/lib/esm/resources/stripe_payments.js +2 -6
  450. package/lib/esm/resources/tax_calculators.d.ts +3 -4
  451. package/lib/esm/resources/tax_calculators.js +0 -4
  452. package/lib/esm/resources/tax_categories.d.ts +9 -10
  453. package/lib/esm/resources/tax_categories.js +2 -6
  454. package/lib/esm/resources/tax_rules.d.ts +40 -41
  455. package/lib/esm/resources/tax_rules.js +2 -6
  456. package/lib/esm/resources/taxjar_accounts.d.ts +8 -9
  457. package/lib/esm/resources/taxjar_accounts.js +2 -6
  458. package/lib/esm/resources/transactions.d.ts +14 -15
  459. package/lib/esm/resources/transactions.js +0 -4
  460. package/lib/esm/resources/voids.d.ts +14 -15
  461. package/lib/esm/resources/voids.js +0 -4
  462. package/lib/esm/resources/webhooks.d.ts +15 -16
  463. package/lib/esm/resources/webhooks.js +2 -6
  464. package/lib/esm/resources/wire_transfers.d.ts +5 -6
  465. package/lib/esm/resources/wire_transfers.js +2 -6
  466. package/lib/esm/static.d.ts +1 -1
  467. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  468. package/lib/tsconfig.tsbuildinfo +1 -1
  469. package/package.json +6 -6
@@ -2,15 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class Merchants extends resource_1.ApiResource {
5
- // static readonly PATH = 'merchants'
6
- async list(params, options) {
7
- return this.resources.list({ type: Merchants.TYPE }, params, options);
8
- }
9
5
  async create(resource, params, options) {
10
- return this.resources.create(Object.assign(Object.assign({}, resource), { type: Merchants.TYPE }), params, options);
6
+ return this.resources.create({ ...resource, type: Merchants.TYPE }, params, options);
11
7
  }
12
8
  async update(resource, params, options) {
13
- return this.resources.update(Object.assign(Object.assign({}, resource), { type: Merchants.TYPE }), params, options);
9
+ return this.resources.update({ ...resource, type: Merchants.TYPE }, params, options);
14
10
  }
15
11
  async delete(id, options) {
16
12
  await this.resources.delete((typeof id === 'string') ? { id, type: Merchants.TYPE } : id, options);
@@ -1,5 +1,5 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsRetrieve, QueryParamsList } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
2
+ import type { QueryParamsRetrieve } from '../query';
3
3
  import type { PercentageDiscountPromotion, PercentageDiscountPromotionType } from './percentage_discount_promotions';
4
4
  import type { FreeShippingPromotion, FreeShippingPromotionType } from './free_shipping_promotions';
5
5
  import type { FreeGiftPromotion, FreeGiftPromotionType } from './free_gift_promotions';
@@ -30,22 +30,21 @@ type FixedAmountPromotionRel = ResourceRel & {
30
30
  };
31
31
  interface OrderAmountPromotionRule extends Resource {
32
32
  readonly type: OrderAmountPromotionRuleType;
33
- order_amount_cents?: number;
34
- order_amount_float?: number;
35
- formatted_order_amount?: string;
36
- promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion;
33
+ order_amount_cents?: number | null;
34
+ order_amount_float?: number | null;
35
+ formatted_order_amount?: string | null;
36
+ promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | null;
37
37
  }
38
38
  interface OrderAmountPromotionRuleCreate extends ResourceCreate {
39
- order_amount_cents?: number;
39
+ order_amount_cents?: number | null;
40
40
  promotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel;
41
41
  }
42
42
  interface OrderAmountPromotionRuleUpdate extends ResourceUpdate {
43
- order_amount_cents?: number;
44
- promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel;
43
+ order_amount_cents?: number | null;
44
+ promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | null;
45
45
  }
46
46
  declare class OrderAmountPromotionRules extends ApiResource<OrderAmountPromotionRule> {
47
47
  static readonly TYPE: OrderAmountPromotionRuleType;
48
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderAmountPromotionRule>>;
49
48
  create(resource: OrderAmountPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
50
49
  update(resource: OrderAmountPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
51
50
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,15 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class OrderAmountPromotionRules extends resource_1.ApiResource {
5
- // static readonly PATH = 'order_amount_promotion_rules'
6
- async list(params, options) {
7
- return this.resources.list({ type: OrderAmountPromotionRules.TYPE }, params, options);
8
- }
9
5
  async create(resource, params, options) {
10
- return this.resources.create(Object.assign(Object.assign({}, resource), { type: OrderAmountPromotionRules.TYPE }), params, options);
6
+ return this.resources.create({ ...resource, type: OrderAmountPromotionRules.TYPE }, params, options);
11
7
  }
12
8
  async update(resource, params, options) {
13
- return this.resources.update(Object.assign(Object.assign({}, resource), { type: OrderAmountPromotionRules.TYPE }), params, options);
9
+ return this.resources.update({ ...resource, type: OrderAmountPromotionRules.TYPE }, params, options);
14
10
  }
15
11
  async delete(id, options) {
16
12
  await this.resources.delete((typeof id === 'string') ? { id, type: OrderAmountPromotionRules.TYPE } : id, options);
@@ -12,29 +12,28 @@ type OrderRel = ResourceRel & {
12
12
  };
13
13
  interface OrderCopy extends Resource {
14
14
  readonly type: OrderCopyType;
15
- status?: 'pending' | 'in_progress' | 'failed' | 'completed';
16
- started_at?: string;
17
- completed_at?: string;
18
- failed_at?: string;
19
- place_target_order?: boolean;
20
- cancel_source_order?: boolean;
21
- reuse_wallet?: boolean;
22
- errors_log?: object;
23
- errors_count?: number;
24
- source_order?: Order;
25
- target_order?: Order;
26
- order_subscription?: OrderSubscription;
27
- events?: Event[];
15
+ status?: 'pending' | 'in_progress' | 'failed' | 'completed' | null;
16
+ started_at?: string | null;
17
+ completed_at?: string | null;
18
+ failed_at?: string | null;
19
+ place_target_order?: boolean | null;
20
+ cancel_source_order?: boolean | null;
21
+ reuse_wallet?: boolean | null;
22
+ errors_log?: object | null;
23
+ errors_count?: number | null;
24
+ source_order?: Order | null;
25
+ target_order?: Order | null;
26
+ order_subscription?: OrderSubscription | null;
27
+ events?: Event[] | null;
28
28
  }
29
29
  interface OrderCopyCreate extends ResourceCreate {
30
- place_target_order?: boolean;
31
- cancel_source_order?: boolean;
32
- reuse_wallet?: boolean;
30
+ place_target_order?: boolean | null;
31
+ cancel_source_order?: boolean | null;
32
+ reuse_wallet?: boolean | null;
33
33
  source_order: OrderRel;
34
34
  }
35
35
  declare class OrderCopies extends ApiResource<OrderCopy> {
36
36
  static readonly TYPE: OrderCopyType;
37
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderCopy>>;
38
37
  create(resource: OrderCopyCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderCopy>;
39
38
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
40
39
  source_order(orderCopyId: string | OrderCopy, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
@@ -2,12 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class OrderCopies extends resource_1.ApiResource {
5
- // static readonly PATH = 'order_copies'
6
- async list(params, options) {
7
- return this.resources.list({ type: OrderCopies.TYPE }, params, options);
8
- }
9
5
  async create(resource, params, options) {
10
- return this.resources.create(Object.assign(Object.assign({}, resource), { type: OrderCopies.TYPE }), params, options);
6
+ return this.resources.create({ ...resource, type: OrderCopies.TYPE }, params, options);
11
7
  }
12
8
  async delete(id, options) {
13
9
  await this.resources.delete((typeof id === 'string') ? { id, type: OrderCopies.TYPE } : id, options);
@@ -17,43 +17,42 @@ type OrderRel = ResourceRel & {
17
17
  };
18
18
  interface OrderSubscription extends Resource {
19
19
  readonly type: OrderSubscriptionType;
20
- number?: string;
21
- status?: 'draft' | 'inactive' | 'active' | 'cancelled';
22
- frequency?: string;
23
- activate_by_source_order?: boolean;
24
- customer_email?: string;
25
- starts_at?: string;
26
- expires_at?: string;
27
- next_run_at?: string;
28
- occurrencies?: number;
29
- errors_count?: number;
30
- succeeded_on_last_run?: boolean;
31
- options?: object;
32
- market?: Market;
33
- source_order?: Order;
34
- customer?: Customer;
35
- order_copies?: OrderCopy[];
36
- orders?: Order[];
37
- events?: Event[];
20
+ number?: string | null;
21
+ status?: 'draft' | 'inactive' | 'active' | 'cancelled' | null;
22
+ frequency: string;
23
+ activate_by_source_order?: boolean | null;
24
+ customer_email?: string | null;
25
+ starts_at?: string | null;
26
+ expires_at?: string | null;
27
+ next_run_at?: string | null;
28
+ occurrencies?: number | null;
29
+ errors_count?: number | null;
30
+ succeeded_on_last_run?: boolean | null;
31
+ options?: object | null;
32
+ market?: Market | null;
33
+ source_order?: Order | null;
34
+ customer?: Customer | null;
35
+ order_copies?: OrderCopy[] | null;
36
+ orders?: Order[] | null;
37
+ events?: Event[] | null;
38
38
  }
39
39
  interface OrderSubscriptionCreate extends ResourceCreate {
40
40
  frequency: string;
41
- activate_by_source_order?: boolean;
42
- starts_at?: string;
43
- expires_at?: string;
44
- options?: object;
45
- market?: MarketRel;
41
+ activate_by_source_order?: boolean | null;
42
+ starts_at?: string | null;
43
+ expires_at?: string | null;
44
+ options?: object | null;
45
+ market?: MarketRel | null;
46
46
  source_order: OrderRel;
47
47
  }
48
48
  interface OrderSubscriptionUpdate extends ResourceUpdate {
49
- expires_at?: string;
50
- _activate?: boolean;
51
- _deactivate?: boolean;
52
- _cancel?: boolean;
49
+ expires_at?: string | null;
50
+ _activate?: boolean | null;
51
+ _deactivate?: boolean | null;
52
+ _cancel?: boolean | null;
53
53
  }
54
54
  declare class OrderSubscriptions extends ApiResource<OrderSubscription> {
55
55
  static readonly TYPE: OrderSubscriptionType;
56
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderSubscription>>;
57
56
  create(resource: OrderSubscriptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
58
57
  update(resource: OrderSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
59
58
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,15 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class OrderSubscriptions extends resource_1.ApiResource {
5
- // static readonly PATH = 'order_subscriptions'
6
- async list(params, options) {
7
- return this.resources.list({ type: OrderSubscriptions.TYPE }, params, options);
8
- }
9
5
  async create(resource, params, options) {
10
- return this.resources.create(Object.assign(Object.assign({}, resource), { type: OrderSubscriptions.TYPE }), params, options);
6
+ return this.resources.create({ ...resource, type: OrderSubscriptions.TYPE }, params, options);
11
7
  }
12
8
  async update(resource, params, options) {
13
- return this.resources.update(Object.assign(Object.assign({}, resource), { type: OrderSubscriptions.TYPE }), params, options);
9
+ return this.resources.update({ ...resource, type: OrderSubscriptions.TYPE }, params, options);
14
10
  }
15
11
  async delete(id, options) {
16
12
  await this.resources.delete((typeof id === 'string') ? { id, type: OrderSubscriptions.TYPE } : id, options);
@@ -8,12 +8,11 @@ type OrderValidationRuleRel = ResourceRel & {
8
8
  };
9
9
  interface OrderValidationRule extends Resource {
10
10
  readonly type: OrderValidationRuleType;
11
- market?: Market;
12
- attachments?: Attachment[];
11
+ market?: Market | null;
12
+ attachments?: Attachment[] | null;
13
13
  }
14
14
  declare class OrderValidationRules extends ApiResource<OrderValidationRule> {
15
15
  static readonly TYPE: OrderValidationRuleType;
16
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderValidationRule>>;
17
16
  market(orderValidationRuleId: string | OrderValidationRule, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
18
17
  attachments(orderValidationRuleId: string | OrderValidationRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
19
18
  isOrderValidationRule(resource: any): resource is OrderValidationRule;
@@ -2,10 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class OrderValidationRules extends resource_1.ApiResource {
5
- // static readonly PATH = 'order_validation_rules'
6
- async list(params, options) {
7
- return this.resources.list({ type: OrderValidationRules.TYPE }, params, options);
8
- }
9
5
  async market(orderValidationRuleId, params, options) {
10
6
  const _orderValidationRuleId = orderValidationRuleId.id || orderValidationRuleId;
11
7
  return this.resources.fetch({ type: 'markets' }, `order_validation_rules/${_orderValidationRuleId}/market`, params, options);
@@ -76,196 +76,195 @@ type WireTransferRel = ResourceRel & {
76
76
  };
77
77
  interface Order extends Resource {
78
78
  readonly type: OrderType;
79
- number?: number;
80
- autorefresh?: boolean;
81
- status?: 'draft' | 'pending' | 'placed' | 'approved' | 'cancelled';
82
- payment_status?: 'unpaid' | 'authorized' | 'paid' | 'voided' | 'refunded';
83
- fulfillment_status?: 'unfulfilled' | 'in_progress' | 'fulfilled';
84
- guest?: boolean;
85
- editable?: boolean;
86
- customer_email?: string;
87
- language_code?: string;
88
- currency_code?: string;
89
- tax_included?: boolean;
90
- tax_rate?: number;
91
- freight_taxable?: boolean;
92
- requires_billing_info?: boolean;
93
- country_code?: string;
94
- shipping_country_code_lock?: string;
95
- coupon_code?: string;
96
- gift_card_code?: string;
97
- gift_card_or_coupon_code?: string;
98
- subtotal_amount_cents?: number;
99
- subtotal_amount_float?: number;
100
- formatted_subtotal_amount?: string;
101
- shipping_amount_cents?: number;
102
- shipping_amount_float?: number;
103
- formatted_shipping_amount?: string;
104
- payment_method_amount_cents?: number;
105
- payment_method_amount_float?: number;
106
- formatted_payment_method_amount?: string;
107
- discount_amount_cents?: number;
108
- discount_amount_float?: number;
109
- formatted_discount_amount?: string;
110
- adjustment_amount_cents?: number;
111
- adjustment_amount_float?: number;
112
- formatted_adjustment_amount?: string;
113
- gift_card_amount_cents?: number;
114
- gift_card_amount_float?: number;
115
- formatted_gift_card_amount?: string;
116
- total_tax_amount_cents?: number;
117
- total_tax_amount_float?: number;
118
- formatted_total_tax_amount?: string;
119
- subtotal_tax_amount_cents?: number;
120
- subtotal_tax_amount_float?: number;
121
- formatted_subtotal_tax_amount?: string;
122
- shipping_tax_amount_cents?: number;
123
- shipping_tax_amount_float?: number;
124
- formatted_shipping_tax_amount?: string;
125
- payment_method_tax_amount_cents?: number;
126
- payment_method_tax_amount_float?: number;
127
- formatted_payment_method_tax_amount?: string;
128
- adjustment_tax_amount_cents?: number;
129
- adjustment_tax_amount_float?: number;
130
- formatted_adjustment_tax_amount?: string;
131
- total_amount_cents?: number;
132
- total_amount_float?: number;
133
- formatted_total_amount?: string;
134
- total_taxable_amount_cents?: number;
135
- total_taxable_amount_float?: number;
136
- formatted_total_taxable_amount?: string;
137
- subtotal_taxable_amount_cents?: number;
138
- subtotal_taxable_amount_float?: number;
139
- formatted_subtotal_taxable_amount?: string;
140
- shipping_taxable_amount_cents?: number;
141
- shipping_taxable_amount_float?: number;
142
- formatted_shipping_taxable_amount?: string;
143
- payment_method_taxable_amount_cents?: number;
144
- payment_method_taxable_amount_float?: number;
145
- formatted_payment_method_taxable_amount?: string;
146
- adjustment_taxable_amount_cents?: number;
147
- adjustment_taxable_amount_float?: number;
148
- formatted_adjustment_taxable_amount?: string;
149
- total_amount_with_taxes_cents?: number;
150
- total_amount_with_taxes_float?: number;
151
- formatted_total_amount_with_taxes?: string;
152
- fees_amount_cents?: number;
153
- fees_amount_float?: number;
154
- formatted_fees_amount?: string;
155
- duty_amount_cents?: number;
156
- duty_amount_float?: number;
157
- formatted_duty_amount?: string;
158
- skus_count?: number;
159
- line_item_options_count?: number;
160
- shipments_count?: number;
161
- tax_calculations_count?: number;
162
- payment_source_details?: object;
163
- token?: string;
164
- cart_url?: string;
165
- return_url?: string;
166
- terms_url?: string;
167
- privacy_url?: string;
168
- checkout_url?: string;
169
- placed_at?: string;
170
- approved_at?: string;
171
- cancelled_at?: string;
172
- payment_updated_at?: string;
173
- fulfillment_updated_at?: string;
174
- refreshed_at?: string;
175
- archived_at?: string;
176
- expires_at?: string;
177
- market?: Market;
178
- customer?: Customer;
179
- shipping_address?: Address;
180
- billing_address?: Address;
181
- available_payment_methods?: PaymentMethod[];
182
- available_customer_payment_sources?: CustomerPaymentSource[];
183
- available_free_skus?: Sku[];
184
- available_free_bundles?: Bundle[];
185
- payment_method?: PaymentMethod;
186
- payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer;
187
- line_items?: LineItem[];
188
- shipments?: Shipment[];
189
- transactions?: Array<Authorization | Void | Capture | Refund>;
190
- authorizations?: Authorization[];
191
- captures?: Capture[];
192
- voids?: Void[];
193
- refunds?: Refund[];
194
- returns?: Return[];
195
- order_subscriptions?: OrderSubscription[];
196
- order_copies?: OrderCopy[];
197
- attachments?: Attachment[];
198
- events?: Event[];
79
+ number?: number | null;
80
+ autorefresh?: boolean | null;
81
+ status?: 'draft' | 'pending' | 'placed' | 'approved' | 'cancelled' | null;
82
+ payment_status?: 'unpaid' | 'authorized' | 'paid' | 'voided' | 'refunded' | 'free' | null;
83
+ fulfillment_status?: 'unfulfilled' | 'in_progress' | 'fulfilled' | 'not_required' | null;
84
+ guest?: boolean | null;
85
+ editable?: boolean | null;
86
+ customer_email?: string | null;
87
+ language_code?: string | null;
88
+ currency_code?: string | null;
89
+ tax_included?: boolean | null;
90
+ tax_rate?: number | null;
91
+ freight_taxable?: boolean | null;
92
+ requires_billing_info?: boolean | null;
93
+ country_code?: string | null;
94
+ shipping_country_code_lock?: string | null;
95
+ coupon_code?: string | null;
96
+ gift_card_code?: string | null;
97
+ gift_card_or_coupon_code?: string | null;
98
+ subtotal_amount_cents?: number | null;
99
+ subtotal_amount_float?: number | null;
100
+ formatted_subtotal_amount?: string | null;
101
+ shipping_amount_cents?: number | null;
102
+ shipping_amount_float?: number | null;
103
+ formatted_shipping_amount?: string | null;
104
+ payment_method_amount_cents?: number | null;
105
+ payment_method_amount_float?: number | null;
106
+ formatted_payment_method_amount?: string | null;
107
+ discount_amount_cents?: number | null;
108
+ discount_amount_float?: number | null;
109
+ formatted_discount_amount?: string | null;
110
+ adjustment_amount_cents?: number | null;
111
+ adjustment_amount_float?: number | null;
112
+ formatted_adjustment_amount?: string | null;
113
+ gift_card_amount_cents?: number | null;
114
+ gift_card_amount_float?: number | null;
115
+ formatted_gift_card_amount?: string | null;
116
+ total_tax_amount_cents?: number | null;
117
+ total_tax_amount_float?: number | null;
118
+ formatted_total_tax_amount?: string | null;
119
+ subtotal_tax_amount_cents?: number | null;
120
+ subtotal_tax_amount_float?: number | null;
121
+ formatted_subtotal_tax_amount?: string | null;
122
+ shipping_tax_amount_cents?: number | null;
123
+ shipping_tax_amount_float?: number | null;
124
+ formatted_shipping_tax_amount?: string | null;
125
+ payment_method_tax_amount_cents?: number | null;
126
+ payment_method_tax_amount_float?: number | null;
127
+ formatted_payment_method_tax_amount?: string | null;
128
+ adjustment_tax_amount_cents?: number | null;
129
+ adjustment_tax_amount_float?: number | null;
130
+ formatted_adjustment_tax_amount?: string | null;
131
+ total_amount_cents?: number | null;
132
+ total_amount_float?: number | null;
133
+ formatted_total_amount?: string | null;
134
+ total_taxable_amount_cents?: number | null;
135
+ total_taxable_amount_float?: number | null;
136
+ formatted_total_taxable_amount?: string | null;
137
+ subtotal_taxable_amount_cents?: number | null;
138
+ subtotal_taxable_amount_float?: number | null;
139
+ formatted_subtotal_taxable_amount?: string | null;
140
+ shipping_taxable_amount_cents?: number | null;
141
+ shipping_taxable_amount_float?: number | null;
142
+ formatted_shipping_taxable_amount?: string | null;
143
+ payment_method_taxable_amount_cents?: number | null;
144
+ payment_method_taxable_amount_float?: number | null;
145
+ formatted_payment_method_taxable_amount?: string | null;
146
+ adjustment_taxable_amount_cents?: number | null;
147
+ adjustment_taxable_amount_float?: number | null;
148
+ formatted_adjustment_taxable_amount?: string | null;
149
+ total_amount_with_taxes_cents?: number | null;
150
+ total_amount_with_taxes_float?: number | null;
151
+ formatted_total_amount_with_taxes?: string | null;
152
+ fees_amount_cents?: number | null;
153
+ fees_amount_float?: number | null;
154
+ formatted_fees_amount?: string | null;
155
+ duty_amount_cents?: number | null;
156
+ duty_amount_float?: number | null;
157
+ formatted_duty_amount?: string | null;
158
+ skus_count?: number | null;
159
+ line_item_options_count?: number | null;
160
+ shipments_count?: number | null;
161
+ tax_calculations_count?: number | null;
162
+ payment_source_details?: object | null;
163
+ token?: string | null;
164
+ cart_url?: string | null;
165
+ return_url?: string | null;
166
+ terms_url?: string | null;
167
+ privacy_url?: string | null;
168
+ checkout_url?: string | null;
169
+ placed_at?: string | null;
170
+ approved_at?: string | null;
171
+ cancelled_at?: string | null;
172
+ payment_updated_at?: string | null;
173
+ fulfillment_updated_at?: string | null;
174
+ refreshed_at?: string | null;
175
+ archived_at?: string | null;
176
+ expires_at?: string | null;
177
+ market?: Market | null;
178
+ customer?: Customer | null;
179
+ shipping_address?: Address | null;
180
+ billing_address?: Address | null;
181
+ available_payment_methods?: PaymentMethod[] | null;
182
+ available_customer_payment_sources?: CustomerPaymentSource[] | null;
183
+ available_free_skus?: Sku[] | null;
184
+ available_free_bundles?: Bundle[] | null;
185
+ payment_method?: PaymentMethod | null;
186
+ payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null;
187
+ line_items?: LineItem[] | null;
188
+ shipments?: Shipment[] | null;
189
+ transactions?: Array<Authorization | Void | Capture | Refund> | null;
190
+ authorizations?: Authorization[] | null;
191
+ captures?: Capture[] | null;
192
+ voids?: Void[] | null;
193
+ refunds?: Refund[] | null;
194
+ returns?: Return[] | null;
195
+ order_subscriptions?: OrderSubscription[] | null;
196
+ order_copies?: OrderCopy[] | null;
197
+ attachments?: Attachment[] | null;
198
+ events?: Event[] | null;
199
199
  }
200
200
  interface OrderCreate extends ResourceCreate {
201
- autorefresh?: boolean;
202
- guest?: boolean;
203
- customer_email?: string;
204
- customer_password?: string;
205
- language_code?: string;
206
- shipping_country_code_lock?: string;
207
- coupon_code?: string;
208
- gift_card_code?: string;
209
- gift_card_or_coupon_code?: string;
210
- cart_url?: string;
211
- return_url?: string;
212
- terms_url?: string;
213
- privacy_url?: string;
214
- market?: MarketRel;
215
- customer?: CustomerRel;
216
- shipping_address?: AddressRel;
217
- billing_address?: AddressRel;
218
- payment_method?: PaymentMethodRel;
219
- payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel;
201
+ autorefresh?: boolean | null;
202
+ guest?: boolean | null;
203
+ customer_email?: string | null;
204
+ customer_password?: string | null;
205
+ language_code?: string | null;
206
+ shipping_country_code_lock?: string | null;
207
+ coupon_code?: string | null;
208
+ gift_card_code?: string | null;
209
+ gift_card_or_coupon_code?: string | null;
210
+ cart_url?: string | null;
211
+ return_url?: string | null;
212
+ terms_url?: string | null;
213
+ privacy_url?: string | null;
214
+ market?: MarketRel | null;
215
+ customer?: CustomerRel | null;
216
+ shipping_address?: AddressRel | null;
217
+ billing_address?: AddressRel | null;
218
+ payment_method?: PaymentMethodRel | null;
219
+ payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel | null;
220
220
  }
221
221
  interface OrderUpdate extends ResourceUpdate {
222
- autorefresh?: boolean;
223
- guest?: boolean;
224
- customer_email?: string;
225
- customer_password?: string;
226
- language_code?: string;
227
- shipping_country_code_lock?: string;
228
- coupon_code?: string;
229
- gift_card_code?: string;
230
- gift_card_or_coupon_code?: string;
231
- cart_url?: string;
232
- return_url?: string;
233
- terms_url?: string;
234
- privacy_url?: string;
235
- _archive?: boolean;
236
- _unarchive?: boolean;
237
- _place?: boolean;
238
- _cancel?: boolean;
239
- _approve?: boolean;
240
- _approve_and_capture?: boolean;
241
- _authorize?: boolean;
242
- _authorization_amount_cents?: number;
243
- _capture?: boolean;
244
- _refund?: boolean;
245
- _update_taxes?: boolean;
246
- _nullify_payment_source?: boolean;
247
- _billing_address_clone_id?: string;
248
- _shipping_address_clone_id?: string;
249
- _customer_payment_source_id?: string;
250
- _shipping_address_same_as_billing?: boolean;
251
- _billing_address_same_as_shipping?: boolean;
252
- _commit_invoice?: boolean;
253
- _refund_invoice?: boolean;
254
- _save_payment_source_to_customer_wallet?: boolean;
255
- _save_shipping_address_to_customer_address_book?: boolean;
256
- _save_billing_address_to_customer_address_book?: boolean;
257
- _refresh?: boolean;
258
- _validate?: boolean;
259
- market?: MarketRel;
260
- customer?: CustomerRel;
261
- shipping_address?: AddressRel;
262
- billing_address?: AddressRel;
263
- payment_method?: PaymentMethodRel;
264
- payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel;
222
+ autorefresh?: boolean | null;
223
+ guest?: boolean | null;
224
+ customer_email?: string | null;
225
+ customer_password?: string | null;
226
+ language_code?: string | null;
227
+ shipping_country_code_lock?: string | null;
228
+ coupon_code?: string | null;
229
+ gift_card_code?: string | null;
230
+ gift_card_or_coupon_code?: string | null;
231
+ cart_url?: string | null;
232
+ return_url?: string | null;
233
+ terms_url?: string | null;
234
+ privacy_url?: string | null;
235
+ _archive?: boolean | null;
236
+ _unarchive?: boolean | null;
237
+ _place?: boolean | null;
238
+ _cancel?: boolean | null;
239
+ _approve?: boolean | null;
240
+ _approve_and_capture?: boolean | null;
241
+ _authorize?: boolean | null;
242
+ _authorization_amount_cents?: number | null;
243
+ _capture?: boolean | null;
244
+ _refund?: boolean | null;
245
+ _update_taxes?: boolean | null;
246
+ _nullify_payment_source?: boolean | null;
247
+ _billing_address_clone_id?: string | null;
248
+ _shipping_address_clone_id?: string | null;
249
+ _customer_payment_source_id?: string | null;
250
+ _shipping_address_same_as_billing?: boolean | null;
251
+ _billing_address_same_as_shipping?: boolean | null;
252
+ _commit_invoice?: boolean | null;
253
+ _refund_invoice?: boolean | null;
254
+ _save_payment_source_to_customer_wallet?: boolean | null;
255
+ _save_shipping_address_to_customer_address_book?: boolean | null;
256
+ _save_billing_address_to_customer_address_book?: boolean | null;
257
+ _refresh?: boolean | null;
258
+ _validate?: boolean | null;
259
+ market?: MarketRel | null;
260
+ customer?: CustomerRel | null;
261
+ shipping_address?: AddressRel | null;
262
+ billing_address?: AddressRel | null;
263
+ payment_method?: PaymentMethodRel | null;
264
+ payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel | null;
265
265
  }
266
266
  declare class Orders extends ApiResource<Order> {
267
267
  static readonly TYPE: OrderType;
268
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Order>>;
269
268
  create(resource: OrderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
270
269
  update(resource: OrderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
271
270
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;