@commercelayer/sdk 7.0.0-beta.11 → 7.0.0-beta.13

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 (590) hide show
  1. package/README.md +48 -35
  2. package/lib/{api-BYcswOJ0.d.cts → api-Bq9emZm-.d.cts} +553 -43
  3. package/lib/{api-Cknm0QL_.d.ts → api-C5qyxFpD.d.ts} +553 -43
  4. package/lib/api.cjs +134 -132
  5. package/lib/api.d.cts +2 -2
  6. package/lib/api.d.ts +2 -2
  7. package/lib/api.js +134 -132
  8. package/lib/chunk-AQ5VUG5P.js +12 -0
  9. package/lib/chunk-JE77HYXB.cjs +17 -0
  10. package/lib/client.cjs +36 -39
  11. package/lib/client.d.cts +1 -1
  12. package/lib/client.d.ts +1 -1
  13. package/lib/client.js +7 -10
  14. package/lib/commercelayer.cjs +30 -705
  15. package/lib/commercelayer.d.cts +9 -137
  16. package/lib/commercelayer.d.ts +9 -137
  17. package/lib/commercelayer.js +29 -684
  18. package/lib/common.cjs +1 -0
  19. package/lib/common.d.cts +2 -2
  20. package/lib/common.d.ts +2 -2
  21. package/lib/common.js +1 -0
  22. package/lib/config.cjs +2 -0
  23. package/lib/config.d.cts +1 -1
  24. package/lib/config.d.ts +1 -1
  25. package/lib/config.js +2 -0
  26. package/lib/debug.cjs +2 -0
  27. package/lib/debug.js +2 -0
  28. package/lib/error.cjs +9 -12
  29. package/lib/error.js +1 -4
  30. package/lib/fetch.cjs +14 -23
  31. package/lib/fetch.d.cts +1 -1
  32. package/lib/fetch.d.ts +1 -1
  33. package/lib/fetch.js +1 -10
  34. package/lib/index.cjs +4 -3
  35. package/lib/index.d.cts +2 -3
  36. package/lib/index.d.ts +2 -3
  37. package/lib/index.js +2 -1
  38. package/lib/{interceptor-5MISI1yn.d.cts → interceptor-D65i25Y7.d.cts} +1 -1
  39. package/lib/{interceptor-5MISI1yn.d.ts → interceptor-D65i25Y7.d.ts} +1 -1
  40. package/lib/interceptor.d.cts +1 -1
  41. package/lib/interceptor.d.ts +1 -1
  42. package/lib/jsonapi.cjs +1 -0
  43. package/lib/jsonapi.d.cts +2 -2
  44. package/lib/jsonapi.d.ts +2 -2
  45. package/lib/jsonapi.js +1 -0
  46. package/lib/model.d.cts +2 -2
  47. package/lib/model.d.ts +2 -2
  48. package/lib/query.cjs +1 -0
  49. package/lib/query.d.cts +2 -2
  50. package/lib/query.d.ts +2 -2
  51. package/lib/query.js +1 -0
  52. package/lib/resource.cjs +25 -34
  53. package/lib/resource.d.cts +2 -2
  54. package/lib/resource.d.ts +2 -2
  55. package/lib/resource.js +10 -19
  56. package/lib/resources/addresses.cjs +10 -5
  57. package/lib/resources/addresses.d.cts +2 -2
  58. package/lib/resources/addresses.d.ts +2 -2
  59. package/lib/resources/addresses.js +9 -4
  60. package/lib/resources/adjustments.cjs +4 -5
  61. package/lib/resources/adjustments.d.cts +2 -2
  62. package/lib/resources/adjustments.d.ts +2 -2
  63. package/lib/resources/adjustments.js +3 -4
  64. package/lib/resources/adyen_gateways.cjs +4 -5
  65. package/lib/resources/adyen_gateways.d.cts +2 -2
  66. package/lib/resources/adyen_gateways.d.ts +2 -2
  67. package/lib/resources/adyen_gateways.js +3 -4
  68. package/lib/resources/adyen_payments.cjs +4 -5
  69. package/lib/resources/adyen_payments.d.cts +2 -2
  70. package/lib/resources/adyen_payments.d.ts +2 -2
  71. package/lib/resources/adyen_payments.js +3 -4
  72. package/lib/resources/applications.cjs +4 -5
  73. package/lib/resources/applications.d.cts +2 -2
  74. package/lib/resources/applications.d.ts +2 -2
  75. package/lib/resources/applications.js +3 -4
  76. package/lib/resources/attachments.cjs +4 -5
  77. package/lib/resources/attachments.d.cts +2 -2
  78. package/lib/resources/attachments.d.ts +2 -2
  79. package/lib/resources/attachments.js +3 -4
  80. package/lib/resources/authorizations.cjs +4 -5
  81. package/lib/resources/authorizations.d.cts +2 -2
  82. package/lib/resources/authorizations.d.ts +2 -2
  83. package/lib/resources/authorizations.js +3 -4
  84. package/lib/resources/avalara_accounts.cjs +4 -5
  85. package/lib/resources/avalara_accounts.d.cts +2 -2
  86. package/lib/resources/avalara_accounts.d.ts +2 -2
  87. package/lib/resources/avalara_accounts.js +3 -4
  88. package/lib/resources/axerve_gateways.cjs +4 -5
  89. package/lib/resources/axerve_gateways.d.cts +2 -2
  90. package/lib/resources/axerve_gateways.d.ts +2 -2
  91. package/lib/resources/axerve_gateways.js +3 -4
  92. package/lib/resources/axerve_payments.cjs +4 -5
  93. package/lib/resources/axerve_payments.d.cts +2 -2
  94. package/lib/resources/axerve_payments.d.ts +2 -2
  95. package/lib/resources/axerve_payments.js +3 -4
  96. package/lib/resources/bing_geocoders.cjs +4 -5
  97. package/lib/resources/bing_geocoders.d.cts +2 -2
  98. package/lib/resources/bing_geocoders.d.ts +2 -2
  99. package/lib/resources/bing_geocoders.js +3 -4
  100. package/lib/resources/braintree_gateways.cjs +4 -5
  101. package/lib/resources/braintree_gateways.d.cts +2 -2
  102. package/lib/resources/braintree_gateways.d.ts +2 -2
  103. package/lib/resources/braintree_gateways.js +3 -4
  104. package/lib/resources/braintree_payments.cjs +4 -5
  105. package/lib/resources/braintree_payments.d.cts +2 -2
  106. package/lib/resources/braintree_payments.d.ts +2 -2
  107. package/lib/resources/braintree_payments.js +3 -4
  108. package/lib/resources/bundles.cjs +10 -5
  109. package/lib/resources/bundles.d.cts +2 -2
  110. package/lib/resources/bundles.d.ts +2 -2
  111. package/lib/resources/bundles.js +9 -4
  112. package/lib/resources/buy_x_pay_y_promotions.cjs +10 -5
  113. package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
  114. package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
  115. package/lib/resources/buy_x_pay_y_promotions.js +9 -4
  116. package/lib/resources/captures.cjs +4 -5
  117. package/lib/resources/captures.d.cts +2 -2
  118. package/lib/resources/captures.d.ts +2 -2
  119. package/lib/resources/captures.js +3 -4
  120. package/lib/resources/carrier_accounts.cjs +4 -5
  121. package/lib/resources/carrier_accounts.d.cts +2 -2
  122. package/lib/resources/carrier_accounts.d.ts +2 -2
  123. package/lib/resources/carrier_accounts.js +3 -4
  124. package/lib/resources/checkout_com_gateways.cjs +4 -5
  125. package/lib/resources/checkout_com_gateways.d.cts +2 -2
  126. package/lib/resources/checkout_com_gateways.d.ts +2 -2
  127. package/lib/resources/checkout_com_gateways.js +3 -4
  128. package/lib/resources/checkout_com_payments.cjs +4 -5
  129. package/lib/resources/checkout_com_payments.d.cts +2 -2
  130. package/lib/resources/checkout_com_payments.d.ts +2 -2
  131. package/lib/resources/checkout_com_payments.js +3 -4
  132. package/lib/resources/cleanups.cjs +4 -5
  133. package/lib/resources/cleanups.d.cts +2 -2
  134. package/lib/resources/cleanups.d.ts +2 -2
  135. package/lib/resources/cleanups.js +3 -4
  136. package/lib/resources/coupon_codes_promotion_rules.cjs +4 -5
  137. package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
  138. package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
  139. package/lib/resources/coupon_codes_promotion_rules.js +3 -4
  140. package/lib/resources/coupon_recipients.cjs +4 -5
  141. package/lib/resources/coupon_recipients.d.cts +2 -2
  142. package/lib/resources/coupon_recipients.d.ts +2 -2
  143. package/lib/resources/coupon_recipients.js +3 -4
  144. package/lib/resources/coupons.cjs +10 -5
  145. package/lib/resources/coupons.d.cts +2 -2
  146. package/lib/resources/coupons.d.ts +2 -2
  147. package/lib/resources/coupons.js +9 -4
  148. package/lib/resources/custom_promotion_rules.cjs +4 -5
  149. package/lib/resources/custom_promotion_rules.d.cts +2 -2
  150. package/lib/resources/custom_promotion_rules.d.ts +2 -2
  151. package/lib/resources/custom_promotion_rules.js +3 -4
  152. package/lib/resources/customer_addresses.cjs +4 -5
  153. package/lib/resources/customer_addresses.d.cts +2 -2
  154. package/lib/resources/customer_addresses.d.ts +2 -2
  155. package/lib/resources/customer_addresses.js +3 -4
  156. package/lib/resources/customer_groups.cjs +4 -5
  157. package/lib/resources/customer_groups.d.cts +2 -2
  158. package/lib/resources/customer_groups.d.ts +2 -2
  159. package/lib/resources/customer_groups.js +3 -4
  160. package/lib/resources/customer_password_resets.cjs +4 -5
  161. package/lib/resources/customer_password_resets.d.cts +2 -2
  162. package/lib/resources/customer_password_resets.d.ts +2 -2
  163. package/lib/resources/customer_password_resets.js +3 -4
  164. package/lib/resources/customer_payment_sources.cjs +4 -5
  165. package/lib/resources/customer_payment_sources.d.cts +2 -2
  166. package/lib/resources/customer_payment_sources.d.ts +2 -2
  167. package/lib/resources/customer_payment_sources.js +3 -4
  168. package/lib/resources/customer_subscriptions.cjs +4 -5
  169. package/lib/resources/customer_subscriptions.d.cts +2 -2
  170. package/lib/resources/customer_subscriptions.d.ts +2 -2
  171. package/lib/resources/customer_subscriptions.js +3 -4
  172. package/lib/resources/customers.cjs +10 -5
  173. package/lib/resources/customers.d.cts +2 -2
  174. package/lib/resources/customers.d.ts +2 -2
  175. package/lib/resources/customers.js +9 -4
  176. package/lib/resources/delivery_lead_times.cjs +4 -5
  177. package/lib/resources/delivery_lead_times.d.cts +2 -2
  178. package/lib/resources/delivery_lead_times.d.ts +2 -2
  179. package/lib/resources/delivery_lead_times.js +3 -4
  180. package/lib/resources/discount_engine_items.cjs +4 -5
  181. package/lib/resources/discount_engine_items.d.cts +2 -2
  182. package/lib/resources/discount_engine_items.d.ts +2 -2
  183. package/lib/resources/discount_engine_items.js +3 -4
  184. package/lib/resources/discount_engines.cjs +4 -5
  185. package/lib/resources/discount_engines.d.cts +2 -2
  186. package/lib/resources/discount_engines.d.ts +2 -2
  187. package/lib/resources/discount_engines.js +3 -4
  188. package/lib/resources/easypost_pickups.cjs +4 -5
  189. package/lib/resources/easypost_pickups.d.cts +2 -2
  190. package/lib/resources/easypost_pickups.d.ts +2 -2
  191. package/lib/resources/easypost_pickups.js +3 -4
  192. package/lib/resources/event_callbacks.cjs +4 -5
  193. package/lib/resources/event_callbacks.d.cts +2 -2
  194. package/lib/resources/event_callbacks.d.ts +2 -2
  195. package/lib/resources/event_callbacks.js +3 -4
  196. package/lib/resources/events.cjs +4 -5
  197. package/lib/resources/events.d.cts +2 -2
  198. package/lib/resources/events.d.ts +2 -2
  199. package/lib/resources/events.js +3 -4
  200. package/lib/resources/exports.cjs +4 -5
  201. package/lib/resources/exports.d.cts +2 -2
  202. package/lib/resources/exports.d.ts +2 -2
  203. package/lib/resources/exports.js +3 -4
  204. package/lib/resources/external_gateways.cjs +4 -5
  205. package/lib/resources/external_gateways.d.cts +2 -2
  206. package/lib/resources/external_gateways.d.ts +2 -2
  207. package/lib/resources/external_gateways.js +3 -4
  208. package/lib/resources/external_payments.cjs +4 -5
  209. package/lib/resources/external_payments.d.cts +2 -2
  210. package/lib/resources/external_payments.d.ts +2 -2
  211. package/lib/resources/external_payments.js +3 -4
  212. package/lib/resources/external_promotions.cjs +10 -5
  213. package/lib/resources/external_promotions.d.cts +2 -2
  214. package/lib/resources/external_promotions.d.ts +2 -2
  215. package/lib/resources/external_promotions.js +9 -4
  216. package/lib/resources/external_tax_calculators.cjs +4 -5
  217. package/lib/resources/external_tax_calculators.d.cts +2 -2
  218. package/lib/resources/external_tax_calculators.d.ts +2 -2
  219. package/lib/resources/external_tax_calculators.js +3 -4
  220. package/lib/resources/fixed_amount_promotions.cjs +10 -5
  221. package/lib/resources/fixed_amount_promotions.d.cts +2 -2
  222. package/lib/resources/fixed_amount_promotions.d.ts +2 -2
  223. package/lib/resources/fixed_amount_promotions.js +9 -4
  224. package/lib/resources/fixed_price_promotions.cjs +10 -5
  225. package/lib/resources/fixed_price_promotions.d.cts +2 -2
  226. package/lib/resources/fixed_price_promotions.d.ts +2 -2
  227. package/lib/resources/fixed_price_promotions.js +9 -4
  228. package/lib/resources/flex_promotions.cjs +10 -5
  229. package/lib/resources/flex_promotions.d.cts +2 -2
  230. package/lib/resources/flex_promotions.d.ts +2 -2
  231. package/lib/resources/flex_promotions.js +9 -4
  232. package/lib/resources/free_gift_promotions.cjs +10 -5
  233. package/lib/resources/free_gift_promotions.d.cts +2 -2
  234. package/lib/resources/free_gift_promotions.d.ts +2 -2
  235. package/lib/resources/free_gift_promotions.js +9 -4
  236. package/lib/resources/free_shipping_promotions.cjs +10 -5
  237. package/lib/resources/free_shipping_promotions.d.cts +2 -2
  238. package/lib/resources/free_shipping_promotions.d.ts +2 -2
  239. package/lib/resources/free_shipping_promotions.js +9 -4
  240. package/lib/resources/geocoders.cjs +4 -5
  241. package/lib/resources/geocoders.d.cts +2 -2
  242. package/lib/resources/geocoders.d.ts +2 -2
  243. package/lib/resources/geocoders.js +3 -4
  244. package/lib/resources/gift_card_recipients.cjs +4 -5
  245. package/lib/resources/gift_card_recipients.d.cts +2 -2
  246. package/lib/resources/gift_card_recipients.d.ts +2 -2
  247. package/lib/resources/gift_card_recipients.js +3 -4
  248. package/lib/resources/gift_cards.cjs +10 -5
  249. package/lib/resources/gift_cards.d.cts +2 -2
  250. package/lib/resources/gift_cards.d.ts +2 -2
  251. package/lib/resources/gift_cards.js +9 -4
  252. package/lib/resources/google_geocoders.cjs +4 -5
  253. package/lib/resources/google_geocoders.d.cts +2 -2
  254. package/lib/resources/google_geocoders.d.ts +2 -2
  255. package/lib/resources/google_geocoders.js +3 -4
  256. package/lib/resources/imports.cjs +4 -5
  257. package/lib/resources/imports.d.cts +2 -2
  258. package/lib/resources/imports.d.ts +2 -2
  259. package/lib/resources/imports.js +3 -4
  260. package/lib/resources/in_stock_subscriptions.cjs +4 -5
  261. package/lib/resources/in_stock_subscriptions.d.cts +2 -2
  262. package/lib/resources/in_stock_subscriptions.d.ts +2 -2
  263. package/lib/resources/in_stock_subscriptions.js +3 -4
  264. package/lib/resources/inventory_models.cjs +4 -5
  265. package/lib/resources/inventory_models.d.cts +2 -2
  266. package/lib/resources/inventory_models.d.ts +2 -2
  267. package/lib/resources/inventory_models.js +3 -4
  268. package/lib/resources/inventory_return_locations.cjs +4 -5
  269. package/lib/resources/inventory_return_locations.d.cts +2 -2
  270. package/lib/resources/inventory_return_locations.d.ts +2 -2
  271. package/lib/resources/inventory_return_locations.js +3 -4
  272. package/lib/resources/inventory_stock_locations.cjs +4 -5
  273. package/lib/resources/inventory_stock_locations.d.cts +2 -2
  274. package/lib/resources/inventory_stock_locations.d.ts +2 -2
  275. package/lib/resources/inventory_stock_locations.js +3 -4
  276. package/lib/resources/klarna_gateways.cjs +4 -5
  277. package/lib/resources/klarna_gateways.d.cts +2 -2
  278. package/lib/resources/klarna_gateways.d.ts +2 -2
  279. package/lib/resources/klarna_gateways.js +3 -4
  280. package/lib/resources/klarna_payments.cjs +4 -5
  281. package/lib/resources/klarna_payments.d.cts +2 -2
  282. package/lib/resources/klarna_payments.d.ts +2 -2
  283. package/lib/resources/klarna_payments.js +3 -4
  284. package/lib/resources/line_item_options.cjs +10 -5
  285. package/lib/resources/line_item_options.d.cts +2 -2
  286. package/lib/resources/line_item_options.d.ts +2 -2
  287. package/lib/resources/line_item_options.js +9 -4
  288. package/lib/resources/line_items.cjs +10 -5
  289. package/lib/resources/line_items.d.cts +2 -2
  290. package/lib/resources/line_items.d.ts +2 -2
  291. package/lib/resources/line_items.js +9 -4
  292. package/lib/resources/links.cjs +4 -5
  293. package/lib/resources/links.d.cts +2 -2
  294. package/lib/resources/links.d.ts +2 -2
  295. package/lib/resources/links.js +3 -4
  296. package/lib/resources/manual_gateways.cjs +4 -5
  297. package/lib/resources/manual_gateways.d.cts +2 -2
  298. package/lib/resources/manual_gateways.d.ts +2 -2
  299. package/lib/resources/manual_gateways.js +3 -4
  300. package/lib/resources/manual_tax_calculators.cjs +4 -5
  301. package/lib/resources/manual_tax_calculators.d.cts +2 -2
  302. package/lib/resources/manual_tax_calculators.d.ts +2 -2
  303. package/lib/resources/manual_tax_calculators.js +3 -4
  304. package/lib/resources/markets.cjs +12 -5
  305. package/lib/resources/markets.d.cts +2 -2
  306. package/lib/resources/markets.d.ts +2 -2
  307. package/lib/resources/markets.js +11 -4
  308. package/lib/resources/merchants.cjs +4 -5
  309. package/lib/resources/merchants.d.cts +2 -2
  310. package/lib/resources/merchants.d.ts +2 -2
  311. package/lib/resources/merchants.js +3 -4
  312. package/lib/resources/notifications.cjs +4 -5
  313. package/lib/resources/notifications.d.cts +2 -2
  314. package/lib/resources/notifications.d.ts +2 -2
  315. package/lib/resources/notifications.js +3 -4
  316. package/lib/resources/order_amount_promotion_rules.cjs +4 -5
  317. package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
  318. package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
  319. package/lib/resources/order_amount_promotion_rules.js +3 -4
  320. package/lib/resources/order_copies.cjs +4 -5
  321. package/lib/resources/order_copies.d.cts +2 -2
  322. package/lib/resources/order_copies.d.ts +2 -2
  323. package/lib/resources/order_copies.js +3 -4
  324. package/lib/resources/order_factories.cjs +4 -5
  325. package/lib/resources/order_factories.d.cts +2 -2
  326. package/lib/resources/order_factories.d.ts +2 -2
  327. package/lib/resources/order_factories.js +3 -4
  328. package/lib/resources/order_subscription_items.cjs +4 -5
  329. package/lib/resources/order_subscription_items.d.cts +2 -2
  330. package/lib/resources/order_subscription_items.d.ts +2 -2
  331. package/lib/resources/order_subscription_items.js +3 -4
  332. package/lib/resources/order_subscriptions.cjs +10 -5
  333. package/lib/resources/order_subscriptions.d.cts +2 -2
  334. package/lib/resources/order_subscriptions.d.ts +2 -2
  335. package/lib/resources/order_subscriptions.js +9 -4
  336. package/lib/resources/orders.cjs +18 -5
  337. package/lib/resources/orders.d.cts +2 -2
  338. package/lib/resources/orders.d.ts +2 -2
  339. package/lib/resources/orders.js +17 -4
  340. package/lib/resources/organizations.cjs +4 -5
  341. package/lib/resources/organizations.d.cts +2 -2
  342. package/lib/resources/organizations.d.ts +2 -2
  343. package/lib/resources/organizations.js +3 -4
  344. package/lib/resources/packages.cjs +4 -5
  345. package/lib/resources/packages.d.cts +2 -2
  346. package/lib/resources/packages.d.ts +2 -2
  347. package/lib/resources/packages.js +3 -4
  348. package/lib/resources/parcel_line_items.cjs +4 -5
  349. package/lib/resources/parcel_line_items.d.cts +2 -2
  350. package/lib/resources/parcel_line_items.d.ts +2 -2
  351. package/lib/resources/parcel_line_items.js +3 -4
  352. package/lib/resources/parcels.cjs +4 -5
  353. package/lib/resources/parcels.d.cts +2 -2
  354. package/lib/resources/parcels.d.ts +2 -2
  355. package/lib/resources/parcels.js +3 -4
  356. package/lib/resources/payment_gateways.cjs +4 -5
  357. package/lib/resources/payment_gateways.d.cts +2 -2
  358. package/lib/resources/payment_gateways.d.ts +2 -2
  359. package/lib/resources/payment_gateways.js +3 -4
  360. package/lib/resources/payment_methods.cjs +4 -5
  361. package/lib/resources/payment_methods.d.cts +2 -2
  362. package/lib/resources/payment_methods.d.ts +2 -2
  363. package/lib/resources/payment_methods.js +3 -4
  364. package/lib/resources/payment_options.cjs +4 -5
  365. package/lib/resources/payment_options.d.cts +2 -2
  366. package/lib/resources/payment_options.d.ts +2 -2
  367. package/lib/resources/payment_options.js +3 -4
  368. package/lib/resources/paypal_gateways.cjs +4 -5
  369. package/lib/resources/paypal_gateways.d.cts +2 -2
  370. package/lib/resources/paypal_gateways.d.ts +2 -2
  371. package/lib/resources/paypal_gateways.js +3 -4
  372. package/lib/resources/paypal_payments.cjs +4 -5
  373. package/lib/resources/paypal_payments.d.cts +2 -2
  374. package/lib/resources/paypal_payments.d.ts +2 -2
  375. package/lib/resources/paypal_payments.js +3 -4
  376. package/lib/resources/percentage_discount_promotions.cjs +10 -5
  377. package/lib/resources/percentage_discount_promotions.d.cts +2 -2
  378. package/lib/resources/percentage_discount_promotions.d.ts +2 -2
  379. package/lib/resources/percentage_discount_promotions.js +9 -4
  380. package/lib/resources/pickups.cjs +4 -5
  381. package/lib/resources/pickups.d.cts +2 -2
  382. package/lib/resources/pickups.d.ts +2 -2
  383. package/lib/resources/pickups.js +3 -4
  384. package/lib/resources/price_frequency_tiers.cjs +4 -5
  385. package/lib/resources/price_frequency_tiers.d.cts +2 -2
  386. package/lib/resources/price_frequency_tiers.d.ts +2 -2
  387. package/lib/resources/price_frequency_tiers.js +3 -4
  388. package/lib/resources/price_list_schedulers.cjs +4 -5
  389. package/lib/resources/price_list_schedulers.d.cts +2 -2
  390. package/lib/resources/price_list_schedulers.d.ts +2 -2
  391. package/lib/resources/price_list_schedulers.js +3 -4
  392. package/lib/resources/price_lists.cjs +4 -5
  393. package/lib/resources/price_lists.d.cts +2 -2
  394. package/lib/resources/price_lists.d.ts +2 -2
  395. package/lib/resources/price_lists.js +3 -4
  396. package/lib/resources/price_tiers.cjs +4 -5
  397. package/lib/resources/price_tiers.d.cts +2 -2
  398. package/lib/resources/price_tiers.d.ts +2 -2
  399. package/lib/resources/price_tiers.js +3 -4
  400. package/lib/resources/price_volume_tiers.cjs +4 -5
  401. package/lib/resources/price_volume_tiers.d.cts +2 -2
  402. package/lib/resources/price_volume_tiers.d.ts +2 -2
  403. package/lib/resources/price_volume_tiers.js +3 -4
  404. package/lib/resources/prices.cjs +4 -5
  405. package/lib/resources/prices.d.cts +2 -2
  406. package/lib/resources/prices.d.ts +2 -2
  407. package/lib/resources/prices.js +3 -4
  408. package/lib/resources/promotion_rules.cjs +4 -5
  409. package/lib/resources/promotion_rules.d.cts +2 -2
  410. package/lib/resources/promotion_rules.d.ts +2 -2
  411. package/lib/resources/promotion_rules.js +3 -4
  412. package/lib/resources/promotions.cjs +4 -5
  413. package/lib/resources/promotions.d.cts +2 -2
  414. package/lib/resources/promotions.d.ts +2 -2
  415. package/lib/resources/promotions.js +3 -4
  416. package/lib/resources/recurring_order_copies.cjs +4 -5
  417. package/lib/resources/recurring_order_copies.d.cts +2 -2
  418. package/lib/resources/recurring_order_copies.d.ts +2 -2
  419. package/lib/resources/recurring_order_copies.js +3 -4
  420. package/lib/resources/refunds.cjs +4 -5
  421. package/lib/resources/refunds.d.cts +2 -2
  422. package/lib/resources/refunds.d.ts +2 -2
  423. package/lib/resources/refunds.js +3 -4
  424. package/lib/resources/reserved_stocks.cjs +4 -5
  425. package/lib/resources/reserved_stocks.d.cts +2 -2
  426. package/lib/resources/reserved_stocks.d.ts +2 -2
  427. package/lib/resources/reserved_stocks.js +3 -4
  428. package/lib/resources/resource_errors.cjs +4 -5
  429. package/lib/resources/resource_errors.d.cts +2 -2
  430. package/lib/resources/resource_errors.d.ts +2 -2
  431. package/lib/resources/resource_errors.js +3 -4
  432. package/lib/resources/return_line_items.cjs +4 -5
  433. package/lib/resources/return_line_items.d.cts +2 -2
  434. package/lib/resources/return_line_items.d.ts +2 -2
  435. package/lib/resources/return_line_items.js +3 -4
  436. package/lib/resources/returns.cjs +10 -5
  437. package/lib/resources/returns.d.cts +2 -2
  438. package/lib/resources/returns.d.ts +2 -2
  439. package/lib/resources/returns.js +9 -4
  440. package/lib/resources/satispay_gateways.cjs +4 -5
  441. package/lib/resources/satispay_gateways.d.cts +2 -2
  442. package/lib/resources/satispay_gateways.d.ts +2 -2
  443. package/lib/resources/satispay_gateways.js +3 -4
  444. package/lib/resources/satispay_payments.cjs +4 -5
  445. package/lib/resources/satispay_payments.d.cts +2 -2
  446. package/lib/resources/satispay_payments.d.ts +2 -2
  447. package/lib/resources/satispay_payments.js +3 -4
  448. package/lib/resources/shipments.cjs +10 -5
  449. package/lib/resources/shipments.d.cts +2 -2
  450. package/lib/resources/shipments.d.ts +2 -2
  451. package/lib/resources/shipments.js +9 -4
  452. package/lib/resources/shipping_categories.cjs +4 -5
  453. package/lib/resources/shipping_categories.d.cts +2 -2
  454. package/lib/resources/shipping_categories.d.ts +2 -2
  455. package/lib/resources/shipping_categories.js +3 -4
  456. package/lib/resources/shipping_method_tiers.cjs +4 -5
  457. package/lib/resources/shipping_method_tiers.d.cts +2 -2
  458. package/lib/resources/shipping_method_tiers.d.ts +2 -2
  459. package/lib/resources/shipping_method_tiers.js +3 -4
  460. package/lib/resources/shipping_methods.cjs +4 -5
  461. package/lib/resources/shipping_methods.d.cts +2 -2
  462. package/lib/resources/shipping_methods.d.ts +2 -2
  463. package/lib/resources/shipping_methods.js +3 -4
  464. package/lib/resources/shipping_weight_tiers.cjs +4 -5
  465. package/lib/resources/shipping_weight_tiers.d.cts +2 -2
  466. package/lib/resources/shipping_weight_tiers.d.ts +2 -2
  467. package/lib/resources/shipping_weight_tiers.js +3 -4
  468. package/lib/resources/shipping_zones.cjs +4 -5
  469. package/lib/resources/shipping_zones.d.cts +2 -2
  470. package/lib/resources/shipping_zones.d.ts +2 -2
  471. package/lib/resources/shipping_zones.js +3 -4
  472. package/lib/resources/sku_list_items.cjs +4 -5
  473. package/lib/resources/sku_list_items.d.cts +2 -2
  474. package/lib/resources/sku_list_items.d.ts +2 -2
  475. package/lib/resources/sku_list_items.js +3 -4
  476. package/lib/resources/sku_list_promotion_rules.cjs +4 -5
  477. package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
  478. package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
  479. package/lib/resources/sku_list_promotion_rules.js +3 -4
  480. package/lib/resources/sku_lists.cjs +4 -5
  481. package/lib/resources/sku_lists.d.cts +2 -2
  482. package/lib/resources/sku_lists.d.ts +2 -2
  483. package/lib/resources/sku_lists.js +3 -4
  484. package/lib/resources/sku_options.cjs +10 -5
  485. package/lib/resources/sku_options.d.cts +2 -2
  486. package/lib/resources/sku_options.d.ts +2 -2
  487. package/lib/resources/sku_options.js +9 -4
  488. package/lib/resources/skus.cjs +10 -5
  489. package/lib/resources/skus.d.cts +2 -2
  490. package/lib/resources/skus.d.ts +2 -2
  491. package/lib/resources/skus.js +9 -4
  492. package/lib/resources/stock_items.cjs +4 -5
  493. package/lib/resources/stock_items.d.cts +2 -2
  494. package/lib/resources/stock_items.d.ts +2 -2
  495. package/lib/resources/stock_items.js +3 -4
  496. package/lib/resources/stock_line_items.cjs +4 -5
  497. package/lib/resources/stock_line_items.d.cts +2 -2
  498. package/lib/resources/stock_line_items.d.ts +2 -2
  499. package/lib/resources/stock_line_items.js +3 -4
  500. package/lib/resources/stock_locations.cjs +4 -5
  501. package/lib/resources/stock_locations.d.cts +2 -2
  502. package/lib/resources/stock_locations.d.ts +2 -2
  503. package/lib/resources/stock_locations.js +3 -4
  504. package/lib/resources/stock_reservations.cjs +4 -5
  505. package/lib/resources/stock_reservations.d.cts +2 -2
  506. package/lib/resources/stock_reservations.d.ts +2 -2
  507. package/lib/resources/stock_reservations.js +3 -4
  508. package/lib/resources/stock_transfers.cjs +4 -5
  509. package/lib/resources/stock_transfers.d.cts +2 -2
  510. package/lib/resources/stock_transfers.d.ts +2 -2
  511. package/lib/resources/stock_transfers.js +3 -4
  512. package/lib/resources/stores.cjs +4 -5
  513. package/lib/resources/stores.d.cts +2 -2
  514. package/lib/resources/stores.d.ts +2 -2
  515. package/lib/resources/stores.js +3 -4
  516. package/lib/resources/stripe_gateways.cjs +4 -5
  517. package/lib/resources/stripe_gateways.d.cts +2 -2
  518. package/lib/resources/stripe_gateways.d.ts +2 -2
  519. package/lib/resources/stripe_gateways.js +3 -4
  520. package/lib/resources/stripe_payments.cjs +4 -5
  521. package/lib/resources/stripe_payments.d.cts +2 -2
  522. package/lib/resources/stripe_payments.d.ts +2 -2
  523. package/lib/resources/stripe_payments.js +3 -4
  524. package/lib/resources/stripe_tax_accounts.cjs +4 -5
  525. package/lib/resources/stripe_tax_accounts.d.cts +2 -2
  526. package/lib/resources/stripe_tax_accounts.d.ts +2 -2
  527. package/lib/resources/stripe_tax_accounts.js +3 -4
  528. package/lib/resources/subscription_models.cjs +4 -5
  529. package/lib/resources/subscription_models.d.cts +2 -2
  530. package/lib/resources/subscription_models.d.ts +2 -2
  531. package/lib/resources/subscription_models.js +3 -4
  532. package/lib/resources/tags.cjs +4 -5
  533. package/lib/resources/tags.d.cts +2 -2
  534. package/lib/resources/tags.d.ts +2 -2
  535. package/lib/resources/tags.js +3 -4
  536. package/lib/resources/talon_one_accounts.cjs +4 -5
  537. package/lib/resources/talon_one_accounts.d.cts +2 -2
  538. package/lib/resources/talon_one_accounts.d.ts +2 -2
  539. package/lib/resources/talon_one_accounts.js +3 -4
  540. package/lib/resources/tax_calculators.cjs +4 -5
  541. package/lib/resources/tax_calculators.d.cts +2 -2
  542. package/lib/resources/tax_calculators.d.ts +2 -2
  543. package/lib/resources/tax_calculators.js +3 -4
  544. package/lib/resources/tax_categories.cjs +4 -5
  545. package/lib/resources/tax_categories.d.cts +2 -2
  546. package/lib/resources/tax_categories.d.ts +2 -2
  547. package/lib/resources/tax_categories.js +3 -4
  548. package/lib/resources/tax_rules.cjs +4 -5
  549. package/lib/resources/tax_rules.d.cts +2 -2
  550. package/lib/resources/tax_rules.d.ts +2 -2
  551. package/lib/resources/tax_rules.js +3 -4
  552. package/lib/resources/taxjar_accounts.cjs +4 -5
  553. package/lib/resources/taxjar_accounts.d.cts +2 -2
  554. package/lib/resources/taxjar_accounts.d.ts +2 -2
  555. package/lib/resources/taxjar_accounts.js +3 -4
  556. package/lib/resources/transactions.cjs +4 -5
  557. package/lib/resources/transactions.d.cts +2 -2
  558. package/lib/resources/transactions.d.ts +2 -2
  559. package/lib/resources/transactions.js +3 -4
  560. package/lib/resources/versions.cjs +4 -5
  561. package/lib/resources/versions.d.cts +2 -2
  562. package/lib/resources/versions.d.ts +2 -2
  563. package/lib/resources/versions.js +3 -4
  564. package/lib/resources/vertex_accounts.cjs +4 -5
  565. package/lib/resources/vertex_accounts.d.cts +2 -2
  566. package/lib/resources/vertex_accounts.d.ts +2 -2
  567. package/lib/resources/vertex_accounts.js +3 -4
  568. package/lib/resources/voids.cjs +4 -5
  569. package/lib/resources/voids.d.cts +2 -2
  570. package/lib/resources/voids.d.ts +2 -2
  571. package/lib/resources/voids.js +3 -4
  572. package/lib/resources/webhooks.cjs +4 -5
  573. package/lib/resources/webhooks.d.cts +2 -2
  574. package/lib/resources/webhooks.d.ts +2 -2
  575. package/lib/resources/webhooks.js +3 -4
  576. package/lib/resources/wire_transfers.cjs +4 -5
  577. package/lib/resources/wire_transfers.d.cts +2 -2
  578. package/lib/resources/wire_transfers.d.ts +2 -2
  579. package/lib/resources/wire_transfers.js +3 -4
  580. package/lib/static.cjs +1 -0
  581. package/lib/static.d.cts +3 -3
  582. package/lib/static.d.ts +3 -3
  583. package/lib/static.js +1 -0
  584. package/lib/util.cjs +2 -0
  585. package/lib/util.js +2 -0
  586. package/package.json +7 -7
  587. package/lib/instance.cjs +0 -272
  588. package/lib/instance.d.cts +0 -141
  589. package/lib/instance.d.ts +0 -141
  590. package/lib/instance.js +0 -139
