@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 { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
@@ -13,6 +9,7 @@ declare type CouponCodesPromotionRuleRel = ResourceId & {
13
9
  };
14
10
  interface Coupon extends Resource {
15
11
  code?: string;
12
+ customer_single_use?: boolean;
16
13
  usage_limit?: number;
17
14
  usage_count?: number;
18
15
  recipient_email?: string;
@@ -20,12 +17,14 @@ interface Coupon extends Resource {
20
17
  }
21
18
  interface CouponCreate extends ResourceCreate {
22
19
  code: string;
20
+ customer_single_use?: boolean;
23
21
  usage_limit: number;
24
22
  recipient_email?: string;
25
23
  promotion_rule?: CouponCodesPromotionRuleRel;
26
24
  }
27
25
  interface CouponUpdate extends ResourceUpdate {
28
26
  code?: string;
27
+ customer_single_use?: boolean;
29
28
  usage_limit?: number;
30
29
  recipient_email?: string;
31
30
  promotion_rule?: CouponCodesPromotionRuleRel;
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Coupons extends ApiResource{async list(e,s){return this.resources.list({type:Coupons.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:Coupons.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:Coupons.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:Coupons.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:Coupons.TYPE,id:e},s)}isCoupon(e){return e.type&&e.type===Coupons.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Coupons.TYPE}:{id:e.id,type:Coupons.TYPE}}type(){return Coupons.TYPE}}Coupons.TYPE="coupons";export default Coupons;
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)}isCoupon(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="coupons";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 { Customer } from './customers';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class CustomerAddresses extends ApiResource{async list(e,s){return this.resources.list({type:CustomerAddresses.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerAddresses.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:CustomerAddresses.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerAddresses.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:CustomerAddresses.TYPE,id:e},s)}isCustomerAddress(e){return e.type&&e.type===CustomerAddresses.TYPE}relationship(e){return typeof e==="string"?{id:e,type:CustomerAddresses.TYPE}:{id:e.id,type:CustomerAddresses.TYPE}}type(){return CustomerAddresses.TYPE}}CustomerAddresses.TYPE="customer_addresses";export default CustomerAddresses;
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)}isCustomerAddress(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="customer_addresses";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 { Customer } from './customers';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class CustomerGroups extends ApiResource{async list(e,r){return this.resources.list({type:CustomerGroups.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerGroups.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:CustomerGroups.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerGroups.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:CustomerGroups.TYPE,id:e},r)}isCustomerGroup(e){return e.type&&e.type===CustomerGroups.TYPE}relationship(e){return typeof e==="string"?{id:e,type:CustomerGroups.TYPE}:{id:e.id,type:CustomerGroups.TYPE}}type(){return CustomerGroups.TYPE}}CustomerGroups.TYPE="customer_groups";export default CustomerGroups;
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)}isCustomerGroup(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="customer_groups";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 { Customer } from './customers';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class CustomerPasswordResets extends ApiResource{async list(s,e){return this.resources.list({type:CustomerPasswordResets.TYPE},s,e)}async create(s,e,t){return this.resources.create(Object.assign(Object.assign({},s),{type:CustomerPasswordResets.TYPE}),e,t)}async retrieve(s,e,t){return this.resources.retrieve({type:CustomerPasswordResets.TYPE,id:s},e,t)}async update(s,e,t){return this.resources.update(Object.assign(Object.assign({},s),{type:CustomerPasswordResets.TYPE}),e,t)}async delete(s,e){await this.resources.delete({type:CustomerPasswordResets.TYPE,id:s},e)}isCustomerPasswordReset(s){return s.type&&s.type===CustomerPasswordResets.TYPE}relationship(s){return typeof s==="string"?{id:s,type:CustomerPasswordResets.TYPE}:{id:s.id,type:CustomerPasswordResets.TYPE}}type(){return CustomerPasswordResets.TYPE}}CustomerPasswordResets.TYPE="customer_password_resets";export default CustomerPasswordResets;
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)}isCustomerPasswordReset(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="customer_password_resets";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 { Customer } from './customers';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class CustomerPaymentSources extends ApiResource{async list(e,t){return this.resources.list({type:CustomerPaymentSources.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerPaymentSources.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:CustomerPaymentSources.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerPaymentSources.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:CustomerPaymentSources.TYPE,id:e},t)}isCustomerPaymentSource(e){return e.type&&e.type===CustomerPaymentSources.TYPE}relationship(e){return typeof e==="string"?{id:e,type:CustomerPaymentSources.TYPE}:{id:e.id,type:CustomerPaymentSources.TYPE}}type(){return CustomerPaymentSources.TYPE}}CustomerPaymentSources.TYPE="customer_payment_sources";export default CustomerPaymentSources;
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)}isCustomerPaymentSource(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="customer_payment_sources";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 { Customer } from './customers';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class CustomerSubscriptions extends ApiResource{async list(s,e){return this.resources.list({type:CustomerSubscriptions.TYPE},s,e)}async create(s,e,t){return this.resources.create(Object.assign(Object.assign({},s),{type:CustomerSubscriptions.TYPE}),e,t)}async retrieve(s,e,t){return this.resources.retrieve({type:CustomerSubscriptions.TYPE,id:s},e,t)}async update(s,e,t){return this.resources.update(Object.assign(Object.assign({},s),{type:CustomerSubscriptions.TYPE}),e,t)}async delete(s,e){await this.resources.delete({type:CustomerSubscriptions.TYPE,id:s},e)}isCustomerSubscription(s){return s.type&&s.type===CustomerSubscriptions.TYPE}relationship(s){return typeof s==="string"?{id:s,type:CustomerSubscriptions.TYPE}:{id:s.id,type:CustomerSubscriptions.TYPE}}type(){return CustomerSubscriptions.TYPE}}CustomerSubscriptions.TYPE="customer_subscriptions";export default CustomerSubscriptions;
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)}isCustomerSubscription(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="customer_subscriptions";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 { CustomerGroup } from './customer_groups';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Customers extends ApiResource{async list(e,s){return this.resources.list({type:Customers.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:Customers.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:Customers.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:Customers.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:Customers.TYPE,id:e},s)}isCustomer(e){return e.type&&e.type===Customers.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Customers.TYPE}:{id:e.id,type:Customers.TYPE}}type(){return Customers.TYPE}}Customers.TYPE="customers";export default Customers;
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)}isCustomer(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="customers";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 { StockLocation } from './stock_locations';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class DeliveryLeadTimes extends ApiResource{async list(e,i){return this.resources.list({type:DeliveryLeadTimes.TYPE},e,i)}async create(e,i,r){return this.resources.create(Object.assign(Object.assign({},e),{type:DeliveryLeadTimes.TYPE}),i,r)}async retrieve(e,i,r){return this.resources.retrieve({type:DeliveryLeadTimes.TYPE,id:e},i,r)}async update(e,i,r){return this.resources.update(Object.assign(Object.assign({},e),{type:DeliveryLeadTimes.TYPE}),i,r)}async delete(e,i){await this.resources.delete({type:DeliveryLeadTimes.TYPE,id:e},i)}isDeliveryLeadTime(e){return e.type&&e.type===DeliveryLeadTimes.TYPE}relationship(e){return typeof e==="string"?{id:e,type:DeliveryLeadTimes.TYPE}:{id:e.id,type:DeliveryLeadTimes.TYPE}}type(){return DeliveryLeadTimes.TYPE}}DeliveryLeadTimes.TYPE="delivery_lead_times";export default DeliveryLeadTimes;
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)}isDeliveryLeadTime(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="delivery_lead_times";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, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Webhook } from './webhooks';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class EventCallbacks extends ApiResource{async list(e,t){return this.resources.list({type:EventCallbacks.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:EventCallbacks.TYPE,id:e},t,s)}isEventCallback(e){return e.type&&e.type===EventCallbacks.TYPE}relationship(e){return typeof e==="string"?{id:e,type:EventCallbacks.TYPE}:{id:e.id,type:EventCallbacks.TYPE}}type(){return EventCallbacks.TYPE}}EventCallbacks.TYPE="event_callbacks";export default EventCallbacks;
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)}isEventCallback(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="event_callbacks";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 ExternalGateways extends ApiResource{async list(e,t){return this.resources.list({type:ExternalGateways.TYPE},e,t)}async create(e,t,a){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalGateways.TYPE}),t,a)}async retrieve(e,t,a){return this.resources.retrieve({type:ExternalGateways.TYPE,id:e},t,a)}async update(e,t,a){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalGateways.TYPE}),t,a)}async delete(e,t){await this.resources.delete({type:ExternalGateways.TYPE,id:e},t)}isExternalGateway(e){return e.type&&e.type===ExternalGateways.TYPE}relationship(e){return typeof e==="string"?{id:e,type:ExternalGateways.TYPE}:{id:e.id,type:ExternalGateways.TYPE}}type(){return ExternalGateways.TYPE}}ExternalGateways.TYPE="external_gateways";export default ExternalGateways;
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)}isExternalGateway(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="external_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 { Order } from './orders';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class ExternalPayments extends ApiResource{async list(e,t){return this.resources.list({type:ExternalPayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalPayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ExternalPayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalPayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ExternalPayments.TYPE,id:e},t)}isExternalPayment(e){return e.type&&e.type===ExternalPayments.TYPE}relationship(e){return typeof e==="string"?{id:e,type:ExternalPayments.TYPE}:{id:e.id,type:ExternalPayments.TYPE}}type(){return ExternalPayments.TYPE}}ExternalPayments.TYPE="external_payments";export default ExternalPayments;
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)}isExternalPayment(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="external_payments";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';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class ExternalPromotions extends ApiResource{async list(e,t){return this.resources.list({type:ExternalPromotions.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalPromotions.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ExternalPromotions.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalPromotions.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ExternalPromotions.TYPE,id:e},t)}isExternalPromotion(e){return e.type&&e.type===ExternalPromotions.TYPE}relationship(e){return typeof e==="string"?{id:e,type:ExternalPromotions.TYPE}:{id:e.id,type:ExternalPromotions.TYPE}}type(){return ExternalPromotions.TYPE}}ExternalPromotions.TYPE="external_promotions";export default ExternalPromotions;
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)}isExternalPromotion(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="external_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, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { TaxCategory } from './tax_categories';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class ExternalTaxCalculators extends ApiResource{async list(e,a){return this.resources.list({type:ExternalTaxCalculators.TYPE},e,a)}async create(e,a,t){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalTaxCalculators.TYPE}),a,t)}async retrieve(e,a,t){return this.resources.retrieve({type:ExternalTaxCalculators.TYPE,id:e},a,t)}async update(e,a,t){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalTaxCalculators.TYPE}),a,t)}async delete(e,a){await this.resources.delete({type:ExternalTaxCalculators.TYPE,id:e},a)}isExternalTaxCalculator(e){return e.type&&e.type===ExternalTaxCalculators.TYPE}relationship(e){return typeof e==="string"?{id:e,type:ExternalTaxCalculators.TYPE}:{id:e.id,type:ExternalTaxCalculators.TYPE}}type(){return ExternalTaxCalculators.TYPE}}ExternalTaxCalculators.TYPE="external_tax_calculators";export default ExternalTaxCalculators;
1
+ import{ApiResource as a}from"../resource";class t extends a{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)}isExternalTaxCalculator(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="external_tax_calculators";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';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class FixedAmountPromotions extends ApiResource{async list(e,t){return this.resources.list({type:FixedAmountPromotions.TYPE},e,t)}async create(e,t,o){return this.resources.create(Object.assign(Object.assign({},e),{type:FixedAmountPromotions.TYPE}),t,o)}async retrieve(e,t,o){return this.resources.retrieve({type:FixedAmountPromotions.TYPE,id:e},t,o)}async update(e,t,o){return this.resources.update(Object.assign(Object.assign({},e),{type:FixedAmountPromotions.TYPE}),t,o)}async delete(e,t){await this.resources.delete({type:FixedAmountPromotions.TYPE,id:e},t)}isFixedAmountPromotion(e){return e.type&&e.type===FixedAmountPromotions.TYPE}relationship(e){return typeof e==="string"?{id:e,type:FixedAmountPromotions.TYPE}:{id:e.id,type:FixedAmountPromotions.TYPE}}type(){return FixedAmountPromotions.TYPE}}FixedAmountPromotions.TYPE="fixed_amount_promotions";export default FixedAmountPromotions;
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)}isFixedAmountPromotion(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="fixed_amount_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 { Market } from './markets';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class FixedPricePromotions extends ApiResource{async list(e,i){return this.resources.list({type:FixedPricePromotions.TYPE},e,i)}async create(e,i,r){return this.resources.create(Object.assign(Object.assign({},e),{type:FixedPricePromotions.TYPE}),i,r)}async retrieve(e,i,r){return this.resources.retrieve({type:FixedPricePromotions.TYPE,id:e},i,r)}async update(e,i,r){return this.resources.update(Object.assign(Object.assign({},e),{type:FixedPricePromotions.TYPE}),i,r)}async delete(e,i){await this.resources.delete({type:FixedPricePromotions.TYPE,id:e},i)}isFixedPricePromotion(e){return e.type&&e.type===FixedPricePromotions.TYPE}relationship(e){return typeof e==="string"?{id:e,type:FixedPricePromotions.TYPE}:{id:e.id,type:FixedPricePromotions.TYPE}}type(){return FixedPricePromotions.TYPE}}FixedPricePromotions.TYPE="fixed_price_promotions";export default FixedPricePromotions;
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)}isFixedPricePromotion(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="fixed_price_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, 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 FreeGiftPromotions extends ApiResource{async list(e,t){return this.resources.list({type:FreeGiftPromotions.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:FreeGiftPromotions.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:FreeGiftPromotions.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:FreeGiftPromotions.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:FreeGiftPromotions.TYPE,id:e},t)}isFreeGiftPromotion(e){return e.type&&e.type===FreeGiftPromotions.TYPE}relationship(e){return typeof e==="string"?{id:e,type:FreeGiftPromotions.TYPE}:{id:e.id,type:FreeGiftPromotions.TYPE}}type(){return FreeGiftPromotions.TYPE}}FreeGiftPromotions.TYPE="free_gift_promotions";export default FreeGiftPromotions;
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)}isFreeGiftPromotion(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="free_gift_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, 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 FreeShippingPromotions extends ApiResource{async list(e,i){return this.resources.list({type:FreeShippingPromotions.TYPE},e,i)}async create(e,i,r){return this.resources.create(Object.assign(Object.assign({},e),{type:FreeShippingPromotions.TYPE}),i,r)}async retrieve(e,i,r){return this.resources.retrieve({type:FreeShippingPromotions.TYPE,id:e},i,r)}async update(e,i,r){return this.resources.update(Object.assign(Object.assign({},e),{type:FreeShippingPromotions.TYPE}),i,r)}async delete(e,i){await this.resources.delete({type:FreeShippingPromotions.TYPE,id:e},i)}isFreeShippingPromotion(e){return e.type&&e.type===FreeShippingPromotions.TYPE}relationship(e){return typeof e==="string"?{id:e,type:FreeShippingPromotions.TYPE}:{id:e.id,type:FreeShippingPromotions.TYPE}}type(){return FreeShippingPromotions.TYPE}}FreeShippingPromotions.TYPE="free_shipping_promotions";export default FreeShippingPromotions;
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)}isFreeShippingPromotion(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="free_shipping_promotions";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 { Address } from './addresses';
8
4
  import { Attachment } from './attachments';
9
5
  declare type GeocoderRel = ResourceId & {
@@ -17,6 +13,7 @@ interface Geocoder extends Resource {
17
13
  declare class Geocoders extends ApiResource {
18
14
  static readonly TYPE: 'geocoders';
19
15
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Geocoder>>;
16
+ retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Geocoder>;
20
17
  isGeocoder(resource: any): resource is Geocoder;
21
18
  relationship(id: string | ResourceId): GeocoderRel;
22
19
  type(): string;
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Geocoders extends ApiResource{async list(e,o){return this.resources.list({type:Geocoders.TYPE},e,o)}isGeocoder(e){return e.type&&e.type===Geocoders.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Geocoders.TYPE}:{id:e.id,type:Geocoders.TYPE}}type(){return Geocoders.TYPE}}Geocoders.TYPE="geocoders";export default Geocoders;
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)}isGeocoder(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="geocoders";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 { Customer } from './customers';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class GiftCardRecipients extends ApiResource{async list(e,t){return this.resources.list({type:GiftCardRecipients.TYPE},e,t)}async create(e,t,i){return this.resources.create(Object.assign(Object.assign({},e),{type:GiftCardRecipients.TYPE}),t,i)}async retrieve(e,t,i){return this.resources.retrieve({type:GiftCardRecipients.TYPE,id:e},t,i)}async update(e,t,i){return this.resources.update(Object.assign(Object.assign({},e),{type:GiftCardRecipients.TYPE}),t,i)}async delete(e,t){await this.resources.delete({type:GiftCardRecipients.TYPE,id:e},t)}isGiftCardRecipient(e){return e.type&&e.type===GiftCardRecipients.TYPE}relationship(e){return typeof e==="string"?{id:e,type:GiftCardRecipients.TYPE}:{id:e.id,type:GiftCardRecipients.TYPE}}type(){return GiftCardRecipients.TYPE}}GiftCardRecipients.TYPE="gift_card_recipients";export default GiftCardRecipients;
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)}isGiftCardRecipient(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="gift_card_recipients";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';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class GiftCards extends ApiResource{async list(e,t){return this.resources.list({type:GiftCards.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:GiftCards.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:GiftCards.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:GiftCards.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:GiftCards.TYPE,id:e},t)}isGiftCard(e){return e.type&&e.type===GiftCards.TYPE}relationship(e){return typeof e==="string"?{id:e,type:GiftCards.TYPE}:{id:e.id,type:GiftCards.TYPE}}type(){return GiftCards.TYPE}}GiftCards.TYPE="gift_cards";export default GiftCards;
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)}isGiftCard(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="gift_cards";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 { Address } from './addresses';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class GoogleGeocoders extends ApiResource{async list(e,o){return this.resources.list({type:GoogleGeocoders.TYPE},e,o)}async create(e,o,r){return this.resources.create(Object.assign(Object.assign({},e),{type:GoogleGeocoders.TYPE}),o,r)}async retrieve(e,o,r){return this.resources.retrieve({type:GoogleGeocoders.TYPE,id:e},o,r)}async update(e,o,r){return this.resources.update(Object.assign(Object.assign({},e),{type:GoogleGeocoders.TYPE}),o,r)}async delete(e,o){await this.resources.delete({type:GoogleGeocoders.TYPE,id:e},o)}isGoogleGeocoder(e){return e.type&&e.type===GoogleGeocoders.TYPE}relationship(e){return typeof e==="string"?{id:e,type:GoogleGeocoders.TYPE}:{id:e.id,type:GoogleGeocoders.TYPE}}type(){return GoogleGeocoders.TYPE}}GoogleGeocoders.TYPE="google_geocoders";export default GoogleGeocoders;
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)}isGoogleGeocoder(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="google_geocoders";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, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  declare type ImportRel = ResourceId & {
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Imports extends ApiResource{async list(e,t){return this.resources.list({type:Imports.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Imports.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Imports.TYPE,id:e},t,r)}async delete(e,t){await this.resources.delete({type:Imports.TYPE,id:e},t)}isImport(e){return e.type&&e.type===Imports.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Imports.TYPE}:{id:e.id,type:Imports.TYPE}}type(){return Imports.TYPE}}Imports.TYPE="imports";export default Imports;
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)}isImport(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="imports";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 InStockSubscriptions extends ApiResource{async list(t,s){return this.resources.list({type:InStockSubscriptions.TYPE},t,s)}async create(t,s,e){return this.resources.create(Object.assign(Object.assign({},t),{type:InStockSubscriptions.TYPE}),s,e)}async retrieve(t,s,e){return this.resources.retrieve({type:InStockSubscriptions.TYPE,id:t},s,e)}async update(t,s,e){return this.resources.update(Object.assign(Object.assign({},t),{type:InStockSubscriptions.TYPE}),s,e)}async delete(t,s){await this.resources.delete({type:InStockSubscriptions.TYPE,id:t},s)}isInStockSubscription(t){return t.type&&t.type===InStockSubscriptions.TYPE}relationship(t){return typeof t==="string"?{id:t,type:InStockSubscriptions.TYPE}:{id:t.id,type:InStockSubscriptions.TYPE}}type(){return InStockSubscriptions.TYPE}}InStockSubscriptions.TYPE="in_stock_subscriptions";export default InStockSubscriptions;
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)}isInStockSubscription(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="in_stock_subscriptions";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 { InventoryStockLocation } from './inventory_stock_locations';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class InventoryModels extends ApiResource{async list(e,t){return this.resources.list({type:InventoryModels.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:InventoryModels.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:InventoryModels.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:InventoryModels.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:InventoryModels.TYPE,id:e},t)}isInventoryModel(e){return e.type&&e.type===InventoryModels.TYPE}relationship(e){return typeof e==="string"?{id:e,type:InventoryModels.TYPE}:{id:e.id,type:InventoryModels.TYPE}}type(){return InventoryModels.TYPE}}InventoryModels.TYPE="inventory_models";export default InventoryModels;
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)}isInventoryModel(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="inventory_models";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 { StockLocation } from './stock_locations';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class InventoryReturnLocations extends ApiResource{async list(e,t){return this.resources.list({type:InventoryReturnLocations.TYPE},e,t)}async create(e,t,n){return this.resources.create(Object.assign(Object.assign({},e),{type:InventoryReturnLocations.TYPE}),t,n)}async retrieve(e,t,n){return this.resources.retrieve({type:InventoryReturnLocations.TYPE,id:e},t,n)}async update(e,t,n){return this.resources.update(Object.assign(Object.assign({},e),{type:InventoryReturnLocations.TYPE}),t,n)}async delete(e,t){await this.resources.delete({type:InventoryReturnLocations.TYPE,id:e},t)}isInventoryReturnLocation(e){return e.type&&e.type===InventoryReturnLocations.TYPE}relationship(e){return typeof e==="string"?{id:e,type:InventoryReturnLocations.TYPE}:{id:e.id,type:InventoryReturnLocations.TYPE}}type(){return InventoryReturnLocations.TYPE}}InventoryReturnLocations.TYPE="inventory_return_locations";export default InventoryReturnLocations;
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)}isInventoryReturnLocation(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="inventory_return_locations";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 { StockLocation } from './stock_locations';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class InventoryStockLocations extends ApiResource{async list(t,e){return this.resources.list({type:InventoryStockLocations.TYPE},t,e)}async create(t,e,o){return this.resources.create(Object.assign(Object.assign({},t),{type:InventoryStockLocations.TYPE}),e,o)}async retrieve(t,e,o){return this.resources.retrieve({type:InventoryStockLocations.TYPE,id:t},e,o)}async update(t,e,o){return this.resources.update(Object.assign(Object.assign({},t),{type:InventoryStockLocations.TYPE}),e,o)}async delete(t,e){await this.resources.delete({type:InventoryStockLocations.TYPE,id:t},e)}isInventoryStockLocation(t){return t.type&&t.type===InventoryStockLocations.TYPE}relationship(t){return typeof t==="string"?{id:t,type:InventoryStockLocations.TYPE}:{id:t.id,type:InventoryStockLocations.TYPE}}type(){return InventoryStockLocations.TYPE}}InventoryStockLocations.TYPE="inventory_stock_locations";export default InventoryStockLocations;
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)}isInventoryStockLocation(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="inventory_stock_locations";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 { LineItem } from './line_items';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class LineItemOptions extends ApiResource{async list(e,t){return this.resources.list({type:LineItemOptions.TYPE},e,t)}async create(e,t,i){return this.resources.create(Object.assign(Object.assign({},e),{type:LineItemOptions.TYPE}),t,i)}async retrieve(e,t,i){return this.resources.retrieve({type:LineItemOptions.TYPE,id:e},t,i)}async update(e,t,i){return this.resources.update(Object.assign(Object.assign({},e),{type:LineItemOptions.TYPE}),t,i)}async delete(e,t){await this.resources.delete({type:LineItemOptions.TYPE,id:e},t)}isLineItemOption(e){return e.type&&e.type===LineItemOptions.TYPE}relationship(e){return typeof e==="string"?{id:e,type:LineItemOptions.TYPE}:{id:e.id,type:LineItemOptions.TYPE}}type(){return LineItemOptions.TYPE}}LineItemOptions.TYPE="line_item_options";export default LineItemOptions;
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)}isLineItemOption(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="line_item_options";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 LineItems extends ApiResource{async list(e,t){return this.resources.list({type:LineItems.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:LineItems.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:LineItems.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:LineItems.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:LineItems.TYPE,id:e},t)}isLineItem(e){return e.type&&e.type===LineItems.TYPE}relationship(e){return typeof e==="string"?{id:e,type:LineItems.TYPE}:{id:e.id,type:LineItems.TYPE}}type(){return LineItems.TYPE}}LineItems.TYPE="line_items";export default LineItems;
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)}isLineItem(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="line_items";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 { PaymentMethod } from './payment_methods';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class ManualGateways extends ApiResource{async list(e,a){return this.resources.list({type:ManualGateways.TYPE},e,a)}async create(e,a,t){return this.resources.create(Object.assign(Object.assign({},e),{type:ManualGateways.TYPE}),a,t)}async retrieve(e,a,t){return this.resources.retrieve({type:ManualGateways.TYPE,id:e},a,t)}async update(e,a,t){return this.resources.update(Object.assign(Object.assign({},e),{type:ManualGateways.TYPE}),a,t)}async delete(e,a){await this.resources.delete({type:ManualGateways.TYPE,id:e},a)}isManualGateway(e){return e.type&&e.type===ManualGateways.TYPE}relationship(e){return typeof e==="string"?{id:e,type:ManualGateways.TYPE}:{id:e.id,type:ManualGateways.TYPE}}type(){return ManualGateways.TYPE}}ManualGateways.TYPE="manual_gateways";export default ManualGateways;
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)}isManualGateway(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="manual_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 { TaxCategory } from './tax_categories';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class ManualTaxCalculators extends ApiResource{async list(a,e){return this.resources.list({type:ManualTaxCalculators.TYPE},a,e)}async create(a,e,t){return this.resources.create(Object.assign(Object.assign({},a),{type:ManualTaxCalculators.TYPE}),e,t)}async retrieve(a,e,t){return this.resources.retrieve({type:ManualTaxCalculators.TYPE,id:a},e,t)}async update(a,e,t){return this.resources.update(Object.assign(Object.assign({},a),{type:ManualTaxCalculators.TYPE}),e,t)}async delete(a,e){await this.resources.delete({type:ManualTaxCalculators.TYPE,id:a},e)}isManualTaxCalculator(a){return a.type&&a.type===ManualTaxCalculators.TYPE}relationship(a){return typeof a==="string"?{id:a,type:ManualTaxCalculators.TYPE}:{id:a.id,type:ManualTaxCalculators.TYPE}}type(){return ManualTaxCalculators.TYPE}}ManualTaxCalculators.TYPE="manual_tax_calculators";export default ManualTaxCalculators;
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)}isManualTaxCalculator(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="manual_tax_calculators";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 { Merchant } from './merchants';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Markets extends ApiResource{async list(e,t){return this.resources.list({type:Markets.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Markets.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Markets.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Markets.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Markets.TYPE,id:e},t)}isMarket(e){return e.type&&e.type===Markets.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Markets.TYPE}:{id:e.id,type:Markets.TYPE}}type(){return Markets.TYPE}}Markets.TYPE="markets";export default Markets;
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)}isMarket(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="markets";export default s;