@commercelayer/sdk 7.5.0 → 7.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (403) hide show
  1. package/lib/{api-CMxJYHwj.d.ts → api-DrryxHto.d.ts} +430 -27
  2. package/lib/{api-XshEzS_t.d.cts → api-Hc0WV-9j.d.cts} +430 -27
  3. package/lib/api.cjs +22 -22
  4. package/lib/api.d.cts +2 -2
  5. package/lib/api.d.ts +2 -2
  6. package/lib/api.js +11 -11
  7. package/lib/bundle.cjs +24 -24
  8. package/lib/bundle.d.cts +2 -2
  9. package/lib/bundle.d.ts +2 -2
  10. package/lib/bundle.js +12 -12
  11. package/lib/{chunk-FCGKL7AI.cjs → chunk-2C3Z5JNK.cjs} +8 -2
  12. package/lib/chunk-2C3Z5JNK.cjs.map +1 -0
  13. package/lib/{chunk-YPRABQMP.js → chunk-3KNN5WPE.js} +8 -2
  14. package/lib/chunk-3KNN5WPE.js.map +1 -0
  15. package/lib/{chunk-6QOS6B5F.cjs → chunk-3X6OVCVT.cjs} +8 -2
  16. package/lib/chunk-3X6OVCVT.cjs.map +1 -0
  17. package/lib/{chunk-KDQRA5YH.js → chunk-67LLQOPH.js} +8 -2
  18. package/lib/chunk-67LLQOPH.js.map +1 -0
  19. package/lib/{chunk-73VR2FML.cjs → chunk-6DRGTFBA.cjs} +8 -2
  20. package/lib/chunk-6DRGTFBA.cjs.map +1 -0
  21. package/lib/{chunk-7AHYBTEX.js → chunk-A3VWVK2F.js} +2 -2
  22. package/lib/chunk-A3VWVK2F.js.map +1 -0
  23. package/lib/{chunk-TWQ4THAG.js → chunk-A5KAGODH.js} +8 -2
  24. package/lib/chunk-A5KAGODH.js.map +1 -0
  25. package/lib/{chunk-OS5DXUBX.js → chunk-BGH55KTL.js} +8 -2
  26. package/lib/chunk-BGH55KTL.js.map +1 -0
  27. package/lib/{chunk-FXR7URWO.js → chunk-BPUZXZM4.js} +3 -3
  28. package/lib/{chunk-FXR7URWO.js.map → chunk-BPUZXZM4.js.map} +1 -1
  29. package/lib/{chunk-W3TAU6GU.cjs → chunk-EJNNEY2F.cjs} +8 -2
  30. package/lib/chunk-EJNNEY2F.cjs.map +1 -0
  31. package/lib/{chunk-HH3NIT7B.js → chunk-FFX5MED5.js} +8 -2
  32. package/lib/chunk-FFX5MED5.js.map +1 -0
  33. package/lib/{chunk-MCWZ3Z3F.cjs → chunk-H7JSRNFC.cjs} +4 -4
  34. package/lib/{chunk-MCWZ3Z3F.cjs.map → chunk-H7JSRNFC.cjs.map} +1 -1
  35. package/lib/{chunk-YFRXWHOB.js → chunk-HBVSEXIQ.js} +8 -2
  36. package/lib/chunk-HBVSEXIQ.js.map +1 -0
  37. package/lib/{chunk-PIYKFPYB.js → chunk-IR2JJDF5.js} +8 -2
  38. package/lib/chunk-IR2JJDF5.js.map +1 -0
  39. package/lib/{chunk-3SD7QN5M.js → chunk-JD3MI7AO.js} +8 -2
  40. package/lib/chunk-JD3MI7AO.js.map +1 -0
  41. package/lib/{chunk-RDTIBHZO.cjs → chunk-JLLZQ7JR.cjs} +8 -2
  42. package/lib/chunk-JLLZQ7JR.cjs.map +1 -0
  43. package/lib/{chunk-DPIHG4FX.cjs → chunk-LKBPLGXI.cjs} +8 -2
  44. package/lib/chunk-LKBPLGXI.cjs.map +1 -0
  45. package/lib/{chunk-V7377LPP.js → chunk-MBWTMQHA.js} +3 -3
  46. package/lib/{chunk-V7377LPP.js.map → chunk-MBWTMQHA.js.map} +1 -1
  47. package/lib/{chunk-AYM2RMFY.cjs → chunk-NHDSPKJY.cjs} +3 -3
  48. package/lib/{chunk-AYM2RMFY.cjs.map → chunk-NHDSPKJY.cjs.map} +1 -1
  49. package/lib/{chunk-6ZUGJHNV.cjs → chunk-O66EZDG2.cjs} +8 -2
  50. package/lib/chunk-O66EZDG2.cjs.map +1 -0
  51. package/lib/{chunk-A76SFMAB.cjs → chunk-PXSMF4QS.cjs} +8 -2
  52. package/lib/chunk-PXSMF4QS.cjs.map +1 -0
  53. package/lib/{chunk-4ATZM33H.js → chunk-SFFSVEXJ.js} +8 -2
  54. package/lib/chunk-SFFSVEXJ.js.map +1 -0
  55. package/lib/{chunk-DEYOBMM5.js → chunk-VZGJGOH3.js} +8 -2
  56. package/lib/chunk-VZGJGOH3.js.map +1 -0
  57. package/lib/{chunk-WVCUPAHM.cjs → chunk-WLTZ66G4.cjs} +2 -2
  58. package/lib/chunk-WLTZ66G4.cjs.map +1 -0
  59. package/lib/{chunk-YZ4JURI3.cjs → chunk-YDMB4XPA.cjs} +8 -2
  60. package/lib/chunk-YDMB4XPA.cjs.map +1 -0
  61. package/lib/{chunk-II544XO5.cjs → chunk-ZSWW2XGD.cjs} +8 -2
  62. package/lib/chunk-ZSWW2XGD.cjs.map +1 -0
  63. package/lib/client.d.cts +1 -1
  64. package/lib/client.d.ts +1 -1
  65. package/lib/commercelayer.cjs +5 -5
  66. package/lib/commercelayer.d.cts +4 -4
  67. package/lib/commercelayer.d.ts +4 -4
  68. package/lib/commercelayer.js +1 -1
  69. package/lib/config.d.cts +1 -1
  70. package/lib/config.d.ts +1 -1
  71. package/lib/enum.d.cts +2 -2
  72. package/lib/enum.d.ts +2 -2
  73. package/lib/fetch.d.cts +1 -1
  74. package/lib/fetch.d.ts +1 -1
  75. package/lib/index.cjs +27 -27
  76. package/lib/index.d.cts +3 -3
  77. package/lib/index.d.ts +3 -3
  78. package/lib/index.js +13 -13
  79. package/lib/{interceptor-k15jXzf0.d.cts → interceptor-ETmS7Tab.d.cts} +1 -1
  80. package/lib/{interceptor-k15jXzf0.d.ts → interceptor-ETmS7Tab.d.ts} +1 -1
  81. package/lib/interceptor.d.cts +1 -1
  82. package/lib/interceptor.d.ts +1 -1
  83. package/lib/jsonapi.d.cts +2 -2
  84. package/lib/jsonapi.d.ts +2 -2
  85. package/lib/model.d.cts +2 -2
  86. package/lib/model.d.ts +2 -2
  87. package/lib/query.d.cts +2 -2
  88. package/lib/query.d.ts +2 -2
  89. package/lib/resource.d.cts +2 -2
  90. package/lib/resource.d.ts +2 -2
  91. package/lib/resources/addresses.d.cts +3 -3
  92. package/lib/resources/addresses.d.ts +2 -2
  93. package/lib/resources/adjustments.d.cts +3 -3
  94. package/lib/resources/adjustments.d.ts +2 -2
  95. package/lib/resources/adyen_gateways.cjs +2 -2
  96. package/lib/resources/adyen_gateways.d.cts +3 -3
  97. package/lib/resources/adyen_gateways.d.ts +2 -2
  98. package/lib/resources/adyen_gateways.js +1 -1
  99. package/lib/resources/adyen_payments.d.cts +3 -3
  100. package/lib/resources/adyen_payments.d.ts +2 -2
  101. package/lib/resources/applications.d.cts +3 -3
  102. package/lib/resources/applications.d.ts +2 -2
  103. package/lib/resources/attachments.d.cts +3 -3
  104. package/lib/resources/attachments.d.ts +2 -2
  105. package/lib/resources/authorizations.d.cts +3 -3
  106. package/lib/resources/authorizations.d.ts +2 -2
  107. package/lib/resources/avalara_accounts.d.cts +3 -3
  108. package/lib/resources/avalara_accounts.d.ts +2 -2
  109. package/lib/resources/axerve_gateways.cjs +2 -2
  110. package/lib/resources/axerve_gateways.d.cts +3 -3
  111. package/lib/resources/axerve_gateways.d.ts +2 -2
  112. package/lib/resources/axerve_gateways.js +1 -1
  113. package/lib/resources/axerve_payments.d.cts +3 -3
  114. package/lib/resources/axerve_payments.d.ts +2 -2
  115. package/lib/resources/bing_geocoders.d.cts +3 -3
  116. package/lib/resources/bing_geocoders.d.ts +2 -2
  117. package/lib/resources/braintree_gateways.cjs +2 -2
  118. package/lib/resources/braintree_gateways.d.cts +3 -3
  119. package/lib/resources/braintree_gateways.d.ts +2 -2
  120. package/lib/resources/braintree_gateways.js +1 -1
  121. package/lib/resources/braintree_payments.d.cts +3 -3
  122. package/lib/resources/braintree_payments.d.ts +2 -2
  123. package/lib/resources/bundles.d.cts +3 -3
  124. package/lib/resources/bundles.d.ts +2 -2
  125. package/lib/resources/buy_x_pay_y_promotions.d.cts +3 -3
  126. package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
  127. package/lib/resources/captures.d.cts +3 -3
  128. package/lib/resources/captures.d.ts +2 -2
  129. package/lib/resources/carrier_accounts.d.cts +3 -3
  130. package/lib/resources/carrier_accounts.d.ts +2 -2
  131. package/lib/resources/checkout_com_gateways.cjs +2 -2
  132. package/lib/resources/checkout_com_gateways.d.cts +3 -3
  133. package/lib/resources/checkout_com_gateways.d.ts +2 -2
  134. package/lib/resources/checkout_com_gateways.js +1 -1
  135. package/lib/resources/checkout_com_payments.d.cts +3 -3
  136. package/lib/resources/checkout_com_payments.d.ts +2 -2
  137. package/lib/resources/cleanups.d.cts +3 -3
  138. package/lib/resources/cleanups.d.ts +2 -2
  139. package/lib/resources/coupon_codes_promotion_rules.d.cts +3 -3
  140. package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
  141. package/lib/resources/coupon_recipients.d.cts +3 -3
  142. package/lib/resources/coupon_recipients.d.ts +2 -2
  143. package/lib/resources/coupons.d.cts +3 -3
  144. package/lib/resources/coupons.d.ts +2 -2
  145. package/lib/resources/custom_promotion_rules.d.cts +3 -3
  146. package/lib/resources/custom_promotion_rules.d.ts +2 -2
  147. package/lib/resources/customer_addresses.d.cts +3 -3
  148. package/lib/resources/customer_addresses.d.ts +2 -2
  149. package/lib/resources/customer_groups.d.cts +3 -3
  150. package/lib/resources/customer_groups.d.ts +2 -2
  151. package/lib/resources/customer_password_resets.d.cts +3 -3
  152. package/lib/resources/customer_password_resets.d.ts +2 -2
  153. package/lib/resources/customer_payment_sources.d.cts +3 -3
  154. package/lib/resources/customer_payment_sources.d.ts +2 -2
  155. package/lib/resources/customer_subscriptions.d.cts +3 -3
  156. package/lib/resources/customer_subscriptions.d.ts +2 -2
  157. package/lib/resources/customers.d.cts +3 -3
  158. package/lib/resources/customers.d.ts +2 -2
  159. package/lib/resources/delivery_lead_times.d.cts +3 -3
  160. package/lib/resources/delivery_lead_times.d.ts +2 -2
  161. package/lib/resources/discount_engine_items.d.cts +3 -3
  162. package/lib/resources/discount_engine_items.d.ts +2 -2
  163. package/lib/resources/discount_engines.d.cts +3 -3
  164. package/lib/resources/discount_engines.d.ts +2 -2
  165. package/lib/resources/easypost_pickups.d.cts +3 -3
  166. package/lib/resources/easypost_pickups.d.ts +2 -2
  167. package/lib/resources/event_callbacks.d.cts +3 -3
  168. package/lib/resources/event_callbacks.d.ts +2 -2
  169. package/lib/resources/event_stores.d.cts +3 -3
  170. package/lib/resources/event_stores.d.ts +2 -2
  171. package/lib/resources/events.d.cts +3 -3
  172. package/lib/resources/events.d.ts +2 -2
  173. package/lib/resources/exports.d.cts +3 -3
  174. package/lib/resources/exports.d.ts +2 -2
  175. package/lib/resources/external_gateways.cjs +2 -2
  176. package/lib/resources/external_gateways.d.cts +3 -3
  177. package/lib/resources/external_gateways.d.ts +2 -2
  178. package/lib/resources/external_gateways.js +1 -1
  179. package/lib/resources/external_payments.d.cts +3 -3
  180. package/lib/resources/external_payments.d.ts +2 -2
  181. package/lib/resources/external_promotions.d.cts +3 -3
  182. package/lib/resources/external_promotions.d.ts +2 -2
  183. package/lib/resources/external_tax_calculators.d.cts +3 -3
  184. package/lib/resources/external_tax_calculators.d.ts +2 -2
  185. package/lib/resources/fixed_amount_promotions.d.cts +3 -3
  186. package/lib/resources/fixed_amount_promotions.d.ts +2 -2
  187. package/lib/resources/fixed_price_promotions.d.cts +3 -3
  188. package/lib/resources/fixed_price_promotions.d.ts +2 -2
  189. package/lib/resources/flex_promotions.d.cts +3 -3
  190. package/lib/resources/flex_promotions.d.ts +2 -2
  191. package/lib/resources/free_gift_promotions.d.cts +3 -3
  192. package/lib/resources/free_gift_promotions.d.ts +2 -2
  193. package/lib/resources/free_shipping_promotions.d.cts +3 -3
  194. package/lib/resources/free_shipping_promotions.d.ts +2 -2
  195. package/lib/resources/geocoders.d.cts +3 -3
  196. package/lib/resources/geocoders.d.ts +2 -2
  197. package/lib/resources/gift_card_recipients.d.cts +3 -3
  198. package/lib/resources/gift_card_recipients.d.ts +2 -2
  199. package/lib/resources/gift_cards.d.cts +3 -3
  200. package/lib/resources/gift_cards.d.ts +2 -2
  201. package/lib/resources/google_geocoders.d.cts +3 -3
  202. package/lib/resources/google_geocoders.d.ts +2 -2
  203. package/lib/resources/imports.d.cts +3 -3
  204. package/lib/resources/imports.d.ts +2 -2
  205. package/lib/resources/in_stock_subscriptions.d.cts +3 -3
  206. package/lib/resources/in_stock_subscriptions.d.ts +2 -2
  207. package/lib/resources/inventory_models.d.cts +3 -3
  208. package/lib/resources/inventory_models.d.ts +2 -2
  209. package/lib/resources/inventory_return_locations.d.cts +3 -3
  210. package/lib/resources/inventory_return_locations.d.ts +2 -2
  211. package/lib/resources/inventory_stock_locations.d.cts +3 -3
  212. package/lib/resources/inventory_stock_locations.d.ts +2 -2
  213. package/lib/resources/klarna_gateways.cjs +2 -2
  214. package/lib/resources/klarna_gateways.d.cts +3 -3
  215. package/lib/resources/klarna_gateways.d.ts +2 -2
  216. package/lib/resources/klarna_gateways.js +1 -1
  217. package/lib/resources/klarna_payments.d.cts +3 -3
  218. package/lib/resources/klarna_payments.d.ts +2 -2
  219. package/lib/resources/line_item_options.d.cts +3 -3
  220. package/lib/resources/line_item_options.d.ts +2 -2
  221. package/lib/resources/line_items.d.cts +3 -3
  222. package/lib/resources/line_items.d.ts +2 -2
  223. package/lib/resources/links.d.cts +3 -3
  224. package/lib/resources/links.d.ts +2 -2
  225. package/lib/resources/manual_gateways.cjs +2 -2
  226. package/lib/resources/manual_gateways.d.cts +3 -3
  227. package/lib/resources/manual_gateways.d.ts +2 -2
  228. package/lib/resources/manual_gateways.js +1 -1
  229. package/lib/resources/manual_tax_calculators.d.cts +3 -3
  230. package/lib/resources/manual_tax_calculators.d.ts +2 -2
  231. package/lib/resources/markets.d.cts +3 -3
  232. package/lib/resources/markets.d.ts +2 -2
  233. package/lib/resources/merchants.d.cts +3 -3
  234. package/lib/resources/merchants.d.ts +2 -2
  235. package/lib/resources/notifications.d.cts +3 -3
  236. package/lib/resources/notifications.d.ts +2 -2
  237. package/lib/resources/order_amount_promotion_rules.d.cts +3 -3
  238. package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
  239. package/lib/resources/order_copies.d.cts +3 -3
  240. package/lib/resources/order_copies.d.ts +2 -2
  241. package/lib/resources/order_factories.d.cts +3 -3
  242. package/lib/resources/order_factories.d.ts +2 -2
  243. package/lib/resources/order_subscription_items.d.cts +3 -3
  244. package/lib/resources/order_subscription_items.d.ts +2 -2
  245. package/lib/resources/order_subscriptions.d.cts +3 -3
  246. package/lib/resources/order_subscriptions.d.ts +2 -2
  247. package/lib/resources/orders.d.cts +3 -3
  248. package/lib/resources/orders.d.ts +2 -2
  249. package/lib/resources/organizations.d.cts +3 -3
  250. package/lib/resources/organizations.d.ts +2 -2
  251. package/lib/resources/packages.d.cts +3 -3
  252. package/lib/resources/packages.d.ts +2 -2
  253. package/lib/resources/parcel_line_items.d.cts +3 -3
  254. package/lib/resources/parcel_line_items.d.ts +2 -2
  255. package/lib/resources/parcels.d.cts +3 -3
  256. package/lib/resources/parcels.d.ts +2 -2
  257. package/lib/resources/payment_gateways.cjs +2 -2
  258. package/lib/resources/payment_gateways.d.cts +3 -3
  259. package/lib/resources/payment_gateways.d.ts +2 -2
  260. package/lib/resources/payment_gateways.js +1 -1
  261. package/lib/resources/payment_methods.d.cts +3 -3
  262. package/lib/resources/payment_methods.d.ts +2 -2
  263. package/lib/resources/payment_options.d.cts +3 -3
  264. package/lib/resources/payment_options.d.ts +2 -2
  265. package/lib/resources/paypal_gateways.cjs +2 -2
  266. package/lib/resources/paypal_gateways.d.cts +3 -3
  267. package/lib/resources/paypal_gateways.d.ts +2 -2
  268. package/lib/resources/paypal_gateways.js +1 -1
  269. package/lib/resources/paypal_payments.d.cts +3 -3
  270. package/lib/resources/paypal_payments.d.ts +2 -2
  271. package/lib/resources/percentage_discount_promotions.d.cts +3 -3
  272. package/lib/resources/percentage_discount_promotions.d.ts +2 -2
  273. package/lib/resources/pickups.d.cts +3 -3
  274. package/lib/resources/pickups.d.ts +2 -2
  275. package/lib/resources/price_frequency_tiers.d.cts +3 -3
  276. package/lib/resources/price_frequency_tiers.d.ts +2 -2
  277. package/lib/resources/price_list_schedulers.d.cts +3 -3
  278. package/lib/resources/price_list_schedulers.d.ts +2 -2
  279. package/lib/resources/price_lists.d.cts +3 -3
  280. package/lib/resources/price_lists.d.ts +2 -2
  281. package/lib/resources/price_tiers.d.cts +3 -3
  282. package/lib/resources/price_tiers.d.ts +2 -2
  283. package/lib/resources/price_volume_tiers.d.cts +3 -3
  284. package/lib/resources/price_volume_tiers.d.ts +2 -2
  285. package/lib/resources/prices.d.cts +3 -3
  286. package/lib/resources/prices.d.ts +2 -2
  287. package/lib/resources/promotion_rules.d.cts +3 -3
  288. package/lib/resources/promotion_rules.d.ts +2 -2
  289. package/lib/resources/promotions.d.cts +3 -3
  290. package/lib/resources/promotions.d.ts +2 -2
  291. package/lib/resources/recurring_order_copies.d.cts +3 -3
  292. package/lib/resources/recurring_order_copies.d.ts +2 -2
  293. package/lib/resources/refunds.d.cts +3 -3
  294. package/lib/resources/refunds.d.ts +2 -2
  295. package/lib/resources/reserved_stocks.d.cts +3 -3
  296. package/lib/resources/reserved_stocks.d.ts +2 -2
  297. package/lib/resources/resource_errors.d.cts +3 -3
  298. package/lib/resources/resource_errors.d.ts +2 -2
  299. package/lib/resources/return_line_items.d.cts +3 -3
  300. package/lib/resources/return_line_items.d.ts +2 -2
  301. package/lib/resources/returns.d.cts +3 -3
  302. package/lib/resources/returns.d.ts +2 -2
  303. package/lib/resources/satispay_gateways.cjs +2 -2
  304. package/lib/resources/satispay_gateways.d.cts +3 -3
  305. package/lib/resources/satispay_gateways.d.ts +2 -2
  306. package/lib/resources/satispay_gateways.js +1 -1
  307. package/lib/resources/satispay_payments.d.cts +3 -3
  308. package/lib/resources/satispay_payments.d.ts +2 -2
  309. package/lib/resources/shipments.d.cts +3 -3
  310. package/lib/resources/shipments.d.ts +2 -2
  311. package/lib/resources/shipping_categories.d.cts +3 -3
  312. package/lib/resources/shipping_categories.d.ts +2 -2
  313. package/lib/resources/shipping_method_tiers.d.cts +3 -3
  314. package/lib/resources/shipping_method_tiers.d.ts +2 -2
  315. package/lib/resources/shipping_methods.d.cts +3 -3
  316. package/lib/resources/shipping_methods.d.ts +2 -2
  317. package/lib/resources/shipping_weight_tiers.d.cts +3 -3
  318. package/lib/resources/shipping_weight_tiers.d.ts +2 -2
  319. package/lib/resources/shipping_zones.d.cts +3 -3
  320. package/lib/resources/shipping_zones.d.ts +2 -2
  321. package/lib/resources/sku_list_items.d.cts +3 -3
  322. package/lib/resources/sku_list_items.d.ts +2 -2
  323. package/lib/resources/sku_list_promotion_rules.d.cts +3 -3
  324. package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
  325. package/lib/resources/sku_lists.d.cts +3 -3
  326. package/lib/resources/sku_lists.d.ts +2 -2
  327. package/lib/resources/sku_options.d.cts +3 -3
  328. package/lib/resources/sku_options.d.ts +2 -2
  329. package/lib/resources/skus.d.cts +3 -3
  330. package/lib/resources/skus.d.ts +2 -2
  331. package/lib/resources/stock_items.d.cts +3 -3
  332. package/lib/resources/stock_items.d.ts +2 -2
  333. package/lib/resources/stock_line_items.d.cts +3 -3
  334. package/lib/resources/stock_line_items.d.ts +2 -2
  335. package/lib/resources/stock_locations.d.cts +3 -3
  336. package/lib/resources/stock_locations.d.ts +2 -2
  337. package/lib/resources/stock_reservations.d.cts +3 -3
  338. package/lib/resources/stock_reservations.d.ts +2 -2
  339. package/lib/resources/stock_transfers.d.cts +3 -3
  340. package/lib/resources/stock_transfers.d.ts +2 -2
  341. package/lib/resources/stores.d.cts +3 -3
  342. package/lib/resources/stores.d.ts +2 -2
  343. package/lib/resources/stripe_gateways.cjs +2 -2
  344. package/lib/resources/stripe_gateways.d.cts +3 -3
  345. package/lib/resources/stripe_gateways.d.ts +2 -2
  346. package/lib/resources/stripe_gateways.js +1 -1
  347. package/lib/resources/stripe_payments.d.cts +3 -3
  348. package/lib/resources/stripe_payments.d.ts +2 -2
  349. package/lib/resources/stripe_tax_accounts.d.cts +3 -3
  350. package/lib/resources/stripe_tax_accounts.d.ts +2 -2
  351. package/lib/resources/subscription_models.d.cts +3 -3
  352. package/lib/resources/subscription_models.d.ts +2 -2
  353. package/lib/resources/tags.d.cts +3 -3
  354. package/lib/resources/tags.d.ts +2 -2
  355. package/lib/resources/talon_one_accounts.d.cts +3 -3
  356. package/lib/resources/talon_one_accounts.d.ts +2 -2
  357. package/lib/resources/tax_calculators.d.cts +3 -3
  358. package/lib/resources/tax_calculators.d.ts +2 -2
  359. package/lib/resources/tax_categories.d.cts +3 -3
  360. package/lib/resources/tax_categories.d.ts +2 -2
  361. package/lib/resources/tax_rules.d.cts +3 -3
  362. package/lib/resources/tax_rules.d.ts +2 -2
  363. package/lib/resources/taxjar_accounts.d.cts +3 -3
  364. package/lib/resources/taxjar_accounts.d.ts +2 -2
  365. package/lib/resources/transactions.d.cts +3 -3
  366. package/lib/resources/transactions.d.ts +2 -2
  367. package/lib/resources/versions.d.cts +3 -3
  368. package/lib/resources/versions.d.ts +2 -2
  369. package/lib/resources/vertex_accounts.d.cts +3 -3
  370. package/lib/resources/vertex_accounts.d.ts +2 -2
  371. package/lib/resources/voids.d.cts +3 -3
  372. package/lib/resources/voids.d.ts +2 -2
  373. package/lib/resources/webhooks.d.cts +3 -3
  374. package/lib/resources/webhooks.d.ts +2 -2
  375. package/lib/resources/wire_transfers.d.cts +3 -3
  376. package/lib/resources/wire_transfers.d.ts +2 -2
  377. package/lib/static.cjs +3 -3
  378. package/lib/static.d.cts +2 -2
  379. package/lib/static.d.ts +2 -2
  380. package/lib/static.js +2 -2
  381. package/package.json +1 -1
  382. package/lib/chunk-3SD7QN5M.js.map +0 -1
  383. package/lib/chunk-4ATZM33H.js.map +0 -1
  384. package/lib/chunk-6QOS6B5F.cjs.map +0 -1
  385. package/lib/chunk-6ZUGJHNV.cjs.map +0 -1
  386. package/lib/chunk-73VR2FML.cjs.map +0 -1
  387. package/lib/chunk-7AHYBTEX.js.map +0 -1
  388. package/lib/chunk-A76SFMAB.cjs.map +0 -1
  389. package/lib/chunk-DEYOBMM5.js.map +0 -1
  390. package/lib/chunk-DPIHG4FX.cjs.map +0 -1
  391. package/lib/chunk-FCGKL7AI.cjs.map +0 -1
  392. package/lib/chunk-HH3NIT7B.js.map +0 -1
  393. package/lib/chunk-II544XO5.cjs.map +0 -1
  394. package/lib/chunk-KDQRA5YH.js.map +0 -1
  395. package/lib/chunk-OS5DXUBX.js.map +0 -1
  396. package/lib/chunk-PIYKFPYB.js.map +0 -1
  397. package/lib/chunk-RDTIBHZO.cjs.map +0 -1
  398. package/lib/chunk-TWQ4THAG.js.map +0 -1
  399. package/lib/chunk-W3TAU6GU.cjs.map +0 -1
  400. package/lib/chunk-WVCUPAHM.cjs.map +0 -1
  401. package/lib/chunk-YFRXWHOB.js.map +0 -1
  402. package/lib/chunk-YPRABQMP.js.map +0 -1
  403. package/lib/chunk-YZ4JURI3.cjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/external_gateways.ts"],"names":[],"mappings":";;;AAwKA,IAAM,gBAAA,GAAN,MAAM,iBAAA,SAAyB,WAAA,CAA6B;AAAA,EAE3D,OAAgB,IAAA,GAA4B,mBAAA;AAAA,EAE5C,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,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AkB,iBAAA,EAA6C,MAAA,EAA2C,OAAA,EAAmE;AAClL,IAAA,MAAM,kBAAA,GAAsB,kBAAsC,EAAA,IAAM,iBAAA;AACxE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAuB,EAAE,IAAA,EAAM,mBAAA,EAAoB,EAAG,CAAA,kBAAA,EAAqB,kBAAkB,CAAA,kBAAA,CAAA,EAAsB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACzJ;AAAA,EAEA,MAAM,cAAA,CAAe,EAAA,EAA8B,MAAA,EAA+C,OAAA,EAAqD;AACtJ,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,iBAAA,CAAiB,IAAA,EAAM,gBAAgB,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACrL;AAAA,EAGA,kBAAkB,QAAA,EAA4C;AAC7D,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,iBAAA,CAAiB,IAAA;AAAA,EAC7D;AAAA,EAGA,aAAa,EAAA,EAAoD;AAChE,IAAA,OAAO,KAAA,CAAM,qBAAyC,EAAE,CAAA;AAAA,EACzD;AAAA,EAEA,sBAAsB,GAAA,EAAqC;AAC1D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA0C,GAAG,GAAG,CAAA;AAAA,EAC9D;AAAA,EAGA,IAAA,GAA4B;AAC3B,IAAA,OAAO,iBAAA,CAAiB,IAAA;AAAA,EACzB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,gBAAA,EAAiB;AACtC,IAAO,yBAAA,GAAQ","file":"chunk-YFRXWHOB.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\nimport type { ExternalPayment } from './external_payments'\n\n\ntype ExternalGatewayType = 'external_gateways'\ntype ExternalGatewayRel = ResourceRel & { type: ExternalGatewayType }\n\n\nexport type ExternalGatewaySort = Pick<ExternalGateway, 'id' | 'name' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type ExternalGatewayFilter = Pick<ExternalGateway, 'id' | 'name' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface ExternalGateway extends Resource {\n\t\n\treadonly type: ExternalGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * The endpoint used by the external gateway to authorize payments.\n\t * @example ```\"https://external_gateway.com/authorize\"```\n\t */\n\tauthorize_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to capture payments.\n\t * @example ```\"https://external_gateway.com/capture\"```\n\t */\n\tcapture_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to void payments.\n\t * @example ```\"https://external_gateway.com/void\"```\n\t */\n\tvoid_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to refund payments.\n\t * @example ```\"https://external_gateway.com/refund\"```\n\t */\n\trefund_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to create a customer payment token.\n\t * @example ```\"https://external_gateway.com/token\"```\n\t */\n\ttoken_url?: string | null\n\t/** \n\t * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.\n\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\t/** \n\t * The shared secret used to sign the external request payload.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tshared_secret: string\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\texternal_payments?: ExternalPayment[] | null\n\n}\n\n\ninterface ExternalGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * The endpoint used by the external gateway to authorize payments.\n\t * @example ```\"https://external_gateway.com/authorize\"```\n\t */\n\tauthorize_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to capture payments.\n\t * @example ```\"https://external_gateway.com/capture\"```\n\t */\n\tcapture_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to void payments.\n\t * @example ```\"https://external_gateway.com/void\"```\n\t */\n\tvoid_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to refund payments.\n\t * @example ```\"https://external_gateway.com/refund\"```\n\t */\n\trefund_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to create a customer payment token.\n\t * @example ```\"https://external_gateway.com/token\"```\n\t */\n\ttoken_url?: string | null\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t\n}\n\n\ninterface ExternalGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The endpoint used by the external gateway to authorize payments.\n\t * @example ```\"https://external_gateway.com/authorize\"```\n\t */\n\tauthorize_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to capture payments.\n\t * @example ```\"https://external_gateway.com/capture\"```\n\t */\n\tcapture_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to void payments.\n\t * @example ```\"https://external_gateway.com/void\"```\n\t */\n\tvoid_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to refund payments.\n\t * @example ```\"https://external_gateway.com/refund\"```\n\t */\n\trefund_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to create a customer payment token.\n\t * @example ```\"https://external_gateway.com/token\"```\n\t */\n\ttoken_url?: string | null\n\t/** \n\t * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t\n}\n\n\nclass ExternalGateways extends ApiResource<ExternalGateway> {\n\n\tstatic readonly TYPE: ExternalGatewayType = 'external_gateways' as const\n\n\tasync create(resource: ExternalGatewayCreate, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.create<ExternalGatewayCreate, ExternalGateway>({ ...resource, type: ExternalGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExternalGatewayUpdate, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.update<ExternalGatewayUpdate, ExternalGateway>({ ...resource, type: ExternalGateways.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: ExternalGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _externalGatewayId = (externalGatewayId as ExternalGateway).id || externalGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `external_gateways/${_externalGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _externalGatewayId = (externalGatewayId as ExternalGateway).id || externalGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `external_gateways/${_externalGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _externalGatewayId = (externalGatewayId as ExternalGateway).id || externalGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `external_gateways/${_externalGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync external_payments(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<ExternalPayment>, options?: ResourcesConfig): Promise<ListResponse<ExternalPayment>> {\n\t\tconst _externalGatewayId = (externalGatewayId as ExternalGateway).id || externalGatewayId as string\n\t\treturn this.resources.fetch<ExternalPayment>({ type: 'external_payments' }, `external_gateways/${_externalGatewayId}/external_payments`, params, options) as unknown as ListResponse<ExternalPayment>\n\t}\n\n\tasync _reset_circuit(id: string | ExternalGateway, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.update<ExternalGatewayUpdate, ExternalGateway>({ id: (typeof id === 'string')? id: id.id, type: ExternalGateways.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\n\tisExternalGateway(resource: any): resource is ExternalGateway {\n\t\treturn resource.type && (resource.type === ExternalGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExternalGatewayRel {\n\t\treturn super.relationshipOneToOne<ExternalGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExternalGatewayRel[] {\n\t\treturn super.relationshipOneToMany<ExternalGatewayRel>(...ids)\n\t}\n\n\n\ttype(): ExternalGatewayType {\n\t\treturn ExternalGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new ExternalGateways()\nexport default instance\n\nexport type { ExternalGateways, ExternalGateway, ExternalGatewayCreate, ExternalGatewayUpdate, ExternalGatewayType }\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/satispay_gateways.ts"],"names":[],"mappings":";;;AAmFA,IAAM,gBAAA,GAAN,MAAM,iBAAA,SAAyB,WAAA,CAA6B;AAAA,EAE3D,OAAgB,IAAA,GAA4B,mBAAA;AAAA,EAE5C,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,eAAA,CAAgB,iBAAA,EAA6C,MAAA,EAAyC,OAAA,EAAiE;AAC5K,I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IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,iBAAA,CAAiB,IAAA;AAAA,EAC7D;AAAA,EAGA,aAAa,EAAA,EAAoD;AAChE,IAAA,OAAO,KAAA,CAAM,qBAAyC,EAAE,CAAA;AAAA,EACzD;AAAA,EAEA,sBAAsB,GAAA,EAAqC;AAC1D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA0C,GAAG,GAAG,CAAA;AAAA,EAC9D;AAAA,EAGA,IAAA,GAA4B;AAC3B,IAAA,OAAO,iBAAA,CAAiB,IAAA;AAAA,EACzB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,gBAAA,EAAiB;AACtC,IAAO,yBAAA,GAAQ","file":"chunk-YPRABQMP.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\nimport type { SatispayPayment, SatispayPaymentType } from './satispay_payments'\n\n\ntype SatispayGatewayType = 'satispay_gateways'\ntype SatispayGatewayRel = ResourceRel & { type: SatispayGatewayType }\ntype SatispayPaymentRel = ResourceRel & { type: SatispayPaymentType }\n\n\nexport type SatispayGatewaySort = Pick<SatispayGateway, 'id' | 'name'> & ResourceSort\n// export type SatispayGatewayFilter = Pick<SatispayGateway, 'id' | 'name'> & ResourceFilter\n\n\ninterface SatispayGateway extends Resource {\n\t\n\treadonly type: SatispayGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Activation code generated from the Satispay Dashboard.\n\t * @example ```\"623ECX\"```\n\t */\n\ttoken: string\n\t/** \n\t * The Satispay API key auto generated basing on activation code.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tkey_id: string\n\t/** \n\t * The gateway webhook URL, generated automatically.\n\t * @example ```\"https://core.commercelayer.co/webhook_callbacks/satispay_gateways/xxxxx\"```\n\t */\n\twebhook_endpoint_url?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\tsatispay_payments?: SatispayPayment[] | null\n\n}\n\n\ninterface SatispayGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Activation code generated from the Satispay Dashboard.\n\t * @example ```\"623ECX\"```\n\t */\n\ttoken: string\n\n\tsatispay_payments?: SatispayPaymentRel[] | null\n\n}\n\n\ninterface SatispayGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\n\tsatispay_payments?: SatispayPaymentRel[] | null\n\n}\n\n\nclass SatispayGateways extends ApiResource<SatispayGateway> {\n\n\tstatic readonly TYPE: SatispayGatewayType = 'satispay_gateways' as const\n\n\tasync create(resource: SatispayGatewayCreate, params?: QueryParamsRetrieve<SatispayGateway>, options?: ResourcesConfig): Promise<SatispayGateway> {\n\t\treturn this.resources.create<SatispayGatewayCreate, SatispayGateway>({ ...resource, type: SatispayGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: SatispayGatewayUpdate, params?: QueryParamsRetrieve<SatispayGateway>, options?: ResourcesConfig): Promise<SatispayGateway> {\n\t\treturn this.resources.update<SatispayGatewayUpdate, SatispayGateway>({ ...resource, type: SatispayGateways.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: SatispayGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _satispayGatewayId = (satispayGatewayId as SatispayGateway).id || satispayGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `satispay_gateways/${_satispayGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _satispayGatewayId = (satispayGatewayId as SatispayGateway).id || satispayGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `satispay_gateways/${_satispayGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _satispayGatewayId = (satispayGatewayId as SatispayGateway).id || satispayGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `satispay_gateways/${_satispayGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync satispay_payments(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<SatispayPayment>, options?: ResourcesConfig): Promise<ListResponse<SatispayPayment>> {\n\t\tconst _satispayGatewayId = (satispayGatewayId as SatispayGateway).id || satispayGatewayId as string\n\t\treturn this.resources.fetch<SatispayPayment>({ type: 'satispay_payments' }, `satispay_gateways/${_satispayGatewayId}/satispay_payments`, params, options) as unknown as ListResponse<SatispayPayment>\n\t}\n\n\n\tisSatispayGateway(resource: any): resource is SatispayGateway {\n\t\treturn resource.type && (resource.type === SatispayGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): SatispayGatewayRel {\n\t\treturn super.relationshipOneToOne<SatispayGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): SatispayGatewayRel[] {\n\t\treturn super.relationshipOneToMany<SatispayGatewayRel>(...ids)\n\t}\n\n\n\ttype(): SatispayGatewayType {\n\t\treturn SatispayGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new SatispayGateways()\nexport default instance\n\nexport type { SatispayGateways, SatispayGateway, SatispayGatewayCreate, SatispayGatewayUpdate, SatispayGatewayType }\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/paypal_gateways.ts"],"names":["ApiResource"],"mappings":";;;;;AA8EA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuBA,6BAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACtG;AAAA,EAEA,MAAM,eAAA,CAAgB,eAAA,EAAyC,MAAA,EAAyC,OAAA,EAAiE;AACxK,IAAA,MAAM,gBAAA,GAAoB,gBAAkC,EAAA,IAAM,eAAA;AAClE,IAAA,OAAO,IAAA,CAAK,SAAA,CA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A,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-YZ4JURI3.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\nimport type { PaypalPayment } from './paypal_payments'\n\n\ntype PaypalGatewayType = 'paypal_gateways'\ntype PaypalGatewayRel = ResourceRel & { type: PaypalGatewayType }\n\n\nexport type PaypalGatewaySort = Pick<PaypalGateway, 'id' | 'name'> & ResourceSort\n// export type PaypalGatewayFilter = Pick<PaypalGateway, 'id' | 'name'> & ResourceFilter\n\n\ninterface PaypalGateway extends Resource {\n\t\n\treadonly type: PaypalGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\tpaypal_payments?: PaypalPayment[] | null\n\n}\n\n\ninterface PaypalGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * The gateway client ID.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tclient_id: string\n\t/** \n\t * The gateway client secret.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tclient_secret: string\n\t\n}\n\n\ninterface PaypalGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The gateway client ID.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tclient_id?: string | null\n\t/** \n\t * The gateway client secret.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tclient_secret?: string | null\n\t\n}\n\n\nclass PaypalGateways extends ApiResource<PaypalGateway> {\n\n\tstatic readonly TYPE: PaypalGatewayType = 'paypal_gateways' as const\n\n\tasync create(resource: PaypalGatewayCreate, params?: QueryParamsRetrieve<PaypalGateway>, options?: ResourcesConfig): Promise<PaypalGateway> {\n\t\treturn this.resources.create<PaypalGatewayCreate, PaypalGateway>({ ...resource, type: PaypalGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PaypalGatewayUpdate, params?: QueryParamsRetrieve<PaypalGateway>, options?: ResourcesConfig): Promise<PaypalGateway> {\n\t\treturn this.resources.update<PaypalGatewayUpdate, PaypalGateway>({ ...resource, type: PaypalGateways.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: PaypalGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _paypalGatewayId = (paypalGatewayId as PaypalGateway).id || paypalGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `paypal_gateways/${_paypalGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _paypalGatewayId = (paypalGatewayId as PaypalGateway).id || paypalGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `paypal_gateways/${_paypalGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _paypalGatewayId = (paypalGatewayId as PaypalGateway).id || paypalGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `paypal_gateways/${_paypalGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync paypal_payments(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList<PaypalPayment>, options?: ResourcesConfig): Promise<ListResponse<PaypalPayment>> {\n\t\tconst _paypalGatewayId = (paypalGatewayId as PaypalGateway).id || paypalGatewayId as string\n\t\treturn this.resources.fetch<PaypalPayment>({ type: 'paypal_payments' }, `paypal_gateways/${_paypalGatewayId}/paypal_payments`, params, options) as unknown as ListResponse<PaypalPayment>\n\t}\n\n\n\tisPaypalGateway(resource: any): resource is PaypalGateway {\n\t\treturn resource.type && (resource.type === PaypalGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PaypalGatewayRel {\n\t\treturn super.relationshipOneToOne<PaypalGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PaypalGatewayRel[] {\n\t\treturn super.relationshipOneToMany<PaypalGatewayRel>(...ids)\n\t}\n\n\n\ttype(): PaypalGatewayType {\n\t\treturn PaypalGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new PaypalGateways()\nexport default instance\n\nexport type { PaypalGateways, PaypalGateway, PaypalGatewayCreate, PaypalGatewayUpdate, PaypalGatewayType }\n"]}