@commercelayer/sdk 4.2.0-beta.3 → 4.3.0-beta.3

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 (404) hide show
  1. package/LICENSE +1 -1
  2. package/lib/cjs/api.d.ts +1 -1
  3. package/lib/cjs/client.d.ts +4 -3
  4. package/lib/cjs/commercelayer.js +1 -1
  5. package/lib/cjs/jsonapi.js +1 -1
  6. package/lib/cjs/model.d.ts +1 -1
  7. package/lib/cjs/resource.d.ts +8 -4
  8. package/lib/cjs/resources/addresses.d.ts +5 -5
  9. package/lib/cjs/resources/addresses.js +1 -1
  10. package/lib/cjs/resources/adjustments.d.ts +4 -4
  11. package/lib/cjs/resources/adjustments.js +1 -1
  12. package/lib/cjs/resources/adyen_gateways.d.ts +5 -5
  13. package/lib/cjs/resources/adyen_gateways.js +1 -1
  14. package/lib/cjs/resources/adyen_payments.d.ts +5 -5
  15. package/lib/cjs/resources/adyen_payments.js +1 -1
  16. package/lib/cjs/resources/application.d.ts +4 -4
  17. package/lib/cjs/resources/application.js +1 -1
  18. package/lib/cjs/resources/attachments.d.ts +34 -34
  19. package/lib/cjs/resources/attachments.js +1 -1
  20. package/lib/cjs/resources/authorizations.d.ts +4 -4
  21. package/lib/cjs/resources/authorizations.js +1 -1
  22. package/lib/cjs/resources/avalara_accounts.d.ts +5 -5
  23. package/lib/cjs/resources/avalara_accounts.js +1 -1
  24. package/lib/cjs/resources/billing_info_validation_rules.d.ts +5 -5
  25. package/lib/cjs/resources/billing_info_validation_rules.js +1 -1
  26. package/lib/cjs/resources/bing_geocoders.d.ts +4 -4
  27. package/lib/cjs/resources/bing_geocoders.js +1 -1
  28. package/lib/cjs/resources/braintree_gateways.d.ts +5 -5
  29. package/lib/cjs/resources/braintree_gateways.js +1 -1
  30. package/lib/cjs/resources/braintree_payments.d.ts +5 -5
  31. package/lib/cjs/resources/braintree_payments.js +1 -1
  32. package/lib/cjs/resources/bundles.d.ts +11 -6
  33. package/lib/cjs/resources/bundles.js +1 -1
  34. package/lib/cjs/resources/captures.d.ts +4 -4
  35. package/lib/cjs/resources/captures.js +1 -1
  36. package/lib/cjs/resources/carrier_accounts.d.ts +4 -4
  37. package/lib/cjs/resources/carrier_accounts.js +1 -1
  38. package/lib/cjs/resources/checkout_com_gateways.d.ts +5 -5
  39. package/lib/cjs/resources/checkout_com_gateways.js +1 -1
  40. package/lib/cjs/resources/checkout_com_payments.d.ts +5 -5
  41. package/lib/cjs/resources/checkout_com_payments.js +1 -1
  42. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +11 -11
  43. package/lib/cjs/resources/coupon_codes_promotion_rules.js +1 -1
  44. package/lib/cjs/resources/coupon_recipients.d.ts +5 -5
  45. package/lib/cjs/resources/coupon_recipients.js +1 -1
  46. package/lib/cjs/resources/coupons.d.ts +5 -5
  47. package/lib/cjs/resources/coupons.js +1 -1
  48. package/lib/cjs/resources/customer_addresses.d.ts +6 -6
  49. package/lib/cjs/resources/customer_addresses.js +1 -1
  50. package/lib/cjs/resources/customer_groups.d.ts +4 -4
  51. package/lib/cjs/resources/customer_groups.js +1 -1
  52. package/lib/cjs/resources/customer_password_resets.d.ts +4 -4
  53. package/lib/cjs/resources/customer_password_resets.js +1 -1
  54. package/lib/cjs/resources/customer_payment_sources.d.ts +13 -13
  55. package/lib/cjs/resources/customer_payment_sources.js +1 -1
  56. package/lib/cjs/resources/customer_subscriptions.d.ts +4 -4
  57. package/lib/cjs/resources/customer_subscriptions.js +1 -1
  58. package/lib/cjs/resources/customers.d.ts +5 -5
  59. package/lib/cjs/resources/customers.js +1 -1
  60. package/lib/cjs/resources/delivery_lead_times.d.ts +6 -6
  61. package/lib/cjs/resources/delivery_lead_times.js +1 -1
  62. package/lib/cjs/resources/event_callbacks.d.ts +4 -4
  63. package/lib/cjs/resources/event_callbacks.js +1 -1
  64. package/lib/cjs/resources/external_gateways.d.ts +4 -4
  65. package/lib/cjs/resources/external_gateways.js +1 -1
  66. package/lib/cjs/resources/external_payments.d.ts +5 -5
  67. package/lib/cjs/resources/external_payments.js +1 -1
  68. package/lib/cjs/resources/external_promotions.d.ts +12 -9
  69. package/lib/cjs/resources/external_promotions.js +1 -1
  70. package/lib/cjs/resources/external_tax_calculators.d.ts +5 -5
  71. package/lib/cjs/resources/external_tax_calculators.js +1 -1
  72. package/lib/cjs/resources/fixed_amount_promotions.d.ts +12 -9
  73. package/lib/cjs/resources/fixed_amount_promotions.js +1 -1
  74. package/lib/cjs/resources/fixed_price_promotions.d.ts +13 -10
  75. package/lib/cjs/resources/fixed_price_promotions.js +1 -1
  76. package/lib/cjs/resources/free_gift_promotions.d.ts +13 -10
  77. package/lib/cjs/resources/free_gift_promotions.js +1 -1
  78. package/lib/cjs/resources/free_shipping_promotions.d.ts +12 -9
  79. package/lib/cjs/resources/free_shipping_promotions.js +1 -1
  80. package/lib/cjs/resources/geocoders.d.ts +4 -4
  81. package/lib/cjs/resources/geocoders.js +1 -1
  82. package/lib/cjs/resources/gift_card_recipients.d.ts +5 -5
  83. package/lib/cjs/resources/gift_card_recipients.js +1 -1
  84. package/lib/cjs/resources/gift_cards.d.ts +7 -7
  85. package/lib/cjs/resources/gift_cards.js +1 -1
  86. package/lib/cjs/resources/google_geocoders.d.ts +4 -4
  87. package/lib/cjs/resources/google_geocoders.js +1 -1
  88. package/lib/cjs/resources/imports.d.ts +4 -4
  89. package/lib/cjs/resources/imports.js +1 -1
  90. package/lib/cjs/resources/in_stock_subscriptions.d.ts +7 -7
  91. package/lib/cjs/resources/in_stock_subscriptions.js +1 -1
  92. package/lib/cjs/resources/inventory_models.d.ts +4 -4
  93. package/lib/cjs/resources/inventory_models.js +1 -1
  94. package/lib/cjs/resources/inventory_return_locations.d.ts +6 -6
  95. package/lib/cjs/resources/inventory_return_locations.js +1 -1
  96. package/lib/cjs/resources/inventory_stock_locations.d.ts +6 -6
  97. package/lib/cjs/resources/inventory_stock_locations.js +1 -1
  98. package/lib/cjs/resources/klarna_gateways.d.ts +5 -5
  99. package/lib/cjs/resources/klarna_gateways.js +1 -1
  100. package/lib/cjs/resources/klarna_payments.d.ts +5 -5
  101. package/lib/cjs/resources/klarna_payments.js +1 -1
  102. package/lib/cjs/resources/line_item_options.d.ts +6 -6
  103. package/lib/cjs/resources/line_item_options.js +1 -1
  104. package/lib/cjs/resources/line_items.d.ts +15 -15
  105. package/lib/cjs/resources/line_items.js +1 -1
  106. package/lib/cjs/resources/manual_gateways.d.ts +4 -4
  107. package/lib/cjs/resources/manual_gateways.js +1 -1
  108. package/lib/cjs/resources/manual_tax_calculators.d.ts +6 -6
  109. package/lib/cjs/resources/manual_tax_calculators.js +1 -1
  110. package/lib/cjs/resources/markets.d.ts +9 -9
  111. package/lib/cjs/resources/markets.js +1 -1
  112. package/lib/cjs/resources/merchants.d.ts +5 -5
  113. package/lib/cjs/resources/merchants.js +1 -1
  114. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +10 -10
  115. package/lib/cjs/resources/order_amount_promotion_rules.js +1 -1
  116. package/lib/cjs/resources/order_copies.d.ts +5 -5
  117. package/lib/cjs/resources/order_copies.js +1 -1
  118. package/lib/cjs/resources/order_subscriptions.d.ts +6 -6
  119. package/lib/cjs/resources/order_subscriptions.js +1 -1
  120. package/lib/cjs/resources/order_validation_rules.d.ts +4 -4
  121. package/lib/cjs/resources/order_validation_rules.js +1 -1
  122. package/lib/cjs/resources/orders.d.ts +16 -16
  123. package/lib/cjs/resources/orders.js +1 -1
  124. package/lib/cjs/resources/organization.d.ts +4 -4
  125. package/lib/cjs/resources/organization.js +1 -1
  126. package/lib/cjs/resources/packages.d.ts +5 -5
  127. package/lib/cjs/resources/packages.js +1 -1
  128. package/lib/cjs/resources/parcel_line_items.d.ts +6 -6
  129. package/lib/cjs/resources/parcel_line_items.js +1 -1
  130. package/lib/cjs/resources/parcels.d.ts +6 -6
  131. package/lib/cjs/resources/parcels.js +1 -1
  132. package/lib/cjs/resources/payment_gateways.d.ts +4 -4
  133. package/lib/cjs/resources/payment_gateways.js +1 -1
  134. package/lib/cjs/resources/payment_methods.d.ts +10 -7
  135. package/lib/cjs/resources/payment_methods.js +1 -1
  136. package/lib/cjs/resources/paypal_gateways.d.ts +4 -4
  137. package/lib/cjs/resources/paypal_gateways.js +1 -1
  138. package/lib/cjs/resources/paypal_payments.d.ts +5 -5
  139. package/lib/cjs/resources/paypal_payments.js +1 -1
  140. package/lib/cjs/resources/percentage_discount_promotions.d.ts +13 -10
  141. package/lib/cjs/resources/percentage_discount_promotions.js +1 -1
  142. package/lib/cjs/resources/price_lists.d.ts +4 -4
  143. package/lib/cjs/resources/price_lists.js +1 -1
  144. package/lib/cjs/resources/prices.d.ts +6 -6
  145. package/lib/cjs/resources/prices.js +1 -1
  146. package/lib/cjs/resources/promotion_rules.d.ts +4 -4
  147. package/lib/cjs/resources/promotion_rules.js +1 -1
  148. package/lib/cjs/resources/promotions.d.ts +5 -4
  149. package/lib/cjs/resources/promotions.js +1 -1
  150. package/lib/cjs/resources/refunds.d.ts +4 -4
  151. package/lib/cjs/resources/refunds.js +1 -1
  152. package/lib/cjs/resources/return_line_items.d.ts +6 -6
  153. package/lib/cjs/resources/return_line_items.js +1 -1
  154. package/lib/cjs/resources/returns.d.ts +6 -6
  155. package/lib/cjs/resources/returns.js +1 -1
  156. package/lib/cjs/resources/shipments.d.ts +5 -5
  157. package/lib/cjs/resources/shipments.js +1 -1
  158. package/lib/cjs/resources/shipping_categories.d.ts +4 -4
  159. package/lib/cjs/resources/shipping_categories.js +1 -1
  160. package/lib/cjs/resources/shipping_methods.d.ts +11 -9
  161. package/lib/cjs/resources/shipping_methods.js +1 -1
  162. package/lib/cjs/resources/shipping_zones.d.ts +4 -4
  163. package/lib/cjs/resources/shipping_zones.js +1 -1
  164. package/lib/cjs/resources/sku_list_items.d.ts +6 -6
  165. package/lib/cjs/resources/sku_list_items.js +1 -1
  166. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +11 -11
  167. package/lib/cjs/resources/sku_list_promotion_rules.js +1 -1
  168. package/lib/cjs/resources/sku_lists.d.ts +4 -4
  169. package/lib/cjs/resources/sku_lists.js +1 -1
  170. package/lib/cjs/resources/sku_options.d.ts +8 -5
  171. package/lib/cjs/resources/sku_options.js +1 -1
  172. package/lib/cjs/resources/skus.d.ts +5 -5
  173. package/lib/cjs/resources/skus.js +1 -1
  174. package/lib/cjs/resources/stock_items.d.ts +6 -6
  175. package/lib/cjs/resources/stock_items.js +1 -1
  176. package/lib/cjs/resources/stock_line_items.d.ts +4 -4
  177. package/lib/cjs/resources/stock_line_items.js +1 -1
  178. package/lib/cjs/resources/stock_locations.d.ts +5 -5
  179. package/lib/cjs/resources/stock_locations.js +1 -1
  180. package/lib/cjs/resources/stock_transfers.d.ts +8 -8
  181. package/lib/cjs/resources/stock_transfers.js +1 -1
  182. package/lib/cjs/resources/stripe_gateways.d.ts +4 -4
  183. package/lib/cjs/resources/stripe_gateways.js +1 -1
  184. package/lib/cjs/resources/stripe_payments.d.ts +5 -5
  185. package/lib/cjs/resources/stripe_payments.js +1 -1
  186. package/lib/cjs/resources/tax_calculators.d.ts +4 -4
  187. package/lib/cjs/resources/tax_calculators.js +1 -1
  188. package/lib/cjs/resources/tax_categories.d.ts +9 -9
  189. package/lib/cjs/resources/tax_categories.js +1 -1
  190. package/lib/cjs/resources/tax_rules.d.ts +5 -5
  191. package/lib/cjs/resources/tax_rules.js +1 -1
  192. package/lib/cjs/resources/taxjar_accounts.d.ts +5 -5
  193. package/lib/cjs/resources/taxjar_accounts.js +1 -1
  194. package/lib/cjs/resources/transactions.d.ts +4 -4
  195. package/lib/cjs/resources/transactions.js +1 -1
  196. package/lib/cjs/resources/voids.d.ts +4 -4
  197. package/lib/cjs/resources/voids.js +1 -1
  198. package/lib/cjs/resources/webhooks.d.ts +4 -4
  199. package/lib/cjs/resources/webhooks.js +1 -1
  200. package/lib/cjs/resources/wire_transfers.d.ts +5 -5
  201. package/lib/cjs/resources/wire_transfers.js +1 -1
  202. package/lib/esm/api.d.ts +1 -1
  203. package/lib/esm/client.d.ts +4 -3
  204. package/lib/esm/commercelayer.js +1 -1
  205. package/lib/esm/jsonapi.js +1 -1
  206. package/lib/esm/model.d.ts +1 -1
  207. package/lib/esm/resource.d.ts +8 -4
  208. package/lib/esm/resources/addresses.d.ts +5 -5
  209. package/lib/esm/resources/addresses.js +1 -1
  210. package/lib/esm/resources/adjustments.d.ts +4 -4
  211. package/lib/esm/resources/adjustments.js +1 -1
  212. package/lib/esm/resources/adyen_gateways.d.ts +5 -5
  213. package/lib/esm/resources/adyen_gateways.js +1 -1
  214. package/lib/esm/resources/adyen_payments.d.ts +5 -5
  215. package/lib/esm/resources/adyen_payments.js +1 -1
  216. package/lib/esm/resources/application.d.ts +4 -4
  217. package/lib/esm/resources/application.js +1 -1
  218. package/lib/esm/resources/attachments.d.ts +34 -34
  219. package/lib/esm/resources/attachments.js +1 -1
  220. package/lib/esm/resources/authorizations.d.ts +4 -4
  221. package/lib/esm/resources/authorizations.js +1 -1
  222. package/lib/esm/resources/avalara_accounts.d.ts +5 -5
  223. package/lib/esm/resources/avalara_accounts.js +1 -1
  224. package/lib/esm/resources/billing_info_validation_rules.d.ts +5 -5
  225. package/lib/esm/resources/billing_info_validation_rules.js +1 -1
  226. package/lib/esm/resources/bing_geocoders.d.ts +4 -4
  227. package/lib/esm/resources/bing_geocoders.js +1 -1
  228. package/lib/esm/resources/braintree_gateways.d.ts +5 -5
  229. package/lib/esm/resources/braintree_gateways.js +1 -1
  230. package/lib/esm/resources/braintree_payments.d.ts +5 -5
  231. package/lib/esm/resources/braintree_payments.js +1 -1
  232. package/lib/esm/resources/bundles.d.ts +11 -6
  233. package/lib/esm/resources/bundles.js +1 -1
  234. package/lib/esm/resources/captures.d.ts +4 -4
  235. package/lib/esm/resources/captures.js +1 -1
  236. package/lib/esm/resources/carrier_accounts.d.ts +4 -4
  237. package/lib/esm/resources/carrier_accounts.js +1 -1
  238. package/lib/esm/resources/checkout_com_gateways.d.ts +5 -5
  239. package/lib/esm/resources/checkout_com_gateways.js +1 -1
  240. package/lib/esm/resources/checkout_com_payments.d.ts +5 -5
  241. package/lib/esm/resources/checkout_com_payments.js +1 -1
  242. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +11 -11
  243. package/lib/esm/resources/coupon_codes_promotion_rules.js +1 -1
  244. package/lib/esm/resources/coupon_recipients.d.ts +5 -5
  245. package/lib/esm/resources/coupon_recipients.js +1 -1
  246. package/lib/esm/resources/coupons.d.ts +5 -5
  247. package/lib/esm/resources/coupons.js +1 -1
  248. package/lib/esm/resources/customer_addresses.d.ts +6 -6
  249. package/lib/esm/resources/customer_addresses.js +1 -1
  250. package/lib/esm/resources/customer_groups.d.ts +4 -4
  251. package/lib/esm/resources/customer_groups.js +1 -1
  252. package/lib/esm/resources/customer_password_resets.d.ts +4 -4
  253. package/lib/esm/resources/customer_password_resets.js +1 -1
  254. package/lib/esm/resources/customer_payment_sources.d.ts +13 -13
  255. package/lib/esm/resources/customer_payment_sources.js +1 -1
  256. package/lib/esm/resources/customer_subscriptions.d.ts +4 -4
  257. package/lib/esm/resources/customer_subscriptions.js +1 -1
  258. package/lib/esm/resources/customers.d.ts +5 -5
  259. package/lib/esm/resources/customers.js +1 -1
  260. package/lib/esm/resources/delivery_lead_times.d.ts +6 -6
  261. package/lib/esm/resources/delivery_lead_times.js +1 -1
  262. package/lib/esm/resources/event_callbacks.d.ts +4 -4
  263. package/lib/esm/resources/event_callbacks.js +1 -1
  264. package/lib/esm/resources/external_gateways.d.ts +4 -4
  265. package/lib/esm/resources/external_gateways.js +1 -1
  266. package/lib/esm/resources/external_payments.d.ts +5 -5
  267. package/lib/esm/resources/external_payments.js +1 -1
  268. package/lib/esm/resources/external_promotions.d.ts +12 -9
  269. package/lib/esm/resources/external_promotions.js +1 -1
  270. package/lib/esm/resources/external_tax_calculators.d.ts +5 -5
  271. package/lib/esm/resources/external_tax_calculators.js +1 -1
  272. package/lib/esm/resources/fixed_amount_promotions.d.ts +12 -9
  273. package/lib/esm/resources/fixed_amount_promotions.js +1 -1
  274. package/lib/esm/resources/fixed_price_promotions.d.ts +13 -10
  275. package/lib/esm/resources/fixed_price_promotions.js +1 -1
  276. package/lib/esm/resources/free_gift_promotions.d.ts +13 -10
  277. package/lib/esm/resources/free_gift_promotions.js +1 -1
  278. package/lib/esm/resources/free_shipping_promotions.d.ts +12 -9
  279. package/lib/esm/resources/free_shipping_promotions.js +1 -1
  280. package/lib/esm/resources/geocoders.d.ts +4 -4
  281. package/lib/esm/resources/geocoders.js +1 -1
  282. package/lib/esm/resources/gift_card_recipients.d.ts +5 -5
  283. package/lib/esm/resources/gift_card_recipients.js +1 -1
  284. package/lib/esm/resources/gift_cards.d.ts +7 -7
  285. package/lib/esm/resources/gift_cards.js +1 -1
  286. package/lib/esm/resources/google_geocoders.d.ts +4 -4
  287. package/lib/esm/resources/google_geocoders.js +1 -1
  288. package/lib/esm/resources/imports.d.ts +4 -4
  289. package/lib/esm/resources/imports.js +1 -1
  290. package/lib/esm/resources/in_stock_subscriptions.d.ts +7 -7
  291. package/lib/esm/resources/in_stock_subscriptions.js +1 -1
  292. package/lib/esm/resources/inventory_models.d.ts +4 -4
  293. package/lib/esm/resources/inventory_models.js +1 -1
  294. package/lib/esm/resources/inventory_return_locations.d.ts +6 -6
  295. package/lib/esm/resources/inventory_return_locations.js +1 -1
  296. package/lib/esm/resources/inventory_stock_locations.d.ts +6 -6
  297. package/lib/esm/resources/inventory_stock_locations.js +1 -1
  298. package/lib/esm/resources/klarna_gateways.d.ts +5 -5
  299. package/lib/esm/resources/klarna_gateways.js +1 -1
  300. package/lib/esm/resources/klarna_payments.d.ts +5 -5
  301. package/lib/esm/resources/klarna_payments.js +1 -1
  302. package/lib/esm/resources/line_item_options.d.ts +6 -6
  303. package/lib/esm/resources/line_item_options.js +1 -1
  304. package/lib/esm/resources/line_items.d.ts +15 -15
  305. package/lib/esm/resources/line_items.js +1 -1
  306. package/lib/esm/resources/manual_gateways.d.ts +4 -4
  307. package/lib/esm/resources/manual_gateways.js +1 -1
  308. package/lib/esm/resources/manual_tax_calculators.d.ts +6 -6
  309. package/lib/esm/resources/manual_tax_calculators.js +1 -1
  310. package/lib/esm/resources/markets.d.ts +9 -9
  311. package/lib/esm/resources/markets.js +1 -1
  312. package/lib/esm/resources/merchants.d.ts +5 -5
  313. package/lib/esm/resources/merchants.js +1 -1
  314. package/lib/esm/resources/order_amount_promotion_rules.d.ts +10 -10
  315. package/lib/esm/resources/order_amount_promotion_rules.js +1 -1
  316. package/lib/esm/resources/order_copies.d.ts +5 -5
  317. package/lib/esm/resources/order_copies.js +1 -1
  318. package/lib/esm/resources/order_subscriptions.d.ts +6 -6
  319. package/lib/esm/resources/order_subscriptions.js +1 -1
  320. package/lib/esm/resources/order_validation_rules.d.ts +4 -4
  321. package/lib/esm/resources/order_validation_rules.js +1 -1
  322. package/lib/esm/resources/orders.d.ts +16 -16
  323. package/lib/esm/resources/orders.js +1 -1
  324. package/lib/esm/resources/organization.d.ts +4 -4
  325. package/lib/esm/resources/organization.js +1 -1
  326. package/lib/esm/resources/packages.d.ts +5 -5
  327. package/lib/esm/resources/packages.js +1 -1
  328. package/lib/esm/resources/parcel_line_items.d.ts +6 -6
  329. package/lib/esm/resources/parcel_line_items.js +1 -1
  330. package/lib/esm/resources/parcels.d.ts +6 -6
  331. package/lib/esm/resources/parcels.js +1 -1
  332. package/lib/esm/resources/payment_gateways.d.ts +4 -4
  333. package/lib/esm/resources/payment_gateways.js +1 -1
  334. package/lib/esm/resources/payment_methods.d.ts +10 -7
  335. package/lib/esm/resources/payment_methods.js +1 -1
  336. package/lib/esm/resources/paypal_gateways.d.ts +4 -4
  337. package/lib/esm/resources/paypal_gateways.js +1 -1
  338. package/lib/esm/resources/paypal_payments.d.ts +5 -5
  339. package/lib/esm/resources/paypal_payments.js +1 -1
  340. package/lib/esm/resources/percentage_discount_promotions.d.ts +13 -10
  341. package/lib/esm/resources/percentage_discount_promotions.js +1 -1
  342. package/lib/esm/resources/price_lists.d.ts +4 -4
  343. package/lib/esm/resources/price_lists.js +1 -1
  344. package/lib/esm/resources/prices.d.ts +6 -6
  345. package/lib/esm/resources/prices.js +1 -1
  346. package/lib/esm/resources/promotion_rules.d.ts +4 -4
  347. package/lib/esm/resources/promotion_rules.js +1 -1
  348. package/lib/esm/resources/promotions.d.ts +5 -4
  349. package/lib/esm/resources/promotions.js +1 -1
  350. package/lib/esm/resources/refunds.d.ts +4 -4
  351. package/lib/esm/resources/refunds.js +1 -1
  352. package/lib/esm/resources/return_line_items.d.ts +6 -6
  353. package/lib/esm/resources/return_line_items.js +1 -1
  354. package/lib/esm/resources/returns.d.ts +6 -6
  355. package/lib/esm/resources/returns.js +1 -1
  356. package/lib/esm/resources/shipments.d.ts +5 -5
  357. package/lib/esm/resources/shipments.js +1 -1
  358. package/lib/esm/resources/shipping_categories.d.ts +4 -4
  359. package/lib/esm/resources/shipping_categories.js +1 -1
  360. package/lib/esm/resources/shipping_methods.d.ts +11 -9
  361. package/lib/esm/resources/shipping_methods.js +1 -1
  362. package/lib/esm/resources/shipping_zones.d.ts +4 -4
  363. package/lib/esm/resources/shipping_zones.js +1 -1
  364. package/lib/esm/resources/sku_list_items.d.ts +6 -6
  365. package/lib/esm/resources/sku_list_items.js +1 -1
  366. package/lib/esm/resources/sku_list_promotion_rules.d.ts +11 -11
  367. package/lib/esm/resources/sku_list_promotion_rules.js +1 -1
  368. package/lib/esm/resources/sku_lists.d.ts +4 -4
  369. package/lib/esm/resources/sku_lists.js +1 -1
  370. package/lib/esm/resources/sku_options.d.ts +8 -5
  371. package/lib/esm/resources/sku_options.js +1 -1
  372. package/lib/esm/resources/skus.d.ts +5 -5
  373. package/lib/esm/resources/skus.js +1 -1
  374. package/lib/esm/resources/stock_items.d.ts +6 -6
  375. package/lib/esm/resources/stock_items.js +1 -1
  376. package/lib/esm/resources/stock_line_items.d.ts +4 -4
  377. package/lib/esm/resources/stock_line_items.js +1 -1
  378. package/lib/esm/resources/stock_locations.d.ts +5 -5
  379. package/lib/esm/resources/stock_locations.js +1 -1
  380. package/lib/esm/resources/stock_transfers.d.ts +8 -8
  381. package/lib/esm/resources/stock_transfers.js +1 -1
  382. package/lib/esm/resources/stripe_gateways.d.ts +4 -4
  383. package/lib/esm/resources/stripe_gateways.js +1 -1
  384. package/lib/esm/resources/stripe_payments.d.ts +5 -5
  385. package/lib/esm/resources/stripe_payments.js +1 -1
  386. package/lib/esm/resources/tax_calculators.d.ts +4 -4
  387. package/lib/esm/resources/tax_calculators.js +1 -1
  388. package/lib/esm/resources/tax_categories.d.ts +9 -9
  389. package/lib/esm/resources/tax_categories.js +1 -1
  390. package/lib/esm/resources/tax_rules.d.ts +5 -5
  391. package/lib/esm/resources/tax_rules.js +1 -1
  392. package/lib/esm/resources/taxjar_accounts.d.ts +5 -5
  393. package/lib/esm/resources/taxjar_accounts.js +1 -1
  394. package/lib/esm/resources/transactions.d.ts +4 -4
  395. package/lib/esm/resources/transactions.js +1 -1
  396. package/lib/esm/resources/voids.d.ts +4 -4
  397. package/lib/esm/resources/voids.js +1 -1
  398. package/lib/esm/resources/webhooks.d.ts +4 -4
  399. package/lib/esm/resources/webhooks.js +1 -1
  400. package/lib/esm/resources/wire_transfers.d.ts +5 -5
  401. package/lib/esm/resources/wire_transfers.js +1 -1
  402. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  403. package/lib/tsconfig.tsbuildinfo +1 -1
  404. package/package.json +8 -8
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Merchants extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Merchants.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Merchants.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Merchants.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Merchants.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Merchants.TYPE,id:e},t)}isMerchant(e){return e.type&&e.type===Merchants.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Merchants.TYPE}:{id:e.id,type:Merchants.TYPE}}type(){return Merchants.TYPE}}Merchants.TYPE="merchants",exports.default=Merchants;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Merchants extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Merchants.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Merchants.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Merchants.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Merchants.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Merchants.TYPE,id:e},t)}isMerchant(e){return e.type&&e.type===Merchants.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Merchants.TYPE}:{id:e.id,type:Merchants.TYPE}}type(){return Merchants.TYPE}}Merchants.TYPE="merchants",exports.default=Merchants;
@@ -1,30 +1,30 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
+ import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
3
  import { PercentageDiscountPromotion } from './percentage_discount_promotions';
