@commercelayer/sdk 6.0.0-alfa.2 → 6.0.0-alfa.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 (491) hide show
  1. package/lib/cjs/resource.d.ts +2 -0
  2. package/lib/cjs/resource.js +6 -0
  3. package/lib/cjs/resources/addresses.d.ts +1 -0
  4. package/lib/cjs/resources/addresses.js +4 -1
  5. package/lib/cjs/resources/adjustments.d.ts +1 -0
  6. package/lib/cjs/resources/adjustments.js +4 -1
  7. package/lib/cjs/resources/adyen_gateways.d.ts +1 -0
  8. package/lib/cjs/resources/adyen_gateways.js +4 -1
  9. package/lib/cjs/resources/adyen_payments.d.ts +1 -0
  10. package/lib/cjs/resources/adyen_payments.js +4 -1
  11. package/lib/cjs/resources/application.d.ts +1 -0
  12. package/lib/cjs/resources/application.js +4 -1
  13. package/lib/cjs/resources/attachments.d.ts +1 -0
  14. package/lib/cjs/resources/attachments.js +4 -1
  15. package/lib/cjs/resources/authorizations.d.ts +1 -0
  16. package/lib/cjs/resources/authorizations.js +4 -1
  17. package/lib/cjs/resources/avalara_accounts.d.ts +1 -0
  18. package/lib/cjs/resources/avalara_accounts.js +4 -1
  19. package/lib/cjs/resources/axerve_gateways.d.ts +1 -0
  20. package/lib/cjs/resources/axerve_gateways.js +4 -1
  21. package/lib/cjs/resources/axerve_payments.d.ts +1 -0
  22. package/lib/cjs/resources/axerve_payments.js +4 -1
  23. package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -0
  24. package/lib/cjs/resources/billing_info_validation_rules.js +4 -1
  25. package/lib/cjs/resources/bing_geocoders.d.ts +1 -0
  26. package/lib/cjs/resources/bing_geocoders.js +4 -1
  27. package/lib/cjs/resources/braintree_gateways.d.ts +1 -0
  28. package/lib/cjs/resources/braintree_gateways.js +4 -1
  29. package/lib/cjs/resources/braintree_payments.d.ts +1 -0
  30. package/lib/cjs/resources/braintree_payments.js +4 -1
  31. package/lib/cjs/resources/bundles.d.ts +1 -0
  32. package/lib/cjs/resources/bundles.js +4 -1
  33. package/lib/cjs/resources/buy_x_pay_y_promotions.d.ts +1 -0
  34. package/lib/cjs/resources/buy_x_pay_y_promotions.js +4 -1
  35. package/lib/cjs/resources/captures.d.ts +1 -0
  36. package/lib/cjs/resources/captures.js +4 -1
  37. package/lib/cjs/resources/carrier_accounts.d.ts +1 -0
  38. package/lib/cjs/resources/carrier_accounts.js +4 -1
  39. package/lib/cjs/resources/checkout_com_gateways.d.ts +1 -0
  40. package/lib/cjs/resources/checkout_com_gateways.js +4 -1
  41. package/lib/cjs/resources/checkout_com_payments.d.ts +1 -0
  42. package/lib/cjs/resources/checkout_com_payments.js +4 -1
  43. package/lib/cjs/resources/cleanups.d.ts +1 -0
  44. package/lib/cjs/resources/cleanups.js +4 -1
  45. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -0
  46. package/lib/cjs/resources/coupon_codes_promotion_rules.js +4 -1
  47. package/lib/cjs/resources/coupon_recipients.d.ts +1 -0
  48. package/lib/cjs/resources/coupon_recipients.js +4 -1
  49. package/lib/cjs/resources/coupons.d.ts +1 -0
  50. package/lib/cjs/resources/coupons.js +4 -1
  51. package/lib/cjs/resources/custom_promotion_rules.d.ts +1 -0
  52. package/lib/cjs/resources/custom_promotion_rules.js +4 -1
  53. package/lib/cjs/resources/customer_addresses.d.ts +1 -0
  54. package/lib/cjs/resources/customer_addresses.js +4 -1
  55. package/lib/cjs/resources/customer_groups.d.ts +1 -0
  56. package/lib/cjs/resources/customer_groups.js +4 -1
  57. package/lib/cjs/resources/customer_password_resets.d.ts +1 -0
  58. package/lib/cjs/resources/customer_password_resets.js +4 -1
  59. package/lib/cjs/resources/customer_payment_sources.d.ts +1 -0
  60. package/lib/cjs/resources/customer_payment_sources.js +4 -1
  61. package/lib/cjs/resources/customer_subscriptions.d.ts +1 -0
  62. package/lib/cjs/resources/customer_subscriptions.js +4 -1
  63. package/lib/cjs/resources/customers.d.ts +1 -0
  64. package/lib/cjs/resources/customers.js +4 -1
  65. package/lib/cjs/resources/delivery_lead_times.d.ts +1 -0
  66. package/lib/cjs/resources/delivery_lead_times.js +4 -1
  67. package/lib/cjs/resources/event_callbacks.d.ts +1 -0
  68. package/lib/cjs/resources/event_callbacks.js +4 -1
  69. package/lib/cjs/resources/events.d.ts +1 -0
  70. package/lib/cjs/resources/events.js +4 -1
  71. package/lib/cjs/resources/exports.d.ts +1 -0
  72. package/lib/cjs/resources/exports.js +4 -1
  73. package/lib/cjs/resources/external_gateways.d.ts +1 -0
  74. package/lib/cjs/resources/external_gateways.js +4 -1
  75. package/lib/cjs/resources/external_payments.d.ts +1 -0
  76. package/lib/cjs/resources/external_payments.js +4 -1
  77. package/lib/cjs/resources/external_promotions.d.ts +1 -0
  78. package/lib/cjs/resources/external_promotions.js +4 -1
  79. package/lib/cjs/resources/external_tax_calculators.d.ts +1 -0
  80. package/lib/cjs/resources/external_tax_calculators.js +4 -1
  81. package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -0
  82. package/lib/cjs/resources/fixed_amount_promotions.js +4 -1
  83. package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -0
  84. package/lib/cjs/resources/fixed_price_promotions.js +4 -1
  85. package/lib/cjs/resources/free_gift_promotions.d.ts +1 -0
  86. package/lib/cjs/resources/free_gift_promotions.js +4 -1
  87. package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -0
  88. package/lib/cjs/resources/free_shipping_promotions.js +4 -1
  89. package/lib/cjs/resources/geocoders.d.ts +1 -0
  90. package/lib/cjs/resources/geocoders.js +4 -1
  91. package/lib/cjs/resources/gift_card_recipients.d.ts +1 -0
  92. package/lib/cjs/resources/gift_card_recipients.js +4 -1
  93. package/lib/cjs/resources/gift_cards.d.ts +1 -0
  94. package/lib/cjs/resources/gift_cards.js +4 -1
  95. package/lib/cjs/resources/google_geocoders.d.ts +1 -0
  96. package/lib/cjs/resources/google_geocoders.js +4 -1
  97. package/lib/cjs/resources/imports.d.ts +1 -0
  98. package/lib/cjs/resources/imports.js +4 -1
  99. package/lib/cjs/resources/in_stock_subscriptions.d.ts +1 -0
  100. package/lib/cjs/resources/in_stock_subscriptions.js +4 -1
  101. package/lib/cjs/resources/inventory_models.d.ts +1 -0
  102. package/lib/cjs/resources/inventory_models.js +4 -1
  103. package/lib/cjs/resources/inventory_return_locations.d.ts +1 -0
  104. package/lib/cjs/resources/inventory_return_locations.js +4 -1
  105. package/lib/cjs/resources/inventory_stock_locations.d.ts +1 -0
  106. package/lib/cjs/resources/inventory_stock_locations.js +4 -1
  107. package/lib/cjs/resources/klarna_gateways.d.ts +1 -0
  108. package/lib/cjs/resources/klarna_gateways.js +4 -1
  109. package/lib/cjs/resources/klarna_payments.d.ts +1 -0
  110. package/lib/cjs/resources/klarna_payments.js +4 -1
  111. package/lib/cjs/resources/line_item_options.d.ts +1 -0
  112. package/lib/cjs/resources/line_item_options.js +4 -1
  113. package/lib/cjs/resources/line_items.d.ts +1 -0
  114. package/lib/cjs/resources/line_items.js +4 -1
  115. package/lib/cjs/resources/manual_gateways.d.ts +1 -0
  116. package/lib/cjs/resources/manual_gateways.js +4 -1
  117. package/lib/cjs/resources/manual_tax_calculators.d.ts +1 -0
  118. package/lib/cjs/resources/manual_tax_calculators.js +4 -1
  119. package/lib/cjs/resources/markets.d.ts +1 -0
  120. package/lib/cjs/resources/markets.js +4 -1
  121. package/lib/cjs/resources/merchants.d.ts +1 -0
  122. package/lib/cjs/resources/merchants.js +4 -1
  123. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -0
  124. package/lib/cjs/resources/order_amount_promotion_rules.js +4 -1
  125. package/lib/cjs/resources/order_copies.d.ts +1 -0
  126. package/lib/cjs/resources/order_copies.js +4 -1
  127. package/lib/cjs/resources/order_factories.d.ts +1 -0
  128. package/lib/cjs/resources/order_factories.js +4 -1
  129. package/lib/cjs/resources/order_subscription_items.d.ts +1 -0
  130. package/lib/cjs/resources/order_subscription_items.js +4 -1
  131. package/lib/cjs/resources/order_subscriptions.d.ts +1 -0
  132. package/lib/cjs/resources/order_subscriptions.js +4 -1
  133. package/lib/cjs/resources/order_validation_rules.d.ts +1 -0
  134. package/lib/cjs/resources/order_validation_rules.js +4 -1
  135. package/lib/cjs/resources/orders.d.ts +1 -0
  136. package/lib/cjs/resources/orders.js +4 -1
  137. package/lib/cjs/resources/organization.d.ts +1 -0
  138. package/lib/cjs/resources/organization.js +4 -1
  139. package/lib/cjs/resources/packages.d.ts +1 -0
  140. package/lib/cjs/resources/packages.js +4 -1
  141. package/lib/cjs/resources/parcel_line_items.d.ts +1 -0
  142. package/lib/cjs/resources/parcel_line_items.js +4 -1
  143. package/lib/cjs/resources/parcels.d.ts +1 -0
  144. package/lib/cjs/resources/parcels.js +4 -1
  145. package/lib/cjs/resources/payment_gateways.d.ts +1 -0
  146. package/lib/cjs/resources/payment_gateways.js +4 -1
  147. package/lib/cjs/resources/payment_methods.d.ts +1 -0
  148. package/lib/cjs/resources/payment_methods.js +4 -1
  149. package/lib/cjs/resources/payment_options.d.ts +1 -0
  150. package/lib/cjs/resources/payment_options.js +4 -1
  151. package/lib/cjs/resources/paypal_gateways.d.ts +1 -0
  152. package/lib/cjs/resources/paypal_gateways.js +4 -1
  153. package/lib/cjs/resources/paypal_payments.d.ts +1 -0
  154. package/lib/cjs/resources/paypal_payments.js +4 -1
  155. package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -0
  156. package/lib/cjs/resources/percentage_discount_promotions.js +4 -1
  157. package/lib/cjs/resources/price_frequency_tiers.d.ts +1 -0
  158. package/lib/cjs/resources/price_frequency_tiers.js +4 -1
  159. package/lib/cjs/resources/price_lists.d.ts +1 -0
  160. package/lib/cjs/resources/price_lists.js +4 -1
  161. package/lib/cjs/resources/price_tiers.d.ts +1 -0
  162. package/lib/cjs/resources/price_tiers.js +4 -1
  163. package/lib/cjs/resources/price_volume_tiers.d.ts +1 -0
  164. package/lib/cjs/resources/price_volume_tiers.js +4 -1
  165. package/lib/cjs/resources/prices.d.ts +1 -0
  166. package/lib/cjs/resources/prices.js +4 -1
  167. package/lib/cjs/resources/promotion_rules.d.ts +1 -0
  168. package/lib/cjs/resources/promotion_rules.js +4 -1
  169. package/lib/cjs/resources/promotions.d.ts +1 -0
  170. package/lib/cjs/resources/promotions.js +4 -1
  171. package/lib/cjs/resources/recurring_order_copies.d.ts +1 -0
  172. package/lib/cjs/resources/recurring_order_copies.js +4 -1
  173. package/lib/cjs/resources/refunds.d.ts +1 -0
  174. package/lib/cjs/resources/refunds.js +4 -1
  175. package/lib/cjs/resources/reserved_stocks.d.ts +1 -0
  176. package/lib/cjs/resources/reserved_stocks.js +4 -1
  177. package/lib/cjs/resources/resource_errors.d.ts +1 -0
  178. package/lib/cjs/resources/resource_errors.js +4 -1
  179. package/lib/cjs/resources/return_line_items.d.ts +1 -0
  180. package/lib/cjs/resources/return_line_items.js +4 -1
  181. package/lib/cjs/resources/returns.d.ts +1 -0
  182. package/lib/cjs/resources/returns.js +4 -1
  183. package/lib/cjs/resources/satispay_gateways.d.ts +1 -0
  184. package/lib/cjs/resources/satispay_gateways.js +4 -1
  185. package/lib/cjs/resources/satispay_payments.d.ts +1 -0
  186. package/lib/cjs/resources/satispay_payments.js +4 -1
  187. package/lib/cjs/resources/shipments.d.ts +1 -0
  188. package/lib/cjs/resources/shipments.js +4 -1
  189. package/lib/cjs/resources/shipping_categories.d.ts +1 -0
  190. package/lib/cjs/resources/shipping_categories.js +4 -1
  191. package/lib/cjs/resources/shipping_method_tiers.d.ts +1 -0
  192. package/lib/cjs/resources/shipping_method_tiers.js +4 -1
  193. package/lib/cjs/resources/shipping_methods.d.ts +1 -0
  194. package/lib/cjs/resources/shipping_methods.js +4 -1
  195. package/lib/cjs/resources/shipping_weight_tiers.d.ts +1 -0
  196. package/lib/cjs/resources/shipping_weight_tiers.js +4 -1
  197. package/lib/cjs/resources/shipping_zones.d.ts +1 -0
  198. package/lib/cjs/resources/shipping_zones.js +4 -1
  199. package/lib/cjs/resources/sku_list_items.d.ts +1 -0
  200. package/lib/cjs/resources/sku_list_items.js +4 -1
  201. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -0
  202. package/lib/cjs/resources/sku_list_promotion_rules.js +4 -1
  203. package/lib/cjs/resources/sku_lists.d.ts +1 -0
  204. package/lib/cjs/resources/sku_lists.js +4 -1
  205. package/lib/cjs/resources/sku_options.d.ts +1 -0
  206. package/lib/cjs/resources/sku_options.js +4 -1
  207. package/lib/cjs/resources/skus.d.ts +1 -0
  208. package/lib/cjs/resources/skus.js +4 -1
  209. package/lib/cjs/resources/stock_items.d.ts +1 -0
  210. package/lib/cjs/resources/stock_items.js +4 -1
  211. package/lib/cjs/resources/stock_line_items.d.ts +1 -0
  212. package/lib/cjs/resources/stock_line_items.js +4 -1
  213. package/lib/cjs/resources/stock_locations.d.ts +1 -0
  214. package/lib/cjs/resources/stock_locations.js +4 -1
  215. package/lib/cjs/resources/stock_reservations.d.ts +1 -0
  216. package/lib/cjs/resources/stock_reservations.js +4 -1
  217. package/lib/cjs/resources/stock_transfers.d.ts +1 -0
  218. package/lib/cjs/resources/stock_transfers.js +4 -1
  219. package/lib/cjs/resources/stripe_gateways.d.ts +1 -0
  220. package/lib/cjs/resources/stripe_gateways.js +4 -1
  221. package/lib/cjs/resources/stripe_payments.d.ts +1 -0
  222. package/lib/cjs/resources/stripe_payments.js +4 -1
  223. package/lib/cjs/resources/subscription_models.d.ts +1 -0
  224. package/lib/cjs/resources/subscription_models.js +4 -1
  225. package/lib/cjs/resources/tags.d.ts +1 -0
  226. package/lib/cjs/resources/tags.js +4 -1
  227. package/lib/cjs/resources/tax_calculators.d.ts +1 -0
  228. package/lib/cjs/resources/tax_calculators.js +4 -1
  229. package/lib/cjs/resources/tax_categories.d.ts +1 -0
  230. package/lib/cjs/resources/tax_categories.js +4 -1
  231. package/lib/cjs/resources/tax_rules.d.ts +1 -0
  232. package/lib/cjs/resources/tax_rules.js +4 -1
  233. package/lib/cjs/resources/taxjar_accounts.d.ts +1 -0
  234. package/lib/cjs/resources/taxjar_accounts.js +4 -1
  235. package/lib/cjs/resources/transactions.d.ts +1 -0
  236. package/lib/cjs/resources/transactions.js +4 -1
  237. package/lib/cjs/resources/versions.d.ts +1 -0
  238. package/lib/cjs/resources/versions.js +4 -1
  239. package/lib/cjs/resources/voids.d.ts +1 -0
  240. package/lib/cjs/resources/voids.js +4 -1
  241. package/lib/cjs/resources/webhooks.d.ts +1 -0
  242. package/lib/cjs/resources/webhooks.js +4 -1
  243. package/lib/cjs/resources/wire_transfers.d.ts +1 -0
  244. package/lib/cjs/resources/wire_transfers.js +4 -1
  245. package/lib/esm/resource.d.ts +2 -0
  246. package/lib/esm/resource.js +6 -0
  247. package/lib/esm/resources/addresses.d.ts +1 -0
  248. package/lib/esm/resources/addresses.js +4 -1
  249. package/lib/esm/resources/adjustments.d.ts +1 -0
  250. package/lib/esm/resources/adjustments.js +4 -1
  251. package/lib/esm/resources/adyen_gateways.d.ts +1 -0
  252. package/lib/esm/resources/adyen_gateways.js +4 -1
  253. package/lib/esm/resources/adyen_payments.d.ts +1 -0
  254. package/lib/esm/resources/adyen_payments.js +4 -1
  255. package/lib/esm/resources/application.d.ts +1 -0
  256. package/lib/esm/resources/application.js +4 -1
  257. package/lib/esm/resources/attachments.d.ts +1 -0
  258. package/lib/esm/resources/attachments.js +4 -1
  259. package/lib/esm/resources/authorizations.d.ts +1 -0
  260. package/lib/esm/resources/authorizations.js +4 -1
  261. package/lib/esm/resources/avalara_accounts.d.ts +1 -0
  262. package/lib/esm/resources/avalara_accounts.js +4 -1
  263. package/lib/esm/resources/axerve_gateways.d.ts +1 -0
  264. package/lib/esm/resources/axerve_gateways.js +4 -1
  265. package/lib/esm/resources/axerve_payments.d.ts +1 -0
  266. package/lib/esm/resources/axerve_payments.js +4 -1
  267. package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -0
  268. package/lib/esm/resources/billing_info_validation_rules.js +4 -1
  269. package/lib/esm/resources/bing_geocoders.d.ts +1 -0
  270. package/lib/esm/resources/bing_geocoders.js +4 -1
  271. package/lib/esm/resources/braintree_gateways.d.ts +1 -0
  272. package/lib/esm/resources/braintree_gateways.js +4 -1
  273. package/lib/esm/resources/braintree_payments.d.ts +1 -0
  274. package/lib/esm/resources/braintree_payments.js +4 -1
  275. package/lib/esm/resources/bundles.d.ts +1 -0
  276. package/lib/esm/resources/bundles.js +4 -1
  277. package/lib/esm/resources/buy_x_pay_y_promotions.d.ts +1 -0
  278. package/lib/esm/resources/buy_x_pay_y_promotions.js +4 -1
  279. package/lib/esm/resources/captures.d.ts +1 -0
  280. package/lib/esm/resources/captures.js +4 -1
  281. package/lib/esm/resources/carrier_accounts.d.ts +1 -0
  282. package/lib/esm/resources/carrier_accounts.js +4 -1
  283. package/lib/esm/resources/checkout_com_gateways.d.ts +1 -0
  284. package/lib/esm/resources/checkout_com_gateways.js +4 -1
  285. package/lib/esm/resources/checkout_com_payments.d.ts +1 -0
  286. package/lib/esm/resources/checkout_com_payments.js +4 -1
  287. package/lib/esm/resources/cleanups.d.ts +1 -0
  288. package/lib/esm/resources/cleanups.js +4 -1
  289. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -0
  290. package/lib/esm/resources/coupon_codes_promotion_rules.js +4 -1
  291. package/lib/esm/resources/coupon_recipients.d.ts +1 -0
  292. package/lib/esm/resources/coupon_recipients.js +4 -1
  293. package/lib/esm/resources/coupons.d.ts +1 -0
  294. package/lib/esm/resources/coupons.js +4 -1
  295. package/lib/esm/resources/custom_promotion_rules.d.ts +1 -0
  296. package/lib/esm/resources/custom_promotion_rules.js +4 -1
  297. package/lib/esm/resources/customer_addresses.d.ts +1 -0
  298. package/lib/esm/resources/customer_addresses.js +4 -1
  299. package/lib/esm/resources/customer_groups.d.ts +1 -0
  300. package/lib/esm/resources/customer_groups.js +4 -1
  301. package/lib/esm/resources/customer_password_resets.d.ts +1 -0
  302. package/lib/esm/resources/customer_password_resets.js +4 -1
  303. package/lib/esm/resources/customer_payment_sources.d.ts +1 -0
  304. package/lib/esm/resources/customer_payment_sources.js +4 -1
  305. package/lib/esm/resources/customer_subscriptions.d.ts +1 -0
  306. package/lib/esm/resources/customer_subscriptions.js +4 -1
  307. package/lib/esm/resources/customers.d.ts +1 -0
  308. package/lib/esm/resources/customers.js +4 -1
  309. package/lib/esm/resources/delivery_lead_times.d.ts +1 -0
  310. package/lib/esm/resources/delivery_lead_times.js +4 -1
  311. package/lib/esm/resources/event_callbacks.d.ts +1 -0
  312. package/lib/esm/resources/event_callbacks.js +4 -1
  313. package/lib/esm/resources/events.d.ts +1 -0
  314. package/lib/esm/resources/events.js +4 -1
  315. package/lib/esm/resources/exports.d.ts +1 -0
  316. package/lib/esm/resources/exports.js +4 -1
  317. package/lib/esm/resources/external_gateways.d.ts +1 -0
  318. package/lib/esm/resources/external_gateways.js +4 -1
  319. package/lib/esm/resources/external_payments.d.ts +1 -0
  320. package/lib/esm/resources/external_payments.js +4 -1
  321. package/lib/esm/resources/external_promotions.d.ts +1 -0
  322. package/lib/esm/resources/external_promotions.js +4 -1
  323. package/lib/esm/resources/external_tax_calculators.d.ts +1 -0
  324. package/lib/esm/resources/external_tax_calculators.js +4 -1
  325. package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -0
  326. package/lib/esm/resources/fixed_amount_promotions.js +4 -1
  327. package/lib/esm/resources/fixed_price_promotions.d.ts +1 -0
  328. package/lib/esm/resources/fixed_price_promotions.js +4 -1
  329. package/lib/esm/resources/free_gift_promotions.d.ts +1 -0
  330. package/lib/esm/resources/free_gift_promotions.js +4 -1
  331. package/lib/esm/resources/free_shipping_promotions.d.ts +1 -0
  332. package/lib/esm/resources/free_shipping_promotions.js +4 -1
  333. package/lib/esm/resources/geocoders.d.ts +1 -0
  334. package/lib/esm/resources/geocoders.js +4 -1
  335. package/lib/esm/resources/gift_card_recipients.d.ts +1 -0
  336. package/lib/esm/resources/gift_card_recipients.js +4 -1
  337. package/lib/esm/resources/gift_cards.d.ts +1 -0
  338. package/lib/esm/resources/gift_cards.js +4 -1
  339. package/lib/esm/resources/google_geocoders.d.ts +1 -0
  340. package/lib/esm/resources/google_geocoders.js +4 -1
  341. package/lib/esm/resources/imports.d.ts +1 -0
  342. package/lib/esm/resources/imports.js +4 -1
  343. package/lib/esm/resources/in_stock_subscriptions.d.ts +1 -0
  344. package/lib/esm/resources/in_stock_subscriptions.js +4 -1
  345. package/lib/esm/resources/inventory_models.d.ts +1 -0
  346. package/lib/esm/resources/inventory_models.js +4 -1
  347. package/lib/esm/resources/inventory_return_locations.d.ts +1 -0
  348. package/lib/esm/resources/inventory_return_locations.js +4 -1
  349. package/lib/esm/resources/inventory_stock_locations.d.ts +1 -0
  350. package/lib/esm/resources/inventory_stock_locations.js +4 -1
  351. package/lib/esm/resources/klarna_gateways.d.ts +1 -0
  352. package/lib/esm/resources/klarna_gateways.js +4 -1
  353. package/lib/esm/resources/klarna_payments.d.ts +1 -0
  354. package/lib/esm/resources/klarna_payments.js +4 -1
  355. package/lib/esm/resources/line_item_options.d.ts +1 -0
  356. package/lib/esm/resources/line_item_options.js +4 -1
  357. package/lib/esm/resources/line_items.d.ts +1 -0
  358. package/lib/esm/resources/line_items.js +4 -1
  359. package/lib/esm/resources/manual_gateways.d.ts +1 -0
  360. package/lib/esm/resources/manual_gateways.js +4 -1
  361. package/lib/esm/resources/manual_tax_calculators.d.ts +1 -0
  362. package/lib/esm/resources/manual_tax_calculators.js +4 -1
  363. package/lib/esm/resources/markets.d.ts +1 -0
  364. package/lib/esm/resources/markets.js +4 -1
  365. package/lib/esm/resources/merchants.d.ts +1 -0
  366. package/lib/esm/resources/merchants.js +4 -1
  367. package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -0
  368. package/lib/esm/resources/order_amount_promotion_rules.js +4 -1
  369. package/lib/esm/resources/order_copies.d.ts +1 -0
  370. package/lib/esm/resources/order_copies.js +4 -1
  371. package/lib/esm/resources/order_factories.d.ts +1 -0
  372. package/lib/esm/resources/order_factories.js +4 -1
  373. package/lib/esm/resources/order_subscription_items.d.ts +1 -0
  374. package/lib/esm/resources/order_subscription_items.js +4 -1
  375. package/lib/esm/resources/order_subscriptions.d.ts +1 -0
  376. package/lib/esm/resources/order_subscriptions.js +4 -1
  377. package/lib/esm/resources/order_validation_rules.d.ts +1 -0
  378. package/lib/esm/resources/order_validation_rules.js +4 -1
  379. package/lib/esm/resources/orders.d.ts +1 -0
  380. package/lib/esm/resources/orders.js +4 -1
  381. package/lib/esm/resources/organization.d.ts +1 -0
  382. package/lib/esm/resources/organization.js +4 -1
  383. package/lib/esm/resources/packages.d.ts +1 -0
  384. package/lib/esm/resources/packages.js +4 -1
  385. package/lib/esm/resources/parcel_line_items.d.ts +1 -0
  386. package/lib/esm/resources/parcel_line_items.js +4 -1
  387. package/lib/esm/resources/parcels.d.ts +1 -0
  388. package/lib/esm/resources/parcels.js +4 -1
  389. package/lib/esm/resources/payment_gateways.d.ts +1 -0
  390. package/lib/esm/resources/payment_gateways.js +4 -1
  391. package/lib/esm/resources/payment_methods.d.ts +1 -0
  392. package/lib/esm/resources/payment_methods.js +4 -1
  393. package/lib/esm/resources/payment_options.d.ts +1 -0
  394. package/lib/esm/resources/payment_options.js +4 -1
  395. package/lib/esm/resources/paypal_gateways.d.ts +1 -0
  396. package/lib/esm/resources/paypal_gateways.js +4 -1
  397. package/lib/esm/resources/paypal_payments.d.ts +1 -0
  398. package/lib/esm/resources/paypal_payments.js +4 -1
  399. package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -0
  400. package/lib/esm/resources/percentage_discount_promotions.js +4 -1
  401. package/lib/esm/resources/price_frequency_tiers.d.ts +1 -0
  402. package/lib/esm/resources/price_frequency_tiers.js +4 -1
  403. package/lib/esm/resources/price_lists.d.ts +1 -0
  404. package/lib/esm/resources/price_lists.js +4 -1
  405. package/lib/esm/resources/price_tiers.d.ts +1 -0
  406. package/lib/esm/resources/price_tiers.js +4 -1
  407. package/lib/esm/resources/price_volume_tiers.d.ts +1 -0
  408. package/lib/esm/resources/price_volume_tiers.js +4 -1
  409. package/lib/esm/resources/prices.d.ts +1 -0
  410. package/lib/esm/resources/prices.js +4 -1
  411. package/lib/esm/resources/promotion_rules.d.ts +1 -0
  412. package/lib/esm/resources/promotion_rules.js +4 -1
  413. package/lib/esm/resources/promotions.d.ts +1 -0
  414. package/lib/esm/resources/promotions.js +4 -1
  415. package/lib/esm/resources/recurring_order_copies.d.ts +1 -0
  416. package/lib/esm/resources/recurring_order_copies.js +4 -1
  417. package/lib/esm/resources/refunds.d.ts +1 -0
  418. package/lib/esm/resources/refunds.js +4 -1
  419. package/lib/esm/resources/reserved_stocks.d.ts +1 -0
  420. package/lib/esm/resources/reserved_stocks.js +4 -1
  421. package/lib/esm/resources/resource_errors.d.ts +1 -0
  422. package/lib/esm/resources/resource_errors.js +4 -1
  423. package/lib/esm/resources/return_line_items.d.ts +1 -0
  424. package/lib/esm/resources/return_line_items.js +4 -1
  425. package/lib/esm/resources/returns.d.ts +1 -0
  426. package/lib/esm/resources/returns.js +4 -1
  427. package/lib/esm/resources/satispay_gateways.d.ts +1 -0
  428. package/lib/esm/resources/satispay_gateways.js +4 -1
  429. package/lib/esm/resources/satispay_payments.d.ts +1 -0
  430. package/lib/esm/resources/satispay_payments.js +4 -1
  431. package/lib/esm/resources/shipments.d.ts +1 -0
  432. package/lib/esm/resources/shipments.js +4 -1
  433. package/lib/esm/resources/shipping_categories.d.ts +1 -0
  434. package/lib/esm/resources/shipping_categories.js +4 -1
  435. package/lib/esm/resources/shipping_method_tiers.d.ts +1 -0
  436. package/lib/esm/resources/shipping_method_tiers.js +4 -1
  437. package/lib/esm/resources/shipping_methods.d.ts +1 -0
  438. package/lib/esm/resources/shipping_methods.js +4 -1
  439. package/lib/esm/resources/shipping_weight_tiers.d.ts +1 -0
  440. package/lib/esm/resources/shipping_weight_tiers.js +4 -1
  441. package/lib/esm/resources/shipping_zones.d.ts +1 -0
  442. package/lib/esm/resources/shipping_zones.js +4 -1
  443. package/lib/esm/resources/sku_list_items.d.ts +1 -0
  444. package/lib/esm/resources/sku_list_items.js +4 -1
  445. package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -0
  446. package/lib/esm/resources/sku_list_promotion_rules.js +4 -1
  447. package/lib/esm/resources/sku_lists.d.ts +1 -0
  448. package/lib/esm/resources/sku_lists.js +4 -1
  449. package/lib/esm/resources/sku_options.d.ts +1 -0
  450. package/lib/esm/resources/sku_options.js +4 -1
  451. package/lib/esm/resources/skus.d.ts +1 -0
  452. package/lib/esm/resources/skus.js +4 -1
  453. package/lib/esm/resources/stock_items.d.ts +1 -0
  454. package/lib/esm/resources/stock_items.js +4 -1
  455. package/lib/esm/resources/stock_line_items.d.ts +1 -0
  456. package/lib/esm/resources/stock_line_items.js +4 -1
  457. package/lib/esm/resources/stock_locations.d.ts +1 -0
  458. package/lib/esm/resources/stock_locations.js +4 -1
  459. package/lib/esm/resources/stock_reservations.d.ts +1 -0
  460. package/lib/esm/resources/stock_reservations.js +4 -1
  461. package/lib/esm/resources/stock_transfers.d.ts +1 -0
  462. package/lib/esm/resources/stock_transfers.js +4 -1
  463. package/lib/esm/resources/stripe_gateways.d.ts +1 -0
  464. package/lib/esm/resources/stripe_gateways.js +4 -1
  465. package/lib/esm/resources/stripe_payments.d.ts +1 -0
  466. package/lib/esm/resources/stripe_payments.js +4 -1
  467. package/lib/esm/resources/subscription_models.d.ts +1 -0
  468. package/lib/esm/resources/subscription_models.js +4 -1
  469. package/lib/esm/resources/tags.d.ts +1 -0
  470. package/lib/esm/resources/tags.js +4 -1
  471. package/lib/esm/resources/tax_calculators.d.ts +1 -0
  472. package/lib/esm/resources/tax_calculators.js +4 -1
  473. package/lib/esm/resources/tax_categories.d.ts +1 -0
  474. package/lib/esm/resources/tax_categories.js +4 -1
  475. package/lib/esm/resources/tax_rules.d.ts +1 -0
  476. package/lib/esm/resources/tax_rules.js +4 -1
  477. package/lib/esm/resources/taxjar_accounts.d.ts +1 -0
  478. package/lib/esm/resources/taxjar_accounts.js +4 -1
  479. package/lib/esm/resources/transactions.d.ts +1 -0
  480. package/lib/esm/resources/transactions.js +4 -1
  481. package/lib/esm/resources/versions.d.ts +1 -0
  482. package/lib/esm/resources/versions.js +4 -1
  483. package/lib/esm/resources/voids.d.ts +1 -0
  484. package/lib/esm/resources/voids.js +4 -1
  485. package/lib/esm/resources/webhooks.d.ts +1 -0
  486. package/lib/esm/resources/webhooks.js +4 -1
  487. package/lib/esm/resources/wire_transfers.d.ts +1 -0
  488. package/lib/esm/resources/wire_transfers.js +4 -1
  489. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  490. package/lib/tsconfig.tsbuildinfo +1 -1
  491. package/package.json +1 -1
