@commercelayer/sdk 2.3.8 → 2.3.12

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 (415) hide show
  1. package/lib/cjs/api.d.ts +1 -1
  2. package/lib/cjs/api.js +1 -1
  3. package/lib/cjs/client.js +1 -1
  4. package/lib/cjs/commercelayer.js +1 -1
  5. package/lib/cjs/common.js +1 -1
  6. package/lib/cjs/config.d.ts +7 -3
  7. package/lib/cjs/config.js +1 -1
  8. package/lib/cjs/error.js +1 -1
  9. package/lib/cjs/index.js +1 -1
  10. package/lib/cjs/interceptor.js +1 -1
  11. package/lib/cjs/jsonapi.js +1 -1
  12. package/lib/cjs/model.d.ts +1 -1
  13. package/lib/cjs/model.js +1 -1
  14. package/lib/cjs/query.d.ts +0 -35
  15. package/lib/cjs/query.js +1 -1
  16. package/lib/cjs/resource.js +1 -1
  17. package/lib/cjs/resources/addresses.d.ts +1 -1
  18. package/lib/cjs/resources/addresses.js +1 -1
  19. package/lib/cjs/resources/adjustments.d.ts +1 -1
  20. package/lib/cjs/resources/adjustments.js +1 -1
  21. package/lib/cjs/resources/adyen_gateways.d.ts +1 -1
  22. package/lib/cjs/resources/adyen_gateways.js +1 -1
  23. package/lib/cjs/resources/adyen_payments.d.ts +1 -1
  24. package/lib/cjs/resources/adyen_payments.js +1 -1
  25. package/lib/cjs/resources/application.d.ts +1 -1
  26. package/lib/cjs/resources/application.js +1 -1
  27. package/lib/cjs/resources/attachments.d.ts +1 -1
  28. package/lib/cjs/resources/attachments.js +1 -1
  29. package/lib/cjs/resources/authorizations.d.ts +1 -1
  30. package/lib/cjs/resources/authorizations.js +1 -1
  31. package/lib/cjs/resources/avalara_accounts.d.ts +1 -1
  32. package/lib/cjs/resources/avalara_accounts.js +1 -1
  33. package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -1
  34. package/lib/cjs/resources/billing_info_validation_rules.js +1 -1
  35. package/lib/cjs/resources/bing_geocoders.d.ts +1 -1
  36. package/lib/cjs/resources/bing_geocoders.js +1 -1
  37. package/lib/cjs/resources/braintree_gateways.d.ts +1 -1
  38. package/lib/cjs/resources/braintree_gateways.js +1 -1
  39. package/lib/cjs/resources/braintree_payments.d.ts +1 -1
  40. package/lib/cjs/resources/braintree_payments.js +1 -1
  41. package/lib/cjs/resources/bundles.d.ts +1 -1
  42. package/lib/cjs/resources/bundles.js +1 -1
  43. package/lib/cjs/resources/captures.d.ts +1 -1
  44. package/lib/cjs/resources/captures.js +1 -1
  45. package/lib/cjs/resources/carrier_accounts.d.ts +1 -1
  46. package/lib/cjs/resources/carrier_accounts.js +1 -1
  47. package/lib/cjs/resources/checkout_com_gateways.d.ts +1 -1
  48. package/lib/cjs/resources/checkout_com_gateways.js +1 -1
  49. package/lib/cjs/resources/checkout_com_payments.d.ts +1 -1
  50. package/lib/cjs/resources/checkout_com_payments.js +1 -1
  51. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -1
  52. package/lib/cjs/resources/coupon_codes_promotion_rules.js +1 -1
  53. package/lib/cjs/resources/coupon_recipients.d.ts +1 -1
  54. package/lib/cjs/resources/coupon_recipients.js +1 -1
  55. package/lib/cjs/resources/coupons.d.ts +1 -1
  56. package/lib/cjs/resources/coupons.js +1 -1
  57. package/lib/cjs/resources/customer_addresses.d.ts +1 -1
  58. package/lib/cjs/resources/customer_addresses.js +1 -1
  59. package/lib/cjs/resources/customer_groups.d.ts +1 -1
  60. package/lib/cjs/resources/customer_groups.js +1 -1
  61. package/lib/cjs/resources/customer_password_resets.d.ts +1 -1
  62. package/lib/cjs/resources/customer_password_resets.js +1 -1
  63. package/lib/cjs/resources/customer_payment_sources.d.ts +1 -1
  64. package/lib/cjs/resources/customer_payment_sources.js +1 -1
  65. package/lib/cjs/resources/customer_subscriptions.d.ts +1 -1
  66. package/lib/cjs/resources/customer_subscriptions.js +1 -1
  67. package/lib/cjs/resources/customers.d.ts +1 -1
  68. package/lib/cjs/resources/customers.js +1 -1
  69. package/lib/cjs/resources/delivery_lead_times.d.ts +1 -1
  70. package/lib/cjs/resources/delivery_lead_times.js +1 -1
  71. package/lib/cjs/resources/event_callbacks.d.ts +1 -1
  72. package/lib/cjs/resources/event_callbacks.js +1 -1
  73. package/lib/cjs/resources/external_gateways.d.ts +1 -1
  74. package/lib/cjs/resources/external_gateways.js +1 -1
  75. package/lib/cjs/resources/external_payments.d.ts +1 -1
  76. package/lib/cjs/resources/external_payments.js +1 -1
  77. package/lib/cjs/resources/external_promotions.d.ts +1 -1
  78. package/lib/cjs/resources/external_promotions.js +1 -1
  79. package/lib/cjs/resources/external_tax_calculators.d.ts +1 -1
  80. package/lib/cjs/resources/external_tax_calculators.js +1 -1
  81. package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -1
  82. package/lib/cjs/resources/fixed_amount_promotions.js +1 -1
  83. package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -1
  84. package/lib/cjs/resources/fixed_price_promotions.js +1 -1
  85. package/lib/cjs/resources/free_gift_promotions.d.ts +1 -1
  86. package/lib/cjs/resources/free_gift_promotions.js +1 -1
  87. package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -1
  88. package/lib/cjs/resources/free_shipping_promotions.js +1 -1
  89. package/lib/cjs/resources/geocoders.d.ts +1 -1
  90. package/lib/cjs/resources/geocoders.js +1 -1
  91. package/lib/cjs/resources/gift_card_recipients.d.ts +1 -1
  92. package/lib/cjs/resources/gift_card_recipients.js +1 -1
  93. package/lib/cjs/resources/gift_cards.d.ts +1 -2
  94. package/lib/cjs/resources/gift_cards.js +1 -1
  95. package/lib/cjs/resources/google_geocoders.d.ts +1 -1
  96. package/lib/cjs/resources/google_geocoders.js +1 -1
  97. package/lib/cjs/resources/imports.d.ts +1 -1
  98. package/lib/cjs/resources/imports.js +1 -1
  99. package/lib/cjs/resources/in_stock_subscriptions.d.ts +1 -1
  100. package/lib/cjs/resources/in_stock_subscriptions.js +1 -1
  101. package/lib/cjs/resources/inventory_models.d.ts +1 -1
  102. package/lib/cjs/resources/inventory_models.js +1 -1
  103. package/lib/cjs/resources/inventory_return_locations.d.ts +1 -1
  104. package/lib/cjs/resources/inventory_return_locations.js +1 -1
  105. package/lib/cjs/resources/inventory_stock_locations.d.ts +1 -1
  106. package/lib/cjs/resources/inventory_stock_locations.js +1 -1
  107. package/lib/cjs/resources/line_item_options.d.ts +1 -1
  108. package/lib/cjs/resources/line_item_options.js +1 -1
  109. package/lib/cjs/resources/line_items.d.ts +1 -1
  110. package/lib/cjs/resources/line_items.js +1 -1
  111. package/lib/cjs/resources/manual_gateways.d.ts +1 -1
  112. package/lib/cjs/resources/manual_gateways.js +1 -1
  113. package/lib/cjs/resources/manual_tax_calculators.d.ts +1 -1
  114. package/lib/cjs/resources/manual_tax_calculators.js +1 -1
  115. package/lib/cjs/resources/markets.d.ts +1 -1
  116. package/lib/cjs/resources/markets.js +1 -1
  117. package/lib/cjs/resources/merchants.d.ts +1 -1
  118. package/lib/cjs/resources/merchants.js +1 -1
  119. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -1
  120. package/lib/cjs/resources/order_amount_promotion_rules.js +1 -1
  121. package/lib/cjs/resources/order_copies.d.ts +1 -1
  122. package/lib/cjs/resources/order_copies.js +1 -1
  123. package/lib/cjs/resources/order_subscriptions.d.ts +2 -2
  124. package/lib/cjs/resources/order_subscriptions.js +1 -1
  125. package/lib/cjs/resources/order_validation_rules.d.ts +1 -1
  126. package/lib/cjs/resources/order_validation_rules.js +1 -1
  127. package/lib/cjs/resources/orders.d.ts +1 -1
  128. package/lib/cjs/resources/orders.js +1 -1
  129. package/lib/cjs/resources/organization.d.ts +3 -1
  130. package/lib/cjs/resources/organization.js +1 -1
  131. package/lib/cjs/resources/packages.d.ts +6 -6
  132. package/lib/cjs/resources/packages.js +1 -1
  133. package/lib/cjs/resources/parcel_line_items.d.ts +1 -1
  134. package/lib/cjs/resources/parcel_line_items.js +1 -1
  135. package/lib/cjs/resources/parcels.d.ts +1 -1
  136. package/lib/cjs/resources/parcels.js +1 -1
  137. package/lib/cjs/resources/payment_gateways.d.ts +1 -1
  138. package/lib/cjs/resources/payment_gateways.js +1 -1
  139. package/lib/cjs/resources/payment_methods.d.ts +1 -1
  140. package/lib/cjs/resources/payment_methods.js +1 -1
  141. package/lib/cjs/resources/paypal_gateways.d.ts +1 -1
  142. package/lib/cjs/resources/paypal_gateways.js +1 -1
  143. package/lib/cjs/resources/paypal_payments.d.ts +1 -1
  144. package/lib/cjs/resources/paypal_payments.js +1 -1
  145. package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -1
  146. package/lib/cjs/resources/percentage_discount_promotions.js +1 -1
  147. package/lib/cjs/resources/price_lists.d.ts +1 -1
  148. package/lib/cjs/resources/price_lists.js +1 -1
  149. package/lib/cjs/resources/prices.d.ts +1 -1
  150. package/lib/cjs/resources/prices.js +1 -1
  151. package/lib/cjs/resources/promotion_rules.d.ts +1 -1
  152. package/lib/cjs/resources/promotion_rules.js +1 -1
  153. package/lib/cjs/resources/promotions.d.ts +1 -1
  154. package/lib/cjs/resources/promotions.js +1 -1
  155. package/lib/cjs/resources/refunds.d.ts +1 -1
  156. package/lib/cjs/resources/refunds.js +1 -1
  157. package/lib/cjs/resources/return_line_items.d.ts +1 -1
  158. package/lib/cjs/resources/return_line_items.js +1 -1
  159. package/lib/cjs/resources/returns.d.ts +1 -1
  160. package/lib/cjs/resources/returns.js +1 -1
  161. package/lib/cjs/resources/shipments.d.ts +1 -1
  162. package/lib/cjs/resources/shipments.js +1 -1
  163. package/lib/cjs/resources/shipping_categories.d.ts +1 -1
  164. package/lib/cjs/resources/shipping_categories.js +1 -1
  165. package/lib/cjs/resources/shipping_methods.d.ts +1 -1
  166. package/lib/cjs/resources/shipping_methods.js +1 -1
  167. package/lib/cjs/resources/shipping_zones.d.ts +1 -1
  168. package/lib/cjs/resources/shipping_zones.js +1 -1
  169. package/lib/cjs/resources/sku_list_items.d.ts +1 -1
  170. package/lib/cjs/resources/sku_list_items.js +1 -1
  171. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -1
  172. package/lib/cjs/resources/sku_list_promotion_rules.js +1 -1
  173. package/lib/cjs/resources/sku_lists.d.ts +1 -1
  174. package/lib/cjs/resources/sku_lists.js +1 -1
  175. package/lib/cjs/resources/sku_options.d.ts +1 -1
  176. package/lib/cjs/resources/sku_options.js +1 -1
  177. package/lib/cjs/resources/skus.d.ts +1 -1
  178. package/lib/cjs/resources/skus.js +1 -1
  179. package/lib/cjs/resources/stock_items.d.ts +1 -1
  180. package/lib/cjs/resources/stock_items.js +1 -1
  181. package/lib/cjs/resources/stock_line_items.d.ts +1 -1
  182. package/lib/cjs/resources/stock_line_items.js +1 -1
  183. package/lib/cjs/resources/stock_locations.d.ts +1 -1
  184. package/lib/cjs/resources/stock_locations.js +1 -1
  185. package/lib/cjs/resources/stock_transfers.d.ts +1 -1
  186. package/lib/cjs/resources/stock_transfers.js +1 -1
  187. package/lib/cjs/resources/stripe_gateways.d.ts +1 -1
  188. package/lib/cjs/resources/stripe_gateways.js +1 -1
  189. package/lib/cjs/resources/stripe_payments.d.ts +1 -1
  190. package/lib/cjs/resources/stripe_payments.js +1 -1
  191. package/lib/cjs/resources/tax_calculators.d.ts +1 -1
  192. package/lib/cjs/resources/tax_calculators.js +1 -1
  193. package/lib/cjs/resources/tax_categories.d.ts +1 -1
  194. package/lib/cjs/resources/tax_categories.js +1 -1
  195. package/lib/cjs/resources/tax_rules.d.ts +1 -1
  196. package/lib/cjs/resources/tax_rules.js +1 -1
  197. package/lib/cjs/resources/taxjar_accounts.d.ts +1 -1
  198. package/lib/cjs/resources/taxjar_accounts.js +1 -1
  199. package/lib/cjs/resources/transactions.d.ts +1 -1
  200. package/lib/cjs/resources/transactions.js +1 -1
  201. package/lib/cjs/resources/voids.d.ts +1 -1
  202. package/lib/cjs/resources/voids.js +1 -1
  203. package/lib/cjs/resources/webhooks.d.ts +1 -1
  204. package/lib/cjs/resources/webhooks.js +1 -1
  205. package/lib/cjs/resources/wire_transfers.d.ts +1 -1
  206. package/lib/cjs/resources/wire_transfers.js +1 -1
  207. package/lib/cjs/static.js +1 -1
  208. package/lib/cjs/util.js +1 -1
  209. package/lib/esm/api.d.ts +1 -1
  210. package/lib/esm/client.js +1 -1
  211. package/lib/esm/commercelayer.js +1 -1
  212. package/lib/esm/common.js +1 -1
  213. package/lib/esm/config.d.ts +7 -3
  214. package/lib/esm/config.js +1 -1
  215. package/lib/esm/error.js +1 -1
  216. package/lib/esm/jsonapi.js +1 -1
  217. package/lib/esm/model.d.ts +1 -1
  218. package/lib/esm/query.d.ts +0 -35
  219. package/lib/esm/query.js +1 -1
  220. package/lib/esm/resource.js +1 -1
  221. package/lib/esm/resources/addresses.d.ts +1 -1
  222. package/lib/esm/resources/addresses.js +1 -1
  223. package/lib/esm/resources/adjustments.d.ts +1 -1
  224. package/lib/esm/resources/adjustments.js +1 -1
  225. package/lib/esm/resources/adyen_gateways.d.ts +1 -1
  226. package/lib/esm/resources/adyen_gateways.js +1 -1
  227. package/lib/esm/resources/adyen_payments.d.ts +1 -1
  228. package/lib/esm/resources/adyen_payments.js +1 -1
  229. package/lib/esm/resources/application.d.ts +1 -1
  230. package/lib/esm/resources/application.js +1 -1
  231. package/lib/esm/resources/attachments.d.ts +1 -1
  232. package/lib/esm/resources/attachments.js +1 -1
  233. package/lib/esm/resources/authorizations.d.ts +1 -1
  234. package/lib/esm/resources/authorizations.js +1 -1
  235. package/lib/esm/resources/avalara_accounts.d.ts +1 -1
  236. package/lib/esm/resources/avalara_accounts.js +1 -1
  237. package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -1
  238. package/lib/esm/resources/billing_info_validation_rules.js +1 -1
  239. package/lib/esm/resources/bing_geocoders.d.ts +1 -1
  240. package/lib/esm/resources/bing_geocoders.js +1 -1
  241. package/lib/esm/resources/braintree_gateways.d.ts +1 -1
  242. package/lib/esm/resources/braintree_gateways.js +1 -1
  243. package/lib/esm/resources/braintree_payments.d.ts +1 -1
  244. package/lib/esm/resources/braintree_payments.js +1 -1
  245. package/lib/esm/resources/bundles.d.ts +1 -1
  246. package/lib/esm/resources/bundles.js +1 -1
  247. package/lib/esm/resources/captures.d.ts +1 -1
  248. package/lib/esm/resources/captures.js +1 -1
  249. package/lib/esm/resources/carrier_accounts.d.ts +1 -1
  250. package/lib/esm/resources/carrier_accounts.js +1 -1
  251. package/lib/esm/resources/checkout_com_gateways.d.ts +1 -1
  252. package/lib/esm/resources/checkout_com_gateways.js +1 -1
  253. package/lib/esm/resources/checkout_com_payments.d.ts +1 -1
  254. package/lib/esm/resources/checkout_com_payments.js +1 -1
  255. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -1
  256. package/lib/esm/resources/coupon_codes_promotion_rules.js +1 -1
  257. package/lib/esm/resources/coupon_recipients.d.ts +1 -1
  258. package/lib/esm/resources/coupon_recipients.js +1 -1
  259. package/lib/esm/resources/coupons.d.ts +1 -1
  260. package/lib/esm/resources/coupons.js +1 -1
  261. package/lib/esm/resources/customer_addresses.d.ts +1 -1
  262. package/lib/esm/resources/customer_addresses.js +1 -1
  263. package/lib/esm/resources/customer_groups.d.ts +1 -1
  264. package/lib/esm/resources/customer_groups.js +1 -1
  265. package/lib/esm/resources/customer_password_resets.d.ts +1 -1
  266. package/lib/esm/resources/customer_password_resets.js +1 -1
  267. package/lib/esm/resources/customer_payment_sources.d.ts +1 -1
  268. package/lib/esm/resources/customer_payment_sources.js +1 -1
  269. package/lib/esm/resources/customer_subscriptions.d.ts +1 -1
  270. package/lib/esm/resources/customer_subscriptions.js +1 -1
  271. package/lib/esm/resources/customers.d.ts +1 -1
  272. package/lib/esm/resources/customers.js +1 -1
  273. package/lib/esm/resources/delivery_lead_times.d.ts +1 -1
  274. package/lib/esm/resources/delivery_lead_times.js +1 -1
  275. package/lib/esm/resources/event_callbacks.d.ts +1 -1
  276. package/lib/esm/resources/event_callbacks.js +1 -1
  277. package/lib/esm/resources/external_gateways.d.ts +1 -1
  278. package/lib/esm/resources/external_gateways.js +1 -1
  279. package/lib/esm/resources/external_payments.d.ts +1 -1
  280. package/lib/esm/resources/external_payments.js +1 -1
  281. package/lib/esm/resources/external_promotions.d.ts +1 -1
  282. package/lib/esm/resources/external_promotions.js +1 -1
  283. package/lib/esm/resources/external_tax_calculators.d.ts +1 -1
  284. package/lib/esm/resources/external_tax_calculators.js +1 -1
  285. package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -1
  286. package/lib/esm/resources/fixed_amount_promotions.js +1 -1
  287. package/lib/esm/resources/fixed_price_promotions.d.ts +1 -1
  288. package/lib/esm/resources/fixed_price_promotions.js +1 -1
  289. package/lib/esm/resources/free_gift_promotions.d.ts +1 -1
  290. package/lib/esm/resources/free_gift_promotions.js +1 -1
  291. package/lib/esm/resources/free_shipping_promotions.d.ts +1 -1
  292. package/lib/esm/resources/free_shipping_promotions.js +1 -1
  293. package/lib/esm/resources/geocoders.d.ts +1 -1
  294. package/lib/esm/resources/geocoders.js +1 -1
  295. package/lib/esm/resources/gift_card_recipients.d.ts +1 -1
  296. package/lib/esm/resources/gift_card_recipients.js +1 -1
  297. package/lib/esm/resources/gift_cards.d.ts +1 -2
  298. package/lib/esm/resources/gift_cards.js +1 -1
  299. package/lib/esm/resources/google_geocoders.d.ts +1 -1
  300. package/lib/esm/resources/google_geocoders.js +1 -1
  301. package/lib/esm/resources/imports.d.ts +1 -1
  302. package/lib/esm/resources/imports.js +1 -1
  303. package/lib/esm/resources/in_stock_subscriptions.d.ts +1 -1
  304. package/lib/esm/resources/in_stock_subscriptions.js +1 -1
  305. package/lib/esm/resources/inventory_models.d.ts +1 -1
  306. package/lib/esm/resources/inventory_models.js +1 -1
  307. package/lib/esm/resources/inventory_return_locations.d.ts +1 -1
  308. package/lib/esm/resources/inventory_return_locations.js +1 -1
  309. package/lib/esm/resources/inventory_stock_locations.d.ts +1 -1
  310. package/lib/esm/resources/inventory_stock_locations.js +1 -1
  311. package/lib/esm/resources/line_item_options.d.ts +1 -1
  312. package/lib/esm/resources/line_item_options.js +1 -1
  313. package/lib/esm/resources/line_items.d.ts +1 -1
  314. package/lib/esm/resources/line_items.js +1 -1
  315. package/lib/esm/resources/manual_gateways.d.ts +1 -1
  316. package/lib/esm/resources/manual_gateways.js +1 -1
  317. package/lib/esm/resources/manual_tax_calculators.d.ts +1 -1
  318. package/lib/esm/resources/manual_tax_calculators.js +1 -1
  319. package/lib/esm/resources/markets.d.ts +1 -1
  320. package/lib/esm/resources/markets.js +1 -1
  321. package/lib/esm/resources/merchants.d.ts +1 -1
  322. package/lib/esm/resources/merchants.js +1 -1
  323. package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -1
  324. package/lib/esm/resources/order_amount_promotion_rules.js +1 -1
  325. package/lib/esm/resources/order_copies.d.ts +1 -1
  326. package/lib/esm/resources/order_copies.js +1 -1
  327. package/lib/esm/resources/order_subscriptions.d.ts +2 -2
  328. package/lib/esm/resources/order_subscriptions.js +1 -1
  329. package/lib/esm/resources/order_validation_rules.d.ts +1 -1
  330. package/lib/esm/resources/order_validation_rules.js +1 -1
  331. package/lib/esm/resources/orders.d.ts +1 -1
  332. package/lib/esm/resources/orders.js +1 -1
  333. package/lib/esm/resources/organization.d.ts +3 -1
  334. package/lib/esm/resources/organization.js +1 -1
  335. package/lib/esm/resources/packages.d.ts +6 -6
  336. package/lib/esm/resources/packages.js +1 -1
  337. package/lib/esm/resources/parcel_line_items.d.ts +1 -1
  338. package/lib/esm/resources/parcel_line_items.js +1 -1
  339. package/lib/esm/resources/parcels.d.ts +1 -1
  340. package/lib/esm/resources/parcels.js +1 -1
  341. package/lib/esm/resources/payment_gateways.d.ts +1 -1
  342. package/lib/esm/resources/payment_gateways.js +1 -1
  343. package/lib/esm/resources/payment_methods.d.ts +1 -1
  344. package/lib/esm/resources/payment_methods.js +1 -1
  345. package/lib/esm/resources/paypal_gateways.d.ts +1 -1
  346. package/lib/esm/resources/paypal_gateways.js +1 -1
  347. package/lib/esm/resources/paypal_payments.d.ts +1 -1
  348. package/lib/esm/resources/paypal_payments.js +1 -1
  349. package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -1
  350. package/lib/esm/resources/percentage_discount_promotions.js +1 -1
  351. package/lib/esm/resources/price_lists.d.ts +1 -1
  352. package/lib/esm/resources/price_lists.js +1 -1
  353. package/lib/esm/resources/prices.d.ts +1 -1
  354. package/lib/esm/resources/prices.js +1 -1
  355. package/lib/esm/resources/promotion_rules.d.ts +1 -1
  356. package/lib/esm/resources/promotion_rules.js +1 -1
  357. package/lib/esm/resources/promotions.d.ts +1 -1
  358. package/lib/esm/resources/promotions.js +1 -1
  359. package/lib/esm/resources/refunds.d.ts +1 -1
  360. package/lib/esm/resources/refunds.js +1 -1
  361. package/lib/esm/resources/return_line_items.d.ts +1 -1
  362. package/lib/esm/resources/return_line_items.js +1 -1
  363. package/lib/esm/resources/returns.d.ts +1 -1
  364. package/lib/esm/resources/returns.js +1 -1
  365. package/lib/esm/resources/shipments.d.ts +1 -1
  366. package/lib/esm/resources/shipments.js +1 -1
  367. package/lib/esm/resources/shipping_categories.d.ts +1 -1
  368. package/lib/esm/resources/shipping_categories.js +1 -1
  369. package/lib/esm/resources/shipping_methods.d.ts +1 -1
  370. package/lib/esm/resources/shipping_methods.js +1 -1
  371. package/lib/esm/resources/shipping_zones.d.ts +1 -1
  372. package/lib/esm/resources/shipping_zones.js +1 -1
  373. package/lib/esm/resources/sku_list_items.d.ts +1 -1
  374. package/lib/esm/resources/sku_list_items.js +1 -1
  375. package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -1
  376. package/lib/esm/resources/sku_list_promotion_rules.js +1 -1
  377. package/lib/esm/resources/sku_lists.d.ts +1 -1
  378. package/lib/esm/resources/sku_lists.js +1 -1
  379. package/lib/esm/resources/sku_options.d.ts +1 -1
  380. package/lib/esm/resources/sku_options.js +1 -1
  381. package/lib/esm/resources/skus.d.ts +1 -1
  382. package/lib/esm/resources/skus.js +1 -1
  383. package/lib/esm/resources/stock_items.d.ts +1 -1
  384. package/lib/esm/resources/stock_items.js +1 -1
  385. package/lib/esm/resources/stock_line_items.d.ts +1 -1
  386. package/lib/esm/resources/stock_line_items.js +1 -1
  387. package/lib/esm/resources/stock_locations.d.ts +1 -1
  388. package/lib/esm/resources/stock_locations.js +1 -1
  389. package/lib/esm/resources/stock_transfers.d.ts +1 -1
  390. package/lib/esm/resources/stock_transfers.js +1 -1
  391. package/lib/esm/resources/stripe_gateways.d.ts +1 -1
  392. package/lib/esm/resources/stripe_gateways.js +1 -1
  393. package/lib/esm/resources/stripe_payments.d.ts +1 -1
  394. package/lib/esm/resources/stripe_payments.js +1 -1
  395. package/lib/esm/resources/tax_calculators.d.ts +1 -1
  396. package/lib/esm/resources/tax_calculators.js +1 -1
  397. package/lib/esm/resources/tax_categories.d.ts +1 -1
  398. package/lib/esm/resources/tax_categories.js +1 -1
  399. package/lib/esm/resources/tax_rules.d.ts +1 -1
  400. package/lib/esm/resources/tax_rules.js +1 -1
  401. package/lib/esm/resources/taxjar_accounts.d.ts +1 -1
  402. package/lib/esm/resources/taxjar_accounts.js +1 -1
  403. package/lib/esm/resources/transactions.d.ts +1 -1
  404. package/lib/esm/resources/transactions.js +1 -1
  405. package/lib/esm/resources/voids.d.ts +1 -1
  406. package/lib/esm/resources/voids.js +1 -1
  407. package/lib/esm/resources/webhooks.d.ts +1 -1
  408. package/lib/esm/resources/webhooks.js +1 -1
  409. package/lib/esm/resources/wire_transfers.d.ts +1 -1
  410. package/lib/esm/resources/wire_transfers.js +1 -1
  411. package/lib/esm/static.js +1 -1
  412. package/lib/esm/util.js +1 -1
  413. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  414. package/lib/tsconfig.tsbuildinfo +1 -1
  415. package/package.json +7 -3