4
4
  import { FreeShippingPromotion } from './free_shipping_promotions';
5
5
  import { FixedAmountPromotion } from './fixed_amount_promotions';
6
6
  import { FreeGiftPromotion } from './free_gift_promotions';
7
7
  import { FixedPricePromotion } from './fixed_price_promotions';
8
8
  import { ExternalPromotion } from './external_promotions';
9
- declare type OrderAmountPromotionRuleRel = ResourceId & {
9
+ declare type OrderAmountPromotionRuleRel = ResourceRel & {
10
10
  type: typeof OrderAmountPromotionRules.TYPE;
11
11
  };
12
- declare type PercentageDiscountPromotionRel = ResourceId & {
12
+ declare type PercentageDiscountPromotionRel = ResourceRel & {
13
13
  type: 'percentage_discount_promotions';
14
14
  };
15
- declare type FreeShippingPromotionRel = ResourceId & {
15
+ declare type FreeShippingPromotionRel = ResourceRel & {
16
16
  type: 'free_shipping_promotions';
17
17
  };
18
- declare type FixedAmountPromotionRel = ResourceId & {
18
+ declare type FixedAmountPromotionRel = ResourceRel & {
19
19
  type: 'fixed_amount_promotions';
20
20
  };
21
- declare type FreeGiftPromotionRel = ResourceId & {
21
+ declare type FreeGiftPromotionRel = ResourceRel & {
22
22
  type: 'free_gift_promotions';
23
23
  };
24
- declare type FixedPricePromotionRel = ResourceId & {
24
+ declare type FixedPricePromotionRel = ResourceRel & {
25
25
  type: 'fixed_price_promotions';
26
26
  };
27
- declare type ExternalPromotionRel = ResourceId & {
27
+ declare type ExternalPromotionRel = ResourceRel & {
28
28
  type: 'external_promotions';
29
29
  };
30
30
  interface OrderAmountPromotionRule extends Resource {
@@ -49,7 +49,7 @@ declare class OrderAmountPromotionRules extends ApiResource {
49
49
  update(resource: OrderAmountPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
50
50
  delete(id: string, options?: ResourcesConfig): Promise<void>;
51
51
  isOrderAmountPromotionRule(resource: any): resource is OrderAmountPromotionRule;
52
- relationship(id: string | ResourceId): OrderAmountPromotionRuleRel;
52
+ relationship(id: string | ResourceId | null): OrderAmountPromotionRuleRel;
53
53
  type(): string;
54
54
  }
55
55
  export default OrderAmountPromotionRules;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderAmountPromotionRules extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:OrderAmountPromotionRules.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderAmountPromotionRules.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:OrderAmountPromotionRules.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:OrderAmountPromotionRules.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:OrderAmountPromotionRules.TYPE,id:e},s)}isOrderAmountPromotionRule(e){return e.type&&e.type===OrderAmountPromotionRules.TYPE}relationship(e){return typeof e=="string"?{id:e,type:OrderAmountPromotionRules.TYPE}:{id:e.id,type:OrderAmountPromotionRules.TYPE}}type(){return OrderAmountPromotionRules.TYPE}}OrderAmountPromotionRules.TYPE="order_amount_promotion_rules",exports.default=OrderAmountPromotionRules;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderAmountPromotionRules extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:OrderAmountPromotionRules.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderAmountPromotionRules.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:OrderAmountPromotionRules.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:OrderAmountPromotionRules.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:OrderAmountPromotionRules.TYPE,id:e},s)}isOrderAmountPromotionRule(e){return e.type&&e.type===OrderAmountPromotionRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:OrderAmountPromotionRules.TYPE}:{id:e.id,type:OrderAmountPromotionRules.TYPE}}type(){return OrderAmountPromotionRules.TYPE}}OrderAmountPromotionRules.TYPE="order_amount_promotion_rules",exports.default=OrderAmountPromotionRules;
