@commercelayer/sdk 2.3.13 → 3.1.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 (354) hide show
  1. package/lib/cjs/api.d.ts +1 -1
  2. package/lib/cjs/client.d.ts +1 -1
  3. package/lib/cjs/client.js +1 -1
  4. package/lib/cjs/commercelayer.d.ts +1 -0
  5. package/lib/cjs/commercelayer.js +1 -1
  6. package/lib/cjs/common.js +1 -1
  7. package/lib/cjs/error.js +1 -1
  8. package/lib/cjs/index.js +1 -1
  9. package/lib/cjs/jsonapi.d.ts +0 -2
  10. package/lib/cjs/jsonapi.js +1 -1
  11. package/lib/cjs/model.d.ts +2 -2
  12. package/lib/cjs/query.d.ts +3 -37
  13. package/lib/cjs/query.js +1 -1
  14. package/lib/cjs/resource.d.ts +1 -1
  15. package/lib/cjs/resource.js +1 -1
  16. package/lib/cjs/resources/addresses.d.ts +0 -4
  17. package/lib/cjs/resources/adjustments.d.ts +0 -4
  18. package/lib/cjs/resources/adyen_gateways.d.ts +0 -4
  19. package/lib/cjs/resources/adyen_gateways.js +1 -1
  20. package/lib/cjs/resources/adyen_payments.d.ts +1 -6
  21. package/lib/cjs/resources/adyen_payments.js +1 -1
  22. package/lib/cjs/resources/application.d.ts +0 -4
  23. package/lib/cjs/resources/attachments.d.ts +1 -5
  24. package/lib/cjs/resources/authorizations.d.ts +0 -4
  25. package/lib/cjs/resources/avalara_accounts.d.ts +0 -4
  26. package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -5
  27. package/lib/cjs/resources/bing_geocoders.d.ts +0 -4
  28. package/lib/cjs/resources/braintree_gateways.d.ts +0 -4
  29. package/lib/cjs/resources/braintree_gateways.js +1 -1
  30. package/lib/cjs/resources/braintree_payments.d.ts +1 -5
  31. package/lib/cjs/resources/braintree_payments.js +1 -1
  32. package/lib/cjs/resources/bundles.d.ts +1 -5
  33. package/lib/cjs/resources/captures.d.ts +0 -4
  34. package/lib/cjs/resources/carrier_accounts.d.ts +0 -4
  35. package/lib/cjs/resources/checkout_com_gateways.d.ts +0 -4
  36. package/lib/cjs/resources/checkout_com_gateways.js +1 -1
  37. package/lib/cjs/resources/checkout_com_payments.d.ts +1 -6
  38. package/lib/cjs/resources/checkout_com_payments.js +1 -1
  39. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -5
  40. package/lib/cjs/resources/coupon_recipients.d.ts +0 -4
  41. package/lib/cjs/resources/coupons.d.ts +4 -5
  42. package/lib/cjs/resources/customer_addresses.d.ts +2 -6
  43. package/lib/cjs/resources/customer_groups.d.ts +0 -4
  44. package/lib/cjs/resources/customer_password_resets.d.ts +0 -4
  45. package/lib/cjs/resources/customer_payment_sources.d.ts +2 -6
  46. package/lib/cjs/resources/customer_subscriptions.d.ts +0 -4
  47. package/lib/cjs/resources/customers.d.ts +0 -4
  48. package/lib/cjs/resources/delivery_lead_times.d.ts +2 -6
  49. package/lib/cjs/resources/delivery_lead_times.js +1 -1
  50. package/lib/cjs/resources/event_callbacks.d.ts +0 -4
  51. package/lib/cjs/resources/external_gateways.d.ts +0 -4
  52. package/lib/cjs/resources/external_gateways.js +1 -1
  53. package/lib/cjs/resources/external_payments.d.ts +1 -5
  54. package/lib/cjs/resources/external_payments.js +1 -1
  55. package/lib/cjs/resources/external_promotions.d.ts +0 -4
  56. package/lib/cjs/resources/external_promotions.js +1 -1
  57. package/lib/cjs/resources/external_tax_calculators.d.ts +0 -4
  58. package/lib/cjs/resources/external_tax_calculators.js +1 -1
  59. package/lib/cjs/resources/fixed_amount_promotions.d.ts +0 -4
  60. package/lib/cjs/resources/fixed_amount_promotions.js +1 -1
  61. package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -5
  62. package/lib/cjs/resources/free_gift_promotions.d.ts +1 -5
  63. package/lib/cjs/resources/free_gift_promotions.js +1 -1
  64. package/lib/cjs/resources/free_shipping_promotions.d.ts +0 -4
  65. package/lib/cjs/resources/geocoders.d.ts +2 -5
  66. package/lib/cjs/resources/geocoders.js +1 -1
  67. package/lib/cjs/resources/gift_card_recipients.d.ts +0 -4
  68. package/lib/cjs/resources/gift_card_recipients.js +1 -1
  69. package/lib/cjs/resources/gift_cards.d.ts +0 -4
  70. package/lib/cjs/resources/google_geocoders.d.ts +0 -4
  71. package/lib/cjs/resources/imports.d.ts +0 -4
  72. package/lib/cjs/resources/in_stock_subscriptions.d.ts +3 -7
  73. package/lib/cjs/resources/in_stock_subscriptions.js +1 -1
  74. package/lib/cjs/resources/inventory_models.d.ts +0 -4
  75. package/lib/cjs/resources/inventory_return_locations.d.ts +2 -6
  76. package/lib/cjs/resources/inventory_stock_locations.d.ts +2 -6
  77. package/lib/cjs/resources/line_item_options.d.ts +2 -6
  78. package/lib/cjs/resources/line_item_options.js +1 -1
  79. package/lib/cjs/resources/line_items.d.ts +1 -5
  80. package/lib/cjs/resources/line_items.js +1 -1
  81. package/lib/cjs/resources/manual_gateways.d.ts +0 -4
  82. package/lib/cjs/resources/manual_gateways.js +1 -1
  83. package/lib/cjs/resources/manual_tax_calculators.d.ts +0 -4
  84. package/lib/cjs/resources/markets.d.ts +3 -7
  85. package/lib/cjs/resources/merchants.d.ts +1 -5
  86. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -5
  87. package/lib/cjs/resources/order_amount_promotion_rules.js +1 -1
  88. package/lib/cjs/resources/order_copies.d.ts +1 -5
  89. package/lib/cjs/resources/order_subscriptions.d.ts +1 -5
  90. package/lib/cjs/resources/order_validation_rules.d.ts +2 -5
  91. package/lib/cjs/resources/order_validation_rules.js +1 -1
  92. package/lib/cjs/resources/orders.d.ts +0 -4
  93. package/lib/cjs/resources/organization.d.ts +0 -4
  94. package/lib/cjs/resources/organization.js +1 -1
  95. package/lib/cjs/resources/packages.d.ts +1 -5
  96. package/lib/cjs/resources/parcel_line_items.d.ts +2 -6
  97. package/lib/cjs/resources/parcels.d.ts +2 -6
  98. package/lib/cjs/resources/payment_gateways.d.ts +2 -15
  99. package/lib/cjs/resources/payment_gateways.js +1 -1
  100. package/lib/cjs/resources/payment_methods.d.ts +5 -6
  101. package/lib/cjs/resources/payment_methods.js +1 -1
  102. package/lib/cjs/resources/paypal_gateways.d.ts +0 -4
  103. package/lib/cjs/resources/paypal_gateways.js +1 -1
  104. package/lib/cjs/resources/paypal_payments.d.ts +1 -5
  105. package/lib/cjs/resources/paypal_payments.js +1 -1
  106. package/lib/cjs/resources/percentage_discount_promotions.d.ts +0 -4
  107. package/lib/cjs/resources/percentage_discount_promotions.js +1 -1
  108. package/lib/cjs/resources/price_lists.d.ts +0 -4
  109. package/lib/cjs/resources/prices.d.ts +1 -5
  110. package/lib/cjs/resources/promotion_rules.d.ts +2 -5
  111. package/lib/cjs/resources/promotion_rules.js +1 -1
  112. package/lib/cjs/resources/promotions.d.ts +2 -5
  113. package/lib/cjs/resources/promotions.js +1 -1
  114. package/lib/cjs/resources/refunds.d.ts +0 -4
  115. package/lib/cjs/resources/return_line_items.d.ts +2 -6
  116. package/lib/cjs/resources/return_line_items.js +1 -1
  117. package/lib/cjs/resources/returns.d.ts +1 -5
  118. package/lib/cjs/resources/shipments.d.ts +0 -4
  119. package/lib/cjs/resources/shipping_categories.d.ts +0 -4
  120. package/lib/cjs/resources/shipping_methods.d.ts +3 -7
  121. package/lib/cjs/resources/shipping_methods.js +1 -1
  122. package/lib/cjs/resources/shipping_zones.d.ts +0 -4
  123. package/lib/cjs/resources/sku_list_items.d.ts +7 -8
  124. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -5
  125. package/lib/cjs/resources/sku_lists.d.ts +0 -4
  126. package/lib/cjs/resources/sku_lists.js +1 -1
  127. package/lib/cjs/resources/sku_options.d.ts +1 -5
  128. package/lib/cjs/resources/sku_options.js +1 -1
  129. package/lib/cjs/resources/skus.d.ts +1 -5
  130. package/lib/cjs/resources/stock_items.d.ts +1 -5
  131. package/lib/cjs/resources/stock_line_items.d.ts +0 -4
  132. package/lib/cjs/resources/stock_locations.d.ts +1 -5
  133. package/lib/cjs/resources/stock_transfers.d.ts +3 -7
  134. package/lib/cjs/resources/stripe_gateways.d.ts +0 -4
  135. package/lib/cjs/resources/stripe_gateways.js +1 -1
  136. package/lib/cjs/resources/stripe_payments.d.ts +1 -5
  137. package/lib/cjs/resources/stripe_payments.js +1 -1
  138. package/lib/cjs/resources/tax_calculators.d.ts +2 -5
  139. package/lib/cjs/resources/tax_calculators.js +1 -1
  140. package/lib/cjs/resources/tax_categories.d.ts +2 -6
  141. package/lib/cjs/resources/tax_rules.d.ts +1 -5
  142. package/lib/cjs/resources/taxjar_accounts.d.ts +0 -4
  143. package/lib/cjs/resources/transactions.d.ts +2 -5
  144. package/lib/cjs/resources/transactions.js +1 -1
  145. package/lib/cjs/resources/voids.d.ts +0 -4
  146. package/lib/cjs/resources/webhooks.d.ts +0 -4
  147. package/lib/cjs/resources/wire_transfers.d.ts +1 -5
  148. package/lib/cjs/static.js +1 -1
  149. package/lib/esm/api.d.ts +1 -1
  150. package/lib/esm/client.d.ts +1 -1
  151. package/lib/esm/client.js +1 -1
  152. package/lib/esm/commercelayer.d.ts +1 -0
  153. package/lib/esm/commercelayer.js +1 -1
  154. package/lib/esm/common.js +1 -1
  155. package/lib/esm/error.js +1 -1
  156. package/lib/esm/jsonapi.d.ts +0 -2
  157. package/lib/esm/jsonapi.js +1 -1
  158. package/lib/esm/model.d.ts +2 -2
  159. package/lib/esm/query.d.ts +3 -37
  160. package/lib/esm/query.js +1 -1
  161. package/lib/esm/resource.d.ts +1 -1
  162. package/lib/esm/resource.js +1 -1
  163. package/lib/esm/resources/addresses.d.ts +0 -4
  164. package/lib/esm/resources/addresses.js +1 -1
  165. package/lib/esm/resources/adjustments.d.ts +0 -4
  166. package/lib/esm/resources/adjustments.js +1 -1
  167. package/lib/esm/resources/adyen_gateways.d.ts +0 -4
  168. package/lib/esm/resources/adyen_gateways.js +1 -1
  169. package/lib/esm/resources/adyen_payments.d.ts +1 -6
  170. package/lib/esm/resources/adyen_payments.js +1 -1
  171. package/lib/esm/resources/application.d.ts +0 -4
  172. package/lib/esm/resources/application.js +1 -1
  173. package/lib/esm/resources/attachments.d.ts +1 -5
  174. package/lib/esm/resources/attachments.js +1 -1
  175. package/lib/esm/resources/authorizations.d.ts +0 -4
  176. package/lib/esm/resources/authorizations.js +1 -1
  177. package/lib/esm/resources/avalara_accounts.d.ts +0 -4
  178. package/lib/esm/resources/avalara_accounts.js +1 -1
  179. package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -5
  180. package/lib/esm/resources/billing_info_validation_rules.js +1 -1
  181. package/lib/esm/resources/bing_geocoders.d.ts +0 -4
  182. package/lib/esm/resources/bing_geocoders.js +1 -1
  183. package/lib/esm/resources/braintree_gateways.d.ts +0 -4
  184. package/lib/esm/resources/braintree_gateways.js +1 -1
  185. package/lib/esm/resources/braintree_payments.d.ts +1 -5
  186. package/lib/esm/resources/braintree_payments.js +1 -1
  187. package/lib/esm/resources/bundles.d.ts +1 -5
  188. package/lib/esm/resources/bundles.js +1 -1
  189. package/lib/esm/resources/captures.d.ts +0 -4
  190. package/lib/esm/resources/captures.js +1 -1
  191. package/lib/esm/resources/carrier_accounts.d.ts +0 -4
  192. package/lib/esm/resources/carrier_accounts.js +1 -1
  193. package/lib/esm/resources/checkout_com_gateways.d.ts +0 -4
  194. package/lib/esm/resources/checkout_com_gateways.js +1 -1
  195. package/lib/esm/resources/checkout_com_payments.d.ts +1 -6
  196. package/lib/esm/resources/checkout_com_payments.js +1 -1
  197. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -5
  198. package/lib/esm/resources/coupon_codes_promotion_rules.js +1 -1
  199. package/lib/esm/resources/coupon_recipients.d.ts +0 -4
  200. package/lib/esm/resources/coupon_recipients.js +1 -1
  201. package/lib/esm/resources/coupons.d.ts +4 -5
  202. package/lib/esm/resources/coupons.js +1 -1
  203. package/lib/esm/resources/customer_addresses.d.ts +2 -6
  204. package/lib/esm/resources/customer_addresses.js +1 -1
  205. package/lib/esm/resources/customer_groups.d.ts +0 -4
  206. package/lib/esm/resources/customer_groups.js +1 -1
  207. package/lib/esm/resources/customer_password_resets.d.ts +0 -4
  208. package/lib/esm/resources/customer_password_resets.js +1 -1
  209. package/lib/esm/resources/customer_payment_sources.d.ts +2 -6
  210. package/lib/esm/resources/customer_payment_sources.js +1 -1
  211. package/lib/esm/resources/customer_subscriptions.d.ts +0 -4
  212. package/lib/esm/resources/customer_subscriptions.js +1 -1
  213. package/lib/esm/resources/customers.d.ts +0 -4
  214. package/lib/esm/resources/customers.js +1 -1
  215. package/lib/esm/resources/delivery_lead_times.d.ts +2 -6
  216. package/lib/esm/resources/delivery_lead_times.js +1 -1
  217. package/lib/esm/resources/event_callbacks.d.ts +0 -4
  218. package/lib/esm/resources/event_callbacks.js +1 -1
  219. package/lib/esm/resources/external_gateways.d.ts +0 -4
  220. package/lib/esm/resources/external_payments.d.ts +1 -5
  221. package/lib/esm/resources/external_promotions.d.ts +0 -4
  222. package/lib/esm/resources/external_promotions.js +1 -1
  223. package/lib/esm/resources/external_tax_calculators.d.ts +0 -4
  224. package/lib/esm/resources/external_tax_calculators.js +1 -1
  225. package/lib/esm/resources/fixed_amount_promotions.d.ts +0 -4
  226. package/lib/esm/resources/fixed_amount_promotions.js +1 -1
  227. package/lib/esm/resources/fixed_price_promotions.d.ts +1 -5
  228. package/lib/esm/resources/fixed_price_promotions.js +1 -1
  229. package/lib/esm/resources/free_gift_promotions.d.ts +1 -5
  230. package/lib/esm/resources/free_gift_promotions.js +1 -1
  231. package/lib/esm/resources/free_shipping_promotions.d.ts +0 -4
  232. package/lib/esm/resources/free_shipping_promotions.js +1 -1
  233. package/lib/esm/resources/geocoders.d.ts +2 -5
  234. package/lib/esm/resources/geocoders.js +1 -1
  235. package/lib/esm/resources/gift_card_recipients.d.ts +0 -4
  236. package/lib/esm/resources/gift_card_recipients.js +1 -1
  237. package/lib/esm/resources/gift_cards.d.ts +0 -4
  238. package/lib/esm/resources/gift_cards.js +1 -1
  239. package/lib/esm/resources/google_geocoders.d.ts +0 -4
  240. package/lib/esm/resources/google_geocoders.js +1 -1
  241. package/lib/esm/resources/imports.d.ts +0 -4
  242. package/lib/esm/resources/imports.js +1 -1
  243. package/lib/esm/resources/in_stock_subscriptions.d.ts +3 -7
  244. package/lib/esm/resources/in_stock_subscriptions.js +1 -1
  245. package/lib/esm/resources/inventory_models.d.ts +0 -4
  246. package/lib/esm/resources/inventory_models.js +1 -1
  247. package/lib/esm/resources/inventory_return_locations.d.ts +2 -6
  248. package/lib/esm/resources/inventory_return_locations.js +1 -1
  249. package/lib/esm/resources/inventory_stock_locations.d.ts +2 -6
  250. package/lib/esm/resources/inventory_stock_locations.js +1 -1
  251. package/lib/esm/resources/line_item_options.d.ts +2 -6
  252. package/lib/esm/resources/line_item_options.js +1 -1
  253. package/lib/esm/resources/line_items.d.ts +1 -5
  254. package/lib/esm/resources/line_items.js +1 -1
  255. package/lib/esm/resources/manual_gateways.d.ts +0 -4
  256. package/lib/esm/resources/manual_gateways.js +1 -1
  257. package/lib/esm/resources/manual_tax_calculators.d.ts +0 -4
  258. package/lib/esm/resources/manual_tax_calculators.js +1 -1
  259. package/lib/esm/resources/markets.d.ts +3 -7
  260. package/lib/esm/resources/markets.js +1 -1
  261. package/lib/esm/resources/merchants.d.ts +1 -5
  262. package/lib/esm/resources/merchants.js +1 -1
  263. package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -5
  264. package/lib/esm/resources/order_amount_promotion_rules.js +1 -1
  265. package/lib/esm/resources/order_copies.d.ts +1 -5
  266. package/lib/esm/resources/order_copies.js +1 -1
  267. package/lib/esm/resources/order_subscriptions.d.ts +1 -5
  268. package/lib/esm/resources/order_subscriptions.js +1 -1
  269. package/lib/esm/resources/order_validation_rules.d.ts +2 -5
  270. package/lib/esm/resources/order_validation_rules.js +1 -1
  271. package/lib/esm/resources/orders.d.ts +0 -4
  272. package/lib/esm/resources/orders.js +1 -1
  273. package/lib/esm/resources/organization.d.ts +0 -4
  274. package/lib/esm/resources/organization.js +1 -1
  275. package/lib/esm/resources/packages.d.ts +1 -5
  276. package/lib/esm/resources/packages.js +1 -1
  277. package/lib/esm/resources/parcel_line_items.d.ts +2 -6
  278. package/lib/esm/resources/parcel_line_items.js +1 -1
  279. package/lib/esm/resources/parcels.d.ts +2 -6
  280. package/lib/esm/resources/parcels.js +1 -1
  281. package/lib/esm/resources/payment_gateways.d.ts +2 -15
  282. package/lib/esm/resources/payment_gateways.js +1 -1
  283. package/lib/esm/resources/payment_methods.d.ts +5 -6
  284. package/lib/esm/resources/payment_methods.js +1 -1
  285. package/lib/esm/resources/paypal_gateways.d.ts +0 -4
  286. package/lib/esm/resources/paypal_gateways.js +1 -1
  287. package/lib/esm/resources/paypal_payments.d.ts +1 -5
  288. package/lib/esm/resources/paypal_payments.js +1 -1
  289. package/lib/esm/resources/percentage_discount_promotions.d.ts +0 -4
  290. package/lib/esm/resources/percentage_discount_promotions.js +1 -1
  291. package/lib/esm/resources/price_lists.d.ts +0 -4
  292. package/lib/esm/resources/price_lists.js +1 -1
  293. package/lib/esm/resources/prices.d.ts +1 -5
  294. package/lib/esm/resources/prices.js +1 -1
  295. package/lib/esm/resources/promotion_rules.d.ts +2 -5
  296. package/lib/esm/resources/promotion_rules.js +1 -1
  297. package/lib/esm/resources/promotions.d.ts +2 -5
  298. package/lib/esm/resources/promotions.js +1 -1
  299. package/lib/esm/resources/refunds.d.ts +0 -4
  300. package/lib/esm/resources/refunds.js +1 -1
  301. package/lib/esm/resources/return_line_items.d.ts +2 -6
  302. package/lib/esm/resources/return_line_items.js +1 -1
  303. package/lib/esm/resources/returns.d.ts +1 -5
  304. package/lib/esm/resources/returns.js +1 -1
  305. package/lib/esm/resources/shipments.d.ts +0 -4
  306. package/lib/esm/resources/shipments.js +1 -1
  307. package/lib/esm/resources/shipping_categories.d.ts +0 -4
  308. package/lib/esm/resources/shipping_categories.js +1 -1
  309. package/lib/esm/resources/shipping_methods.d.ts +3 -7
  310. package/lib/esm/resources/shipping_methods.js +1 -1
  311. package/lib/esm/resources/shipping_zones.d.ts +0 -4
  312. package/lib/esm/resources/shipping_zones.js +1 -1
  313. package/lib/esm/resources/sku_list_items.d.ts +7 -8
  314. package/lib/esm/resources/sku_list_items.js +1 -1
  315. package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -5
  316. package/lib/esm/resources/sku_list_promotion_rules.js +1 -1
  317. package/lib/esm/resources/sku_lists.d.ts +0 -4
  318. package/lib/esm/resources/sku_lists.js +1 -1
  319. package/lib/esm/resources/sku_options.d.ts +1 -5
  320. package/lib/esm/resources/sku_options.js +1 -1
  321. package/lib/esm/resources/skus.d.ts +1 -5
  322. package/lib/esm/resources/skus.js +1 -1
  323. package/lib/esm/resources/stock_items.d.ts +1 -5
  324. package/lib/esm/resources/stock_items.js +1 -1
  325. package/lib/esm/resources/stock_line_items.d.ts +0 -4
  326. package/lib/esm/resources/stock_line_items.js +1 -1
  327. package/lib/esm/resources/stock_locations.d.ts +1 -5
  328. package/lib/esm/resources/stock_locations.js +1 -1
  329. package/lib/esm/resources/stock_transfers.d.ts +3 -7
  330. package/lib/esm/resources/stock_transfers.js +1 -1
  331. package/lib/esm/resources/stripe_gateways.d.ts +0 -4
  332. package/lib/esm/resources/stripe_gateways.js +1 -1
  333. package/lib/esm/resources/stripe_payments.d.ts +1 -5
  334. package/lib/esm/resources/stripe_payments.js +1 -1
  335. package/lib/esm/resources/tax_calculators.d.ts +2 -5
  336. package/lib/esm/resources/tax_calculators.js +1 -1
  337. package/lib/esm/resources/tax_categories.d.ts +2 -6
  338. package/lib/esm/resources/tax_categories.js +1 -1
  339. package/lib/esm/resources/tax_rules.d.ts +1 -5
  340. package/lib/esm/resources/tax_rules.js +1 -1
  341. package/lib/esm/resources/taxjar_accounts.d.ts +0 -4
  342. package/lib/esm/resources/taxjar_accounts.js +1 -1
  343. package/lib/esm/resources/transactions.d.ts +2 -5
  344. package/lib/esm/resources/transactions.js +1 -1
  345. package/lib/esm/resources/voids.d.ts +0 -4
  346. package/lib/esm/resources/voids.js +1 -1
  347. package/lib/esm/resources/webhooks.d.ts +0 -4
  348. package/lib/esm/resources/webhooks.js +1 -1
  349. package/lib/esm/resources/wire_transfers.d.ts +1 -5
  350. package/lib/esm/resources/wire_transfers.js +1 -1
  351. package/lib/esm/static.js +1 -1
  352. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  353. package/lib/tsconfig.tsbuildinfo +1 -1
  354. package/package.json +18 -14
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
@@ -43,7 +39,7 @@ interface OrderSubscriptionCreate extends ResourceCreate {
43
39
  expires_at?: string;
44
40
  options?: object;
45
41
  market?: MarketRel;
46
- source_order?: OrderRel;
42
+ source_order: OrderRel;
47
43
  }
