@commercelayer/sdk 7.0.0-beta.1 → 7.0.0-beta.10

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 (601) hide show
  1. package/lib/api-BYcswOJ0.d.cts +16784 -0
  2. package/lib/api-Cknm0QL_.d.ts +16784 -0
  3. package/lib/api.cjs +936 -0
  4. package/lib/api.d.cts +4 -0
  5. package/lib/api.d.ts +4 -0
  6. package/lib/api.js +275 -0
  7. package/lib/client.cjs +170 -0
  8. package/lib/client.d.cts +36 -0
  9. package/lib/client.d.ts +36 -0
  10. package/lib/client.js +161 -0
  11. package/lib/commercelayer.cjs +798 -0
  12. package/lib/commercelayer.d.cts +167 -0
  13. package/lib/commercelayer.d.ts +167 -0
  14. package/lib/commercelayer.js +768 -0
  15. package/lib/common.cjs +17 -0
  16. package/lib/common.d.cts +13 -0
  17. package/lib/common.d.ts +13 -0
  18. package/lib/common.js +13 -0
  19. package/lib/config.cjs +21 -0
  20. package/lib/config.d.cts +19 -0
  21. package/lib/config.d.ts +19 -0
  22. package/lib/config.js +17 -0
  23. package/lib/debug.cjs +19 -0
  24. package/lib/debug.d.cts +4 -0
  25. package/lib/debug.d.ts +4 -0
  26. package/lib/debug.js +15 -0
  27. package/lib/error.cjs +97 -0
  28. package/lib/error.d.cts +35 -0
  29. package/lib/error.d.ts +35 -0
  30. package/lib/error.js +91 -0
  31. package/lib/fetch.cjs +83 -0
  32. package/lib/fetch.d.cts +1 -0
  33. package/lib/fetch.d.ts +1 -0
  34. package/lib/fetch.js +76 -0
  35. package/lib/index.cjs +32 -2
  36. package/lib/index.d.cts +8 -16916
  37. package/lib/index.d.ts +8 -16916
  38. package/lib/index.js +3 -2
  39. package/lib/instance.cjs +272 -0
  40. package/lib/instance.d.cts +141 -0
  41. package/lib/instance.d.ts +141 -0
  42. package/lib/instance.js +139 -0
  43. package/lib/interceptor-5MISI1yn.d.cts +54 -0
  44. package/lib/interceptor-5MISI1yn.d.ts +54 -0
  45. package/lib/interceptor.cjs +2 -0
  46. package/lib/interceptor.d.cts +1 -0
  47. package/lib/interceptor.d.ts +1 -0
  48. package/lib/interceptor.js +1 -0
  49. package/lib/jsonapi.cjs +79 -0
  50. package/lib/jsonapi.d.cts +11 -0
  51. package/lib/jsonapi.d.ts +11 -0
  52. package/lib/jsonapi.js +71 -0
  53. package/lib/model.cjs +2 -0
  54. package/lib/model.d.cts +4 -0
  55. package/lib/model.d.ts +4 -0
  56. package/lib/model.js +1 -0
  57. package/lib/query.cjs +64 -0
  58. package/lib/query.d.cts +4 -0
  59. package/lib/query.d.ts +4 -0
  60. package/lib/query.js +56 -0
  61. package/lib/resource.cjs +222 -0
  62. package/lib/resource.d.cts +4 -0
  63. package/lib/resource.d.ts +4 -0
  64. package/lib/resource.js +209 -0
  65. package/lib/resources/addresses.cjs +53 -0
  66. package/lib/resources/addresses.d.cts +4 -0
  67. package/lib/resources/addresses.d.ts +4 -0
  68. package/lib/resources/addresses.js +49 -0
  69. package/lib/resources/adjustments.cjs +41 -0
  70. package/lib/resources/adjustments.d.cts +4 -0
  71. package/lib/resources/adjustments.d.ts +4 -0
  72. package/lib/resources/adjustments.js +37 -0
  73. package/lib/resources/adyen_gateways.cjs +49 -0
  74. package/lib/resources/adyen_gateways.d.cts +4 -0
  75. package/lib/resources/adyen_gateways.d.ts +4 -0
  76. package/lib/resources/adyen_gateways.js +45 -0
  77. package/lib/resources/adyen_payments.cjs +55 -0
  78. package/lib/resources/adyen_payments.d.cts +4 -0
  79. package/lib/resources/adyen_payments.d.ts +4 -0
  80. package/lib/resources/adyen_payments.js +51 -0
  81. package/lib/resources/applications.cjs +31 -0
  82. package/lib/resources/applications.d.cts +4 -0
  83. package/lib/resources/applications.d.ts +4 -0
  84. package/lib/resources/applications.js +27 -0
  85. package/lib/resources/attachments.cjs +37 -0
  86. package/lib/resources/attachments.d.cts +4 -0
  87. package/lib/resources/attachments.d.ts +4 -0
  88. package/lib/resources/attachments.js +33 -0
  89. package/lib/resources/authorizations.cjs +70 -0
  90. package/lib/resources/authorizations.d.cts +4 -0
  91. package/lib/resources/authorizations.d.ts +4 -0
  92. package/lib/resources/authorizations.js +66 -0
  93. package/lib/resources/avalara_accounts.cjs +57 -0
  94. package/lib/resources/avalara_accounts.d.cts +4 -0
  95. package/lib/resources/avalara_accounts.d.ts +4 -0
  96. package/lib/resources/avalara_accounts.js +53 -0
  97. package/lib/resources/axerve_gateways.cjs +49 -0
  98. package/lib/resources/axerve_gateways.d.cts +4 -0
  99. package/lib/resources/axerve_gateways.d.ts +4 -0
  100. package/lib/resources/axerve_gateways.js +45 -0
  101. package/lib/resources/axerve_payments.cjs +52 -0
  102. package/lib/resources/axerve_payments.d.cts +4 -0
  103. package/lib/resources/axerve_payments.d.ts +4 -0
  104. package/lib/resources/axerve_payments.js +48 -0
  105. package/lib/resources/bing_geocoders.cjs +49 -0
  106. package/lib/resources/bing_geocoders.d.cts +4 -0
  107. package/lib/resources/bing_geocoders.d.ts +4 -0
  108. package/lib/resources/bing_geocoders.js +45 -0
  109. package/lib/resources/braintree_gateways.cjs +49 -0
  110. package/lib/resources/braintree_gateways.d.cts +4 -0
  111. package/lib/resources/braintree_gateways.d.ts +4 -0
  112. package/lib/resources/braintree_gateways.js +45 -0
  113. package/lib/resources/braintree_payments.cjs +49 -0
  114. package/lib/resources/braintree_payments.d.cts +4 -0
  115. package/lib/resources/braintree_payments.d.ts +4 -0
  116. package/lib/resources/braintree_payments.js +45 -0
  117. package/lib/resources/bundles.cjs +71 -0
  118. package/lib/resources/bundles.d.cts +4 -0
  119. package/lib/resources/bundles.d.ts +4 -0
  120. package/lib/resources/bundles.js +67 -0
  121. package/lib/resources/buy_x_pay_y_promotions.cjs +91 -0
  122. package/lib/resources/buy_x_pay_y_promotions.d.cts +4 -0
  123. package/lib/resources/buy_x_pay_y_promotions.d.ts +4 -0
  124. package/lib/resources/buy_x_pay_y_promotions.js +87 -0
  125. package/lib/resources/captures.cjs +71 -0
  126. package/lib/resources/captures.d.cts +4 -0
  127. package/lib/resources/captures.d.ts +4 -0
  128. package/lib/resources/captures.js +67 -0
  129. package/lib/resources/carrier_accounts.cjs +49 -0
  130. package/lib/resources/carrier_accounts.d.cts +4 -0
  131. package/lib/resources/carrier_accounts.d.ts +4 -0
  132. package/lib/resources/carrier_accounts.js +45 -0
  133. package/lib/resources/checkout_com_gateways.cjs +49 -0
  134. package/lib/resources/checkout_com_gateways.d.cts +4 -0
  135. package/lib/resources/checkout_com_gateways.d.ts +4 -0
  136. package/lib/resources/checkout_com_gateways.js +45 -0
  137. package/lib/resources/checkout_com_payments.cjs +55 -0
  138. package/lib/resources/checkout_com_payments.d.cts +4 -0
  139. package/lib/resources/checkout_com_payments.d.ts +4 -0
  140. package/lib/resources/checkout_com_payments.js +51 -0
  141. package/lib/resources/cleanups.cjs +48 -0
  142. package/lib/resources/cleanups.d.cts +4 -0
  143. package/lib/resources/cleanups.d.ts +4 -0
  144. package/lib/resources/cleanups.js +44 -0
  145. package/lib/resources/coupon_codes_promotion_rules.cjs +45 -0
  146. package/lib/resources/coupon_codes_promotion_rules.d.cts +4 -0
  147. package/lib/resources/coupon_codes_promotion_rules.d.ts +4 -0
  148. package/lib/resources/coupon_codes_promotion_rules.js +41 -0
  149. package/lib/resources/coupon_recipients.cjs +49 -0
  150. package/lib/resources/coupon_recipients.d.cts +4 -0
  151. package/lib/resources/coupon_recipients.d.ts +4 -0
  152. package/lib/resources/coupon_recipients.js +45 -0
  153. package/lib/resources/coupons.cjs +57 -0
  154. package/lib/resources/coupons.d.cts +4 -0
  155. package/lib/resources/coupons.d.ts +4 -0
  156. package/lib/resources/coupons.js +53 -0
  157. package/lib/resources/custom_promotion_rules.cjs +41 -0
  158. package/lib/resources/custom_promotion_rules.d.cts +4 -0
  159. package/lib/resources/custom_promotion_rules.d.ts +4 -0
  160. package/lib/resources/custom_promotion_rules.js +37 -0
  161. package/lib/resources/customer_addresses.cjs +53 -0
  162. package/lib/resources/customer_addresses.d.cts +4 -0
  163. package/lib/resources/customer_addresses.d.ts +4 -0
  164. package/lib/resources/customer_addresses.js +49 -0
  165. package/lib/resources/customer_groups.cjs +53 -0
  166. package/lib/resources/customer_groups.d.cts +4 -0
  167. package/lib/resources/customer_groups.d.ts +4 -0
  168. package/lib/resources/customer_groups.js +49 -0
  169. package/lib/resources/customer_password_resets.cjs +48 -0
  170. package/lib/resources/customer_password_resets.d.cts +4 -0
  171. package/lib/resources/customer_password_resets.d.ts +4 -0
  172. package/lib/resources/customer_password_resets.js +44 -0
  173. package/lib/resources/customer_payment_sources.cjs +49 -0
  174. package/lib/resources/customer_payment_sources.d.cts +4 -0
  175. package/lib/resources/customer_payment_sources.d.ts +4 -0
  176. package/lib/resources/customer_payment_sources.js +45 -0
  177. package/lib/resources/customer_subscriptions.cjs +49 -0
  178. package/lib/resources/customer_subscriptions.d.cts +4 -0
  179. package/lib/resources/customer_subscriptions.d.ts +4 -0
  180. package/lib/resources/customer_subscriptions.js +45 -0
  181. package/lib/resources/customers.cjs +81 -0
  182. package/lib/resources/customers.d.cts +4 -0
  183. package/lib/resources/customers.d.ts +4 -0
  184. package/lib/resources/customers.js +77 -0
  185. package/lib/resources/delivery_lead_times.cjs +53 -0
  186. package/lib/resources/delivery_lead_times.d.cts +4 -0
  187. package/lib/resources/delivery_lead_times.d.ts +4 -0
  188. package/lib/resources/delivery_lead_times.js +49 -0
  189. package/lib/resources/discount_engine_items.cjs +36 -0
  190. package/lib/resources/discount_engine_items.d.cts +4 -0
  191. package/lib/resources/discount_engine_items.d.ts +4 -0
  192. package/lib/resources/discount_engine_items.js +32 -0
  193. package/lib/resources/discount_engines.cjs +44 -0
  194. package/lib/resources/discount_engines.d.cts +4 -0
  195. package/lib/resources/discount_engines.d.ts +4 -0
  196. package/lib/resources/discount_engines.js +40 -0
  197. package/lib/resources/easypost_pickups.cjs +52 -0
  198. package/lib/resources/easypost_pickups.d.cts +4 -0
  199. package/lib/resources/easypost_pickups.d.ts +4 -0
  200. package/lib/resources/easypost_pickups.js +48 -0
  201. package/lib/resources/event_callbacks.cjs +32 -0
  202. package/lib/resources/event_callbacks.d.cts +4 -0
  203. package/lib/resources/event_callbacks.d.ts +4 -0
  204. package/lib/resources/event_callbacks.js +28 -0
  205. package/lib/resources/events.cjs +42 -0
  206. package/lib/resources/events.d.cts +4 -0
  207. package/lib/resources/events.d.ts +4 -0
  208. package/lib/resources/events.js +38 -0
  209. package/lib/resources/exports.cjs +48 -0
  210. package/lib/resources/exports.d.cts +4 -0
  211. package/lib/resources/exports.d.ts +4 -0
  212. package/lib/resources/exports.js +44 -0
  213. package/lib/resources/external_gateways.cjs +52 -0
  214. package/lib/resources/external_gateways.d.cts +4 -0
  215. package/lib/resources/external_gateways.d.ts +4 -0
  216. package/lib/resources/external_gateways.js +48 -0
  217. package/lib/resources/external_payments.cjs +53 -0
  218. package/lib/resources/external_payments.d.cts +4 -0
  219. package/lib/resources/external_payments.d.ts +4 -0
  220. package/lib/resources/external_payments.js +49 -0
  221. package/lib/resources/external_promotions.cjs +94 -0
  222. package/lib/resources/external_promotions.d.cts +4 -0
  223. package/lib/resources/external_promotions.d.ts +4 -0
  224. package/lib/resources/external_promotions.js +90 -0
  225. package/lib/resources/external_tax_calculators.cjs +56 -0
  226. package/lib/resources/external_tax_calculators.d.cts +4 -0
  227. package/lib/resources/external_tax_calculators.d.ts +4 -0
  228. package/lib/resources/external_tax_calculators.js +52 -0
  229. package/lib/resources/fixed_amount_promotions.cjs +91 -0
  230. package/lib/resources/fixed_amount_promotions.d.cts +4 -0
  231. package/lib/resources/fixed_amount_promotions.d.ts +4 -0
  232. package/lib/resources/fixed_amount_promotions.js +87 -0
  233. package/lib/resources/fixed_price_promotions.cjs +91 -0
  234. package/lib/resources/fixed_price_promotions.d.cts +4 -0
  235. package/lib/resources/fixed_price_promotions.d.ts +4 -0
  236. package/lib/resources/fixed_price_promotions.js +87 -0
  237. package/lib/resources/flex_promotions.cjs +67 -0
  238. package/lib/resources/flex_promotions.d.cts +4 -0
  239. package/lib/resources/flex_promotions.d.ts +4 -0
  240. package/lib/resources/flex_promotions.js +63 -0
  241. package/lib/resources/free_gift_promotions.cjs +91 -0
  242. package/lib/resources/free_gift_promotions.d.cts +4 -0
  243. package/lib/resources/free_gift_promotions.d.ts +4 -0
  244. package/lib/resources/free_gift_promotions.js +87 -0
  245. package/lib/resources/free_shipping_promotions.cjs +87 -0
  246. package/lib/resources/free_shipping_promotions.d.cts +4 -0
  247. package/lib/resources/free_shipping_promotions.d.ts +4 -0
  248. package/lib/resources/free_shipping_promotions.js +83 -0
  249. package/lib/resources/geocoders.cjs +40 -0
  250. package/lib/resources/geocoders.d.cts +4 -0
  251. package/lib/resources/geocoders.d.ts +4 -0
  252. package/lib/resources/geocoders.js +36 -0
  253. package/lib/resources/gift_card_recipients.cjs +49 -0
  254. package/lib/resources/gift_card_recipients.d.cts +4 -0
  255. package/lib/resources/gift_card_recipients.d.ts +4 -0
  256. package/lib/resources/gift_card_recipients.js +45 -0
  257. package/lib/resources/gift_cards.cjs +73 -0
  258. package/lib/resources/gift_cards.d.cts +4 -0
  259. package/lib/resources/gift_cards.d.ts +4 -0
  260. package/lib/resources/gift_cards.js +69 -0
  261. package/lib/resources/google_geocoders.cjs +49 -0
  262. package/lib/resources/google_geocoders.d.cts +4 -0
  263. package/lib/resources/google_geocoders.d.ts +4 -0
  264. package/lib/resources/google_geocoders.js +45 -0
  265. package/lib/resources/imports.cjs +44 -0
  266. package/lib/resources/imports.d.cts +4 -0
  267. package/lib/resources/imports.d.ts +4 -0
  268. package/lib/resources/imports.js +40 -0
  269. package/lib/resources/in_stock_subscriptions.cjs +63 -0
  270. package/lib/resources/in_stock_subscriptions.d.cts +4 -0
  271. package/lib/resources/in_stock_subscriptions.d.ts +4 -0
  272. package/lib/resources/in_stock_subscriptions.js +59 -0
  273. package/lib/resources/inventory_models.cjs +53 -0
  274. package/lib/resources/inventory_models.d.cts +4 -0
  275. package/lib/resources/inventory_models.d.ts +4 -0
  276. package/lib/resources/inventory_models.js +49 -0
  277. package/lib/resources/inventory_return_locations.cjs +49 -0
  278. package/lib/resources/inventory_return_locations.d.cts +4 -0
  279. package/lib/resources/inventory_return_locations.d.ts +4 -0
  280. package/lib/resources/inventory_return_locations.js +45 -0
  281. package/lib/resources/inventory_stock_locations.cjs +49 -0
  282. package/lib/resources/inventory_stock_locations.d.cts +4 -0
  283. package/lib/resources/inventory_stock_locations.d.ts +4 -0
  284. package/lib/resources/inventory_stock_locations.js +45 -0
  285. package/lib/resources/klarna_gateways.cjs +49 -0
  286. package/lib/resources/klarna_gateways.d.cts +4 -0
  287. package/lib/resources/klarna_gateways.d.ts +4 -0
  288. package/lib/resources/klarna_gateways.js +45 -0
  289. package/lib/resources/klarna_payments.cjs +52 -0
  290. package/lib/resources/klarna_payments.d.cts +4 -0
  291. package/lib/resources/klarna_payments.d.ts +4 -0
  292. package/lib/resources/klarna_payments.js +48 -0
  293. package/lib/resources/line_item_options.cjs +53 -0
  294. package/lib/resources/line_item_options.d.cts +4 -0
  295. package/lib/resources/line_item_options.d.ts +4 -0
  296. package/lib/resources/line_item_options.js +49 -0
  297. package/lib/resources/line_items.cjs +82 -0
  298. package/lib/resources/line_items.d.cts +4 -0
  299. package/lib/resources/line_items.d.ts +4 -0
  300. package/lib/resources/line_items.js +78 -0
  301. package/lib/resources/links.cjs +47 -0
  302. package/lib/resources/links.d.cts +4 -0
  303. package/lib/resources/links.d.ts +4 -0
  304. package/lib/resources/links.js +43 -0
  305. package/lib/resources/manual_gateways.cjs +45 -0
  306. package/lib/resources/manual_gateways.d.cts +4 -0
  307. package/lib/resources/manual_gateways.d.ts +4 -0
  308. package/lib/resources/manual_gateways.js +41 -0
  309. package/lib/resources/manual_tax_calculators.cjs +57 -0
  310. package/lib/resources/manual_tax_calculators.d.cts +4 -0
  311. package/lib/resources/manual_tax_calculators.d.ts +4 -0
  312. package/lib/resources/manual_tax_calculators.js +53 -0
  313. package/lib/resources/markets.cjs +91 -0
  314. package/lib/resources/markets.d.cts +4 -0
  315. package/lib/resources/markets.d.ts +4 -0
  316. package/lib/resources/markets.js +87 -0
  317. package/lib/resources/merchants.cjs +49 -0
  318. package/lib/resources/merchants.d.cts +4 -0
  319. package/lib/resources/merchants.d.ts +4 -0
  320. package/lib/resources/merchants.js +45 -0
  321. package/lib/resources/notifications.cjs +37 -0
  322. package/lib/resources/notifications.d.cts +4 -0
  323. package/lib/resources/notifications.d.ts +4 -0
  324. package/lib/resources/notifications.js +33 -0
  325. package/lib/resources/order_amount_promotion_rules.cjs +41 -0
  326. package/lib/resources/order_amount_promotion_rules.d.cts +4 -0
  327. package/lib/resources/order_amount_promotion_rules.d.ts +4 -0
  328. package/lib/resources/order_amount_promotion_rules.js +37 -0
  329. package/lib/resources/order_copies.cjs +53 -0
  330. package/lib/resources/order_copies.d.cts +4 -0
  331. package/lib/resources/order_copies.d.ts +4 -0
  332. package/lib/resources/order_copies.js +49 -0
  333. package/lib/resources/order_factories.cjs +40 -0
  334. package/lib/resources/order_factories.d.cts +4 -0
  335. package/lib/resources/order_factories.d.ts +4 -0
  336. package/lib/resources/order_factories.js +36 -0
  337. package/lib/resources/order_subscription_items.cjs +45 -0
  338. package/lib/resources/order_subscription_items.d.cts +4 -0
  339. package/lib/resources/order_subscription_items.d.ts +4 -0
  340. package/lib/resources/order_subscription_items.js +41 -0
  341. package/lib/resources/order_subscriptions.cjs +97 -0
  342. package/lib/resources/order_subscriptions.d.cts +4 -0
  343. package/lib/resources/order_subscriptions.d.ts +4 -0
  344. package/lib/resources/order_subscriptions.js +93 -0
  345. package/lib/resources/orders.cjs +266 -0
  346. package/lib/resources/orders.d.cts +4 -0
  347. package/lib/resources/orders.d.ts +4 -0
  348. package/lib/resources/orders.js +262 -0
  349. package/lib/resources/organizations.cjs +31 -0
  350. package/lib/resources/organizations.d.cts +4 -0
  351. package/lib/resources/organizations.d.ts +4 -0
  352. package/lib/resources/organizations.js +27 -0
  353. package/lib/resources/packages.cjs +53 -0
  354. package/lib/resources/packages.d.cts +4 -0
  355. package/lib/resources/packages.d.ts +4 -0
  356. package/lib/resources/packages.js +49 -0
  357. package/lib/resources/parcel_line_items.cjs +49 -0
  358. package/lib/resources/parcel_line_items.d.cts +4 -0
  359. package/lib/resources/parcel_line_items.d.ts +4 -0
  360. package/lib/resources/parcel_line_items.js +45 -0
  361. package/lib/resources/parcels.cjs +61 -0
  362. package/lib/resources/parcels.d.cts +4 -0
  363. package/lib/resources/parcels.d.ts +4 -0
  364. package/lib/resources/parcels.js +57 -0
  365. package/lib/resources/payment_gateways.cjs +36 -0
  366. package/lib/resources/payment_gateways.d.cts +4 -0
  367. package/lib/resources/payment_gateways.d.ts +4 -0
  368. package/lib/resources/payment_gateways.js +32 -0
  369. package/lib/resources/payment_methods.cjs +67 -0
  370. package/lib/resources/payment_methods.d.cts +4 -0
  371. package/lib/resources/payment_methods.d.ts +4 -0
  372. package/lib/resources/payment_methods.js +63 -0
  373. package/lib/resources/payment_options.cjs +45 -0
  374. package/lib/resources/payment_options.d.cts +4 -0
  375. package/lib/resources/payment_options.d.ts +4 -0
  376. package/lib/resources/payment_options.js +41 -0
  377. package/lib/resources/paypal_gateways.cjs +49 -0
  378. package/lib/resources/paypal_gateways.d.cts +4 -0
  379. package/lib/resources/paypal_gateways.d.ts +4 -0
  380. package/lib/resources/paypal_gateways.js +45 -0
  381. package/lib/resources/paypal_payments.cjs +49 -0
  382. package/lib/resources/paypal_payments.d.cts +4 -0
  383. package/lib/resources/paypal_payments.d.ts +4 -0
  384. package/lib/resources/paypal_payments.js +45 -0
  385. package/lib/resources/percentage_discount_promotions.cjs +91 -0
  386. package/lib/resources/percentage_discount_promotions.d.cts +4 -0
  387. package/lib/resources/percentage_discount_promotions.d.ts +4 -0
  388. package/lib/resources/percentage_discount_promotions.js +87 -0
  389. package/lib/resources/pickups.cjs +40 -0
  390. package/lib/resources/pickups.d.cts +4 -0
  391. package/lib/resources/pickups.d.ts +4 -0
  392. package/lib/resources/pickups.js +36 -0
  393. package/lib/resources/price_frequency_tiers.cjs +53 -0
  394. package/lib/resources/price_frequency_tiers.d.cts +4 -0
  395. package/lib/resources/price_frequency_tiers.d.ts +4 -0
  396. package/lib/resources/price_frequency_tiers.js +49 -0
  397. package/lib/resources/price_list_schedulers.cjs +59 -0
  398. package/lib/resources/price_list_schedulers.d.cts +4 -0
  399. package/lib/resources/price_list_schedulers.d.ts +4 -0
  400. package/lib/resources/price_list_schedulers.js +55 -0
  401. package/lib/resources/price_lists.cjs +53 -0
  402. package/lib/resources/price_lists.d.cts +4 -0
  403. package/lib/resources/price_lists.d.ts +4 -0
  404. package/lib/resources/price_lists.js +49 -0
  405. package/lib/resources/price_tiers.cjs +40 -0
  406. package/lib/resources/price_tiers.d.cts +4 -0
  407. package/lib/resources/price_tiers.d.ts +4 -0
  408. package/lib/resources/price_tiers.js +36 -0
  409. package/lib/resources/price_volume_tiers.cjs +53 -0
  410. package/lib/resources/price_volume_tiers.d.cts +4 -0
  411. package/lib/resources/price_volume_tiers.d.ts +4 -0
  412. package/lib/resources/price_volume_tiers.js +49 -0
  413. package/lib/resources/prices.cjs +77 -0
  414. package/lib/resources/prices.d.cts +4 -0
  415. package/lib/resources/prices.d.ts +4 -0
  416. package/lib/resources/prices.js +73 -0
  417. package/lib/resources/promotion_rules.cjs +32 -0
  418. package/lib/resources/promotion_rules.d.cts +4 -0
  419. package/lib/resources/promotion_rules.d.ts +4 -0
  420. package/lib/resources/promotion_rules.js +28 -0
  421. package/lib/resources/promotions.cjs +72 -0
  422. package/lib/resources/promotions.d.cts +4 -0
  423. package/lib/resources/promotions.d.ts +4 -0
  424. package/lib/resources/promotions.js +68 -0
  425. package/lib/resources/recurring_order_copies.cjs +53 -0
  426. package/lib/resources/recurring_order_copies.d.cts +4 -0
  427. package/lib/resources/recurring_order_copies.d.ts +4 -0
  428. package/lib/resources/recurring_order_copies.js +49 -0
  429. package/lib/resources/refunds.cjs +58 -0
  430. package/lib/resources/refunds.d.cts +4 -0
  431. package/lib/resources/refunds.d.ts +4 -0
  432. package/lib/resources/refunds.js +54 -0
  433. package/lib/resources/reserved_stocks.cjs +44 -0
  434. package/lib/resources/reserved_stocks.d.cts +4 -0
  435. package/lib/resources/reserved_stocks.d.ts +4 -0
  436. package/lib/resources/reserved_stocks.js +40 -0
  437. package/lib/resources/resource_errors.cjs +28 -0
  438. package/lib/resources/resource_errors.d.cts +4 -0
  439. package/lib/resources/resource_errors.d.ts +4 -0
  440. package/lib/resources/resource_errors.js +24 -0
  441. package/lib/resources/return_line_items.cjs +48 -0
  442. package/lib/resources/return_line_items.d.cts +4 -0
  443. package/lib/resources/return_line_items.d.ts +4 -0
  444. package/lib/resources/return_line_items.js +44 -0
  445. package/lib/resources/returns.cjs +122 -0
  446. package/lib/resources/returns.d.cts +4 -0
  447. package/lib/resources/returns.d.ts +4 -0
  448. package/lib/resources/returns.js +118 -0
  449. package/lib/resources/satispay_gateways.cjs +49 -0
  450. package/lib/resources/satispay_gateways.d.cts +4 -0
  451. package/lib/resources/satispay_gateways.d.ts +4 -0
  452. package/lib/resources/satispay_gateways.js +45 -0
  453. package/lib/resources/satispay_payments.cjs +52 -0
  454. package/lib/resources/satispay_payments.d.cts +4 -0
  455. package/lib/resources/satispay_payments.d.ts +4 -0
  456. package/lib/resources/satispay_payments.js +48 -0
  457. package/lib/resources/shipments.cjs +152 -0
  458. package/lib/resources/shipments.d.cts +4 -0
  459. package/lib/resources/shipments.d.ts +4 -0
  460. package/lib/resources/shipments.js +148 -0
  461. package/lib/resources/shipping_categories.cjs +49 -0
  462. package/lib/resources/shipping_categories.d.cts +4 -0
  463. package/lib/resources/shipping_categories.d.ts +4 -0
  464. package/lib/resources/shipping_categories.js +45 -0
  465. package/lib/resources/shipping_method_tiers.cjs +40 -0
  466. package/lib/resources/shipping_method_tiers.d.cts +4 -0
  467. package/lib/resources/shipping_method_tiers.d.ts +4 -0
  468. package/lib/resources/shipping_method_tiers.js +36 -0
  469. package/lib/resources/shipping_methods.cjs +86 -0
  470. package/lib/resources/shipping_methods.d.cts +4 -0
  471. package/lib/resources/shipping_methods.d.ts +4 -0
  472. package/lib/resources/shipping_methods.js +82 -0
  473. package/lib/resources/shipping_weight_tiers.cjs +49 -0
  474. package/lib/resources/shipping_weight_tiers.d.cts +4 -0
  475. package/lib/resources/shipping_weight_tiers.d.ts +4 -0
  476. package/lib/resources/shipping_weight_tiers.js +45 -0
  477. package/lib/resources/shipping_zones.cjs +45 -0
  478. package/lib/resources/shipping_zones.d.cts +4 -0
  479. package/lib/resources/shipping_zones.d.ts +4 -0
  480. package/lib/resources/shipping_zones.js +41 -0
  481. package/lib/resources/sku_list_items.cjs +49 -0
  482. package/lib/resources/sku_list_items.d.cts +4 -0
  483. package/lib/resources/sku_list_items.d.ts +4 -0
  484. package/lib/resources/sku_list_items.js +45 -0
  485. package/lib/resources/sku_list_promotion_rules.cjs +49 -0
  486. package/lib/resources/sku_list_promotion_rules.d.cts +4 -0
  487. package/lib/resources/sku_list_promotion_rules.d.ts +4 -0
  488. package/lib/resources/sku_list_promotion_rules.js +45 -0
  489. package/lib/resources/sku_lists.cjs +65 -0
  490. package/lib/resources/sku_lists.d.cts +4 -0
  491. package/lib/resources/sku_lists.d.ts +4 -0
  492. package/lib/resources/sku_lists.js +61 -0
  493. package/lib/resources/sku_options.cjs +57 -0
  494. package/lib/resources/sku_options.d.cts +4 -0
  495. package/lib/resources/sku_options.d.ts +4 -0
  496. package/lib/resources/sku_options.js +53 -0
  497. package/lib/resources/skus.cjs +101 -0
  498. package/lib/resources/skus.d.cts +4 -0
  499. package/lib/resources/skus.d.ts +4 -0
  500. package/lib/resources/skus.js +97 -0
  501. package/lib/resources/stock_items.cjs +64 -0
  502. package/lib/resources/stock_items.d.cts +4 -0
  503. package/lib/resources/stock_items.d.ts +4 -0
  504. package/lib/resources/stock_items.js +60 -0
  505. package/lib/resources/stock_line_items.cjs +70 -0
  506. package/lib/resources/stock_line_items.d.cts +4 -0
  507. package/lib/resources/stock_line_items.d.ts +4 -0
  508. package/lib/resources/stock_line_items.js +66 -0
  509. package/lib/resources/stock_locations.cjs +69 -0
  510. package/lib/resources/stock_locations.d.cts +4 -0
  511. package/lib/resources/stock_locations.d.ts +4 -0
  512. package/lib/resources/stock_locations.js +65 -0
  513. package/lib/resources/stock_reservations.cjs +68 -0
  514. package/lib/resources/stock_reservations.d.cts +4 -0
  515. package/lib/resources/stock_reservations.d.ts +4 -0
  516. package/lib/resources/stock_reservations.js +64 -0
  517. package/lib/resources/stock_transfers.cjs +91 -0
  518. package/lib/resources/stock_transfers.d.cts +4 -0
  519. package/lib/resources/stock_transfers.d.ts +4 -0
  520. package/lib/resources/stock_transfers.js +87 -0
  521. package/lib/resources/stores.cjs +65 -0
  522. package/lib/resources/stores.d.cts +4 -0
  523. package/lib/resources/stores.d.ts +4 -0
  524. package/lib/resources/stores.js +61 -0
  525. package/lib/resources/stripe_gateways.cjs +49 -0
  526. package/lib/resources/stripe_gateways.d.cts +4 -0
  527. package/lib/resources/stripe_gateways.d.ts +4 -0
  528. package/lib/resources/stripe_gateways.js +45 -0
  529. package/lib/resources/stripe_payments.cjs +55 -0
  530. package/lib/resources/stripe_payments.d.cts +4 -0
  531. package/lib/resources/stripe_payments.d.ts +4 -0
  532. package/lib/resources/stripe_payments.js +51 -0
  533. package/lib/resources/stripe_tax_accounts.cjs +57 -0
  534. package/lib/resources/stripe_tax_accounts.d.cts +4 -0
  535. package/lib/resources/stripe_tax_accounts.d.ts +4 -0
  536. package/lib/resources/stripe_tax_accounts.js +53 -0
  537. package/lib/resources/subscription_models.cjs +49 -0
  538. package/lib/resources/subscription_models.d.cts +4 -0
  539. package/lib/resources/subscription_models.d.ts +4 -0
  540. package/lib/resources/subscription_models.js +45 -0
  541. package/lib/resources/tags.cjs +37 -0
  542. package/lib/resources/tags.d.cts +4 -0
  543. package/lib/resources/tags.d.ts +4 -0
  544. package/lib/resources/tags.js +33 -0
  545. package/lib/resources/talon_one_accounts.cjs +53 -0
  546. package/lib/resources/talon_one_accounts.d.cts +4 -0
  547. package/lib/resources/talon_one_accounts.d.ts +4 -0
  548. package/lib/resources/talon_one_accounts.js +49 -0
  549. package/lib/resources/tax_calculators.cjs +44 -0
  550. package/lib/resources/tax_calculators.d.cts +4 -0
  551. package/lib/resources/tax_calculators.d.ts +4 -0
  552. package/lib/resources/tax_calculators.js +40 -0
  553. package/lib/resources/tax_categories.cjs +49 -0
  554. package/lib/resources/tax_categories.d.cts +4 -0
  555. package/lib/resources/tax_categories.d.ts +4 -0
  556. package/lib/resources/tax_categories.js +45 -0
  557. package/lib/resources/tax_rules.cjs +45 -0
  558. package/lib/resources/tax_rules.d.cts +4 -0
  559. package/lib/resources/tax_rules.d.ts +4 -0
  560. package/lib/resources/tax_rules.js +41 -0
  561. package/lib/resources/taxjar_accounts.cjs +57 -0
  562. package/lib/resources/taxjar_accounts.d.cts +4 -0
  563. package/lib/resources/taxjar_accounts.d.ts +4 -0
  564. package/lib/resources/taxjar_accounts.js +53 -0
  565. package/lib/resources/transactions.cjs +44 -0
  566. package/lib/resources/transactions.d.cts +4 -0
  567. package/lib/resources/transactions.d.ts +4 -0
  568. package/lib/resources/transactions.js +40 -0
  569. package/lib/resources/versions.cjs +28 -0
  570. package/lib/resources/versions.d.cts +4 -0
  571. package/lib/resources/versions.d.ts +4 -0
  572. package/lib/resources/versions.js +24 -0
  573. package/lib/resources/vertex_accounts.cjs +56 -0
  574. package/lib/resources/vertex_accounts.d.cts +4 -0
  575. package/lib/resources/vertex_accounts.d.ts +4 -0
  576. package/lib/resources/vertex_accounts.js +52 -0
  577. package/lib/resources/voids.cjs +54 -0
  578. package/lib/resources/voids.d.cts +4 -0
  579. package/lib/resources/voids.d.ts +4 -0
  580. package/lib/resources/voids.js +50 -0
  581. package/lib/resources/webhooks.cjs +54 -0
  582. package/lib/resources/webhooks.d.cts +4 -0
  583. package/lib/resources/webhooks.d.ts +4 -0
  584. package/lib/resources/webhooks.js +50 -0
  585. package/lib/resources/wire_transfers.cjs +45 -0
  586. package/lib/resources/wire_transfers.d.cts +4 -0
  587. package/lib/resources/wire_transfers.d.ts +4 -0
  588. package/lib/resources/wire_transfers.js +41 -0
  589. package/lib/static.cjs +39 -0
  590. package/lib/static.d.cts +19 -0
  591. package/lib/static.d.ts +19 -0
  592. package/lib/static.js +33 -0
  593. package/lib/types.cjs +2 -0
  594. package/lib/types.d.cts +7 -0
  595. package/lib/types.d.ts +7 -0
  596. package/lib/types.js +1 -0
  597. package/lib/util.cjs +37 -0
  598. package/lib/util.d.cts +13 -0
  599. package/lib/util.d.ts +13 -0
  600. package/lib/util.js +32 -0
  601. package/package.json +12 -10