@@ -1,11 +1,11 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
+ import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
3
  import { Order } from './orders';
4
4
  import { OrderSubscription } from './order_subscriptions';
5
- declare type OrderCopyRel = ResourceId & {
5
+ declare type OrderCopyRel = ResourceRel & {
6
6
  type: typeof OrderCopies.TYPE;
7
7
  };
8
- declare type OrderRel = ResourceId & {
8
+ declare type OrderRel = ResourceRel & {
9
9
  type: 'orders';
10
10
  };
11
11
  interface OrderCopy extends Resource {
@@ -35,7 +35,7 @@ declare class OrderCopies extends ApiResource {
35
35
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderCopy>;
36
36
  delete(id: string, options?: ResourcesConfig): Promise<void>;
37
37
  isOrderCopy(resource: any): resource is OrderCopy;
38
- relationship(id: string | ResourceId): OrderCopyRel;
38
+ relationship(id: string | ResourceId | null): OrderCopyRel;
39
39
  type(): string;
40
40
  }
41
41
  export default OrderCopies;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderCopies extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:OrderCopies.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderCopies.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:OrderCopies.TYPE,id:e},t,s)}async delete(e,t){await this.resources.delete({type:OrderCopies.TYPE,id:e},t)}isOrderCopy(e){return e.type&&e.type===OrderCopies.TYPE}relationship(e){return typeof e=="string"?{id:e,type:OrderCopies.TYPE}:{id:e.id,type:OrderCopies.TYPE}}type(){return OrderCopies.TYPE}}OrderCopies.TYPE="order_copies",exports.default=OrderCopies;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderCopies extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:OrderCopies.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderCopies.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:OrderCopies.TYPE,id:e},t,s)}async delete(e,t){await this.resources.delete({type:OrderCopies.TYPE,id:e},t)}isOrderCopy(e){return e.type&&e.type===OrderCopies.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:OrderCopies.TYPE}:{id:e.id,type:OrderCopies.TYPE}}type(){return OrderCopies.TYPE}}OrderCopies.TYPE="order_copies",exports.default=OrderCopies;