48
44
  interface OrderSubscriptionUpdate extends ResourceUpdate {
49
45
  expires_at?: string;
@@ -1,9 +1,5 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
2
+ import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
8
4
  declare type OrderValidationRuleRel = ResourceId & {
9
5
  type: typeof OrderValidationRules.TYPE;
@@ -14,6 +10,7 @@ interface OrderValidationRule extends Resource {
14
10
  declare class OrderValidationRules extends ApiResource {
15
11
  static readonly TYPE: 'order_validation_rules';
16
12
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderValidationRule>>;
13
+ retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderValidationRule>;
17
14
  isOrderValidationRule(resource: any): resource is OrderValidationRule;
18
15
  relationship(id: string | ResourceId): OrderValidationRuleRel;
19
16
  type(): string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderValidationRules extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:OrderValidationRules.TYPE},e,t)}isOrderValidationRule(e){return e.type&&e.type===OrderValidationRules.TYPE}relationship(e){return typeof e=="string"?{id:e,type:OrderValidationRules.TYPE}:{id:e.id,type:OrderValidationRules.TYPE}}type(){return OrderValidationRules.TYPE}}OrderValidationRules.TYPE="order_validation_rules",exports.default=OrderValidationRules;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderValidationRules extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:OrderValidationRules.TYPE},e,t)}async retrieve(e,t,r){return this.resources.retrieve({type:OrderValidationRules.TYPE,id:e},t,r)}isOrderValidationRule(e){return e.type&&e.type===OrderValidationRules.TYPE}relationship(e){return typeof e=="string"?{id:e,type:OrderValidationRules.TYPE}:{id:e.id,type:OrderValidationRules.TYPE}}type(){return OrderValidationRules.TYPE}}OrderValidationRules.TYPE="order_validation_rules",exports.default=OrderValidationRules;
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourcesConfig, ResourceId } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsRetrieve } from '../query';
7
3
  declare type OrganizationRel = ResourceId & {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Organizations extends resource_1.ApiResource{async retrieve(e,r){return this.resources.singleton({type:Organizations.TYPE},e,r)}isOrganization(e){return e.type&&e.type===Organizations.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Organizations.TYPE}:{id:e.id,type:Organizations.TYPE}}type(){return Organizations.TYPE}}Organizations.TYPE="organization",exports.default=Organizations;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Organizations extends resource_1.ApiResource{async retrieve(e,t){return this.resources.singleton({type:Organizations.TYPE},e,t)}isOrganization(e){return e.type&&e.type===Organizations.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Organizations.TYPE}:{id:e.id,type:Organizations.TYPE}}type(){return Organizations.TYPE}}Organizations.TYPE="organization",exports.default=Organizations;
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { StockLocation } from './stock_locations';
@@ -31,7 +27,7 @@ interface PackageCreate extends ResourceCreate {
31
27
  width: number;
32
28
  height: number;
33
29
  unit_of_length: string;
34
- stock_location?: StockLocationRel;
30
+ stock_location: StockLocationRel;
35
31
  }
