@commercelayer/sdk 7.6.0 → 7.7.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 (370) hide show
  1. package/README.md +1 -1
  2. package/lib/{api-Hc0WV-9j.d.cts → api-CCnlZsdt.d.cts} +46 -1
  3. package/lib/{api-DrryxHto.d.ts → api-CwIChQ0Z.d.ts} +46 -1
  4. package/lib/api.cjs +16 -16
  5. package/lib/api.d.cts +1 -1
  6. package/lib/api.d.ts +1 -1
  7. package/lib/api.js +8 -8
  8. package/lib/bundle.cjs +18 -18
  9. package/lib/bundle.d.cts +1 -1
  10. package/lib/bundle.d.ts +1 -1
  11. package/lib/bundle.js +9 -9
  12. package/lib/{chunk-MBWTMQHA.js → chunk-3INQL4DR.js} +3 -3
  13. package/lib/{chunk-MBWTMQHA.js.map → chunk-3INQL4DR.js.map} +1 -1
  14. package/lib/{chunk-FNTJOIQB.cjs → chunk-6KOFQEOI.cjs} +2 -2
  15. package/lib/chunk-6KOFQEOI.cjs.map +1 -0
  16. package/lib/{chunk-N5DBVBID.js → chunk-6KXHU2QJ.js} +2 -2
  17. package/lib/chunk-6KXHU2QJ.js.map +1 -0
  18. package/lib/{chunk-3XJA5M3C.cjs → chunk-BRXYDOGG.cjs} +2 -2
  19. package/lib/chunk-BRXYDOGG.cjs.map +1 -0
  20. package/lib/{chunk-NHDSPKJY.cjs → chunk-CCV4ODLG.cjs} +3 -3
  21. package/lib/{chunk-NHDSPKJY.cjs.map → chunk-CCV4ODLG.cjs.map} +1 -1
  22. package/lib/{chunk-IALPF4NG.cjs → chunk-CQASXR3J.cjs} +2 -2
  23. package/lib/chunk-CQASXR3J.cjs.map +1 -0
  24. package/lib/{chunk-ME2ZNNMA.js → chunk-DOY7VJPG.js} +2 -2
  25. package/lib/chunk-DOY7VJPG.js.map +1 -0
  26. package/lib/{chunk-7SJAVPZH.cjs → chunk-EZHUH52J.cjs} +2 -2
  27. package/lib/chunk-EZHUH52J.cjs.map +1 -0
  28. package/lib/{chunk-KNXPWX4D.cjs → chunk-F4P2PUF7.cjs} +2 -2
  29. package/lib/chunk-F4P2PUF7.cjs.map +1 -0
  30. package/lib/{chunk-LLYWUA5S.js → chunk-IT2MWRJY.js} +2 -2
  31. package/lib/chunk-IT2MWRJY.js.map +1 -0
  32. package/lib/{chunk-ZXEE43XR.js → chunk-IYPHDMBD.js} +2 -2
  33. package/lib/chunk-IYPHDMBD.js.map +1 -0
  34. package/lib/{chunk-WEWTTMPS.cjs → chunk-K3CF32TJ.cjs} +2 -2
  35. package/lib/chunk-K3CF32TJ.cjs.map +1 -0
  36. package/lib/{chunk-Z3FUZ3YM.cjs → chunk-LKVJRTT2.cjs} +2 -2
  37. package/lib/chunk-LKVJRTT2.cjs.map +1 -0
  38. package/lib/{chunk-BPUZXZM4.js → chunk-OUAEWHLC.js} +3 -3
  39. package/lib/{chunk-BPUZXZM4.js.map → chunk-OUAEWHLC.js.map} +1 -1
  40. package/lib/{chunk-6ZJMVQ7T.js → chunk-QPQRYXII.js} +2 -2
  41. package/lib/chunk-QPQRYXII.js.map +1 -0
  42. package/lib/{chunk-P5GRTTMC.js → chunk-RZMSILW7.js} +2 -2
  43. package/lib/chunk-RZMSILW7.js.map +1 -0
  44. package/lib/{chunk-2C3Z5JNK.cjs → chunk-VDC2LQMB.cjs} +2 -2
  45. package/lib/chunk-VDC2LQMB.cjs.map +1 -0
  46. package/lib/{chunk-H7JSRNFC.cjs → chunk-WL4YGKEX.cjs} +4 -4
  47. package/lib/{chunk-H7JSRNFC.cjs.map → chunk-WL4YGKEX.cjs.map} +1 -1
  48. package/lib/{chunk-GRBPCPJQ.js → chunk-YVF52KQK.js} +2 -2
  49. package/lib/chunk-YVF52KQK.js.map +1 -0
  50. package/lib/{chunk-IR2JJDF5.js → chunk-ZSH3A37I.js} +2 -2
  51. package/lib/chunk-ZSH3A37I.js.map +1 -0
  52. package/lib/commercelayer.cjs +5 -5
  53. package/lib/commercelayer.d.cts +3 -3
  54. package/lib/commercelayer.d.ts +3 -3
  55. package/lib/commercelayer.js +1 -1
  56. package/lib/enum.d.cts +1 -1
  57. package/lib/enum.d.ts +1 -1
  58. package/lib/index.cjs +21 -21
  59. package/lib/index.d.cts +1 -1
  60. package/lib/index.d.ts +1 -1
  61. package/lib/index.js +10 -10
  62. package/lib/jsonapi.d.cts +1 -1
  63. package/lib/jsonapi.d.ts +1 -1
  64. package/lib/model.d.cts +1 -1
  65. package/lib/model.d.ts +1 -1
  66. package/lib/query.d.cts +1 -1
  67. package/lib/query.d.ts +1 -1
  68. package/lib/resource.d.cts +1 -1
  69. package/lib/resource.d.ts +1 -1
  70. package/lib/resources/addresses.d.cts +2 -2
  71. package/lib/resources/addresses.d.ts +1 -1
  72. package/lib/resources/adjustments.d.cts +2 -2
  73. package/lib/resources/adjustments.d.ts +1 -1
  74. package/lib/resources/adyen_gateways.cjs +2 -2
  75. package/lib/resources/adyen_gateways.d.cts +2 -2
  76. package/lib/resources/adyen_gateways.d.ts +1 -1
  77. package/lib/resources/adyen_gateways.js +1 -1
  78. package/lib/resources/adyen_payments.cjs +2 -2
  79. package/lib/resources/adyen_payments.d.cts +2 -2
  80. package/lib/resources/adyen_payments.d.ts +1 -1
  81. package/lib/resources/adyen_payments.js +1 -1
  82. package/lib/resources/applications.d.cts +2 -2
  83. package/lib/resources/applications.d.ts +1 -1
  84. package/lib/resources/attachments.d.cts +2 -2
  85. package/lib/resources/attachments.d.ts +1 -1
  86. package/lib/resources/authorizations.cjs +2 -2
  87. package/lib/resources/authorizations.d.cts +2 -2
  88. package/lib/resources/authorizations.d.ts +1 -1
  89. package/lib/resources/authorizations.js +1 -1
  90. package/lib/resources/avalara_accounts.d.cts +2 -2
  91. package/lib/resources/avalara_accounts.d.ts +1 -1
  92. package/lib/resources/axerve_gateways.d.cts +2 -2
  93. package/lib/resources/axerve_gateways.d.ts +1 -1
  94. package/lib/resources/axerve_payments.d.cts +2 -2
  95. package/lib/resources/axerve_payments.d.ts +1 -1
  96. package/lib/resources/bing_geocoders.d.cts +2 -2
  97. package/lib/resources/bing_geocoders.d.ts +1 -1
  98. package/lib/resources/braintree_gateways.d.cts +2 -2
  99. package/lib/resources/braintree_gateways.d.ts +1 -1
  100. package/lib/resources/braintree_payments.d.cts +2 -2
  101. package/lib/resources/braintree_payments.d.ts +1 -1
  102. package/lib/resources/bundles.d.cts +2 -2
  103. package/lib/resources/bundles.d.ts +1 -1
  104. package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
  105. package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
  106. package/lib/resources/captures.cjs +2 -2
  107. package/lib/resources/captures.d.cts +2 -2
  108. package/lib/resources/captures.d.ts +1 -1
  109. package/lib/resources/captures.js +1 -1
  110. package/lib/resources/carrier_accounts.d.cts +2 -2
  111. package/lib/resources/carrier_accounts.d.ts +1 -1
  112. package/lib/resources/checkout_com_gateways.d.cts +2 -2
  113. package/lib/resources/checkout_com_gateways.d.ts +1 -1
  114. package/lib/resources/checkout_com_payments.d.cts +2 -2
  115. package/lib/resources/checkout_com_payments.d.ts +1 -1
  116. package/lib/resources/cleanups.d.cts +2 -2
  117. package/lib/resources/cleanups.d.ts +1 -1
  118. package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
  119. package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
  120. package/lib/resources/coupon_recipients.d.cts +2 -2
  121. package/lib/resources/coupon_recipients.d.ts +1 -1
  122. package/lib/resources/coupons.d.cts +2 -2
  123. package/lib/resources/coupons.d.ts +1 -1
  124. package/lib/resources/custom_promotion_rules.d.cts +2 -2
  125. package/lib/resources/custom_promotion_rules.d.ts +1 -1
  126. package/lib/resources/customer_addresses.d.cts +2 -2
  127. package/lib/resources/customer_addresses.d.ts +1 -1
  128. package/lib/resources/customer_groups.d.cts +2 -2
  129. package/lib/resources/customer_groups.d.ts +1 -1
  130. package/lib/resources/customer_password_resets.d.cts +2 -2
  131. package/lib/resources/customer_password_resets.d.ts +1 -1
  132. package/lib/resources/customer_payment_sources.d.cts +2 -2
  133. package/lib/resources/customer_payment_sources.d.ts +1 -1
  134. package/lib/resources/customer_subscriptions.d.cts +2 -2
  135. package/lib/resources/customer_subscriptions.d.ts +1 -1
  136. package/lib/resources/customers.d.cts +2 -2
  137. package/lib/resources/customers.d.ts +1 -1
  138. package/lib/resources/delivery_lead_times.d.cts +2 -2
  139. package/lib/resources/delivery_lead_times.d.ts +1 -1
  140. package/lib/resources/discount_engine_items.d.cts +2 -2
  141. package/lib/resources/discount_engine_items.d.ts +1 -1
  142. package/lib/resources/discount_engines.d.cts +2 -2
  143. package/lib/resources/discount_engines.d.ts +1 -1
  144. package/lib/resources/easypost_pickups.d.cts +2 -2
  145. package/lib/resources/easypost_pickups.d.ts +1 -1
  146. package/lib/resources/event_callbacks.d.cts +2 -2
  147. package/lib/resources/event_callbacks.d.ts +1 -1
  148. package/lib/resources/event_stores.d.cts +2 -2
  149. package/lib/resources/event_stores.d.ts +1 -1
  150. package/lib/resources/events.d.cts +2 -2
  151. package/lib/resources/events.d.ts +1 -1
  152. package/lib/resources/exports.d.cts +2 -2
  153. package/lib/resources/exports.d.ts +1 -1
  154. package/lib/resources/external_gateways.d.cts +2 -2
  155. package/lib/resources/external_gateways.d.ts +1 -1
  156. package/lib/resources/external_payments.d.cts +2 -2
  157. package/lib/resources/external_payments.d.ts +1 -1
  158. package/lib/resources/external_promotions.d.cts +2 -2
  159. package/lib/resources/external_promotions.d.ts +1 -1
  160. package/lib/resources/external_tax_calculators.d.cts +2 -2
  161. package/lib/resources/external_tax_calculators.d.ts +1 -1
  162. package/lib/resources/fixed_amount_promotions.d.cts +2 -2
  163. package/lib/resources/fixed_amount_promotions.d.ts +1 -1
  164. package/lib/resources/fixed_price_promotions.d.cts +2 -2
  165. package/lib/resources/fixed_price_promotions.d.ts +1 -1
  166. package/lib/resources/flex_promotions.d.cts +2 -2
  167. package/lib/resources/flex_promotions.d.ts +1 -1
  168. package/lib/resources/free_gift_promotions.d.cts +2 -2
  169. package/lib/resources/free_gift_promotions.d.ts +1 -1
  170. package/lib/resources/free_shipping_promotions.d.cts +2 -2
  171. package/lib/resources/free_shipping_promotions.d.ts +1 -1
  172. package/lib/resources/geocoders.d.cts +2 -2
  173. package/lib/resources/geocoders.d.ts +1 -1
  174. package/lib/resources/gift_card_recipients.d.cts +2 -2
  175. package/lib/resources/gift_card_recipients.d.ts +1 -1
  176. package/lib/resources/gift_cards.d.cts +2 -2
  177. package/lib/resources/gift_cards.d.ts +1 -1
  178. package/lib/resources/google_geocoders.d.cts +2 -2
  179. package/lib/resources/google_geocoders.d.ts +1 -1
  180. package/lib/resources/imports.d.cts +2 -2
  181. package/lib/resources/imports.d.ts +1 -1
  182. package/lib/resources/in_stock_subscriptions.d.cts +2 -2
  183. package/lib/resources/in_stock_subscriptions.d.ts +1 -1
  184. package/lib/resources/inventory_models.d.cts +2 -2
  185. package/lib/resources/inventory_models.d.ts +1 -1
  186. package/lib/resources/inventory_return_locations.d.cts +2 -2
  187. package/lib/resources/inventory_return_locations.d.ts +1 -1
  188. package/lib/resources/inventory_stock_locations.d.cts +2 -2
  189. package/lib/resources/inventory_stock_locations.d.ts +1 -1
  190. package/lib/resources/klarna_gateways.d.cts +2 -2
  191. package/lib/resources/klarna_gateways.d.ts +1 -1
  192. package/lib/resources/klarna_payments.d.cts +2 -2
  193. package/lib/resources/klarna_payments.d.ts +1 -1
  194. package/lib/resources/line_item_options.d.cts +2 -2
  195. package/lib/resources/line_item_options.d.ts +1 -1
  196. package/lib/resources/line_items.d.cts +2 -2
  197. package/lib/resources/line_items.d.ts +1 -1
  198. package/lib/resources/links.d.cts +2 -2
  199. package/lib/resources/links.d.ts +1 -1
  200. package/lib/resources/manual_gateways.d.cts +2 -2
  201. package/lib/resources/manual_gateways.d.ts +1 -1
  202. package/lib/resources/manual_tax_calculators.d.cts +2 -2
  203. package/lib/resources/manual_tax_calculators.d.ts +1 -1
  204. package/lib/resources/markets.d.cts +2 -2
  205. package/lib/resources/markets.d.ts +1 -1
  206. package/lib/resources/merchants.d.cts +2 -2
  207. package/lib/resources/merchants.d.ts +1 -1
  208. package/lib/resources/notifications.d.cts +2 -2
  209. package/lib/resources/notifications.d.ts +1 -1
  210. package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
  211. package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
  212. package/lib/resources/order_copies.d.cts +2 -2
  213. package/lib/resources/order_copies.d.ts +1 -1
  214. package/lib/resources/order_factories.d.cts +2 -2
  215. package/lib/resources/order_factories.d.ts +1 -1
  216. package/lib/resources/order_subscription_items.d.cts +2 -2
  217. package/lib/resources/order_subscription_items.d.ts +1 -1
  218. package/lib/resources/order_subscriptions.d.cts +2 -2
  219. package/lib/resources/order_subscriptions.d.ts +1 -1
  220. package/lib/resources/orders.d.cts +2 -2
  221. package/lib/resources/orders.d.ts +1 -1
  222. package/lib/resources/organizations.d.cts +2 -2
  223. package/lib/resources/organizations.d.ts +1 -1
  224. package/lib/resources/packages.d.cts +2 -2
  225. package/lib/resources/packages.d.ts +1 -1
  226. package/lib/resources/parcel_line_items.d.cts +2 -2
  227. package/lib/resources/parcel_line_items.d.ts +1 -1
  228. package/lib/resources/parcels.d.cts +2 -2
  229. package/lib/resources/parcels.d.ts +1 -1
  230. package/lib/resources/payment_gateways.d.cts +2 -2
  231. package/lib/resources/payment_gateways.d.ts +1 -1
  232. package/lib/resources/payment_methods.d.cts +2 -2
  233. package/lib/resources/payment_methods.d.ts +1 -1
  234. package/lib/resources/payment_options.d.cts +2 -2
  235. package/lib/resources/payment_options.d.ts +1 -1
  236. package/lib/resources/paypal_gateways.d.cts +2 -2
  237. package/lib/resources/paypal_gateways.d.ts +1 -1
  238. package/lib/resources/paypal_payments.d.cts +2 -2
  239. package/lib/resources/paypal_payments.d.ts +1 -1
  240. package/lib/resources/percentage_discount_promotions.d.cts +2 -2
  241. package/lib/resources/percentage_discount_promotions.d.ts +1 -1
  242. package/lib/resources/pickups.d.cts +2 -2
  243. package/lib/resources/pickups.d.ts +1 -1
  244. package/lib/resources/price_frequency_tiers.d.cts +2 -2
  245. package/lib/resources/price_frequency_tiers.d.ts +1 -1
  246. package/lib/resources/price_list_schedulers.d.cts +2 -2
  247. package/lib/resources/price_list_schedulers.d.ts +1 -1
  248. package/lib/resources/price_lists.d.cts +2 -2
  249. package/lib/resources/price_lists.d.ts +1 -1
  250. package/lib/resources/price_tiers.d.cts +2 -2
  251. package/lib/resources/price_tiers.d.ts +1 -1
  252. package/lib/resources/price_volume_tiers.d.cts +2 -2
  253. package/lib/resources/price_volume_tiers.d.ts +1 -1
  254. package/lib/resources/prices.d.cts +2 -2
  255. package/lib/resources/prices.d.ts +1 -1
  256. package/lib/resources/promotion_rules.d.cts +2 -2
  257. package/lib/resources/promotion_rules.d.ts +1 -1
  258. package/lib/resources/promotions.d.cts +2 -2
  259. package/lib/resources/promotions.d.ts +1 -1
  260. package/lib/resources/recurring_order_copies.d.cts +2 -2
  261. package/lib/resources/recurring_order_copies.d.ts +1 -1
  262. package/lib/resources/refunds.cjs +2 -2
  263. package/lib/resources/refunds.d.cts +2 -2
  264. package/lib/resources/refunds.d.ts +1 -1
  265. package/lib/resources/refunds.js +1 -1
  266. package/lib/resources/reserved_stocks.d.cts +2 -2
  267. package/lib/resources/reserved_stocks.d.ts +1 -1
  268. package/lib/resources/resource_errors.d.cts +2 -2
  269. package/lib/resources/resource_errors.d.ts +1 -1
  270. package/lib/resources/return_line_items.d.cts +2 -2
  271. package/lib/resources/return_line_items.d.ts +1 -1
  272. package/lib/resources/returns.d.cts +2 -2
  273. package/lib/resources/returns.d.ts +1 -1
  274. package/lib/resources/satispay_gateways.d.cts +2 -2
  275. package/lib/resources/satispay_gateways.d.ts +1 -1
  276. package/lib/resources/satispay_payments.cjs +2 -2
  277. package/lib/resources/satispay_payments.d.cts +2 -2
  278. package/lib/resources/satispay_payments.d.ts +1 -1
  279. package/lib/resources/satispay_payments.js +1 -1
  280. package/lib/resources/shipments.d.cts +2 -2
  281. package/lib/resources/shipments.d.ts +1 -1
  282. package/lib/resources/shipping_categories.d.cts +2 -2
  283. package/lib/resources/shipping_categories.d.ts +1 -1
  284. package/lib/resources/shipping_method_tiers.d.cts +2 -2
  285. package/lib/resources/shipping_method_tiers.d.ts +1 -1
  286. package/lib/resources/shipping_methods.d.cts +2 -2
  287. package/lib/resources/shipping_methods.d.ts +1 -1
  288. package/lib/resources/shipping_weight_tiers.d.cts +2 -2
  289. package/lib/resources/shipping_weight_tiers.d.ts +1 -1
  290. package/lib/resources/shipping_zones.d.cts +2 -2
  291. package/lib/resources/shipping_zones.d.ts +1 -1
  292. package/lib/resources/sku_list_items.d.cts +2 -2
  293. package/lib/resources/sku_list_items.d.ts +1 -1
  294. package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
  295. package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
  296. package/lib/resources/sku_lists.d.cts +2 -2
  297. package/lib/resources/sku_lists.d.ts +1 -1
  298. package/lib/resources/sku_options.d.cts +2 -2
  299. package/lib/resources/sku_options.d.ts +1 -1
  300. package/lib/resources/skus.d.cts +2 -2
  301. package/lib/resources/skus.d.ts +1 -1
  302. package/lib/resources/stock_items.d.cts +2 -2
  303. package/lib/resources/stock_items.d.ts +1 -1
  304. package/lib/resources/stock_line_items.d.cts +2 -2
  305. package/lib/resources/stock_line_items.d.ts +1 -1
  306. package/lib/resources/stock_locations.d.cts +2 -2
  307. package/lib/resources/stock_locations.d.ts +1 -1
  308. package/lib/resources/stock_reservations.d.cts +2 -2
  309. package/lib/resources/stock_reservations.d.ts +1 -1
  310. package/lib/resources/stock_transfers.d.cts +2 -2
  311. package/lib/resources/stock_transfers.d.ts +1 -1
  312. package/lib/resources/stores.d.cts +2 -2
  313. package/lib/resources/stores.d.ts +1 -1
  314. package/lib/resources/stripe_gateways.d.cts +2 -2
  315. package/lib/resources/stripe_gateways.d.ts +1 -1
  316. package/lib/resources/stripe_payments.d.cts +2 -2
  317. package/lib/resources/stripe_payments.d.ts +1 -1
  318. package/lib/resources/stripe_tax_accounts.d.cts +2 -2
  319. package/lib/resources/stripe_tax_accounts.d.ts +1 -1
  320. package/lib/resources/subscription_models.d.cts +2 -2
  321. package/lib/resources/subscription_models.d.ts +1 -1
  322. package/lib/resources/tags.d.cts +2 -2
  323. package/lib/resources/tags.d.ts +1 -1
  324. package/lib/resources/talon_one_accounts.d.cts +2 -2
  325. package/lib/resources/talon_one_accounts.d.ts +1 -1
  326. package/lib/resources/tax_calculators.d.cts +2 -2
  327. package/lib/resources/tax_calculators.d.ts +1 -1
  328. package/lib/resources/tax_categories.d.cts +2 -2
  329. package/lib/resources/tax_categories.d.ts +1 -1
  330. package/lib/resources/tax_rules.d.cts +2 -2
  331. package/lib/resources/tax_rules.d.ts +1 -1
  332. package/lib/resources/taxjar_accounts.d.cts +2 -2
  333. package/lib/resources/taxjar_accounts.d.ts +1 -1
  334. package/lib/resources/transactions.cjs +2 -2
  335. package/lib/resources/transactions.d.cts +2 -2
  336. package/lib/resources/transactions.d.ts +1 -1
  337. package/lib/resources/transactions.js +1 -1
  338. package/lib/resources/versions.d.cts +2 -2
  339. package/lib/resources/versions.d.ts +1 -1
  340. package/lib/resources/vertex_accounts.d.cts +2 -2
  341. package/lib/resources/vertex_accounts.d.ts +1 -1
  342. package/lib/resources/voids.cjs +2 -2
  343. package/lib/resources/voids.d.cts +2 -2
  344. package/lib/resources/voids.d.ts +1 -1
  345. package/lib/resources/voids.js +1 -1
  346. package/lib/resources/webhooks.d.cts +2 -2
  347. package/lib/resources/webhooks.d.ts +1 -1
  348. package/lib/resources/wire_transfers.d.cts +2 -2
  349. package/lib/resources/wire_transfers.d.ts +1 -1
  350. package/lib/static.cjs +3 -3
  351. package/lib/static.d.cts +1 -1
  352. package/lib/static.d.ts +1 -1
  353. package/lib/static.js +2 -2
  354. package/package.json +5 -5
  355. package/lib/chunk-2C3Z5JNK.cjs.map +0 -1
  356. package/lib/chunk-3XJA5M3C.cjs.map +0 -1
  357. package/lib/chunk-6ZJMVQ7T.js.map +0 -1
  358. package/lib/chunk-7SJAVPZH.cjs.map +0 -1
  359. package/lib/chunk-FNTJOIQB.cjs.map +0 -1
  360. package/lib/chunk-GRBPCPJQ.js.map +0 -1
  361. package/lib/chunk-IALPF4NG.cjs.map +0 -1
  362. package/lib/chunk-IR2JJDF5.js.map +0 -1
  363. package/lib/chunk-KNXPWX4D.cjs.map +0 -1
  364. package/lib/chunk-LLYWUA5S.js.map +0 -1
  365. package/lib/chunk-ME2ZNNMA.js.map +0 -1
  366. package/lib/chunk-N5DBVBID.js.map +0 -1
  367. package/lib/chunk-P5GRTTMC.js.map +0 -1
  368. package/lib/chunk-WEWTTMPS.cjs.map +0 -1
  369. package/lib/chunk-Z3FUZ3YM.cjs.map +0 -1
  370. package/lib/chunk-ZXEE43XR.js.map +0 -1