@@ -1,16 +1,16 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
+ import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
3
  import { Market } from './markets';
4
4
  import { Order } from './orders';
5
5
  import { Customer } from './customers';
6
6
  import { OrderCopy } from './order_copies';
7
- declare type OrderSubscriptionRel = ResourceId & {
7
+ declare type OrderSubscriptionRel = ResourceRel & {
8
8
  type: typeof OrderSubscriptions.TYPE;
9
9
  };
10
- declare type MarketRel = ResourceId & {
10
+ declare type MarketRel = ResourceRel & {
11
11
  type: 'markets';
12
12
  };
13
- declare type OrderRel = ResourceId & {
13
+ declare type OrderRel = ResourceRel & {
14
14
  type: 'orders';
15
15
  };
16
16
  interface OrderSubscription extends Resource {
@@ -55,7 +55,7 @@ declare class OrderSubscriptions extends ApiResource {
55
55
  update(resource: OrderSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
56
56
  delete(id: string, options?: ResourcesConfig): Promise<void>;
57
57
  isOrderSubscription(resource: any): resource is OrderSubscription;
58
- relationship(id: string | ResourceId): OrderSubscriptionRel;
58
+ relationship(id: string | ResourceId | null): OrderSubscriptionRel;
59
59
  type(): string;
60
60
  }
61
61
  export default OrderSubscriptions;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderSubscriptions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:OrderSubscriptions.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderSubscriptions.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:OrderSubscriptions.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:OrderSubscriptions.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:OrderSubscriptions.TYPE,id:e},t)}isOrderSubscription(e){return e.type&&e.type===OrderSubscriptions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:OrderSubscriptions.TYPE}:{id:e.id,type:OrderSubscriptions.TYPE}}type(){return OrderSubscriptions.TYPE}}OrderSubscriptions.TYPE="order_subscriptions",exports.default=OrderSubscriptions;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderSubscriptions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:OrderSubscriptions.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderSubscriptions.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:OrderSubscriptions.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:OrderSubscriptions.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:OrderSubscriptions.TYPE,id:e},t)}isOrderSubscription(e){return e.type&&e.type===OrderSubscriptions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:OrderSubscriptions.TYPE}:{id:e.id,type:OrderSubscriptions.TYPE}}type(){return OrderSubscriptions.TYPE}}OrderSubscriptions.TYPE="order_subscriptions",exports.default=OrderSubscriptions;
