@commercelayer/sdk 2.3.13 → 2.5.0

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 (358) hide show
  1. package/lib/cjs/api.d.ts +6 -4
  2. package/lib/cjs/api.js +1 -1
  3. package/lib/cjs/client.js +1 -1
  4. package/lib/cjs/commercelayer.d.ts +2 -0
  5. package/lib/cjs/commercelayer.js +1 -1
  6. package/lib/cjs/debug.d.ts +3 -0
  7. package/lib/cjs/debug.js +1 -0
  8. package/lib/cjs/index.js +1 -1
  9. package/lib/cjs/jsonapi.js +1 -1
  10. package/lib/cjs/model.d.ts +5 -3
  11. package/lib/cjs/query.js +1 -1
  12. package/lib/cjs/resource.js +1 -1
  13. package/lib/cjs/resources/addresses.d.ts +2 -2
  14. package/lib/cjs/resources/adjustments.d.ts +2 -2
  15. package/lib/cjs/resources/adyen_gateways.d.ts +2 -2
  16. package/lib/cjs/resources/adyen_gateways.js +1 -1
  17. package/lib/cjs/resources/adyen_payments.d.ts +2 -3
  18. package/lib/cjs/resources/adyen_payments.js +1 -1
  19. package/lib/cjs/resources/application.d.ts +2 -2
  20. package/lib/cjs/resources/attachments.d.ts +2 -2
  21. package/lib/cjs/resources/authorizations.d.ts +2 -2
  22. package/lib/cjs/resources/avalara_accounts.d.ts +2 -2
  23. package/lib/cjs/resources/billing_info_validation_rules.d.ts +2 -2
  24. package/lib/cjs/resources/bing_geocoders.d.ts +2 -2
  25. package/lib/cjs/resources/braintree_gateways.d.ts +2 -2
  26. package/lib/cjs/resources/braintree_gateways.js +1 -1
  27. package/lib/cjs/resources/braintree_payments.d.ts +2 -2
  28. package/lib/cjs/resources/braintree_payments.js +1 -1
  29. package/lib/cjs/resources/bundles.d.ts +7 -2
  30. package/lib/cjs/resources/captures.d.ts +2 -2
  31. package/lib/cjs/resources/carrier_accounts.d.ts +2 -2
  32. package/lib/cjs/resources/checkout_com_gateways.d.ts +2 -2
  33. package/lib/cjs/resources/checkout_com_gateways.js +1 -1
  34. package/lib/cjs/resources/checkout_com_payments.d.ts +2 -3
  35. package/lib/cjs/resources/checkout_com_payments.js +1 -1
  36. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +2 -2
  37. package/lib/cjs/resources/coupon_recipients.d.ts +2 -2
  38. package/lib/cjs/resources/coupons.d.ts +5 -2
  39. package/lib/cjs/resources/customer_addresses.d.ts +2 -2
  40. package/lib/cjs/resources/customer_groups.d.ts +2 -2
  41. package/lib/cjs/resources/customer_password_resets.d.ts +2 -2
  42. package/lib/cjs/resources/customer_payment_sources.d.ts +9 -5
  43. package/lib/cjs/resources/customer_subscriptions.d.ts +2 -2
  44. package/lib/cjs/resources/customers.d.ts +2 -2
  45. package/lib/cjs/resources/delivery_lead_times.d.ts +2 -2
  46. package/lib/cjs/resources/delivery_lead_times.js +1 -1
  47. package/lib/cjs/resources/event_callbacks.d.ts +2 -2
  48. package/lib/cjs/resources/external_gateways.d.ts +5 -2
  49. package/lib/cjs/resources/external_gateways.js +1 -1
  50. package/lib/cjs/resources/external_payments.d.ts +4 -2
  51. package/lib/cjs/resources/external_payments.js +1 -1
  52. package/lib/cjs/resources/external_promotions.d.ts +5 -2
  53. package/lib/cjs/resources/external_promotions.js +1 -1
  54. package/lib/cjs/resources/external_tax_calculators.d.ts +2 -2
  55. package/lib/cjs/resources/external_tax_calculators.js +1 -1
  56. package/lib/cjs/resources/fixed_amount_promotions.d.ts +5 -2
  57. package/lib/cjs/resources/fixed_amount_promotions.js +1 -1
  58. package/lib/cjs/resources/fixed_price_promotions.d.ts +5 -2
  59. package/lib/cjs/resources/free_gift_promotions.d.ts +5 -2
  60. package/lib/cjs/resources/free_gift_promotions.js +1 -1
  61. package/lib/cjs/resources/free_shipping_promotions.d.ts +5 -2
  62. package/lib/cjs/resources/geocoders.d.ts +4 -3
  63. package/lib/cjs/resources/geocoders.js +1 -1
  64. package/lib/cjs/resources/gift_card_recipients.d.ts +2 -2
  65. package/lib/cjs/resources/gift_card_recipients.js +1 -1
  66. package/lib/cjs/resources/gift_cards.d.ts +3 -3
  67. package/lib/cjs/resources/google_geocoders.d.ts +2 -2
  68. package/lib/cjs/resources/imports.d.ts +2 -2
  69. package/lib/cjs/resources/in_stock_subscriptions.d.ts +2 -2
  70. package/lib/cjs/resources/in_stock_subscriptions.js +1 -1
  71. package/lib/cjs/resources/inventory_models.d.ts +2 -2
  72. package/lib/cjs/resources/inventory_return_locations.d.ts +2 -2
  73. package/lib/cjs/resources/inventory_stock_locations.d.ts +2 -2
  74. package/lib/cjs/resources/klarna_gateways.d.ts +46 -0
  75. package/lib/cjs/resources/klarna_gateways.js +1 -0
  76. package/lib/cjs/resources/klarna_payments.d.ts +43 -0
  77. package/lib/cjs/resources/klarna_payments.js +1 -0
  78. package/lib/cjs/resources/line_item_options.d.ts +2 -2
  79. package/lib/cjs/resources/line_item_options.js +1 -1
  80. package/lib/cjs/resources/line_items.d.ts +2 -2
  81. package/lib/cjs/resources/line_items.js +1 -1
  82. package/lib/cjs/resources/manual_gateways.d.ts +2 -2
  83. package/lib/cjs/resources/manual_gateways.js +1 -1
  84. package/lib/cjs/resources/manual_tax_calculators.d.ts +2 -2
  85. package/lib/cjs/resources/markets.d.ts +2 -2
  86. package/lib/cjs/resources/merchants.d.ts +2 -2
  87. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +2 -2
  88. package/lib/cjs/resources/order_amount_promotion_rules.js +1 -1
  89. package/lib/cjs/resources/order_copies.d.ts +2 -2
  90. package/lib/cjs/resources/order_subscriptions.d.ts +2 -2
  91. package/lib/cjs/resources/order_validation_rules.d.ts +4 -3
  92. package/lib/cjs/resources/order_validation_rules.js +1 -1
  93. package/lib/cjs/resources/orders.d.ts +9 -5
  94. package/lib/cjs/resources/organization.d.ts +2 -2
  95. package/lib/cjs/resources/organization.js +1 -1
  96. package/lib/cjs/resources/packages.d.ts +2 -2
  97. package/lib/cjs/resources/parcel_line_items.d.ts +2 -2
  98. package/lib/cjs/resources/parcels.d.ts +2 -2
  99. package/lib/cjs/resources/payment_gateways.d.ts +4 -13
  100. package/lib/cjs/resources/payment_gateways.js +1 -1
  101. package/lib/cjs/resources/payment_methods.d.ts +8 -2
  102. package/lib/cjs/resources/payment_methods.js +1 -1
  103. package/lib/cjs/resources/paypal_gateways.d.ts +2 -2
  104. package/lib/cjs/resources/paypal_gateways.js +1 -1
  105. package/lib/cjs/resources/paypal_payments.d.ts +2 -2
  106. package/lib/cjs/resources/paypal_payments.js +1 -1
  107. package/lib/cjs/resources/percentage_discount_promotions.d.ts +5 -2
  108. package/lib/cjs/resources/percentage_discount_promotions.js +1 -1
  109. package/lib/cjs/resources/price_lists.d.ts +2 -2
  110. package/lib/cjs/resources/prices.d.ts +2 -2
  111. package/lib/cjs/resources/promotion_rules.d.ts +4 -3
  112. package/lib/cjs/resources/promotion_rules.js +1 -1
  113. package/lib/cjs/resources/promotions.d.ts +5 -3
  114. package/lib/cjs/resources/promotions.js +1 -1
  115. package/lib/cjs/resources/refunds.d.ts +2 -2
  116. package/lib/cjs/resources/return_line_items.d.ts +2 -2
  117. package/lib/cjs/resources/return_line_items.js +1 -1
  118. package/lib/cjs/resources/returns.d.ts +2 -2
  119. package/lib/cjs/resources/shipments.d.ts +2 -2
  120. package/lib/cjs/resources/shipping_categories.d.ts +2 -2
  121. package/lib/cjs/resources/shipping_methods.d.ts +5 -3
  122. package/lib/cjs/resources/shipping_methods.js +1 -1
  123. package/lib/cjs/resources/shipping_zones.d.ts +2 -2
  124. package/lib/cjs/resources/sku_list_items.d.ts +7 -4
  125. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +2 -2
  126. package/lib/cjs/resources/sku_lists.d.ts +2 -2
  127. package/lib/cjs/resources/sku_lists.js +1 -1
  128. package/lib/cjs/resources/sku_options.d.ts +5 -2
  129. package/lib/cjs/resources/sku_options.js +1 -1
  130. package/lib/cjs/resources/skus.d.ts +2 -2
  131. package/lib/cjs/resources/stock_items.d.ts +2 -2
  132. package/lib/cjs/resources/stock_line_items.d.ts +2 -2
  133. package/lib/cjs/resources/stock_locations.d.ts +2 -2
  134. package/lib/cjs/resources/stock_transfers.d.ts +2 -2
  135. package/lib/cjs/resources/stripe_gateways.d.ts +2 -2
  136. package/lib/cjs/resources/stripe_gateways.js +1 -1
  137. package/lib/cjs/resources/stripe_payments.d.ts +2 -2
  138. package/lib/cjs/resources/stripe_payments.js +1 -1
  139. package/lib/cjs/resources/tax_calculators.d.ts +4 -3
  140. package/lib/cjs/resources/tax_calculators.js +1 -1
  141. package/lib/cjs/resources/tax_categories.d.ts +2 -2
  142. package/lib/cjs/resources/tax_rules.d.ts +2 -2
  143. package/lib/cjs/resources/taxjar_accounts.d.ts +2 -2
  144. package/lib/cjs/resources/transactions.d.ts +4 -3
  145. package/lib/cjs/resources/transactions.js +1 -1
  146. package/lib/cjs/resources/voids.d.ts +2 -2
  147. package/lib/cjs/resources/webhooks.d.ts +2 -2
  148. package/lib/cjs/resources/wire_transfers.d.ts +2 -2
  149. package/lib/cjs/static.js +1 -1
  150. package/lib/esm/api.d.ts +6 -4
  151. package/lib/esm/api.js +1 -1
  152. package/lib/esm/client.js +1 -1
  153. package/lib/esm/commercelayer.d.ts +2 -0
  154. package/lib/esm/commercelayer.js +1 -1
  155. package/lib/esm/common.js +1 -1
  156. package/lib/esm/debug.d.ts +3 -0
  157. package/lib/esm/debug.js +1 -0
  158. package/lib/esm/error.js +1 -1
  159. package/lib/esm/jsonapi.js +1 -1
  160. package/lib/esm/model.d.ts +5 -3
  161. package/lib/esm/query.js +1 -1
  162. package/lib/esm/resource.js +1 -1
  163. package/lib/esm/resources/addresses.d.ts +2 -2
  164. package/lib/esm/resources/addresses.js +1 -1
  165. package/lib/esm/resources/adjustments.d.ts +2 -2
  166. package/lib/esm/resources/adjustments.js +1 -1
  167. package/lib/esm/resources/adyen_gateways.d.ts +2 -2
  168. package/lib/esm/resources/adyen_gateways.js +1 -1
  169. package/lib/esm/resources/adyen_payments.d.ts +2 -3
  170. package/lib/esm/resources/adyen_payments.js +1 -1
  171. package/lib/esm/resources/application.d.ts +2 -2
  172. package/lib/esm/resources/application.js +1 -1
  173. package/lib/esm/resources/attachments.d.ts +2 -2
  174. package/lib/esm/resources/attachments.js +1 -1
  175. package/lib/esm/resources/authorizations.d.ts +2 -2
  176. package/lib/esm/resources/authorizations.js +1 -1
  177. package/lib/esm/resources/avalara_accounts.d.ts +2 -2
  178. package/lib/esm/resources/avalara_accounts.js +1 -1
  179. package/lib/esm/resources/billing_info_validation_rules.d.ts +2 -2
  180. package/lib/esm/resources/billing_info_validation_rules.js +1 -1
  181. package/lib/esm/resources/bing_geocoders.d.ts +2 -2
  182. package/lib/esm/resources/bing_geocoders.js +1 -1
  183. package/lib/esm/resources/braintree_gateways.d.ts +2 -2
  184. package/lib/esm/resources/braintree_gateways.js +1 -1
  185. package/lib/esm/resources/braintree_payments.d.ts +2 -2
  186. package/lib/esm/resources/braintree_payments.js +1 -1
  187. package/lib/esm/resources/bundles.d.ts +7 -2
  188. package/lib/esm/resources/bundles.js +1 -1
  189. package/lib/esm/resources/captures.d.ts +2 -2
  190. package/lib/esm/resources/captures.js +1 -1
  191. package/lib/esm/resources/carrier_accounts.d.ts +2 -2
  192. package/lib/esm/resources/carrier_accounts.js +1 -1
  193. package/lib/esm/resources/checkout_com_gateways.d.ts +2 -2
  194. package/lib/esm/resources/checkout_com_gateways.js +1 -1
  195. package/lib/esm/resources/checkout_com_payments.d.ts +2 -3
  196. package/lib/esm/resources/checkout_com_payments.js +1 -1
  197. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +2 -2
  198. package/lib/esm/resources/coupon_codes_promotion_rules.js +1 -1
  199. package/lib/esm/resources/coupon_recipients.d.ts +2 -2
  200. package/lib/esm/resources/coupon_recipients.js +1 -1
  201. package/lib/esm/resources/coupons.d.ts +5 -2
  202. package/lib/esm/resources/coupons.js +1 -1
  203. package/lib/esm/resources/customer_addresses.d.ts +2 -2
  204. package/lib/esm/resources/customer_addresses.js +1 -1
  205. package/lib/esm/resources/customer_groups.d.ts +2 -2
  206. package/lib/esm/resources/customer_groups.js +1 -1
  207. package/lib/esm/resources/customer_password_resets.d.ts +2 -2
  208. package/lib/esm/resources/customer_password_resets.js +1 -1
  209. package/lib/esm/resources/customer_payment_sources.d.ts +9 -5
  210. package/lib/esm/resources/customer_payment_sources.js +1 -1
  211. package/lib/esm/resources/customer_subscriptions.d.ts +2 -2
  212. package/lib/esm/resources/customer_subscriptions.js +1 -1
  213. package/lib/esm/resources/customers.d.ts +2 -2
  214. package/lib/esm/resources/customers.js +1 -1
  215. package/lib/esm/resources/delivery_lead_times.d.ts +2 -2
  216. package/lib/esm/resources/delivery_lead_times.js +1 -1
  217. package/lib/esm/resources/event_callbacks.d.ts +2 -2
  218. package/lib/esm/resources/event_callbacks.js +1 -1
  219. package/lib/esm/resources/external_gateways.d.ts +5 -2
  220. package/lib/esm/resources/external_payments.d.ts +4 -2
  221. package/lib/esm/resources/external_promotions.d.ts +5 -2
  222. package/lib/esm/resources/external_promotions.js +1 -1
  223. package/lib/esm/resources/external_tax_calculators.d.ts +2 -2
  224. package/lib/esm/resources/external_tax_calculators.js +1 -1
  225. package/lib/esm/resources/fixed_amount_promotions.d.ts +5 -2
  226. package/lib/esm/resources/fixed_amount_promotions.js +1 -1
  227. package/lib/esm/resources/fixed_price_promotions.d.ts +5 -2
  228. package/lib/esm/resources/fixed_price_promotions.js +1 -1
  229. package/lib/esm/resources/free_gift_promotions.d.ts +5 -2
  230. package/lib/esm/resources/free_gift_promotions.js +1 -1
  231. package/lib/esm/resources/free_shipping_promotions.d.ts +5 -2
  232. package/lib/esm/resources/free_shipping_promotions.js +1 -1
  233. package/lib/esm/resources/geocoders.d.ts +4 -3
  234. package/lib/esm/resources/geocoders.js +1 -1
  235. package/lib/esm/resources/gift_card_recipients.d.ts +2 -2
  236. package/lib/esm/resources/gift_card_recipients.js +1 -1
  237. package/lib/esm/resources/gift_cards.d.ts +3 -3
  238. package/lib/esm/resources/gift_cards.js +1 -1
  239. package/lib/esm/resources/google_geocoders.d.ts +2 -2
  240. package/lib/esm/resources/google_geocoders.js +1 -1
  241. package/lib/esm/resources/imports.d.ts +2 -2
  242. package/lib/esm/resources/imports.js +1 -1
  243. package/lib/esm/resources/in_stock_subscriptions.d.ts +2 -2
  244. package/lib/esm/resources/in_stock_subscriptions.js +1 -1
  245. package/lib/esm/resources/inventory_models.d.ts +2 -2
  246. package/lib/esm/resources/inventory_models.js +1 -1
  247. package/lib/esm/resources/inventory_return_locations.d.ts +2 -2
  248. package/lib/esm/resources/inventory_return_locations.js +1 -1
  249. package/lib/esm/resources/inventory_stock_locations.d.ts +2 -2
  250. package/lib/esm/resources/inventory_stock_locations.js +1 -1
  251. package/lib/esm/resources/klarna_gateways.d.ts +46 -0
  252. package/lib/esm/resources/klarna_gateways.js +1 -0
  253. package/lib/esm/resources/klarna_payments.d.ts +43 -0
  254. package/lib/esm/resources/klarna_payments.js +1 -0
  255. package/lib/esm/resources/line_item_options.d.ts +2 -2
  256. package/lib/esm/resources/line_item_options.js +1 -1
  257. package/lib/esm/resources/line_items.d.ts +2 -2
  258. package/lib/esm/resources/line_items.js +1 -1
  259. package/lib/esm/resources/manual_gateways.d.ts +2 -2
  260. package/lib/esm/resources/manual_gateways.js +1 -1
  261. package/lib/esm/resources/manual_tax_calculators.d.ts +2 -2
  262. package/lib/esm/resources/manual_tax_calculators.js +1 -1
  263. package/lib/esm/resources/markets.d.ts +2 -2
  264. package/lib/esm/resources/markets.js +1 -1
  265. package/lib/esm/resources/merchants.d.ts +2 -2
  266. package/lib/esm/resources/merchants.js +1 -1
  267. package/lib/esm/resources/order_amount_promotion_rules.d.ts +2 -2
  268. package/lib/esm/resources/order_amount_promotion_rules.js +1 -1
  269. package/lib/esm/resources/order_copies.d.ts +2 -2
  270. package/lib/esm/resources/order_copies.js +1 -1
  271. package/lib/esm/resources/order_subscriptions.d.ts +2 -2
  272. package/lib/esm/resources/order_subscriptions.js +1 -1
  273. package/lib/esm/resources/order_validation_rules.d.ts +4 -3
  274. package/lib/esm/resources/order_validation_rules.js +1 -1
  275. package/lib/esm/resources/orders.d.ts +9 -5
  276. package/lib/esm/resources/orders.js +1 -1
  277. package/lib/esm/resources/organization.d.ts +2 -2
  278. package/lib/esm/resources/organization.js +1 -1
  279. package/lib/esm/resources/packages.d.ts +2 -2
  280. package/lib/esm/resources/packages.js +1 -1
  281. package/lib/esm/resources/parcel_line_items.d.ts +2 -2
  282. package/lib/esm/resources/parcel_line_items.js +1 -1
  283. package/lib/esm/resources/parcels.d.ts +2 -2
  284. package/lib/esm/resources/parcels.js +1 -1
  285. package/lib/esm/resources/payment_gateways.d.ts +4 -13
  286. package/lib/esm/resources/payment_gateways.js +1 -1
  287. package/lib/esm/resources/payment_methods.d.ts +8 -2
  288. package/lib/esm/resources/payment_methods.js +1 -1
  289. package/lib/esm/resources/paypal_gateways.d.ts +2 -2
  290. package/lib/esm/resources/paypal_gateways.js +1 -1
  291. package/lib/esm/resources/paypal_payments.d.ts +2 -2
  292. package/lib/esm/resources/paypal_payments.js +1 -1
  293. package/lib/esm/resources/percentage_discount_promotions.d.ts +5 -2
  294. package/lib/esm/resources/percentage_discount_promotions.js +1 -1
  295. package/lib/esm/resources/price_lists.d.ts +2 -2
  296. package/lib/esm/resources/price_lists.js +1 -1
  297. package/lib/esm/resources/prices.d.ts +2 -2
  298. package/lib/esm/resources/prices.js +1 -1
  299. package/lib/esm/resources/promotion_rules.d.ts +4 -3
  300. package/lib/esm/resources/promotion_rules.js +1 -1
  301. package/lib/esm/resources/promotions.d.ts +5 -3
  302. package/lib/esm/resources/promotions.js +1 -1
  303. package/lib/esm/resources/refunds.d.ts +2 -2
  304. package/lib/esm/resources/refunds.js +1 -1
  305. package/lib/esm/resources/return_line_items.d.ts +2 -2
  306. package/lib/esm/resources/return_line_items.js +1 -1
  307. package/lib/esm/resources/returns.d.ts +2 -2
  308. package/lib/esm/resources/returns.js +1 -1
  309. package/lib/esm/resources/shipments.d.ts +2 -2
  310. package/lib/esm/resources/shipments.js +1 -1
  311. package/lib/esm/resources/shipping_categories.d.ts +2 -2
  312. package/lib/esm/resources/shipping_categories.js +1 -1
  313. package/lib/esm/resources/shipping_methods.d.ts +5 -3
  314. package/lib/esm/resources/shipping_methods.js +1 -1
  315. package/lib/esm/resources/shipping_zones.d.ts +2 -2
  316. package/lib/esm/resources/shipping_zones.js +1 -1
  317. package/lib/esm/resources/sku_list_items.d.ts +7 -4
  318. package/lib/esm/resources/sku_list_items.js +1 -1
  319. package/lib/esm/resources/sku_list_promotion_rules.d.ts +2 -2
  320. package/lib/esm/resources/sku_list_promotion_rules.js +1 -1
  321. package/lib/esm/resources/sku_lists.d.ts +2 -2
  322. package/lib/esm/resources/sku_lists.js +1 -1
  323. package/lib/esm/resources/sku_options.d.ts +5 -2
  324. package/lib/esm/resources/sku_options.js +1 -1
  325. package/lib/esm/resources/skus.d.ts +2 -2
  326. package/lib/esm/resources/skus.js +1 -1
  327. package/lib/esm/resources/stock_items.d.ts +2 -2
  328. package/lib/esm/resources/stock_items.js +1 -1
  329. package/lib/esm/resources/stock_line_items.d.ts +2 -2
  330. package/lib/esm/resources/stock_line_items.js +1 -1
  331. package/lib/esm/resources/stock_locations.d.ts +2 -2
  332. package/lib/esm/resources/stock_locations.js +1 -1
  333. package/lib/esm/resources/stock_transfers.d.ts +2 -2
  334. package/lib/esm/resources/stock_transfers.js +1 -1
  335. package/lib/esm/resources/stripe_gateways.d.ts +2 -2
  336. package/lib/esm/resources/stripe_gateways.js +1 -1
  337. package/lib/esm/resources/stripe_payments.d.ts +2 -2
  338. package/lib/esm/resources/stripe_payments.js +1 -1
  339. package/lib/esm/resources/tax_calculators.d.ts +4 -3
  340. package/lib/esm/resources/tax_calculators.js +1 -1
  341. package/lib/esm/resources/tax_categories.d.ts +2 -2
  342. package/lib/esm/resources/tax_categories.js +1 -1
  343. package/lib/esm/resources/tax_rules.d.ts +2 -2
  344. package/lib/esm/resources/tax_rules.js +1 -1
  345. package/lib/esm/resources/taxjar_accounts.d.ts +2 -2
  346. package/lib/esm/resources/taxjar_accounts.js +1 -1
  347. package/lib/esm/resources/transactions.d.ts +4 -3
  348. package/lib/esm/resources/transactions.js +1 -1
  349. package/lib/esm/resources/voids.d.ts +2 -2
  350. package/lib/esm/resources/voids.js +1 -1
  351. package/lib/esm/resources/webhooks.d.ts +2 -2
  352. package/lib/esm/resources/webhooks.js +1 -1
  353. package/lib/esm/resources/wire_transfers.d.ts +2 -2
  354. package/lib/esm/resources/wire_transfers.js +1 -1
  355. package/lib/esm/static.js +1 -1
  356. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  357. package/lib/tsconfig.tsbuildinfo +1 -1
  358. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,9 +1,9 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