@@ -1,4 +1,4 @@
1
- export { io as StripeTaxAccount, ip as StripeTaxAccountCreate, iq as StripeTaxAccountSort, n4 as StripeTaxAccountType, ir as StripeTaxAccountUpdate, is as StripeTaxAccounts, lj as default } from '../api-DrryxHto.js';
1
+ export { io as StripeTaxAccount, ip as StripeTaxAccountCreate, iq as StripeTaxAccountSort, n4 as StripeTaxAccountType, ir as StripeTaxAccountUpdate, is as StripeTaxAccounts, lj as default } from '../api-CwIChQ0Z.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-ETmS7Tab.js';
4
4
  import '../types.js';
@@ -1,7 +1,7 @@
1
- import _default from '../api-Hc0WV-9j.cjs';
1
+ import _default from '../api-CCnlZsdt.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { it as SubscriptionModel, iu as SubscriptionModelCreate, iv as SubscriptionModelSort, lY as SubscriptionModelType, iw as SubscriptionModelUpdate, ix as SubscriptionModels } from '../api-Hc0WV-9j.cjs';
4
+ export { it as SubscriptionModel, iu as SubscriptionModelCreate, iv as SubscriptionModelSort, lY as SubscriptionModelType, iw as SubscriptionModelUpdate, ix as SubscriptionModels } from '../api-CCnlZsdt.cjs';
5
5
  import '../client.cjs';
