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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (547) hide show
  1. package/LICENSE +1 -1
  2. package/lib/{cjs/api.d.ts → api.d.ts} +5 -3
  3. package/lib/api.js +1 -0
  4. package/lib/{esm/client.d.ts → client.d.ts} +8 -3
  5. package/lib/client.js +1 -0
  6. package/lib/{cjs/commercelayer.d.ts → commercelayer.d.ts} +4 -2
  7. package/lib/commercelayer.js +1 -0
  8. package/lib/{cjs/common.d.ts → common.d.ts} +0 -0
  9. package/lib/common.js +1 -0
  10. package/lib/{cjs/config.d.ts → config.d.ts} +0 -0
  11. package/lib/{esm/config.js → config.js} +0 -0
  12. package/lib/{cjs/debug.d.ts → debug.d.ts} +0 -0
  13. package/lib/{esm/debug.js → debug.js} +0 -0
  14. package/lib/{cjs/error.d.ts → error.d.ts} +0 -0
  15. package/lib/error.js +1 -0
  16. package/lib/{cjs/index.d.ts → index.d.ts} +0 -0
  17. package/lib/{esm/index.js → index.js} +0 -0
  18. package/lib/{cjs/interceptor.d.ts → interceptor.d.ts} +0 -0
  19. package/lib/{esm/interceptor.js → interceptor.js} +0 -0
  20. package/lib/{cjs/jsonapi.d.ts → jsonapi.d.ts} +2 -2
  21. package/lib/jsonapi.js +1 -0
  22. package/lib/{esm/model.d.ts → model.d.ts} +3 -1
  23. package/lib/{esm/model.js → model.js} +0 -0
  24. package/lib/{cjs/query.d.ts → query.d.ts} +0 -0
  25. package/lib/{esm/query.js → query.js} +0 -0
  26. package/lib/{esm/resource.d.ts → resource.d.ts} +9 -4
  27. package/lib/resource.js +1 -0
  28. package/lib/{esm/resources → resources}/addresses.d.ts +6 -5
  29. package/lib/resources/addresses.js +1 -0
  30. package/lib/{cjs/resources → resources}/adjustments.d.ts +4 -4
  31. package/lib/resources/adjustments.js +1 -0
  32. package/lib/{esm/resources → resources}/adyen_gateways.d.ts +7 -5
  33. package/lib/resources/adyen_gateways.js +1 -0
  34. package/lib/{cjs/resources → resources}/adyen_payments.d.ts +7 -5
  35. package/lib/resources/adyen_payments.js +1 -0
  36. package/lib/{cjs/resources → resources}/application.d.ts +4 -4
  37. package/lib/{esm/resources → resources}/application.js +1 -1
  38. package/lib/{esm/resources → resources}/attachments.d.ts +34 -34
  39. package/lib/resources/attachments.js +1 -0
  40. package/lib/{esm/resources → resources}/authorizations.d.ts +7 -4
  41. package/lib/resources/authorizations.js +1 -0
  42. package/lib/{cjs/resources → resources}/avalara_accounts.d.ts +8 -5
  43. package/lib/resources/avalara_accounts.js +1 -0
  44. package/lib/{cjs/resources → resources}/billing_info_validation_rules.d.ts +6 -5
  45. package/lib/resources/billing_info_validation_rules.js +1 -0
  46. package/lib/{esm/resources → resources}/bing_geocoders.d.ts +6 -4
  47. package/lib/resources/bing_geocoders.js +1 -0
  48. package/lib/{esm/resources → resources}/braintree_gateways.d.ts +7 -5
  49. package/lib/resources/braintree_gateways.js +1 -0
  50. package/lib/{cjs/resources → resources}/braintree_payments.d.ts +7 -5
  51. package/lib/resources/braintree_payments.js +1 -0
  52. package/lib/{esm/resources → resources}/bundles.d.ts +15 -6
  53. package/lib/resources/bundles.js +1 -0
  54. package/lib/{esm/resources → resources}/captures.d.ts +7 -4
  55. package/lib/resources/captures.js +1 -0
  56. package/lib/{esm/resources → resources}/carrier_accounts.d.ts +6 -4
  57. package/lib/resources/carrier_accounts.js +1 -0
  58. package/lib/{cjs/resources → resources}/checkout_com_gateways.d.ts +7 -5
  59. package/lib/resources/checkout_com_gateways.js +1 -0
  60. package/lib/{cjs/resources → resources}/checkout_com_payments.d.ts +7 -5
  61. package/lib/resources/checkout_com_payments.js +1 -0
  62. package/lib/{cjs/resources → resources}/coupon_codes_promotion_rules.d.ts +12 -11
  63. package/lib/resources/coupon_codes_promotion_rules.js +1 -0
  64. package/lib/{esm/resources → resources}/coupon_recipients.d.ts +7 -5
  65. package/lib/resources/coupon_recipients.js +1 -0
  66. package/lib/{cjs/resources → resources}/coupons.d.ts +6 -5
  67. package/lib/resources/coupons.js +1 -0
  68. package/lib/{esm/resources → resources}/customer_addresses.d.ts +8 -6
  69. package/lib/resources/customer_addresses.js +1 -0
  70. package/lib/{esm/resources → resources}/customer_groups.d.ts +7 -4
  71. package/lib/resources/customer_groups.js +1 -0
  72. package/lib/{esm/resources → resources}/customer_password_resets.d.ts +5 -4
  73. package/lib/resources/customer_password_resets.js +1 -0
  74. package/lib/{cjs/resources → resources}/customer_payment_sources.d.ts +20 -15
  75. package/lib/resources/customer_payment_sources.js +1 -0
  76. package/lib/{cjs/resources → resources}/customer_subscriptions.d.ts +5 -4
  77. package/lib/resources/customer_subscriptions.js +1 -0
  78. package/lib/{esm/resources → resources}/customers.d.ts +13 -5
  79. package/lib/resources/customers.js +1 -0
  80. package/lib/{esm/resources → resources}/delivery_lead_times.d.ts +9 -6
  81. package/lib/resources/delivery_lead_times.js +1 -0
  82. package/lib/{esm/resources → resources}/event_callbacks.d.ts +5 -4
  83. package/lib/resources/event_callbacks.js +1 -0
  84. package/lib/{cjs/resources → resources}/external_gateways.d.ts +9 -4
  85. package/lib/resources/external_gateways.js +1 -0
  86. package/lib/{esm/resources → resources}/external_payments.d.ts +10 -5
  87. package/lib/resources/external_payments.js +1 -0
  88. package/lib/{esm/resources → resources}/external_promotions.d.ts +17 -9
  89. package/lib/resources/external_promotions.js +1 -0
  90. package/lib/{cjs/resources → resources}/external_tax_calculators.d.ts +8 -5
  91. package/lib/resources/external_tax_calculators.js +1 -0
  92. package/lib/{esm/resources → resources}/fixed_amount_promotions.d.ts +17 -9
  93. package/lib/resources/fixed_amount_promotions.js +1 -0
  94. package/lib/{esm/resources → resources}/fixed_price_promotions.d.ts +20 -10
  95. package/lib/resources/fixed_price_promotions.js +1 -0
  96. package/lib/{cjs/resources → resources}/free_gift_promotions.d.ts +20 -10
  97. package/lib/resources/free_gift_promotions.js +1 -0
  98. package/lib/{cjs/resources → resources}/free_shipping_promotions.d.ts +17 -9
  99. package/lib/resources/free_shipping_promotions.js +1 -0
  100. package/lib/{cjs/resources → resources}/geocoders.d.ts +6 -4
  101. package/lib/resources/geocoders.js +1 -0
  102. package/lib/{cjs/resources → resources}/gift_card_recipients.d.ts +7 -5
  103. package/lib/resources/gift_card_recipients.js +1 -0
  104. package/lib/{cjs/resources → resources}/gift_cards.d.ts +10 -7
  105. package/lib/resources/gift_cards.js +1 -0
  106. package/lib/{esm/resources → resources}/google_geocoders.d.ts +6 -4
  107. package/lib/resources/google_geocoders.js +1 -0
  108. package/lib/{esm/resources → resources}/imports.d.ts +4 -4
  109. package/lib/resources/imports.js +1 -0
  110. package/lib/{esm/resources → resources}/in_stock_subscriptions.d.ts +10 -7
  111. package/lib/resources/in_stock_subscriptions.js +1 -0
  112. package/lib/{cjs/resources → resources}/inventory_models.d.ts +7 -4
  113. package/lib/resources/inventory_models.js +1 -0
  114. package/lib/{cjs/resources → resources}/inventory_return_locations.d.ts +8 -6
  115. package/lib/resources/inventory_return_locations.js +1 -0
  116. package/lib/{cjs/resources → resources}/inventory_stock_locations.d.ts +8 -6
  117. package/lib/resources/inventory_stock_locations.js +1 -0
  118. package/lib/resources/klarna_gateways.d.ts +44 -0
  119. package/lib/resources/klarna_gateways.js +1 -0
  120. package/lib/resources/klarna_payments.d.ts +41 -0
  121. package/lib/resources/klarna_payments.js +1 -0
  122. package/lib/{cjs/resources → resources}/line_item_options.d.ts +8 -6
  123. package/lib/resources/line_item_options.js +1 -0
  124. package/lib/{esm/resources → resources}/line_items.d.ts +19 -15
  125. package/lib/resources/line_items.js +1 -0
  126. package/lib/{cjs/resources → resources}/manual_gateways.d.ts +5 -4
  127. package/lib/resources/manual_gateways.js +1 -0
  128. package/lib/{cjs/resources → resources}/manual_tax_calculators.d.ts +10 -6
  129. package/lib/resources/manual_tax_calculators.js +1 -0
  130. package/lib/{esm/resources → resources}/markets.d.ts +15 -9
  131. package/lib/resources/markets.js +1 -0
  132. package/lib/{cjs/resources → resources}/merchants.d.ts +7 -5
  133. package/lib/resources/merchants.js +1 -0
  134. package/lib/{cjs/resources → resources}/order_amount_promotion_rules.d.ts +10 -10
  135. package/lib/resources/order_amount_promotion_rules.js +1 -0
  136. package/lib/{cjs/resources → resources}/order_copies.d.ts +8 -5
  137. package/lib/resources/order_copies.js +1 -0
  138. package/lib/{cjs/resources → resources}/order_subscriptions.d.ts +11 -6
  139. package/lib/resources/order_subscriptions.js +1 -0
  140. package/lib/{cjs/resources → resources}/order_validation_rules.d.ts +5 -4
  141. package/lib/resources/order_validation_rules.js +1 -0
  142. package/lib/{cjs/resources → resources}/orders.d.ts +38 -18
  143. package/lib/resources/orders.js +1 -0
  144. package/lib/{esm/resources → resources}/organization.d.ts +4 -4
  145. package/lib/{esm/resources → resources}/organization.js +1 -1
  146. package/lib/{esm/resources → resources}/packages.d.ts +8 -5
  147. package/lib/resources/packages.js +1 -0
  148. package/lib/{cjs/resources → resources}/parcel_line_items.d.ts +8 -6
  149. package/lib/resources/parcel_line_items.js +1 -0
  150. package/lib/{esm/resources → resources}/parcels.d.ts +10 -6
  151. package/lib/resources/parcels.js +1 -0
  152. package/lib/{esm/resources → resources}/payment_gateways.d.ts +5 -4
  153. package/lib/resources/payment_gateways.js +1 -0
  154. package/lib/{esm/resources → resources}/payment_methods.d.ts +13 -7
  155. package/lib/resources/payment_methods.js +1 -0
  156. package/lib/{esm/resources → resources}/paypal_gateways.d.ts +6 -4
  157. package/lib/resources/paypal_gateways.js +1 -0
  158. package/lib/{esm/resources → resources}/paypal_payments.d.ts +7 -5
  159. package/lib/resources/paypal_payments.js +1 -0
  160. package/lib/{esm/resources → resources}/percentage_discount_promotions.d.ts +20 -10
  161. package/lib/resources/percentage_discount_promotions.js +1 -0
  162. package/lib/{cjs/resources → resources}/price_lists.d.ts +6 -4
  163. package/lib/resources/price_lists.js +1 -0
  164. package/lib/{cjs/resources → resources}/prices.d.ts +9 -6
  165. package/lib/resources/prices.js +1 -0
  166. package/lib/{esm/resources → resources}/promotion_rules.d.ts +4 -4
  167. package/lib/{esm/resources → resources}/promotion_rules.js +1 -1
  168. package/lib/{esm/resources → resources}/promotions.d.ts +10 -4
  169. package/lib/resources/promotions.js +1 -0
  170. package/lib/{cjs/resources → resources}/refunds.d.ts +6 -4
  171. package/lib/resources/refunds.js +1 -0
  172. package/lib/{cjs/resources → resources}/return_line_items.d.ts +8 -6
  173. package/lib/resources/return_line_items.js +1 -0
  174. package/lib/{esm/resources → resources}/returns.d.ts +13 -6
  175. package/lib/resources/returns.js +1 -0
  176. package/lib/{cjs/resources → resources}/shipments.d.ts +18 -5
  177. package/lib/resources/shipments.js +1 -0
  178. package/lib/{cjs/resources → resources}/shipping_categories.d.ts +6 -4
  179. package/lib/resources/shipping_categories.js +1 -0
  180. package/lib/{esm/resources → resources}/shipping_methods.d.ts +16 -9
  181. package/lib/resources/shipping_methods.js +1 -0
  182. package/lib/{esm/resources → resources}/shipping_zones.d.ts +5 -4
  183. package/lib/resources/shipping_zones.js +1 -0
  184. package/lib/{cjs/resources → resources}/sku_list_items.d.ts +8 -6
  185. package/lib/resources/sku_list_items.js +1 -0
  186. package/lib/{cjs/resources → resources}/sku_list_promotion_rules.d.ts +13 -11
  187. package/lib/resources/sku_list_promotion_rules.js +1 -0
  188. package/lib/{esm/resources → resources}/sku_lists.d.ts +7 -4
  189. package/lib/resources/sku_lists.js +1 -0
  190. package/lib/{cjs/resources → resources}/sku_options.d.ts +10 -5
  191. package/lib/resources/sku_options.js +1 -0
  192. package/lib/{cjs/resources → resources}/skus.d.ts +11 -5
  193. package/lib/resources/skus.js +1 -0
  194. package/lib/{esm/resources → resources}/stock_items.d.ts +9 -6
  195. package/lib/resources/stock_items.js +1 -0
  196. package/lib/{esm/resources → resources}/stock_line_items.d.ts +7 -4
  197. package/lib/resources/stock_line_items.js +1 -0
  198. package/lib/{esm/resources → resources}/stock_locations.d.ts +11 -5
  199. package/lib/resources/stock_locations.js +1 -0
  200. package/lib/{esm/resources → resources}/stock_transfers.d.ts +13 -8
  201. package/lib/resources/stock_transfers.js +1 -0
  202. package/lib/{cjs/resources → resources}/stripe_gateways.d.ts +6 -4
  203. package/lib/resources/stripe_gateways.js +1 -0
  204. package/lib/{esm/resources → resources}/stripe_payments.d.ts +7 -5
  205. package/lib/resources/stripe_payments.js +1 -0
  206. package/lib/{esm/resources → resources}/tax_calculators.d.ts +7 -4
  207. package/lib/resources/tax_calculators.js +1 -0
  208. package/lib/{esm/resources → resources}/tax_categories.d.ts +11 -9
  209. package/lib/resources/tax_categories.js +1 -0
  210. package/lib/{cjs/resources → resources}/tax_rules.d.ts +6 -5
  211. package/lib/resources/tax_rules.js +1 -0
  212. package/lib/{esm/resources → resources}/taxjar_accounts.d.ts +8 -5
  213. package/lib/resources/taxjar_accounts.js +1 -0
  214. package/lib/{esm/resources → resources}/transactions.d.ts +5 -4
  215. package/lib/resources/transactions.js +1 -0
  216. package/lib/{esm/resources → resources}/voids.d.ts +6 -4
  217. package/lib/resources/voids.js +1 -0
  218. package/lib/{cjs/resources → resources}/webhooks.d.ts +5 -4
  219. package/lib/resources/webhooks.js +1 -0
  220. package/lib/{cjs/resources → resources}/wire_transfers.d.ts +6 -5
  221. package/lib/resources/wire_transfers.js +1 -0
  222. package/lib/{cjs/static.d.ts → static.d.ts} +0 -0
  223. package/lib/{esm/static.js → static.js} +0 -0
  224. package/lib/{cjs/util.d.ts → util.d.ts} +0 -0
  225. package/lib/{esm/util.js → util.js} +0 -0
  226. package/package.json +16 -17
  227. package/lib/cjs/api.js +0 -1
  228. package/lib/cjs/client.d.ts +0 -27
  229. package/lib/cjs/client.js +0 -1
  230. package/lib/cjs/commercelayer.js +0 -1
  231. package/lib/cjs/common.js +0 -1
  232. package/lib/cjs/config.js +0 -1
  233. package/lib/cjs/debug.js +0 -1
  234. package/lib/cjs/error.js +0 -1
  235. package/lib/cjs/index.js +0 -1
  236. package/lib/cjs/interceptor.js +0 -1
  237. package/lib/cjs/jsonapi.js +0 -1
  238. package/lib/cjs/model.d.ts +0 -99
  239. package/lib/cjs/model.js +0 -1
  240. package/lib/cjs/query.js +0 -1
  241. package/lib/cjs/resource.d.ts +0 -71
  242. package/lib/cjs/resource.js +0 -1
  243. package/lib/cjs/resources/addresses.d.ts +0 -87
  244. package/lib/cjs/resources/addresses.js +0 -1
  245. package/lib/cjs/resources/adjustments.js +0 -1
  246. package/lib/cjs/resources/adyen_gateways.d.ts +0 -45
  247. package/lib/cjs/resources/adyen_gateways.js +0 -1
  248. package/lib/cjs/resources/adyen_payments.js +0 -1
  249. package/lib/cjs/resources/application.js +0 -1
  250. package/lib/cjs/resources/attachments.d.ts +0 -156
  251. package/lib/cjs/resources/attachments.js +0 -1
  252. package/lib/cjs/resources/authorizations.d.ts +0 -54
  253. package/lib/cjs/resources/authorizations.js +0 -1
  254. package/lib/cjs/resources/avalara_accounts.js +0 -1
  255. package/lib/cjs/resources/billing_info_validation_rules.js +0 -1
  256. package/lib/cjs/resources/bing_geocoders.d.ts +0 -33
  257. package/lib/cjs/resources/bing_geocoders.js +0 -1
  258. package/lib/cjs/resources/braintree_gateways.d.ts +0 -54
  259. package/lib/cjs/resources/braintree_gateways.js +0 -1
  260. package/lib/cjs/resources/braintree_payments.js +0 -1
  261. package/lib/cjs/resources/bundles.d.ts +0 -65
  262. package/lib/cjs/resources/bundles.js +0 -1
  263. package/lib/cjs/resources/captures.d.ts +0 -45
  264. package/lib/cjs/resources/captures.js +0 -1
  265. package/lib/cjs/resources/carrier_accounts.d.ts +0 -24
  266. package/lib/cjs/resources/carrier_accounts.js +0 -1
  267. package/lib/cjs/resources/checkout_com_gateways.js +0 -1
  268. package/lib/cjs/resources/checkout_com_payments.js +0 -1
  269. package/lib/cjs/resources/coupon_codes_promotion_rules.js +0 -1
  270. package/lib/cjs/resources/coupon_recipients.d.ts +0 -42
  271. package/lib/cjs/resources/coupon_recipients.js +0 -1
  272. package/lib/cjs/resources/coupons.js +0 -1
  273. package/lib/cjs/resources/customer_addresses.d.ts +0 -39
  274. package/lib/cjs/resources/customer_addresses.js +0 -1
  275. package/lib/cjs/resources/customer_groups.d.ts +0 -33
  276. package/lib/cjs/resources/customer_groups.js +0 -1
  277. package/lib/cjs/resources/customer_password_resets.d.ts +0 -32
  278. package/lib/cjs/resources/customer_password_resets.js +0 -1
  279. package/lib/cjs/resources/customer_payment_sources.js +0 -1
  280. package/lib/cjs/resources/customer_subscriptions.js +0 -1
  281. package/lib/cjs/resources/customers.d.ts +0 -52
  282. package/lib/cjs/resources/customers.js +0 -1
  283. package/lib/cjs/resources/delivery_lead_times.d.ts +0 -48
  284. package/lib/cjs/resources/delivery_lead_times.js +0 -1
  285. package/lib/cjs/resources/event_callbacks.d.ts +0 -23
  286. package/lib/cjs/resources/event_callbacks.js +0 -1
  287. package/lib/cjs/resources/external_gateways.js +0 -1
  288. package/lib/cjs/resources/external_payments.d.ts +0 -38
  289. package/lib/cjs/resources/external_payments.js +0 -1
  290. package/lib/cjs/resources/external_promotions.d.ts +0 -78
  291. package/lib/cjs/resources/external_promotions.js +0 -1
  292. package/lib/cjs/resources/external_tax_calculators.js +0 -1
  293. package/lib/cjs/resources/fixed_amount_promotions.d.ts +0 -80
  294. package/lib/cjs/resources/fixed_amount_promotions.js +0 -1
  295. package/lib/cjs/resources/fixed_price_promotions.d.ts +0 -89
  296. package/lib/cjs/resources/fixed_price_promotions.js +0 -1
  297. package/lib/cjs/resources/free_gift_promotions.js +0 -1
  298. package/lib/cjs/resources/free_shipping_promotions.js +0 -1
  299. package/lib/cjs/resources/geocoders.js +0 -1
  300. package/lib/cjs/resources/gift_card_recipients.js +0 -1
  301. package/lib/cjs/resources/gift_cards.js +0 -1
  302. package/lib/cjs/resources/google_geocoders.d.ts +0 -33
  303. package/lib/cjs/resources/google_geocoders.js +0 -1
  304. package/lib/cjs/resources/imports.d.ts +0 -40
  305. package/lib/cjs/resources/imports.js +0 -1
  306. package/lib/cjs/resources/in_stock_subscriptions.d.ts +0 -56
  307. package/lib/cjs/resources/in_stock_subscriptions.js +0 -1
  308. package/lib/cjs/resources/inventory_models.js +0 -1
  309. package/lib/cjs/resources/inventory_return_locations.js +0 -1
  310. package/lib/cjs/resources/inventory_stock_locations.js +0 -1
  311. package/lib/cjs/resources/line_item_options.js +0 -1
  312. package/lib/cjs/resources/line_items.d.ts +0 -121
  313. package/lib/cjs/resources/line_items.js +0 -1
  314. package/lib/cjs/resources/manual_gateways.js +0 -1
  315. package/lib/cjs/resources/manual_tax_calculators.js +0 -1
  316. package/lib/cjs/resources/markets.d.ts +0 -75
  317. package/lib/cjs/resources/markets.js +0 -1
  318. package/lib/cjs/resources/merchants.js +0 -1
  319. package/lib/cjs/resources/order_amount_promotion_rules.js +0 -1
  320. package/lib/cjs/resources/order_copies.js +0 -1
  321. package/lib/cjs/resources/order_subscriptions.js +0 -1
  322. package/lib/cjs/resources/order_validation_rules.js +0 -1
  323. package/lib/cjs/resources/orders.js +0 -1
  324. package/lib/cjs/resources/organization.d.ts +0 -32
  325. package/lib/cjs/resources/organization.js +0 -1
  326. package/lib/cjs/resources/packages.d.ts +0 -53
  327. package/lib/cjs/resources/packages.js +0 -1
  328. package/lib/cjs/resources/parcel_line_items.js +0 -1
  329. package/lib/cjs/resources/parcels.d.ts +0 -104
  330. package/lib/cjs/resources/parcels.js +0 -1
  331. package/lib/cjs/resources/payment_gateways.d.ts +0 -20
  332. package/lib/cjs/resources/payment_gateways.js +0 -1
  333. package/lib/cjs/resources/payment_methods.d.ts +0 -53
  334. package/lib/cjs/resources/payment_methods.js +0 -1
  335. package/lib/cjs/resources/paypal_gateways.d.ts +0 -37
  336. package/lib/cjs/resources/paypal_gateways.js +0 -1
  337. package/lib/cjs/resources/paypal_payments.d.ts +0 -45
  338. package/lib/cjs/resources/paypal_payments.js +0 -1
  339. package/lib/cjs/resources/percentage_discount_promotions.d.ts +0 -87
  340. package/lib/cjs/resources/percentage_discount_promotions.js +0 -1
  341. package/lib/cjs/resources/price_lists.js +0 -1
  342. package/lib/cjs/resources/prices.js +0 -1
  343. package/lib/cjs/resources/promotion_rules.d.ts +0 -24
  344. package/lib/cjs/resources/promotion_rules.js +0 -1
  345. package/lib/cjs/resources/promotions.d.ts +0 -35
  346. package/lib/cjs/resources/promotions.js +0 -1
  347. package/lib/cjs/resources/refunds.js +0 -1
  348. package/lib/cjs/resources/return_line_items.js +0 -1
  349. package/lib/cjs/resources/returns.d.ts +0 -65
  350. package/lib/cjs/resources/returns.js +0 -1
  351. package/lib/cjs/resources/shipments.js +0 -1
  352. package/lib/cjs/resources/shipping_categories.js +0 -1
  353. package/lib/cjs/resources/shipping_methods.d.ts +0 -67
  354. package/lib/cjs/resources/shipping_methods.js +0 -1
  355. package/lib/cjs/resources/shipping_zones.d.ts +0 -47
  356. package/lib/cjs/resources/shipping_zones.js +0 -1
  357. package/lib/cjs/resources/sku_list_items.js +0 -1
  358. package/lib/cjs/resources/sku_list_promotion_rules.js +0 -1
  359. package/lib/cjs/resources/sku_lists.d.ts +0 -46
  360. package/lib/cjs/resources/sku_lists.js +0 -1
  361. package/lib/cjs/resources/sku_options.js +0 -1
  362. package/lib/cjs/resources/skus.js +0 -1
  363. package/lib/cjs/resources/stock_items.d.ts +0 -46
  364. package/lib/cjs/resources/stock_items.js +0 -1
  365. package/lib/cjs/resources/stock_line_items.d.ts +0 -26
  366. package/lib/cjs/resources/stock_line_items.js +0 -1
  367. package/lib/cjs/resources/stock_locations.d.ts +0 -51
  368. package/lib/cjs/resources/stock_locations.js +0 -1
  369. package/lib/cjs/resources/stock_transfers.d.ts +0 -66
  370. package/lib/cjs/resources/stock_transfers.js +0 -1
  371. package/lib/cjs/resources/stripe_gateways.js +0 -1
  372. package/lib/cjs/resources/stripe_payments.d.ts +0 -40
  373. package/lib/cjs/resources/stripe_payments.js +0 -1
  374. package/lib/cjs/resources/tax_calculators.d.ts +0 -24
  375. package/lib/cjs/resources/tax_calculators.js +0 -1
  376. package/lib/cjs/resources/tax_categories.d.ts +0 -57
  377. package/lib/cjs/resources/tax_categories.js +0 -1
  378. package/lib/cjs/resources/tax_rules.js +0 -1
  379. package/lib/cjs/resources/taxjar_accounts.d.ts +0 -40
  380. package/lib/cjs/resources/taxjar_accounts.js +0 -1
  381. package/lib/cjs/resources/transactions.d.ts +0 -30
  382. package/lib/cjs/resources/transactions.js +0 -1
  383. package/lib/cjs/resources/voids.d.ts +0 -32
  384. package/lib/cjs/resources/voids.js +0 -1
  385. package/lib/cjs/resources/webhooks.js +0 -1
  386. package/lib/cjs/resources/wire_transfers.js +0 -1
  387. package/lib/cjs/static.js +0 -1
  388. package/lib/cjs/util.js +0 -1
  389. package/lib/esm/api.d.ts +0 -101
  390. package/lib/esm/api.js +0 -1
  391. package/lib/esm/client.js +0 -1
  392. package/lib/esm/commercelayer.d.ts +0 -120
  393. package/lib/esm/commercelayer.js +0 -1
  394. package/lib/esm/common.d.ts +0 -4
  395. package/lib/esm/common.js +0 -1
  396. package/lib/esm/config.d.ts +0 -11
  397. package/lib/esm/debug.d.ts +0 -3
  398. package/lib/esm/error.d.ts +0 -26
  399. package/lib/esm/error.js +0 -1
  400. package/lib/esm/index.d.ts +0 -7
  401. package/lib/esm/interceptor.d.ts +0 -19
  402. package/lib/esm/jsonapi.d.ts +0 -5
  403. package/lib/esm/jsonapi.js +0 -1
  404. package/lib/esm/query.d.ts +0 -23
  405. package/lib/esm/resource.js +0 -1
  406. package/lib/esm/resources/addresses.js +0 -1
  407. package/lib/esm/resources/adjustments.d.ts +0 -35
  408. package/lib/esm/resources/adjustments.js +0 -1
  409. package/lib/esm/resources/adyen_gateways.js +0 -1
  410. package/lib/esm/resources/adyen_payments.d.ts +0 -42
  411. package/lib/esm/resources/adyen_payments.js +0 -1
  412. package/lib/esm/resources/application.d.ts +0 -21
  413. package/lib/esm/resources/attachments.js +0 -1
  414. package/lib/esm/resources/authorizations.js +0 -1
  415. package/lib/esm/resources/avalara_accounts.d.ts +0 -49
  416. package/lib/esm/resources/avalara_accounts.js +0 -1
  417. package/lib/esm/resources/billing_info_validation_rules.d.ts +0 -31
  418. package/lib/esm/resources/billing_info_validation_rules.js +0 -1
  419. package/lib/esm/resources/bing_geocoders.js +0 -1
  420. package/lib/esm/resources/braintree_gateways.js +0 -1
  421. package/lib/esm/resources/braintree_payments.d.ts +0 -45
  422. package/lib/esm/resources/braintree_payments.js +0 -1
  423. package/lib/esm/resources/bundles.js +0 -1
  424. package/lib/esm/resources/captures.js +0 -1
  425. package/lib/esm/resources/carrier_accounts.js +0 -1
  426. package/lib/esm/resources/checkout_com_gateways.d.ts +0 -43
  427. package/lib/esm/resources/checkout_com_gateways.js +0 -1
  428. package/lib/esm/resources/checkout_com_payments.d.ts +0 -48
  429. package/lib/esm/resources/checkout_com_payments.js +0 -1
  430. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +0 -58
  431. package/lib/esm/resources/coupon_codes_promotion_rules.js +0 -1
  432. package/lib/esm/resources/coupon_recipients.js +0 -1
  433. package/lib/esm/resources/coupons.d.ts +0 -44
  434. package/lib/esm/resources/coupons.js +0 -1
  435. package/lib/esm/resources/customer_addresses.js +0 -1
  436. package/lib/esm/resources/customer_groups.js +0 -1
  437. package/lib/esm/resources/customer_password_resets.js +0 -1
  438. package/lib/esm/resources/customer_payment_sources.d.ts +0 -65
  439. package/lib/esm/resources/customer_payment_sources.js +0 -1
  440. package/lib/esm/resources/customer_subscriptions.d.ts +0 -27
  441. package/lib/esm/resources/customer_subscriptions.js +0 -1
  442. package/lib/esm/resources/customers.js +0 -1
  443. package/lib/esm/resources/delivery_lead_times.js +0 -1
  444. package/lib/esm/resources/event_callbacks.js +0 -1
  445. package/lib/esm/resources/external_gateways.d.ts +0 -44
  446. package/lib/esm/resources/external_gateways.js +0 -1
  447. package/lib/esm/resources/external_payments.js +0 -1
  448. package/lib/esm/resources/external_promotions.js +0 -1
  449. package/lib/esm/resources/external_tax_calculators.d.ts +0 -41
  450. package/lib/esm/resources/external_tax_calculators.js +0 -1
  451. package/lib/esm/resources/fixed_amount_promotions.js +0 -1
  452. package/lib/esm/resources/fixed_price_promotions.js +0 -1
  453. package/lib/esm/resources/free_gift_promotions.d.ts +0 -87
  454. package/lib/esm/resources/free_gift_promotions.js +0 -1
  455. package/lib/esm/resources/free_shipping_promotions.d.ts +0 -75
  456. package/lib/esm/resources/free_shipping_promotions.js +0 -1
  457. package/lib/esm/resources/geocoders.d.ts +0 -22
  458. package/lib/esm/resources/geocoders.js +0 -1
  459. package/lib/esm/resources/gift_card_recipients.d.ts +0 -42
  460. package/lib/esm/resources/gift_card_recipients.js +0 -1
  461. package/lib/esm/resources/gift_cards.d.ts +0 -79
  462. package/lib/esm/resources/gift_cards.js +0 -1
  463. package/lib/esm/resources/google_geocoders.js +0 -1
  464. package/lib/esm/resources/imports.js +0 -1
  465. package/lib/esm/resources/in_stock_subscriptions.js +0 -1
  466. package/lib/esm/resources/inventory_models.d.ts +0 -39
  467. package/lib/esm/resources/inventory_models.js +0 -1
  468. package/lib/esm/resources/inventory_return_locations.d.ts +0 -41
  469. package/lib/esm/resources/inventory_return_locations.js +0 -1
  470. package/lib/esm/resources/inventory_stock_locations.d.ts +0 -44
  471. package/lib/esm/resources/inventory_stock_locations.js +0 -1
  472. package/lib/esm/resources/line_item_options.d.ts +0 -55
  473. package/lib/esm/resources/line_item_options.js +0 -1
  474. package/lib/esm/resources/line_items.js +0 -1
  475. package/lib/esm/resources/manual_gateways.d.ts +0 -32
  476. package/lib/esm/resources/manual_gateways.js +0 -1
  477. package/lib/esm/resources/manual_tax_calculators.d.ts +0 -45
  478. package/lib/esm/resources/manual_tax_calculators.js +0 -1
  479. package/lib/esm/resources/markets.js +0 -1
  480. package/lib/esm/resources/merchants.d.ts +0 -36
  481. package/lib/esm/resources/merchants.js +0 -1
  482. package/lib/esm/resources/order_amount_promotion_rules.d.ts +0 -56
  483. package/lib/esm/resources/order_amount_promotion_rules.js +0 -1
  484. package/lib/esm/resources/order_copies.d.ts +0 -42
  485. package/lib/esm/resources/order_copies.js +0 -1
  486. package/lib/esm/resources/order_subscriptions.d.ts +0 -62
  487. package/lib/esm/resources/order_subscriptions.js +0 -1
  488. package/lib/esm/resources/order_validation_rules.d.ts +0 -19
  489. package/lib/esm/resources/order_validation_rules.js +0 -1
  490. package/lib/esm/resources/orders.d.ts +0 -251
  491. package/lib/esm/resources/orders.js +0 -1
  492. package/lib/esm/resources/packages.js +0 -1
  493. package/lib/esm/resources/parcel_line_items.d.ts +0 -47
  494. package/lib/esm/resources/parcel_line_items.js +0 -1
  495. package/lib/esm/resources/parcels.js +0 -1
  496. package/lib/esm/resources/payment_gateways.js +0 -1
  497. package/lib/esm/resources/payment_methods.js +0 -1
  498. package/lib/esm/resources/paypal_gateways.js +0 -1
  499. package/lib/esm/resources/paypal_payments.js +0 -1
  500. package/lib/esm/resources/percentage_discount_promotions.js +0 -1
  501. package/lib/esm/resources/price_lists.d.ts +0 -37
  502. package/lib/esm/resources/price_lists.js +0 -1
  503. package/lib/esm/resources/prices.d.ts +0 -54
  504. package/lib/esm/resources/prices.js +0 -1
  505. package/lib/esm/resources/promotions.js +0 -1
  506. package/lib/esm/resources/refunds.d.ts +0 -32
  507. package/lib/esm/resources/refunds.js +0 -1
  508. package/lib/esm/resources/return_line_items.d.ts +0 -47
  509. package/lib/esm/resources/return_line_items.js +0 -1
  510. package/lib/esm/resources/returns.js +0 -1
  511. package/lib/esm/resources/shipments.d.ts +0 -76
  512. package/lib/esm/resources/shipments.js +0 -1
  513. package/lib/esm/resources/shipping_categories.d.ts +0 -31
  514. package/lib/esm/resources/shipping_categories.js +0 -1
  515. package/lib/esm/resources/shipping_methods.js +0 -1
  516. package/lib/esm/resources/shipping_zones.js +0 -1
  517. package/lib/esm/resources/sku_list_items.d.ts +0 -45
  518. package/lib/esm/resources/sku_list_items.js +0 -1
  519. package/lib/esm/resources/sku_list_promotion_rules.d.ts +0 -66
  520. package/lib/esm/resources/sku_list_promotion_rules.js +0 -1
  521. package/lib/esm/resources/sku_lists.js +0 -1
  522. package/lib/esm/resources/sku_options.d.ts +0 -51
  523. package/lib/esm/resources/sku_options.js +0 -1
  524. package/lib/esm/resources/skus.d.ts +0 -72
  525. package/lib/esm/resources/skus.js +0 -1
  526. package/lib/esm/resources/stock_items.js +0 -1
  527. package/lib/esm/resources/stock_line_items.js +0 -1
  528. package/lib/esm/resources/stock_locations.js +0 -1
  529. package/lib/esm/resources/stock_transfers.js +0 -1
  530. package/lib/esm/resources/stripe_gateways.d.ts +0 -36
  531. package/lib/esm/resources/stripe_gateways.js +0 -1
  532. package/lib/esm/resources/stripe_payments.js +0 -1
  533. package/lib/esm/resources/tax_calculators.js +0 -1
  534. package/lib/esm/resources/tax_categories.js +0 -1
  535. package/lib/esm/resources/tax_rules.d.ts +0 -68
  536. package/lib/esm/resources/tax_rules.js +0 -1
  537. package/lib/esm/resources/taxjar_accounts.js +0 -1
  538. package/lib/esm/resources/transactions.js +0 -1
  539. package/lib/esm/resources/voids.js +0 -1
  540. package/lib/esm/resources/webhooks.d.ts +0 -41
  541. package/lib/esm/resources/webhooks.js +0 -1
  542. package/lib/esm/resources/wire_transfers.d.ts +0 -31
  543. package/lib/esm/resources/wire_transfers.js +0 -1
  544. package/lib/esm/static.d.ts +0 -6
  545. package/lib/esm/util.d.ts +0 -3
  546. package/lib/tsconfig.esm.tsbuildinfo +0 -1
  547. package/lib/tsconfig.tsbuildinfo +0 -1