6
+ import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
7
  import { PercentageDiscountPromotion } from './percentage_discount_promotions';
8
8
  import { FreeShippingPromotion } from './free_shipping_promotions';
9
9
  import { FixedAmountPromotion } from './fixed_amount_promotions';
@@ -19,6 +19,7 @@ interface PromotionRule extends Resource {
19
19
  declare class PromotionRules extends ApiResource {
20
20
  static readonly TYPE: 'promotion_rules';
21
21
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PromotionRule>>;
22
+ retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PromotionRule>;
22
23
  isPromotionRule(resource: any): resource is PromotionRule;
23
24
  relationship(id: string | ResourceId): PromotionRuleRel;
24
25
  type(): string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PromotionRules extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PromotionRules.TYPE},e,r)}isPromotionRule(e){return e.type&&e.type===PromotionRules.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PromotionRules.TYPE}:{id:e.id,type:PromotionRules.TYPE}}type(){return PromotionRules.TYPE}}PromotionRules.TYPE="promotion_rules",exports.default=PromotionRules;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PromotionRules extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PromotionRules.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:PromotionRules.TYPE,id:e},r,t)}isPromotionRule(e){return e.type&&e.type===PromotionRules.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PromotionRules.TYPE}:{id:e.id,type:PromotionRules.TYPE}}type(){return PromotionRules.TYPE}}PromotionRules.TYPE="promotion_rules",exports.default=PromotionRules;