6
6
  import '../interceptor-ETmS7Tab.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { it as SubscriptionModel, iu as SubscriptionModelCreate, iv as SubscriptionModelSort, lY as SubscriptionModelType, iw as SubscriptionModelUpdate, ix as SubscriptionModels, lk as default } from '../api-DrryxHto.js';
1
+ export { it as SubscriptionModel, iu as SubscriptionModelCreate, iv as SubscriptionModelSort, lY as SubscriptionModelType, iw as SubscriptionModelUpdate, ix as SubscriptionModels, lk as default } from '../api-CwIChQ0Z.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-ETmS7Tab.js';
4
4
  import '../types.js';
@@ -1,7 +1,7 @@
1
- import _default from '../api-Hc0WV-9j.cjs';
1
+ import _default from '../api-CCnlZsdt.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { iy as Tag, iz as TagCreate, iA as TagSort, ly as TagType, iB as TagUpdate, iE as Tags } from '../api-Hc0WV-9j.cjs';
4
+ export { iy as Tag, iz as TagCreate, iA as TagSort, ly as TagType, iB as TagUpdate, iE as Tags } from '../api-CCnlZsdt.cjs';
5
5
  import '../client.cjs';
6
6
  import '../interceptor-ETmS7Tab.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { iy as Tag, iz as TagCreate, iA as TagSort, ly as TagType, iB as TagUpdate, iE as Tags, ll as default } from '../api-DrryxHto.js';
1
+ export { iy as Tag, iz as TagCreate, iA as TagSort, ly as TagType, iB as TagUpdate, iE as Tags, ll as default } from '../api-CwIChQ0Z.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-ETmS7Tab.js';
4
4
  import '../types.js';
@@ -1,7 +1,7 @@
1
- import _default from '../api-Hc0WV-9j.cjs';
1
+ import _default from '../api-CCnlZsdt.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { iF as TalonOneAccount, iG as TalonOneAccountCreate, iH as TalonOneAccountSort, nz as TalonOneAccountType, iI as TalonOneAccountUpdate, iJ as TalonOneAccounts } from '../api-Hc0WV-9j.cjs';
4
+ export { iF as TalonOneAccount, iG as TalonOneAccountCreate, iH as TalonOneAccountSort, nz as TalonOneAccountType, iI as TalonOneAccountUpdate, iJ as TalonOneAccounts } from '../api-CCnlZsdt.cjs';
5
5
  import '../client.cjs';
6
6
  import '../interceptor-ETmS7Tab.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { iF as TalonOneAccount, iG as TalonOneAccountCreate, iH as TalonOneAccountSort, nz as TalonOneAccountType, iI as TalonOneAccountUpdate, iJ as TalonOneAccounts, lm as default } from '../api-DrryxHto.js';
1
+ export { iF as TalonOneAccount, iG as TalonOneAccountCreate, iH as TalonOneAccountSort, nz as TalonOneAccountType, iI as TalonOneAccountUpdate, iJ as TalonOneAccounts, lm as default } from '../api-CwIChQ0Z.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-ETmS7Tab.js';
4
4
  import '../types.js';
@@ -1,7 +1,7 @@
1
- import _default from '../api-Hc0WV-9j.cjs';
1
+ import _default from '../api-CCnlZsdt.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { iK as TaxCalculator, iL as TaxCalculatorSort, n2 as TaxCalculatorType, iM as TaxCalculators } from '../api-Hc0WV-9j.cjs';
4
+ export { iK as TaxCalculator, iL as TaxCalculatorSort, n2 as TaxCalculatorType, iM as TaxCalculators } from '../api-CCnlZsdt.cjs';
5
5
  import '../client.cjs';
6
6
  import '../interceptor-ETmS7Tab.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { iK as TaxCalculator, iL as TaxCalculatorSort, n2 as TaxCalculatorType, iM as TaxCalculators, ln as default } from '../api-DrryxHto.js';
1
+ export { iK as TaxCalculator, iL as TaxCalculatorSort, n2 as TaxCalculatorType, iM as TaxCalculators, ln as default } from '../api-CwIChQ0Z.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-ETmS7Tab.js';
4
4
  import '../types.js';
@@ -1,7 +1,7 @@
1
- import _default from '../api-Hc0WV-9j.cjs';
1
+ import _default from '../api-CCnlZsdt.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { iN as TaxCategories, iO as TaxCategory, iP as TaxCategoryCreate, iQ as TaxCategorySort, na as TaxCategoryType, iR as TaxCategoryUpdate } from '../api-Hc0WV-9j.cjs';
4
+ export { iN as TaxCategories, iO as TaxCategory, iP as TaxCategoryCreate, iQ as TaxCategorySort, na as TaxCategoryType, iR as TaxCategoryUpdate } from '../api-CCnlZsdt.cjs';
5
5
  import '../client.cjs';
6
6
  import '../interceptor-ETmS7Tab.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { iN as TaxCategories, iO as TaxCategory, iP as TaxCategoryCreate, iQ as TaxCategorySort, na as TaxCategoryType, iR as TaxCategoryUpdate, lo as default } from '../api-DrryxHto.js';