36
32
  interface PackageUpdate extends ResourceUpdate {
37
33
  name?: string;
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Parcel } from './parcels';
@@ -28,8 +24,8 @@ interface ParcelLineItem extends Resource {
28
24
  interface ParcelLineItemCreate extends ResourceCreate {
29
25
  sku_code?: string;
30
26
  quantity: number;
31
- parcel?: ParcelRel;
32
- stock_line_item?: StockLineItemRel;
27
+ parcel: ParcelRel;
28
+ stock_line_item: StockLineItemRel;
33
29
  /**
34
30
  * @deprecated This field should not be used as it may be removed in the future without notice
35
31
  */
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Shipment } from './shipments';
@@ -67,8 +63,8 @@ interface ParcelCreate extends ResourceCreate {
67
63
  carrier_weight_oz?: string;
68
64
  signed_by?: string;
69
65
  incoterm?: string;
70
- shipment?: ShipmentRel;
71
- package?: PackageRel;
66
+ shipment: ShipmentRel;
67
+ package: PackageRel;
72
68
  }
73
69
  interface ParcelUpdate extends ResourceUpdate {
74
70
  weight?: number;
@@ -1,8 +1,4 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
1
+ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { PaymentMethod } from './payment_methods';
8
4
  declare type PaymentGatewayRel = ResourceId & {
@@ -12,22 +8,13 @@ interface PaymentGateway extends Resource {
12
8
  name?: string;
13
9
  payment_methods?: PaymentMethod[];
14
10
  }
15
- interface PaymentGatewayCreate extends ResourceCreate {
16
- name: string;
17
- }
18
- interface PaymentGatewayUpdate extends ResourceUpdate {
19
- name?: string;
20
- }
21
11
  declare class PaymentGateways extends ApiResource {
22
12
  static readonly TYPE: 'payment_gateways';
23
13
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentGateway>>;
24
- create(resource: PaymentGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
25
14
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
26
- update(resource: PaymentGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
27
- delete(id: string, options?: ResourcesConfig): Promise<void>;
28
15
  isPaymentGateway(resource: any): resource is PaymentGateway;
29
16
  relationship(id: string | ResourceId): PaymentGatewayRel;
30
17
  type(): string;
31
18
  }
32
19
  export default PaymentGateways;
33
- export { PaymentGateway, PaymentGatewayCreate, PaymentGatewayUpdate };
20
+ export { PaymentGateway };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentGateways extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaymentGateways.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:PaymentGateways.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:PaymentGateways.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:PaymentGateways.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:PaymentGateways.TYPE,id:e},r)}isPaymentGateway(e){return e.type&&e.type===PaymentGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaymentGateways.TYPE}:{id:e.id,type:PaymentGateways.TYPE}}type(){return PaymentGateways.TYPE}}PaymentGateways.TYPE="payment_gateways",exports.default=PaymentGateways;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentGateways extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaymentGateways.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:PaymentGateways.TYPE,id:e},r,t)}isPaymentGateway(e){return e.type&&e.type===PaymentGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaymentGateways.TYPE}:{id:e.id,type:PaymentGateways.TYPE}}type(){return PaymentGateways.TYPE}}PaymentGateways.TYPE="payment_gateways",exports.default=PaymentGateways;
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
@@ -19,6 +15,7 @@ declare type PaymentGatewayRel = ResourceId & {
19
15
  interface PaymentMethod extends Resource {
20
16
  payment_source_type?: string;
21
17
  name?: string;
18
+ moto?: boolean;
22
19
  disabled_at?: string;
23
20
  price_amount_cents?: number;
24
21
  price_amount_float?: number;
@@ -29,12 +26,14 @@ interface PaymentMethod extends Resource {
29
26
  }
30
27
  interface PaymentMethodCreate extends ResourceCreate {
31
28
  payment_source_type: string;
29
+ moto?: boolean;
32
30
  price_amount_cents: number;
33
- market?: MarketRel;
34
- payment_gateway?: PaymentGatewayRel;
31
+ market: MarketRel;
32
+ payment_gateway: PaymentGatewayRel;
35
33
  }
36
34
  interface PaymentMethodUpdate extends ResourceUpdate {
37
35
  payment_source_type?: string;
36
+ moto?: boolean;
38
37
  price_amount_cents?: number;
39
38
  market?: MarketRel;
40
39
  payment_gateway?: PaymentGatewayRel;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentMethods extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaymentMethods.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:PaymentMethods.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:PaymentMethods.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:PaymentMethods.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:PaymentMethods.TYPE,id:e},r)}isPaymentMethod(e){return e.type&&e.type===PaymentMethods.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaymentMethods.TYPE}:{id:e.id,type:PaymentMethods.TYPE}}type(){return PaymentMethods.TYPE}}PaymentMethods.TYPE="payment_methods",exports.default=PaymentMethods;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentMethods extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaymentMethods.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:PaymentMethods.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:PaymentMethods.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:PaymentMethods.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:PaymentMethods.TYPE,id:e},r)}isPaymentMethod(e){return e.type&&e.type===PaymentMethods.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaymentMethods.TYPE}:{id:e.id,type:PaymentMethods.TYPE}}type(){return PaymentMethods.TYPE}}PaymentMethods.TYPE="payment_methods",exports.default=PaymentMethods;
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { PaymentMethod } from './payment_methods';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaypalGateways extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaypalGateways.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:PaypalGateways.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:PaypalGateways.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:PaypalGateways.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:PaypalGateways.TYPE,id:e},r)}isPaypalGateway(e){return e.type&&e.type===PaypalGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaypalGateways.TYPE}:{id:e.id,type:PaypalGateways.TYPE}}type(){return PaypalGateways.TYPE}}PaypalGateways.TYPE="paypal_gateways",exports.default=PaypalGateways;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaypalGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PaypalGateways.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:PaypalGateways.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:PaypalGateways.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:PaypalGateways.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:PaypalGateways.TYPE,id:e},t)}isPaypalGateway(e){return e.type&&e.type===PaypalGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaypalGateways.TYPE}:{id:e.id,type:PaypalGateways.TYPE}}type(){return PaypalGateways.TYPE}}PaypalGateways.TYPE="paypal_gateways",exports.default=PaypalGateways;
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Order } from './orders';
@@ -28,7 +24,7 @@ interface PaypalPaymentCreate extends ResourceCreate {
28
24
  return_url: string;
29
25
  cancel_url: string;
30
26
  note_to_payer?: string;
31
- order?: OrderRel;
27
+ order: OrderRel;
32
28
  }