@@ -1,9 +1,9 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
6
+ import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
7
  import { Market } from './markets';
8
8
  import { PromotionRule } from './promotion_rules';
9
9
  import { OrderAmountPromotionRule } from './order_amount_promotion_rules';
@@ -15,6 +15,7 @@ declare type PromotionRel = ResourceId & {
15
15
  };
16
16
  interface Promotion extends Resource {
17
17
  name?: string;
18
+ currency_code?: string;
18
19
  starts_at?: string;
19
20
  expires_at?: string;
20
21
  total_usage_limit?: number;
@@ -30,6 +31,7 @@ interface Promotion extends Resource {
30
31
  declare class Promotions extends ApiResource {
31
32
  static readonly TYPE: 'promotions';
32
33
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Promotion>>;
34
+ retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Promotion>;
33
35
  isPromotion(resource: any): resource is Promotion;
34
36
  relationship(id: string | ResourceId): PromotionRel;
35
37
  type(): string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Promotions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Promotions.TYPE},e,t)}isPromotion(e){return e.type&&e.type===Promotions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Promotions.TYPE}:{id:e.id,type:Promotions.TYPE}}type(){return Promotions.TYPE}}Promotions.TYPE="promotions",exports.default=Promotions;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Promotions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Promotions.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Promotions.TYPE,id:e},r,t)}isPromotion(e){return e.type&&e.type===Promotions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Promotions.TYPE}:{id:e.id,type:Promotions.TYPE}}type(){return Promotions.TYPE}}Promotions.TYPE="promotions",exports.default=Promotions;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ReturnLineItems extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:ReturnLineItems.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ReturnLineItems.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:ReturnLineItems.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ReturnLineItems.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:ReturnLineItems.TYPE,id:e},r)}isReturnLineItem(e){return e.type&&e.type===ReturnLineItems.TYPE}relationship(e){return typeof e=="string"?{id:e,type:ReturnLineItems.TYPE}:{id:e.id,type:ReturnLineItems.TYPE}}type(){return ReturnLineItems.TYPE}}ReturnLineItems.TYPE="return_line_items",exports.default=ReturnLineItems;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ReturnLineItems extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:ReturnLineItems.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:ReturnLineItems.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:ReturnLineItems.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:ReturnLineItems.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:ReturnLineItems.TYPE,id:e},r)}isReturnLineItem(e){return e.type&&e.type===ReturnLineItems.TYPE}relationship(e){return typeof e=="string"?{id:e,type:ReturnLineItems.TYPE}:{id:e.id,type:ReturnLineItems.TYPE}}type(){return ReturnLineItems.TYPE}}ReturnLineItems.TYPE="return_line_items",exports.default=ReturnLineItems;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -23,8 +23,8 @@ declare type ShippingCategoryRel = ResourceId & {
23
23
  };