@@ -0,0 +1,768 @@
1
+ import * as api from './api';
2
+ import { CommerceLayerStatic } from './static';
3
+ import ResourceAdapter from './resource';
4
+ import Debug from './debug';
5
+
6
+ var __defProp = Object.defineProperty;
7
+ var __typeError = (msg) => {
8
+ throw TypeError(msg);
9
+ };
10
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
+ var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
12
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
13
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
14
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
15
+ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
16
+ var _adapter, _addresses, _adjustments, _adyen_gateways, _adyen_payments, _application, _attachments, _authorizations, _avalara_accounts, _axerve_gateways, _axerve_payments, _bing_geocoders, _braintree_gateways, _braintree_payments, _bundles, _buy_x_pay_y_promotions, _captures, _carrier_accounts, _checkout_com_gateways, _checkout_com_payments, _cleanups, _coupon_codes_promotion_rules, _coupon_recipients, _coupons, _custom_promotion_rules, _customer_addresses, _customer_groups, _customer_password_resets, _customer_payment_sources, _customer_subscriptions, _customers, _delivery_lead_times, _discount_engine_items, _discount_engines, _easypost_pickups, _event_callbacks, _events, _exports, _external_gateways, _external_payments, _external_promotions, _external_tax_calculators, _fixed_amount_promotions, _fixed_price_promotions, _flex_promotions, _free_gift_promotions, _free_shipping_promotions, _geocoders, _gift_card_recipients, _gift_cards, _google_geocoders, _imports, _in_stock_subscriptions, _inventory_models, _inventory_return_locations, _inventory_stock_locations, _klarna_gateways, _klarna_payments, _line_item_options, _line_items, _links, _manual_gateways, _manual_tax_calculators, _markets, _merchants, _notifications, _order_amount_promotion_rules, _order_copies, _order_factories, _order_subscription_items, _order_subscriptions, _orders, _organization, _packages, _parcel_line_items, _parcels, _payment_gateways, _payment_methods, _payment_options, _paypal_gateways, _paypal_payments, _percentage_discount_promotions, _pickups, _price_frequency_tiers, _price_list_schedulers, _price_lists, _price_tiers, _price_volume_tiers, _prices, _promotion_rules, _promotions, _recurring_order_copies, _refunds, _reserved_stocks, _resource_errors, _return_line_items, _returns, _satispay_gateways, _satispay_payments, _shipments, _shipping_categories, _shipping_method_tiers, _shipping_methods, _shipping_weight_tiers, _shipping_zones, _sku_list_items, _sku_list_promotion_rules, _sku_lists, _sku_options, _skus, _stock_items, _stock_line_items, _stock_locations, _stock_reservations, _stock_transfers, _stores, _stripe_gateways, _stripe_payments, _stripe_tax_accounts, _subscription_models, _tags, _talon_one_accounts, _tax_calculators, _tax_categories, _tax_rules, _taxjar_accounts, _transactions, _versions, _vertex_accounts, _voids, _webhooks, _wire_transfers;
17
+ const debug = Debug("commercelayer");
18
+ const OPEN_API_SCHEMA_VERSION = "7.8.0";
19
+ class CommerceLayerClient {
20
+ // ##__CL_RESOURCES_DEF_STOP__##
21
+ constructor(config) {
22
+ // static get openApiSchemaVersion(): string { return OPEN_API_SCHEMA_VERSION }
23
+ __publicField(this, "openApiSchemaVersion", OPEN_API_SCHEMA_VERSION);
24
+ __privateAdd(this, _adapter);
25
+ // #slug: string
26
+ // ##__CL_RESOURCES_DEF_START__##
27
+ // ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##
28
+ __privateAdd(this, _addresses);
29
+ __privateAdd(this, _adjustments);
30
+ __privateAdd(this, _adyen_gateways);
31
+ __privateAdd(this, _adyen_payments);
32
+ __privateAdd(this, _application);
33
+ __privateAdd(this, _attachments);
34
+ __privateAdd(this, _authorizations);
35
+ __privateAdd(this, _avalara_accounts);
36
+ __privateAdd(this, _axerve_gateways);
37
+ __privateAdd(this, _axerve_payments);
38
+ __privateAdd(this, _bing_geocoders);
39
+ __privateAdd(this, _braintree_gateways);
40
+ __privateAdd(this, _braintree_payments);
41
+ __privateAdd(this, _bundles);
42
+ __privateAdd(this, _buy_x_pay_y_promotions);
43
+ __privateAdd(this, _captures);
44
+ __privateAdd(this, _carrier_accounts);
45
+ __privateAdd(this, _checkout_com_gateways);
46
+ __privateAdd(this, _checkout_com_payments);
47
+ __privateAdd(this, _cleanups);
48
+ __privateAdd(this, _coupon_codes_promotion_rules);
49
+ __privateAdd(this, _coupon_recipients);
50
+ __privateAdd(this, _coupons);
51
+ __privateAdd(this, _custom_promotion_rules);
52
+ __privateAdd(this, _customer_addresses);
53
+ __privateAdd(this, _customer_groups);
54
+ __privateAdd(this, _customer_password_resets);
55
+ __privateAdd(this, _customer_payment_sources);
56
+ __privateAdd(this, _customer_subscriptions);
57
+ __privateAdd(this, _customers);
58
+ __privateAdd(this, _delivery_lead_times);
59
+ __privateAdd(this, _discount_engine_items);
60
+ __privateAdd(this, _discount_engines);
61
+ __privateAdd(this, _easypost_pickups);
62
+ __privateAdd(this, _event_callbacks);
63
+ __privateAdd(this, _events);
64
+ __privateAdd(this, _exports);
65
+ __privateAdd(this, _external_gateways);
66
+ __privateAdd(this, _external_payments);
67
+ __privateAdd(this, _external_promotions);
68
+ __privateAdd(this, _external_tax_calculators);
69
+ __privateAdd(this, _fixed_amount_promotions);
70
+ __privateAdd(this, _fixed_price_promotions);
71
+ __privateAdd(this, _flex_promotions);
72
+ __privateAdd(this, _free_gift_promotions);
73
+ __privateAdd(this, _free_shipping_promotions);
74
+ __privateAdd(this, _geocoders);
75
+ __privateAdd(this, _gift_card_recipients);
76
+ __privateAdd(this, _gift_cards);
77
+ __privateAdd(this, _google_geocoders);
78
+ __privateAdd(this, _imports);
79
+ __privateAdd(this, _in_stock_subscriptions);
80
+ __privateAdd(this, _inventory_models);
81
+ __privateAdd(this, _inventory_return_locations);
82
+ __privateAdd(this, _inventory_stock_locations);
83
+ __privateAdd(this, _klarna_gateways);
84
+ __privateAdd(this, _klarna_payments);
85
+ __privateAdd(this, _line_item_options);
86
+ __privateAdd(this, _line_items);
87
+ __privateAdd(this, _links);
88
+ __privateAdd(this, _manual_gateways);
89
+ __privateAdd(this, _manual_tax_calculators);
90
+ __privateAdd(this, _markets);
91
+ __privateAdd(this, _merchants);
92
+ __privateAdd(this, _notifications);
93
+ __privateAdd(this, _order_amount_promotion_rules);
94
+ __privateAdd(this, _order_copies);
95
+ __privateAdd(this, _order_factories);
96
+ __privateAdd(this, _order_subscription_items);
97
+ __privateAdd(this, _order_subscriptions);
98
+ __privateAdd(this, _orders);
99
+ __privateAdd(this, _organization);
100
+ __privateAdd(this, _packages);
101
+ __privateAdd(this, _parcel_line_items);
102
+ __privateAdd(this, _parcels);
103
+ __privateAdd(this, _payment_gateways);
104
+ __privateAdd(this, _payment_methods);
105
+ __privateAdd(this, _payment_options);
106
+ __privateAdd(this, _paypal_gateways);
107
+ __privateAdd(this, _paypal_payments);
108
+ __privateAdd(this, _percentage_discount_promotions);
109
+ __privateAdd(this, _pickups);
110
+ __privateAdd(this, _price_frequency_tiers);
111
+ __privateAdd(this, _price_list_schedulers);
112
+ __privateAdd(this, _price_lists);
113
+ __privateAdd(this, _price_tiers);
114
+ __privateAdd(this, _price_volume_tiers);
115
+ __privateAdd(this, _prices);
116
+ __privateAdd(this, _promotion_rules);
117
+ __privateAdd(this, _promotions);
118
+ __privateAdd(this, _recurring_order_copies);
119
+ __privateAdd(this, _refunds);
120
+ __privateAdd(this, _reserved_stocks);
121
+ __privateAdd(this, _resource_errors);
122
+ __privateAdd(this, _return_line_items);
123
+ __privateAdd(this, _returns);
124
+ __privateAdd(this, _satispay_gateways);
125
+ __privateAdd(this, _satispay_payments);
126
+ __privateAdd(this, _shipments);
127
+ __privateAdd(this, _shipping_categories);
128
+ __privateAdd(this, _shipping_method_tiers);
129
+ __privateAdd(this, _shipping_methods);
130
+ __privateAdd(this, _shipping_weight_tiers);
131
+ __privateAdd(this, _shipping_zones);
132
+ __privateAdd(this, _sku_list_items);
133
+ __privateAdd(this, _sku_list_promotion_rules);
134
+ __privateAdd(this, _sku_lists);
135
+ __privateAdd(this, _sku_options);
136
+ __privateAdd(this, _skus);
137
+ __privateAdd(this, _stock_items);
138
+ __privateAdd(this, _stock_line_items);
139
+ __privateAdd(this, _stock_locations);
140
+ __privateAdd(this, _stock_reservations);
141
+ __privateAdd(this, _stock_transfers);
142
+ __privateAdd(this, _stores);
143
+ __privateAdd(this, _stripe_gateways);
144
+ __privateAdd(this, _stripe_payments);
145
+ __privateAdd(this, _stripe_tax_accounts);
146
+ __privateAdd(this, _subscription_models);
147
+ __privateAdd(this, _tags);
148
+ __privateAdd(this, _talon_one_accounts);
149
+ __privateAdd(this, _tax_calculators);
150
+ __privateAdd(this, _tax_categories);
151
+ __privateAdd(this, _tax_rules);
152
+ __privateAdd(this, _taxjar_accounts);
153
+ __privateAdd(this, _transactions);
154
+ __privateAdd(this, _versions);
155
+ __privateAdd(this, _vertex_accounts);
156
+ __privateAdd(this, _voids);
157
+ __privateAdd(this, _webhooks);
158
+ __privateAdd(this, _wire_transfers);
159
+ debug("new commercelayer instance %O", config);
160
+ __privateSet(this, _adapter, new ResourceAdapter(config));
161
+ }
162
+ // ##__CL_RESOURCES_LEAZY_LOADING_START__##
163
+ // ##__CL_RESOURCES_LEAZY_LOADING_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return this.###__RESOURCE_TYPE__## || (this.###__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)) }
164
+ get addresses() {
165
+ return __privateGet(this, _addresses) || __privateSet(this, _addresses, new api.Addresses(__privateGet(this, _adapter)));
166
+ }
167
+ get adjustments() {
168
+ return __privateGet(this, _adjustments) || __privateSet(this, _adjustments, new api.Adjustments(__privateGet(this, _adapter)));
169
+ }
170
+ get adyen_gateways() {
171
+ return __privateGet(this, _adyen_gateways) || __privateSet(this, _adyen_gateways, new api.AdyenGateways(__privateGet(this, _adapter)));
172
+ }
173
+ get adyen_payments() {
174
+ return __privateGet(this, _adyen_payments) || __privateSet(this, _adyen_payments, new api.AdyenPayments(__privateGet(this, _adapter)));
175
+ }
176
+ get application() {
177
+ return __privateGet(this, _application) || __privateSet(this, _application, new api.Applications(__privateGet(this, _adapter)));
178
+ }
179
+ get attachments() {
180
+ return __privateGet(this, _attachments) || __privateSet(this, _attachments, new api.Attachments(__privateGet(this, _adapter)));
181
+ }
182
+ get authorizations() {
183
+ return __privateGet(this, _authorizations) || __privateSet(this, _authorizations, new api.Authorizations(__privateGet(this, _adapter)));
184
+ }
185
+ get avalara_accounts() {
186
+ return __privateGet(this, _avalara_accounts) || __privateSet(this, _avalara_accounts, new api.AvalaraAccounts(__privateGet(this, _adapter)));
187
+ }
188
+ get axerve_gateways() {
189
+ return __privateGet(this, _axerve_gateways) || __privateSet(this, _axerve_gateways, new api.AxerveGateways(__privateGet(this, _adapter)));
190
+ }
191
+ get axerve_payments() {
192
+ return __privateGet(this, _axerve_payments) || __privateSet(this, _axerve_payments, new api.AxervePayments(__privateGet(this, _adapter)));
193
+ }
194
+ get bing_geocoders() {
195
+ return __privateGet(this, _bing_geocoders) || __privateSet(this, _bing_geocoders, new api.BingGeocoders(__privateGet(this, _adapter)));
196
+ }
197
+ get braintree_gateways() {
198
+ return __privateGet(this, _braintree_gateways) || __privateSet(this, _braintree_gateways, new api.BraintreeGateways(__privateGet(this, _adapter)));
199
+ }
200
+ get braintree_payments() {
201
+ return __privateGet(this, _braintree_payments) || __privateSet(this, _braintree_payments, new api.BraintreePayments(__privateGet(this, _adapter)));
202
+ }
203
+ get bundles() {
204
+ return __privateGet(this, _bundles) || __privateSet(this, _bundles, new api.Bundles(__privateGet(this, _adapter)));
205
+ }
206
+ get buy_x_pay_y_promotions() {
207
+ return __privateGet(this, _buy_x_pay_y_promotions) || __privateSet(this, _buy_x_pay_y_promotions, new api.BuyXPayYPromotions(__privateGet(this, _adapter)));
208
+ }
209
+ get captures() {
210
+ return __privateGet(this, _captures) || __privateSet(this, _captures, new api.Captures(__privateGet(this, _adapter)));
211
+ }
212
+ get carrier_accounts() {
213
+ return __privateGet(this, _carrier_accounts) || __privateSet(this, _carrier_accounts, new api.CarrierAccounts(__privateGet(this, _adapter)));
214
+ }
215
+ get checkout_com_gateways() {
216
+ return __privateGet(this, _checkout_com_gateways) || __privateSet(this, _checkout_com_gateways, new api.CheckoutComGateways(__privateGet(this, _adapter)));
217
+ }
218
+ get checkout_com_payments() {
219
+ return __privateGet(this, _checkout_com_payments) || __privateSet(this, _checkout_com_payments, new api.CheckoutComPayments(__privateGet(this, _adapter)));
220
+ }
221
+ get cleanups() {
222
+ return __privateGet(this, _cleanups) || __privateSet(this, _cleanups, new api.Cleanups(__privateGet(this, _adapter)));
223
+ }
224
+ get coupon_codes_promotion_rules() {
225
+ return __privateGet(this, _coupon_codes_promotion_rules) || __privateSet(this, _coupon_codes_promotion_rules, new api.CouponCodesPromotionRules(__privateGet(this, _adapter)));
226
+ }
227
+ get coupon_recipients() {
228
+ return __privateGet(this, _coupon_recipients) || __privateSet(this, _coupon_recipients, new api.CouponRecipients(__privateGet(this, _adapter)));
229
+ }
230
+ get coupons() {
231
+ return __privateGet(this, _coupons) || __privateSet(this, _coupons, new api.Coupons(__privateGet(this, _adapter)));
232
+ }
233
+ get custom_promotion_rules() {
234
+ return __privateGet(this, _custom_promotion_rules) || __privateSet(this, _custom_promotion_rules, new api.CustomPromotionRules(__privateGet(this, _adapter)));
235
+ }
236
+ get customer_addresses() {
237
+ return __privateGet(this, _customer_addresses) || __privateSet(this, _customer_addresses, new api.CustomerAddresses(__privateGet(this, _adapter)));
238
+ }
239
+ get customer_groups() {
240
+ return __privateGet(this, _customer_groups) || __privateSet(this, _customer_groups, new api.CustomerGroups(__privateGet(this, _adapter)));
241
+ }
242
+ get customer_password_resets() {
243
+ return __privateGet(this, _customer_password_resets) || __privateSet(this, _customer_password_resets, new api.CustomerPasswordResets(__privateGet(this, _adapter)));
244
+ }
245
+ get customer_payment_sources() {
246
+ return __privateGet(this, _customer_payment_sources) || __privateSet(this, _customer_payment_sources, new api.CustomerPaymentSources(__privateGet(this, _adapter)));
247
+ }
248
+ get customer_subscriptions() {
249
+ return __privateGet(this, _customer_subscriptions) || __privateSet(this, _customer_subscriptions, new api.CustomerSubscriptions(__privateGet(this, _adapter)));
250
+ }
251
+ get customers() {
252
+ return __privateGet(this, _customers) || __privateSet(this, _customers, new api.Customers(__privateGet(this, _adapter)));
253
+ }
254
+ get delivery_lead_times() {
255
+ return __privateGet(this, _delivery_lead_times) || __privateSet(this, _delivery_lead_times, new api.DeliveryLeadTimes(__privateGet(this, _adapter)));
256
+ }
257
+ get discount_engine_items() {
258
+ return __privateGet(this, _discount_engine_items) || __privateSet(this, _discount_engine_items, new api.DiscountEngineItems(__privateGet(this, _adapter)));
259
+ }
260
+ get discount_engines() {
261
+ return __privateGet(this, _discount_engines) || __privateSet(this, _discount_engines, new api.DiscountEngines(__privateGet(this, _adapter)));
262
+ }
263
+ get easypost_pickups() {
264
+ return __privateGet(this, _easypost_pickups) || __privateSet(this, _easypost_pickups, new api.EasypostPickups(__privateGet(this, _adapter)));
265
+ }
266
+ get event_callbacks() {
267
+ return __privateGet(this, _event_callbacks) || __privateSet(this, _event_callbacks, new api.EventCallbacks(__privateGet(this, _adapter)));
268
+ }
269
+ get events() {
270
+ return __privateGet(this, _events) || __privateSet(this, _events, new api.Events(__privateGet(this, _adapter)));
271
+ }
272
+ get exports() {
273
+ return __privateGet(this, _exports) || __privateSet(this, _exports, new api.Exports(__privateGet(this, _adapter)));
274
+ }
275
+ get external_gateways() {
276
+ return __privateGet(this, _external_gateways) || __privateSet(this, _external_gateways, new api.ExternalGateways(__privateGet(this, _adapter)));
277
+ }
278
+ get external_payments() {
279
+ return __privateGet(this, _external_payments) || __privateSet(this, _external_payments, new api.ExternalPayments(__privateGet(this, _adapter)));
280
+ }
281
+ get external_promotions() {
282
+ return __privateGet(this, _external_promotions) || __privateSet(this, _external_promotions, new api.ExternalPromotions(__privateGet(this, _adapter)));
283
+ }
284
+ get external_tax_calculators() {
285
+ return __privateGet(this, _external_tax_calculators) || __privateSet(this, _external_tax_calculators, new api.ExternalTaxCalculators(__privateGet(this, _adapter)));
286
+ }
287
+ get fixed_amount_promotions() {
288
+ return __privateGet(this, _fixed_amount_promotions) || __privateSet(this, _fixed_amount_promotions, new api.FixedAmountPromotions(__privateGet(this, _adapter)));
289
+ }
290
+ get fixed_price_promotions() {
291
+ return __privateGet(this, _fixed_price_promotions) || __privateSet(this, _fixed_price_promotions, new api.FixedPricePromotions(__privateGet(this, _adapter)));
292
+ }
293
+ get flex_promotions() {
294
+ return __privateGet(this, _flex_promotions) || __privateSet(this, _flex_promotions, new api.FlexPromotions(__privateGet(this, _adapter)));
295
+ }
296
+ get free_gift_promotions() {
297
+ return __privateGet(this, _free_gift_promotions) || __privateSet(this, _free_gift_promotions, new api.FreeGiftPromotions(__privateGet(this, _adapter)));
298
+ }
299
+ get free_shipping_promotions() {
300
+ return __privateGet(this, _free_shipping_promotions) || __privateSet(this, _free_shipping_promotions, new api.FreeShippingPromotions(__privateGet(this, _adapter)));
301
+ }
302
+ get geocoders() {
303
+ return __privateGet(this, _geocoders) || __privateSet(this, _geocoders, new api.Geocoders(__privateGet(this, _adapter)));
304
+ }
305
+ get gift_card_recipients() {
306
+ return __privateGet(this, _gift_card_recipients) || __privateSet(this, _gift_card_recipients, new api.GiftCardRecipients(__privateGet(this, _adapter)));
307
+ }
308
+ get gift_cards() {
309
+ return __privateGet(this, _gift_cards) || __privateSet(this, _gift_cards, new api.GiftCards(__privateGet(this, _adapter)));
310
+ }
311
+ get google_geocoders() {
312
+ return __privateGet(this, _google_geocoders) || __privateSet(this, _google_geocoders, new api.GoogleGeocoders(__privateGet(this, _adapter)));
313
+ }
314
+ get imports() {
315
+ return __privateGet(this, _imports) || __privateSet(this, _imports, new api.Imports(__privateGet(this, _adapter)));
316
+ }
317
+ get in_stock_subscriptions() {
318
+ return __privateGet(this, _in_stock_subscriptions) || __privateSet(this, _in_stock_subscriptions, new api.InStockSubscriptions(__privateGet(this, _adapter)));
319
+ }
320
+ get inventory_models() {
321
+ return __privateGet(this, _inventory_models) || __privateSet(this, _inventory_models, new api.InventoryModels(__privateGet(this, _adapter)));
322
+ }
323
+ get inventory_return_locations() {
324
+ return __privateGet(this, _inventory_return_locations) || __privateSet(this, _inventory_return_locations, new api.InventoryReturnLocations(__privateGet(this, _adapter)));
325
+ }
326
+ get inventory_stock_locations() {
327
+ return __privateGet(this, _inventory_stock_locations) || __privateSet(this, _inventory_stock_locations, new api.InventoryStockLocations(__privateGet(this, _adapter)));
328
+ }
329
+ get klarna_gateways() {
330
+ return __privateGet(this, _klarna_gateways) || __privateSet(this, _klarna_gateways, new api.KlarnaGateways(__privateGet(this, _adapter)));
331
+ }
332
+ get klarna_payments() {
333
+ return __privateGet(this, _klarna_payments) || __privateSet(this, _klarna_payments, new api.KlarnaPayments(__privateGet(this, _adapter)));
334
+ }
335
+ get line_item_options() {
336
+ return __privateGet(this, _line_item_options) || __privateSet(this, _line_item_options, new api.LineItemOptions(__privateGet(this, _adapter)));
337
+ }
338
+ get line_items() {
339
+ return __privateGet(this, _line_items) || __privateSet(this, _line_items, new api.LineItems(__privateGet(this, _adapter)));
340
+ }
341
+ get links() {
342
+ return __privateGet(this, _links) || __privateSet(this, _links, new api.Links(__privateGet(this, _adapter)));
343
+ }
344
+ get manual_gateways() {
345
+ return __privateGet(this, _manual_gateways) || __privateSet(this, _manual_gateways, new api.ManualGateways(__privateGet(this, _adapter)));
346
+ }
347
+ get manual_tax_calculators() {
348
+ return __privateGet(this, _manual_tax_calculators) || __privateSet(this, _manual_tax_calculators, new api.ManualTaxCalculators(__privateGet(this, _adapter)));
349
+ }
350
+ get markets() {
351
+ return __privateGet(this, _markets) || __privateSet(this, _markets, new api.Markets(__privateGet(this, _adapter)));
352
+ }
353
+ get merchants() {
354
+ return __privateGet(this, _merchants) || __privateSet(this, _merchants, new api.Merchants(__privateGet(this, _adapter)));
355
+ }
356
+ get notifications() {
357
+ return __privateGet(this, _notifications) || __privateSet(this, _notifications, new api.Notifications(__privateGet(this, _adapter)));
358
+ }
359
+ get order_amount_promotion_rules() {
360
+ return __privateGet(this, _order_amount_promotion_rules) || __privateSet(this, _order_amount_promotion_rules, new api.OrderAmountPromotionRules(__privateGet(this, _adapter)));
361
+ }
362
+ get order_copies() {
363
+ return __privateGet(this, _order_copies) || __privateSet(this, _order_copies, new api.OrderCopies(__privateGet(this, _adapter)));
364
+ }
365
+ get order_factories() {
366
+ return __privateGet(this, _order_factories) || __privateSet(this, _order_factories, new api.OrderFactories(__privateGet(this, _adapter)));
367
+ }
368
+ get order_subscription_items() {
369
+ return __privateGet(this, _order_subscription_items) || __privateSet(this, _order_subscription_items, new api.OrderSubscriptionItems(__privateGet(this, _adapter)));
370
+ }
371
+ get order_subscriptions() {
372
+ return __privateGet(this, _order_subscriptions) || __privateSet(this, _order_subscriptions, new api.OrderSubscriptions(__privateGet(this, _adapter)));
373
+ }
374
+ get orders() {
375
+ return __privateGet(this, _orders) || __privateSet(this, _orders, new api.Orders(__privateGet(this, _adapter)));
376
+ }
377
+ get organization() {
378
+ return __privateGet(this, _organization) || __privateSet(this, _organization, new api.Organizations(__privateGet(this, _adapter)));
379
+ }
380
+ get packages() {
381
+ return __privateGet(this, _packages) || __privateSet(this, _packages, new api.Packages(__privateGet(this, _adapter)));
382
+ }
383
+ get parcel_line_items() {
384
+ return __privateGet(this, _parcel_line_items) || __privateSet(this, _parcel_line_items, new api.ParcelLineItems(__privateGet(this, _adapter)));
385
+ }
386
+ get parcels() {
387
+ return __privateGet(this, _parcels) || __privateSet(this, _parcels, new api.Parcels(__privateGet(this, _adapter)));
388
+ }
389
+ get payment_gateways() {
390
+ return __privateGet(this, _payment_gateways) || __privateSet(this, _payment_gateways, new api.PaymentGateways(__privateGet(this, _adapter)));
391
+ }
392
+ get payment_methods() {
393
+ return __privateGet(this, _payment_methods) || __privateSet(this, _payment_methods, new api.PaymentMethods(__privateGet(this, _adapter)));
394
+ }
395
+ get payment_options() {
396
+ return __privateGet(this, _payment_options) || __privateSet(this, _payment_options, new api.PaymentOptions(__privateGet(this, _adapter)));
397
+ }
398
+ get paypal_gateways() {
399
+ return __privateGet(this, _paypal_gateways) || __privateSet(this, _paypal_gateways, new api.PaypalGateways(__privateGet(this, _adapter)));
400
+ }
401
+ get paypal_payments() {
402
+ return __privateGet(this, _paypal_payments) || __privateSet(this, _paypal_payments, new api.PaypalPayments(__privateGet(this, _adapter)));
403
+ }
404
+ get percentage_discount_promotions() {
405
+ return __privateGet(this, _percentage_discount_promotions) || __privateSet(this, _percentage_discount_promotions, new api.PercentageDiscountPromotions(__privateGet(this, _adapter)));
406
+ }
407
+ get pickups() {
408
+ return __privateGet(this, _pickups) || __privateSet(this, _pickups, new api.Pickups(__privateGet(this, _adapter)));
409
+ }
410
+ get price_frequency_tiers() {
411
+ return __privateGet(this, _price_frequency_tiers) || __privateSet(this, _price_frequency_tiers, new api.PriceFrequencyTiers(__privateGet(this, _adapter)));
412
+ }
413
+ get price_list_schedulers() {
414
+ return __privateGet(this, _price_list_schedulers) || __privateSet(this, _price_list_schedulers, new api.PriceListSchedulers(__privateGet(this, _adapter)));
415
+ }
416
+ get price_lists() {
417
+ return __privateGet(this, _price_lists) || __privateSet(this, _price_lists, new api.PriceLists(__privateGet(this, _adapter)));
418
+ }
419
+ get price_tiers() {
420
+ return __privateGet(this, _price_tiers) || __privateSet(this, _price_tiers, new api.PriceTiers(__privateGet(this, _adapter)));
421
+ }
422
+ get price_volume_tiers() {
423
+ return __privateGet(this, _price_volume_tiers) || __privateSet(this, _price_volume_tiers, new api.PriceVolumeTiers(__privateGet(this, _adapter)));
424
+ }
425
+ get prices() {
426
+ return __privateGet(this, _prices) || __privateSet(this, _prices, new api.Prices(__privateGet(this, _adapter)));
427
+ }
428
+ get promotion_rules() {
429
+ return __privateGet(this, _promotion_rules) || __privateSet(this, _promotion_rules, new api.PromotionRules(__privateGet(this, _adapter)));
430
+ }
431
+ get promotions() {
432
+ return __privateGet(this, _promotions) || __privateSet(this, _promotions, new api.Promotions(__privateGet(this, _adapter)));
433
+ }
434
+ get recurring_order_copies() {
435
+ return __privateGet(this, _recurring_order_copies) || __privateSet(this, _recurring_order_copies, new api.RecurringOrderCopies(__privateGet(this, _adapter)));
436
+ }
437
+ get refunds() {
438
+ return __privateGet(this, _refunds) || __privateSet(this, _refunds, new api.Refunds(__privateGet(this, _adapter)));
439
+ }
440
+ get reserved_stocks() {
441
+ return __privateGet(this, _reserved_stocks) || __privateSet(this, _reserved_stocks, new api.ReservedStocks(__privateGet(this, _adapter)));
442
+ }
443
+ get resource_errors() {
444
+ return __privateGet(this, _resource_errors) || __privateSet(this, _resource_errors, new api.ResourceErrors(__privateGet(this, _adapter)));
445
+ }
446
+ get return_line_items() {
447
+ return __privateGet(this, _return_line_items) || __privateSet(this, _return_line_items, new api.ReturnLineItems(__privateGet(this, _adapter)));
448
+ }
449
+ get returns() {
450
+ return __privateGet(this, _returns) || __privateSet(this, _returns, new api.Returns(__privateGet(this, _adapter)));
451
+ }
452
+ get satispay_gateways() {
453
+ return __privateGet(this, _satispay_gateways) || __privateSet(this, _satispay_gateways, new api.SatispayGateways(__privateGet(this, _adapter)));
454
+ }
455
+ get satispay_payments() {
456
+ return __privateGet(this, _satispay_payments) || __privateSet(this, _satispay_payments, new api.SatispayPayments(__privateGet(this, _adapter)));
457
+ }
458
+ get shipments() {
459
+ return __privateGet(this, _shipments) || __privateSet(this, _shipments, new api.Shipments(__privateGet(this, _adapter)));
460
+ }
461
+ get shipping_categories() {
462
+ return __privateGet(this, _shipping_categories) || __privateSet(this, _shipping_categories, new api.ShippingCategories(__privateGet(this, _adapter)));
463
+ }
464
+ get shipping_method_tiers() {
465
+ return __privateGet(this, _shipping_method_tiers) || __privateSet(this, _shipping_method_tiers, new api.ShippingMethodTiers(__privateGet(this, _adapter)));
466
+ }
467
+ get shipping_methods() {
468
+ return __privateGet(this, _shipping_methods) || __privateSet(this, _shipping_methods, new api.ShippingMethods(__privateGet(this, _adapter)));
469
+ }
470
+ get shipping_weight_tiers() {
471
+ return __privateGet(this, _shipping_weight_tiers) || __privateSet(this, _shipping_weight_tiers, new api.ShippingWeightTiers(__privateGet(this, _adapter)));
472
+ }
473
+ get shipping_zones() {
474
+ return __privateGet(this, _shipping_zones) || __privateSet(this, _shipping_zones, new api.ShippingZones(__privateGet(this, _adapter)));
475
+ }
476
+ get sku_list_items() {
477
+ return __privateGet(this, _sku_list_items) || __privateSet(this, _sku_list_items, new api.SkuListItems(__privateGet(this, _adapter)));
478
+ }
479
+ get sku_list_promotion_rules() {
480
+ return __privateGet(this, _sku_list_promotion_rules) || __privateSet(this, _sku_list_promotion_rules, new api.SkuListPromotionRules(__privateGet(this, _adapter)));
481
+ }
482
+ get sku_lists() {
483
+ return __privateGet(this, _sku_lists) || __privateSet(this, _sku_lists, new api.SkuLists(__privateGet(this, _adapter)));
484
+ }
485
+ get sku_options() {
486
+ return __privateGet(this, _sku_options) || __privateSet(this, _sku_options, new api.SkuOptions(__privateGet(this, _adapter)));
487
+ }
488
+ get skus() {
489
+ return __privateGet(this, _skus) || __privateSet(this, _skus, new api.Skus(__privateGet(this, _adapter)));
490
+ }
491
+ get stock_items() {
492
+ return __privateGet(this, _stock_items) || __privateSet(this, _stock_items, new api.StockItems(__privateGet(this, _adapter)));
493
+ }
494
+ get stock_line_items() {
495
+ return __privateGet(this, _stock_line_items) || __privateSet(this, _stock_line_items, new api.StockLineItems(__privateGet(this, _adapter)));
496
+ }
497
+ get stock_locations() {
498
+ return __privateGet(this, _stock_locations) || __privateSet(this, _stock_locations, new api.StockLocations(__privateGet(this, _adapter)));
499
+ }
500
+ get stock_reservations() {
501
+ return __privateGet(this, _stock_reservations) || __privateSet(this, _stock_reservations, new api.StockReservations(__privateGet(this, _adapter)));
502
+ }
503
+ get stock_transfers() {
504
+ return __privateGet(this, _stock_transfers) || __privateSet(this, _stock_transfers, new api.StockTransfers(__privateGet(this, _adapter)));
505
+ }
506
+ get stores() {
507
+ return __privateGet(this, _stores) || __privateSet(this, _stores, new api.Stores(__privateGet(this, _adapter)));
508
+ }
509
+ get stripe_gateways() {
510
+ return __privateGet(this, _stripe_gateways) || __privateSet(this, _stripe_gateways, new api.StripeGateways(__privateGet(this, _adapter)));
511
+ }
512
+ get stripe_payments() {
513
+ return __privateGet(this, _stripe_payments) || __privateSet(this, _stripe_payments, new api.StripePayments(__privateGet(this, _adapter)));
514
+ }
515
+ get stripe_tax_accounts() {
516
+ return __privateGet(this, _stripe_tax_accounts) || __privateSet(this, _stripe_tax_accounts, new api.StripeTaxAccounts(__privateGet(this, _adapter)));
517
+ }
518
+ get subscription_models() {
519
+ return __privateGet(this, _subscription_models) || __privateSet(this, _subscription_models, new api.SubscriptionModels(__privateGet(this, _adapter)));
520
+ }
521
+ get tags() {
522
+ return __privateGet(this, _tags) || __privateSet(this, _tags, new api.Tags(__privateGet(this, _adapter)));
523
+ }
524
+ get talon_one_accounts() {
525
+ return __privateGet(this, _talon_one_accounts) || __privateSet(this, _talon_one_accounts, new api.TalonOneAccounts(__privateGet(this, _adapter)));
526
+ }
527
+ get tax_calculators() {
528
+ return __privateGet(this, _tax_calculators) || __privateSet(this, _tax_calculators, new api.TaxCalculators(__privateGet(this, _adapter)));
529
+ }
530
+ get tax_categories() {
531
+ return __privateGet(this, _tax_categories) || __privateSet(this, _tax_categories, new api.TaxCategories(__privateGet(this, _adapter)));
532
+ }
533
+ get tax_rules() {
534
+ return __privateGet(this, _tax_rules) || __privateSet(this, _tax_rules, new api.TaxRules(__privateGet(this, _adapter)));
535
+ }
536
+ get taxjar_accounts() {
537
+ return __privateGet(this, _taxjar_accounts) || __privateSet(this, _taxjar_accounts, new api.TaxjarAccounts(__privateGet(this, _adapter)));
538
+ }
539
+ get transactions() {
540
+ return __privateGet(this, _transactions) || __privateSet(this, _transactions, new api.Transactions(__privateGet(this, _adapter)));
541
+ }
542
+ get versions() {
543
+ return __privateGet(this, _versions) || __privateSet(this, _versions, new api.Versions(__privateGet(this, _adapter)));
544
+ }
545
+ get vertex_accounts() {
546
+ return __privateGet(this, _vertex_accounts) || __privateSet(this, _vertex_accounts, new api.VertexAccounts(__privateGet(this, _adapter)));
547
+ }
548
+ get voids() {
549
+ return __privateGet(this, _voids) || __privateSet(this, _voids, new api.Voids(__privateGet(this, _adapter)));
550
+ }
551
+ get webhooks() {
552
+ return __privateGet(this, _webhooks) || __privateSet(this, _webhooks, new api.Webhooks(__privateGet(this, _adapter)));
553
+ }
554
+ get wire_transfers() {
555
+ return __privateGet(this, _wire_transfers) || __privateSet(this, _wire_transfers, new api.WireTransfers(__privateGet(this, _adapter)));
556
+ }
557
+ // ##__CL_RESOURCES_LEAZY_LOADING_STOP__##
558
+ get currentOrganization() {
559
+ return __privateGet(this, _adapter)?.client?.currentOrganization;
560
+ }
561
+ get currentAccessToken() {
562
+ return __privateGet(this, _adapter)?.client?.currentAccessToken;
563
+ }
564
+ get interceptors() {
565
+ return __privateGet(this, _adapter).client.interceptors;
566
+ }
567
+ localConfig(config) {
568
+ }
569
+ config(config) {
570
+ debug("config %o", config);
571
+ this.localConfig(config);
572
+ __privateGet(this, _adapter).config(config);
573
+ return this;
574
+ }
575
+ resources() {
576
+ return CommerceLayerStatic.resources();
577
+ }
578
+ singletons() {
579
+ return CommerceLayerStatic.singletons();
580
+ }
581
+ isSingleton(resource) {
582
+ return CommerceLayerStatic.isSingleton(resource);
583
+ }
584
+ isApiError(error) {
585
+ return CommerceLayerStatic.isApiError(error);
586
+ }
587
+ addRequestInterceptor(onSuccess, onFailure) {
588
+ this.interceptors.request = { onSuccess, onFailure };
589
+ return 1;
590
+ }
591
+ addResponseInterceptor(onSuccess, onFailure) {
592
+ this.interceptors.response = { onSuccess, onFailure };
593
+ return 1;
594
+ }
595
+ removeInterceptor(type, id = 1) {
596
+ this.interceptors[type] = void 0;
597
+ }
598
+ removeInterceptors() {
599
+ this.removeInterceptor("request");
600
+ this.removeInterceptor("response");
601
+ this.removeRawResponseReader();
602
+ }
603
+ addRawResponseReader(options) {
604
+ const reader = {
605
+ id: 0,
606
+ rawResponse: void 0,
607
+ headers: void 0,
608
+ ok: true
609
+ };
610
+ async function rawResponseInterceptor(response) {
611
+ reader.rawResponse = await response?.clone().json().catch(() => {
612
+ });
613
+ reader.ok = response.ok;
614
+ if (options?.headers) {
615
+ const ho = {};
616
+ response.headers.forEach((value, key) => {
617
+ ho[key] = value;
618
+ });
619
+ reader.headers = ho;
620
+ }
621
+ return response;
622
+ }
623
+ this.interceptors.rawReader = { onSuccess: rawResponseInterceptor, onFailure: rawResponseInterceptor };
624
+ reader.id = 1;
625
+ return reader;
626
+ }
627
+ removeRawResponseReader() {
628
+ this.interceptors.rawReader = void 0;
629
+ }
630
+ }
631
+ _adapter = new WeakMap();
632
+ _addresses = new WeakMap();
633
+ _adjustments = new WeakMap();
634
+ _adyen_gateways = new WeakMap();
635
+ _adyen_payments = new WeakMap();
636
+ _application = new WeakMap();
637
+ _attachments = new WeakMap();
638
+ _authorizations = new WeakMap();
639
+ _avalara_accounts = new WeakMap();
640
+ _axerve_gateways = new WeakMap();
641
+ _axerve_payments = new WeakMap();
642
+ _bing_geocoders = new WeakMap();
643
+ _braintree_gateways = new WeakMap();
644
+ _braintree_payments = new WeakMap();
645
+ _bundles = new WeakMap();
646
+ _buy_x_pay_y_promotions = new WeakMap();
647
+ _captures = new WeakMap();
648
+ _carrier_accounts = new WeakMap();
649
+ _checkout_com_gateways = new WeakMap();
650
+ _checkout_com_payments = new WeakMap();
651
+ _cleanups = new WeakMap();
652
+ _coupon_codes_promotion_rules = new WeakMap();
653
+ _coupon_recipients = new WeakMap();
654
+ _coupons = new WeakMap();
655
+ _custom_promotion_rules = new WeakMap();
656
+ _customer_addresses = new WeakMap();
657
+ _customer_groups = new WeakMap();
658
+ _customer_password_resets = new WeakMap();
659
+ _customer_payment_sources = new WeakMap();
660
+ _customer_subscriptions = new WeakMap();
661
+ _customers = new WeakMap();
662
+ _delivery_lead_times = new WeakMap();
663
+ _discount_engine_items = new WeakMap();
664
+ _discount_engines = new WeakMap();
665
+ _easypost_pickups = new WeakMap();
666
+ _event_callbacks = new WeakMap();
667
+ _events = new WeakMap();
668
+ _exports = new WeakMap();
669
+ _external_gateways = new WeakMap();
670
+ _external_payments = new WeakMap();
671
+ _external_promotions = new WeakMap();
672
+ _external_tax_calculators = new WeakMap();
673
+ _fixed_amount_promotions = new WeakMap();
674
+ _fixed_price_promotions = new WeakMap();
675
+ _flex_promotions = new WeakMap();
676
+ _free_gift_promotions = new WeakMap();
677
+ _free_shipping_promotions = new WeakMap();
678
+ _geocoders = new WeakMap();
679
+ _gift_card_recipients = new WeakMap();
680
+ _gift_cards = new WeakMap();
681
+ _google_geocoders = new WeakMap();
682
+ _imports = new WeakMap();
683
+ _in_stock_subscriptions = new WeakMap();
684
+ _inventory_models = new WeakMap();
685
+ _inventory_return_locations = new WeakMap();
686
+ _inventory_stock_locations = new WeakMap();
687
+ _klarna_gateways = new WeakMap();
688
+ _klarna_payments = new WeakMap();
689
+ _line_item_options = new WeakMap();
690
+ _line_items = new WeakMap();
691
+ _links = new WeakMap();
692
+ _manual_gateways = new WeakMap();
693
+ _manual_tax_calculators = new WeakMap();
694
+ _markets = new WeakMap();
695
+ _merchants = new WeakMap();
696
+ _notifications = new WeakMap();
697
+ _order_amount_promotion_rules = new WeakMap();
698
+ _order_copies = new WeakMap();
699
+ _order_factories = new WeakMap();
700
+ _order_subscription_items = new WeakMap();
701
+ _order_subscriptions = new WeakMap();
702
+ _orders = new WeakMap();
703
+ _organization = new WeakMap();
704
+ _packages = new WeakMap();
705
+ _parcel_line_items = new WeakMap();
706
+ _parcels = new WeakMap();
707
+ _payment_gateways = new WeakMap();
708
+ _payment_methods = new WeakMap();
709
+ _payment_options = new WeakMap();
710
+ _paypal_gateways = new WeakMap();
711
+ _paypal_payments = new WeakMap();
712
+ _percentage_discount_promotions = new WeakMap();
713
+ _pickups = new WeakMap();
714
+ _price_frequency_tiers = new WeakMap();
715
+ _price_list_schedulers = new WeakMap();
716
+ _price_lists = new WeakMap();
717
+ _price_tiers = new WeakMap();
718
+ _price_volume_tiers = new WeakMap();
719
+ _prices = new WeakMap();
720
+ _promotion_rules = new WeakMap();
721
+ _promotions = new WeakMap();
722
+ _recurring_order_copies = new WeakMap();
723
+ _refunds = new WeakMap();
724
+ _reserved_stocks = new WeakMap();
725
+ _resource_errors = new WeakMap();
726
+ _return_line_items = new WeakMap();
727
+ _returns = new WeakMap();
728
+ _satispay_gateways = new WeakMap();
729
+ _satispay_payments = new WeakMap();
730
+ _shipments = new WeakMap();
731
+ _shipping_categories = new WeakMap();
732
+ _shipping_method_tiers = new WeakMap();
733
+ _shipping_methods = new WeakMap();
734
+ _shipping_weight_tiers = new WeakMap();
735
+ _shipping_zones = new WeakMap();
736
+ _sku_list_items = new WeakMap();
737
+ _sku_list_promotion_rules = new WeakMap();
738
+ _sku_lists = new WeakMap();
739
+ _sku_options = new WeakMap();
740
+ _skus = new WeakMap();
741
+ _stock_items = new WeakMap();
742
+ _stock_line_items = new WeakMap();
743
+ _stock_locations = new WeakMap();
744
+ _stock_reservations = new WeakMap();
745
+ _stock_transfers = new WeakMap();
746
+ _stores = new WeakMap();
747
+ _stripe_gateways = new WeakMap();
748
+ _stripe_payments = new WeakMap();
749
+ _stripe_tax_accounts = new WeakMap();
750
+ _subscription_models = new WeakMap();
751
+ _tags = new WeakMap();
752
+ _talon_one_accounts = new WeakMap();
753
+ _tax_calculators = new WeakMap();
754
+ _tax_categories = new WeakMap();
755
+ _tax_rules = new WeakMap();
756
+ _taxjar_accounts = new WeakMap();
757
+ _transactions = new WeakMap();
758
+ _versions = new WeakMap();
759
+ _vertex_accounts = new WeakMap();
760
+ _voids = new WeakMap();
761
+ _webhooks = new WeakMap();
762
+ _wire_transfers = new WeakMap();
763
+ const CommerceLayer = (config) => {
764
+ return new CommerceLayerClient(config);
765
+ };
766
+ var commercelayer_default = CommerceLayer;
767
+
768
+ export { CommerceLayer, OPEN_API_SCHEMA_VERSION, commercelayer_default as default };