1
+ export { iN as TaxCategories, iO as TaxCategory, iP as TaxCategoryCreate, iQ as TaxCategorySort, na as TaxCategoryType, iR as TaxCategoryUpdate, lo as default } from '../api-CwIChQ0Z.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-ETmS7Tab.js';
4
4
  import '../types.js';
@@ -1,7 +1,7 @@
1
- import _default from '../api-Hc0WV-9j.cjs';
1
+ import _default from '../api-CCnlZsdt.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { iS as TaxRule, iT as TaxRuleCreate, iU as TaxRuleSort, n7 as TaxRuleType, iV as TaxRuleUpdate, iW as TaxRules } from '../api-Hc0WV-9j.cjs';
4
+ export { iS as TaxRule, iT as TaxRuleCreate, iU as TaxRuleSort, n7 as TaxRuleType, iV as TaxRuleUpdate, iW as TaxRules } from '../api-CCnlZsdt.cjs';
5
5
  import '../client.cjs';
6
6
  import '../interceptor-ETmS7Tab.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { iS as TaxRule, iT as TaxRuleCreate, iU as TaxRuleSort, n7 as TaxRuleType, iV as TaxRuleUpdate, iW as TaxRules, lp as default } from '../api-DrryxHto.js';
1
+ export { iS as TaxRule, iT as TaxRuleCreate, iU as TaxRuleSort, n7 as TaxRuleType, iV as TaxRuleUpdate, iW as TaxRules, lp as default } from '../api-CwIChQ0Z.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-ETmS7Tab.js';
4
4
  import '../types.js';
@@ -1,7 +1,7 @@
1
- import _default from '../api-Hc0WV-9j.cjs';
1
+ import _default from '../api-CCnlZsdt.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { iX as TaxjarAccount, iY as TaxjarAccountCreate, iZ as TaxjarAccountSort, n6 as TaxjarAccountType, i_ as TaxjarAccountUpdate, i$ as TaxjarAccounts } from '../api-Hc0WV-9j.cjs';
4
+ export { iX as TaxjarAccount, iY as TaxjarAccountCreate, iZ as TaxjarAccountSort, n6 as TaxjarAccountType, i_ as TaxjarAccountUpdate, i$ as TaxjarAccounts } from '../api-CCnlZsdt.cjs';
5
5
  import '../client.cjs';
6
6
  import '../interceptor-ETmS7Tab.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { iX as TaxjarAccount, iY as TaxjarAccountCreate, iZ as TaxjarAccountSort, n6 as TaxjarAccountType, i_ as TaxjarAccountUpdate, i$ as TaxjarAccounts, lq as default } from '../api-DrryxHto.js';
1
+ export { iX as TaxjarAccount, iY as TaxjarAccountCreate, iZ as TaxjarAccountSort, n6 as TaxjarAccountType, i_ as TaxjarAccountUpdate, i$ as TaxjarAccounts, lq as default } from '../api-CwIChQ0Z.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-ETmS7Tab.js';
4
4
  import '../types.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkWEWTTMPS_cjs = require('../chunk-WEWTTMPS.cjs');
3
+ var chunkK3CF32TJ_cjs = require('../chunk-K3CF32TJ.cjs');
4
4
  require('../chunk-U22VLCMN.cjs');
5
5
  require('../chunk-YY5ENJSH.cjs');
6
6
  require('../chunk-ZWVME7CU.cjs');
@@ -13,7 +13,7 @@ require('../chunk-JEQ2X3Z6.cjs');
13
13
 
14
14
 
15
15
 
16
- module.exports = chunkWEWTTMPS_cjs.transactions_default;
16
+ module.exports = chunkK3CF32TJ_cjs.transactions_default;
17
17
  //# sourceMappingURL=transactions.cjs.map
18
18
 
19
19
  module.exports = exports.default;
@@ -1,7 +1,7 @@
1
- import _default from '../api-Hc0WV-9j.cjs';
1
+ import _default from '../api-CCnlZsdt.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { j0 as Transaction, j1 as TransactionSort, n1 as TransactionType, j2 as Transactions } from '../api-Hc0WV-9j.cjs';
4
+ export { j0 as Transaction, j1 as TransactionSort, n1 as TransactionType, j2 as Transactions } from '../api-CCnlZsdt.cjs';
5
5
  import '../client.cjs';
6
6
  import '../interceptor-ETmS7Tab.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { j0 as Transaction, j1 as TransactionSort, n1 as TransactionType, j2 as Transactions, lr as default } from '../api-DrryxHto.js';
1
+ export { j0 as Transaction, j1 as TransactionSort, n1 as TransactionType, j2 as Transactions, lr as default } from '../api-CwIChQ0Z.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-ETmS7Tab.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { transactions_default as default } from '../chunk-6ZJMVQ7T.js';
1
+ export { transactions_default as default } from '../chunk-QPQRYXII.js';
2
2
  import '../chunk-XKERR6OR.js';
3
3
  import '../chunk-CHYP5F26.js';
4
4
  import '../chunk-UUY77JM3.js';
@@ -1,7 +1,7 @@
1
- import _default from '../api-Hc0WV-9j.cjs';
1
+ import _default from '../api-CCnlZsdt.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { j5 as Version, j6 as VersionSort, lz as VersionType, j9 as Versions } from '../api-Hc0WV-9j.cjs';
4
+ export { j5 as Version, j6 as VersionSort, lz as VersionType, j9 as Versions } from '../api-CCnlZsdt.cjs';
5
5
  import '../client.cjs';
6
6
  import '../interceptor-ETmS7Tab.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { j5 as Version, j6 as VersionSort, lz as VersionType, j9 as Versions, ls as default } from '../api-DrryxHto.js';
1
+ export { j5 as Version, j6 as VersionSort, lz as VersionType, j9 as Versions, ls as default } from '../api-CwIChQ0Z.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-ETmS7Tab.js';
4
4
  import '../types.js';
@@ -1,7 +1,7 @@
1
- import _default from '../api-Hc0WV-9j.cjs';
1
+ import _default from '../api-CCnlZsdt.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { ja as VertexAccount, jb as VertexAccountCreate, jc as VertexAccountSort, n5 as VertexAccountType, jd as VertexAccountUpdate, je as VertexAccounts } from '../api-Hc0WV-9j.cjs';
4
+ export { ja as VertexAccount, jb as VertexAccountCreate, jc as VertexAccountSort, n5 as VertexAccountType, jd as VertexAccountUpdate, je as VertexAccounts } from '../api-CCnlZsdt.cjs';
5
5
  import '../client.cjs';
6
6
  import '../interceptor-ETmS7Tab.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { ja as VertexAccount, jb as VertexAccountCreate, jc as VertexAccountSort, n5 as VertexAccountType, jd as VertexAccountUpdate, je as VertexAccounts, lt as default } from '../api-DrryxHto.js';
1
+ export { ja as VertexAccount, jb as VertexAccountCreate, jc as VertexAccountSort, n5 as VertexAccountType, jd as VertexAccountUpdate, je as VertexAccounts, lt as default } from '../api-CwIChQ0Z.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-ETmS7Tab.js';
4
4
  import '../types.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk3XJA5M3C_cjs = require('../chunk-3XJA5M3C.cjs');
3
+ var chunkBRXYDOGG_cjs = require('../chunk-BRXYDOGG.cjs');
4
4
  require('../chunk-U22VLCMN.cjs');
5
5
  require('../chunk-YY5ENJSH.cjs');
6
6
  require('../chunk-ZWVME7CU.cjs');
@@ -13,7 +13,7 @@ require('../chunk-JEQ2X3Z6.cjs');
13
13
 
14
14
 
15
15
 
16
- module.exports = chunk3XJA5M3C_cjs.voids_default;
16
+ module.exports = chunkBRXYDOGG_cjs.voids_default;
17
17
  //# sourceMappingURL=voids.cjs.map
18
18
 
19
19
  module.exports = exports.default;
@@ -1,7 +1,7 @@
1
- import _default from '../api-Hc0WV-9j.cjs';
1
+ import _default from '../api-CCnlZsdt.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { jf as Void, jg as VoidSort, l$ as VoidType, jh as VoidUpdate, ji as Voids } from '../api-Hc0WV-9j.cjs';
4
+ export { jf as Void, jg as VoidSort, l$ as VoidType, jh as VoidUpdate, ji as Voids } from '../api-CCnlZsdt.cjs';
5
5
  import '../client.cjs';
6
6
  import '../interceptor-ETmS7Tab.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { jf as Void, jg as VoidSort, l$ as VoidType, jh as VoidUpdate, ji as Voids, lu as default } from '../api-DrryxHto.js';
1
+ export { jf as Void, jg as VoidSort, l$ as VoidType, jh as VoidUpdate, ji as Voids, lu as default } from '../api-CwIChQ0Z.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-ETmS7Tab.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { voids_default as default } from '../chunk-LLYWUA5S.js';
1
+ export { voids_default as default } from '../chunk-IT2MWRJY.js';
2
2
  import '../chunk-XKERR6OR.js';
3
3
  import '../chunk-CHYP5F26.js';
4
4
  import '../chunk-UUY77JM3.js';
@@ -1,7 +1,7 @@
1
- import _default from '../api-Hc0WV-9j.cjs';
1
+ import _default from '../api-CCnlZsdt.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { jj as Webhook, jk as WebhookCreate, jl as WebhookSort, lI as WebhookType, jm as WebhookUpdate, jn as Webhooks } from '../api-Hc0WV-9j.cjs';
4
+ export { jj as Webhook, jk as WebhookCreate, jl as WebhookSort, lI as WebhookType, jm as WebhookUpdate, jn as Webhooks } from '../api-CCnlZsdt.cjs';
5
5
  import '../client.cjs';
6
6
  import '../interceptor-ETmS7Tab.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { jj as Webhook, jk as WebhookCreate, jl as WebhookSort, lI as WebhookType, jm as WebhookUpdate, jn as Webhooks, lv as default } from '../api-DrryxHto.js';
1
+ export { jj as Webhook, jk as WebhookCreate, jl as WebhookSort, lI as WebhookType, jm as WebhookUpdate, jn as Webhooks, lv as default } from '../api-CwIChQ0Z.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-ETmS7Tab.js';
4
4
  import '../types.js';
@@ -1,7 +1,7 @@
1
- import _default from '../api-Hc0WV-9j.cjs';
1
+ import _default from '../api-CCnlZsdt.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { jo as WireTransfer, jp as WireTransferCreate, jq as WireTransferSort, lV as WireTransferType, jr as WireTransferUpdate, js as WireTransfers } from '../api-Hc0WV-9j.cjs';
4
+ export { jo as WireTransfer, jp as WireTransferCreate, jq as WireTransferSort, lV as WireTransferType, jr as WireTransferUpdate, js as WireTransfers } from '../api-CCnlZsdt.cjs';
5
5
  import '../client.cjs';