24
24
  interface ShippingMethod extends Resource {
25
25
  name?: string;
26
- disabled_at?: string;
27
26
  currency_code?: string;
27
+ disabled_at?: string;
28
28
  price_amount_cents?: number;
29
29
  price_amount_float?: number;
30
30
  formatted_price_amount?: string;
@@ -42,6 +42,7 @@ interface ShippingMethod extends Resource {
42
42
  }
43
43
  interface ShippingMethodCreate extends ResourceCreate {
44
44
  name: string;
45
+ currency_code?: string;
45
46
  price_amount_cents: number;
46
47
  free_over_amount_cents?: number;
47
48
  market?: MarketRel;
@@ -50,6 +51,7 @@ interface ShippingMethodCreate extends ResourceCreate {
50
51
  }
51
52
  interface ShippingMethodUpdate extends ResourceUpdate {
52
53
  name?: string;
54
+ currency_code?: string;
53
55
  price_amount_cents?: number;
54
56
  free_over_amount_cents?: number;
55
57
  market?: MarketRel;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ShippingMethods extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:ShippingMethods.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:ShippingMethods.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:ShippingMethods.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:ShippingMethods.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:ShippingMethods.TYPE,id:e},r)}isShippingMethod(e){return e.type&&e.type===ShippingMethods.TYPE}relationship(e){return typeof e=="string"?{id:e,type:ShippingMethods.TYPE}:{id:e.id,type:ShippingMethods.TYPE}}type(){return ShippingMethods.TYPE}}ShippingMethods.TYPE="shipping_methods",exports.default=ShippingMethods;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ShippingMethods extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ShippingMethods.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ShippingMethods.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ShippingMethods.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ShippingMethods.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ShippingMethods.TYPE,id:e},t)}isShippingMethod(e){return e.type&&e.type===ShippingMethods.TYPE}relationship(e){return typeof e=="string"?{id:e,type:ShippingMethods.TYPE}:{id:e.id,type:ShippingMethods.TYPE}}type(){return ShippingMethods.TYPE}}ShippingMethods.TYPE="shipping_methods",exports.default=ShippingMethods;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -17,18 +17,21 @@ declare type SkuRel = ResourceId & {
17
17
  };
