@commercelayer/sdk 2.3.9 → 3.0.0-beta.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 (423) hide show
  1. package/lib/cjs/api.d.ts +1 -1
  2. package/lib/cjs/api.js +1 -1
  3. package/lib/cjs/client.d.ts +1 -1
  4. package/lib/cjs/client.js +1 -1
  5. package/lib/cjs/commercelayer.d.ts +1 -0
  6. package/lib/cjs/commercelayer.js +1 -1
  7. package/lib/cjs/common.js +1 -1
  8. package/lib/cjs/config.d.ts +7 -3
  9. package/lib/cjs/config.js +1 -1
  10. package/lib/cjs/error.js +1 -1
  11. package/lib/cjs/index.js +1 -1
  12. package/lib/cjs/interceptor.js +1 -1
  13. package/lib/cjs/jsonapi.d.ts +0 -2
  14. package/lib/cjs/jsonapi.js +1 -1
  15. package/lib/cjs/model.d.ts +2 -2
  16. package/lib/cjs/model.js +1 -1
  17. package/lib/cjs/query.d.ts +0 -35
  18. package/lib/cjs/query.js +1 -1
  19. package/lib/cjs/resource.d.ts +1 -1
  20. package/lib/cjs/resource.js +1 -1
  21. package/lib/cjs/resources/addresses.d.ts +0 -4
  22. package/lib/cjs/resources/addresses.js +1 -1
  23. package/lib/cjs/resources/adjustments.d.ts +0 -4
  24. package/lib/cjs/resources/adjustments.js +1 -1
  25. package/lib/cjs/resources/adyen_gateways.d.ts +0 -4
  26. package/lib/cjs/resources/adyen_gateways.js +1 -1
  27. package/lib/cjs/resources/adyen_payments.d.ts +0 -5
  28. package/lib/cjs/resources/adyen_payments.js +1 -1
  29. package/lib/cjs/resources/application.d.ts +0 -4
  30. package/lib/cjs/resources/application.js +1 -1
  31. package/lib/cjs/resources/attachments.d.ts +0 -4
  32. package/lib/cjs/resources/attachments.js +1 -1
  33. package/lib/cjs/resources/authorizations.d.ts +0 -4
  34. package/lib/cjs/resources/authorizations.js +1 -1
  35. package/lib/cjs/resources/avalara_accounts.d.ts +0 -4
  36. package/lib/cjs/resources/avalara_accounts.js +1 -1
  37. package/lib/cjs/resources/billing_info_validation_rules.d.ts +0 -4
  38. package/lib/cjs/resources/billing_info_validation_rules.js +1 -1
  39. package/lib/cjs/resources/bing_geocoders.d.ts +0 -4
  40. package/lib/cjs/resources/bing_geocoders.js +1 -1
  41. package/lib/cjs/resources/braintree_gateways.d.ts +0 -4
  42. package/lib/cjs/resources/braintree_gateways.js +1 -1
  43. package/lib/cjs/resources/braintree_payments.d.ts +0 -4
  44. package/lib/cjs/resources/braintree_payments.js +1 -1
  45. package/lib/cjs/resources/bundles.d.ts +0 -4
  46. package/lib/cjs/resources/bundles.js +1 -1
  47. package/lib/cjs/resources/captures.d.ts +0 -4
  48. package/lib/cjs/resources/captures.js +1 -1
  49. package/lib/cjs/resources/carrier_accounts.d.ts +0 -4
  50. package/lib/cjs/resources/carrier_accounts.js +1 -1
  51. package/lib/cjs/resources/checkout_com_gateways.d.ts +0 -4
  52. package/lib/cjs/resources/checkout_com_gateways.js +1 -1
  53. package/lib/cjs/resources/checkout_com_payments.d.ts +0 -5
  54. package/lib/cjs/resources/checkout_com_payments.js +1 -1
  55. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +0 -4
  56. package/lib/cjs/resources/coupon_codes_promotion_rules.js +1 -1
  57. package/lib/cjs/resources/coupon_recipients.d.ts +0 -4
  58. package/lib/cjs/resources/coupon_recipients.js +1 -1
  59. package/lib/cjs/resources/coupons.d.ts +3 -4
  60. package/lib/cjs/resources/coupons.js +1 -1
  61. package/lib/cjs/resources/customer_addresses.d.ts +0 -4
  62. package/lib/cjs/resources/customer_addresses.js +1 -1
  63. package/lib/cjs/resources/customer_groups.d.ts +0 -4
  64. package/lib/cjs/resources/customer_groups.js +1 -1
  65. package/lib/cjs/resources/customer_password_resets.d.ts +0 -4
  66. package/lib/cjs/resources/customer_password_resets.js +1 -1
  67. package/lib/cjs/resources/customer_payment_sources.d.ts +0 -4
  68. package/lib/cjs/resources/customer_payment_sources.js +1 -1
  69. package/lib/cjs/resources/customer_subscriptions.d.ts +0 -4
  70. package/lib/cjs/resources/customer_subscriptions.js +1 -1
  71. package/lib/cjs/resources/customers.d.ts +0 -4
  72. package/lib/cjs/resources/customers.js +1 -1
  73. package/lib/cjs/resources/delivery_lead_times.d.ts +0 -4
  74. package/lib/cjs/resources/delivery_lead_times.js +1 -1
  75. package/lib/cjs/resources/event_callbacks.d.ts +0 -4
  76. package/lib/cjs/resources/event_callbacks.js +1 -1
  77. package/lib/cjs/resources/external_gateways.d.ts +0 -4
  78. package/lib/cjs/resources/external_gateways.js +1 -1
  79. package/lib/cjs/resources/external_payments.d.ts +0 -4
  80. package/lib/cjs/resources/external_payments.js +1 -1
  81. package/lib/cjs/resources/external_promotions.d.ts +0 -4
  82. package/lib/cjs/resources/external_promotions.js +1 -1
  83. package/lib/cjs/resources/external_tax_calculators.d.ts +0 -4
  84. package/lib/cjs/resources/external_tax_calculators.js +1 -1
  85. package/lib/cjs/resources/fixed_amount_promotions.d.ts +0 -4
  86. package/lib/cjs/resources/fixed_amount_promotions.js +1 -1
  87. package/lib/cjs/resources/fixed_price_promotions.d.ts +0 -4
  88. package/lib/cjs/resources/fixed_price_promotions.js +1 -1
  89. package/lib/cjs/resources/free_gift_promotions.d.ts +0 -4
  90. package/lib/cjs/resources/free_gift_promotions.js +1 -1
  91. package/lib/cjs/resources/free_shipping_promotions.d.ts +0 -4
  92. package/lib/cjs/resources/free_shipping_promotions.js +1 -1
  93. package/lib/cjs/resources/geocoders.d.ts +2 -5
  94. package/lib/cjs/resources/geocoders.js +1 -1
  95. package/lib/cjs/resources/gift_card_recipients.d.ts +0 -4
  96. package/lib/cjs/resources/gift_card_recipients.js +1 -1
  97. package/lib/cjs/resources/gift_cards.d.ts +0 -4
  98. package/lib/cjs/resources/gift_cards.js +1 -1
  99. package/lib/cjs/resources/google_geocoders.d.ts +0 -4
  100. package/lib/cjs/resources/google_geocoders.js +1 -1
  101. package/lib/cjs/resources/imports.d.ts +0 -4
  102. package/lib/cjs/resources/imports.js +1 -1
  103. package/lib/cjs/resources/in_stock_subscriptions.d.ts +0 -4
  104. package/lib/cjs/resources/in_stock_subscriptions.js +1 -1
  105. package/lib/cjs/resources/inventory_models.d.ts +0 -4
  106. package/lib/cjs/resources/inventory_models.js +1 -1
  107. package/lib/cjs/resources/inventory_return_locations.d.ts +0 -4
  108. package/lib/cjs/resources/inventory_return_locations.js +1 -1
  109. package/lib/cjs/resources/inventory_stock_locations.d.ts +0 -4
  110. package/lib/cjs/resources/inventory_stock_locations.js +1 -1
  111. package/lib/cjs/resources/line_item_options.d.ts +0 -4
  112. package/lib/cjs/resources/line_item_options.js +1 -1
  113. package/lib/cjs/resources/line_items.d.ts +0 -4
  114. package/lib/cjs/resources/line_items.js +1 -1
  115. package/lib/cjs/resources/manual_gateways.d.ts +0 -4
  116. package/lib/cjs/resources/manual_gateways.js +1 -1
  117. package/lib/cjs/resources/manual_tax_calculators.d.ts +0 -4
  118. package/lib/cjs/resources/manual_tax_calculators.js +1 -1
  119. package/lib/cjs/resources/markets.d.ts +0 -4
  120. package/lib/cjs/resources/markets.js +1 -1
  121. package/lib/cjs/resources/merchants.d.ts +0 -4
  122. package/lib/cjs/resources/merchants.js +1 -1
  123. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +0 -4
  124. package/lib/cjs/resources/order_amount_promotion_rules.js +1 -1
  125. package/lib/cjs/resources/order_copies.d.ts +0 -4
  126. package/lib/cjs/resources/order_copies.js +1 -1
  127. package/lib/cjs/resources/order_subscriptions.d.ts +0 -4
  128. package/lib/cjs/resources/order_subscriptions.js +1 -1
  129. package/lib/cjs/resources/order_validation_rules.d.ts +2 -5
  130. package/lib/cjs/resources/order_validation_rules.js +1 -1
  131. package/lib/cjs/resources/orders.d.ts +0 -4
  132. package/lib/cjs/resources/orders.js +1 -1
  133. package/lib/cjs/resources/organization.d.ts +0 -4
  134. package/lib/cjs/resources/organization.js +1 -1
  135. package/lib/cjs/resources/packages.d.ts +0 -4
  136. package/lib/cjs/resources/packages.js +1 -1
  137. package/lib/cjs/resources/parcel_line_items.d.ts +0 -4
  138. package/lib/cjs/resources/parcel_line_items.js +1 -1
  139. package/lib/cjs/resources/parcels.d.ts +0 -4
  140. package/lib/cjs/resources/parcels.js +1 -1
  141. package/lib/cjs/resources/payment_gateways.d.ts +2 -15
  142. package/lib/cjs/resources/payment_gateways.js +1 -1
  143. package/lib/cjs/resources/payment_methods.d.ts +3 -4
  144. package/lib/cjs/resources/payment_methods.js +1 -1
  145. package/lib/cjs/resources/paypal_gateways.d.ts +0 -4
  146. package/lib/cjs/resources/paypal_gateways.js +1 -1
  147. package/lib/cjs/resources/paypal_payments.d.ts +0 -4
  148. package/lib/cjs/resources/paypal_payments.js +1 -1
  149. package/lib/cjs/resources/percentage_discount_promotions.d.ts +0 -4
  150. package/lib/cjs/resources/percentage_discount_promotions.js +1 -1
  151. package/lib/cjs/resources/price_lists.d.ts +0 -4
  152. package/lib/cjs/resources/price_lists.js +1 -1
  153. package/lib/cjs/resources/prices.d.ts +0 -4
  154. package/lib/cjs/resources/prices.js +1 -1
  155. package/lib/cjs/resources/promotion_rules.d.ts +2 -5
  156. package/lib/cjs/resources/promotion_rules.js +1 -1
  157. package/lib/cjs/resources/promotions.d.ts +2 -5
  158. package/lib/cjs/resources/promotions.js +1 -1
  159. package/lib/cjs/resources/refunds.d.ts +0 -4
  160. package/lib/cjs/resources/refunds.js +1 -1
  161. package/lib/cjs/resources/return_line_items.d.ts +0 -4
  162. package/lib/cjs/resources/return_line_items.js +1 -1
  163. package/lib/cjs/resources/returns.d.ts +0 -4
  164. package/lib/cjs/resources/returns.js +1 -1
  165. package/lib/cjs/resources/shipments.d.ts +0 -4
  166. package/lib/cjs/resources/shipments.js +1 -1
  167. package/lib/cjs/resources/shipping_categories.d.ts +0 -4
  168. package/lib/cjs/resources/shipping_categories.js +1 -1
  169. package/lib/cjs/resources/shipping_methods.d.ts +0 -4
  170. package/lib/cjs/resources/shipping_methods.js +1 -1
  171. package/lib/cjs/resources/shipping_zones.d.ts +0 -4
  172. package/lib/cjs/resources/shipping_zones.js +1 -1
  173. package/lib/cjs/resources/sku_list_items.d.ts +5 -6
  174. package/lib/cjs/resources/sku_list_items.js +1 -1
  175. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +0 -4
  176. package/lib/cjs/resources/sku_list_promotion_rules.js +1 -1
  177. package/lib/cjs/resources/sku_lists.d.ts +0 -4
  178. package/lib/cjs/resources/sku_lists.js +1 -1
  179. package/lib/cjs/resources/sku_options.d.ts +0 -4
  180. package/lib/cjs/resources/sku_options.js +1 -1
  181. package/lib/cjs/resources/skus.d.ts +0 -4
  182. package/lib/cjs/resources/skus.js +1 -1
  183. package/lib/cjs/resources/stock_items.d.ts +0 -4
  184. package/lib/cjs/resources/stock_items.js +1 -1
  185. package/lib/cjs/resources/stock_line_items.d.ts +0 -4
  186. package/lib/cjs/resources/stock_line_items.js +1 -1
  187. package/lib/cjs/resources/stock_locations.d.ts +0 -4
  188. package/lib/cjs/resources/stock_locations.js +1 -1
  189. package/lib/cjs/resources/stock_transfers.d.ts +0 -4
  190. package/lib/cjs/resources/stock_transfers.js +1 -1
  191. package/lib/cjs/resources/stripe_gateways.d.ts +0 -4
  192. package/lib/cjs/resources/stripe_gateways.js +1 -1
  193. package/lib/cjs/resources/stripe_payments.d.ts +0 -4
  194. package/lib/cjs/resources/stripe_payments.js +1 -1
  195. package/lib/cjs/resources/tax_calculators.d.ts +2 -5
  196. package/lib/cjs/resources/tax_calculators.js +1 -1
  197. package/lib/cjs/resources/tax_categories.d.ts +0 -4
  198. package/lib/cjs/resources/tax_categories.js +1 -1
  199. package/lib/cjs/resources/tax_rules.d.ts +0 -4
  200. package/lib/cjs/resources/tax_rules.js +1 -1
  201. package/lib/cjs/resources/taxjar_accounts.d.ts +0 -4
  202. package/lib/cjs/resources/taxjar_accounts.js +1 -1
  203. package/lib/cjs/resources/transactions.d.ts +2 -5
  204. package/lib/cjs/resources/transactions.js +1 -1
  205. package/lib/cjs/resources/voids.d.ts +0 -4
  206. package/lib/cjs/resources/voids.js +1 -1
  207. package/lib/cjs/resources/webhooks.d.ts +0 -4
  208. package/lib/cjs/resources/webhooks.js +1 -1
  209. package/lib/cjs/resources/wire_transfers.d.ts +0 -4
  210. package/lib/cjs/resources/wire_transfers.js +1 -1
  211. package/lib/cjs/static.js +1 -1
  212. package/lib/cjs/util.js +1 -1
  213. package/lib/esm/api.d.ts +1 -1
  214. package/lib/esm/client.d.ts +1 -1
  215. package/lib/esm/client.js +1 -1
  216. package/lib/esm/commercelayer.d.ts +1 -0
  217. package/lib/esm/commercelayer.js +1 -1
  218. package/lib/esm/common.js +1 -1
  219. package/lib/esm/config.d.ts +7 -3
  220. package/lib/esm/config.js +1 -1
  221. package/lib/esm/error.js +1 -1
  222. package/lib/esm/jsonapi.d.ts +0 -2
  223. package/lib/esm/jsonapi.js +1 -1
  224. package/lib/esm/model.d.ts +2 -2
  225. package/lib/esm/query.d.ts +0 -35
  226. package/lib/esm/query.js +1 -1
  227. package/lib/esm/resource.d.ts +1 -1
  228. package/lib/esm/resource.js +1 -1
  229. package/lib/esm/resources/addresses.d.ts +0 -4
  230. package/lib/esm/resources/addresses.js +1 -1
  231. package/lib/esm/resources/adjustments.d.ts +0 -4
  232. package/lib/esm/resources/adjustments.js +1 -1
  233. package/lib/esm/resources/adyen_gateways.d.ts +0 -4
  234. package/lib/esm/resources/adyen_gateways.js +1 -1
  235. package/lib/esm/resources/adyen_payments.d.ts +0 -5
  236. package/lib/esm/resources/adyen_payments.js +1 -1
  237. package/lib/esm/resources/application.d.ts +0 -4
  238. package/lib/esm/resources/application.js +1 -1
  239. package/lib/esm/resources/attachments.d.ts +0 -4
  240. package/lib/esm/resources/attachments.js +1 -1
  241. package/lib/esm/resources/authorizations.d.ts +0 -4
  242. package/lib/esm/resources/authorizations.js +1 -1
  243. package/lib/esm/resources/avalara_accounts.d.ts +0 -4
  244. package/lib/esm/resources/avalara_accounts.js +1 -1
  245. package/lib/esm/resources/billing_info_validation_rules.d.ts +0 -4
  246. package/lib/esm/resources/billing_info_validation_rules.js +1 -1
  247. package/lib/esm/resources/bing_geocoders.d.ts +0 -4
  248. package/lib/esm/resources/bing_geocoders.js +1 -1
  249. package/lib/esm/resources/braintree_gateways.d.ts +0 -4
  250. package/lib/esm/resources/braintree_gateways.js +1 -1
  251. package/lib/esm/resources/braintree_payments.d.ts +0 -4
  252. package/lib/esm/resources/braintree_payments.js +1 -1
  253. package/lib/esm/resources/bundles.d.ts +0 -4
  254. package/lib/esm/resources/bundles.js +1 -1
  255. package/lib/esm/resources/captures.d.ts +0 -4
  256. package/lib/esm/resources/captures.js +1 -1
  257. package/lib/esm/resources/carrier_accounts.d.ts +0 -4
  258. package/lib/esm/resources/carrier_accounts.js +1 -1
  259. package/lib/esm/resources/checkout_com_gateways.d.ts +0 -4
  260. package/lib/esm/resources/checkout_com_gateways.js +1 -1
  261. package/lib/esm/resources/checkout_com_payments.d.ts +0 -5
  262. package/lib/esm/resources/checkout_com_payments.js +1 -1
  263. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +0 -4
  264. package/lib/esm/resources/coupon_codes_promotion_rules.js +1 -1
  265. package/lib/esm/resources/coupon_recipients.d.ts +0 -4
  266. package/lib/esm/resources/coupon_recipients.js +1 -1
  267. package/lib/esm/resources/coupons.d.ts +3 -4
  268. package/lib/esm/resources/coupons.js +1 -1
  269. package/lib/esm/resources/customer_addresses.d.ts +0 -4
  270. package/lib/esm/resources/customer_addresses.js +1 -1
  271. package/lib/esm/resources/customer_groups.d.ts +0 -4
  272. package/lib/esm/resources/customer_groups.js +1 -1
  273. package/lib/esm/resources/customer_password_resets.d.ts +0 -4
  274. package/lib/esm/resources/customer_password_resets.js +1 -1
  275. package/lib/esm/resources/customer_payment_sources.d.ts +0 -4
  276. package/lib/esm/resources/customer_payment_sources.js +1 -1
  277. package/lib/esm/resources/customer_subscriptions.d.ts +0 -4
  278. package/lib/esm/resources/customer_subscriptions.js +1 -1
  279. package/lib/esm/resources/customers.d.ts +0 -4
  280. package/lib/esm/resources/customers.js +1 -1
  281. package/lib/esm/resources/delivery_lead_times.d.ts +0 -4
  282. package/lib/esm/resources/delivery_lead_times.js +1 -1
  283. package/lib/esm/resources/event_callbacks.d.ts +0 -4
  284. package/lib/esm/resources/event_callbacks.js +1 -1
  285. package/lib/esm/resources/external_gateways.d.ts +0 -4
  286. package/lib/esm/resources/external_gateways.js +1 -1
  287. package/lib/esm/resources/external_payments.d.ts +0 -4
  288. package/lib/esm/resources/external_payments.js +1 -1
  289. package/lib/esm/resources/external_promotions.d.ts +0 -4
  290. package/lib/esm/resources/external_promotions.js +1 -1
  291. package/lib/esm/resources/external_tax_calculators.d.ts +0 -4
  292. package/lib/esm/resources/external_tax_calculators.js +1 -1
  293. package/lib/esm/resources/fixed_amount_promotions.d.ts +0 -4
  294. package/lib/esm/resources/fixed_amount_promotions.js +1 -1
  295. package/lib/esm/resources/fixed_price_promotions.d.ts +0 -4
  296. package/lib/esm/resources/fixed_price_promotions.js +1 -1
  297. package/lib/esm/resources/free_gift_promotions.d.ts +0 -4
  298. package/lib/esm/resources/free_gift_promotions.js +1 -1
  299. package/lib/esm/resources/free_shipping_promotions.d.ts +0 -4
  300. package/lib/esm/resources/free_shipping_promotions.js +1 -1
  301. package/lib/esm/resources/geocoders.d.ts +2 -5
  302. package/lib/esm/resources/geocoders.js +1 -1
  303. package/lib/esm/resources/gift_card_recipients.d.ts +0 -4
  304. package/lib/esm/resources/gift_card_recipients.js +1 -1
  305. package/lib/esm/resources/gift_cards.d.ts +0 -4
  306. package/lib/esm/resources/gift_cards.js +1 -1
  307. package/lib/esm/resources/google_geocoders.d.ts +0 -4
  308. package/lib/esm/resources/google_geocoders.js +1 -1
  309. package/lib/esm/resources/imports.d.ts +0 -4
  310. package/lib/esm/resources/imports.js +1 -1
  311. package/lib/esm/resources/in_stock_subscriptions.d.ts +0 -4
  312. package/lib/esm/resources/in_stock_subscriptions.js +1 -1
  313. package/lib/esm/resources/inventory_models.d.ts +0 -4
  314. package/lib/esm/resources/inventory_models.js +1 -1
  315. package/lib/esm/resources/inventory_return_locations.d.ts +0 -4
  316. package/lib/esm/resources/inventory_return_locations.js +1 -1
  317. package/lib/esm/resources/inventory_stock_locations.d.ts +0 -4
  318. package/lib/esm/resources/inventory_stock_locations.js +1 -1
  319. package/lib/esm/resources/line_item_options.d.ts +0 -4
  320. package/lib/esm/resources/line_item_options.js +1 -1
  321. package/lib/esm/resources/line_items.d.ts +0 -4
  322. package/lib/esm/resources/line_items.js +1 -1
  323. package/lib/esm/resources/manual_gateways.d.ts +0 -4
  324. package/lib/esm/resources/manual_gateways.js +1 -1
  325. package/lib/esm/resources/manual_tax_calculators.d.ts +0 -4
  326. package/lib/esm/resources/manual_tax_calculators.js +1 -1
  327. package/lib/esm/resources/markets.d.ts +0 -4
  328. package/lib/esm/resources/markets.js +1 -1
  329. package/lib/esm/resources/merchants.d.ts +0 -4
  330. package/lib/esm/resources/merchants.js +1 -1
  331. package/lib/esm/resources/order_amount_promotion_rules.d.ts +0 -4
  332. package/lib/esm/resources/order_amount_promotion_rules.js +1 -1
  333. package/lib/esm/resources/order_copies.d.ts +0 -4
  334. package/lib/esm/resources/order_copies.js +1 -1
  335. package/lib/esm/resources/order_subscriptions.d.ts +0 -4
  336. package/lib/esm/resources/order_subscriptions.js +1 -1
  337. package/lib/esm/resources/order_validation_rules.d.ts +2 -5
  338. package/lib/esm/resources/order_validation_rules.js +1 -1
  339. package/lib/esm/resources/orders.d.ts +0 -4
  340. package/lib/esm/resources/orders.js +1 -1
  341. package/lib/esm/resources/organization.d.ts +0 -4
  342. package/lib/esm/resources/organization.js +1 -1
  343. package/lib/esm/resources/packages.d.ts +0 -4
  344. package/lib/esm/resources/packages.js +1 -1
  345. package/lib/esm/resources/parcel_line_items.d.ts +0 -4
  346. package/lib/esm/resources/parcel_line_items.js +1 -1
  347. package/lib/esm/resources/parcels.d.ts +0 -4
  348. package/lib/esm/resources/parcels.js +1 -1
  349. package/lib/esm/resources/payment_gateways.d.ts +2 -15
  350. package/lib/esm/resources/payment_gateways.js +1 -1
  351. package/lib/esm/resources/payment_methods.d.ts +3 -4
  352. package/lib/esm/resources/payment_methods.js +1 -1
  353. package/lib/esm/resources/paypal_gateways.d.ts +0 -4
  354. package/lib/esm/resources/paypal_gateways.js +1 -1
  355. package/lib/esm/resources/paypal_payments.d.ts +0 -4
  356. package/lib/esm/resources/paypal_payments.js +1 -1
  357. package/lib/esm/resources/percentage_discount_promotions.d.ts +0 -4
  358. package/lib/esm/resources/percentage_discount_promotions.js +1 -1
  359. package/lib/esm/resources/price_lists.d.ts +0 -4
  360. package/lib/esm/resources/price_lists.js +1 -1
  361. package/lib/esm/resources/prices.d.ts +0 -4
  362. package/lib/esm/resources/prices.js +1 -1
  363. package/lib/esm/resources/promotion_rules.d.ts +2 -5
  364. package/lib/esm/resources/promotion_rules.js +1 -1
  365. package/lib/esm/resources/promotions.d.ts +2 -5
  366. package/lib/esm/resources/promotions.js +1 -1
  367. package/lib/esm/resources/refunds.d.ts +0 -4
  368. package/lib/esm/resources/refunds.js +1 -1
  369. package/lib/esm/resources/return_line_items.d.ts +0 -4
  370. package/lib/esm/resources/return_line_items.js +1 -1
  371. package/lib/esm/resources/returns.d.ts +0 -4
  372. package/lib/esm/resources/returns.js +1 -1
  373. package/lib/esm/resources/shipments.d.ts +0 -4
  374. package/lib/esm/resources/shipments.js +1 -1
  375. package/lib/esm/resources/shipping_categories.d.ts +0 -4
  376. package/lib/esm/resources/shipping_categories.js +1 -1
  377. package/lib/esm/resources/shipping_methods.d.ts +0 -4
  378. package/lib/esm/resources/shipping_methods.js +1 -1
  379. package/lib/esm/resources/shipping_zones.d.ts +0 -4
  380. package/lib/esm/resources/shipping_zones.js +1 -1
  381. package/lib/esm/resources/sku_list_items.d.ts +5 -6
  382. package/lib/esm/resources/sku_list_items.js +1 -1
  383. package/lib/esm/resources/sku_list_promotion_rules.d.ts +0 -4
  384. package/lib/esm/resources/sku_list_promotion_rules.js +1 -1
  385. package/lib/esm/resources/sku_lists.d.ts +0 -4
  386. package/lib/esm/resources/sku_lists.js +1 -1
  387. package/lib/esm/resources/sku_options.d.ts +0 -4
  388. package/lib/esm/resources/sku_options.js +1 -1
  389. package/lib/esm/resources/skus.d.ts +0 -4
  390. package/lib/esm/resources/skus.js +1 -1
  391. package/lib/esm/resources/stock_items.d.ts +0 -4
  392. package/lib/esm/resources/stock_items.js +1 -1
  393. package/lib/esm/resources/stock_line_items.d.ts +0 -4
  394. package/lib/esm/resources/stock_line_items.js +1 -1
  395. package/lib/esm/resources/stock_locations.d.ts +0 -4
  396. package/lib/esm/resources/stock_locations.js +1 -1
  397. package/lib/esm/resources/stock_transfers.d.ts +0 -4
  398. package/lib/esm/resources/stock_transfers.js +1 -1
  399. package/lib/esm/resources/stripe_gateways.d.ts +0 -4
  400. package/lib/esm/resources/stripe_gateways.js +1 -1
  401. package/lib/esm/resources/stripe_payments.d.ts +0 -4
  402. package/lib/esm/resources/stripe_payments.js +1 -1
  403. package/lib/esm/resources/tax_calculators.d.ts +2 -5
  404. package/lib/esm/resources/tax_calculators.js +1 -1
  405. package/lib/esm/resources/tax_categories.d.ts +0 -4
  406. package/lib/esm/resources/tax_categories.js +1 -1
  407. package/lib/esm/resources/tax_rules.d.ts +0 -4
  408. package/lib/esm/resources/tax_rules.js +1 -1
  409. package/lib/esm/resources/taxjar_accounts.d.ts +0 -4
  410. package/lib/esm/resources/taxjar_accounts.js +1 -1
  411. package/lib/esm/resources/transactions.d.ts +2 -5
  412. package/lib/esm/resources/transactions.js +1 -1
  413. package/lib/esm/resources/voids.d.ts +0 -4
  414. package/lib/esm/resources/voids.js +1 -1
  415. package/lib/esm/resources/webhooks.d.ts +0 -4
  416. package/lib/esm/resources/webhooks.js +1 -1
  417. package/lib/esm/resources/wire_transfers.d.ts +0 -4
  418. package/lib/esm/resources/wire_transfers.js +1 -1
  419. package/lib/esm/static.js +1 -1
  420. package/lib/esm/util.js +1 -1
  421. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  422. package/lib/tsconfig.tsbuildinfo +1 -1
  423. 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 { Address } from './addresses';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Merchants extends ApiResource{async list(e,t){return this.resources.list({type:Merchants.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Merchants.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Merchants.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Merchants.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Merchants.TYPE,id:e},t)}isMerchant(e){return e.type&&e.type===Merchants.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Merchants.TYPE}:{id:e.id,type:Merchants.TYPE}}type(){return Merchants.TYPE}}Merchants.TYPE="merchants";export default Merchants;