6
6
  import '../interceptor-ETmS7Tab.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { jo as WireTransfer, jp as WireTransferCreate, jq as WireTransferSort, lV as WireTransferType, jr as WireTransferUpdate, js as WireTransfers, lw as default } from '../api-DrryxHto.js';
1
+ export { jo as WireTransfer, jp as WireTransferCreate, jq as WireTransferSort, lV as WireTransferType, jr as WireTransferUpdate, js as WireTransfers, lw as default } from '../api-CwIChQ0Z.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-ETmS7Tab.js';
4
4
  import '../types.js';
package/lib/static.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkH7JSRNFC_cjs = require('./chunk-H7JSRNFC.cjs');
4
- require('./chunk-NHDSPKJY.cjs');
3
+ var chunkWL4YGKEX_cjs = require('./chunk-WL4YGKEX.cjs');
4
+ require('./chunk-CCV4ODLG.cjs');
5
5
  require('./chunk-U22VLCMN.cjs');
6
6
  require('./chunk-YY5ENJSH.cjs');
7
7
  require('./chunk-ZWVME7CU.cjs');
@@ -16,7 +16,7 @@ require('./chunk-JEQ2X3Z6.cjs');
16
16
 
17
17
  Object.defineProperty(exports, "CommerceLayerStatic", {
18
18
  enumerable: true,
19
- get: function () { return chunkH7JSRNFC_cjs.CommerceLayerStatic; }
19
+ get: function () { return chunkWL4YGKEX_cjs.CommerceLayerStatic; }
20
20
  });
21
21
  //# sourceMappingURL=static.cjs.map
22
22
  //# sourceMappingURL=static.cjs.map
package/lib/static.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { gv as ResourceTypeLock } from './api-Hc0WV-9j.cjs';
1
+ import { gv as ResourceTypeLock } from './api-CCnlZsdt.cjs';
2
2
  import { SdkError, ApiError } from './error.cjs';
3
3
  import './client.cjs';
4
4
  import './interceptor-ETmS7Tab.cjs';
package/lib/static.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { gv as ResourceTypeLock } from './api-DrryxHto.js';
1
+ import { gv as ResourceTypeLock } from './api-CwIChQ0Z.js';
2
2
  import { SdkError, ApiError } from './error.js';
3
3
  import './client.js';
4
4
  import './interceptor-ETmS7Tab.js';
package/lib/static.js CHANGED
@@ -1,5 +1,5 @@
1
- export { CommerceLayerStatic } from './chunk-BPUZXZM4.js';
2
- import './chunk-MBWTMQHA.js';
1
+ export { CommerceLayerStatic } from './chunk-OUAEWHLC.js';
2
+ import './chunk-3INQL4DR.js';
3
3
  import './chunk-XKERR6OR.js';
4
4
  import './chunk-CHYP5F26.js';
5
5
  import './chunk-UUY77JM3.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercelayer/sdk",
3
- "version": "7.6.0",
3
+ "version": "7.7.0",
4
4
  "main": "lib/index.cjs",
5
5
  "types": "lib/index.d.ts",
6
6
  "module": "lib/index.js",
@@ -57,20 +57,20 @@
57
57
  "node": ">=20"
58
58
  },