@@ -119,6 +119,7 @@ declare class FreeShippingPromotions extends ApiResource<FreeShippingPromotion>
119
119
  _enable(id: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeShippingPromotion>;
120
120
  isFreeShippingPromotion(resource: any): resource is FreeShippingPromotion;
121
121
  relationship(id: string | ResourceId | null): FreeShippingPromotionRel;
122
+ relationshipToMany(...ids: string[]): FreeShippingPromotionRel[];
122
123
  type(): FreeShippingPromotionType;
123
124
  }
124
125
  export default FreeShippingPromotions;
@@ -64,7 +64,10 @@ class FreeShippingPromotions extends ApiResource {
64
64
  return resource.type && (resource.type === FreeShippingPromotions.TYPE);
65
65
  }
66
66
  relationship(id) {
67
- return ((id === null) || (typeof id === 'string')) ? { id, type: FreeShippingPromotions.TYPE } : { id: id.id, type: FreeShippingPromotions.TYPE };
67
+ return super.relationshipOneToOne(id);
68
+ }
69
+ relationshipToMany(...ids) {
70
+ return super.relationshipOneToMany(...ids);
68
71
  }
69
72
  type() {
70
73
  return FreeShippingPromotions.TYPE;
@@ -19,6 +19,7 @@ declare class Geocoders extends ApiResource<Geocoder> {
19
19
  attachments(geocoderId: string | Geocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
20
20
  isGeocoder(resource: any): resource is Geocoder;
21
21
  relationship(id: string | ResourceId | null): GeocoderRel;
22
+ relationshipToMany(...ids: string[]): GeocoderRel[];
22
23
  type(): GeocoderType;
23
24
  }
24
25
  export default Geocoders;
@@ -13,7 +13,10 @@ class Geocoders extends ApiResource {
13
13
  return resource.type && (resource.type === Geocoders.TYPE);
14
14
  }
15
15
  relationship(id) {
16
- return ((id === null) || (typeof id === 'string')) ? { id, type: Geocoders.TYPE } : { id: id.id, type: Geocoders.TYPE };
16
+ return super.relationshipOneToOne(id);
17
+ }
18
+ relationshipToMany(...ids) {
19
+ return super.relationshipOneToMany(...ids);
17
20
  }
18
21
  type() {
19
22
  return Geocoders.TYPE;
@@ -42,6 +42,7 @@ declare class GiftCardRecipients extends ApiResource<GiftCardRecipient> {
42
42
  versions(giftCardRecipientId: string | GiftCardRecipient, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
43
43
  isGiftCardRecipient(resource: any): resource is GiftCardRecipient;
44
44
  relationship(id: string | ResourceId | null): GiftCardRecipientRel;
45
+ relationshipToMany(...ids: string[]): GiftCardRecipientRel[];
45
46
  type(): GiftCardRecipientType;
46
47
  }
47
48
  export default GiftCardRecipients;
@@ -26,7 +26,10 @@ class GiftCardRecipients extends ApiResource {
26
26
  return resource.type && (resource.type === GiftCardRecipients.TYPE);
27
27
  }
28
28
  relationship(id) {
29
- return ((id === null) || (typeof id === 'string')) ? { id, type: GiftCardRecipients.TYPE } : { id: id.id, type: GiftCardRecipients.TYPE };
29
+ return super.relationshipOneToOne(id);
30
+ }
31
+ relationshipToMany(...ids) {
32
+ return super.relationshipOneToMany(...ids);
30
33
  }
31
34
  type() {
32
35
  return GiftCardRecipients.TYPE;
@@ -98,6 +98,7 @@ declare class GiftCards extends ApiResource<GiftCard> {
98
98
  _balance_change_cents(id: string | GiftCard, triggerValue: number, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCard>;
99
99
  isGiftCard(resource: any): resource is GiftCard;
100
100
  relationship(id: string | ResourceId | null): GiftCardRel;
101
+ relationshipToMany(...ids: string[]): GiftCardRel[];
101
102
  type(): GiftCardType;
102
103
  }
103
104
  export default GiftCards;
@@ -50,7 +50,10 @@ class GiftCards extends ApiResource {
50
50
  return resource.type && (resource.type === GiftCards.TYPE);
51
51
  }
52
52
  relationship(id) {
53
- return ((id === null) || (typeof id === 'string')) ? { id, type: GiftCards.TYPE } : { id: id.id, type: GiftCards.TYPE };
53
+ return super.relationshipOneToOne(id);
54
+ }
55
+ relationshipToMany(...ids) {
56
+ return super.relationshipOneToMany(...ids);
54
57
  }
55
58
  type() {
56
59
  return GiftCards.TYPE;
@@ -30,6 +30,7 @@ declare class GoogleGeocoders extends ApiResource<GoogleGeocoder> {
30
30
  attachments(googleGeocoderId: string | GoogleGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
31
31
  isGoogleGeocoder(resource: any): resource is GoogleGeocoder;
32
32
  relationship(id: string | ResourceId | null): GoogleGeocoderRel;
33
+ relationshipToMany(...ids: string[]): GoogleGeocoderRel[];
33
34
  type(): GoogleGeocoderType;
34
35
  }
35
36
  export default GoogleGeocoders;
@@ -22,7 +22,10 @@ class GoogleGeocoders extends ApiResource {
22
22
  return resource.type && (resource.type === GoogleGeocoders.TYPE);
23
23
  }
24
24
  relationship(id) {
25
- return ((id === null) || (typeof id === 'string')) ? { id, type: GoogleGeocoders.TYPE } : { id: id.id, type: GoogleGeocoders.TYPE };
25
+ return super.relationshipOneToOne(id);
26
+ }
27
+ relationshipToMany(...ids) {
28
+ return super.relationshipOneToMany(...ids);
26
29
  }
27
30
  type() {
28
31
  return GoogleGeocoders.TYPE;
@@ -38,6 +38,7 @@ declare class Imports extends ApiResource<Import> {
38
38
  events(importId: string | Import, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
39
39
  isImport(resource: any): resource is Import;
40
40
  relationship(id: string | ResourceId | null): ImportRel;
41
+ relationshipToMany(...ids: string[]): ImportRel[];
41
42
  type(): ImportType;
42
43
  }
43
44
  export default Imports;
@@ -15,7 +15,10 @@ class Imports extends ApiResource {
15
15
  return resource.type && (resource.type === Imports.TYPE);
16
16
  }
17
17
  relationship(id) {
18
- return ((id === null) || (typeof id === 'string')) ? { id, type: Imports.TYPE } : { id: id.id, type: Imports.TYPE };
18
+ return super.relationshipOneToOne(id);
19
+ }
20
+ relationshipToMany(...ids) {
21
+ return super.relationshipOneToMany(...ids);
19
22
  }
20
23
  type() {
21
24
  return Imports.TYPE;
@@ -62,6 +62,7 @@ declare class InStockSubscriptions extends ApiResource<InStockSubscription> {
62
62
  _deactivate(id: string | InStockSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InStockSubscription>;
63
63
  isInStockSubscription(resource: any): resource is InStockSubscription;
64
64
  relationship(id: string | ResourceId | null): InStockSubscriptionRel;
65
+ relationshipToMany(...ids: string[]): InStockSubscriptionRel[];
65
66
  type(): InStockSubscriptionType;
66
67
  }
67
68
  export default InStockSubscriptions;
@@ -40,7 +40,10 @@ class InStockSubscriptions extends ApiResource {
40
40
  return resource.type && (resource.type === InStockSubscriptions.TYPE);
41
41
  }
42
42
  relationship(id) {
43
- return ((id === null) || (typeof id === 'string')) ? { id, type: InStockSubscriptions.TYPE } : { id: id.id, type: InStockSubscriptions.TYPE };
43
+ return super.relationshipOneToOne(id);
44
+ }
45
+ relationshipToMany(...ids) {
46
+ return super.relationshipOneToMany(...ids);
44
47
  }
45
48
  type() {
46
49
  return InStockSubscriptions.TYPE;
@@ -49,6 +49,7 @@ declare class InventoryModels extends ApiResource<InventoryModel> {
49
49
  versions(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
50
50
  isInventoryModel(resource: any): resource is InventoryModel;
51
51
  relationship(id: string | ResourceId | null): InventoryModelRel;
52
+ relationshipToMany(...ids: string[]): InventoryModelRel[];
52
53
  type(): InventoryModelType;
53
54
  }
54
55
  export default InventoryModels;
@@ -30,7 +30,10 @@ class InventoryModels extends ApiResource {
30
30
  return resource.type && (resource.type === InventoryModels.TYPE);
31
31
  }
32
32
  relationship(id) {
33
- return ((id === null) || (typeof id === 'string')) ? { id, type: InventoryModels.TYPE } : { id: id.id, type: InventoryModels.TYPE };
33
+ return super.relationshipOneToOne(id);
34
+ }
35
+ relationshipToMany(...ids) {
36
+ return super.relationshipOneToMany(...ids);
34
37
  }
35
38
  type() {
36
39
  return InventoryModels.TYPE;
@@ -41,6 +41,7 @@ declare class InventoryReturnLocations extends ApiResource<InventoryReturnLocati
41
41
  versions(inventoryReturnLocationId: string | InventoryReturnLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
42
42
  isInventoryReturnLocation(resource: any): resource is InventoryReturnLocation;
43
43
  relationship(id: string | ResourceId | null): InventoryReturnLocationRel;
44
+ relationshipToMany(...ids: string[]): InventoryReturnLocationRel[];
44
45
  type(): InventoryReturnLocationType;
45
46
  }
46
47
  export default InventoryReturnLocations;
@@ -26,7 +26,10 @@ class InventoryReturnLocations extends ApiResource {
26
26
  return resource.type && (resource.type === InventoryReturnLocations.TYPE);
27
27
  }
28
28
  relationship(id) {
29
- return ((id === null) || (typeof id === 'string')) ? { id, type: InventoryReturnLocations.TYPE } : { id: id.id, type: InventoryReturnLocations.TYPE };
29
+ return super.relationshipOneToOne(id);
30
+ }
31
+ relationshipToMany(...ids) {
32
+ return super.relationshipOneToMany(...ids);
30
33
  }
31
34
  type() {
32
35
  return InventoryReturnLocations.TYPE;
@@ -44,6 +44,7 @@ declare class InventoryStockLocations extends ApiResource<InventoryStockLocation
44
44
  versions(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
45
45
  isInventoryStockLocation(resource: any): resource is InventoryStockLocation;
46
46
  relationship(id: string | ResourceId | null): InventoryStockLocationRel;
47
+ relationshipToMany(...ids: string[]): InventoryStockLocationRel[];
47
48
  type(): InventoryStockLocationType;
48
49
  }
49
50
  export default InventoryStockLocations;
@@ -26,7 +26,10 @@ class InventoryStockLocations extends ApiResource {
26
26
  return resource.type && (resource.type === InventoryStockLocations.TYPE);
27
27
  }
28
28
  relationship(id) {
29
- return ((id === null) || (typeof id === 'string')) ? { id, type: InventoryStockLocations.TYPE } : { id: id.id, type: InventoryStockLocations.TYPE };
29
+ return super.relationshipOneToOne(id);
30
+ }
31
+ relationshipToMany(...ids) {
32
+ return super.relationshipOneToMany(...ids);
30
33
  }
31
34
  type() {
32
35
  return InventoryStockLocations.TYPE;
@@ -42,6 +42,7 @@ declare class KlarnaGateways extends ApiResource<KlarnaGateway> {
42
42
  klarna_payments(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<KlarnaPayment>>;
43
43
  isKlarnaGateway(resource: any): resource is KlarnaGateway;
44
44
  relationship(id: string | ResourceId | null): KlarnaGatewayRel;
45
+ relationshipToMany(...ids: string[]): KlarnaGatewayRel[];
45
46
  type(): KlarnaGatewayType;
46
47
  }
47
48
  export default KlarnaGateways;
@@ -26,7 +26,10 @@ class KlarnaGateways extends ApiResource {
26
26
  return resource.type && (resource.type === KlarnaGateways.TYPE);
27
27
  }
28
28
  relationship(id) {
29
- return ((id === null) || (typeof id === 'string')) ? { id, type: KlarnaGateways.TYPE } : { id: id.id, type: KlarnaGateways.TYPE };
29
+ return super.relationshipOneToOne(id);
30
+ }
31
+ relationshipToMany(...ids) {
32
+ return super.relationshipOneToMany(...ids);
30
33
  }
31
34
  type() {
32
35
  return KlarnaGateways.TYPE;
@@ -45,6 +45,7 @@ declare class KlarnaPayments extends ApiResource<KlarnaPayment> {
45
45
  _update(id: string | KlarnaPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaPayment>;
46
46
  isKlarnaPayment(resource: any): resource is KlarnaPayment;
47
47
  relationship(id: string | ResourceId | null): KlarnaPaymentRel;
48
+ relationshipToMany(...ids: string[]): KlarnaPaymentRel[];
48
49
  type(): KlarnaPaymentType;
49
50
  }
50
51
  export default KlarnaPayments;
@@ -29,7 +29,10 @@ class KlarnaPayments extends ApiResource {
29
29
  return resource.type && (resource.type === KlarnaPayments.TYPE);
30
30
  }
31
31
  relationship(id) {
32
- return ((id === null) || (typeof id === 'string')) ? { id, type: KlarnaPayments.TYPE } : { id: id.id, type: KlarnaPayments.TYPE };
32
+ return super.relationshipOneToOne(id);
33
+ }
34
+ relationshipToMany(...ids) {
35
+ return super.relationshipOneToMany(...ids);
33
36
  }
34
37
  type() {
35
38
  return KlarnaPayments.TYPE;
@@ -63,6 +63,7 @@ declare class LineItemOptions extends ApiResource<LineItemOption> {
63
63
  tags(lineItemOptionId: string | LineItemOption, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
64
64
  isLineItemOption(resource: any): resource is LineItemOption;
65
65
  relationship(id: string | ResourceId | null): LineItemOptionRel;
66
+ relationshipToMany(...ids: string[]): LineItemOptionRel[];
66
67
  type(): LineItemOptionType;
67
68
  }
68
69
  export default LineItemOptions;
@@ -30,7 +30,10 @@ class LineItemOptions extends ApiResource {
30
30
  return resource.type && (resource.type === LineItemOptions.TYPE);
31
31
  }
32
32
  relationship(id) {
33
- return ((id === null) || (typeof id === 'string')) ? { id, type: LineItemOptions.TYPE } : { id: id.id, type: LineItemOptions.TYPE };
33
+ return super.relationshipOneToOne(id);
34
+ }
35
+ relationshipToMany(...ids) {
36
+ return super.relationshipOneToMany(...ids);
34
37
  }
35
38
  type() {
36
39
  return LineItemOptions.TYPE;
@@ -164,6 +164,7 @@ declare class LineItems extends ApiResource<LineItem> {
164
164
  _reset_circuit(id: string | LineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
165
165
  isLineItem(resource: any): resource is LineItem;
166
166
  relationship(id: string | ResourceId | null): LineItemRel;
167
+ relationshipToMany(...ids: string[]): LineItemRel[];
167
168
  type(): LineItemType;
168
169
  }
169
170
  export default LineItems;
@@ -55,7 +55,10 @@ class LineItems extends ApiResource {
55
55
  return resource.type && (resource.type === LineItems.TYPE);
56
56
  }
57
57
  relationship(id) {
58
- return ((id === null) || (typeof id === 'string')) ? { id, type: LineItems.TYPE } : { id: id.id, type: LineItems.TYPE };
58
+ return super.relationshipOneToOne(id);
59
+ }
60
+ relationshipToMany(...ids) {
61
+ return super.relationshipOneToMany(...ids);
59
62
  }
60
63
  type() {
61
64
  return LineItems.TYPE;
@@ -28,6 +28,7 @@ declare class ManualGateways extends ApiResource<ManualGateway> {
28
28
  versions(manualGatewayId: string | ManualGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
29
29
  isManualGateway(resource: any): resource is ManualGateway;
30
30
  relationship(id: string | ResourceId | null): ManualGatewayRel;
31
+ relationshipToMany(...ids: string[]): ManualGatewayRel[];
31
32
  type(): ManualGatewayType;
32
33
  }
33
34
  export default ManualGateways;
@@ -22,7 +22,10 @@ class ManualGateways extends ApiResource {
22
22
  return resource.type && (resource.type === ManualGateways.TYPE);
23
23
  }
24
24
  relationship(id) {
25
- return ((id === null) || (typeof id === 'string')) ? { id, type: ManualGateways.TYPE } : { id: id.id, type: ManualGateways.TYPE };
25
+ return super.relationshipOneToOne(id);
26
+ }
27
+ relationshipToMany(...ids) {
28
+ return super.relationshipOneToMany(...ids);
26
29
  }
27
30
  type() {
28
31
  return ManualGateways.TYPE;
@@ -39,6 +39,7 @@ declare class ManualTaxCalculators extends ApiResource<ManualTaxCalculator> {
39
39
  tax_rules(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxRule>>;
40
40
  isManualTaxCalculator(resource: any): resource is ManualTaxCalculator;
41
41
  relationship(id: string | ResourceId | null): ManualTaxCalculatorRel;
42
+ relationshipToMany(...ids: string[]): ManualTaxCalculatorRel[];
42
43
  type(): ManualTaxCalculatorType;
43
44
  }
44
45
  export default ManualTaxCalculators;
@@ -30,7 +30,10 @@ class ManualTaxCalculators extends ApiResource {
30
30
  return resource.type && (resource.type === ManualTaxCalculators.TYPE);
31
31
  }
32
32
  relationship(id) {
33
- return ((id === null) || (typeof id === 'string')) ? { id, type: ManualTaxCalculators.TYPE } : { id: id.id, type: ManualTaxCalculators.TYPE };
33
+ return super.relationshipOneToOne(id);
34
+ }
35
+ relationshipToMany(...ids) {
36
+ return super.relationshipOneToMany(...ids);
34
37
  }
35
38
  type() {
36
39
  return ManualTaxCalculators.TYPE;
@@ -101,6 +101,7 @@ declare class Markets extends ApiResource<Market> {
101
101
  _enable(id: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
102
102
  isMarket(resource: any): resource is Market;
103
103
  relationship(id: string | ResourceId | null): MarketRel;
104
+ relationshipToMany(...ids: string[]): MarketRel[];
104
105
  type(): MarketType;
105
106
  }
106
107
  export default Markets;
@@ -52,7 +52,10 @@ class Markets extends ApiResource {
52
52
  return resource.type && (resource.type === Markets.TYPE);
53
53
  }
54
54
  relationship(id) {
55
- return ((id === null) || (typeof id === 'string')) ? { id, type: Markets.TYPE } : { id: id.id, type: Markets.TYPE };
55
+ return super.relationshipOneToOne(id);
56
+ }
57
+ relationshipToMany(...ids) {
58
+ return super.relationshipOneToMany(...ids);
56
59
  }
57
60
  type() {
58
61
  return Markets.TYPE;
@@ -36,6 +36,7 @@ declare class Merchants extends ApiResource<Merchant> {
36
36
  versions(merchantId: string | Merchant, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
37
37
  isMerchant(resource: any): resource is Merchant;
38
38
  relationship(id: string | ResourceId | null): MerchantRel;
39
+ relationshipToMany(...ids: string[]): MerchantRel[];
39
40
  type(): MerchantType;
40
41
  }
41
42
  export default Merchants;
@@ -26,7 +26,10 @@ class Merchants extends ApiResource {
26
26
  return resource.type && (resource.type === Merchants.TYPE);
27
27
  }
28
28
  relationship(id) {
29
- return ((id === null) || (typeof id === 'string')) ? { id, type: Merchants.TYPE } : { id: id.id, type: Merchants.TYPE };
29
+ return super.relationshipOneToOne(id);
30
+ }
31
+ relationshipToMany(...ids) {
32
+ return super.relationshipOneToMany(...ids);
30
33
  }
31
34
  type() {
32
35
  return Merchants.TYPE;
@@ -61,6 +61,7 @@ declare class OrderAmountPromotionRules extends ApiResource<OrderAmountPromotion
61
61
  versions(orderAmountPromotionRuleId: string | OrderAmountPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
62
62
  isOrderAmountPromotionRule(resource: any): resource is OrderAmountPromotionRule;
63
63
  relationship(id: string | ResourceId | null): OrderAmountPromotionRuleRel;
64
+ relationshipToMany(...ids: string[]): OrderAmountPromotionRuleRel[];
64
65
  type(): OrderAmountPromotionRuleType;
65
66
  }
66
67
  export default OrderAmountPromotionRules;
@@ -18,7 +18,10 @@ class OrderAmountPromotionRules extends ApiResource {
18
18
  return resource.type && (resource.type === OrderAmountPromotionRules.TYPE);
19
19
  }
20
20
  relationship(id) {
21
- return ((id === null) || (typeof id === 'string')) ? { id, type: OrderAmountPromotionRules.TYPE } : { id: id.id, type: OrderAmountPromotionRules.TYPE };
21
+ return super.relationshipOneToOne(id);
22
+ }
23
+ relationshipToMany(...ids) {
24
+ return super.relationshipOneToMany(...ids);
22
25
  }
23
26
  type() {
24
27
  return OrderAmountPromotionRules.TYPE;
@@ -45,6 +45,7 @@ declare class OrderCopies extends ApiResource<OrderCopy> {
45
45
  order_subscription(orderCopyId: string | OrderCopy, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
46
46
  isOrderCopy(resource: any): resource is OrderCopy;
47
47
  relationship(id: string | ResourceId | null): OrderCopyRel;
48
+ relationshipToMany(...ids: string[]): OrderCopyRel[];
48
49
  type(): OrderCopyType;
49
50
  }
50
51
  export default OrderCopies;
@@ -30,7 +30,10 @@ class OrderCopies extends ApiResource {
30
30
  return resource.type && (resource.type === OrderCopies.TYPE);
31
31
  }
32
32
  relationship(id) {
33
- return ((id === null) || (typeof id === 'string')) ? { id, type: OrderCopies.TYPE } : { id: id.id, type: OrderCopies.TYPE };
33
+ return super.relationshipOneToOne(id);
34
+ }
35
+ relationshipToMany(...ids) {
36
+ return super.relationshipOneToMany(...ids);
34
37
  }
35
38
  type() {
36
39
  return OrderCopies.TYPE;
@@ -28,6 +28,7 @@ declare class OrderFactories extends ApiResource<OrderFactory> {
28
28
  events(orderFactoryId: string | OrderFactory, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
29
29
  isOrderFactory(resource: any): resource is OrderFactory;
30
30
  relationship(id: string | ResourceId | null): OrderFactoryRel;
31
+ relationshipToMany(...ids: string[]): OrderFactoryRel[];
31
32
  type(): OrderFactoryType;
32
33
  }
33
34
  export default OrderFactories;
@@ -17,7 +17,10 @@ class OrderFactories extends ApiResource {
17
17
  return resource.type && (resource.type === OrderFactories.TYPE);
18
18
  }
19
19
  relationship(id) {
20
- return ((id === null) || (typeof id === 'string')) ? { id, type: OrderFactories.TYPE } : { id: id.id, type: OrderFactories.TYPE };
20
+ return super.relationshipOneToOne(id);
21
+ }
22
+ relationshipToMany(...ids) {
23
+ return super.relationshipOneToMany(...ids);
21
24
  }
22
25
  type() {
23
26
  return OrderFactories.TYPE;
@@ -62,6 +62,7 @@ declare class OrderSubscriptionItems extends ApiResource<OrderSubscriptionItem>
62
62
  source_line_item(orderSubscriptionItemId: string | OrderSubscriptionItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
63
63
  isOrderSubscriptionItem(resource: any): resource is OrderSubscriptionItem;
64
64
  relationship(id: string | ResourceId | null): OrderSubscriptionItemRel;
65
+ relationshipToMany(...ids: string[]): OrderSubscriptionItemRel[];
65
66
  type(): OrderSubscriptionItemType;
66
67
  }
67
68
  export default OrderSubscriptionItems;
@@ -22,7 +22,10 @@ class OrderSubscriptionItems extends ApiResource {
22
22
  return resource.type && (resource.type === OrderSubscriptionItems.TYPE);
23
23
  }
24
24
  relationship(id) {
25
- return ((id === null) || (typeof id === 'string')) ? { id, type: OrderSubscriptionItems.TYPE } : { id: id.id, type: OrderSubscriptionItems.TYPE };
25
+ return super.relationshipOneToOne(id);
26
+ }
27
+ relationshipToMany(...ids) {
28
+ return super.relationshipOneToMany(...ids);
26
29
  }
27
30
  type() {
28
31
  return OrderSubscriptionItems.TYPE;
@@ -90,6 +90,7 @@ declare class OrderSubscriptions extends ApiResource<OrderSubscription> {
90
90
  _cancel(id: string | OrderSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
91
91
  isOrderSubscription(resource: any): resource is OrderSubscription;
92
92
  relationship(id: string | ResourceId | null): OrderSubscriptionRel;
93
+ relationshipToMany(...ids: string[]): OrderSubscriptionRel[];
93
94
  type(): OrderSubscriptionType;
94
95
  }
95
96
  export default OrderSubscriptions;
@@ -67,7 +67,10 @@ class OrderSubscriptions extends ApiResource {
67
67
  return resource.type && (resource.type === OrderSubscriptions.TYPE);
68
68
  }
69
69
  relationship(id) {
70
- return ((id === null) || (typeof id === 'string')) ? { id, type: OrderSubscriptions.TYPE } : { id: id.id, type: OrderSubscriptions.TYPE };
70
+ return super.relationshipOneToOne(id);
71
+ }
72
+ relationshipToMany(...ids) {
73
+ return super.relationshipOneToMany(...ids);
71
74
  }
72
75
  type() {
73
76
  return OrderSubscriptions.TYPE;
@@ -21,6 +21,7 @@ declare class OrderValidationRules extends ApiResource<OrderValidationRule> {
21
21
  versions(orderValidationRuleId: string | OrderValidationRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
22
22
  isOrderValidationRule(resource: any): resource is OrderValidationRule;
23
23
  relationship(id: string | ResourceId | null): OrderValidationRuleRel;
24
+ relationshipToMany(...ids: string[]): OrderValidationRuleRel[];
24
25
  type(): OrderValidationRuleType;
25
26
  }
26
27
  export default OrderValidationRules;
@@ -17,7 +17,10 @@ class OrderValidationRules extends ApiResource {
17
17
  return resource.type && (resource.type === OrderValidationRules.TYPE);
18
18
  }
19
19
  relationship(id) {
20
- return ((id === null) || (typeof id === 'string')) ? { id, type: OrderValidationRules.TYPE } : { id: id.id, type: OrderValidationRules.TYPE };
20
+ return super.relationshipOneToOne(id);
21
+ }
22
+ relationshipToMany(...ids) {
23
+ return super.relationshipOneToMany(...ids);
21
24
  }
22
25
  type() {
23
26
  return OrderValidationRules.TYPE;
@@ -383,6 +383,7 @@ declare class Orders extends ApiResource<Order> {
383
383
  _reset_circuit(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
384
384
  isOrder(resource: any): resource is Order;
385
385
  relationship(id: string | ResourceId | null): OrderRel;
386
+ relationshipToMany(...ids: string[]): OrderRel[];
386
387
  type(): OrderType;
387
388
  }
388
389
  export default Orders;
@@ -225,7 +225,10 @@ class Orders extends ApiResource {
225
225
  return resource.type && (resource.type === Orders.TYPE);
226
226
  }
227
227
  relationship(id) {
228
- return ((id === null) || (typeof id === 'string')) ? { id, type: Orders.TYPE } : { id: id.id, type: Orders.TYPE };
228
+ return super.relationshipOneToOne(id);
229
+ }
230
+ relationshipToMany(...ids) {
231
+ return super.relationshipOneToMany(...ids);
229
232
  }
230
233
  type() {
231
234
  return Orders.TYPE;
@@ -28,6 +28,7 @@ declare class Organizations extends ApiSingleton<Organization> {
28
28
  static readonly TYPE: OrganizationType;
29
29
  isOrganization(resource: any): resource is Organization;
30
30
  relationship(id: string | ResourceId | null): OrganizationRel;
31
+ relationshipToMany(...ids: string[]): OrganizationRel[];
31
32
  type(): OrganizationType;
32
33
  }
33
34
  export default Organizations;
@@ -5,7 +5,10 @@ class Organizations extends ApiSingleton {
5
5
  return resource.type && (resource.type === Organizations.TYPE);
6
6
  }
7
7
  relationship(id) {
8
- return ((id === null) || (typeof id === 'string')) ? { id, type: Organizations.TYPE } : { id: id.id, type: Organizations.TYPE };
8
+ return super.relationshipOneToOne(id);
9
+ }
10
+ relationshipToMany(...ids) {
11
+ return super.relationshipOneToMany(...ids);
9
12
  }
10
13
  type() {
11
14
  return Organizations.TYPE;
@@ -54,6 +54,7 @@ declare class Packages extends ApiResource<Package> {
54
54
  versions(packageId: string | Package, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
55
55
  isPackage(resource: any): resource is Package;
56
56
  relationship(id: string | ResourceId | null): PackageRel;
57
+ relationshipToMany(...ids: string[]): PackageRel[];
57
58
  type(): PackageType;
58
59
  }
59
60
  export default Packages;
@@ -30,7 +30,10 @@ class Packages extends ApiResource {
30
30
  return resource.type && (resource.type === Packages.TYPE);
31
31
  }
32
32
  relationship(id) {
33
- return ((id === null) || (typeof id === 'string')) ? { id, type: Packages.TYPE } : { id: id.id, type: Packages.TYPE };
33
+ return super.relationshipOneToOne(id);
34
+ }
35
+ relationshipToMany(...ids) {
36
+ return super.relationshipOneToMany(...ids);
34
37
  }
35
38
  type() {
36
39
  return Packages.TYPE;
@@ -41,6 +41,7 @@ declare class ParcelLineItems extends ApiResource<ParcelLineItem> {
41
41
  versions(parcelLineItemId: string | ParcelLineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
42
42
  isParcelLineItem(resource: any): resource is ParcelLineItem;
43
43
  relationship(id: string | ResourceId | null): ParcelLineItemRel;
44
+ relationshipToMany(...ids: string[]): ParcelLineItemRel[];
44
45
  type(): ParcelLineItemType;
45
46
  }
46
47
  export default ParcelLineItems;