33
29
  interface PaypalPaymentUpdate extends ResourceUpdate {
34
30
  paypal_payer_id?: string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaypalPayments extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaypalPayments.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:PaypalPayments.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:PaypalPayments.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:PaypalPayments.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:PaypalPayments.TYPE,id:e},r)}isPaypalPayment(e){return e.type&&e.type===PaypalPayments.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaypalPayments.TYPE}:{id:e.id,type:PaypalPayments.TYPE}}type(){return PaypalPayments.TYPE}}PaypalPayments.TYPE="paypal_payments",exports.default=PaypalPayments;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaypalPayments extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PaypalPayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:PaypalPayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:PaypalPayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:PaypalPayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:PaypalPayments.TYPE,id:e},t)}isPaypalPayment(e){return e.type&&e.type===PaypalPayments.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaypalPayments.TYPE}:{id:e.id,type:PaypalPayments.TYPE}}type(){return PaypalPayments.TYPE}}PaypalPayments.TYPE="paypal_payments",exports.default=PaypalPayments;
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PercentageDiscountPromotions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PercentageDiscountPromotions.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:PercentageDiscountPromotions.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:PercentageDiscountPromotions.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:PercentageDiscountPromotions.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:PercentageDiscountPromotions.TYPE,id:e},r)}isPercentageDiscountPromotion(e){return e.type&&e.type===PercentageDiscountPromotions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PercentageDiscountPromotions.TYPE}:{id:e.id,type:PercentageDiscountPromotions.TYPE}}type(){return PercentageDiscountPromotions.TYPE}}PercentageDiscountPromotions.TYPE="percentage_discount_promotions",exports.default=PercentageDiscountPromotions;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PercentageDiscountPromotions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PercentageDiscountPromotions.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:PercentageDiscountPromotions.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:PercentageDiscountPromotions.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:PercentageDiscountPromotions.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:PercentageDiscountPromotions.TYPE,id:e},t)}isPercentageDiscountPromotion(e){return e.type&&e.type===PercentageDiscountPromotions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PercentageDiscountPromotions.TYPE}:{id:e.id,type:PercentageDiscountPromotions.TYPE}}type(){return PercentageDiscountPromotions.TYPE}}PercentageDiscountPromotions.TYPE="percentage_discount_promotions",exports.default=PercentageDiscountPromotions;
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Price } from './prices';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { PriceList } from './price_lists';
@@ -33,7 +29,7 @@ interface PriceCreate extends ResourceCreate {
33
29
  sku_code?: string;
34
30
  amount_cents: number;
35
31
  compare_at_amount_cents: number;
36
- price_list?: PriceListRel;
32
+ price_list: PriceListRel;
37
33
  sku?: SkuRel;
38
34
  }