59
59
  "devDependencies": {
60
- "@commercelayer/eslint-config-ts": "^2.2.0",
60
+ "@commercelayer/eslint-config-ts": "^2.6.0",
61
61
  "@commercelayer/js-auth": "^6.7.2",
62
62
  "@semantic-release/changelog": "^6.0.3",
63
63
  "@semantic-release/git": "^10.0.1",
64
64
  "@types/debug": "^4.1.12",
65
- "@types/node": "^24.10.9",
65
+ "@types/node": "^24.10.13",
66
66
  "@vitest/coverage-v8": "^3.2.4",
67
- "@vitest/eslint-plugin": "^1.6.6",
67
+ "@vitest/eslint-plugin": "^1.6.9",
68
68
  "conventional-changelog-conventionalcommits": "^8.0.0",
69
69
  "dotenv": "^16.6.1",
70
70
  "eslint": "^8.57.1",
71
71
  "json-typescript": "^1.1.2",
72
72
  "jsonapi-typescript": "^0.1.3",
73
- "semantic-release": "^25.0.2",
73
+ "semantic-release": "^25.0.3",
74
74
  "tsup": "^8.5.1",
75
75
  "tsx": "^4.21.0",
76
76
  "typescript": "^5.9.3",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/adyen_gateways.ts"],"names":["ApiResource"],"mappings":";;;;;AAiOA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsBA,6BAAA,CAA0B;AAAA,EAErD,OAAgB,IAAA,GAAyB,gBAAA;AAAA,EAEzC,MAAM,MAAA,CAAO,QAAA,EAA8B,MAAA,EAA4C,OAAA,EAAkD;AACxI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,cAAA,CAAc,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC1H;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA8B,MAAA,EAA4C,OAAA,EAAkD;AACxI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,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AAA;AAAA,EAC3D;AAAA,EAGA,IAAA,GAAyB;AACxB,IAAA,OAAO,cAAA,CAAc,IAAA;AAAA,EACtB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,sBAAA,GAAQ","file":"chunk-2C3Z5JNK.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 { AdyenPayment, AdyenPaymentType } from './adyen_payments'\n\n\ntype AdyenGatewayType = 'adyen_gateways'\ntype AdyenGatewayRel = ResourceRel & { type: AdyenGatewayType }\ntype AdyenPaymentRel = ResourceRel & { type: AdyenPaymentType }\n\n\nexport type AdyenGatewaySort = Pick<AdyenGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort\n// export type AdyenGatewayFilter = Pick<AdyenGateway, 'id' | 'name' | 'disabled_at'> & ResourceFilter\n\n\ninterface AdyenGateway extends Resource {\n\t\n\treadonly type: AdyenGatewayType\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 * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The prefix of the endpoint used for live transactions.\n\t * @example ```\"1797a841fbb37ca7-AdyenDemo\"```\n\t */\n\tlive_url_prefix: string\n\t/** \n\t * The checkout API version, supported range is from 66 to 71, default is 71.\n\t * @example ```71```\n\t */\n\tapi_version?: number | null\n\t/** \n\t * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.\n\t * @example ```true```\n\t */\n\tasync_api?: boolean | null\n\t/** \n\t * Send this attribute if you want to enable partial payments for the order.\n\t */\n\tpartial_payments?: boolean | null\n\t/** \n\t * Indicates if the gateway will use the native customer payment sources.\n\t * @example ```true```\n\t */\n\tnative_customer_payment_sources?: boolean | null\n\t/** \n\t * The gateway webhook endpoint secret, generated by Adyen customer area.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\t/** \n\t * The gateway webhook URL, generated automatically.\n\t * @example ```\"https://core.commercelayer.co/webhook_callbacks/adyen_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\tadyen_payments?: AdyenPayment[] | null\n\n}\n\n\ninterface AdyenGatewayCreate 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 * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * The gateway merchant account.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tmerchant_account: string\n\t/** \n\t * The gateway API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key: string\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\t/** \n\t * The prefix of the endpoint used for live transactions.\n\t * @example ```\"1797a841fbb37ca7-AdyenDemo\"```\n\t */\n\tlive_url_prefix: string\n\t/** \n\t * The checkout API version, supported range is from 66 to 71, default is 71.\n\t * @example ```71```\n\t */\n\tapi_version?: number | null\n\t/** \n\t * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.\n\t * @example ```true```\n\t */\n\tasync_api?: boolean | null\n\t/** \n\t * Send this attribute if you want to enable partial payments for the order.\n\t */\n\tpartial_payments?: boolean | null\n\t/** \n\t * Indicates if the gateway will use the native customer payment sources.\n\t * @example ```true```\n\t */\n\tnative_customer_payment_sources?: boolean | null\n\t/** \n\t * The gateway webhook endpoint secret, generated by Adyen customer area.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\n\tadyen_payments?: AdyenPaymentRel[] | null\n\n}\n\n\ninterface AdyenGatewayUpdate 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 * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * The gateway merchant account.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tmerchant_account?: string | null\n\t/** \n\t * The gateway API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key?: string | null\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\t/** \n\t * The prefix of the endpoint used for live transactions.\n\t * @example ```\"1797a841fbb37ca7-AdyenDemo\"```\n\t */\n\tlive_url_prefix?: string | null\n\t/** \n\t * The checkout API version, supported range is from 66 to 71, default is 71.\n\t * @example ```71```\n\t */\n\tapi_version?: number | null\n\t/** \n\t * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.\n\t * @example ```true```\n\t */\n\tasync_api?: boolean | null\n\t/** \n\t * Send this attribute if you want to enable partial payments for the order.\n\t */\n\tpartial_payments?: boolean | null\n\t/** \n\t * Indicates if the gateway will use the native customer payment sources.\n\t * @example ```true```\n\t */\n\tnative_customer_payment_sources?: boolean | null\n\t/** \n\t * The gateway webhook endpoint secret, generated by Adyen customer area.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\n\tadyen_payments?: AdyenPaymentRel[] | null\n\n}\n\n\nclass AdyenGateways extends ApiResource<AdyenGateway> {\n\n\tstatic readonly TYPE: AdyenGatewayType = 'adyen_gateways' as const\n\n\tasync create(resource: AdyenGatewayCreate, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway> {\n\t\treturn this.resources.create<AdyenGatewayCreate, AdyenGateway>({ ...resource, type: AdyenGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AdyenGatewayUpdate, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway> {\n\t\treturn this.resources.update<AdyenGatewayUpdate, AdyenGateway>({ ...resource, type: AdyenGateways.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: AdyenGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _adyenGatewayId = (adyenGatewayId as AdyenGateway).id || adyenGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `adyen_gateways/${_adyenGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _adyenGatewayId = (adyenGatewayId as AdyenGateway).id || adyenGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `adyen_gateways/${_adyenGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _adyenGatewayId = (adyenGatewayId as AdyenGateway).id || adyenGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `adyen_gateways/${_adyenGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync adyen_payments(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<AdyenPayment>, options?: ResourcesConfig): Promise<ListResponse<AdyenPayment>> {\n\t\tconst _adyenGatewayId = (adyenGatewayId as AdyenGateway).id || adyenGatewayId as string\n\t\treturn this.resources.fetch<AdyenPayment>({ type: 'adyen_payments' }, `adyen_gateways/${_adyenGatewayId}/adyen_payments`, params, options) as unknown as ListResponse<AdyenPayment>\n\t}\n\n\tasync _disable(id: string | AdyenGateway, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway> {\n\t\treturn this.resources.update<AdyenGatewayUpdate, AdyenGateway>({ id: (typeof id === 'string')? id: id.id, type: AdyenGateways.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | AdyenGateway, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway> {\n\t\treturn this.resources.update<AdyenGatewayUpdate, AdyenGateway>({ id: (typeof id === 'string')? id: id.id, type: AdyenGateways.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisAdyenGateway(resource: any): resource is AdyenGateway {\n\t\treturn resource.type && (resource.type === AdyenGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AdyenGatewayRel {\n\t\treturn super.relationshipOneToOne<AdyenGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AdyenGatewayRel[] {\n\t\treturn super.relationshipOneToMany<AdyenGatewayRel>(...ids)\n\t}\n\n\n\ttype(): AdyenGatewayType {\n\t\treturn AdyenGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new AdyenGateways()\nexport default instance\n\nexport type { AdyenGateways, AdyenGateway, AdyenGatewayCreate, AdyenGatewayUpdate, AdyenGatewayType }\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/voids.ts"],"names":["ApiResource"],"mappings":";;;;;AAmHA,IAAM,KAAA,GAAN,MAAM,MAAA,SAAcA,6BAAA,CAAkB;AAAA,EAErC,OAAgB,IAAA,GAAiB,OAAA;AAAA,EAEjC,MAAM,MAAA,CAAO,QAAA,EAAsB,MAAA,EAAoC,OAAA,EAA0C;AAChH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,MAAA,CAAM,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAClG;AAAA,EAEA,MAAM,KAAA,CAAM,MAAA,EAAuB,MAAA,EAAqC,OAAA,EAA2C;AAClH,IAAA,MAAM,OAAA,GAAW,OAAgB,EAAA,IAAM,MAAA;AACvC,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAa,EAAE,IAAA,EAAM,QAAA,EAAS,EAAG,CAAA,MAAA,EAAS,OAAO,CAAA,MAAA,CAAA,EAAU,MAAA,EAAQ,OAAO,CAAA;AAAA,EACjG;AAAA,EAEA,MAAM,WAAA,CAAY,MAAA,EAAuB,MAAA,EAAsC,OAAA,EAA8D;AAC5I,IAAA,MAAM,OAAA,GAAW,OAAgB,EAAA,IAAM,MAAA;AACvC,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,aAAA,EAAc,EAAG,CAAA,MAAA,EAAS,O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A,CAAA,EAA4B,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAEA,MAAM,QAAA,CAAS,EAAA,EAAmB,MAAA,EAAoC,OAAA,EAA0C;AAC/G,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAyB,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,MAAA,CAAM,IAAA,EAAM,UAAU,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EAC9I;AAAA,EAGA,OAAO,QAAA,EAAiC;AACvC,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,MAAA,CAAM,IAAA;AAAA,EAClD;AAAA,EAGA,aAAa,EAAA,EAAyC;AACrD,IAAA,OAAO,KAAA,CAAM,qBAA8B,EAAE,CAAA;AAAA,EAC9C;AAAA,EAEA,sBAAsB,GAAA,EAA0B;AAC/C,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA+B,GAAG,GAAG,CAAA;AAAA,EACnD;AAAA,EAGA,IAAA,GAAiB;AAChB,IAAA,OAAO,MAAA,CAAM,IAAA;AAAA,EACd;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,KAAA,EAAM;AAC3B,IAAO,aAAA,GAAQ","file":"chunk-3XJA5M3C.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Order } from './orders'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\nimport type { Authorization } from './authorizations'\nimport type { AdyenPayment } from './adyen_payments'\nimport type { AxervePayment } from './axerve_payments'\nimport type { BraintreePayment } from './braintree_payments'\nimport type { CheckoutComPayment } from './checkout_com_payments'\nimport type { ExternalPayment } from './external_payments'\nimport type { KlarnaPayment } from './klarna_payments'\nimport type { PaypalPayment } from './paypal_payments'\nimport type { SatispayPayment } from './satispay_payments'\nimport type { StripePayment } from './stripe_payments'\nimport type { WireTransfer } from './wire_transfers'\n\n\ntype VoidType = 'voids'\ntype VoidRel = ResourceRel & { type: VoidType }\n\n\nexport type VoidSort = Pick<Void, 'id' | 'number' | 'amount_cents'> & ResourceSort\n// export type VoidFilter = Pick<Void, 'id' | 'number' | 'currency_code' | 'amount_cents' | 'succeeded' | 'message' | 'error_code' | 'error_detail' | 'token' | 'gateway_transaction_id'> & ResourceFilter\n\n\ninterface Void extends Resource {\n\t\n\treadonly type: VoidType\n\n\t/** \n\t * The transaction number, auto generated.\n\t * @example ```\"42/T/001\"```\n\t */\n\tnumber: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The transaction amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * The transaction amount, float.\n\t * @example ```15```\n\t */\n\tamount_float: number\n\t/** \n\t * The transaction amount, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_amount: string\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded: boolean\n\t/** \n\t * The message returned by the payment gateway.\n\t * @example ```\"Accepted\"```\n\t */\n\tmessage?: string | null\n\t/** \n\t * The error code, if any, returned by the payment gateway.\n\t * @example ```\"00001\"```\n\t */\n\terror_code?: string | null\n\t/** \n\t * The error detail, if any, returned by the payment gateway.\n\t * @example ```\"Already settled\"```\n\t */\n\terror_detail?: string | null\n\t/** \n\t * The token identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ttoken?: string | null\n\t/** \n\t * The ID identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tgateway_transaction_id?: string | null\n\n\torder?: Order | null\n\tpayment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\treference_authorization?: Authorization | null\n\n}\n\n\ninterface VoidUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded?: boolean | null\n\t/** \n\t * Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.\n\t * @example ```true```\n\t */\n\t_forward?: boolean | null\n\t\n}\n\n\nclass Voids extends ApiResource<Void> {\n\n\tstatic readonly TYPE: VoidType = 'voids' as const\n\n\tasync update(resource: VoidUpdate, params?: QueryParamsRetrieve<Void>, options?: ResourcesConfig): Promise<Void> {\n\t\treturn this.resources.update<VoidUpdate, Void>({ ...resource, type: Voids.TYPE }, params, options)\n\t}\n\n\tasync order(voidId: string | Void, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _voidId = (voidId as Void).id || voidId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `voids/${_voidId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync attachments(voidId: string | Void, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _voidId = (voidId as Void).id || voidId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `voids/${_voidId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(voidId: string | Void, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _voidId = (voidId as Void).id || voidId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `voids/${_voidId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(voidId: string | Void, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _voidId = (voidId as Void).id || voidId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `voids/${_voidId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(voidId: string | Void, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _voidId = (voidId as Void).id || voidId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `voids/${_voidId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync reference_authorization(voidId: string | Void, params?: QueryParamsRetrieve<Authorization>, options?: ResourcesConfig): Promise<Authorization> {\n\t\tconst _voidId = (voidId as Void).id || voidId as string\n\t\treturn this.resources.fetch<Authorization>({ type: 'authorizations' }, `voids/${_voidId}/reference_authorization`, params, options) as unknown as Authorization\n\t}\n\n\tasync _forward(id: string | Void, params?: QueryParamsRetrieve<Void>, options?: ResourcesConfig): Promise<Void> {\n\t\treturn this.resources.update<VoidUpdate, Void>({ id: (typeof id === 'string')? id: id.id, type: Voids.TYPE, _forward: true }, params, options)\n\t}\n\n\n\tisVoid(resource: any): resource is Void {\n\t\treturn resource.type && (resource.type === Voids.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): VoidRel {\n\t\treturn super.relationshipOneToOne<VoidRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): VoidRel[] {\n\t\treturn super.relationshipOneToMany<VoidRel>(...ids)\n\t}\n\n\n\ttype(): VoidType {\n\t\treturn Voids.TYPE\n\t}\n\n}\n\n\nconst instance = new Voids()\nexport default instance\n\nexport type { Voids, Void, VoidUpdate, VoidType }\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/transactions.ts"],"names":[],"mappings":";;;AAkGA,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqB,WAAA,CAAyB;AAAA,EAEnD,OAAgB,IAAA,GAAwB,cAAA;AA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EA,MAAM,YAAA,CAAa,aAAA,EAAqC,MAAA,EAAsC,OAAA,EAA8D;AAC3J,IAAA,MAAM,cAAA,GAAkB,cAA8B,EAAA,IAAM,aAAA;AAC5D,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,aAAA,EAAgB,cAAc,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACjI;AAAA,EAGA,cAAc,QAAA,EAAwC;AACrD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,aAAA,CAAa,IAAA;AAAA,EACzD;AAAA,EAGA,aAAa,EAAA,EAAgD;AAC5D,IAAA,OAAO,KAAA,CAAM,qBAAqC,EAAE,CAAA;AAAA,EACrD;AAAA,EAEA,sBAAsB,GAAA,EAAiC;AACtD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAsC,GAAG,GAAG,CAAA;AAAA,EAC1D;AAAA,EAGA,IAAA,GAAwB;AACvB,IAAA,OAAO,aAAA,CAAa,IAAA;AAAA,EACrB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,YAAA,EAAa;AAClC,IAAO,oBAAA,GAAQ","file":"chunk-6ZJMVQ7T.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Order } from './orders'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\nimport type { AdyenPayment } from './adyen_payments'\nimport type { AxervePayment } from './axerve_payments'\nimport type { BraintreePayment } from './braintree_payments'\nimport type { CheckoutComPayment } from './checkout_com_payments'\nimport type { ExternalPayment } from './external_payments'\nimport type { KlarnaPayment } from './klarna_payments'\nimport type { PaypalPayment } from './paypal_payments'\nimport type { SatispayPayment } from './satispay_payments'\nimport type { StripePayment } from './stripe_payments'\nimport type { WireTransfer } from './wire_transfers'\n\n\ntype TransactionType = 'transactions'\ntype TransactionRel = ResourceRel & { type: TransactionType }\n\n\nexport type TransactionSort = Pick<Transaction, 'id' | 'number' | 'amount_cents'> & ResourceSort\n// export type TransactionFilter = Pick<Transaction, 'id' | 'number' | 'currency_code' | 'amount_cents' | 'succeeded' | 'message' | 'error_code' | 'error_detail' | 'token' | 'gateway_transaction_id'> & ResourceFilter\n\n\ninterface Transaction extends Resource {\n\t\n\treadonly type: TransactionType\n\n\t/** \n\t * The transaction number, auto generated.\n\t * @example ```\"42/T/001\"```\n\t */\n\tnumber: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The transaction amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * The transaction amount, float.\n\t * @example ```15```\n\t */\n\tamount_float: number\n\t/** \n\t * The transaction amount, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_amount: string\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded: boolean\n\t/** \n\t * The message returned by the payment gateway.\n\t * @example ```\"Accepted\"```\n\t */\n\tmessage?: string | null\n\t/** \n\t * The error code, if any, returned by the payment gateway.\n\t * @example ```\"00001\"```\n\t */\n\terror_code?: string | null\n\t/** \n\t * The error detail, if any, returned by the payment gateway.\n\t * @example ```\"Already settled\"```\n\t */\n\terror_detail?: string | null\n\t/** \n\t * The token identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ttoken?: string | null\n\t/** \n\t * The ID identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tgateway_transaction_id?: string | null\n\n\torder?: Order | null\n\tpayment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\nclass Transactions extends ApiResource<Transaction> {\n\n\tstatic readonly TYPE: TransactionType = 'transactions' as const\n\n\tasync order(transactionId: string | Transaction, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _transactionId = (transactionId as Transaction).id || transactionId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `transactions/${_transactionId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync attachments(transactionId: string | Transaction, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _transactionId = (transactionId as Transaction).id || transactionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `transactions/${_transactionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(transactionId: string | Transaction, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _transactionId = (transactionId as Transaction).id || transactionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `transactions/${_transactionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(transactionId: string | Transaction, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _transactionId = (transactionId as Transaction).id || transactionId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `transactions/${_transactionId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(transactionId: string | Transaction, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _transactionId = (transactionId as Transaction).id || transactionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `transactions/${_transactionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisTransaction(resource: any): resource is Transaction {\n\t\treturn resource.type && (resource.type === Transactions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): TransactionRel {\n\t\treturn super.relationshipOneToOne<TransactionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): TransactionRel[] {\n\t\treturn super.relationshipOneToMany<TransactionRel>(...ids)\n\t}\n\n\n\ttype(): TransactionType {\n\t\treturn Transactions.TYPE\n\t}\n\n}\n\n\nconst instance = new Transactions()\nexport default instance\n\nexport type { Transactions, Transaction, TransactionType }\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/satispay_payments.ts"],"names":["ApiResource"],"mappings":";;;;;AAuGA,IAAM,gBAAA,GAAN,MAAM,iBAAA,SAAyBA,6BAAA,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,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,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC1I;AAAA,EAEA,MAAM,QAAA,CAAS,EAAA,EAA8B,MAAA,EAA+C,OAAA,EAAqD;AAChJ,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,UAAU,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EAC/K;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-7SJAVPZH.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 { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\n\n\ntype SatispayPaymentType = 'satispay_payments'\ntype SatispayPaymentRel = ResourceRel & { type: SatispayPaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type SatispayPaymentSort = Pick<SatispayPayment, 'id' | 'flow' | 'status'> & ResourceSort\n// export type SatispayPaymentFilter = Pick<SatispayPayment, 'id' | 'flow' | 'status'> & ResourceFilter\n\n\ninterface SatispayPayment extends Resource {\n\t\n\treadonly type: SatispayPaymentType\n\n\t/** \n\t * The payment unique identifier.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tpayment_id?: string | null\n\t/** \n\t * The Satispay payment flow, inspect gateway API details for more information.\n\t * @example ```\"MATCH_CODE\"```\n\t */\n\tflow?: string | null\n\t/** \n\t * The Satispay payment status.\n\t * @example ```\"PENDING\"```\n\t */\n\tstatus?: string | null\n\t/** \n\t * The url to redirect the customer after the payment flow is completed.\n\t * @example ```\"http://commercelayer.dev/satispay/redirect\"```\n\t */\n\tredirect_url?: string | null\n\t/** \n\t * Redirect url to the payment page.\n\t * @example ```\"https://online.satispay.com/pay/xxxx-yyyy-zzzz?redirect_url={redirect_url}\"```\n\t */\n\tpayment_url?: string | null\n\t/** \n\t * The Satispay payment response, used to fetch internal data.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_response?: Record<string, any> | null\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tpayment_gateway?: PaymentGateway | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface SatispayPaymentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The Satispay payment flow, inspect gateway API details for more information.\n\t * @example ```\"MATCH_CODE\"```\n\t */\n\tflow?: string | null\n\t/** \n\t * The url to redirect the customer after the payment flow is completed.\n\t * @example ```\"http://commercelayer.dev/satispay/redirect\"```\n\t */\n\tredirect_url?: string | null\n\n\torder: OrderRel\n\n}\n\n\ninterface SatispayPaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The url to redirect the customer after the payment flow is completed.\n\t * @example ```\"http://commercelayer.dev/satispay/redirect\"```\n\t */\n\tredirect_url?: string | null\n\t/** \n\t * Send this attribute if you want to refresh all the pending transactions, can be used as webhooks fallback logic.\n\t * @example ```true```\n\t */\n\t_refresh?: boolean | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass SatispayPayments extends ApiResource<SatispayPayment> {\n\n\tstatic readonly TYPE: SatispayPaymentType = 'satispay_payments' as const\n\n\tasync create(resource: SatispayPaymentCreate, params?: QueryParamsRetrieve<SatispayPayment>, options?: ResourcesConfig): Promise<SatispayPayment> {\n\t\treturn this.resources.create<SatispayPaymentCreate, SatispayPayment>({ ...resource, type: SatispayPayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: SatispayPaymentUpdate, params?: QueryParamsRetrieve<SatispayPayment>, options?: ResourcesConfig): Promise<SatispayPayment> {\n\t\treturn this.resources.update<SatispayPaymentUpdate, SatispayPayment>({ ...resource, type: SatispayPayments.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: SatispayPayments.TYPE } : id, options)\n\t}\n\n\tasync order(satispayPaymentId: string | SatispayPayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _satispayPaymentId = (satispayPaymentId as SatispayPayment).id || satispayPaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `satispay_payments/${_satispayPaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(satispayPaymentId: string | SatispayPayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _satispayPaymentId = (satispayPaymentId as SatispayPayment).id || satispayPaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `satispay_payments/${_satispayPaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync versions(satispayPaymentId: string | SatispayPayment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _satispayPaymentId = (satispayPaymentId as SatispayPayment).id || satispayPaymentId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `satispay_payments/${_satispayPaymentId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(satispayPaymentId: string | SatispayPayment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _satispayPaymentId = (satispayPaymentId as SatispayPayment).id || satispayPaymentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `satispay_payments/${_satispayPaymentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _refresh(id: string | SatispayPayment, params?: QueryParamsRetrieve<SatispayPayment>, options?: ResourcesConfig): Promise<SatispayPayment> {\n\t\treturn this.resources.update<SatispayPaymentUpdate, SatispayPayment>({ id: (typeof id === 'string')? id: id.id, type: SatispayPayments.TYPE, _refresh: true }, params, options)\n\t}\n\n\n\tisSatispayPayment(resource: any): resource is SatispayPayment {\n\t\treturn resource.type && (resource.type === SatispayPayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): SatispayPaymentRel {\n\t\treturn super.relationshipOneToOne<SatispayPaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): SatispayPaymentRel[] {\n\t\treturn super.relationshipOneToMany<SatispayPaymentRel>(...ids)\n\t}\n\n\n\ttype(): SatispayPaymentType {\n\t\treturn SatispayPayments.TYPE\n\t}\n\n}\n\n\nconst instance = new SatispayPayments()\nexport default instance\n\nexport type { SatispayPayments, SatispayPayment, SatispayPaymentCreate, SatispayPaymentUpdate, SatispayPaymentType }\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/adyen_payments.ts"],"names":["ApiResource"],"mappings":";;;;;AA+GA,IAAM,aAAA,GAAN,MAAM,cAAA,SAA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,MAAM,cAAA,CAAc,IAAA,EAAM,UAAU,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACtK;AAAA,EAEA,MAAM,QAAA,CAAS,EAAA,EAA2B,MAAA,EAA4C,OAAA,EAAkD;AACvI,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,cAAA,CAAc,IAAA,EAAM,UAAU,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACtK;AAAA,EAGA,eAAe,QAAA,EAAyC;AACvD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,cAAA,CAAc,IAAA;AAAA,EAC1D;AAAA,EAGA,aAAa,EAAA,EAAiD;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAsC,EAAE,CAAA;AAAA,EACtD;AAAA,EAEA,sBAAsB,GAAA,EAAkC;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAuC,GAAG,GAAG,CAAA;AAAA,EAC3D;AAAA,EAGA,IAAA,GAAyB;AACxB,IAAA,OAAO,cAAA,CAAc,IAAA;AAAA,EACtB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,sBAAA,GAAQ","file":"chunk-FNTJOIQB.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 { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\n\n\ntype AdyenPaymentType = 'adyen_payments'\ntype AdyenPaymentRel = ResourceRel & { type: AdyenPaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type AdyenPaymentSort = Pick<AdyenPayment, 'id'> & ResourceSort\n// export type AdyenPaymentFilter = Pick<AdyenPayment, 'id'> & ResourceFilter\n\n\ninterface AdyenPayment extends Resource {\n\t\n\treadonly type: AdyenPaymentType\n\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\t/** \n\t * The merchant available payment methods for the assoiated order (i.e. country and amount). Required by the Adyen JS SDK.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_methods: Record<string, any>\n\t/** \n\t * The Adyen payment request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_data?: Record<string, any> | null\n\t/** \n\t * The Adyen additional details request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_details?: Record<string, any> | null\n\t/** \n\t * The Adyen payment response, used by client (includes 'resultCode' and 'action').\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_response?: Record<string, any> | null\n\t/** \n\t * Indicates if the order current amount differs form the one of the associated authorization.\n\t */\n\tmismatched_amounts?: boolean | null\n\t/** \n\t * The balance remaining on a shopper's gift card, must be computed by using its related trigger attribute.\n\t * @example ```1000```\n\t */\n\tbalance?: number | null\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tpayment_gateway?: PaymentGateway | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface AdyenPaymentCreate extends ResourceCreate {\n\t\n\torder: OrderRel\n\n}\n\n\ninterface AdyenPaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The Adyen payment request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_data?: Record<string, any> | null\n\t/** \n\t * The Adyen additional details request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_details?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to authorize the payment.\n\t * @example ```true```\n\t */\n\t_authorize?: boolean | null\n\t/** \n\t * Send this attribute if you want to send additional details the payment request.\n\t * @example ```true```\n\t */\n\t_details?: boolean | null\n\t/** \n\t * Send this attribute if you want retrieve the balance remaining on a shopper's gift card.\n\t * @example ```true```\n\t */\n\t_balance?: boolean | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass AdyenPayments extends ApiResource<AdyenPayment> {\n\n\tstatic readonly TYPE: AdyenPaymentType = 'adyen_payments' as const\n\n\tasync create(resource: AdyenPaymentCreate, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.create<AdyenPaymentCreate, AdyenPayment>({ ...resource, type: AdyenPayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AdyenPaymentUpdate, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ ...resource, type: AdyenPayments.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: AdyenPayments.TYPE } : id, options)\n\t}\n\n\tasync order(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `adyen_payments/${_adyenPaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `adyen_payments/${_adyenPaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync versions(adyenPaymentId: string | AdyenPayment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `adyen_payments/${_adyenPaymentId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(adyenPaymentId: string | AdyenPayment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `adyen_payments/${_adyenPaymentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _authorize(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _authorize: true }, params, options)\n\t}\n\n\tasync _details(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _details: true }, params, options)\n\t}\n\n\tasync _balance(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _balance: true }, params, options)\n\t}\n\n\n\tisAdyenPayment(resource: any): resource is AdyenPayment {\n\t\treturn resource.type && (resource.type === AdyenPayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AdyenPaymentRel {\n\t\treturn super.relationshipOneToOne<AdyenPaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AdyenPaymentRel[] {\n\t\treturn super.relationshipOneToMany<AdyenPaymentRel>(...ids)\n\t}\n\n\n\ttype(): AdyenPaymentType {\n\t\treturn AdyenPayments.TYPE\n\t}\n\n}\n\n\nconst instance = new AdyenPayments()\nexport default instance\n\nexport type { AdyenPayments, AdyenPayment, AdyenPaymentCreate, AdyenPaymentUpdate, AdyenPaymentType }\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/adyen_payments.ts"],"names":[],"mappings":";;;AA+GA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsB,WAAA,CAA0B;AAAA,EAErD,OAAgB,IAAA,GAAyB,gBAAA;AAAA,EAEzC,MAAM,MAAA,CAAO,QAAA,EAA8B,MAAA,EAA4C,OAAA,EAAkD;AACxI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,cAAA,CAAc,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC1H;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA8B,MAAA,EAA4C,OAAA,EAAkD;AACxI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,cAAA,CAAc,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC1H;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,cAAA,CAAc,IAAA,EAAK,GAAI,IAAI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AACxB,IAAA,OAAO,cAAA,CAAc,IAAA;AAAA,EACtB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,sBAAA,GAAQ","file":"chunk-GRBPCPJQ.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 { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\n\n\ntype AdyenPaymentType = 'adyen_payments'\ntype AdyenPaymentRel = ResourceRel & { type: AdyenPaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type AdyenPaymentSort = Pick<AdyenPayment, 'id'> & ResourceSort\n// export type AdyenPaymentFilter = Pick<AdyenPayment, 'id'> & ResourceFilter\n\n\ninterface AdyenPayment extends Resource {\n\t\n\treadonly type: AdyenPaymentType\n\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\t/** \n\t * The merchant available payment methods for the assoiated order (i.e. country and amount). Required by the Adyen JS SDK.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_methods: Record<string, any>\n\t/** \n\t * The Adyen payment request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_data?: Record<string, any> | null\n\t/** \n\t * The Adyen additional details request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_details?: Record<string, any> | null\n\t/** \n\t * The Adyen payment response, used by client (includes 'resultCode' and 'action').\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_response?: Record<string, any> | null\n\t/** \n\t * Indicates if the order current amount differs form the one of the associated authorization.\n\t */\n\tmismatched_amounts?: boolean | null\n\t/** \n\t * The balance remaining on a shopper's gift card, must be computed by using its related trigger attribute.\n\t * @example ```1000```\n\t */\n\tbalance?: number | null\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tpayment_gateway?: PaymentGateway | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface AdyenPaymentCreate extends ResourceCreate {\n\t\n\torder: OrderRel\n\n}\n\n\ninterface AdyenPaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The Adyen payment request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_data?: Record<string, any> | null\n\t/** \n\t * The Adyen additional details request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_details?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to authorize the payment.\n\t * @example ```true```\n\t */\n\t_authorize?: boolean | null\n\t/** \n\t * Send this attribute if you want to send additional details the payment request.\n\t * @example ```true```\n\t */\n\t_details?: boolean | null\n\t/** \n\t * Send this attribute if you want retrieve the balance remaining on a shopper's gift card.\n\t * @example ```true```\n\t */\n\t_balance?: boolean | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass AdyenPayments extends ApiResource<AdyenPayment> {\n\n\tstatic readonly TYPE: AdyenPaymentType = 'adyen_payments' as const\n\n\tasync create(resource: AdyenPaymentCreate, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.create<AdyenPaymentCreate, AdyenPayment>({ ...resource, type: AdyenPayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AdyenPaymentUpdate, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ ...resource, type: AdyenPayments.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: AdyenPayments.TYPE } : id, options)\n\t}\n\n\tasync order(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `adyen_payments/${_adyenPaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `adyen_payments/${_adyenPaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync versions(adyenPaymentId: string | AdyenPayment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `adyen_payments/${_adyenPaymentId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(adyenPaymentId: string | AdyenPayment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `adyen_payments/${_adyenPaymentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _authorize(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _authorize: true }, params, options)\n\t}\n\n\tasync _details(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _details: true }, params, options)\n\t}\n\n\tasync _balance(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _balance: true }, params, options)\n\t}\n\n\n\tisAdyenPayment(resource: any): resource is AdyenPayment {\n\t\treturn resource.type && (resource.type === AdyenPayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AdyenPaymentRel {\n\t\treturn super.relationshipOneToOne<AdyenPaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AdyenPaymentRel[] {\n\t\treturn super.relationshipOneToMany<AdyenPaymentRel>(...ids)\n\t}\n\n\n\ttype(): AdyenPaymentType {\n\t\treturn AdyenPayments.TYPE\n\t}\n\n}\n\n\nconst instance = new AdyenPayments()\nexport default instance\n\nexport type { AdyenPayments, AdyenPayment, AdyenPaymentCreate, AdyenPaymentUpdate, AdyenPaymentType }\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/refunds.ts"],"names":["ApiResource"],"mappings":";;;;;AAqHA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,E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O,CAAA;AAAA,EACpJ;AAAA,EAGA,SAAS,QAAA,EAAmC;AAC3C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,QAAA,CAAQ,IAAA;AAAA,EACpD;AAAA,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EAChD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-IALPF4NG.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Order } from './orders'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\nimport type { Capture } from './captures'\nimport type { Return } from './returns'\nimport type { AdyenPayment } from './adyen_payments'\nimport type { AxervePayment } from './axerve_payments'\nimport type { BraintreePayment } from './braintree_payments'\nimport type { CheckoutComPayment } from './checkout_com_payments'\nimport type { ExternalPayment } from './external_payments'\nimport type { KlarnaPayment } from './klarna_payments'\nimport type { PaypalPayment } from './paypal_payments'\nimport type { SatispayPayment } from './satispay_payments'\nimport type { StripePayment } from './stripe_payments'\nimport type { WireTransfer } from './wire_transfers'\n\n\ntype RefundType = 'refunds'\ntype RefundRel = ResourceRel & { type: RefundType }\n\n\nexport type RefundSort = Pick<Refund, 'id' | 'number' | 'amount_cents'> & ResourceSort\n// export type RefundFilter = Pick<Refund, 'id' | 'number' | 'currency_code' | 'amount_cents' | 'succeeded' | 'message' | 'error_code' | 'error_detail' | 'token' | 'gateway_transaction_id'> & ResourceFilter\n\n\ninterface Refund extends Resource {\n\t\n\treadonly type: RefundType\n\n\t/** \n\t * The transaction number, auto generated.\n\t * @example ```\"42/T/001\"```\n\t */\n\tnumber: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The transaction amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * The transaction amount, float.\n\t * @example ```15```\n\t */\n\tamount_float: number\n\t/** \n\t * The transaction amount, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_amount: string\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded: boolean\n\t/** \n\t * The message returned by the payment gateway.\n\t * @example ```\"Accepted\"```\n\t */\n\tmessage?: string | null\n\t/** \n\t * The error code, if any, returned by the payment gateway.\n\t * @example ```\"00001\"```\n\t */\n\terror_code?: string | null\n\t/** \n\t * The error detail, if any, returned by the payment gateway.\n\t * @example ```\"Already settled\"```\n\t */\n\terror_detail?: string | null\n\t/** \n\t * The token identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ttoken?: string | null\n\t/** \n\t * The ID identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tgateway_transaction_id?: string | null\n\n\torder?: Order | null\n\tpayment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\treference_capture?: Capture | null\n\treturn?: Return | null\n\n}\n\n\ninterface RefundUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded?: boolean | null\n\t/** \n\t * Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.\n\t * @example ```true```\n\t */\n\t_forward?: boolean | null\n\t\n}\n\n\nclass Refunds extends ApiResource<Refund> {\n\n\tstatic readonly TYPE: RefundType = 'refunds' as const\n\n\tasync update(resource: RefundUpdate, params?: QueryParamsRetrieve<Refund>, options?: ResourcesConfig): Promise<Refund> {\n\t\treturn this.resources.update<RefundUpdate, Refund>({ ...resource, type: Refunds.TYPE }, params, options)\n\t}\n\n\tasync order(refundId: string | Refund, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `refunds/${_refundId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync attachments(refundId: string | Refund, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `refunds/${_refundId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(refundId: string | Refund, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `refunds/${_refundId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(refundId: string | Refund, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `refunds/${_refundId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(refundId: string | Refund, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `refunds/${_refundId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync reference_capture(refundId: string | Refund, params?: QueryParamsRetrieve<Capture>, options?: ResourcesConfig): Promise<Capture> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<Capture>({ type: 'captures' }, `refunds/${_refundId}/reference_capture`, params, options) as unknown as Capture\n\t}\n\n\tasync return(refundId: string | Refund, params?: QueryParamsRetrieve<Return>, options?: ResourcesConfig): Promise<Return> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<Return>({ type: 'returns' }, `refunds/${_refundId}/return`, params, options) as unknown as Return\n\t}\n\n\tasync _forward(id: string | Refund, params?: QueryParamsRetrieve<Refund>, options?: ResourcesConfig): Promise<Refund> {\n\t\treturn this.resources.update<RefundUpdate, Refund>({ id: (typeof id === 'string')? id: id.id, type: Refunds.TYPE, _forward: true }, params, options)\n\t}\n\n\n\tisRefund(resource: any): resource is Refund {\n\t\treturn resource.type && (resource.type === Refunds.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): RefundRel {\n\t\treturn super.relationshipOneToOne<RefundRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): RefundRel[] {\n\t\treturn super.relationshipOneToMany<RefundRel>(...ids)\n\t}\n\n\n\ttype(): RefundType {\n\t\treturn Refunds.TYPE\n\t}\n\n}\n\n\nconst instance = new Refunds()\nexport default instance\n\nexport type { Refunds, Refund, RefundUpdate, RefundType }\n"]}