18
18
  interface SkuListItem extends Resource {
19
19
  position?: number;
20
+ sku_code?: string;
20
21
  quantity?: number;
21
22
  sku_list?: SkuList;
22
23
  sku?: Sku;
23
24
  }
24
25
  interface SkuListItemCreate extends ResourceCreate {
25
- position: number;
26
- quantity: number;
26
+ position?: number;
27
+ sku_code?: string;
28
+ quantity?: number;
27
29
  sku_list?: SkuListRel;
28
30
  sku?: SkuRel;
29
31
  }
30
32
  interface SkuListItemUpdate extends ResourceUpdate {
31
33
  position?: number;
34
+ sku_code?: string;
32
35
  quantity?: number;
33
36
  }
34
37
  declare class SkuListItems extends ApiResource {
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class SkuLists extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:SkuLists.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:SkuLists.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:SkuLists.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:SkuLists.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:SkuLists.TYPE,id:e},r)}isSkuList(e){return e.type&&e.type===SkuLists.TYPE}relationship(e){return typeof e=="string"?{id:e,type:SkuLists.TYPE}:{id:e.id,type:SkuLists.TYPE}}type(){return SkuLists.TYPE}}SkuLists.TYPE="sku_lists",exports.default=SkuLists;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class SkuLists extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:SkuLists.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:SkuLists.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:SkuLists.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:SkuLists.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:SkuLists.TYPE,id:e},t)}isSkuList(e){return e.type&&e.type===SkuLists.TYPE}relationship(e){return typeof e=="string"?{id:e,type:SkuLists.TYPE}:{id:e.id,type:SkuLists.TYPE}}type(){return SkuLists.TYPE}}SkuLists.TYPE="sku_lists",exports.default=SkuLists;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -14,6 +14,7 @@ declare type MarketRel = ResourceId & {
14
14
  };