@@ -1,10 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
3
4
  var resource = require('../resource');
4
5
 
5
- var __defProp = Object.defineProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
8
6
  const _GoogleGeocoders = class _GoogleGeocoders extends resource.ApiResource {
9
7
  async create(resource, params, options) {
10
8
  return this.resources.create({ ...resource, type: _GoogleGeocoders.TYPE }, params, options);
@@ -40,9 +38,10 @@ const _GoogleGeocoders = class _GoogleGeocoders extends resource.ApiResource {
40
38
  return _GoogleGeocoders.TYPE;
41
39
  }
42
40
  };
43
- __publicField(_GoogleGeocoders, "TYPE", "google_geocoders");
41
+ chunkJE77HYXB_cjs.__publicField(_GoogleGeocoders, "TYPE", "google_geocoders");
44
42
  let GoogleGeocoders = _GoogleGeocoders;
45
- var google_geocoders_default = GoogleGeocoders;
43
+ const instance = new GoogleGeocoders();
44
+ var google_geocoders_default = instance;
46
45
 
47
46
  module.exports = google_geocoders_default;
48
47
 
@@ -1,4 +1,4 @@
1
- export { cy as GoogleGeocoder, cz as GoogleGeocoderCreate, cB as GoogleGeocoderSort, lw as GoogleGeocoderType, cA as GoogleGeocoderUpdate, ik as default } from '../api-BYcswOJ0.cjs';
1
+ export { eV as GoogleGeocoder, eW as GoogleGeocoderCreate, eY as GoogleGeocoderSort, lw as GoogleGeocoderType, eX as GoogleGeocoderUpdate, ak as default } from '../api-Bq9emZm-.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-5MISI1yn.cjs';
3
+ import '../interceptor-D65i25Y7.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { cy as GoogleGeocoder, cz as GoogleGeocoderCreate, cB as GoogleGeocoderSort, lw as GoogleGeocoderType, cA as GoogleGeocoderUpdate, ik as default } from '../api-Cknm0QL_.js';
1
+ export { eV as GoogleGeocoder, eW as GoogleGeocoderCreate, eY as GoogleGeocoderSort, lw as GoogleGeocoderType, eX as GoogleGeocoderUpdate, ak as default } from '../api-C5qyxFpD.js';
2
2
  import '../client.js';
3
- import '../interceptor-5MISI1yn.js';
3
+ import '../interceptor-D65i25Y7.js';
4
4
  import '../types.js';
@@ -1,8 +1,6 @@
1
+ import { __publicField } from '../chunk-AQ5VUG5P.js';
1
2
  import { ApiResource } from '../resource';
2
3
 
3
- var __defProp = Object.defineProperty;
4
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
6
4
  const _GoogleGeocoders = class _GoogleGeocoders extends ApiResource {
7
5
  async create(resource, params, options) {
8
6
  return this.resources.create({ ...resource, type: _GoogleGeocoders.TYPE }, params, options);
@@ -40,6 +38,7 @@ const _GoogleGeocoders = class _GoogleGeocoders extends ApiResource {
40
38
  };
41
39
  __publicField(_GoogleGeocoders, "TYPE", "google_geocoders");
42
40
  let GoogleGeocoders = _GoogleGeocoders;
43
- var google_geocoders_default = GoogleGeocoders;
41
+ const instance = new GoogleGeocoders();
42
+ var google_geocoders_default = instance;
44
43
 
45
44
  export { google_geocoders_default as default };
@@ -1,10 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
3
4
  var resource = require('../resource');
4
5
 
5
- var __defProp = Object.defineProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
8
6
  const _Imports = class _Imports extends resource.ApiResource {
9
7
  async create(resource, params, options) {
10
8
  return this.resources.create({ ...resource, type: _Imports.TYPE }, params, options);
@@ -35,9 +33,10 @@ const _Imports = class _Imports extends resource.ApiResource {
35
33
  return _Imports.TYPE;
36
34
  }
37
35
  };
38
- __publicField(_Imports, "TYPE", "imports");
36
+ chunkJE77HYXB_cjs.__publicField(_Imports, "TYPE", "imports");
39
37
  let Imports = _Imports;
40
- var imports_default = Imports;
38
+ const instance = new Imports();
39
+ var imports_default = instance;
41
40
 
42
41
  module.exports = imports_default;
43
42
 
@@ -1,4 +1,4 @@
1
- export { cC as Import, cD as ImportCreate, cF as ImportSort, lx as ImportType, cE as ImportUpdate, il as default } from '../api-BYcswOJ0.cjs';
1
+ export { eZ as Import, e_ as ImportCreate, f0 as ImportSort, lx as ImportType, e$ as ImportUpdate, al as default } from '../api-Bq9emZm-.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-5MISI1yn.cjs';
3
+ import '../interceptor-D65i25Y7.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { cC as Import, cD as ImportCreate, cF as ImportSort, lx as ImportType, cE as ImportUpdate, il as default } from '../api-Cknm0QL_.js';
1
+ export { eZ as Import, e_ as ImportCreate, f0 as ImportSort, lx as ImportType, e$ as ImportUpdate, al as default } from '../api-C5qyxFpD.js';
2
2
  import '../client.js';
3
- import '../interceptor-5MISI1yn.js';
3
+ import '../interceptor-D65i25Y7.js';
4
4
  import '../types.js';
@@ -1,8 +1,6 @@
1
+ import { __publicField } from '../chunk-AQ5VUG5P.js';
1
2
  import { ApiResource } from '../resource';
2
3
 
3
- var __defProp = Object.defineProperty;
4
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
6
4
  const _Imports = class _Imports extends ApiResource {
7
5
  async create(resource, params, options) {
8
6
  return this.resources.create({ ...resource, type: _Imports.TYPE }, params, options);
@@ -35,6 +33,7 @@ const _Imports = class _Imports extends ApiResource {
35
33
  };
36
34
  __publicField(_Imports, "TYPE", "imports");
37
35
  let Imports = _Imports;
38
- var imports_default = Imports;
36
+ const instance = new Imports();
37
+ var imports_default = instance;
39
38
 
40
39
  export { imports_default as default };
@@ -1,10 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
3
4
  var resource = require('../resource');
4
5
 
5
- var __defProp = Object.defineProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
8
6
  const _InStockSubscriptions = class _InStockSubscriptions extends resource.ApiResource {
9
7
  async create(resource, params, options) {
10
8
  return this.resources.create({ ...resource, type: _InStockSubscriptions.TYPE }, params, options);
@@ -54,9 +52,10 @@ const _InStockSubscriptions = class _InStockSubscriptions extends resource.ApiRe
54
52
  return _InStockSubscriptions.TYPE;
55
53
  }
56
54
  };
57
- __publicField(_InStockSubscriptions, "TYPE", "in_stock_subscriptions");
55
+ chunkJE77HYXB_cjs.__publicField(_InStockSubscriptions, "TYPE", "in_stock_subscriptions");
58
56
  let InStockSubscriptions = _InStockSubscriptions;
59
- var in_stock_subscriptions_default = InStockSubscriptions;
57
+ const instance = new InStockSubscriptions();
58
+ var in_stock_subscriptions_default = instance;
60
59
 
61
60
  module.exports = in_stock_subscriptions_default;
62
61
 
@@ -1,4 +1,4 @@
1
- export { cG as InStockSubscription, cH as InStockSubscriptionCreate, cJ as InStockSubscriptionSort, ly as InStockSubscriptionType, cI as InStockSubscriptionUpdate, im as default } from '../api-BYcswOJ0.cjs';
1
+ export { f1 as InStockSubscription, f2 as InStockSubscriptionCreate, f4 as InStockSubscriptionSort, ly as InStockSubscriptionType, f3 as InStockSubscriptionUpdate, am as default } from '../api-Bq9emZm-.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-5MISI1yn.cjs';
3
+ import '../interceptor-D65i25Y7.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { cG as InStockSubscription, cH as InStockSubscriptionCreate, cJ as InStockSubscriptionSort, ly as InStockSubscriptionType, cI as InStockSubscriptionUpdate, im as default } from '../api-Cknm0QL_.js';
1
+ export { f1 as InStockSubscription, f2 as InStockSubscriptionCreate, f4 as InStockSubscriptionSort, ly as InStockSubscriptionType, f3 as InStockSubscriptionUpdate, am as default } from '../api-C5qyxFpD.js';
2
2
  import '../client.js';
3
- import '../interceptor-5MISI1yn.js';
3
+ import '../interceptor-D65i25Y7.js';
4
4
  import '../types.js';
@@ -1,8 +1,6 @@
1
+ import { __publicField } from '../chunk-AQ5VUG5P.js';
1
2
  import { ApiResource } from '../resource';
2
3
 
3
- var __defProp = Object.defineProperty;
4
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
6
4
  const _InStockSubscriptions = class _InStockSubscriptions extends ApiResource {
7
5
  async create(resource, params, options) {
8
6
  return this.resources.create({ ...resource, type: _InStockSubscriptions.TYPE }, params, options);
@@ -54,6 +52,7 @@ const _InStockSubscriptions = class _InStockSubscriptions extends ApiResource {
54
52
  };
55
53
  __publicField(_InStockSubscriptions, "TYPE", "in_stock_subscriptions");
56
54
  let InStockSubscriptions = _InStockSubscriptions;
57
- var in_stock_subscriptions_default = InStockSubscriptions;
55
+ const instance = new InStockSubscriptions();
56
+ var in_stock_subscriptions_default = instance;
58
57
 
59
58
  export { in_stock_subscriptions_default as default };
@@ -1,10 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
3
4
  var resource = require('../resource');
4
5
 
5
- var __defProp = Object.defineProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
8
6
  const _InventoryModels = class _InventoryModels extends resource.ApiResource {
9
7
  async create(resource, params, options) {
10
8
  return this.resources.create({ ...resource, type: _InventoryModels.TYPE }, params, options);
@@ -44,9 +42,10 @@ const _InventoryModels = class _InventoryModels extends resource.ApiResource {
44
42
  return _InventoryModels.TYPE;
45
43
  }
46
44
  };
47
- __publicField(_InventoryModels, "TYPE", "inventory_models");
45
+ chunkJE77HYXB_cjs.__publicField(_InventoryModels, "TYPE", "inventory_models");
48
46
  let InventoryModels = _InventoryModels;
49
- var inventory_models_default = InventoryModels;
47
+ const instance = new InventoryModels();
48
+ var inventory_models_default = instance;
50
49
 
51
50
  module.exports = inventory_models_default;
52
51
 
@@ -1,4 +1,4 @@
1
- export { cK as InventoryModel, cL as InventoryModelCreate, cN as InventoryModelSort, jH as InventoryModelType, cM as InventoryModelUpdate, io as default } from '../api-BYcswOJ0.cjs';
1
+ export { f5 as InventoryModel, f6 as InventoryModelCreate, f8 as InventoryModelSort, jH as InventoryModelType, f7 as InventoryModelUpdate, an as default } from '../api-Bq9emZm-.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-5MISI1yn.cjs';
3
+ import '../interceptor-D65i25Y7.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { cK as InventoryModel, cL as InventoryModelCreate, cN as InventoryModelSort, jH as InventoryModelType, cM as InventoryModelUpdate, io as default } from '../api-Cknm0QL_.js';
1
+ export { f5 as InventoryModel, f6 as InventoryModelCreate, f8 as InventoryModelSort, jH as InventoryModelType, f7 as InventoryModelUpdate, an as default } from '../api-C5qyxFpD.js';
2
2
  import '../client.js';
3
- import '../interceptor-5MISI1yn.js';
3
+ import '../interceptor-D65i25Y7.js';
4
4
  import '../types.js';
@@ -1,8 +1,6 @@
1
+ import { __publicField } from '../chunk-AQ5VUG5P.js';
1
2
  import { ApiResource } from '../resource';
2
3
 
3
- var __defProp = Object.defineProperty;
4
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
6
4
  const _InventoryModels = class _InventoryModels extends ApiResource {
7
5
  async create(resource, params, options) {
8
6
  return this.resources.create({ ...resource, type: _InventoryModels.TYPE }, params, options);
@@ -44,6 +42,7 @@ const _InventoryModels = class _InventoryModels extends ApiResource {
44
42
  };
45
43
  __publicField(_InventoryModels, "TYPE", "inventory_models");
46
44
  let InventoryModels = _InventoryModels;
47
- var inventory_models_default = InventoryModels;
45
+ const instance = new InventoryModels();
46
+ var inventory_models_default = instance;
48
47
 
49
48
  export { inventory_models_default as default };
@@ -1,10 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
3
4
  var resource = require('../resource');
4
5
 
5
- var __defProp = Object.defineProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
8
6
  const _InventoryReturnLocations = class _InventoryReturnLocations extends resource.ApiResource {
9
7
  async create(resource, params, options) {
10
8
  return this.resources.create({ ...resource, type: _InventoryReturnLocations.TYPE }, params, options);
@@ -40,9 +38,10 @@ const _InventoryReturnLocations = class _InventoryReturnLocations extends resour
40
38
  return _InventoryReturnLocations.TYPE;
41
39
  }
42
40
  };
43
- __publicField(_InventoryReturnLocations, "TYPE", "inventory_return_locations");
41
+ chunkJE77HYXB_cjs.__publicField(_InventoryReturnLocations, "TYPE", "inventory_return_locations");
44
42
  let InventoryReturnLocations = _InventoryReturnLocations;
45
- var inventory_return_locations_default = InventoryReturnLocations;
43
+ const instance = new InventoryReturnLocations();
44
+ var inventory_return_locations_default = instance;
46
45
 
47
46
  module.exports = inventory_return_locations_default;
48
47
 
@@ -1,4 +1,4 @@
1
- export { cO as InventoryReturnLocation, cP as InventoryReturnLocationCreate, cR as InventoryReturnLocationSort, jG as InventoryReturnLocationType, cQ as InventoryReturnLocationUpdate, ip as default } from '../api-BYcswOJ0.cjs';
1
+ export { f9 as InventoryReturnLocation, fa as InventoryReturnLocationCreate, fc as InventoryReturnLocationSort, jG as InventoryReturnLocationType, fb as InventoryReturnLocationUpdate, ao as default } from '../api-Bq9emZm-.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-5MISI1yn.cjs';
3
+ import '../interceptor-D65i25Y7.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { cO as InventoryReturnLocation, cP as InventoryReturnLocationCreate, cR as InventoryReturnLocationSort, jG as InventoryReturnLocationType, cQ as InventoryReturnLocationUpdate, ip as default } from '../api-Cknm0QL_.js';
1
+ export { f9 as InventoryReturnLocation, fa as InventoryReturnLocationCreate, fc as InventoryReturnLocationSort, jG as InventoryReturnLocationType, fb as InventoryReturnLocationUpdate, ao as default } from '../api-C5qyxFpD.js';
2
2
  import '../client.js';
3
- import '../interceptor-5MISI1yn.js';
3
+ import '../interceptor-D65i25Y7.js';
4
4
  import '../types.js';
@@ -1,8 +1,6 @@
1
+ import { __publicField } from '../chunk-AQ5VUG5P.js';
1
2
  import { ApiResource } from '../resource';
2
3
 
3
- var __defProp = Object.defineProperty;
4
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
6
4
  const _InventoryReturnLocations = class _InventoryReturnLocations extends ApiResource {
7
5
  async create(resource, params, options) {
8
6
  return this.resources.create({ ...resource, type: _InventoryReturnLocations.TYPE }, params, options);
@@ -40,6 +38,7 @@ const _InventoryReturnLocations = class _InventoryReturnLocations extends ApiRes
40
38
  };
41
39
  __publicField(_InventoryReturnLocations, "TYPE", "inventory_return_locations");
42
40
  let InventoryReturnLocations = _InventoryReturnLocations;
43
- var inventory_return_locations_default = InventoryReturnLocations;
41
+ const instance = new InventoryReturnLocations();
42
+ var inventory_return_locations_default = instance;
44
43
 
45
44
  export { inventory_return_locations_default as default };
@@ -1,10 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
3
4
  var resource = require('../resource');
4
5
 
5
- var __defProp = Object.defineProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
8
6
  const _InventoryStockLocations = class _InventoryStockLocations extends resource.ApiResource {
9
7
  async create(resource, params, options) {
10
8
  return this.resources.create({ ...resource, type: _InventoryStockLocations.TYPE }, params, options);
@@ -40,9 +38,10 @@ const _InventoryStockLocations = class _InventoryStockLocations extends resource
40
38
  return _InventoryStockLocations.TYPE;
41
39
  }
42
40
  };
43
- __publicField(_InventoryStockLocations, "TYPE", "inventory_stock_locations");
41
+ chunkJE77HYXB_cjs.__publicField(_InventoryStockLocations, "TYPE", "inventory_stock_locations");
44
42
  let InventoryStockLocations = _InventoryStockLocations;
45
- var inventory_stock_locations_default = InventoryStockLocations;
43
+ const instance = new InventoryStockLocations();
44
+ var inventory_stock_locations_default = instance;
46
45
 
47
46
  module.exports = inventory_stock_locations_default;
48
47
 
@@ -1,4 +1,4 @@
1
- export { cS as InventoryStockLocation, cT as InventoryStockLocationCreate, cV as InventoryStockLocationSort, jI as InventoryStockLocationType, cU as InventoryStockLocationUpdate, iq as default } from '../api-BYcswOJ0.cjs';
1
+ export { fd as InventoryStockLocation, fe as InventoryStockLocationCreate, fg as InventoryStockLocationSort, jI as InventoryStockLocationType, ff as InventoryStockLocationUpdate, ap as default } from '../api-Bq9emZm-.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-5MISI1yn.cjs';
3
+ import '../interceptor-D65i25Y7.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { cS as InventoryStockLocation, cT as InventoryStockLocationCreate, cV as InventoryStockLocationSort, jI as InventoryStockLocationType, cU as InventoryStockLocationUpdate, iq as default } from '../api-Cknm0QL_.js';
1
+ export { fd as InventoryStockLocation, fe as InventoryStockLocationCreate, fg as InventoryStockLocationSort, jI as InventoryStockLocationType, ff as InventoryStockLocationUpdate, ap as default } from '../api-C5qyxFpD.js';
2
2
  import '../client.js';
3
- import '../interceptor-5MISI1yn.js';
3
+ import '../interceptor-D65i25Y7.js';
4
4
  import '../types.js';
@@ -1,8 +1,6 @@
1
+ import { __publicField } from '../chunk-AQ5VUG5P.js';
1
2
  import { ApiResource } from '../resource';
2
3
 
3
- var __defProp = Object.defineProperty;
4
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
6
4
  const _InventoryStockLocations = class _InventoryStockLocations extends ApiResource {
7
5
  async create(resource, params, options) {
8
6
  return this.resources.create({ ...resource, type: _InventoryStockLocations.TYPE }, params, options);
@@ -40,6 +38,7 @@ const _InventoryStockLocations = class _InventoryStockLocations extends ApiResou
40
38
  };
41
39
  __publicField(_InventoryStockLocations, "TYPE", "inventory_stock_locations");
42
40
  let InventoryStockLocations = _InventoryStockLocations;
43
- var inventory_stock_locations_default = InventoryStockLocations;
41
+ const instance = new InventoryStockLocations();
42
+ var inventory_stock_locations_default = instance;
44
43
 
45
44
  export { inventory_stock_locations_default as default };
@@ -1,10 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
3
4
  var resource = require('../resource');
4
5
 
5
- var __defProp = Object.defineProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
8
6
  const _KlarnaGateways = class _KlarnaGateways extends resource.ApiResource {
9
7
  async create(resource, params, options) {
10
8
  return this.resources.create({ ...resource, type: _KlarnaGateways.TYPE }, params, options);
@@ -40,9 +38,10 @@ const _KlarnaGateways = class _KlarnaGateways extends resource.ApiResource {
40
38
  return _KlarnaGateways.TYPE;
41
39
  }
42
40
  };
43
- __publicField(_KlarnaGateways, "TYPE", "klarna_gateways");
41
+ chunkJE77HYXB_cjs.__publicField(_KlarnaGateways, "TYPE", "klarna_gateways");
44
42
  let KlarnaGateways = _KlarnaGateways;
45
- var klarna_gateways_default = KlarnaGateways;
43
+ const instance = new KlarnaGateways();
44
+ var klarna_gateways_default = instance;
46
45
 
47
46
  module.exports = klarna_gateways_default;
48
47
 
@@ -1,4 +1,4 @@
1
- export { cW as KlarnaGateway, cX as KlarnaGatewayCreate, cZ as KlarnaGatewaySort, lz as KlarnaGatewayType, cY as KlarnaGatewayUpdate, ir as default } from '../api-BYcswOJ0.cjs';
1
+ export { fh as KlarnaGateway, fi as KlarnaGatewayCreate, fk as KlarnaGatewaySort, lz as KlarnaGatewayType, fj as KlarnaGatewayUpdate, aq as default } from '../api-Bq9emZm-.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-5MISI1yn.cjs';
3
+ import '../interceptor-D65i25Y7.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { cW as KlarnaGateway, cX as KlarnaGatewayCreate, cZ as KlarnaGatewaySort, lz as KlarnaGatewayType, cY as KlarnaGatewayUpdate, ir as default } from '../api-Cknm0QL_.js';
1
+ export { fh as KlarnaGateway, fi as KlarnaGatewayCreate, fk as KlarnaGatewaySort, lz as KlarnaGatewayType, fj as KlarnaGatewayUpdate, aq as default } from '../api-C5qyxFpD.js';
2
2
  import '../client.js';
3
- import '../interceptor-5MISI1yn.js';
3
+ import '../interceptor-D65i25Y7.js';
4
4
  import '../types.js';
@@ -1,8 +1,6 @@
1
+ import { __publicField } from '../chunk-AQ5VUG5P.js';
1
2
  import { ApiResource } from '../resource';
2
3
 
3
- var __defProp = Object.defineProperty;
4
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
6
4
  const _KlarnaGateways = class _KlarnaGateways extends ApiResource {
7
5
  async create(resource, params, options) {
8
6
  return this.resources.create({ ...resource, type: _KlarnaGateways.TYPE }, params, options);
@@ -40,6 +38,7 @@ const _KlarnaGateways = class _KlarnaGateways extends ApiResource {
40
38
  };
41
39
  __publicField(_KlarnaGateways, "TYPE", "klarna_gateways");
42
40
  let KlarnaGateways = _KlarnaGateways;
43
- var klarna_gateways_default = KlarnaGateways;
41
+ const instance = new KlarnaGateways();
42
+ var klarna_gateways_default = instance;
44
43
 
45
44
  export { klarna_gateways_default as default };
@@ -1,10 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
3
4
  var resource = require('../resource');
4
5
 
5
- var __defProp = Object.defineProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
8
6
  const _KlarnaPayments = class _KlarnaPayments extends resource.ApiResource {
9
7
  async create(resource, params, options) {
10
8
  return this.resources.create({ ...resource, type: _KlarnaPayments.TYPE }, params, options);
@@ -43,9 +41,10 @@ const _KlarnaPayments = class _KlarnaPayments extends resource.ApiResource {
43
41
  return _KlarnaPayments.TYPE;
44
42
  }
45
43
  };
46
- __publicField(_KlarnaPayments, "TYPE", "klarna_payments");
44
+ chunkJE77HYXB_cjs.__publicField(_KlarnaPayments, "TYPE", "klarna_payments");
47
45
  let KlarnaPayments = _KlarnaPayments;
48
- var klarna_payments_default = KlarnaPayments;
46
+ const instance = new KlarnaPayments();
47
+ var klarna_payments_default = instance;
49
48
 
50
49
  module.exports = klarna_payments_default;
51
50
 
@@ -1,4 +1,4 @@
1
- export { c_ as KlarnaPayment, c$ as KlarnaPaymentCreate, d1 as KlarnaPaymentSort, jW as KlarnaPaymentType, d0 as KlarnaPaymentUpdate, is as default } from '../api-BYcswOJ0.cjs';
1
+ export { fl as KlarnaPayment, fm as KlarnaPaymentCreate, fo as KlarnaPaymentSort, jW as KlarnaPaymentType, fn as KlarnaPaymentUpdate, ar as default } from '../api-Bq9emZm-.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-5MISI1yn.cjs';
3
+ import '../interceptor-D65i25Y7.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { c_ as KlarnaPayment, c$ as KlarnaPaymentCreate, d1 as KlarnaPaymentSort, jW as KlarnaPaymentType, d0 as KlarnaPaymentUpdate, is as default } from '../api-Cknm0QL_.js';
1
+ export { fl as KlarnaPayment, fm as KlarnaPaymentCreate, fo as KlarnaPaymentSort, jW as KlarnaPaymentType, fn as KlarnaPaymentUpdate, ar as default } from '../api-C5qyxFpD.js';
2
2
  import '../client.js';
3
- import '../interceptor-5MISI1yn.js';
3
+ import '../interceptor-D65i25Y7.js';
4
4
  import '../types.js';
@@ -1,8 +1,6 @@
1
+ import { __publicField } from '../chunk-AQ5VUG5P.js';
1
2
  import { ApiResource } from '../resource';
2
3
 
3
- var __defProp = Object.defineProperty;
4
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
6
4
  const _KlarnaPayments = class _KlarnaPayments extends ApiResource {
7
5
  async create(resource, params, options) {
8
6
  return this.resources.create({ ...resource, type: _KlarnaPayments.TYPE }, params, options);
@@ -43,6 +41,7 @@ const _KlarnaPayments = class _KlarnaPayments extends ApiResource {
43
41
  };
44
42
  __publicField(_KlarnaPayments, "TYPE", "klarna_payments");
45
43
  let KlarnaPayments = _KlarnaPayments;
46
- var klarna_payments_default = KlarnaPayments;
44
+ const instance = new KlarnaPayments();
45
+ var klarna_payments_default = instance;
47
46
 
48
47
  export { klarna_payments_default as default };
@@ -1,10 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
3
4
  var resource = require('../resource');
4
5
 
5
- var __defProp = Object.defineProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
8
6
  const _LineItemOptions = class _LineItemOptions extends resource.ApiResource {
9
7
  async create(resource, params, options) {
10
8
  return this.resources.create({ ...resource, type: _LineItemOptions.TYPE }, params, options);
@@ -31,6 +29,12 @@ const _LineItemOptions = class _LineItemOptions extends resource.ApiResource {
31
29
  const _lineItemOptionId = lineItemOptionId.id || lineItemOptionId;
32
30
  return this.resources.fetch({ type: "tags" }, `line_item_options/${_lineItemOptionId}/tags`, params, options);
33
31
  }
32
+ async _add_tags(id, triggerValue, params, options) {
33
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItemOptions.TYPE, _add_tags: triggerValue }, params, options);
34
+ }
35
+ async _remove_tags(id, triggerValue, params, options) {
36
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItemOptions.TYPE, _remove_tags: triggerValue }, params, options);
37
+ }
34
38
  isLineItemOption(resource) {
35
39
  return resource.type && resource.type === _LineItemOptions.TYPE;
36
40
  }
@@ -44,9 +48,10 @@ const _LineItemOptions = class _LineItemOptions extends resource.ApiResource {
44
48
  return _LineItemOptions.TYPE;
45
49
  }
46
50
  };
47
- __publicField(_LineItemOptions, "TYPE", "line_item_options");
51
+ chunkJE77HYXB_cjs.__publicField(_LineItemOptions, "TYPE", "line_item_options");
48
52
  let LineItemOptions = _LineItemOptions;
49
- var line_item_options_default = LineItemOptions;
53
+ const instance = new LineItemOptions();
54
+ var line_item_options_default = instance;
50
55
 
51
56
  module.exports = line_item_options_default;
52
57
 
@@ -1,4 +1,4 @@
1
- export { d2 as LineItemOption, d3 as LineItemOptionCreate, d5 as LineItemOptionSort, k3 as LineItemOptionType, d4 as LineItemOptionUpdate, it as default } from '../api-BYcswOJ0.cjs';
1
+ export { fp as LineItemOption, fq as LineItemOptionCreate, fs as LineItemOptionSort, k3 as LineItemOptionType, fr as LineItemOptionUpdate, as as default } from '../api-Bq9emZm-.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-5MISI1yn.cjs';
3
+ import '../interceptor-D65i25Y7.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { d2 as LineItemOption, d3 as LineItemOptionCreate, d5 as LineItemOptionSort, k3 as LineItemOptionType, d4 as LineItemOptionUpdate, it as default } from '../api-Cknm0QL_.js';
1
+ export { fp as LineItemOption, fq as LineItemOptionCreate, fs as LineItemOptionSort, k3 as LineItemOptionType, fr as LineItemOptionUpdate, as as default } from '../api-C5qyxFpD.js';
2
2
  import '../client.js';
3
- import '../interceptor-5MISI1yn.js';
3
+ import '../interceptor-D65i25Y7.js';
4
4
  import '../types.js';
@@ -1,8 +1,6 @@
1
+ import { __publicField } from '../chunk-AQ5VUG5P.js';
1
2
  import { ApiResource } from '../resource';
2
3
 
3
- var __defProp = Object.defineProperty;
4
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
6
4
  const _LineItemOptions = class _LineItemOptions extends ApiResource {
7
5
  async create(resource, params, options) {
8
6
  return this.resources.create({ ...resource, type: _LineItemOptions.TYPE }, params, options);
@@ -29,6 +27,12 @@ const _LineItemOptions = class _LineItemOptions extends ApiResource {
29
27
  const _lineItemOptionId = lineItemOptionId.id || lineItemOptionId;
30
28
  return this.resources.fetch({ type: "tags" }, `line_item_options/${_lineItemOptionId}/tags`, params, options);
31
29
  }
30
+ async _add_tags(id, triggerValue, params, options) {
31
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItemOptions.TYPE, _add_tags: triggerValue }, params, options);
32
+ }
33
+ async _remove_tags(id, triggerValue, params, options) {
34
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItemOptions.TYPE, _remove_tags: triggerValue }, params, options);
35
+ }
32
36
  isLineItemOption(resource) {
33
37
  return resource.type && resource.type === _LineItemOptions.TYPE;
34
38
  }
@@ -44,6 +48,7 @@ const _LineItemOptions = class _LineItemOptions extends ApiResource {
44
48
  };
45
49
  __publicField(_LineItemOptions, "TYPE", "line_item_options");
46
50
  let LineItemOptions = _LineItemOptions;
47
- var line_item_options_default = LineItemOptions;
51
+ const instance = new LineItemOptions();
52
+ var line_item_options_default = instance;
48
53
 
49
54
  export { line_item_options_default as default };
@@ -1,10 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
3
4
  var resource = require('../resource');
4
5
 
5
- var __defProp = Object.defineProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
8
6
  const _LineItems = class _LineItems extends resource.ApiResource {
9
7
  async create(resource, params, options) {
10
8
  return this.resources.create({ ...resource, type: _LineItems.TYPE }, params, options);
@@ -60,6 +58,12 @@ const _LineItems = class _LineItems extends resource.ApiResource {
60
58
  async _reset_circuit(id, params, options) {
61
59
  return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _reset_circuit: true }, params, options);
62
60
  }
61
+ async _add_tags(id, triggerValue, params, options) {
62
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _add_tags: triggerValue }, params, options);
63
+ }
64
+ async _remove_tags(id, triggerValue, params, options) {
65
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _remove_tags: triggerValue }, params, options);
66
+ }
63
67
  isLineItem(resource) {
64
68
  return resource.type && resource.type === _LineItems.TYPE;
65
69
  }
@@ -73,9 +77,10 @@ const _LineItems = class _LineItems extends resource.ApiResource {
73
77
  return _LineItems.TYPE;
74
78
  }
75
79
  };
76
- __publicField(_LineItems, "TYPE", "line_items");
80
+ chunkJE77HYXB_cjs.__publicField(_LineItems, "TYPE", "line_items");
77
81
  let LineItems = _LineItems;
78
- var line_items_default = LineItems;
82
+ const instance = new LineItems();
83
+ var line_items_default = instance;
79
84
 
80
85
  module.exports = line_items_default;
81
86