@@ -1,7 +1,7 @@
1
- import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
1
+ import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
+ import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
3
  import { Market } from './markets';
4
- declare type OrderValidationRuleRel = ResourceId & {
4
+ declare type OrderValidationRuleRel = ResourceRel & {
5
5
  type: typeof OrderValidationRules.TYPE;
6
6
  };
7
7
  interface OrderValidationRule extends Resource {
@@ -12,7 +12,7 @@ declare class OrderValidationRules extends ApiResource {
12
12
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderValidationRule>>;
13
13
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderValidationRule>;
14
14
  isOrderValidationRule(resource: any): resource is OrderValidationRule;
15
- relationship(id: string | ResourceId): OrderValidationRuleRel;
15
+ relationship(id: string | ResourceId | null): OrderValidationRuleRel;
16
16
  type(): string;
17
17
  }
18
18
  export default OrderValidationRules;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderValidationRules extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:OrderValidationRules.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:OrderValidationRules.TYPE,id:e},r,t)}isOrderValidationRule(e){return e.type&&e.type===OrderValidationRules.TYPE}relationship(e){return typeof e=="string"?{id:e,type:OrderValidationRules.TYPE}:{id:e.id,type:OrderValidationRules.TYPE}}type(){return OrderValidationRules.TYPE}}OrderValidationRules.TYPE="order_validation_rules",exports.default=OrderValidationRules;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderValidationRules extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:OrderValidationRules.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:OrderValidationRules.TYPE,id:e},r,t)}isOrderValidationRule(e){return e.type&&e.type===OrderValidationRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:OrderValidationRules.TYPE}:{id:e.id,type:OrderValidationRules.TYPE}}type(){return OrderValidationRules.TYPE}}OrderValidationRules.TYPE="order_validation_rules",exports.default=OrderValidationRules;
@@ -1,5 +1,5 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
+ import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
3
  import { Market } from './markets';
4
4
  import { Customer } from './customers';
5
5
  import { Address } from './addresses';
@@ -22,43 +22,43 @@ import { Refund } from './refunds';
22
22
  import { OrderSubscription } from './order_subscriptions';
23
23
  import { OrderCopy } from './order_copies';
24
24
  import { Attachment } from './attachments';