@@ -1,55 +0,0 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { LineItem } from './line_items';
4
- import { SkuOption } from './sku_options';
5
- declare type LineItemOptionRel = ResourceId & {
6
- type: typeof LineItemOptions.TYPE;
7
- };
8
- declare type LineItemRel = ResourceId & {
9
- type: 'line_items';
10
- };
11
- declare type SkuOptionRel = ResourceId & {
12
- type: 'sku_options';
13
- };
14
- interface LineItemOption extends Resource {
15
- name?: string;
16
- quantity?: number;
17
- currency_code?: string;
18
- unit_amount_cents?: number;
19
- unit_amount_float?: number;
20
- formatted_unit_amount?: string;
21
- total_amount_cents?: number;
22
- total_amount_float?: number;
23
- formatted_total_amount?: string;
24
- delay_hours?: number;
25
- delay_days?: number;
26
- options?: object;
27
- line_item?: LineItem;
28
- sku_option?: SkuOption;
29
- }
30
- interface LineItemOptionCreate extends ResourceCreate {
31
- name?: string;
32
- quantity: number;
33
- options: object;
34
- line_item: LineItemRel;
35
- sku_option: SkuOptionRel;
36
- }
37
- interface LineItemOptionUpdate extends ResourceUpdate {
38
- name?: string;
39
- quantity?: number;
40
- options?: object;
41
- sku_option?: SkuOptionRel;
42
- }
43
- declare class LineItemOptions extends ApiResource {
44
- static readonly TYPE: 'line_item_options';
45
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<LineItemOption>>;
46
- create(resource: LineItemOptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItemOption>;
47
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItemOption>;
48
- update(resource: LineItemOptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItemOption>;
49
- delete(id: string, options?: ResourcesConfig): Promise<void>;
50
- isLineItemOption(resource: any): resource is LineItemOption;
51
- relationship(id: string | ResourceId): LineItemOptionRel;
52
- type(): string;
53
- }
54
- export default LineItemOptions;
55
- export { LineItemOption, LineItemOptionCreate, LineItemOptionUpdate };
@@ -1 +0,0 @@
1
- import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isLineItemOption(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="line_item_options";export default t;
@@ -1 +0,0 @@
1
- import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isLineItem(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="line_items";export default t;
@@ -1,32 +0,0 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { PaymentMethod } from './payment_methods';
4
- declare type ManualGatewayRel = ResourceId & {
5
- type: typeof ManualGateways.TYPE;
6
- };
7
- interface ManualGateway extends Resource {
8
- name?: string;
9
- require_capture?: boolean;
10
- payment_methods?: PaymentMethod[];
11
- }
12
- interface ManualGatewayCreate extends ResourceCreate {
13
- name: string;
14
- require_capture?: boolean;
15
- }
16
- interface ManualGatewayUpdate extends ResourceUpdate {
17
- name?: string;
18
- require_capture?: boolean;
19
- }
20
- declare class ManualGateways extends ApiResource {
21
- static readonly TYPE: 'manual_gateways';
22
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ManualGateway>>;
23
- create(resource: ManualGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualGateway>;
24
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualGateway>;
25
- update(resource: ManualGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualGateway>;
26
- delete(id: string, options?: ResourcesConfig): Promise<void>;
27
- isManualGateway(resource: any): resource is ManualGateway;
28
- relationship(id: string | ResourceId): ManualGatewayRel;
29
- type(): string;
30
- }
31
- export default ManualGateways;
32
- export { ManualGateway, ManualGatewayCreate, ManualGatewayUpdate };
@@ -1 +0,0 @@
1
- import{ApiResource as a}from"../resource";class t extends a{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isManualGateway(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="manual_gateways";export default t;
@@ -1,45 +0,0 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { TaxCategory } from './tax_categories';
4
- import { Market } from './markets';
5
- import { Attachment } from './attachments';
6
- import { TaxRule } from './tax_rules';
7
- declare type ManualTaxCalculatorRel = ResourceId & {
8
- type: typeof ManualTaxCalculators.TYPE;
9
- };
10
- declare type TaxCategoryRel = ResourceId & {
11
- type: 'tax_categories';
12
- };
13
- declare type TaxRuleRel = ResourceId & {
14
- type: 'tax_rules';
15
- };
16
- interface ManualTaxCalculator extends Resource {
17
- name?: string;
18
- tax_categories?: TaxCategory[];
19
- markets?: Market[];
20
- attachments?: Attachment[];
21
- tax_rules?: TaxRule[];
22
- }
23
- interface ManualTaxCalculatorCreate extends ResourceCreate {
24
- name: string;
25
- tax_categories?: TaxCategoryRel[];
26
- tax_rules?: TaxRuleRel[];
27
- }
28
- interface ManualTaxCalculatorUpdate extends ResourceUpdate {
29
- name?: string;
30
- tax_categories?: TaxCategoryRel[];
31
- tax_rules?: TaxRuleRel[];
32
- }
33
- declare class ManualTaxCalculators extends ApiResource {
34
- static readonly TYPE: 'manual_tax_calculators';
35
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ManualTaxCalculator>>;
36
- create(resource: ManualTaxCalculatorCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualTaxCalculator>;
37
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualTaxCalculator>;
38
- update(resource: ManualTaxCalculatorUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualTaxCalculator>;
39
- delete(id: string, options?: ResourcesConfig): Promise<void>;
40
- isManualTaxCalculator(resource: any): resource is ManualTaxCalculator;
41
- relationship(id: string | ResourceId): ManualTaxCalculatorRel;
42
- type(): string;
43
- }
44
- export default ManualTaxCalculators;
45
- export { ManualTaxCalculator, ManualTaxCalculatorCreate, ManualTaxCalculatorUpdate };
@@ -1 +0,0 @@
1
- import{ApiResource as a}from"../resource";class t extends a{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isManualTaxCalculator(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="manual_tax_calculators";export default t;
@@ -1 +0,0 @@
1
- import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isMarket(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="markets";export default t;
@@ -1,36 +0,0 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { Address } from './addresses';
4
- import { Attachment } from './attachments';
5
- declare type MerchantRel = ResourceId & {
6
- type: typeof Merchants.TYPE;
7
- };
8
- declare type AddressRel = ResourceId & {
9
- type: 'addresses';
10
- };
11
- interface Merchant extends Resource {
12
- name?: string;
13
- address?: Address;
14
- attachments?: Attachment[];
15
- }
16
- interface MerchantCreate extends ResourceCreate {
17
- name: string;
18
- address: AddressRel;
19
- }
20
- interface MerchantUpdate extends ResourceUpdate {
21
- name?: string;
22
- address?: AddressRel;
23
- }
24
- declare class Merchants extends ApiResource {
25
- static readonly TYPE: 'merchants';
26
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Merchant>>;
27
- create(resource: MerchantCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Merchant>;
28
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Merchant>;
29
- update(resource: MerchantUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Merchant>;
30
- delete(id: string, options?: ResourcesConfig): Promise<void>;
31
- isMerchant(resource: any): resource is Merchant;
32
- relationship(id: string | ResourceId): MerchantRel;
33
- type(): string;
34
- }
35
- export default Merchants;
36
- export { Merchant, MerchantCreate, MerchantUpdate };
@@ -1 +0,0 @@
1
- import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isMerchant(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="merchants";export default t;
@@ -1,56 +0,0 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { PercentageDiscountPromotion } from './percentage_discount_promotions';
4
- import { FreeShippingPromotion } from './free_shipping_promotions';
5
- import { FixedAmountPromotion } from './fixed_amount_promotions';
6
- import { FreeGiftPromotion } from './free_gift_promotions';
7
- import { FixedPricePromotion } from './fixed_price_promotions';
8
- import { ExternalPromotion } from './external_promotions';
9
- declare type OrderAmountPromotionRuleRel = ResourceId & {
10
- type: typeof OrderAmountPromotionRules.TYPE;
11
- };
12
- declare type PercentageDiscountPromotionRel = ResourceId & {
13
- type: 'percentage_discount_promotions';
14
- };
15
- declare type FreeShippingPromotionRel = ResourceId & {
16
- type: 'free_shipping_promotions';
17
- };
18
- declare type FixedAmountPromotionRel = ResourceId & {
19
- type: 'fixed_amount_promotions';
20
- };
21
- declare type FreeGiftPromotionRel = ResourceId & {
22
- type: 'free_gift_promotions';
23
- };
24
- declare type FixedPricePromotionRel = ResourceId & {
25
- type: 'fixed_price_promotions';
26
- };
27
- declare type ExternalPromotionRel = ResourceId & {
28
- type: 'external_promotions';
29
- };
30
- interface OrderAmountPromotionRule extends Resource {
31
- order_amount_cents?: number;
32
- order_amount_float?: number;
33
- formatted_order_amount?: string;
34
- promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion;
35
- }
36
- interface OrderAmountPromotionRuleCreate extends ResourceCreate {
37
- order_amount_cents?: number;
38
- promotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
39
- }
40
- interface OrderAmountPromotionRuleUpdate extends ResourceUpdate {
41
- order_amount_cents?: number;
42
- promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
43
- }
44
- declare class OrderAmountPromotionRules extends ApiResource {
45
- static readonly TYPE: 'order_amount_promotion_rules';
46
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderAmountPromotionRule>>;
47
- create(resource: OrderAmountPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
48
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
49
- update(resource: OrderAmountPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
50
- delete(id: string, options?: ResourcesConfig): Promise<void>;
51
- isOrderAmountPromotionRule(resource: any): resource is OrderAmountPromotionRule;
52
- relationship(id: string | ResourceId): OrderAmountPromotionRuleRel;
53
- type(): string;
54
- }
55
- export default OrderAmountPromotionRules;
56
- export { OrderAmountPromotionRule, OrderAmountPromotionRuleCreate, OrderAmountPromotionRuleUpdate };
@@ -1 +0,0 @@
1
- import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isOrderAmountPromotionRule(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="order_amount_promotion_rules";export default t;
@@ -1,42 +0,0 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { Order } from './orders';
4
- import { OrderSubscription } from './order_subscriptions';
5
- declare type OrderCopyRel = ResourceId & {
6
- type: typeof OrderCopies.TYPE;
7
- };
8
- declare type OrderRel = ResourceId & {
9
- type: 'orders';
10
- };
11
- interface OrderCopy extends Resource {
12
- status?: string;
13
- started_at?: string;
14
- completed_at?: string;
15
- failed_at?: string;
16
- place_target_order?: boolean;
17
- cancel_source_order?: boolean;
18
- reuse_wallet?: boolean;
19
- errors_log?: object;
20
- errors_count?: number;
21
- source_order?: Order;
22
- target_order?: Order;
23
- order_subscription?: OrderSubscription;
24
- }
25
- interface OrderCopyCreate extends ResourceCreate {
26
- place_target_order?: boolean;
27
- cancel_source_order?: boolean;
28
- reuse_wallet?: boolean;
29
- source_order: OrderRel;
30
- }
31
- declare class OrderCopies extends ApiResource {
32
- static readonly TYPE: 'order_copies';
33
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderCopy>>;
34
- create(resource: OrderCopyCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderCopy>;
35
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderCopy>;
36
- delete(id: string, options?: ResourcesConfig): Promise<void>;
37
- isOrderCopy(resource: any): resource is OrderCopy;
38
- relationship(id: string | ResourceId): OrderCopyRel;
39
- type(): string;
40
- }
41
- export default OrderCopies;
42
- export { OrderCopy, OrderCopyCreate };
@@ -1 +0,0 @@
1
- import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isOrderCopy(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="order_copies";export default t;
@@ -1,62 +0,0 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { Market } from './markets';
4
- import { Order } from './orders';
5
- import { Customer } from './customers';
6
- import { OrderCopy } from './order_copies';
7
- declare type OrderSubscriptionRel = ResourceId & {
8
- type: typeof OrderSubscriptions.TYPE;
9
- };
10
- declare type MarketRel = ResourceId & {
11
- type: 'markets';
12
- };
13
- declare type OrderRel = ResourceId & {
14
- type: 'orders';
15
- };
16
- interface OrderSubscription extends Resource {
17
- number?: string;
18
- status?: string;
19
- frequency?: string;
20
- activate_by_source_order?: boolean;
21
- customer_email?: string;
22
- starts_at?: string;
23
- expires_at?: string;
24
- next_run_at?: string;
25
- occurrencies?: number;
26
- errors_count?: number;
27
- succeeded_on_last_run?: boolean;
28
- options?: object;
29
- market?: Market;
30
- source_order?: Order;
31
- customer?: Customer;
32
- order_copies?: OrderCopy[];
33
- orders?: Order[];
34
- }
35
- interface OrderSubscriptionCreate extends ResourceCreate {
36
- frequency: string;
37
- activate_by_source_order?: boolean;
38
- starts_at?: string;
39
- expires_at?: string;
40
- options?: object;
41
- market?: MarketRel;
42
- source_order: OrderRel;
43
- }
44
- interface OrderSubscriptionUpdate extends ResourceUpdate {
45
- expires_at?: string;
46
- _activate?: boolean;
47
- _deactivate?: boolean;
48
- _cancel?: boolean;
49
- }
50
- declare class OrderSubscriptions extends ApiResource {
51
- static readonly TYPE: 'order_subscriptions';
52
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderSubscription>>;
53
- create(resource: OrderSubscriptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
54
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
55
- update(resource: OrderSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
56
- delete(id: string, options?: ResourcesConfig): Promise<void>;
57
- isOrderSubscription(resource: any): resource is OrderSubscription;
58
- relationship(id: string | ResourceId): OrderSubscriptionRel;
59
- type(): string;
60
- }
61
- export default OrderSubscriptions;
62
- export { OrderSubscription, OrderSubscriptionCreate, OrderSubscriptionUpdate };
@@ -1 +0,0 @@
1
- import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isOrderSubscription(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="order_subscriptions";export default t;
@@ -1,19 +0,0 @@
1
- import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { Market } from './markets';
4
- declare type OrderValidationRuleRel = ResourceId & {
5
- type: typeof OrderValidationRules.TYPE;
6
- };
7
- interface OrderValidationRule extends Resource {
8
- market?: Market;
9
- }
10
- declare class OrderValidationRules extends ApiResource {
11
- static readonly TYPE: 'order_validation_rules';
12
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderValidationRule>>;
13
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderValidationRule>;
14
- isOrderValidationRule(resource: any): resource is OrderValidationRule;
15
- relationship(id: string | ResourceId): OrderValidationRuleRel;
16
- type(): string;
17
- }
18
- export default OrderValidationRules;
19
- export { OrderValidationRule };
@@ -1 +0,0 @@
1
- import{ApiResource as s}from"../resource";class t extends s{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async retrieve(e,r,i){return this.resources.retrieve({type:t.TYPE,id:e},r,i)}isOrderValidationRule(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="order_validation_rules";export default t;
@@ -1,251 +0,0 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { Market } from './markets';
4
- import { Customer } from './customers';
5
- import { Address } from './addresses';
6
- import { PaymentMethod } from './payment_methods';
7
- import { CustomerPaymentSource } from './customer_payment_sources';
8
- import { AdyenPayment } from './adyen_payments';
9
- import { BraintreePayment } from './braintree_payments';
10
- import { CheckoutComPayment } from './checkout_com_payments';
11
- import { ExternalPayment } from './external_payments';
12
- import { PaypalPayment } from './paypal_payments';
13
- import { StripePayment } from './stripe_payments';
14
- import { WireTransfer } from './wire_transfers';
15
- import { LineItem } from './line_items';
16
- import { Shipment } from './shipments';
17
- import { Authorization } from './authorizations';
18
- import { Void } from './voids';
19
- import { Capture } from './captures';
20
- import { Refund } from './refunds';
21
- import { OrderSubscription } from './order_subscriptions';
22
- import { OrderCopy } from './order_copies';
23
- import { Attachment } from './attachments';
24
- declare type OrderRel = ResourceId & {
25
- type: typeof Orders.TYPE;
26
- };
27
- declare type MarketRel = ResourceId & {
28
- type: 'markets';
29
- };
30
- declare type CustomerRel = ResourceId & {
31
- type: 'customers';
32
- };
33
- declare type AddressRel = ResourceId & {
34
- type: 'addresses';
35
- };
36
- declare type PaymentMethodRel = ResourceId & {
37
- type: 'payment_methods';
38
- };
39
- declare type AdyenPaymentRel = ResourceId & {
40
- type: 'adyen_payments';
41
- };
42
- declare type BraintreePaymentRel = ResourceId & {
43
- type: 'braintree_payments';
44
- };
45
- declare type CheckoutComPaymentRel = ResourceId & {
46
- type: 'checkout_com_payments';
47
- };
48
- declare type ExternalPaymentRel = ResourceId & {
49
- type: 'external_payments';
50
- };
51
- declare type PaypalPaymentRel = ResourceId & {
52
- type: 'paypal_payments';
53
- };
54
- declare type StripePaymentRel = ResourceId & {
55
- type: 'stripe_payments';
56
- };
57
- declare type WireTransferRel = ResourceId & {
58
- type: 'wire_transfers';
59
- };
60
- interface Order extends Resource {
61
- number?: number;
62
- autorefresh?: boolean;
63
- status?: string;
64
- payment_status?: string;
65
- fulfillment_status?: string;
66
- guest?: boolean;
67
- editable?: boolean;
68
- customer_email?: string;
69
- language_code?: string;
70
- currency_code?: string;
71
- tax_included?: boolean;
72
- tax_rate?: number;
73
- freight_taxable?: boolean;
74
- requires_billing_info?: boolean;
75
- country_code?: string;
76
- shipping_country_code_lock?: string;
77
- coupon_code?: string;
78
- gift_card_code?: string;
79
- gift_card_or_coupon_code?: string;
80
- subtotal_amount_cents?: number;
81
- subtotal_amount_float?: number;
82
- formatted_subtotal_amount?: string;
83
- shipping_amount_cents?: number;
84
- shipping_amount_float?: number;
85
- formatted_shipping_amount?: string;
86
- payment_method_amount_cents?: number;
87
- payment_method_amount_float?: number;
88
- formatted_payment_method_amount?: string;
89
- discount_amount_cents?: number;
90
- discount_amount_float?: number;
91
- formatted_discount_amount?: string;
92
- adjustment_amount_cents?: number;
93
- adjustment_amount_float?: number;
94
- formatted_adjustment_amount?: string;
95
- gift_card_amount_cents?: number;
96
- gift_card_amount_float?: number;
97
- formatted_gift_card_amount?: string;
98
- total_tax_amount_cents?: number;
99
- total_tax_amount_float?: number;
100
- formatted_total_tax_amount?: string;
101
- subtotal_tax_amount_cents?: number;
102
- subtotal_tax_amount_float?: number;
103
- formatted_subtotal_tax_amount?: string;
104
- shipping_tax_amount_cents?: number;
105
- shipping_tax_amount_float?: number;
106
- formatted_shipping_tax_amount?: string;
107
- payment_method_tax_amount_cents?: number;
108
- payment_method_tax_amount_float?: number;
109
- formatted_payment_method_tax_amount?: string;
110
- adjustment_tax_amount_cents?: number;
111
- adjustment_tax_amount_float?: number;
112
- formatted_adjustment_tax_amount?: string;
113
- total_amount_cents?: number;
114
- total_amount_float?: number;
115
- formatted_total_amount?: string;
116
- total_taxable_amount_cents?: number;
117
- total_taxable_amount_float?: number;
118
- formatted_total_taxable_amount?: string;
119
- subtotal_taxable_amount_cents?: number;
120
- subtotal_taxable_amount_float?: number;
121
- formatted_subtotal_taxable_amount?: string;
122
- shipping_taxable_amount_cents?: number;
123
- shipping_taxable_amount_float?: number;
124
- formatted_shipping_taxable_amount?: string;
125
- payment_method_taxable_amount_cents?: number;
126
- payment_method_taxable_amount_float?: number;
127
- formatted_payment_method_taxable_amount?: string;
128
- adjustment_taxable_amount_cents?: number;
129
- adjustment_taxable_amount_float?: number;
130
- formatted_adjustment_taxable_amount?: string;
131
- total_amount_with_taxes_cents?: number;
132
- total_amount_with_taxes_float?: number;
133
- formatted_total_amount_with_taxes?: string;
134
- fees_amount_cents?: number;
135
- fees_amount_float?: number;
136
- formatted_fees_amount?: string;
137
- duty_amount_cents?: number;
138
- duty_amount_float?: number;
139
- formatted_duty_amount?: string;
140
- skus_count?: number;
141
- line_item_options_count?: number;
142
- shipments_count?: number;
143
- payment_source_details?: object;
144
- token?: string;
145
- cart_url?: string;
146
- return_url?: string;
147
- terms_url?: string;
148
- privacy_url?: string;
149
- checkout_url?: string;
150
- placed_at?: string;
151
- approved_at?: string;
152
- cancelled_at?: string;
153
- payment_updated_at?: string;
154
- fulfillment_updated_at?: string;
155
- refreshed_at?: string;
156
- archived_at?: string;
157
- expires_at?: string;
158
- market?: Market;
159
- customer?: Customer;
160
- shipping_address?: Address;
161
- billing_address?: Address;
162
- available_payment_methods?: PaymentMethod[];
163
- available_customer_payment_sources?: CustomerPaymentSource[];
164
- payment_method?: PaymentMethod;
165
- payment_source?: AdyenPayment | BraintreePayment | CheckoutComPayment | ExternalPayment | PaypalPayment | StripePayment | WireTransfer;
166
- line_items?: LineItem[];
167
- shipments?: Shipment[];
168
- transactions?: (Authorization | Void | Capture | Refund)[];
169
- authorizations?: Authorization[];
170
- captures?: Capture[];
171
- voids?: Void[];
172
- refunds?: Refund[];
173
- order_subscriptions?: OrderSubscription[];
174
- order_copies?: OrderCopy[];
175
- attachments?: Attachment[];
176
- }
177
- interface OrderCreate extends ResourceCreate {
178
- autorefresh?: boolean;
179
- guest?: boolean;
180
- customer_email?: string;
181
- customer_password?: string;
182
- language_code?: string;
183
- shipping_country_code_lock?: string;
184
- coupon_code?: string;
185
- gift_card_code?: string;
186
- gift_card_or_coupon_code?: string;
187
- cart_url?: string;
188
- return_url?: string;
189
- terms_url?: string;
190
- privacy_url?: string;
191
- market?: MarketRel;
192
- customer?: CustomerRel;
193
- shipping_address?: AddressRel;
194
- billing_address?: AddressRel;
195
- payment_method?: PaymentMethodRel;
196
- payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
197
- }
198
- interface OrderUpdate extends ResourceUpdate {
199
- autorefresh?: boolean;
200
- guest?: boolean;
201
- customer_email?: string;
202
- customer_password?: string;
203
- language_code?: string;
204
- shipping_country_code_lock?: string;
205
- coupon_code?: string;
206
- gift_card_code?: string;
207
- gift_card_or_coupon_code?: string;
208
- cart_url?: string;
209
- return_url?: string;
210
- terms_url?: string;
211
- privacy_url?: string;
212
- _archive?: boolean;
213
- _unarchive?: boolean;
214
- _place?: boolean;
215
- _cancel?: boolean;
216
- _approve?: boolean;
217
- _approve_and_capture?: boolean;
218
- _authorize?: boolean;
219
- _authorization_amount_cents?: number;
220
- _capture?: boolean;
221
- _refund?: boolean;
222
- _update_taxes?: boolean;
223
- _billing_address_clone_id?: string;
224
- _shipping_address_clone_id?: string;
225
- _customer_payment_source_id?: string;
226
- _shipping_address_same_as_billing?: boolean;
227
- _billing_address_same_as_shipping?: boolean;
228
- _save_payment_source_to_customer_wallet?: boolean;
229
- _save_shipping_address_to_customer_address_book?: boolean;
230
- _save_billing_address_to_customer_address_book?: boolean;
231
- _refresh?: boolean;
232
- market?: MarketRel;
233
- customer?: CustomerRel;
234
- shipping_address?: AddressRel;
235
- billing_address?: AddressRel;
236
- payment_method?: PaymentMethodRel;
237
- payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
238
- }
239
- declare class Orders extends ApiResource {
240
- static readonly TYPE: 'orders';
241
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Order>>;
242
- create(resource: OrderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
243
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
244
- update(resource: OrderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
245
- delete(id: string, options?: ResourcesConfig): Promise<void>;
246
- isOrder(resource: any): resource is Order;
247
- relationship(id: string | ResourceId): OrderRel;
248
- type(): string;
249
- }
250
- export default Orders;
251
- export { Order, OrderCreate, OrderUpdate };
@@ -1 +0,0 @@
1
- import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isOrder(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="orders";export default t;
@@ -1 +0,0 @@
1
- import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isPackage(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="packages";export default t;