@@ -16,41 +16,6 @@ interface QueryParamsList extends QueryParamsRetrieve {
16
16
  }
17
17
  declare type QueryParams = QueryParamsRetrieve | QueryParamsList;
18
18
  export { QueryParamsRetrieve, QueryParamsList, QueryParams };
19
- declare type FilterPredicate = 'blank' | 'cont' | 'cont_all' | 'cont_any' | 'does_not_match' | 'does_not_match_all' | 'does_not_match_any' | 'end' | 'end_all' | 'end_any' | 'eq' | 'false' | 'gt' | 'gt_all' | 'gt_any' | 'gteq' | 'gteq_all' | 'gteq_any' | 'in' | 'lt' | 'lt_all' | 'lt_any' | 'lteq' | 'lteq_all' | 'lteq_any' | 'matches' | 'matches_all' | 'matches_any' | 'not_cont' | 'not_cont_all' | 'not_end' | 'not_end_all' | 'not_end_any' | 'not_eq' | 'not_eq_all' | 'not_in' | 'not_null' | 'not_start' | 'not_start_all' | 'not_start_any' | 'null' | 'present' | 'start' | 'start_all' | 'start_any' | 'true';
20
- declare class QueryBuilderRetrieve {
21
- #private;
22
- constructor(resource?: string);
23
- include(...resources: string[]): QueryBuilderRetrieve;
24
- field(field: string, resource?: string): QueryBuilderRetrieve;
25
- fields(fields: string[], resource?: string): QueryBuilderRetrieve;
26
- clear(): QueryBuilderRetrieve;
27
- build(): QueryParams;
28
- generate(): {
29
- [key: string]: string;
30
- };
31
- }
32
- declare class QueryBuilderList extends QueryBuilderRetrieve {
33
- #private;
34
- constructor(resource?: string);
35
- include(...resources: string[]): QueryBuilderList;
36
- field(field: string, resource?: string): QueryBuilderList;
37
- fields(fields: string[], resource?: string): QueryBuilderList;
38
- pageNumber(num: number): QueryBuilderList;
39
- pageSize(size: number): QueryBuilderList;
40
- page(num: number, size: number): QueryBuilderList;
41
- sort(field: string, descending?: boolean): QueryBuilderList;
42
- filter(field: string | string[], predicate: FilterPredicate, value: string | number | boolean | string[], resource?: string): QueryBuilderList;
43
- clear(): QueryBuilderList;
44
- build(): QueryParams;
45
- generate(): {
46
- [key: string]: string;
47
- };
48
- }
49
- declare class QueryBuilder extends QueryBuilderList {
50
- constructor(resource?: string);
51
- }
52
- export default QueryBuilder;
53
- export { QueryBuilderRetrieve, QueryBuilderList };
54
19
  declare const generateQueryStringParams: (params: QueryParamsRetrieve | QueryParamsList | undefined) => {
55
20
  [key: string]: string;
56
21
  };