25
- declare type OrderRel = ResourceId & {
25
+ declare type OrderRel = ResourceRel & {
26
26
  type: typeof Orders.TYPE;
27
27
  };
28
- declare type MarketRel = ResourceId & {
28
+ declare type MarketRel = ResourceRel & {
29
29
  type: 'markets';
30
30
  };
31
- declare type CustomerRel = ResourceId & {
31
+ declare type CustomerRel = ResourceRel & {
32
32
  type: 'customers';
33
33
  };
34
- declare type AddressRel = ResourceId & {
34
+ declare type AddressRel = ResourceRel & {
35
35
  type: 'addresses';
36
36
  };
37
- declare type PaymentMethodRel = ResourceId & {
37
+ declare type PaymentMethodRel = ResourceRel & {
38
38
  type: 'payment_methods';
39
39
  };
40
- declare type AdyenPaymentRel = ResourceId & {
40
+ declare type AdyenPaymentRel = ResourceRel & {
41
41
  type: 'adyen_payments';
42
42
  };
43
- declare type BraintreePaymentRel = ResourceId & {
43
+ declare type BraintreePaymentRel = ResourceRel & {
44
44
  type: 'braintree_payments';
45
45
  };
46
- declare type CheckoutComPaymentRel = ResourceId & {
46
+ declare type CheckoutComPaymentRel = ResourceRel & {
47
47
  type: 'checkout_com_payments';
48
48
  };
49
- declare type ExternalPaymentRel = ResourceId & {
49
+ declare type ExternalPaymentRel = ResourceRel & {
50
50
  type: 'external_payments';
51
51
  };
52
- declare type KlarnaPaymentRel = ResourceId & {
52
+ declare type KlarnaPaymentRel = ResourceRel & {
53
53
  type: 'klarna_payments';
54
54
  };
55
- declare type PaypalPaymentRel = ResourceId & {
55
+ declare type PaypalPaymentRel = ResourceRel & {
56
56
  type: 'paypal_payments';
57
57
  };
58
- declare type StripePaymentRel = ResourceId & {
58
+ declare type StripePaymentRel = ResourceRel & {
59
59
  type: 'stripe_payments';
60
60
  };
61
- declare type WireTransferRel = ResourceId & {
61
+ declare type WireTransferRel = ResourceRel & {
62
62
  type: 'wire_transfers';
63
63
  };
64
64
  interface Order extends Resource {
@@ -248,7 +248,7 @@ declare class Orders extends ApiResource {
248
248
  update(resource: OrderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
249
249
  delete(id: string, options?: ResourcesConfig): Promise<void>;
250
250
  isOrder(resource: any): resource is Order;
251
- relationship(id: string | ResourceId): OrderRel;
251
+ relationship(id: string | ResourceId | null): OrderRel;
252
252
  type(): string;
253
253
  }
254
254
  export default Orders;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Orders extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Orders.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Orders.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:Orders.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Orders.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:Orders.TYPE,id:e},t)}isOrder(e){return e.type&&e.type===Orders.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Orders.TYPE}:{id:e.id,type:Orders.TYPE}}type(){return Orders.TYPE}}Orders.TYPE="orders",exports.default=Orders;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Orders extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Orders.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Orders.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:Orders.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Orders.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:Orders.TYPE,id:e},t)}isOrder(e){return e.type&&e.type===Orders.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Orders.TYPE}:{id:e.id,type:Orders.TYPE}}type(){return Orders.TYPE}}Orders.TYPE="orders",exports.default=Orders;
@@ -1,6 +1,6 @@
1
- import { ApiResource, Resource, ResourcesConfig, ResourceId } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsRetrieve } from '../query';
3
- declare type OrganizationRel = ResourceId & {
1
+ import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel } from '../resource';
2
+ import { QueryParamsRetrieve } from '../query';
3
+ declare type OrganizationRel = ResourceRel & {
4
4
  type: typeof Organizations.TYPE;
5
5
  };
6
6
  interface Organization extends Resource {
@@ -25,7 +25,7 @@ declare class Organizations extends ApiResource {
25
25
  static readonly TYPE: 'organization';
26
26
  retrieve(params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Organization>;
27
27
  isOrganization(resource: any): resource is Organization;
28
- relationship(id: string | ResourceId): OrganizationRel;
28
+ relationship(id: string | ResourceId | null): OrganizationRel;
29
29
  type(): string;
30
30
  }
31
31
  export default Organizations;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Organizations extends resource_1.ApiResource{async retrieve(e,r){return this.resources.singleton({type:Organizations.TYPE},e,r)}isOrganization(e){return e.type&&e.type===Organizations.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Organizations.TYPE}:{id:e.id,type:Organizations.TYPE}}type(){return Organizations.TYPE}}Organizations.TYPE="organization",exports.default=Organizations;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Organizations extends resource_1.ApiResource{async retrieve(e,r){return this.resources.singleton({type:Organizations.TYPE},e,r)}isOrganization(e){return e.type&&e.type===Organizations.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Organizations.TYPE}:{id:e.id,type:Organizations.TYPE}}type(){return Organizations.TYPE}}Organizations.TYPE="organization",exports.default=Organizations;
@@ -1,12 +1,12 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
+ import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
3
  import { StockLocation } from './stock_locations';
4
4
  import { Parcel } from './parcels';
5
5
  import { Attachment } from './attachments';
6
- declare type PackageRel = ResourceId & {
6
+ declare type PackageRel = ResourceRel & {
7
7
  type: typeof Packages.TYPE;
8
8
  };
9
- declare type StockLocationRel = ResourceId & {
9
+ declare type StockLocationRel = ResourceRel & {
10
10
  type: 'stock_locations';
11
11
  };
12
12
  interface Package extends Resource {
@@ -46,7 +46,7 @@ declare class Packages extends ApiResource {
46
46
  update(resource: PackageUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Package>;
47
47
  delete(id: string, options?: ResourcesConfig): Promise<void>;
48
48
  isPackage(resource: any): resource is Package;
49
- relationship(id: string | ResourceId): PackageRel;
49
+ relationship(id: string | ResourceId | null): PackageRel;
50
50
  type(): string;
51
51
  }
52
52
  export default Packages;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Packages extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Packages.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Packages.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Packages.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Packages.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Packages.TYPE,id:e},t)}isPackage(e){return e.type&&e.type===Packages.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Packages.TYPE}:{id:e.id,type:Packages.TYPE}}type(){return Packages.TYPE}}Packages.TYPE="packages",exports.default=Packages;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Packages extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Packages.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Packages.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Packages.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Packages.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Packages.TYPE,id:e},t)}isPackage(e){return e.type&&e.type===Packages.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Packages.TYPE}:{id:e.id,type:Packages.TYPE}}type(){return Packages.TYPE}}Packages.TYPE="packages",exports.default=Packages;
@@ -1,14 +1,14 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
+ import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
3
  import { Parcel } from './parcels';
4
4
  import { StockLineItem } from './stock_line_items';
5
- declare type ParcelLineItemRel = ResourceId & {
5
+ declare type ParcelLineItemRel = ResourceRel & {
6
6
  type: typeof ParcelLineItems.TYPE;
7
7
  };
8
- declare type ParcelRel = ResourceId & {
8
+ declare type ParcelRel = ResourceRel & {
9
9
  type: 'parcels';
10
10
  };
11
- declare type StockLineItemRel = ResourceId & {
11
+ declare type StockLineItemRel = ResourceRel & {
12
12
  type: 'stock_line_items';
13
13
  };
14
14
  interface ParcelLineItem extends Resource {
@@ -40,7 +40,7 @@ declare class ParcelLineItems extends ApiResource {
40
40
  update(resource: ParcelLineItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ParcelLineItem>;
41
41
  delete(id: string, options?: ResourcesConfig): Promise<void>;
42
42
  isParcelLineItem(resource: any): resource is ParcelLineItem;
43
- relationship(id: string | ResourceId): ParcelLineItemRel;
43
+ relationship(id: string | ResourceId | null): ParcelLineItemRel;
44
44
  type(): string;
45
45
  }
46
46
  export default ParcelLineItems;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ParcelLineItems extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ParcelLineItems.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ParcelLineItems.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ParcelLineItems.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ParcelLineItems.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ParcelLineItems.TYPE,id:e},t)}isParcelLineItem(e){return e.type&&e.type===ParcelLineItems.TYPE}relationship(e){return typeof e=="string"?{id:e,type:ParcelLineItems.TYPE}:{id:e.id,type:ParcelLineItems.TYPE}}type(){return ParcelLineItems.TYPE}}ParcelLineItems.TYPE="parcel_line_items",exports.default=ParcelLineItems;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ParcelLineItems extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ParcelLineItems.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ParcelLineItems.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ParcelLineItems.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ParcelLineItems.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ParcelLineItems.TYPE,id:e},t)}isParcelLineItem(e){return e.type&&e.type===ParcelLineItems.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ParcelLineItems.TYPE}:{id:e.id,type:ParcelLineItems.TYPE}}type(){return ParcelLineItems.TYPE}}ParcelLineItems.TYPE="parcel_line_items",exports.default=ParcelLineItems;