1
+ import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isMerchant(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="merchants";export default s;
@@ -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';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class OrderAmountPromotionRules extends ApiResource{async list(e,r){return this.resources.list({type:OrderAmountPromotionRules.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderAmountPromotionRules.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:OrderAmountPromotionRules.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:OrderAmountPromotionRules.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:OrderAmountPromotionRules.TYPE,id:e},r)}isOrderAmountPromotionRule(e){return e.type&&e.type===OrderAmountPromotionRules.TYPE}relationship(e){return typeof e==="string"?{id:e,type:OrderAmountPromotionRules.TYPE}:{id:e.id,type:OrderAmountPromotionRules.TYPE}}type(){return OrderAmountPromotionRules.TYPE}}OrderAmountPromotionRules.TYPE="order_amount_promotion_rules";export default OrderAmountPromotionRules;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}isOrderAmountPromotionRule(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="order_amount_promotion_rules";export default r;
@@ -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, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Order } from './orders';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class OrderCopies extends ApiResource{async list(e,r){return this.resources.list({type:OrderCopies.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderCopies.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:OrderCopies.TYPE,id:e},r,s)}async delete(e,r){await this.resources.delete({type:OrderCopies.TYPE,id:e},r)}isOrderCopy(e){return e.type&&e.type===OrderCopies.TYPE}relationship(e){return typeof e==="string"?{id:e,type:OrderCopies.TYPE}:{id:e.id,type:OrderCopies.TYPE}}type(){return OrderCopies.TYPE}}OrderCopies.TYPE="order_copies";export default OrderCopies;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}isOrderCopy(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="order_copies";export default r;
@@ -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
- import{ApiResource}from"../resource";class OrderSubscriptions extends ApiResource{async list(r,e){return this.resources.list({type:OrderSubscriptions.TYPE},r,e)}async create(r,e,s){return this.resources.create(Object.assign(Object.assign({},r),{type:OrderSubscriptions.TYPE}),e,s)}async retrieve(r,e,s){return this.resources.retrieve({type:OrderSubscriptions.TYPE,id:r},e,s)}async update(r,e,s){return this.resources.update(Object.assign(Object.assign({},r),{type:OrderSubscriptions.TYPE}),e,s)}async delete(r,e){await this.resources.delete({type:OrderSubscriptions.TYPE,id:r},e)}isOrderSubscription(r){return r.type&&r.type===OrderSubscriptions.TYPE}relationship(r){return typeof r==="string"?{id:r,type:OrderSubscriptions.TYPE}:{id:r.id,type:OrderSubscriptions.TYPE}}type(){return OrderSubscriptions.TYPE}}OrderSubscriptions.TYPE="order_subscriptions";export default OrderSubscriptions;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isOrderSubscription(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="order_subscriptions";export default r;
@@ -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
- import{ApiResource}from"../resource";class OrderValidationRules extends ApiResource{async list(e,r){return this.resources.list({type:OrderValidationRules.TYPE},e,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";export default OrderValidationRules;
1
+ import{ApiResource as s}from"../resource";class r extends s{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async retrieve(e,t,i){return this.resources.retrieve({type:r.TYPE,id:e},t,i)}isOrderValidationRule(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="order_validation_rules";export default r;
@@ -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
- import{ApiResource}from"../resource";class Orders extends ApiResource{async list(e,r){return this.resources.list({type:Orders.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Orders.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:Orders.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Orders.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:Orders.TYPE,id:e},r)}isOrder(e){return e.type&&e.type===Orders.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Orders.TYPE}:{id:e.id,type:Orders.TYPE}}type(){return Orders.TYPE}}Orders.TYPE="orders";export default Orders;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isOrder(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="orders";export default r;
@@ -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
- import{ApiResource}from"../resource";class Organizations extends ApiResource{async retrieve(i,r){return this.resources.singleton({type:Organizations.TYPE},i,r)}isOrganization(i){return i.type&&i.type===Organizations.TYPE}relationship(i){return typeof i==="string"?{id:i,type:Organizations.TYPE}:{id:i.id,type:Organizations.TYPE}}type(){return Organizations.TYPE}}Organizations.TYPE="organization";export default Organizations;
1
+ import{ApiResource as i}from"../resource";class r extends i{async retrieve(e,t){return this.resources.singleton({type:r.TYPE},e,t)}isOrganization(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="organization";export default r;
@@ -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';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Packages extends ApiResource{async list(e,s){return this.resources.list({type:Packages.TYPE},e,s)}async create(e,s,a){return this.resources.create(Object.assign(Object.assign({},e),{type:Packages.TYPE}),s,a)}async retrieve(e,s,a){return this.resources.retrieve({type:Packages.TYPE,id:e},s,a)}async update(e,s,a){return this.resources.update(Object.assign(Object.assign({},e),{type:Packages.TYPE}),s,a)}async delete(e,s){await this.resources.delete({type:Packages.TYPE,id:e},s)}isPackage(e){return e.type&&e.type===Packages.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Packages.TYPE}:{id:e.id,type:Packages.TYPE}}type(){return Packages.TYPE}}Packages.TYPE="packages";export default Packages;
1
+ import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isPackage(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="packages";export default s;
@@ -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';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class ParcelLineItems extends ApiResource{async list(e,t){return this.resources.list({type:ParcelLineItems.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ParcelLineItems.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ParcelLineItems.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ParcelLineItems.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ParcelLineItems.TYPE,id:e},t)}isParcelLineItem(e){return e.type&&e.type===ParcelLineItems.TYPE}relationship(e){return typeof e==="string"?{id:e,type:ParcelLineItems.TYPE}:{id:e.id,type:ParcelLineItems.TYPE}}type(){return ParcelLineItems.TYPE}}ParcelLineItems.TYPE="parcel_line_items";export default ParcelLineItems;
1
+ import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isParcelLineItem(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="parcel_line_items";export default t;
@@ -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';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Parcels extends ApiResource{async list(e,r){return this.resources.list({type:Parcels.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Parcels.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:Parcels.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Parcels.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:Parcels.TYPE,id:e},r)}isParcel(e){return e.type&&e.type===Parcels.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Parcels.TYPE}:{id:e.id,type:Parcels.TYPE}}type(){return Parcels.TYPE}}Parcels.TYPE="parcels";export default Parcels;
1
+ import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isParcel(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="parcels";export default s;
@@ -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
- import{ApiResource}from"../resource";class PaymentGateways extends ApiResource{async list(e,t){return this.resources.list({type:PaymentGateways.TYPE},e,t)}async create(e,t,a){return this.resources.create(Object.assign(Object.assign({},e),{type:PaymentGateways.TYPE}),t,a)}async retrieve(e,t,a){return this.resources.retrieve({type:PaymentGateways.TYPE,id:e},t,a)}async update(e,t,a){return this.resources.update(Object.assign(Object.assign({},e),{type:PaymentGateways.TYPE}),t,a)}async delete(e,t){await this.resources.delete({type:PaymentGateways.TYPE,id:e},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";export default PaymentGateways;
1
+ import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}isPaymentGateway(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="payment_gateways";export default t;
@@ -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
31
  market?: MarketRel;
34
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
- import{ApiResource}from"../resource";class PaymentMethods extends ApiResource{async list(e,t){return this.resources.list({type:PaymentMethods.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:PaymentMethods.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:PaymentMethods.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:PaymentMethods.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:PaymentMethods.TYPE,id:e},t)}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";export default PaymentMethods;
1
+ import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isPaymentMethod(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="payment_methods";export default t;
@@ -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
- import{ApiResource}from"../resource";class PaypalGateways extends ApiResource{async list(e,a){return this.resources.list({type:PaypalGateways.TYPE},e,a)}async create(e,a,t){return this.resources.create(Object.assign(Object.assign({},e),{type:PaypalGateways.TYPE}),a,t)}async retrieve(e,a,t){return this.resources.retrieve({type:PaypalGateways.TYPE,id:e},a,t)}async update(e,a,t){return this.resources.update(Object.assign(Object.assign({},e),{type:PaypalGateways.TYPE}),a,t)}async delete(e,a){await this.resources.delete({type:PaypalGateways.TYPE,id:e},a)}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";export default PaypalGateways;
1
+ import{ApiResource as a}from"../resource";class s extends a{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}isPaypalGateway(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="paypal_gateways";export default s;
@@ -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';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class PaypalPayments extends ApiResource{async list(e,a){return this.resources.list({type:PaypalPayments.TYPE},e,a)}async create(e,a,t){return this.resources.create(Object.assign(Object.assign({},e),{type:PaypalPayments.TYPE}),a,t)}async retrieve(e,a,t){return this.resources.retrieve({type:PaypalPayments.TYPE,id:e},a,t)}async update(e,a,t){return this.resources.update(Object.assign(Object.assign({},e),{type:PaypalPayments.TYPE}),a,t)}async delete(e,a){await this.resources.delete({type:PaypalPayments.TYPE,id:e},a)}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";export default PaypalPayments;
1
+ import{ApiResource as i}from"../resource";class s extends i{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}isPaypalPayment(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="paypal_payments";export default s;
@@ -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
- import{ApiResource}from"../resource";class PercentageDiscountPromotions extends ApiResource{async list(e,t){return this.resources.list({type:PercentageDiscountPromotions.TYPE},e,t)}async create(e,t,o){return this.resources.create(Object.assign(Object.assign({},e),{type:PercentageDiscountPromotions.TYPE}),t,o)}async retrieve(e,t,o){return this.resources.retrieve({type:PercentageDiscountPromotions.TYPE,id:e},t,o)}async update(e,t,o){return this.resources.update(Object.assign(Object.assign({},e),{type:PercentageDiscountPromotions.TYPE}),t,o)}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";export default PercentageDiscountPromotions;
1
+ import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isPercentageDiscountPromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="percentage_discount_promotions";export default t;
@@ -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 +1 @@
1
- import{ApiResource}from"../resource";class PriceLists extends ApiResource{async list(e,s){return this.resources.list({type:PriceLists.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:PriceLists.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:PriceLists.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:PriceLists.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:PriceLists.TYPE,id:e},s)}isPriceList(e){return e.type&&e.type===PriceLists.TYPE}relationship(e){return typeof e==="string"?{id:e,type:PriceLists.TYPE}:{id:e.id,type:PriceLists.TYPE}}type(){return PriceLists.TYPE}}PriceLists.TYPE="price_lists";export default PriceLists;
1
+ import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isPriceList(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="price_lists";export default s;
@@ -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';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Prices extends ApiResource{async list(e,r){return this.resources.list({type:Prices.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Prices.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:Prices.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Prices.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:Prices.TYPE,id:e},r)}isPrice(e){return e.type&&e.type===Prices.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Prices.TYPE}:{id:e.id,type:Prices.TYPE}}type(){return Prices.TYPE}}Prices.TYPE="prices";export default Prices;
1
+ import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isPrice(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="prices";export default s;
@@ -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
- import{ApiResource}from"../resource";class PromotionRules extends ApiResource{async list(o,e){return this.resources.list({type:PromotionRules.TYPE},o,e)}isPromotionRule(o){return o.type&&o.type===PromotionRules.TYPE}relationship(o){return typeof o==="string"?{id:o,type:PromotionRules.TYPE}:{id:o.id,type:PromotionRules.TYPE}}type(){return PromotionRules.TYPE}}PromotionRules.TYPE="promotion_rules";export default PromotionRules;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}isPromotionRule(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="promotion_rules";export default r;
@@ -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
- import{ApiResource}from"../resource";class Promotions extends ApiResource{async list(o,t){return this.resources.list({type:Promotions.TYPE},o,t)}isPromotion(o){return o.type&&o.type===Promotions.TYPE}relationship(o){return typeof o==="string"?{id:o,type:Promotions.TYPE}:{id:o.id,type:Promotions.TYPE}}type(){return Promotions.TYPE}}Promotions.TYPE="promotions";export default Promotions;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}isPromotion(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="promotions";export default r;
@@ -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 +1 @@
1
- import{ApiResource}from"../resource";class Refunds extends ApiResource{async list(e,s){return this.resources.list({type:Refunds.TYPE},e,s)}async retrieve(e,s,r){return this.resources.retrieve({type:Refunds.TYPE,id:e},s,r)}isRefund(e){return e.type&&e.type===Refunds.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Refunds.TYPE}:{id:e.id,type:Refunds.TYPE}}type(){return Refunds.TYPE}}Refunds.TYPE="refunds";export default Refunds;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}isRefund(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="refunds";export default r;
@@ -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';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class ReturnLineItems extends ApiResource{async list(e,t){return this.resources.list({type:ReturnLineItems.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ReturnLineItems.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ReturnLineItems.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ReturnLineItems.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ReturnLineItems.TYPE,id:e},t)}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";export default ReturnLineItems;
1
+ import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isReturnLineItem(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="return_line_items";export default t;
@@ -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';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Returns extends ApiResource{async list(e,t){return this.resources.list({type:Returns.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Returns.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Returns.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Returns.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Returns.TYPE,id:e},t)}isReturn(e){return e.type&&e.type===Returns.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Returns.TYPE}:{id:e.id,type:Returns.TYPE}}type(){return Returns.TYPE}}Returns.TYPE="returns";export default Returns;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isReturn(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="returns";export default r;
@@ -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 +1 @@
1
- import{ApiResource}from"../resource";class Shipments extends ApiResource{async list(e,t){return this.resources.list({type:Shipments.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:Shipments.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Shipments.TYPE}),t,s)}isShipment(e){return e.type&&e.type===Shipments.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Shipments.TYPE}:{id:e.id,type:Shipments.TYPE}}type(){return Shipments.TYPE}}Shipments.TYPE="shipments";export default Shipments;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}isShipment(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="shipments";export default r;
@@ -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
- import{ApiResource}from"../resource";class ShippingCategories extends ApiResource{async list(e,i){return this.resources.list({type:ShippingCategories.TYPE},e,i)}async create(e,i,t){return this.resources.create(Object.assign(Object.assign({},e),{type:ShippingCategories.TYPE}),i,t)}async retrieve(e,i,t){return this.resources.retrieve({type:ShippingCategories.TYPE,id:e},i,t)}async update(e,i,t){return this.resources.update(Object.assign(Object.assign({},e),{type:ShippingCategories.TYPE}),i,t)}async delete(e,i){await this.resources.delete({type:ShippingCategories.TYPE,id:e},i)}isShippingCategory(e){return e.type&&e.type===ShippingCategories.TYPE}relationship(e){return typeof e==="string"?{id:e,type:ShippingCategories.TYPE}:{id:e.id,type:ShippingCategories.TYPE}}type(){return ShippingCategories.TYPE}}ShippingCategories.TYPE="shipping_categories";export default ShippingCategories;
1
+ import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isShippingCategory(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="shipping_categories";export default s;
@@ -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
- import{ApiResource}from"../resource";class ShippingMethods extends ApiResource{async list(e,t){return this.resources.list({type:ShippingMethods.TYPE},e,t)}async create(e,t,i){return this.resources.create(Object.assign(Object.assign({},e),{type:ShippingMethods.TYPE}),t,i)}async retrieve(e,t,i){return this.resources.retrieve({type:ShippingMethods.TYPE,id:e},t,i)}async update(e,t,i){return this.resources.update(Object.assign(Object.assign({},e),{type:ShippingMethods.TYPE}),t,i)}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";export default ShippingMethods;
1
+ import{ApiResource as i}from"../resource";class s extends i{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}isShippingMethod(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="shipping_methods";export default s;
@@ -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 +1 @@
1
- import{ApiResource}from"../resource";class ShippingZones extends ApiResource{async list(e,i){return this.resources.list({type:ShippingZones.TYPE},e,i)}async create(e,i,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ShippingZones.TYPE}),i,s)}async retrieve(e,i,s){return this.resources.retrieve({type:ShippingZones.TYPE,id:e},i,s)}async update(e,i,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ShippingZones.TYPE}),i,s)}async delete(e,i){await this.resources.delete({type:ShippingZones.TYPE,id:e},i)}isShippingZone(e){return e.type&&e.type===ShippingZones.TYPE}relationship(e){return typeof e==="string"?{id:e,type:ShippingZones.TYPE}:{id:e.id,type:ShippingZones.TYPE}}type(){return ShippingZones.TYPE}}ShippingZones.TYPE="shipping_zones";export default ShippingZones;
1
+ import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isShippingZone(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="shipping_zones";export default s;
@@ -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;
22
+ position?: number;
23
+ sku_code?: string;
24
+ quantity?: number;
27
25
  sku_list?: SkuListRel;
28
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 +1 @@
1
- import{ApiResource}from"../resource";class SkuListItems extends ApiResource{async list(e,t){return this.resources.list({type:SkuListItems.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:SkuListItems.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:SkuListItems.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:SkuListItems.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:SkuListItems.TYPE,id:e},t)}isSkuListItem(e){return e.type&&e.type===SkuListItems.TYPE}relationship(e){return typeof e==="string"?{id:e,type:SkuListItems.TYPE}:{id:e.id,type:SkuListItems.TYPE}}type(){return SkuListItems.TYPE}}SkuListItems.TYPE="sku_list_items";export default SkuListItems;
1
+ import{ApiResource as r}from"../resource";class t extends r{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,i){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,i)}async retrieve(e,s,i){return this.resources.retrieve({type:t.TYPE,id:e},s,i)}async update(e,s,i){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,i)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isSkuListItem(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="sku_list_items";export default t;
@@ -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';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class SkuListPromotionRules extends ApiResource{async list(e,t){return this.resources.list({type:SkuListPromotionRules.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:SkuListPromotionRules.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:SkuListPromotionRules.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:SkuListPromotionRules.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:SkuListPromotionRules.TYPE,id:e},t)}isSkuListPromotionRule(e){return e.type&&e.type===SkuListPromotionRules.TYPE}relationship(e){return typeof e==="string"?{id:e,type:SkuListPromotionRules.TYPE}:{id:e.id,type:SkuListPromotionRules.TYPE}}type(){return SkuListPromotionRules.TYPE}}SkuListPromotionRules.TYPE="sku_list_promotion_rules";export default SkuListPromotionRules;
1
+ import{ApiResource as i}from"../resource";class s extends i{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}isSkuListPromotionRule(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="sku_list_promotion_rules";export default s;
@@ -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';