15
15
  interface SkuOption extends Resource {
16
16
  name?: string;
17
+ currency_code?: string;
17
18
  description?: string;
18
19
  price_amount_cents?: number;
19
20
  price_amount_float?: number;
@@ -26,6 +27,7 @@ interface SkuOption extends Resource {
26
27
  }
27
28
  interface SkuOptionCreate extends ResourceCreate {
28
29
  name: string;
30
+ currency_code?: string;
29
31
  description?: string;
30
32
  price_amount_cents?: number;
31
33
  delay_hours?: number;
@@ -34,6 +36,7 @@ interface SkuOptionCreate extends ResourceCreate {
34
36
  }
35
37
  interface SkuOptionUpdate extends ResourceUpdate {
36
38
  name?: string;
39
+ currency_code?: string;
37
40
  description?: string;
38
41
  price_amount_cents?: number;
39
42
  delay_hours?: number;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class SkuOptions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:SkuOptions.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:SkuOptions.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:SkuOptions.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:SkuOptions.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:SkuOptions.TYPE,id:e},r)}isSkuOption(e){return e.type&&e.type===SkuOptions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:SkuOptions.TYPE}:{id:e.id,type:SkuOptions.TYPE}}type(){return SkuOptions.TYPE}}SkuOptions.TYPE="sku_options",exports.default=SkuOptions;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class SkuOptions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:SkuOptions.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:SkuOptions.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:SkuOptions.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:SkuOptions.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:SkuOptions.TYPE,id:e},t)}isSkuOption(e){return e.type&&e.type===SkuOptions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:SkuOptions.TYPE}:{id:e.id,type:SkuOptions.TYPE}}type(){return SkuOptions.TYPE}}SkuOptions.TYPE="sku_options",exports.default=SkuOptions;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StripeGateways extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:StripeGateways.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:StripeGateways.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:StripeGateways.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:StripeGateways.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:StripeGateways.TYPE,id:e},s)}isStripeGateway(e){return e.type&&e.type===StripeGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:StripeGateways.TYPE}:{id:e.id,type:StripeGateways.TYPE}}type(){return StripeGateways.TYPE}}StripeGateways.TYPE="stripe_gateways",exports.default=StripeGateways;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StripeGateways extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:StripeGateways.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:StripeGateways.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:StripeGateways.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:StripeGateways.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:StripeGateways.TYPE,id:e},s)}isStripeGateway(e){return e.type&&e.type===StripeGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:StripeGateways.TYPE}:{id:e.id,type:StripeGateways.TYPE}}type(){return StripeGateways.TYPE}}StripeGateways.TYPE="stripe_gateways",exports.default=StripeGateways;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StripePayments extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:StripePayments.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:StripePayments.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:StripePayments.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:StripePayments.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:StripePayments.TYPE,id:e},s)}isStripePayment(e){return e.type&&e.type===StripePayments.TYPE}relationship(e){return typeof e=="string"?{id:e,type:StripePayments.TYPE}:{id:e.id,type:StripePayments.TYPE}}type(){return StripePayments.TYPE}}StripePayments.TYPE="stripe_payments",exports.default=StripePayments;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StripePayments extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:StripePayments.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:StripePayments.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:StripePayments.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:StripePayments.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:StripePayments.TYPE,id:e},s)}isStripePayment(e){return e.type&&e.type===StripePayments.TYPE}relationship(e){return typeof e=="string"?{id:e,type:StripePayments.TYPE}:{id:e.id,type:StripePayments.TYPE}}type(){return StripePayments.TYPE}}StripePayments.TYPE="stripe_payments",exports.default=StripePayments;