@@ -1,16 +1,16 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
+ import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
3
  import { Shipment } from './shipments';
4
4
  import { Package } from './packages';
5
5
  import { ParcelLineItem } from './parcel_line_items';
6
6
  import { Attachment } from './attachments';
7
- declare type ParcelRel = ResourceId & {
7
+ declare type ParcelRel = ResourceRel & {
8
8
  type: typeof Parcels.TYPE;
9
9
  };
10
- declare type ShipmentRel = ResourceId & {
10
+ declare type ShipmentRel = ResourceRel & {
11
11
  type: 'shipments';
12
12
  };
13
- declare type PackageRel = ResourceId & {
13
+ declare type PackageRel = ResourceRel & {
14
14
  type: 'packages';
15
15
  };
16
16
  interface Parcel extends Resource {
@@ -97,7 +97,7 @@ declare class Parcels extends ApiResource {
97
97
  update(resource: ParcelUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Parcel>;
98
98
  delete(id: string, options?: ResourcesConfig): Promise<void>;
99
99
  isParcel(resource: any): resource is Parcel;
100
- relationship(id: string | ResourceId): ParcelRel;
100
+ relationship(id: string | ResourceId | null): ParcelRel;
101
101
  type(): string;
102
102
  }
103
103
  export default Parcels;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Parcels extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Parcels.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Parcels.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Parcels.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Parcels.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Parcels.TYPE,id:e},t)}isParcel(e){return e.type&&e.type===Parcels.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Parcels.TYPE}:{id:e.id,type:Parcels.TYPE}}type(){return Parcels.TYPE}}Parcels.TYPE="parcels",exports.default=Parcels;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Parcels extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Parcels.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Parcels.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Parcels.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Parcels.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Parcels.TYPE,id:e},t)}isParcel(e){return e.type&&e.type===Parcels.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Parcels.TYPE}:{id:e.id,type:Parcels.TYPE}}type(){return Parcels.TYPE}}Parcels.TYPE="parcels",exports.default=Parcels;
@@ -1,7 +1,7 @@
1
- import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
1
+ import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
+ import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
3
  import { PaymentMethod } from './payment_methods';
4
- declare type PaymentGatewayRel = ResourceId & {
4
+ declare type PaymentGatewayRel = ResourceRel & {
5
5
  type: typeof PaymentGateways.TYPE;
6
6
  };
7
7
  interface PaymentGateway extends Resource {
@@ -13,7 +13,7 @@ declare class PaymentGateways extends ApiResource {
13
13
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentGateway>>;
14
14
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
15
15
  isPaymentGateway(resource: any): resource is PaymentGateway;
16
- relationship(id: string | ResourceId): PaymentGatewayRel;
16
+ relationship(id: string | ResourceId | null): PaymentGatewayRel;
17
17
  type(): string;
18
18
  }
19
19
  export default PaymentGateways;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentGateways extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaymentGateways.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:PaymentGateways.TYPE,id:e},r,t)}isPaymentGateway(e){return e.type&&e.type===PaymentGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaymentGateways.TYPE}:{id:e.id,type:PaymentGateways.TYPE}}type(){return PaymentGateways.TYPE}}PaymentGateways.TYPE="payment_gateways",exports.default=PaymentGateways;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentGateways extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaymentGateways.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:PaymentGateways.TYPE,id:e},r,t)}isPaymentGateway(e){return e.type&&e.type===PaymentGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PaymentGateways.TYPE}:{id:e.id,type:PaymentGateways.TYPE}}type(){return PaymentGateways.TYPE}}PaymentGateways.TYPE="payment_gateways",exports.default=PaymentGateways;
@@ -1,20 +1,21 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
+ import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
3
  import { Market } from './markets';
4
4
  import { PaymentGateway } from './payment_gateways';
5
5
  import { Attachment } from './attachments';
6
- declare type PaymentMethodRel = ResourceId & {
6
+ declare type PaymentMethodRel = ResourceRel & {
7
7
  type: typeof PaymentMethods.TYPE;
8
8
  };
9
- declare type MarketRel = ResourceId & {
9
+ declare type MarketRel = ResourceRel & {
10
10
  type: 'markets';
11
11
  };
12
- declare type PaymentGatewayRel = ResourceId & {
12
+ declare type PaymentGatewayRel = ResourceRel & {
13
13
  type: 'payment_gateways';
14
14
  };
15
15
  interface PaymentMethod extends Resource {
16
16
  payment_source_type?: string;
17
17
  name?: string;
18
+ currency_code?: string;
18
19
  moto?: boolean;
19
20
  disabled_at?: string;
20
21
  price_amount_cents?: number;
@@ -26,13 +27,15 @@ interface PaymentMethod extends Resource {
26
27
  }
27
28
  interface PaymentMethodCreate extends ResourceCreate {
28
29
  payment_source_type: string;
30
+ currency_code?: string;
29
31
  moto?: boolean;
30
32
  price_amount_cents: number;
31
- market: MarketRel;
33
+ market?: MarketRel;
32
34
  payment_gateway: PaymentGatewayRel;
33
35
  }
34
36
  interface PaymentMethodUpdate extends ResourceUpdate {
35
37
  payment_source_type?: string;
38
+ currency_code?: string;
36
39
  moto?: boolean;
37
40
  price_amount_cents?: number;
38
41
  market?: MarketRel;
@@ -46,7 +49,7 @@ declare class PaymentMethods extends ApiResource {
46
49
  update(resource: PaymentMethodUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentMethod>;
47
50
  delete(id: string, options?: ResourcesConfig): Promise<void>;
48
51
  isPaymentMethod(resource: any): resource is PaymentMethod;
49
- relationship(id: string | ResourceId): PaymentMethodRel;
52
+ relationship(id: string | ResourceId | null): PaymentMethodRel;
50
53
  type(): string;
51
54
  }
52
55
  export default PaymentMethods;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentMethods extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaymentMethods.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:PaymentMethods.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:PaymentMethods.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:PaymentMethods.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:PaymentMethods.TYPE,id:e},r)}isPaymentMethod(e){return e.type&&e.type===PaymentMethods.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaymentMethods.TYPE}:{id:e.id,type:PaymentMethods.TYPE}}type(){return PaymentMethods.TYPE}}PaymentMethods.TYPE="payment_methods",exports.default=PaymentMethods;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentMethods extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaymentMethods.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:PaymentMethods.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:PaymentMethods.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:PaymentMethods.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:PaymentMethods.TYPE,id:e},r)}isPaymentMethod(e){return e.type&&e.type===PaymentMethods.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PaymentMethods.TYPE}:{id:e.id,type:PaymentMethods.TYPE}}type(){return PaymentMethods.TYPE}}PaymentMethods.TYPE="payment_methods",exports.default=PaymentMethods;
@@ -1,8 +1,8 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
+ import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
3
  import { PaymentMethod } from './payment_methods';
4
4
  import { PaypalPayment } from './paypal_payments';