package/lib/esm/query.js CHANGED
@@ -1 +1 @@
1
- var __classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(e,i,r,t,s){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof i==="function"?e!==i||!s:!i.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?s.call(e,r):s?s.value=r:i.set(e,r),r};var __classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(e,i,r,t){if(r==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof i==="function"?e!==i||!t:!i.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?t:r==="a"?t.call(e):t?t.value:i.get(e)};var _QueryBuilderRetrieve_resource,_QueryBuilderRetrieve_include,_QueryBuilderRetrieve_fields,_QueryBuilderList_sort,_QueryBuilderList_filters,_QueryBuilderList_pageNumber,_QueryBuilderList_pageSize;const isParamsList=e=>e.filters||e.pageNumber||e.pageSize||e.sort;class QueryBuilderRetrieve{constructor(e){_QueryBuilderRetrieve_resource.set(this,void 0);_QueryBuilderRetrieve_include.set(this,void 0);_QueryBuilderRetrieve_fields.set(this,void 0);__classPrivateFieldSet(this,_QueryBuilderRetrieve_resource,e||"","f")}include(...e){if(!__classPrivateFieldGet(this,_QueryBuilderRetrieve_include,"f"))__classPrivateFieldSet(this,_QueryBuilderRetrieve_include,[],"f");__classPrivateFieldGet(this,_QueryBuilderRetrieve_include,"f").push(...e);return this}field(e,i){if(!__classPrivateFieldGet(this,_QueryBuilderRetrieve_fields,"f"))__classPrivateFieldSet(this,_QueryBuilderRetrieve_fields,{},"f");if(!i)i=__classPrivateFieldGet(this,_QueryBuilderRetrieve_resource,"f");if(!__classPrivateFieldGet(this,_QueryBuilderRetrieve_fields,"f")[i])__classPrivateFieldGet(this,_QueryBuilderRetrieve_fields,"f")[i]=[];__classPrivateFieldGet(this,_QueryBuilderRetrieve_fields,"f")[i].push(e);return this}fields(e,i){e.forEach((e=>{this.field(e,i)}));return this}clear(){__classPrivateFieldSet(this,_QueryBuilderRetrieve_include,undefined,"f");__classPrivateFieldSet(this,_QueryBuilderRetrieve_fields,undefined,"f");return this}build(){return{include:__classPrivateFieldGet(this,_QueryBuilderRetrieve_include,"f"),fields:__classPrivateFieldGet(this,_QueryBuilderRetrieve_fields,"f")}}generate(){return generateQueryStringParams(this.build())}}_QueryBuilderRetrieve_resource=new WeakMap,_QueryBuilderRetrieve_include=new WeakMap,_QueryBuilderRetrieve_fields=new WeakMap;class QueryBuilderList extends QueryBuilderRetrieve{constructor(e){super(e);_QueryBuilderList_sort.set(this,void 0);_QueryBuilderList_filters.set(this,void 0);_QueryBuilderList_pageNumber.set(this,void 0);_QueryBuilderList_pageSize.set(this,void 0)}include(...e){return super.include(...e)}field(e,i){return super.field(e,i)}fields(e,i){return super.fields(e,i)}pageNumber(e){__classPrivateFieldSet(this,_QueryBuilderList_pageNumber,e,"f");return this}pageSize(e){__classPrivateFieldSet(this,_QueryBuilderList_pageSize,e,"f");return this}page(e,i){__classPrivateFieldSet(this,_QueryBuilderList_pageNumber,e,"f");__classPrivateFieldSet(this,_QueryBuilderList_pageSize,i,"f");return this}sort(e,i){if(!__classPrivateFieldGet(this,_QueryBuilderList_sort,"f"))__classPrivateFieldSet(this,_QueryBuilderList_sort,[],"f");__classPrivateFieldGet(this,_QueryBuilderList_sort,"f").push(`${i?"-":""}${e}`);return this}filter(e,i,r,t){if(!__classPrivateFieldGet(this,_QueryBuilderList_filters,"f"))__classPrivateFieldSet(this,_QueryBuilderList_filters,{},"f");const s=t?`${t}_`:"";__classPrivateFieldGet(this,_QueryBuilderList_filters,"f")[`${Array.isArray(e)?e.map((e=>`${s}${e}`)).join("_or_"):s+e}_${i}`]=Array.isArray(r)?r.join(","):r;return this}clear(){super.clear();__classPrivateFieldSet(this,_QueryBuilderList_sort,undefined,"f");__classPrivateFieldSet(this,_QueryBuilderList_filters,undefined,"f");__classPrivateFieldSet(this,_QueryBuilderList_pageNumber,undefined,"f");__classPrivateFieldSet(this,_QueryBuilderList_pageSize,undefined,"f");return this}build(){return Object.assign(super.build(),{sort:__classPrivateFieldGet(this,_QueryBuilderList_sort,"f"),filters:__classPrivateFieldGet(this,_QueryBuilderList_filters,"f"),pageNumber:__classPrivateFieldGet(this,_QueryBuilderList_pageNumber,"f"),pageSize:__classPrivateFieldGet(this,_QueryBuilderList_pageSize,"f")})}generate(){return generateQueryStringParams(this.build())}}_QueryBuilderList_sort=new WeakMap,_QueryBuilderList_filters=new WeakMap,_QueryBuilderList_pageNumber=new WeakMap,_QueryBuilderList_pageSize=new WeakMap;class QueryBuilder extends QueryBuilderList{constructor(e){super(e)}}export default QueryBuilder;export{QueryBuilderRetrieve,QueryBuilderList};const generateQueryStringParams=e=>{const i={};if(!e)return i;if(e.include)i["include"]=e.include.join(",");if(e.fields){Object.entries(e.fields).forEach((([e,r])=>{i[`fields[${e}]`]=r.join(",")}))}if(isParamsList(e)){if(e.sort){if(Array.isArray(e.sort))i["sort"]=e.sort.join(",");else i["sort"]=Object.entries(e.sort).map((([e,i])=>`${i==="desc"?"-":""}${e}`)).join(",")}if(e.pageNumber)i["page[number]"]=String(e.pageNumber);if(e.pageSize)i["page[size]"]=String(e.pageSize);if(e.filters){Object.entries(e.filters).forEach((([e,r])=>{i[`filter[q][${e}]`]=String(r)}))}}return i};export{generateQueryStringParams};
1
+ const s=r=>r.filters||r.pageNumber||r.pageSize||r.sort,n=r=>{const i={};return r&&(r.include&&(i.include=r.include.join(",")),r.fields&&Object.entries(r.fields).forEach(([t,e])=>{i[`fields[${t}]`]=e.join(",")}),s(r)&&(r.sort&&(Array.isArray(r.sort)?i.sort=r.sort.join(","):i.sort=Object.entries(r.sort).map(([t,e])=>`${e==="desc"?"-":""}${t}`).join(",")),r.pageNumber&&(i["page[number]"]=String(r.pageNumber)),r.pageSize&&(i["page[size]"]=String(r.pageSize)),r.filters&&Object.entries(r.filters).forEach(([t,e])=>{i[`filter[q][${t}]`]=String(e)}))),i};export{n as generateQueryStringParams};
@@ -1 +1 @@
1
- var __classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(e,t,r,i,s){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var __classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)};var _ResourceAdapter_client,_ResourceAdapter_config;import ApiClient from"./client";import{denormalize,normalize}from"./jsonapi";import{generateQueryStringParams}from"./query";import config from"./config";class ListResponse extends Array{constructor(e,t){super(...t||[]);this.meta=e}first(){return this.length?this[0]:undefined}last(){return this.length?this[this.length-1]:undefined}get(e){return this.length&&e>=0?this[e]:undefined}}class ResourceAdapter{constructor(e){_ResourceAdapter_client.set(this,void 0);_ResourceAdapter_config.set(this,{});__classPrivateFieldSet(this,_ResourceAdapter_client,ApiClient.create(e),"f");this.config(e)}get interceptors(){return __classPrivateFieldGet(this,_ResourceAdapter_client,"f").interceptors}config(e){if(!e)return;__classPrivateFieldGet(this,_ResourceAdapter_client,"f").config(e);return}async singleton(e,t,r){const i=generateQueryStringParams(t);if(r===null||r===void 0?void 0:r.params)Object.assign(i,r===null||r===void 0?void 0:r.params);const s=await __classPrivateFieldGet(this,_ResourceAdapter_client,"f").request("get",`${e.type}`,undefined,Object.assign(Object.assign({},r),{params:i}));const a=denormalize(s);return a}async retrieve(e,t,r){const i=generateQueryStringParams(t);if(r===null||r===void 0?void 0:r.params)Object.assign(i,r===null||r===void 0?void 0:r.params);const s=await __classPrivateFieldGet(this,_ResourceAdapter_client,"f").request("get",`${e.type}/${e.id}`,undefined,Object.assign(Object.assign({},r),{params:i}));const a=denormalize(s);return a}async list(e,t,r){var i,s;const a=generateQueryStringParams(t);if(r===null||r===void 0?void 0:r.params)Object.assign(a,r===null||r===void 0?void 0:r.params);const n=await __classPrivateFieldGet(this,_ResourceAdapter_client,"f").request("get",`${e.type}`,undefined,Object.assign(Object.assign({},r),{params:a}));const o=denormalize(n);const c={pageCount:Number((i=n.meta)===null||i===void 0?void 0:i.page_count),recordCount:Number((s=n.meta)===null||s===void 0?void 0:s.record_count),currentPage:(t===null||t===void 0?void 0:t.pageNumber)||config.default.pageNumber,recordsPerPage:(t===null||t===void 0?void 0:t.pageSize)||config.default.pageSize};return new ListResponse(c,o)}async create(e,t,r){const i=generateQueryStringParams(t);if(r===null||r===void 0?void 0:r.params)Object.assign(i,r===null||r===void 0?void 0:r.params);const s=normalize(e);const a=await __classPrivateFieldGet(this,_ResourceAdapter_client,"f").request("post",e.type,s,Object.assign(Object.assign({},r),{params:i}));const n=denormalize(a);return n}async update(e,t,r){const i=generateQueryStringParams(t);if(r===null||r===void 0?void 0:r.params)Object.assign(i,r===null||r===void 0?void 0:r.params);const s=normalize(e);const a=await __classPrivateFieldGet(this,_ResourceAdapter_client,"f").request("patch",`${e.type}/${e.id}`,s,Object.assign(Object.assign({},r),{params:i}));const n=denormalize(a);return n}async delete(e,t){await __classPrivateFieldGet(this,_ResourceAdapter_client,"f").request("delete",`${e.type}/${e.id}`,undefined,t)}}_ResourceAdapter_client=new WeakMap,_ResourceAdapter_config=new WeakMap;class ApiResource{constructor(e){this.resources=e}}export default ResourceAdapter;export{ApiResource};
1
+ var f=this&&this.__classPrivateFieldSet||function(a,e,r,t,s){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?a!==e||!s:!e.has(a))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?s.call(a,r):s?s.value=r:e.set(a,r),r},o=this&&this.__classPrivateFieldGet||function(a,e,r,t){if(r==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?a!==e||!t:!e.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?t:r==="a"?t.call(a):t?t.value:e.get(a)},n,p;import w from"./client";import{denormalize as l,normalize as h}from"./jsonapi";import{generateQueryStringParams as u}from"./query";import g from"./config";class b extends Array{constructor(e,r){super(...r||[]);this.meta=e}first(){return this.length?this[0]:void 0}last(){return this.length?this[this.length-1]:void 0}get(e){return this.length&&e>=0?this[e]:void 0}}class y{constructor(e){n.set(this,void 0),p.set(this,{}),f(this,n,w.create(e),"f"),this.config(e)}get interceptors(){return o(this,n,"f").interceptors}config(e){!e||o(this,n,"f").config(e)}async singleton(e,r,t){const s=u(r);(t==null?void 0:t.params)&&Object.assign(s,t==null?void 0:t.params);const i=await o(this,n,"f").request("get",`${e.type}`,void 0,Object.assign(Object.assign({},t),{params:s}));return l(i)}async retrieve(e,r,t){const s=u(r);(t==null?void 0:t.params)&&Object.assign(s,t==null?void 0:t.params);const i=await o(this,n,"f").request("get",`${e.type}/${e.id}`,void 0,Object.assign(Object.assign({},t),{params:s}));return l(i)}async list(e,r,t){var s,i;const c=u(r);(t==null?void 0:t.params)&&Object.assign(c,t==null?void 0:t.params);const d=await o(this,n,"f").request("get",`${e.type}`,void 0,Object.assign(Object.assign({},t),{params:c})),m=l(d),v={pageCount:Number((s=d.meta)===null||s===void 0?void 0:s.page_count),recordCount:Number((i=d.meta)===null||i===void 0?void 0:i.record_count),currentPage:(r==null?void 0:r.pageNumber)||g.default.pageNumber,recordsPerPage:(r==null?void 0:r.pageSize)||g.default.pageSize};return new b(v,m)}async create(e,r,t){const s=u(r);(t==null?void 0:t.params)&&Object.assign(s,t==null?void 0:t.params);const i=h(e),c=await o(this,n,"f").request("post",e.type,i,Object.assign(Object.assign({},t),{params:s}));return l(c)}async update(e,r,t){const s=u(r);(t==null?void 0:t.params)&&Object.assign(s,t==null?void 0:t.params);const i=h(e),c=await o(this,n,"f").request("patch",`${e.type}/${e.id}`,i,Object.assign(Object.assign({},t),{params:s}));return l(c)}async delete(e,r){await o(this,n,"f").request("delete",`${e.type}/${e.id}`,void 0,r)}}n=new WeakMap,p=new WeakMap;class j{constructor(e){this.resources=e}}export default y;export{j as ApiResource};
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Addresses extends ApiResource{async list(e,s){return this.resources.list({type:Addresses.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Addresses.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:Addresses.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Addresses.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:Addresses.TYPE,id:e},s)}isAddress(e){return e.type&&e.type===Addresses.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Addresses.TYPE}:{id:e.id,type:Addresses.TYPE}}type(){return Addresses.TYPE}}Addresses.TYPE="addresses";export default Addresses;
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)}isAddress(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="addresses";export default s;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Adjustments extends ApiResource{async list(e,t){return this.resources.list({type:Adjustments.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Adjustments.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:Adjustments.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Adjustments.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:Adjustments.TYPE,id:e},t)}isAdjustment(e){return e.type&&e.type===Adjustments.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Adjustments.TYPE}:{id:e.id,type:Adjustments.TYPE}}type(){return Adjustments.TYPE}}Adjustments.TYPE="adjustments";export default Adjustments;
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)}isAdjustment(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="adjustments";export default t;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class AdyenGateways extends ApiResource{async list(e,t){return this.resources.list({type:AdyenGateways.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:AdyenGateways.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:AdyenGateways.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:AdyenGateways.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:AdyenGateways.TYPE,id:e},t)}isAdyenGateway(e){return e.type&&e.type===AdyenGateways.TYPE}relationship(e){return typeof e==="string"?{id:e,type:AdyenGateways.TYPE}:{id:e.id,type:AdyenGateways.TYPE}}type(){return AdyenGateways.TYPE}}AdyenGateways.TYPE="adyen_gateways";export default AdyenGateways;
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)}isAdyenGateway(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="adyen_gateways";export default s;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class AdyenPayments extends ApiResource{async list(e,t){return this.resources.list({type:AdyenPayments.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:AdyenPayments.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:AdyenPayments.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:AdyenPayments.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:AdyenPayments.TYPE,id:e},t)}isAdyenPayment(e){return e.type&&e.type===AdyenPayments.TYPE}relationship(e){return typeof e==="string"?{id:e,type:AdyenPayments.TYPE}:{id:e.id,type:AdyenPayments.TYPE}}type(){return AdyenPayments.TYPE}}AdyenPayments.TYPE="adyen_payments";export default AdyenPayments;
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)}isAdyenPayment(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="adyen_payments";export default s;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Applications extends ApiResource{async retrieve(i,p){return this.resources.singleton({type:Applications.TYPE},i,p)}isApplication(i){return i.type&&i.type===Applications.TYPE}relationship(i){return typeof i==="string"?{id:i,type:Applications.TYPE}:{id:i.id,type:Applications.TYPE}}type(){return Applications.TYPE}}Applications.TYPE="application";export default Applications;
1
+ import{ApiResource as r}from"../resource";class t extends r{async retrieve(e,i){return this.resources.singleton({type:t.TYPE},e,i)}isApplication(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="application";export default t;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Attachments extends ApiResource{async list(t,e){return this.resources.list({type:Attachments.TYPE},t,e)}async create(t,e,s){return this.resources.create(Object.assign(Object.assign({},t),{type:Attachments.TYPE}),e,s)}async retrieve(t,e,s){return this.resources.retrieve({type:Attachments.TYPE,id:t},e,s)}async update(t,e,s){return this.resources.update(Object.assign(Object.assign({},t),{type:Attachments.TYPE}),e,s)}async delete(t,e){await this.resources.delete({type:Attachments.TYPE,id:t},e)}isAttachment(t){return t.type&&t.type===Attachments.TYPE}relationship(t){return typeof t==="string"?{id:t,type:Attachments.TYPE}:{id:t.id,type:Attachments.TYPE}}type(){return Attachments.TYPE}}Attachments.TYPE="attachments";export default Attachments;
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)}isAttachment(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="attachments";export default t;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Authorizations extends ApiResource{async list(t,i){return this.resources.list({type:Authorizations.TYPE},t,i)}async retrieve(t,i,r){return this.resources.retrieve({type:Authorizations.TYPE,id:t},i,r)}async update(t,i,r){return this.resources.update(Object.assign(Object.assign({},t),{type:Authorizations.TYPE}),i,r)}isAuthorization(t){return t.type&&t.type===Authorizations.TYPE}relationship(t){return typeof t==="string"?{id:t,type:Authorizations.TYPE}:{id:t.id,type:Authorizations.TYPE}}type(){return Authorizations.TYPE}}Authorizations.TYPE="authorizations";export default Authorizations;
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 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)}isAuthorization(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="authorizations";export default t;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class AvalaraAccounts extends ApiResource{async list(a,e){return this.resources.list({type:AvalaraAccounts.TYPE},a,e)}async create(a,e,t){return this.resources.create(Object.assign(Object.assign({},a),{type:AvalaraAccounts.TYPE}),e,t)}async retrieve(a,e,t){return this.resources.retrieve({type:AvalaraAccounts.TYPE,id:a},e,t)}async update(a,e,t){return this.resources.update(Object.assign(Object.assign({},a),{type:AvalaraAccounts.TYPE}),e,t)}async delete(a,e){await this.resources.delete({type:AvalaraAccounts.TYPE,id:a},e)}isAvalaraAccount(a){return a.type&&a.type===AvalaraAccounts.TYPE}relationship(a){return typeof a==="string"?{id:a,type:AvalaraAccounts.TYPE}:{id:a.id,type:AvalaraAccounts.TYPE}}type(){return AvalaraAccounts.TYPE}}AvalaraAccounts.TYPE="avalara_accounts";export default AvalaraAccounts;
1
+ import{ApiResource as a}from"../resource";class r extends a{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)}isAvalaraAccount(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="avalara_accounts";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class BillingInfoValidationRules extends ApiResource{async list(i,e){return this.resources.list({type:BillingInfoValidationRules.TYPE},i,e)}async create(i,e,l){return this.resources.create(Object.assign(Object.assign({},i),{type:BillingInfoValidationRules.TYPE}),e,l)}async retrieve(i,e,l){return this.resources.retrieve({type:BillingInfoValidationRules.TYPE,id:i},e,l)}async update(i,e,l){return this.resources.update(Object.assign(Object.assign({},i),{type:BillingInfoValidationRules.TYPE}),e,l)}async delete(i,e){await this.resources.delete({type:BillingInfoValidationRules.TYPE,id:i},e)}isBillingInfoValidationRule(i){return i.type&&i.type===BillingInfoValidationRules.TYPE}relationship(i){return typeof i==="string"?{id:i,type:BillingInfoValidationRules.TYPE}:{id:i.id,type:BillingInfoValidationRules.TYPE}}type(){return BillingInfoValidationRules.TYPE}}BillingInfoValidationRules.TYPE="billing_info_validation_rules";export default BillingInfoValidationRules;
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)}isBillingInfoValidationRule(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="billing_info_validation_rules";export default s;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class BingGeocoders extends ApiResource{async list(e,r){return this.resources.list({type:BingGeocoders.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:BingGeocoders.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:BingGeocoders.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:BingGeocoders.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:BingGeocoders.TYPE,id:e},r)}isBingGeocoder(e){return e.type&&e.type===BingGeocoders.TYPE}relationship(e){return typeof e==="string"?{id:e,type:BingGeocoders.TYPE}:{id:e.id,type:BingGeocoders.TYPE}}type(){return BingGeocoders.TYPE}}BingGeocoders.TYPE="bing_geocoders";export default BingGeocoders;
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)}isBingGeocoder(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="bing_geocoders";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class BraintreeGateways extends ApiResource{async list(e,t){return this.resources.list({type:BraintreeGateways.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:BraintreeGateways.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:BraintreeGateways.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:BraintreeGateways.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:BraintreeGateways.TYPE,id:e},t)}isBraintreeGateway(e){return e.type&&e.type===BraintreeGateways.TYPE}relationship(e){return typeof e==="string"?{id:e,type:BraintreeGateways.TYPE}:{id:e.id,type:BraintreeGateways.TYPE}}type(){return BraintreeGateways.TYPE}}BraintreeGateways.TYPE="braintree_gateways";export default BraintreeGateways;
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)}isBraintreeGateway(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="braintree_gateways";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class BraintreePayments extends ApiResource{async list(e,t){return this.resources.list({type:BraintreePayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:BraintreePayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:BraintreePayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:BraintreePayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:BraintreePayments.TYPE,id:e},t)}isBraintreePayment(e){return e.type&&e.type===BraintreePayments.TYPE}relationship(e){return typeof e==="string"?{id:e,type:BraintreePayments.TYPE}:{id:e.id,type:BraintreePayments.TYPE}}type(){return BraintreePayments.TYPE}}BraintreePayments.TYPE="braintree_payments";export default BraintreePayments;
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)}isBraintreePayment(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="braintree_payments";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Bundles extends ApiResource{async list(e,s){return this.resources.list({type:Bundles.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:Bundles.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:Bundles.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:Bundles.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:Bundles.TYPE,id:e},s)}isBundle(e){return e.type&&e.type===Bundles.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Bundles.TYPE}:{id:e.id,type:Bundles.TYPE}}type(){return Bundles.TYPE}}Bundles.TYPE="bundles";export default Bundles;
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)}isBundle(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="bundles";export default s;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Captures extends ApiResource{async list(e,t){return this.resources.list({type:Captures.TYPE},e,t)}async retrieve(e,t,r){return this.resources.retrieve({type:Captures.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Captures.TYPE}),t,r)}isCapture(e){return e.type&&e.type===Captures.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Captures.TYPE}:{id:e.id,type:Captures.TYPE}}type(){return Captures.TYPE}}Captures.TYPE="captures";export default Captures;
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)}isCapture(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="captures";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class CarrierAccounts extends ApiResource{async list(r,e){return this.resources.list({type:CarrierAccounts.TYPE},r,e)}async retrieve(r,e,t){return this.resources.retrieve({type:CarrierAccounts.TYPE,id:r},e,t)}isCarrierAccount(r){return r.type&&r.type===CarrierAccounts.TYPE}relationship(r){return typeof r==="string"?{id:r,type:CarrierAccounts.TYPE}:{id:r.id,type:CarrierAccounts.TYPE}}type(){return CarrierAccounts.TYPE}}CarrierAccounts.TYPE="carrier_accounts";export default CarrierAccounts;
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)}isCarrierAccount(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="carrier_accounts";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class CheckoutComGateways extends ApiResource{async list(e,t){return this.resources.list({type:CheckoutComGateways.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:CheckoutComGateways.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:CheckoutComGateways.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:CheckoutComGateways.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:CheckoutComGateways.TYPE,id:e},t)}isCheckoutComGateway(e){return e.type&&e.type===CheckoutComGateways.TYPE}relationship(e){return typeof e==="string"?{id:e,type:CheckoutComGateways.TYPE}:{id:e.id,type:CheckoutComGateways.TYPE}}type(){return CheckoutComGateways.TYPE}}CheckoutComGateways.TYPE="checkout_com_gateways";export default CheckoutComGateways;
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)}isCheckoutComGateway(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="checkout_com_gateways";export default t;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class CheckoutComPayments extends ApiResource{async list(e,t){return this.resources.list({type:CheckoutComPayments.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:CheckoutComPayments.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:CheckoutComPayments.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:CheckoutComPayments.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:CheckoutComPayments.TYPE,id:e},t)}isCheckoutComPayment(e){return e.type&&e.type===CheckoutComPayments.TYPE}relationship(e){return typeof e==="string"?{id:e,type:CheckoutComPayments.TYPE}:{id:e.id,type:CheckoutComPayments.TYPE}}type(){return CheckoutComPayments.TYPE}}CheckoutComPayments.TYPE="checkout_com_payments";export default CheckoutComPayments;
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)}isCheckoutComPayment(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="checkout_com_payments";export default t;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class CouponCodesPromotionRules extends ApiResource{async list(o,e){return this.resources.list({type:CouponCodesPromotionRules.TYPE},o,e)}async create(o,e,s){return this.resources.create(Object.assign(Object.assign({},o),{type:CouponCodesPromotionRules.TYPE}),e,s)}async retrieve(o,e,s){return this.resources.retrieve({type:CouponCodesPromotionRules.TYPE,id:o},e,s)}async update(o,e,s){return this.resources.update(Object.assign(Object.assign({},o),{type:CouponCodesPromotionRules.TYPE}),e,s)}async delete(o,e){await this.resources.delete({type:CouponCodesPromotionRules.TYPE,id:o},e)}isCouponCodesPromotionRule(o){return o.type&&o.type===CouponCodesPromotionRules.TYPE}relationship(o){return typeof o==="string"?{id:o,type:CouponCodesPromotionRules.TYPE}:{id:o.id,type:CouponCodesPromotionRules.TYPE}}type(){return CouponCodesPromotionRules.TYPE}}CouponCodesPromotionRules.TYPE="coupon_codes_promotion_rules";export default CouponCodesPromotionRules;
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)}isCouponCodesPromotionRule(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="coupon_codes_promotion_rules";export default s;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class CouponRecipients extends ApiResource{async list(e,t){return this.resources.list({type:CouponRecipients.TYPE},e,t)}async create(e,t,i){return this.resources.create(Object.assign(Object.assign({},e),{type:CouponRecipients.TYPE}),t,i)}async retrieve(e,t,i){return this.resources.retrieve({type:CouponRecipients.TYPE,id:e},t,i)}async update(e,t,i){return this.resources.update(Object.assign(Object.assign({},e),{type:CouponRecipients.TYPE}),t,i)}async delete(e,t){await this.resources.delete({type:CouponRecipients.TYPE,id:e},t)}isCouponRecipient(e){return e.type&&e.type===CouponRecipients.TYPE}relationship(e){return typeof e==="string"?{id:e,type:CouponRecipients.TYPE}:{id:e.id,type:CouponRecipients.TYPE}}type(){return CouponRecipients.TYPE}}CouponRecipients.TYPE="coupon_recipients";export default CouponRecipients;
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)}isCouponRecipient(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="coupon_recipients";export default s;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- 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,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- 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,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)}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,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- 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 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)}isCustomerGroup(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="customer_groups";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- 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,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- 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,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- 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,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- 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,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- 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;