@@ -1,9 +1,9 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
6
+ import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
7
  import { TaxCategory } from './tax_categories';
8
8
  import { Market } from './markets';
9
9
  import { Attachment } from './attachments';
@@ -19,6 +19,7 @@ interface TaxCalculator extends Resource {
19
19
  declare class TaxCalculators extends ApiResource {
20
20
  static readonly TYPE: 'tax_calculators';
21
21
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCalculator>>;
22
+ retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxCalculator>;
22
23
  isTaxCalculator(resource: any): resource is TaxCalculator;
23
24
  relationship(id: string | ResourceId): TaxCalculatorRel;
24
25
  type(): string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxCalculators extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxCalculators.TYPE},e,t)}isTaxCalculator(e){return e.type&&e.type===TaxCalculators.TYPE}relationship(e){return typeof e=="string"?{id:e,type:TaxCalculators.TYPE}:{id:e.id,type:TaxCalculators.TYPE}}type(){return TaxCalculators.TYPE}}TaxCalculators.TYPE="tax_calculators",exports.default=TaxCalculators;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxCalculators extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxCalculators.TYPE},e,t)}async retrieve(e,t,r){return this.resources.retrieve({type:TaxCalculators.TYPE,id:e},t,r)}isTaxCalculator(e){return e.type&&e.type===TaxCalculators.TYPE}relationship(e){return typeof e=="string"?{id:e,type:TaxCalculators.TYPE}:{id:e.id,type:TaxCalculators.TYPE}}type(){return TaxCalculators.TYPE}}TaxCalculators.TYPE="tax_calculators",exports.default=TaxCalculators;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,9 +1,9 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