5
- declare type PaypalGatewayRel = ResourceId & {
5
+ declare type PaypalGatewayRel = ResourceRel & {
6
6
  type: typeof PaypalGateways.TYPE;
7
7
  };
8
8
  interface PaypalGateway extends Resource {
@@ -30,7 +30,7 @@ declare class PaypalGateways extends ApiResource {
30
30
  update(resource: PaypalGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalGateway>;
31
31
  delete(id: string, options?: ResourcesConfig): Promise<void>;
32
32
  isPaypalGateway(resource: any): resource is PaypalGateway;
33
- relationship(id: string | ResourceId): PaypalGatewayRel;
33
+ relationship(id: string | ResourceId | null): PaypalGatewayRel;
34
34
  type(): string;
35
35
  }
36
36
  export default PaypalGateways;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaypalGateways extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaypalGateways.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:PaypalGateways.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:PaypalGateways.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:PaypalGateways.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:PaypalGateways.TYPE,id:e},r)}isPaypalGateway(e){return e.type&&e.type===PaypalGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaypalGateways.TYPE}:{id:e.id,type:PaypalGateways.TYPE}}type(){return PaypalGateways.TYPE}}PaypalGateways.TYPE="paypal_gateways",exports.default=PaypalGateways;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaypalGateways extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaypalGateways.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:PaypalGateways.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:PaypalGateways.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:PaypalGateways.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:PaypalGateways.TYPE,id:e},r)}isPaypalGateway(e){return e.type&&e.type===PaypalGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PaypalGateways.TYPE}:{id:e.id,type:PaypalGateways.TYPE}}type(){return PaypalGateways.TYPE}}PaypalGateways.TYPE="paypal_gateways",exports.default=PaypalGateways;
@@ -1,11 +1,11 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
+ import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
3
  import { Order } from './orders';
4
4
  import { PaymentGateway } from './payment_gateways';
5
- declare type PaypalPaymentRel = ResourceId & {
5
+ declare type PaypalPaymentRel = ResourceRel & {
6
6
  type: typeof PaypalPayments.TYPE;
7
7
  };
8
- declare type OrderRel = ResourceId & {
8
+ declare type OrderRel = ResourceRel & {
9
9
  type: 'orders';
10
10
  };
11
11
  interface PaypalPayment extends Resource {
@@ -38,7 +38,7 @@ declare class PaypalPayments extends ApiResource {
38
38
  update(resource: PaypalPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalPayment>;
39
39
  delete(id: string, options?: ResourcesConfig): Promise<void>;
40
40
  isPaypalPayment(resource: any): resource is PaypalPayment;
41
- relationship(id: string | ResourceId): PaypalPaymentRel;
41
+ relationship(id: string | ResourceId | null): PaypalPaymentRel;
42
42
  type(): string;
43
43
  }
44
44
  export default PaypalPayments;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaypalPayments extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaypalPayments.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:PaypalPayments.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:PaypalPayments.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:PaypalPayments.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:PaypalPayments.TYPE,id:e},r)}isPaypalPayment(e){return e.type&&e.type===PaypalPayments.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaypalPayments.TYPE}:{id:e.id,type:PaypalPayments.TYPE}}type(){return PaypalPayments.TYPE}}PaypalPayments.TYPE="paypal_payments",exports.default=PaypalPayments;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaypalPayments extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaypalPayments.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:PaypalPayments.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:PaypalPayments.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:PaypalPayments.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:PaypalPayments.TYPE,id:e},r)}isPaypalPayment(e){return e.type&&e.type===PaypalPayments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PaypalPayments.TYPE}:{id:e.id,type:PaypalPayments.TYPE}}type(){return PaypalPayments.TYPE}}PaypalPayments.TYPE="paypal_payments",exports.default=PaypalPayments;
@@ -1,5 +1,5 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
2
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
+ import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
3
  import { Market } from './markets';
4
4
  import { PromotionRule } from './promotion_rules';
5
5
  import { OrderAmountPromotionRule } from './order_amount_promotion_rules';
@@ -8,29 +8,30 @@ import { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
8
8
  import { Attachment } from './attachments';
9
9
  import { SkuList } from './sku_lists';
10
10
  import { Sku } from './skus';
11
- declare type PercentageDiscountPromotionRel = ResourceId & {
11
+ declare type PercentageDiscountPromotionRel = ResourceRel & {
12
12
  type: typeof PercentageDiscountPromotions.TYPE;
13
13
  };
14
- declare type MarketRel = ResourceId & {
14
+ declare type MarketRel = ResourceRel & {
15
15
  type: 'markets';
16
16
  };
17
- declare type PromotionRuleRel = ResourceId & {
17
+ declare type PromotionRuleRel = ResourceRel & {
18
18
  type: 'promotion_rules';
19
19
  };
20
- declare type OrderAmountPromotionRuleRel = ResourceId & {
20
+ declare type OrderAmountPromotionRuleRel = ResourceRel & {
21
21
  type: 'order_amount_promotion_rules';
22
22
  };
23
- declare type SkuListPromotionRuleRel = ResourceId & {
23
+ declare type SkuListPromotionRuleRel = ResourceRel & {
24
24
  type: 'sku_list_promotion_rules';
25
25
  };
26
- declare type CouponCodesPromotionRuleRel = ResourceId & {
26
+ declare type CouponCodesPromotionRuleRel = ResourceRel & {
27
27
  type: 'coupon_codes_promotion_rules';
28
28
  };
29
- declare type SkuListRel = ResourceId & {
29
+ declare type SkuListRel = ResourceRel & {
30
30
  type: 'sku_lists';
31
31
  };
32
32
  interface PercentageDiscountPromotion extends Resource {
33
33
  name?: string;
34
+ currency_code?: string;
34
35
  starts_at?: string;
35
36
  expires_at?: string;
36
37
  total_usage_limit?: number;
@@ -48,6 +49,7 @@ interface PercentageDiscountPromotion extends Resource {
48
49
  }
49
50
  interface PercentageDiscountPromotionCreate extends ResourceCreate {
50
51
  name: string;
52
+ currency_code?: string;
51
53
  starts_at: string;
52
54
  expires_at: string;
53
55
  total_usage_limit: number;
@@ -61,6 +63,7 @@ interface PercentageDiscountPromotionCreate extends ResourceCreate {
61
63
  }
62
64
  interface PercentageDiscountPromotionUpdate extends ResourceUpdate {
63
65
  name?: string;
66
+ currency_code?: string;
64
67
  starts_at?: string;
65
68
  expires_at?: string;
66
69
  total_usage_limit?: number;
@@ -80,7 +83,7 @@ declare class PercentageDiscountPromotions extends ApiResource {
80
83
  update(resource: PercentageDiscountPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PercentageDiscountPromotion>;
81
84
  delete(id: string, options?: ResourcesConfig): Promise<void>;
82
85
  isPercentageDiscountPromotion(resource: any): resource is PercentageDiscountPromotion;
83
- relationship(id: string | ResourceId): PercentageDiscountPromotionRel;
86
+ relationship(id: string | ResourceId | null): PercentageDiscountPromotionRel;
84
87
  type(): string;
85
88
  }
86
89
  export default PercentageDiscountPromotions;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PercentageDiscountPromotions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PercentageDiscountPromotions.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:PercentageDiscountPromotions.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:PercentageDiscountPromotions.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:PercentageDiscountPromotions.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:PercentageDiscountPromotions.TYPE,id:e},r)}isPercentageDiscountPromotion(e){return e.type&&e.type===PercentageDiscountPromotions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PercentageDiscountPromotions.TYPE}:{id:e.id,type:PercentageDiscountPromotions.TYPE}}type(){return PercentageDiscountPromotions.TYPE}}PercentageDiscountPromotions.TYPE="percentage_discount_promotions",exports.default=PercentageDiscountPromotions;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PercentageDiscountPromotions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PercentageDiscountPromotions.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:PercentageDiscountPromotions.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:PercentageDiscountPromotions.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:PercentageDiscountPromotions.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:PercentageDiscountPromotions.TYPE,id:e},r)}isPercentageDiscountPromotion(e){return e.type&&e.type===PercentageDiscountPromotions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PercentageDiscountPromotions.TYPE}:{id:e.id,type:PercentageDiscountPromotions.TYPE}}type(){return PercentageDiscountPromotions.TYPE}}PercentageDiscountPromotions.TYPE="percentage_discount_promotions",exports.default=PercentageDiscountPromotions;