39
35
  interface PriceUpdate extends ResourceUpdate {
@@ -1,9 +1,5 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
2
+ import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { PercentageDiscountPromotion } from './percentage_discount_promotions';
8
4
  import { FreeShippingPromotion } from './free_shipping_promotions';
9
5
  import { FixedAmountPromotion } from './fixed_amount_promotions';
@@ -19,6 +15,7 @@ interface PromotionRule extends Resource {
19
15
  declare class PromotionRules extends ApiResource {
20
16
  static readonly TYPE: 'promotion_rules';
21
17
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PromotionRule>>;
18
+ retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PromotionRule>;
22
19
  isPromotionRule(resource: any): resource is PromotionRule;
23
20
  relationship(id: string | ResourceId): PromotionRuleRel;
24
21
  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,5 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
2
+ import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
8
4
  import { PromotionRule } from './promotion_rules';
9
5
  import { OrderAmountPromotionRule } from './order_amount_promotion_rules';
@@ -30,6 +26,7 @@ interface Promotion extends Resource {
30
26
  declare class Promotions extends ApiResource {
31
27
  static readonly TYPE: 'promotions';
32
28
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Promotion>>;
29
+ retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Promotion>;
33
30
  isPromotion(resource: any): resource is Promotion;
34
31
  relationship(id: string | ResourceId): PromotionRel;
35
32
  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,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Order } from './orders';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Return } from './returns';
@@ -28,8 +24,8 @@ interface ReturnLineItem extends Resource {
28
24
  interface ReturnLineItemCreate extends ResourceCreate {
29
25
  quantity: number;
30
26
  return_reason?: object;
31
- return?: ReturnRel;
32
- line_item?: LineItemRel;
27
+ return: ReturnRel;
28
+ line_item: LineItemRel;
33
29
  }
34
30
  interface ReturnLineItemUpdate extends ResourceUpdate {
35
31
  quantity?: number;
@@ -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,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Order } from './orders';
@@ -39,7 +35,7 @@ interface Return extends Resource {
39
35
  attachments?: Attachment[];
40
36
  }
41
37
  interface ReturnCreate extends ResourceCreate {
42
- order?: OrderRel;
38
+ order: OrderRel;
43
39
  stock_location?: StockLocationRel;
44
40
  }
45
41
  interface ReturnUpdate extends ResourceUpdate {
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Order } from './orders';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Sku } from './skus';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
@@ -44,9 +40,9 @@ interface ShippingMethodCreate extends ResourceCreate {
44
40
  name: string;
45
41
  price_amount_cents: number;
46
42
  free_over_amount_cents?: number;
47
- market?: MarketRel;
48
- shipping_zone?: ShippingZoneRel;
49
- shipping_category?: ShippingCategoryRel;
43
+ market: MarketRel;
44
+ shipping_zone: ShippingZoneRel;
45
+ shipping_category: ShippingCategoryRel;
50
46
  }
51
47
  interface ShippingMethodUpdate extends ResourceUpdate {
52
48
  name?: string;
@@ -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,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Attachment } from './attachments';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { SkuList } from './sku_lists';
@@ -17,18 +13,21 @@ declare type SkuRel = ResourceId & {
17
13
  };
18
14
  interface SkuListItem extends Resource {
19
15
  position?: number;
16
+ sku_code?: string;
20
17
  quantity?: number;
21
18
  sku_list?: SkuList;
22
19
  sku?: Sku;
23
20
  }
24
21
  interface SkuListItemCreate extends ResourceCreate {
25
- position: number;
26
- quantity: number;
27
- sku_list?: SkuListRel;
28
- sku?: SkuRel;
22
+ position?: number;
23
+ sku_code?: string;
24
+ quantity?: number;
25
+ sku_list: SkuListRel;
26
+ sku: SkuRel;
29
27
  }
30
28
  interface SkuListItemUpdate extends ResourceUpdate {
31
29
  position?: number;
30
+ sku_code?: string;
32
31
  quantity?: number;
33
32
  }
34
33
  declare class SkuListItems extends ApiResource {
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { PercentageDiscountPromotion } from './percentage_discount_promotions';
@@ -46,7 +42,7 @@ interface SkuListPromotionRule extends Resource {
46
42
  interface SkuListPromotionRuleCreate extends ResourceCreate {
47
43
  all_skus?: boolean;
48
44
  min_quantity?: number;
49
- promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
45
+ promotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
50
46
  sku_list?: SkuListRel;
51
47
  }
52
48
  interface SkuListPromotionRuleUpdate extends ResourceUpdate {
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Sku } from './skus';
@@ -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,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
@@ -30,7 +26,7 @@ interface SkuOptionCreate extends ResourceCreate {
30
26
  price_amount_cents?: number;
31
27
  delay_hours?: number;
32
28
  sku_code_regex?: string;
33
- market?: MarketRel;
29
+ market: MarketRel;
34
30
  }
35
31
  interface SkuOptionUpdate extends ResourceUpdate {
36
32
  name?: string;
@@ -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,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { ShippingCategory } from './shipping_categories';
@@ -46,7 +42,7 @@ interface SkuCreate extends ResourceCreate {
46
42
  hs_tariff_number?: string;
47
43
  do_not_ship?: boolean;
48
44
  do_not_track?: boolean;
49
- shipping_category?: ShippingCategoryRel;
45
+ shipping_category: ShippingCategoryRel;
50
46
  }
51
47
  interface SkuUpdate extends ResourceUpdate {
52
48
  code?: string;
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { StockLocation } from './stock_locations';
@@ -26,7 +22,7 @@ interface StockItem extends Resource {
26
22
  interface StockItemCreate extends ResourceCreate {
27
23
  sku_code?: string;
28
24
  quantity: number;
29
- stock_location?: StockLocationRel;
25
+ stock_location: StockLocationRel;
30
26
  sku?: SkuRel;
31
27
  }
32
28
  interface StockItemUpdate extends ResourceUpdate {
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Shipment } from './shipments';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Address } from './addresses';
@@ -32,7 +28,7 @@ interface StockLocationCreate extends ResourceCreate {
32
28
  name: string;
33
29
  label_format?: string;
34
30
  suppress_etd?: boolean;
35
- address?: AddressRel;
31
+ address: AddressRel;
36
32
  }
37
33
  interface StockLocationUpdate extends ResourceUpdate {
38
34
  name?: string;