6
+ import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
7
  import { Order } from './orders';
8
8
  declare type TransactionRel = ResourceId & {
9
9
  type: typeof Transactions.TYPE;
@@ -25,6 +25,7 @@ interface Transaction extends Resource {
25
25
  declare class Transactions extends ApiResource {
26
26
  static readonly TYPE: 'transactions';
27
27
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Transaction>>;
28
+ retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Transaction>;
28
29
  isTransaction(resource: any): resource is Transaction;
29
30
  relationship(id: string | ResourceId): TransactionRel;
30
31
  type(): string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Transactions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Transactions.TYPE},e,t)}isTransaction(e){return e.type&&e.type===Transactions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Transactions.TYPE}:{id:e.id,type:Transactions.TYPE}}type(){return Transactions.TYPE}}Transactions.TYPE="transactions",exports.default=Transactions;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Transactions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Transactions.TYPE},e,t)}async retrieve(e,t,r){return this.resources.retrieve({type:Transactions.TYPE,id:e},t,r)}isTransaction(e){return e.type&&e.type===Transactions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Transactions.TYPE}:{id:e.id,type:Transactions.TYPE}}type(){return Transactions.TYPE}}Transactions.TYPE="transactions",exports.default=Transactions;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
package/lib/cjs/static.js CHANGED
@@ -1 +1 @@
1
- "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t),Object.defineProperty(r,i,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),__importStar=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&__createBinding(e,r,t);return __setModuleDefault(e,r),e};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CommerceLayerStatic=void 0;const api=__importStar(require("./api")),error_1=require("./error");exports.CommerceLayerStatic={resources:()=>api.resourceList,isSdkError:r=>error_1.SdkError.isSdkError(r),isApiError:r=>error_1.ApiError.isApiError(r)};
1
+ "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,i){i===void 0&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,i){i===void 0&&(i=t),e[i]=r[t]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&__createBinding(r,e,t);return __setModuleDefault(r,e),r};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CommerceLayerStatic=void 0;const api=__importStar(require("./api")),error_1=require("./error");exports.CommerceLayerStatic={resources:()=>api.resourceList,isSdkError:e=>error_1.SdkError.isSdkError(e),isApiError:e=>error_1.ApiError.isApiError(e)};
package/lib/esm/api.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
2
+ * ©2022 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
4
4
  **/
5
5
  export { default as Addresses } from './resources/addresses';
6
6
  export { default as Adjustments } from './resources/adjustments';
@@ -47,6 +47,8 @@ export { default as InStockSubscriptions } from './resources/in_stock_subscripti
47
47
  export { default as InventoryModels } from './resources/inventory_models';
48
48
  export { default as InventoryReturnLocations } from './resources/inventory_return_locations';
49
49
  export { default as InventoryStockLocations } from './resources/inventory_stock_locations';
50
+ export { default as KlarnaGateways } from './resources/klarna_gateways';
51
+ export { default as KlarnaPayments } from './resources/klarna_payments';
50
52
  export { default as LineItemOptions } from './resources/line_item_options';
51
53
  export { default as LineItems } from './resources/line_items';
52
54
  export { default as ManualGateways } from './resources/manual_gateways';
@@ -97,5 +99,5 @@ export { default as Transactions } from './resources/transactions';
97
99
  export { default as Voids } from './resources/voids';
98
100
  export { default as Webhooks } from './resources/webhooks';
99
101
  export { default as WireTransfers } from './resources/wire_transfers';
100
- export declare type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_lists' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'return_line_items' | 'returns' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
101
- export declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "line_item_options", "line_items", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_lists", "prices", "promotion_rules", "promotions", "refunds", "return_line_items", "returns", "shipments", "shipping_categories", "shipping_methods", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_transfers", "stripe_gateways", "stripe_payments", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "voids", "webhooks", "wire_transfers"];
102
+ export declare type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_lists' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'return_line_items' | 'returns' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
103
+ export declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_lists", "prices", "promotion_rules", "promotions", "refunds", "return_line_items", "returns", "shipments", "shipping_categories", "shipping_methods", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_transfers", "stripe_gateways", "stripe_payments", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "voids", "webhooks", "wire_transfers"];