@delopay/sdk 0.497.0 → 0.501.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 (341) hide show
  1. package/dist/airwallexCard.cjs.map +1 -1
  2. package/dist/branding.cjs.map +1 -1
  3. package/dist/cardFormStyles.cjs.map +1 -1
  4. package/dist/checkoutSession.cjs +2 -2
  5. package/dist/checkoutSession.cjs.map +1 -1
  6. package/dist/checkoutSession.js +1 -1
  7. package/dist/chunk-244VZFFO.cjs.map +1 -1
  8. package/dist/chunk-2IJRBJXW.cjs.map +1 -1
  9. package/dist/{chunk-I5KOMBQ3.js → chunk-2OJJ3KGP.js} +25 -1
  10. package/dist/chunk-2OJJ3KGP.js.map +1 -0
  11. package/dist/chunk-34PC72O7.cjs.map +1 -1
  12. package/dist/chunk-3GBWQWTP.cjs.map +1 -1
  13. package/dist/chunk-3YBBJT3Y.cjs.map +1 -1
  14. package/dist/chunk-44QBWVRS.cjs.map +1 -1
  15. package/dist/chunk-4EKAWNYI.cjs.map +1 -1
  16. package/dist/chunk-4LN4BR2T.cjs.map +1 -1
  17. package/dist/chunk-4T4XHPYN.cjs.map +1 -1
  18. package/dist/{chunk-2NVGA4G5.cjs → chunk-575SNLIT.cjs} +35 -1
  19. package/dist/chunk-575SNLIT.cjs.map +1 -0
  20. package/dist/chunk-5CITBN33.cjs.map +1 -1
  21. package/dist/chunk-5HCKC4HF.cjs.map +1 -1
  22. package/dist/chunk-5O2JSQYA.cjs.map +1 -1
  23. package/dist/chunk-5QS67SBO.cjs.map +1 -1
  24. package/dist/chunk-6EBY2KKL.cjs.map +1 -1
  25. package/dist/chunk-6LFOM6HV.cjs.map +1 -1
  26. package/dist/chunk-6LOWE2YI.cjs.map +1 -1
  27. package/dist/chunk-6LSG5Z4T.cjs.map +1 -1
  28. package/dist/chunk-6SU2MTN2.cjs.map +1 -1
  29. package/dist/chunk-6YCDLSIU.cjs.map +1 -1
  30. package/dist/chunk-75E5WNJG.cjs.map +1 -1
  31. package/dist/chunk-7JV6VVO7.cjs.map +1 -1
  32. package/dist/chunk-7NKJD5ST.cjs.map +1 -1
  33. package/dist/chunk-7QZCUXWB.cjs.map +1 -1
  34. package/dist/chunk-7VXF5D67.cjs.map +1 -1
  35. package/dist/chunk-ABWAYMN5.cjs.map +1 -1
  36. package/dist/chunk-ACZ2R47X.cjs.map +1 -1
  37. package/dist/chunk-AYUYJO3I.cjs.map +1 -1
  38. package/dist/chunk-BCA3TCGS.cjs.map +1 -1
  39. package/dist/chunk-BP6KDQ6I.cjs.map +1 -1
  40. package/dist/chunk-BRY3W7N3.cjs.map +1 -1
  41. package/dist/chunk-BT3UAUEV.cjs.map +1 -1
  42. package/dist/chunk-CCN44NZJ.cjs.map +1 -1
  43. package/dist/chunk-CR3JBTP3.cjs.map +1 -1
  44. package/dist/chunk-DJASVBOJ.cjs.map +1 -1
  45. package/dist/chunk-EEB2HDYL.cjs.map +1 -1
  46. package/dist/chunk-ENPSUWTS.cjs.map +1 -1
  47. package/dist/chunk-EQ6P6ZND.cjs.map +1 -1
  48. package/dist/chunk-EXPWQBI3.cjs.map +1 -1
  49. package/dist/chunk-EYHSXJMJ.cjs.map +1 -1
  50. package/dist/chunk-F3I5DOWV.cjs.map +1 -1
  51. package/dist/chunk-F46K5H3U.cjs.map +1 -1
  52. package/dist/chunk-F6QJB4XP.cjs.map +1 -1
  53. package/dist/chunk-F6S3WCCB.cjs.map +1 -1
  54. package/dist/chunk-FQRC4NJG.cjs.map +1 -1
  55. package/dist/chunk-FTWGI7UZ.cjs.map +1 -1
  56. package/dist/chunk-FYISDU2Y.cjs.map +1 -1
  57. package/dist/chunk-GG52SAHA.cjs.map +1 -1
  58. package/dist/chunk-GK5FWN4H.cjs.map +1 -1
  59. package/dist/chunk-GSQN5EOO.cjs.map +1 -1
  60. package/dist/chunk-GW7IHYXR.cjs.map +1 -1
  61. package/dist/chunk-GWSVQXEY.cjs.map +1 -1
  62. package/dist/chunk-HLKFUOAQ.cjs.map +1 -1
  63. package/dist/chunk-HLYGHP6F.cjs.map +1 -1
  64. package/dist/chunk-HSJABE7X.cjs.map +1 -1
  65. package/dist/chunk-I2W7AO4B.cjs.map +1 -1
  66. package/dist/chunk-I2XGNALG.cjs.map +1 -1
  67. package/dist/{chunk-K3XXGAOR.cjs → chunk-IDY2LP4Q.cjs} +3 -3
  68. package/dist/chunk-IDY2LP4Q.cjs.map +1 -0
  69. package/dist/chunk-IKXGA2Z5.cjs.map +1 -1
  70. package/dist/{chunk-7H2VFIPS.js → chunk-IPN7D5PP.js} +4 -4
  71. package/dist/chunk-IR2LFKKA.cjs.map +1 -1
  72. package/dist/{chunk-ZMJT2YPZ.cjs → chunk-IUXCU3DW.cjs} +7 -7
  73. package/dist/chunk-IUXCU3DW.cjs.map +1 -0
  74. package/dist/chunk-J4ZB7MU4.cjs.map +1 -1
  75. package/dist/chunk-J5RPSRBQ.cjs.map +1 -1
  76. package/dist/chunk-JPPRDMTJ.cjs.map +1 -1
  77. package/dist/chunk-K5Q2H3VD.cjs.map +1 -1
  78. package/dist/chunk-KD5Y2YWK.cjs.map +1 -1
  79. package/dist/chunk-KJDMNF2T.cjs.map +1 -1
  80. package/dist/chunk-KLONGJCL.cjs.map +1 -1
  81. package/dist/chunk-LJ2EG6JK.cjs.map +1 -1
  82. package/dist/chunk-LLYY4TCZ.cjs.map +1 -1
  83. package/dist/chunk-LYIBTVK6.cjs.map +1 -1
  84. package/dist/chunk-M3HWE7KT.cjs.map +1 -1
  85. package/dist/chunk-M3SJHFT4.cjs.map +1 -1
  86. package/dist/chunk-MLG6NXI6.cjs.map +1 -1
  87. package/dist/chunk-MYAXAWBQ.cjs.map +1 -1
  88. package/dist/chunk-NFB3S2E6.cjs.map +1 -1
  89. package/dist/chunk-NULOAF7W.cjs.map +1 -1
  90. package/dist/chunk-NX36HDXE.cjs.map +1 -1
  91. package/dist/chunk-NYL3BNHR.cjs.map +1 -1
  92. package/dist/chunk-O4AYHLQX.cjs.map +1 -1
  93. package/dist/{chunk-YFRAI34Y.cjs → chunk-O53VOQK7.cjs} +67 -1
  94. package/dist/chunk-O53VOQK7.cjs.map +1 -0
  95. package/dist/chunk-OAEKP665.cjs.map +1 -1
  96. package/dist/chunk-ODPNVNYE.cjs.map +1 -1
  97. package/dist/chunk-OG2KJAYD.cjs.map +1 -1
  98. package/dist/chunk-OYZP6NF6.cjs.map +1 -1
  99. package/dist/chunk-P4UILJVU.cjs.map +1 -1
  100. package/dist/chunk-P7DYLUUI.cjs.map +1 -1
  101. package/dist/chunk-PKAE6AQT.cjs.map +1 -1
  102. package/dist/{chunk-F6LZ2YNM.js → chunk-Q5S7YKB3.js} +35 -1
  103. package/dist/chunk-Q5S7YKB3.js.map +1 -0
  104. package/dist/chunk-Q7M7DO7M.cjs.map +1 -1
  105. package/dist/chunk-QKUWFMZP.cjs.map +1 -1
  106. package/dist/chunk-QRSA72B3.cjs.map +1 -1
  107. package/dist/chunk-QYNRNDIY.cjs.map +1 -1
  108. package/dist/chunk-R4GA6BVP.cjs.map +1 -1
  109. package/dist/chunk-R5VYSZ3Q.cjs.map +1 -1
  110. package/dist/chunk-RHFUXHQN.cjs.map +1 -1
  111. package/dist/{chunk-CAMALM35.cjs → chunk-RHT27R27.cjs} +25 -1
  112. package/dist/chunk-RHT27R27.cjs.map +1 -0
  113. package/dist/chunk-RI42IDRR.cjs.map +1 -1
  114. package/dist/chunk-S77LQWYC.cjs.map +1 -1
  115. package/dist/chunk-S7SBNOGS.cjs.map +1 -1
  116. package/dist/{chunk-CQQW5JU7.js → chunk-SAXTZZQL.js} +2 -2
  117. package/dist/{chunk-OEREK6NU.js → chunk-TDCB2FQI.js} +67 -1
  118. package/dist/chunk-TDCB2FQI.js.map +1 -0
  119. package/dist/chunk-TMAJE5P2.cjs.map +1 -1
  120. package/dist/chunk-TNIJ6OSH.cjs.map +1 -1
  121. package/dist/chunk-U3JK7NBG.cjs.map +1 -1
  122. package/dist/chunk-UGSM7RJ2.cjs.map +1 -1
  123. package/dist/chunk-UKLZAOLW.cjs.map +1 -1
  124. package/dist/chunk-UTCXNBID.cjs.map +1 -1
  125. package/dist/chunk-V47G7P6L.cjs.map +1 -1
  126. package/dist/chunk-VH5A6SMU.cjs.map +1 -1
  127. package/dist/chunk-VHMH4QMY.cjs.map +1 -1
  128. package/dist/chunk-VYC7WUM5.cjs.map +1 -1
  129. package/dist/chunk-W457XUA6.cjs.map +1 -1
  130. package/dist/{chunk-DDXERBGG.js → chunk-W7KJTMAF.js} +12 -1
  131. package/dist/chunk-W7KJTMAF.js.map +1 -0
  132. package/dist/chunk-WHDI3TMP.cjs.map +1 -1
  133. package/dist/chunk-WITCPKNL.cjs.map +1 -1
  134. package/dist/chunk-WX6NP7UU.cjs.map +1 -1
  135. package/dist/chunk-XQLRIBVR.cjs.map +1 -1
  136. package/dist/chunk-Y7LSSRNJ.cjs.map +1 -1
  137. package/dist/chunk-YK3P5QNZ.cjs.map +1 -1
  138. package/dist/chunk-YW4DVKNT.cjs.map +1 -1
  139. package/dist/{chunk-PYNHK6AP.cjs → chunk-Z7AVB6VI.cjs} +12 -1
  140. package/dist/chunk-Z7AVB6VI.cjs.map +1 -0
  141. package/dist/chunk-ZGMIHHGL.cjs.map +1 -1
  142. package/dist/chunk-ZKPVUCQV.cjs.map +1 -1
  143. package/dist/chunk-ZUULK36E.cjs.map +1 -1
  144. package/dist/client.cjs +2 -2
  145. package/dist/client.cjs.map +1 -1
  146. package/dist/client.js +1 -1
  147. package/dist/core.cjs.map +1 -1
  148. package/dist/currencies.cjs.map +1 -1
  149. package/dist/enigmaCardForm.cjs.map +1 -1
  150. package/dist/error.cjs.map +1 -1
  151. package/dist/eventStream.cjs.map +1 -1
  152. package/dist/exportDownload.cjs.map +1 -1
  153. package/dist/feeProgram.cjs.map +1 -1
  154. package/dist/index.cjs +6 -6
  155. package/dist/index.cjs.map +1 -1
  156. package/dist/index.d.cts +1 -1
  157. package/dist/index.d.ts +1 -1
  158. package/dist/index.js +5 -5
  159. package/dist/internal/resources/admin.cjs.map +1 -1
  160. package/dist/internal/resources/admin.d.cts +1 -1
  161. package/dist/internal/resources/admin.d.ts +1 -1
  162. package/dist/internal/resources/adminBranding.cjs.map +1 -1
  163. package/dist/internal/resources/adminBranding.d.cts +1 -1
  164. package/dist/internal/resources/adminBranding.d.ts +1 -1
  165. package/dist/internal/resources/adminCheckoutDomains.cjs.map +1 -1
  166. package/dist/internal/resources/adminCheckoutDomains.d.cts +1 -1
  167. package/dist/internal/resources/adminCheckoutDomains.d.ts +1 -1
  168. package/dist/internal/resources/adminFeePlans.cjs.map +1 -1
  169. package/dist/internal/resources/adminFeePlans.d.cts +1 -1
  170. package/dist/internal/resources/adminFeePlans.d.ts +1 -1
  171. package/dist/internal/resources/adminFileScans.cjs.map +1 -1
  172. package/dist/internal/resources/adminFileScans.d.cts +1 -1
  173. package/dist/internal/resources/adminFileScans.d.ts +1 -1
  174. package/dist/internal/resources/adminIndustries.cjs.map +1 -1
  175. package/dist/internal/resources/adminIndustries.d.cts +1 -1
  176. package/dist/internal/resources/adminIndustries.d.ts +1 -1
  177. package/dist/internal/resources/adminLive.cjs.map +1 -1
  178. package/dist/internal/resources/adminNotices.cjs.map +1 -1
  179. package/dist/internal/resources/adminNotices.d.cts +1 -1
  180. package/dist/internal/resources/adminNotices.d.ts +1 -1
  181. package/dist/internal/resources/adminPortal.cjs.map +1 -1
  182. package/dist/internal/resources/adminPortal.d.cts +1 -1
  183. package/dist/internal/resources/adminPortal.d.ts +1 -1
  184. package/dist/internal/resources/adminPricing.cjs +2 -2
  185. package/dist/internal/resources/adminPricing.cjs.map +1 -1
  186. package/dist/internal/resources/adminPricing.d.cts +19 -1
  187. package/dist/internal/resources/adminPricing.d.ts +19 -1
  188. package/dist/internal/resources/adminPricing.js +1 -1
  189. package/dist/internal/resources/adminSupport.cjs.map +1 -1
  190. package/dist/internal/resources/adminSupport.d.cts +1 -1
  191. package/dist/internal/resources/adminSupport.d.ts +1 -1
  192. package/dist/internal/resources/auditLogs.cjs.map +1 -1
  193. package/dist/internal/resources/auditLogs.d.cts +1 -1
  194. package/dist/internal/resources/auditLogs.d.ts +1 -1
  195. package/dist/internal/resources/cache.cjs.map +1 -1
  196. package/dist/internal/resources/cardIssuers.cjs.map +1 -1
  197. package/dist/internal/resources/cardIssuers.d.cts +1 -1
  198. package/dist/internal/resources/cardIssuers.d.ts +1 -1
  199. package/dist/internal/resources/configs.cjs.map +1 -1
  200. package/dist/internal/resources/connectorRestrictionRules.cjs.map +1 -1
  201. package/dist/internal/resources/connectorRestrictionRules.d.cts +1 -1
  202. package/dist/internal/resources/connectorRestrictionRules.d.ts +1 -1
  203. package/dist/internal/resources/connectorRestrictions.cjs.map +1 -1
  204. package/dist/internal/resources/connectorRestrictions.d.cts +1 -1
  205. package/dist/internal/resources/connectorRestrictions.d.ts +1 -1
  206. package/dist/internal/resources/diagnostic.cjs.map +1 -1
  207. package/dist/internal/resources/diagnostic.d.cts +1 -1
  208. package/dist/internal/resources/diagnostic.d.ts +1 -1
  209. package/dist/internal/resources/gsm.cjs.map +1 -1
  210. package/dist/internal/resources/gsm.d.cts +1 -1
  211. package/dist/internal/resources/gsm.d.ts +1 -1
  212. package/dist/internal/resources/nativeRenewals.cjs.map +1 -1
  213. package/dist/internal/resources/nativeRenewals.d.cts +1 -1
  214. package/dist/internal/resources/nativeRenewals.d.ts +1 -1
  215. package/dist/internal/resources/platformBilling.cjs.map +1 -1
  216. package/dist/internal/resources/platformBilling.d.cts +1 -1
  217. package/dist/internal/resources/platformBilling.d.ts +1 -1
  218. package/dist/internal/resources/platformFees.cjs.map +1 -1
  219. package/dist/internal/resources/platformMessageTemplates.cjs.map +1 -1
  220. package/dist/internal/resources/platformSettings.cjs.map +1 -1
  221. package/dist/internal/resources/platformSettings.d.cts +1 -1
  222. package/dist/internal/resources/platformSettings.d.ts +1 -1
  223. package/dist/internal.cjs +9 -9
  224. package/dist/internal.cjs.map +1 -1
  225. package/dist/internal.d.cts +2 -2
  226. package/dist/internal.d.ts +2 -2
  227. package/dist/internal.js +6 -6
  228. package/dist/listQuery.cjs.map +1 -1
  229. package/dist/panes.cjs.map +1 -1
  230. package/dist/paymentPresentation.cjs.map +1 -1
  231. package/dist/recordCounter.cjs.map +1 -1
  232. package/dist/resources/aiTools.cjs.map +1 -1
  233. package/dist/resources/analytics.cjs.map +1 -1
  234. package/dist/resources/analyticsDashboard.cjs.map +1 -1
  235. package/dist/resources/apiKeys.cjs.map +1 -1
  236. package/dist/resources/audit.cjs.map +1 -1
  237. package/dist/resources/authentication.cjs.map +1 -1
  238. package/dist/resources/availabilityOverrides.cjs.map +1 -1
  239. package/dist/resources/billing.cjs.map +1 -1
  240. package/dist/resources/buyerAccount.cjs.map +1 -1
  241. package/dist/resources/buyerBlocklist.cjs.map +1 -1
  242. package/dist/resources/buyerConversations.cjs.map +1 -1
  243. package/dist/resources/buyerEvidenceReviews.cjs.map +1 -1
  244. package/dist/resources/buyerPortal.cjs +2 -2
  245. package/dist/resources/buyerPortal.cjs.map +1 -1
  246. package/dist/resources/buyerPortal.d.cts +7 -1
  247. package/dist/resources/buyerPortal.d.ts +7 -1
  248. package/dist/resources/buyerPortal.js +1 -1
  249. package/dist/resources/cards.cjs.map +1 -1
  250. package/dist/resources/chargebackPrevention.cjs.map +1 -1
  251. package/dist/resources/checkoutDomains.cjs.map +1 -1
  252. package/dist/resources/checkoutMethods.cjs.map +1 -1
  253. package/dist/resources/checkoutRecovery.cjs.map +1 -1
  254. package/dist/resources/checkoutTemplates.cjs.map +1 -1
  255. package/dist/resources/connectors.cjs.map +1 -1
  256. package/dist/resources/contentEncryption.cjs.map +1 -1
  257. package/dist/resources/costRules.cjs.map +1 -1
  258. package/dist/resources/customers.cjs.map +1 -1
  259. package/dist/resources/deploymentBranding.cjs.map +1 -1
  260. package/dist/resources/disputes.cjs.map +1 -1
  261. package/dist/resources/ephemeralKeys.cjs.map +1 -1
  262. package/dist/resources/events.cjs.map +1 -1
  263. package/dist/resources/export.cjs.map +1 -1
  264. package/dist/resources/externalRecords.cjs.map +1 -1
  265. package/dist/resources/featureMatrix.cjs.map +1 -1
  266. package/dist/resources/fees.cjs.map +1 -1
  267. package/dist/resources/files.cjs.map +1 -1
  268. package/dist/resources/forex.cjs.map +1 -1
  269. package/dist/resources/identityVerifications.cjs.map +1 -1
  270. package/dist/resources/industries.cjs.map +1 -1
  271. package/dist/resources/invoiceSettings.cjs.map +1 -1
  272. package/dist/resources/invoices.cjs.map +1 -1
  273. package/dist/resources/live.cjs.map +1 -1
  274. package/dist/resources/mandates.cjs.map +1 -1
  275. package/dist/resources/merchantAccounts.cjs.map +1 -1
  276. package/dist/resources/messageTemplates.cjs.map +1 -1
  277. package/dist/resources/notices.cjs.map +1 -1
  278. package/dist/resources/operationLimits.cjs.map +1 -1
  279. package/dist/resources/paymentLinks.cjs.map +1 -1
  280. package/dist/resources/paymentMethods.cjs.map +1 -1
  281. package/dist/resources/payments.cjs.map +1 -1
  282. package/dist/resources/payoutDestinations.cjs.map +1 -1
  283. package/dist/resources/payouts.cjs.map +1 -1
  284. package/dist/resources/paypalDisputes.cjs.map +1 -1
  285. package/dist/resources/persons.cjs.map +1 -1
  286. package/dist/resources/poll.cjs.map +1 -1
  287. package/dist/resources/processorCosts.cjs.map +1 -1
  288. package/dist/resources/processorImports.cjs.map +1 -1
  289. package/dist/resources/products.cjs.map +1 -1
  290. package/dist/resources/profileAcquirers.cjs.map +1 -1
  291. package/dist/resources/profiles.cjs.map +1 -1
  292. package/dist/resources/projects.cjs.map +1 -1
  293. package/dist/resources/refunds.cjs.map +1 -1
  294. package/dist/resources/regions.cjs.map +1 -1
  295. package/dist/resources/relay.cjs.map +1 -1
  296. package/dist/resources/risk.cjs.map +1 -1
  297. package/dist/resources/routing.cjs.map +1 -1
  298. package/dist/resources/search.cjs.map +1 -1
  299. package/dist/resources/sellToRestrictions.cjs.map +1 -1
  300. package/dist/resources/settings.cjs.map +1 -1
  301. package/dist/resources/settlement.cjs.map +1 -1
  302. package/dist/resources/shareLinks.cjs.map +1 -1
  303. package/dist/resources/shopLabels.cjs.map +1 -1
  304. package/dist/resources/shopify.cjs +2 -2
  305. package/dist/resources/shopify.cjs.map +1 -1
  306. package/dist/resources/shopify.d.cts +41 -4
  307. package/dist/resources/shopify.d.ts +41 -4
  308. package/dist/resources/shopify.js +1 -1
  309. package/dist/resources/shops.cjs.map +1 -1
  310. package/dist/resources/stripeConnect.cjs.map +1 -1
  311. package/dist/resources/subscriptions.cjs +2 -2
  312. package/dist/resources/subscriptions.cjs.map +1 -1
  313. package/dist/resources/subscriptions.d.cts +6 -1
  314. package/dist/resources/subscriptions.d.ts +6 -1
  315. package/dist/resources/subscriptions.js +1 -1
  316. package/dist/resources/support.cjs.map +1 -1
  317. package/dist/resources/threeDsRules.cjs.map +1 -1
  318. package/dist/resources/users.cjs.map +1 -1
  319. package/dist/resources/vatRates.cjs.map +1 -1
  320. package/dist/resources/verification.cjs.map +1 -1
  321. package/dist/resources/webhooks.cjs.map +1 -1
  322. package/dist/resources/whopResolutionCases.cjs.map +1 -1
  323. package/dist/trustedOrigins.cjs.map +1 -1
  324. package/dist/{types-D_Y2A9ny.d.cts → types-FHqOLCyI.d.cts} +181 -1
  325. package/dist/{types-BxgOWS55.d.ts → types-SEJjet2B.d.ts} +181 -1
  326. package/dist/types.cjs.map +1 -1
  327. package/dist/types.d.cts +282 -6
  328. package/dist/types.d.ts +282 -6
  329. package/package.json +1 -1
  330. package/dist/chunk-2NVGA4G5.cjs.map +0 -1
  331. package/dist/chunk-CAMALM35.cjs.map +0 -1
  332. package/dist/chunk-DDXERBGG.js.map +0 -1
  333. package/dist/chunk-F6LZ2YNM.js.map +0 -1
  334. package/dist/chunk-I5KOMBQ3.js.map +0 -1
  335. package/dist/chunk-K3XXGAOR.cjs.map +0 -1
  336. package/dist/chunk-OEREK6NU.js.map +0 -1
  337. package/dist/chunk-PYNHK6AP.cjs.map +0 -1
  338. package/dist/chunk-YFRAI34Y.cjs.map +0 -1
  339. package/dist/chunk-ZMJT2YPZ.cjs.map +0 -1
  340. /package/dist/{chunk-7H2VFIPS.js.map → chunk-IPN7D5PP.js.map} +0 -0
  341. /package/dist/{chunk-CQQW5JU7.js.map → chunk-SAXTZZQL.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/sdk-pub-04970/dist/chunk-5QS67SBO.cjs","../src/resources/connectors.ts"],"names":[],"mappings":"AAAA;ACkEO,IAAM,WAAA,EAAN,MAAiB;AAAA,EACtB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYlD,MAAM,4BAAA,CACJ,UAAA,EACA,WAAA,EACA,MAAA,EACqC;AACrC,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,MACV,KAAA;AAAA,MACA,CAAA,SAAA,EAAY,kBAAA,CAAmB,UAAU,CAAC,CAAA,YAAA,EAAe,kBAAA,CAAmB,WAAW,CAAC,CAAA,uBAAA,CAAA;AAAA,MACxF,EAAE,KAAA,EAAO,EAAE,SAAA,EAAW,MAAA,CAAO,UAAU,EAAE;AAAA,IAC3C,CAAA;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBA,MAAM,0BAAA,CACJ,UAAA,EACA,WAAA,EACA,MAAA,EACqC;AACrC,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,MACV,KAAA;AAAA,MACA,CAAA,SAAA,EAAY,kBAAA,CAAmB,UAAU,CAAC,CAAA,YAAA,EAAe,kBAAA,CAAmB,WAAW,CAAC,CAAA,uBAAA,CAAA;AAAA,MACxF,EAAE,IAAA,EAAM,OAAO;AAAA,IACjB,CAAA;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CAAO,SAAA,EAAmB,MAAA,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A;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AAeE,IAAA;AAA2F,EAAA;AAC7F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AAeE,IAAA;AAAY,MAAA;AACV,MAAA;AACiF,MAAA;AAClE,IAAA;AACjB,EAAA;AACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AAgBE,IAAA;AAAY,MAAA;AACV,MAAA;AACiF,MAAA;AAClE,IAAA;AACjB,EAAA;AACF;AAAA;AAAA;AAAA;AAAA,EAAA;AAWE,IAAA;AAAuF,MAAA;AAChE,IAAA;AACtB,EAAA;AACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AAgBE,IAAA;AAAwF,MAAA;AAChF,IAAA;AACP,EAAA;AACH;AAAA,EAAA;AAIE,IAAA;AAAqD,EAAA;AAEzD;AAEA;AACE,EAAA;AACF;ADhRA;AACA;AACA;AACA","file":"/tmp/sdk-pub-04970/dist/chunk-5QS67SBO.cjs","sourcesContent":[null,"import type {\n ApplePayRegistrationList,\n ApplePayRegistrationMarkRequest,\n ApplePayRegistrationRetryRequest,\n ConnectorBuyerMailQuery,\n ConnectorBuyerMailResponse,\n ConnectorBuyerMailUpdate,\n ConnectorCloneRequest,\n ConnectorConsolidationRequest,\n ConnectorConsolidationResponse,\n ConnectorCurrencyPolicyResponse,\n ConnectorCurrencyPolicyUpdateRequest,\n ConnectorShopsAddRequest,\n ConnectorShopUpdateRequest,\n ConnectorShopsResponse,\n ConnectorHealthResponse,\n EpayoutsCatalogResponse,\n PanesCatalogResponse,\n VaultRoutesApplyRequest,\n VaultRoutesApplyResponse,\n VaultRoutesPreviewRequest,\n VaultRoutesPreviewResponse,\n VaultOutagesResponse,\n VaultOutageGroupActionResponse,\n VaultOutageGroupActionsListResponse,\n VaultOutageGroupCheckRecoveryResponse,\n VaultOutageGroupRestoreRequest,\n VaultOutageGroupRestoreResponse,\n VaultOutageGroupSwitchOffPreviewRequest,\n VaultOutageGroupSwitchOffPreviewResponse,\n VaultOutageGroupSwitchOffRequest,\n VaultVerificationResponse,\n VaultVerifyRequest,\n ConnectorCreateRequest,\n ConnectorResponse,\n ConnectorUpdateRequest,\n ConnectorWebhookListResponse,\n ConnectorWebhookRegisterRequest,\n ConnectorWebhookRegisterResponse,\n ConnectorWebhookSyncResponse,\n WebhookAddressPreviewResponse,\n WebhookAddressRequest,\n WebhookAddressResponse,\n ReturnAddressPreviewResponse,\n ReturnAddressRequest,\n ReturnAddressResponse,\n ProviderWebhookCreateRequest,\n ProviderWebhookCreateResponse,\n ProviderWebhookDeleteRequest,\n ProviderWebhookDeleteResult,\n ProviderWebhookEndpoint,\n ProviderWebhookListResponse,\n ProviderWebhookReplacePreviewResponse,\n ProviderWebhookReplaceRequest,\n ProviderWebhookReplaceResponse,\n ProviderWebhookUpdateRequest,\n WebhookRegistrationEnvironment,\n AirwallexApplePayDomainsRegisterRequest,\n AirwallexApplePayDomainsRegisterResponse,\n StripePaymentMethodDomainsRegisterRequest,\n StripePaymentMethodDomainsRegisterResponse,\n WhopApplePayDomainsRegisterRequest,\n WhopApplePayDomainsRegisterResponse,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\nexport class Connectors {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Read the connected provider account's optional buyer-email preference.\n * Currently supported for Whop. Use `setJwtToken` with a merchant JWT that\n * has Connector Edit authority; a shop token or API key cannot substitute.\n * Select Sandbox or Live explicitly through `test_mode`.\n *\n * The preference affects every shop sharing the provider account. It does\n * not disable mandatory provider messages or DeloPay invoice delivery.\n * A null or absent value establishes no on/off preference.\n */\n async retrieveBuyerEmailPreference(\n merchantId: string,\n connectorId: string,\n params: ConnectorBuyerMailQuery,\n ): Promise<ConnectorBuyerMailResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/buyer-email-preference`,\n { query: { test_mode: params.test_mode } },\n );\n }\n\n /**\n * Change the optional buyer-email preference for the whole provider account.\n * Currently supported for Whop. Requires a merchant JWT with Connector Edit\n * authority and explicit confirmation for every shop sharing the account.\n * Send the exact account, credential mode and value read before confirmation;\n * a changed account or preference is refused before mutation.\n *\n * Inspect `outcome`: only `verified` confirms the requested value through a\n * fresh exact-account read. HTTP 200 may instead report a conflict, refusal\n * or unknown outcome. An uncertain change may have happened; read the\n * preference again before retrying, including after a transport error.\n * This method adds no automatic readback or retry. Mandatory provider\n * messages and DeloPay invoice delivery are unaffected.\n */\n async updateBuyerEmailPreference(\n merchantId: string,\n connectorId: string,\n params: ConnectorBuyerMailUpdate,\n ): Promise<ConnectorBuyerMailResponse> {\n return this.request(\n 'PUT',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/buyer-email-preference`,\n { body: params },\n );\n }\n\n async create(accountId: string, params: ConnectorCreateRequest): Promise<ConnectorResponse> {\n return this.request('POST', `/account/${encodeURIComponent(accountId)}/connectors`, {\n body: params,\n });\n }\n\n /**\n * One connector account.\n *\n * The credential-bearing fields come back `null` here, whatever is stored:\n * `connector_webhook_details`, `connector_wallets_details`,\n * `pm_auth_config` and `additional_merchant_data`. They are dropped rather\n * than masked, because an editor that prefills from this response and\n * PATCHes the field back would otherwise save a mask over a live signing\n * secret. Send those fields only when the operator has typed a new value,\n * and omit them entirely otherwise — an omitted field leaves the stored one\n * alone.\n *\n * This is the retrieve path alone. `create` and `update` echo back what the\n * caller sent, and `clone` returns the *copied* secrets — see that method.\n *\n * Because the value is gone, `has_live_webhook_secret` and\n * `has_sandbox_webhook_secret` are what tell a stored webhook signing secret\n * from an unconfigured one. Render those; never infer configuration from the\n * `null` block.\n *\n * `GET /account/{accountId}/connectors/{connectorId}`\n */\n async retrieve(accountId: string, connectorId: string): Promise<ConnectorResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}`,\n );\n }\n\n /**\n * The merchant's connector accounts.\n *\n * Never wider than the caller: an API key pinned to one shop lists that\n * shop's connectors only, not every sibling shop's.\n *\n * `GET /account/{accountId}/connectors`\n */\n async list(accountId: string): Promise<ConnectorResponse[]> {\n return this.request('GET', `/account/${encodeURIComponent(accountId)}/connectors`);\n }\n\n /**\n * The profile-scoped connector list. The merchant-wide `list()` is\n * merchant-gated and 403s for a profile-entity (shop user) JWT; this\n * variant is scoped server-side to the caller's own profile.\n *\n * `GET /account/{accountId}/profile/connectors`\n */\n async listByProfile(accountId: string): Promise<ConnectorResponse[]> {\n return this.request('GET', `/account/${encodeURIComponent(accountId)}/profile/connectors`);\n }\n\n /**\n * Every connector's pane capabilities, as the router itself knows them —\n * which rails a connector supports, and which methods it can publish as a\n * pane with the confirm routing keys each one carries.\n *\n * Capability facts only: no label, sublabel or category comes back. A\n * designer renders a method's copy from its own locale files, keyed by\n * `key`, and takes `payment_method` / `payment_method_type` from here\n * verbatim rather than deriving them client-side.\n *\n * This is what the pane helpers in `src/panes.ts` should be driven from —\n * `paneMethodInfo`, `defaultPane` and `validatePanes` all take a\n * {@link PanesConnectorCatalog} out of this response, so a connector the\n * router starts publishing panes for needs no SDK release.\n *\n * `GET /account/{accountId}/connectors/native-panes/catalog`\n *\n * The path keeps the `native-panes` spelling deliberately. The identifiers\n * were renamed off \"native pane\"; the route was not, and pointing at the\n * backend's new name before it is deployed everywhere would both 404 against\n * un-upgraded replicas mid-rollout and fail `scripts/parity-check.mjs`,\n * which blocks publishing.\n */\n async getPanesCatalog(accountId: string): Promise<PanesCatalogResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(accountId)}/connectors/native-panes/catalog`,\n );\n }\n\n /** @deprecated Renamed to {@link getPanesCatalog}. Removed in 0.112.0. */\n async getNativePanesCatalog(accountId: string): Promise<PanesCatalogResponse> {\n return this.getPanesCatalog(accountId);\n }\n\n /**\n * Sweep the merchant's own e-Payouts module and return the rails it\n * actually has enabled. Server-side this makes many upstream calls, so it\n * can take several seconds — show progress.\n *\n * `POST /account/{accountId}/connectors/{connectorId}/epayouts/catalog/sync`\n */\n async syncEpayoutsCatalog(\n accountId: string,\n connectorId: string,\n ): Promise<EpayoutsCatalogResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/epayouts/catalog/sync`,\n );\n }\n\n /**\n * Update a connector account.\n *\n * `connector_webhook_details` **merges** into the stored block key by key:\n * an absent key keeps its stored secret, an explicit value is written, and\n * an explicit empty string clears that secret. Send only the\n * keys the operator typed — padding the other environment's keys with `''`\n * clears a live signing secret and inbound webhooks stop verifying.\n *\n * The other credential-bearing fields — `connector_wallets_details`,\n * `pm_auth_config`, `additional_merchant_data` — are still whole-value\n * replacements: omit them unless you are writing a complete new value.\n *\n * `POST /account/{accountId}/connectors/{connectorId}`\n */\n async update(\n accountId: string,\n connectorId: string,\n params: ConnectorUpdateRequest,\n options?: RequestExtras,\n ): Promise<ConnectorResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}`,\n {\n body: params,\n ...options,\n },\n );\n }\n\n /**\n * Remove a connector account.\n *\n * A shop-scoped role may remove a connector of its own shop — the shop is\n * re-checked server-side — so creating processors and removing them are the\n * same rung of access rather than two.\n *\n * `DELETE /account/{accountId}/connectors/{connectorId}`\n */\n async delete(accountId: string, connectorId: string): Promise<ConnectorResponse> {\n return this.request(\n 'DELETE',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}`,\n );\n }\n\n /**\n * Clone a connector into another shop (business profile) of the same\n * merchant. `POST /account/{accountId}/connectors/{connectorId}/clone`\n *\n * Credentials are copied server-side, re-encrypted under the same merchant\n * key, so the caller never has to *supply* them — `retrieve` returns `null`\n * for the credential fields, which is what makes a client-side copy\n * impossible in the first place.\n *\n * The response, however, is the unredacted connector: `connector_account_details`\n * is masked, but `connector_webhook_details`, `connector_wallets_details`,\n * `pm_auth_config` and `additional_merchant_data` come back with the copied\n * secrets in them — values this caller never sent. Do not log or echo the\n * response; read `merchant_connector_id` and discard the rest.\n */\n async clone(\n accountId: string,\n connectorId: string,\n params: ConnectorCloneRequest,\n ): Promise<ConnectorResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/clone`,\n { body: params },\n );\n }\n\n /**\n * Share a connector with more shops of the same merchant.\n * `POST /account/{accountId}/connectors/{connectorId}/shops`\n *\n * Nothing is copied: every shop sends payments to the same account, on the\n * same credentials and webhook, and the account's limits count them all.\n */\n async addShops(\n accountId: string,\n connectorId: string,\n params: ConnectorShopsAddRequest,\n ): Promise<ConnectorShopsResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/shops`,\n { body: params },\n );\n }\n\n /**\n * Fold copies of the same provider account into this connector.\n * `POST /account/{accountId}/connectors/{connectorId}/consolidate`\n *\n * The copies' shops move to the connector with their on/off state, routing,\n * checkout layout, currencies, saved credentials, mandates and\n * subscriptions. A copy keeps answering for the payments made on it and\n * serves no shop. Send `dry_run: true` first, then confirm with the\n * preview's `preview_token` and a choice for every conflict.\n */\n async consolidate(\n accountId: string,\n connectorId: string,\n params: ConnectorConsolidationRequest,\n ): Promise<ConnectorConsolidationResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/consolidate`,\n { body: params },\n );\n }\n\n /**\n * Switch a connector off, or back on, in one shop it serves.\n * `POST /account/{accountId}/connectors/{connectorId}/shops/{profileId}`\n */\n async setShopDisabled(\n accountId: string,\n connectorId: string,\n profileId: string,\n params: ConnectorShopUpdateRequest,\n ): Promise<ConnectorShopsResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/shops/${encodeURIComponent(profileId)}`,\n { body: params },\n );\n }\n\n /**\n * Stop a connector serving one shop. Any shop may leave, the\n * one the connector was created in included, while another one stays: the\n * last shop is refused, and the connector is deleted instead. The account,\n * its limits and every other shop on it are unaffected.\n * `DELETE /account/{accountId}/connectors/{connectorId}/shops/{profileId}`\n */\n async removeShop(\n accountId: string,\n connectorId: string,\n profileId: string,\n ): Promise<ConnectorShopsResponse> {\n return this.request(\n 'DELETE',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/shops/${encodeURIComponent(profileId)}`,\n );\n }\n\n /**\n * Read the transaction currencies a connector may process: its own list,\n * what the provider is known to accept with its methods, and the effective\n * currencies in each shop it serves.\n * `GET /account/{accountId}/connectors/{connectorId}/currencies`\n */\n async getCurrencies(\n accountId: string,\n connectorId: string,\n ): Promise<ConnectorCurrencyPolicyResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/currencies`,\n );\n }\n\n /**\n * Set the transaction currencies a connector may process in every shop it\n * serves, and what it does with a payment in a currency it does not take\n * (`conversion`). `allowed_currencies: null` allows every currency the\n * provider supports; a field left out stays as it is. With `dry_run`,\n * nothing is saved and `impact` reports the effect.\n * `PUT /account/{accountId}/connectors/{connectorId}/currencies`\n */\n async setCurrencies(\n accountId: string,\n connectorId: string,\n params: ConnectorCurrencyPolicyUpdateRequest,\n ): Promise<ConnectorCurrencyPolicyResponse> {\n return this.request(\n 'PUT',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/currencies`,\n { body: params },\n );\n }\n\n /**\n * Narrow a connector's currencies in one shop it serves, within the\n * connector's own list, or set the shop's own `conversion`. `null` returns\n * the shop to the connector's setting; a field left out stays as it is.\n * `PUT /account/{accountId}/connectors/{connectorId}/shops/{profileId}/currencies`\n */\n async setShopCurrencies(\n accountId: string,\n connectorId: string,\n profileId: string,\n params: ConnectorCurrencyPolicyUpdateRequest,\n ): Promise<ConnectorCurrencyPolicyResponse> {\n return this.request(\n 'PUT',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/shops/${encodeURIComponent(profileId)}/currencies`,\n { body: params },\n );\n }\n\n // --- Advanced operations (Task 4.8) ---\n\n /**\n * Run the configuration checks for a vault (VGS) connector account:\n * credential validity, write-only Collect scope, reachability, environment\n * coherence, route coverage. Read-only but not cheap — it decrypts the\n * vault's management credential and talks to VGS.\n *\n * `POST /account/{accountId}/connectors/{connectorId}/vault/verify`\n */\n async verifyVault(\n accountId: string,\n connectorId: string,\n params: VaultVerifyRequest,\n ): Promise<VaultVerificationResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/vault/verify`,\n { body: params },\n );\n }\n\n /**\n * The shops whose card vault is switched on and whose vault account has\n * stopped working, each with the cause. While a shop is listed, its card\n * form cannot be shown and its card payments fail.\n *\n * An outage is listed once the vault has refused the account several times\n * in a row over at least a minute, and is taken off the list when the vault\n * serves the account again. Nothing switches a vault off by itself: see\n * `profiles.switchVaultOff`.\n *\n * `GET /account/{accountId}/vault/outages`\n */\n async listVaultOutages(accountId: string): Promise<VaultOutagesResponse> {\n return this.request('GET', `/account/${encodeURIComponent(accountId)}/vault/outages`);\n }\n\n /**\n * Preview switching off a failing vault provider across all affected shops\n * of an account. Returns `eligible: true` only when the caller has full\n * access to every affected shop and vault account of that provider.\n *\n * `POST /account/{accountId}/vault/outages/group-switch-off/preview`\n */\n async previewVaultOutageGroupSwitchOff(\n accountId: string,\n params: VaultOutageGroupSwitchOffPreviewRequest,\n ): Promise<VaultOutageGroupSwitchOffPreviewResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/vault/outages/group-switch-off/preview`,\n { body: params },\n );\n }\n\n /**\n * Switch off a failing vault provider across all affected shops returned by\n * {@link Connectors.previewVaultOutageGroupSwitchOff} in one atomic step.\n * Refused when the affected shop set changed since the preview.\n *\n * `POST /account/{accountId}/vault/outages/group-switch-off`\n */\n async executeVaultOutageGroupSwitchOff(\n accountId: string,\n params: VaultOutageGroupSwitchOffRequest,\n ): Promise<VaultOutageGroupActionResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/vault/outages/group-switch-off`,\n { body: params },\n );\n }\n\n /**\n * List active, recovered, and historical vault outage group actions for an\n * account, each hydrated with per-shop live states filtered to the caller's\n * shop and connector grants.\n *\n * `GET /account/{accountId}/vault/outages/group-actions`\n */\n async listVaultOutageGroupActions(\n accountId: string,\n ): Promise<VaultOutageGroupActionsListResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(accountId)}/vault/outages/group-actions`,\n );\n }\n\n /**\n * Probe the live credential slot of every still-switched-off vault account\n * in a group action and transition it to `recovered` when all answer healthy.\n *\n * `POST /account/{accountId}/vault/outages/group-actions/{actionId}/check-recovery`\n */\n async checkVaultOutageGroupRecovery(\n accountId: string,\n actionId: string,\n ): Promise<VaultOutageGroupCheckRecoveryResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/vault/outages/group-actions/${encodeURIComponent(actionId)}/check-recovery`,\n );\n }\n\n /**\n * Restore or undo a vault outage group action after verifying each remaining\n * vault account works again, skipping shops that were already manually\n * re-enabled or changed to another vault.\n *\n * `POST /account/{accountId}/vault/outages/group-actions/{actionId}/restore`\n */\n async restoreVaultOutageGroupAction(\n accountId: string,\n actionId: string,\n params: VaultOutageGroupRestoreRequest = {},\n ): Promise<VaultOutageGroupRestoreResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/vault/outages/group-actions/${encodeURIComponent(actionId)}/restore`,\n { body: params },\n );\n }\n\n /**\n * Compute the route document the vault SHOULD have and diff it against\n * what exists, without writing anything. The returned fingerprints must be\n * echoed byte for byte on {@link Connectors.applyVaultRoutes}.\n *\n * A router without these endpoints answers 404 — render that as \"this\n * build cannot configure routes\", never as \"there is nothing to change\".\n *\n * `POST /account/{accountId}/connectors/{connectorId}/vault/routes/preview`\n */\n async previewVaultRoutes(\n accountId: string,\n connectorId: string,\n params: VaultRoutesPreviewRequest,\n ): Promise<VaultRoutesPreviewResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/vault/routes/preview`,\n { body: params },\n );\n }\n\n /**\n * Write the routes the merchant just previewed. Both fingerprints come\n * from the preview and are opaque: `expected_current_fingerprint` says the\n * vault has not moved (`null` = \"the preview found no routes\" and is sent\n * as `null`, never omitted), `expected_desired_fingerprint` says the\n * document is still the one on screen. A 409 (`DE_04`) means the vault\n * changed since the preview — nothing was written; preview again.\n *\n * `POST /account/{accountId}/connectors/{connectorId}/vault/routes/apply`\n */\n async applyVaultRoutes(\n accountId: string,\n connectorId: string,\n params: VaultRoutesApplyRequest,\n ): Promise<VaultRoutesApplyResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/vault/routes/apply`,\n { body: params },\n );\n }\n\n /**\n * What the processor says about this connector account: whether it will\n * accept charges, which capabilities are live, and anything it is still\n * waiting on.\n *\n * This is **not** {@link Connectors.verify}. That one asks whether the stored\n * credentials work, by running a test-card authorization; a processor can\n * revoke an account's ability to take payments while the credentials stay\n * perfectly valid, and then a credential check reports healthy while every\n * checkout silently stalls. This asks the account's own status instead, and\n * does not create a payment. By default it reads a scheduler snapshot;\n * `refresh: true` asks for a new probe and `stale` identifies an overdue result.\n * `test_mode` selects the requested environment; `credential_source` identifies\n * a sandbox, live or shared credential set. Not every provider reports chargeability.\n *\n * Connectors with no probe answer `state: 'unknown'` with\n * `unknown_reason: 'connector_not_supported'`, rather than an error — every\n * `'unknown'` carries a reason code you render your own words for. A router\n * without this endpoint answers 404 — render that as \"this build cannot\n * report health\", never as \"healthy\".\n *\n * `GET /account/{accountId}/connectors/{connectorId}/health`\n */\n async health(\n accountId: string,\n connectorId: string,\n options?: { test_mode?: boolean; refresh?: boolean },\n ): Promise<ConnectorHealthResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/health`,\n { query: options },\n );\n }\n\n /** Verify connector credentials. `POST /account/connectors/verify` */\n async verify(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/account/connectors/verify', { body: params });\n }\n\n /**\n * Register a webhook for a connector.\n * `POST /account/{merchantId}/connectors/webhooks/{connectorId}`\n *\n * @param params - Optional event scope. Defaults to `{ event_type: 'all_events' }`\n * when omitted; pass `{ event_type: { specific_event: '…' } }` to scope\n * to a single event.\n */\n async registerWebhook(\n merchantId: string,\n connectorId: string,\n params?: ConnectorWebhookRegisterRequest,\n ): Promise<ConnectorWebhookRegisterResponse> {\n const path = `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}`;\n if (params === undefined) return this.request('POST', path);\n return this.request('POST', path, { body: params });\n }\n\n /**\n * Register checkout/shop domains as Stripe payment method domains, so Apple\n * Pay renders on those pages.\n * `POST /account/{merchantId}/connectors/{connectorId}/stripe/payment-method-domains`\n *\n * Stripe connectors only. One call registers against a single credential set\n * (`environment`, default `'live'`) — call twice to cover live and sandbox.\n * Per-URL outcomes come back in `results`; a missing sandbox credential set\n * is a request-level 400.\n */\n async registerStripePaymentMethodDomains(\n merchantId: string,\n connectorId: string,\n params: StripePaymentMethodDomainsRegisterRequest,\n ): Promise<StripePaymentMethodDomainsRegisterResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/stripe/payment-method-domains`,\n { body: params },\n );\n }\n\n /**\n * Register checkout/shop domains as Airwallex Apple Pay domains, so Apple Pay\n * renders on those pages.\n * `POST /account/{merchantId}/connectors/{connectorId}/airwallex/apple-pay-domains`\n *\n * Airwallex connectors only. One call registers against a single credential\n * set (`environment`, default `'live'`) — call twice to cover live and\n * sandbox. Idempotent: a host already on the account comes back\n * `already_registered` without a write.\n */\n async registerAirwallexApplePayDomains(\n merchantId: string,\n connectorId: string,\n params: AirwallexApplePayDomainsRegisterRequest,\n ): Promise<AirwallexApplePayDomainsRegisterResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/airwallex/apple-pay-domains`,\n { body: params },\n );\n }\n\n /**\n * Register and verify checkout/shop domains as Whop Apple Pay payment method\n * domains, so Apple Pay renders in Whop's embedded card form on those pages.\n * `POST /account/{merchantId}/connectors/{connectorId}/whop/apple-pay-domains`\n *\n * Whop connectors only. One call registers against a single credential set\n * (`environment`, default `'live'`) — call twice to cover live and sandbox.\n * Idempotent: a host Whop already holds as verified comes back\n * `already_verified` without a write, and a `pending` one is verified again.\n */\n async registerWhopApplePayDomains(\n merchantId: string,\n connectorId: string,\n params: WhopApplePayDomainsRegisterRequest,\n ): Promise<WhopApplePayDomainsRegisterResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/whop/apple-pay-domains`,\n { body: params },\n );\n }\n\n /**\n * The account's Apple Pay registration on every checkout address, per key\n * set: `registered`, `failed` (with why), `skipped` (the address serves\n * another processor's file), `pending` (the address is not ready yet),\n * `not_attempted`, or for PayPal `manual_pending` / `manual_done`.\n * `GET /account/{merchantId}/connectors/{connectorId}/apple-pay-registrations`\n */\n async applePayRegistrations(\n merchantId: string,\n connectorId: string,\n ): Promise<ApplePayRegistrationList> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/apple-pay-registrations`,\n );\n }\n\n /**\n * Register the account on every ready checkout address whose Apple Pay file\n * serves its processor again, for one key set or both. Answers the list as\n * it stands afterwards.\n * `POST /account/{merchantId}/connectors/{connectorId}/apple-pay-registrations/retry`\n */\n async retryApplePayRegistrations(\n merchantId: string,\n connectorId: string,\n params: ApplePayRegistrationRetryRequest = {},\n ): Promise<ApplePayRegistrationList> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/apple-pay-registrations/retry`,\n { body: params },\n );\n }\n\n /**\n * Mark a checkout address registered (or not) for one key set, for a\n * processor without a registration API (PayPal). A reminder for the team:\n * nothing is checked with the processor. Refused for other processors.\n * `PUT /account/{merchantId}/connectors/{connectorId}/apple-pay-registrations/{hostId}/mark`\n */\n async markApplePayRegistration(\n merchantId: string,\n connectorId: string,\n hostId: string,\n params: ApplePayRegistrationMarkRequest,\n ): Promise<ApplePayRegistrationList> {\n return this.request(\n 'PUT',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/apple-pay-registrations/${encodeURIComponent(hostId)}/mark`,\n { body: params },\n );\n }\n\n /** Get registered webhooks for a connector. `GET /account/{merchantId}/connectors/webhooks/{connectorId}` */\n async getWebhook(merchantId: string, connectorId: string): Promise<ConnectorWebhookListResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}`,\n );\n }\n\n /**\n * Bring an already-registered webhook's event subscription up to date with\n * the events Delopay handles.\n * `POST /account/{merchantId}/connectors/webhooks/{connectorId}/sync-events`\n *\n * A PSP freezes an endpoint's event list at registration time, so an endpoint\n * created before an event type was added never receives it — silently, with\n * no error anywhere. {@link getWebhook} reports the gap as `missing_events`;\n * this repairs it.\n *\n * Unlike re-registering, the endpoints are updated in place: the endpoint id\n * and its signing secret are preserved, so signature verification keeps\n * working across the change. Stripe connectors only; idempotent, so it is\n * safe to call on a schedule or after every deploy.\n *\n * @example\n * ```typescript\n * const sync = await delopay.connectors.syncWebhookEvents('mer_abc', 'mca_xyz');\n * for (const endpoint of sync.endpoints) {\n * if (endpoint.error_message) console.warn(endpoint.connector_webhook_id, endpoint.error_message);\n * else if (endpoint.updated) console.log('subscribed', endpoint.added_events);\n * }\n * ```\n */\n async syncWebhookEvents(\n merchantId: string,\n connectorId: string,\n ): Promise<ConnectorWebhookSyncResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}/sync-events`,\n );\n }\n\n /**\n * Read the callback addresses of a connector's payment provider.\n * `GET /account/{merchantId}/connectors/webhooks/{connectorId}/address`\n *\n * One entry per environment: the saved mode and identifier, and for every\n * credential group the URL the policy asks for (`desired_url`) beside the URL\n * actually registered at the provider (`registered_url`) with its `status`.\n * Only `registered` means the provider delivers to the desired URL.\n *\n * Available for providers whose webhooks Delopay manages (Stripe, PayPal,\n * Airwallex, Whop) and for hand-configured ones (Creem, NomuPay,\n * MicroPayment). Other connectors are refused with a 400.\n */\n async getWebhookAddress(\n merchantId: string,\n connectorId: string,\n ): Promise<WebhookAddressResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}/address`,\n );\n }\n\n /**\n * Validate a proposed callback address without saving it.\n * `POST /account/{merchantId}/connectors/webhooks/{connectorId}/address/preview`\n *\n * Returns the validation errors as `{ field, code }` pairs, the URL every\n * affected credential group would get, the connector accounts that share it,\n * and whether saving needs `confirm_shared: true`. Needs the same permission\n * as saving.\n *\n * @example\n * ```typescript\n * const preview = await delopay.connectors.previewWebhookAddress('mer_abc', 'mca_xyz', {\n * environment: 'live',\n * mode: 'anonymous',\n * format: { prefix: 'wh-', style: 'alphanumeric', length: 16 },\n * });\n * if (!preview.valid) console.warn(preview.errors);\n * ```\n */\n async previewWebhookAddress(\n merchantId: string,\n connectorId: string,\n params: WebhookAddressRequest,\n ): Promise<WebhookAddressPreviewResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}/address/preview`,\n { body: params },\n );\n }\n\n /**\n * Save the callback address of a connector's payment provider for one\n * environment.\n * `PUT /account/{merchantId}/connectors/webhooks/{connectorId}/address`\n *\n * The address applies to every connector account of that provider and\n * environment, so `confirm_shared: true` is required when other accounts are\n * affected. For a managed provider Delopay then registers the new URL and\n * keeps the former one accepted; the response reports each credential\n * group's outcome in `status`. A `pending` or `failed` group keeps receiving\n * on its previous URL and is retried. For a hand-configured provider the\n * merchant enters the new `desired_url` at the provider.\n *\n * A refused proposal answers 422 with error code `IR_06` and the message\n * `Webhook address refused: field:code,…`. A save that lost to a concurrent\n * change of the same address answers 422 with error code `HE_00` and can be\n * repeated. A caller who may not edit every affected account answers 403.\n * Address changes are limited per provider and environment (`rate_limit`).\n */\n async updateWebhookAddress(\n merchantId: string,\n connectorId: string,\n params: WebhookAddressRequest,\n ): Promise<WebhookAddressResponse> {\n return this.request(\n 'PUT',\n `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}/address`,\n { body: params },\n );\n }\n\n /**\n * Read how the return addresses of a connector's payment provider name the\n * merchant, per environment.\n * `GET /account/{merchantId}/connectors/{connectorId}/return-address`\n *\n * A return address is where the provider sends the buyer back after a step\n * it hosts. It belongs to the merchant, the provider and the environment,\n * so every connector account of that provider follows it.\n */\n async getReturnAddress(merchantId: string, connectorId: string): Promise<ReturnAddressResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/return-address`,\n );\n }\n\n /**\n * Validate a proposed return address without saving it.\n * `POST /account/{merchantId}/connectors/{connectorId}/return-address/preview`\n *\n * Nothing is reserved: a generated identifier in the answer is an example.\n * Needs the same permission as saving.\n *\n * @example\n * ```typescript\n * const preview = await delopay.connectors.previewReturnAddress('mer_abc', 'mca_xyz', {\n * environment: 'live',\n * mode: 'anonymous',\n * share_webhook_identifier: true,\n * });\n * if (!preview.valid) console.warn(preview.errors);\n * ```\n */\n async previewReturnAddress(\n merchantId: string,\n connectorId: string,\n params: ReturnAddressRequest,\n ): Promise<ReturnAddressPreviewResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/return-address/preview`,\n { body: params },\n );\n }\n\n /**\n * Save the return address of a connector's payment provider for one\n * environment.\n * `PUT /account/{merchantId}/connectors/{connectorId}/return-address`\n *\n * Payments started afterwards get return addresses of the new form; every\n * address already handed to the provider keeps working. A refused proposal\n * answers 422 with error code `IR_06` and the message\n * `Return address refused: field:code,…`. A caller who may not edit every\n * connector account of the provider answers 403. Address changes are\n * limited per provider and environment (`rate_limit`).\n */\n async updateReturnAddress(\n merchantId: string,\n connectorId: string,\n params: ReturnAddressRequest,\n ): Promise<ReturnAddressResponse> {\n return this.request(\n 'PUT',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/return-address`,\n { body: params },\n );\n }\n\n /**\n * Every webhook the connector's payment provider lists for its credentials\n * in one environment: Delopay's own, other connector accounts', former\n * addresses' and other integrations'.\n * `GET /account/{merchantId}/connectors/webhooks/{connectorId}/provider`\n *\n * Available for Stripe, PayPal, Airwallex, Whop and Adyen. Destinations are\n * masked; `capabilities` says which changes the provider allows and\n * `editable` whether the caller may make them.\n */\n async listProviderWebhooks(\n merchantId: string,\n connectorId: string,\n environment: WebhookRegistrationEnvironment,\n ): Promise<ProviderWebhookListResponse> {\n return this.request('GET', providerWebhooksPath(merchantId, connectorId), {\n query: { environment },\n });\n }\n\n /**\n * Create a webhook at the provider for the merchant's own systems.\n * `POST /account/{merchantId}/connectors/webhooks/{connectorId}/provider`\n *\n * The URL must be `https` and outside Delopay; Delopay's own webhook is\n * registered with `registerWebhook`. A returned `signing_secret` is not kept\n * by Delopay and cannot be read again.\n */\n async createProviderWebhook(\n merchantId: string,\n connectorId: string,\n params: ProviderWebhookCreateRequest,\n ): Promise<ProviderWebhookCreateResponse> {\n return this.request('POST', providerWebhooksPath(merchantId, connectorId), { body: params });\n }\n\n /**\n * Change one webhook at the provider.\n * `PATCH /account/{merchantId}/connectors/webhooks/{connectorId}/provider/{webhookId}`\n *\n * Refused once the webhook changed since `fingerprint`, and for Delopay's\n * own webhooks.\n */\n async updateProviderWebhook(\n merchantId: string,\n connectorId: string,\n webhookId: string,\n params: ProviderWebhookUpdateRequest,\n ): Promise<ProviderWebhookEndpoint> {\n return this.request(\n 'PATCH',\n `${providerWebhooksPath(merchantId, connectorId)}/${encodeURIComponent(webhookId)}`,\n { body: params },\n );\n }\n\n /**\n * Delete one webhook at the provider.\n * `POST /account/{merchantId}/connectors/webhooks/{connectorId}/provider/{webhookId}/delete`\n *\n * Refused once the webhook changed since `fingerprint`. Deleting Delopay's\n * own webhook needs `confirm_managed: true`; another connector account's is\n * never deleted from here.\n */\n async deleteProviderWebhook(\n merchantId: string,\n connectorId: string,\n webhookId: string,\n params: ProviderWebhookDeleteRequest,\n ): Promise<ProviderWebhookDeleteResult> {\n return this.request(\n 'POST',\n `${providerWebhooksPath(merchantId, connectorId)}/${encodeURIComponent(webhookId)}/delete`,\n { body: params },\n );\n }\n\n /**\n * What \"replace all\" would delete and keep. Nothing is changed.\n * `GET /account/{merchantId}/connectors/webhooks/{connectorId}/provider/replace`\n */\n async previewProviderWebhookReplace(\n merchantId: string,\n connectorId: string,\n environment: WebhookRegistrationEnvironment,\n ): Promise<ProviderWebhookReplacePreviewResponse> {\n return this.request('GET', `${providerWebhooksPath(merchantId, connectorId)}/replace`, {\n query: { environment },\n });\n }\n\n /**\n * Keep only Delopay's webhook: delete exactly the confirmed webhooks of the\n * preview, after registering Delopay's own unless `sequence` is\n * `delete_first`.\n * `POST /account/{merchantId}/connectors/webhooks/{connectorId}/provider/replace`\n *\n * A list that changed since the preview answers `scope_changed` and deletes\n * nothing. A second replacement while one runs is refused as busy (`HE_00`).\n */\n async replaceProviderWebhooks(\n merchantId: string,\n connectorId: string,\n params: ProviderWebhookReplaceRequest,\n ): Promise<ProviderWebhookReplaceResponse> {\n return this.request('POST', `${providerWebhooksPath(merchantId, connectorId)}/replace`, {\n body: params,\n });\n }\n\n /** List available payment methods. `GET /account/payment-methods` */\n async listPaymentMethods(): Promise<Record<string, unknown>[]> {\n return this.request('GET', '/account/payment-methods');\n }\n}\n\nfunction providerWebhooksPath(merchantId: string, connectorId: string): string {\n return `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}/provider`;\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-5QS67SBO.cjs","../src/resources/connectors.ts"],"names":[],"mappings":"AAAA;ACkEO,IAAM,WAAA,EAAN,MAAiB;AAAA,EACtB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYlD,MAAM,4BAAA,CACJ,UAAA,EACA,WAAA,EACA,MAAA,EACqC;AACrC,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,MACV,KAAA;AAAA,MACA,CAAA,SAAA,EAAY,kBAAA,CAAmB,UAAU,CAAC,CAAA,YAAA,EAAe,kBAAA,CAAmB,WAAW,CAAC,CAAA,uBAAA,CAAA;AAAA,MACxF,EAAE,KAAA,EAAO,EAAE,SAAA,EAAW,MAAA,CAAO,UAAU,EAAE;AAAA,IAC3C,CAAA;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBA,MAAM,0BAAA,CACJ,UAAA,EACA,WAAA,EACA,MAAA,EACqC;AACrC,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,MACV,KAAA;AAAA,MACA,CAAA,SAAA,EAAY,kBAAA,CAAmB,UAAU,CAAC,CAAA,YAAA,EAAe,kBAAA,CAAmB,WAAW,CAAC,CAAA,uBAAA,CAAA;AAAA,MACxF,EAAE,IAAA,EAAM,OAAO;AAAA,IACjB,CAAA;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CAAO,SAAA,EAAmB,MAAA,EAA4D;AAC1F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,CAAA,SAAA,EAAY,kBA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A;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AAeE,IAAA;AAAY,MAAA;AACV,MAAA;AACiF,MAAA;AAClE,IAAA;AACjB,EAAA;AACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AAgBE,IAAA;AAAY,MAAA;AACV,MAAA;AACiF,MAAA;AAClE,IAAA;AACjB,EAAA;AACF;AAAA;AAAA;AAAA;AAAA,EAAA;AAWE,IAAA;AAAuF,MAAA;AAChE,IAAA;AACtB,EAAA;AACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AAgBE,IAAA;AAAwF,MAAA;AAChF,IAAA;AACP,EAAA;AACH;AAAA,EAAA;AAIE,IAAA;AAAqD,EAAA;AAEzD;AAEA;AACE,EAAA;AACF;ADhRA;AACA;AACA;AACA","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-5QS67SBO.cjs","sourcesContent":[null,"import type {\n ApplePayRegistrationList,\n ApplePayRegistrationMarkRequest,\n ApplePayRegistrationRetryRequest,\n ConnectorBuyerMailQuery,\n ConnectorBuyerMailResponse,\n ConnectorBuyerMailUpdate,\n ConnectorCloneRequest,\n ConnectorConsolidationRequest,\n ConnectorConsolidationResponse,\n ConnectorCurrencyPolicyResponse,\n ConnectorCurrencyPolicyUpdateRequest,\n ConnectorShopsAddRequest,\n ConnectorShopUpdateRequest,\n ConnectorShopsResponse,\n ConnectorHealthResponse,\n EpayoutsCatalogResponse,\n PanesCatalogResponse,\n VaultRoutesApplyRequest,\n VaultRoutesApplyResponse,\n VaultRoutesPreviewRequest,\n VaultRoutesPreviewResponse,\n VaultOutagesResponse,\n VaultOutageGroupActionResponse,\n VaultOutageGroupActionsListResponse,\n VaultOutageGroupCheckRecoveryResponse,\n VaultOutageGroupRestoreRequest,\n VaultOutageGroupRestoreResponse,\n VaultOutageGroupSwitchOffPreviewRequest,\n VaultOutageGroupSwitchOffPreviewResponse,\n VaultOutageGroupSwitchOffRequest,\n VaultVerificationResponse,\n VaultVerifyRequest,\n ConnectorCreateRequest,\n ConnectorResponse,\n ConnectorUpdateRequest,\n ConnectorWebhookListResponse,\n ConnectorWebhookRegisterRequest,\n ConnectorWebhookRegisterResponse,\n ConnectorWebhookSyncResponse,\n WebhookAddressPreviewResponse,\n WebhookAddressRequest,\n WebhookAddressResponse,\n ReturnAddressPreviewResponse,\n ReturnAddressRequest,\n ReturnAddressResponse,\n ProviderWebhookCreateRequest,\n ProviderWebhookCreateResponse,\n ProviderWebhookDeleteRequest,\n ProviderWebhookDeleteResult,\n ProviderWebhookEndpoint,\n ProviderWebhookListResponse,\n ProviderWebhookReplacePreviewResponse,\n ProviderWebhookReplaceRequest,\n ProviderWebhookReplaceResponse,\n ProviderWebhookUpdateRequest,\n WebhookRegistrationEnvironment,\n AirwallexApplePayDomainsRegisterRequest,\n AirwallexApplePayDomainsRegisterResponse,\n StripePaymentMethodDomainsRegisterRequest,\n StripePaymentMethodDomainsRegisterResponse,\n WhopApplePayDomainsRegisterRequest,\n WhopApplePayDomainsRegisterResponse,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\nexport class Connectors {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Read the connected provider account's optional buyer-email preference.\n * Currently supported for Whop. Use `setJwtToken` with a merchant JWT that\n * has Connector Edit authority; a shop token or API key cannot substitute.\n * Select Sandbox or Live explicitly through `test_mode`.\n *\n * The preference affects every shop sharing the provider account. It does\n * not disable mandatory provider messages or DeloPay invoice delivery.\n * A null or absent value establishes no on/off preference.\n */\n async retrieveBuyerEmailPreference(\n merchantId: string,\n connectorId: string,\n params: ConnectorBuyerMailQuery,\n ): Promise<ConnectorBuyerMailResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/buyer-email-preference`,\n { query: { test_mode: params.test_mode } },\n );\n }\n\n /**\n * Change the optional buyer-email preference for the whole provider account.\n * Currently supported for Whop. Requires a merchant JWT with Connector Edit\n * authority and explicit confirmation for every shop sharing the account.\n * Send the exact account, credential mode and value read before confirmation;\n * a changed account or preference is refused before mutation.\n *\n * Inspect `outcome`: only `verified` confirms the requested value through a\n * fresh exact-account read. HTTP 200 may instead report a conflict, refusal\n * or unknown outcome. An uncertain change may have happened; read the\n * preference again before retrying, including after a transport error.\n * This method adds no automatic readback or retry. Mandatory provider\n * messages and DeloPay invoice delivery are unaffected.\n */\n async updateBuyerEmailPreference(\n merchantId: string,\n connectorId: string,\n params: ConnectorBuyerMailUpdate,\n ): Promise<ConnectorBuyerMailResponse> {\n return this.request(\n 'PUT',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/buyer-email-preference`,\n { body: params },\n );\n }\n\n async create(accountId: string, params: ConnectorCreateRequest): Promise<ConnectorResponse> {\n return this.request('POST', `/account/${encodeURIComponent(accountId)}/connectors`, {\n body: params,\n });\n }\n\n /**\n * One connector account.\n *\n * The credential-bearing fields come back `null` here, whatever is stored:\n * `connector_webhook_details`, `connector_wallets_details`,\n * `pm_auth_config` and `additional_merchant_data`. They are dropped rather\n * than masked, because an editor that prefills from this response and\n * PATCHes the field back would otherwise save a mask over a live signing\n * secret. Send those fields only when the operator has typed a new value,\n * and omit them entirely otherwise — an omitted field leaves the stored one\n * alone.\n *\n * This is the retrieve path alone. `create` and `update` echo back what the\n * caller sent, and `clone` returns the *copied* secrets — see that method.\n *\n * Because the value is gone, `has_live_webhook_secret` and\n * `has_sandbox_webhook_secret` are what tell a stored webhook signing secret\n * from an unconfigured one. Render those; never infer configuration from the\n * `null` block.\n *\n * `GET /account/{accountId}/connectors/{connectorId}`\n */\n async retrieve(accountId: string, connectorId: string): Promise<ConnectorResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}`,\n );\n }\n\n /**\n * The merchant's connector accounts.\n *\n * Never wider than the caller: an API key pinned to one shop lists that\n * shop's connectors only, not every sibling shop's.\n *\n * `GET /account/{accountId}/connectors`\n */\n async list(accountId: string): Promise<ConnectorResponse[]> {\n return this.request('GET', `/account/${encodeURIComponent(accountId)}/connectors`);\n }\n\n /**\n * The profile-scoped connector list. The merchant-wide `list()` is\n * merchant-gated and 403s for a profile-entity (shop user) JWT; this\n * variant is scoped server-side to the caller's own profile.\n *\n * `GET /account/{accountId}/profile/connectors`\n */\n async listByProfile(accountId: string): Promise<ConnectorResponse[]> {\n return this.request('GET', `/account/${encodeURIComponent(accountId)}/profile/connectors`);\n }\n\n /**\n * Every connector's pane capabilities, as the router itself knows them —\n * which rails a connector supports, and which methods it can publish as a\n * pane with the confirm routing keys each one carries.\n *\n * Capability facts only: no label, sublabel or category comes back. A\n * designer renders a method's copy from its own locale files, keyed by\n * `key`, and takes `payment_method` / `payment_method_type` from here\n * verbatim rather than deriving them client-side.\n *\n * This is what the pane helpers in `src/panes.ts` should be driven from —\n * `paneMethodInfo`, `defaultPane` and `validatePanes` all take a\n * {@link PanesConnectorCatalog} out of this response, so a connector the\n * router starts publishing panes for needs no SDK release.\n *\n * `GET /account/{accountId}/connectors/native-panes/catalog`\n *\n * The path keeps the `native-panes` spelling deliberately. The identifiers\n * were renamed off \"native pane\"; the route was not, and pointing at the\n * backend's new name before it is deployed everywhere would both 404 against\n * un-upgraded replicas mid-rollout and fail `scripts/parity-check.mjs`,\n * which blocks publishing.\n */\n async getPanesCatalog(accountId: string): Promise<PanesCatalogResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(accountId)}/connectors/native-panes/catalog`,\n );\n }\n\n /** @deprecated Renamed to {@link getPanesCatalog}. Removed in 0.112.0. */\n async getNativePanesCatalog(accountId: string): Promise<PanesCatalogResponse> {\n return this.getPanesCatalog(accountId);\n }\n\n /**\n * Sweep the merchant's own e-Payouts module and return the rails it\n * actually has enabled. Server-side this makes many upstream calls, so it\n * can take several seconds — show progress.\n *\n * `POST /account/{accountId}/connectors/{connectorId}/epayouts/catalog/sync`\n */\n async syncEpayoutsCatalog(\n accountId: string,\n connectorId: string,\n ): Promise<EpayoutsCatalogResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/epayouts/catalog/sync`,\n );\n }\n\n /**\n * Update a connector account.\n *\n * `connector_webhook_details` **merges** into the stored block key by key:\n * an absent key keeps its stored secret, an explicit value is written, and\n * an explicit empty string clears that secret. Send only the\n * keys the operator typed — padding the other environment's keys with `''`\n * clears a live signing secret and inbound webhooks stop verifying.\n *\n * The other credential-bearing fields — `connector_wallets_details`,\n * `pm_auth_config`, `additional_merchant_data` — are still whole-value\n * replacements: omit them unless you are writing a complete new value.\n *\n * `POST /account/{accountId}/connectors/{connectorId}`\n */\n async update(\n accountId: string,\n connectorId: string,\n params: ConnectorUpdateRequest,\n options?: RequestExtras,\n ): Promise<ConnectorResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}`,\n {\n body: params,\n ...options,\n },\n );\n }\n\n /**\n * Remove a connector account.\n *\n * A shop-scoped role may remove a connector of its own shop — the shop is\n * re-checked server-side — so creating processors and removing them are the\n * same rung of access rather than two.\n *\n * `DELETE /account/{accountId}/connectors/{connectorId}`\n */\n async delete(accountId: string, connectorId: string): Promise<ConnectorResponse> {\n return this.request(\n 'DELETE',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}`,\n );\n }\n\n /**\n * Clone a connector into another shop (business profile) of the same\n * merchant. `POST /account/{accountId}/connectors/{connectorId}/clone`\n *\n * Credentials are copied server-side, re-encrypted under the same merchant\n * key, so the caller never has to *supply* them — `retrieve` returns `null`\n * for the credential fields, which is what makes a client-side copy\n * impossible in the first place.\n *\n * The response, however, is the unredacted connector: `connector_account_details`\n * is masked, but `connector_webhook_details`, `connector_wallets_details`,\n * `pm_auth_config` and `additional_merchant_data` come back with the copied\n * secrets in them — values this caller never sent. Do not log or echo the\n * response; read `merchant_connector_id` and discard the rest.\n */\n async clone(\n accountId: string,\n connectorId: string,\n params: ConnectorCloneRequest,\n ): Promise<ConnectorResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/clone`,\n { body: params },\n );\n }\n\n /**\n * Share a connector with more shops of the same merchant.\n * `POST /account/{accountId}/connectors/{connectorId}/shops`\n *\n * Nothing is copied: every shop sends payments to the same account, on the\n * same credentials and webhook, and the account's limits count them all.\n */\n async addShops(\n accountId: string,\n connectorId: string,\n params: ConnectorShopsAddRequest,\n ): Promise<ConnectorShopsResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/shops`,\n { body: params },\n );\n }\n\n /**\n * Fold copies of the same provider account into this connector.\n * `POST /account/{accountId}/connectors/{connectorId}/consolidate`\n *\n * The copies' shops move to the connector with their on/off state, routing,\n * checkout layout, currencies, saved credentials, mandates and\n * subscriptions. A copy keeps answering for the payments made on it and\n * serves no shop. Send `dry_run: true` first, then confirm with the\n * preview's `preview_token` and a choice for every conflict.\n */\n async consolidate(\n accountId: string,\n connectorId: string,\n params: ConnectorConsolidationRequest,\n ): Promise<ConnectorConsolidationResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/consolidate`,\n { body: params },\n );\n }\n\n /**\n * Switch a connector off, or back on, in one shop it serves.\n * `POST /account/{accountId}/connectors/{connectorId}/shops/{profileId}`\n */\n async setShopDisabled(\n accountId: string,\n connectorId: string,\n profileId: string,\n params: ConnectorShopUpdateRequest,\n ): Promise<ConnectorShopsResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/shops/${encodeURIComponent(profileId)}`,\n { body: params },\n );\n }\n\n /**\n * Stop a connector serving one shop. Any shop may leave, the\n * one the connector was created in included, while another one stays: the\n * last shop is refused, and the connector is deleted instead. The account,\n * its limits and every other shop on it are unaffected.\n * `DELETE /account/{accountId}/connectors/{connectorId}/shops/{profileId}`\n */\n async removeShop(\n accountId: string,\n connectorId: string,\n profileId: string,\n ): Promise<ConnectorShopsResponse> {\n return this.request(\n 'DELETE',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/shops/${encodeURIComponent(profileId)}`,\n );\n }\n\n /**\n * Read the transaction currencies a connector may process: its own list,\n * what the provider is known to accept with its methods, and the effective\n * currencies in each shop it serves.\n * `GET /account/{accountId}/connectors/{connectorId}/currencies`\n */\n async getCurrencies(\n accountId: string,\n connectorId: string,\n ): Promise<ConnectorCurrencyPolicyResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/currencies`,\n );\n }\n\n /**\n * Set the transaction currencies a connector may process in every shop it\n * serves, and what it does with a payment in a currency it does not take\n * (`conversion`). `allowed_currencies: null` allows every currency the\n * provider supports; a field left out stays as it is. With `dry_run`,\n * nothing is saved and `impact` reports the effect.\n * `PUT /account/{accountId}/connectors/{connectorId}/currencies`\n */\n async setCurrencies(\n accountId: string,\n connectorId: string,\n params: ConnectorCurrencyPolicyUpdateRequest,\n ): Promise<ConnectorCurrencyPolicyResponse> {\n return this.request(\n 'PUT',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/currencies`,\n { body: params },\n );\n }\n\n /**\n * Narrow a connector's currencies in one shop it serves, within the\n * connector's own list, or set the shop's own `conversion`. `null` returns\n * the shop to the connector's setting; a field left out stays as it is.\n * `PUT /account/{accountId}/connectors/{connectorId}/shops/{profileId}/currencies`\n */\n async setShopCurrencies(\n accountId: string,\n connectorId: string,\n profileId: string,\n params: ConnectorCurrencyPolicyUpdateRequest,\n ): Promise<ConnectorCurrencyPolicyResponse> {\n return this.request(\n 'PUT',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/shops/${encodeURIComponent(profileId)}/currencies`,\n { body: params },\n );\n }\n\n // --- Advanced operations (Task 4.8) ---\n\n /**\n * Run the configuration checks for a vault (VGS) connector account:\n * credential validity, write-only Collect scope, reachability, environment\n * coherence, route coverage. Read-only but not cheap — it decrypts the\n * vault's management credential and talks to VGS.\n *\n * `POST /account/{accountId}/connectors/{connectorId}/vault/verify`\n */\n async verifyVault(\n accountId: string,\n connectorId: string,\n params: VaultVerifyRequest,\n ): Promise<VaultVerificationResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/vault/verify`,\n { body: params },\n );\n }\n\n /**\n * The shops whose card vault is switched on and whose vault account has\n * stopped working, each with the cause. While a shop is listed, its card\n * form cannot be shown and its card payments fail.\n *\n * An outage is listed once the vault has refused the account several times\n * in a row over at least a minute, and is taken off the list when the vault\n * serves the account again. Nothing switches a vault off by itself: see\n * `profiles.switchVaultOff`.\n *\n * `GET /account/{accountId}/vault/outages`\n */\n async listVaultOutages(accountId: string): Promise<VaultOutagesResponse> {\n return this.request('GET', `/account/${encodeURIComponent(accountId)}/vault/outages`);\n }\n\n /**\n * Preview switching off a failing vault provider across all affected shops\n * of an account. Returns `eligible: true` only when the caller has full\n * access to every affected shop and vault account of that provider.\n *\n * `POST /account/{accountId}/vault/outages/group-switch-off/preview`\n */\n async previewVaultOutageGroupSwitchOff(\n accountId: string,\n params: VaultOutageGroupSwitchOffPreviewRequest,\n ): Promise<VaultOutageGroupSwitchOffPreviewResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/vault/outages/group-switch-off/preview`,\n { body: params },\n );\n }\n\n /**\n * Switch off a failing vault provider across all affected shops returned by\n * {@link Connectors.previewVaultOutageGroupSwitchOff} in one atomic step.\n * Refused when the affected shop set changed since the preview.\n *\n * `POST /account/{accountId}/vault/outages/group-switch-off`\n */\n async executeVaultOutageGroupSwitchOff(\n accountId: string,\n params: VaultOutageGroupSwitchOffRequest,\n ): Promise<VaultOutageGroupActionResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/vault/outages/group-switch-off`,\n { body: params },\n );\n }\n\n /**\n * List active, recovered, and historical vault outage group actions for an\n * account, each hydrated with per-shop live states filtered to the caller's\n * shop and connector grants.\n *\n * `GET /account/{accountId}/vault/outages/group-actions`\n */\n async listVaultOutageGroupActions(\n accountId: string,\n ): Promise<VaultOutageGroupActionsListResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(accountId)}/vault/outages/group-actions`,\n );\n }\n\n /**\n * Probe the live credential slot of every still-switched-off vault account\n * in a group action and transition it to `recovered` when all answer healthy.\n *\n * `POST /account/{accountId}/vault/outages/group-actions/{actionId}/check-recovery`\n */\n async checkVaultOutageGroupRecovery(\n accountId: string,\n actionId: string,\n ): Promise<VaultOutageGroupCheckRecoveryResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/vault/outages/group-actions/${encodeURIComponent(actionId)}/check-recovery`,\n );\n }\n\n /**\n * Restore or undo a vault outage group action after verifying each remaining\n * vault account works again, skipping shops that were already manually\n * re-enabled or changed to another vault.\n *\n * `POST /account/{accountId}/vault/outages/group-actions/{actionId}/restore`\n */\n async restoreVaultOutageGroupAction(\n accountId: string,\n actionId: string,\n params: VaultOutageGroupRestoreRequest = {},\n ): Promise<VaultOutageGroupRestoreResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/vault/outages/group-actions/${encodeURIComponent(actionId)}/restore`,\n { body: params },\n );\n }\n\n /**\n * Compute the route document the vault SHOULD have and diff it against\n * what exists, without writing anything. The returned fingerprints must be\n * echoed byte for byte on {@link Connectors.applyVaultRoutes}.\n *\n * A router without these endpoints answers 404 — render that as \"this\n * build cannot configure routes\", never as \"there is nothing to change\".\n *\n * `POST /account/{accountId}/connectors/{connectorId}/vault/routes/preview`\n */\n async previewVaultRoutes(\n accountId: string,\n connectorId: string,\n params: VaultRoutesPreviewRequest,\n ): Promise<VaultRoutesPreviewResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/vault/routes/preview`,\n { body: params },\n );\n }\n\n /**\n * Write the routes the merchant just previewed. Both fingerprints come\n * from the preview and are opaque: `expected_current_fingerprint` says the\n * vault has not moved (`null` = \"the preview found no routes\" and is sent\n * as `null`, never omitted), `expected_desired_fingerprint` says the\n * document is still the one on screen. A 409 (`DE_04`) means the vault\n * changed since the preview — nothing was written; preview again.\n *\n * `POST /account/{accountId}/connectors/{connectorId}/vault/routes/apply`\n */\n async applyVaultRoutes(\n accountId: string,\n connectorId: string,\n params: VaultRoutesApplyRequest,\n ): Promise<VaultRoutesApplyResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/vault/routes/apply`,\n { body: params },\n );\n }\n\n /**\n * What the processor says about this connector account: whether it will\n * accept charges, which capabilities are live, and anything it is still\n * waiting on.\n *\n * This is **not** {@link Connectors.verify}. That one asks whether the stored\n * credentials work, by running a test-card authorization; a processor can\n * revoke an account's ability to take payments while the credentials stay\n * perfectly valid, and then a credential check reports healthy while every\n * checkout silently stalls. This asks the account's own status instead, and\n * does not create a payment. By default it reads a scheduler snapshot;\n * `refresh: true` asks for a new probe and `stale` identifies an overdue result.\n * `test_mode` selects the requested environment; `credential_source` identifies\n * a sandbox, live or shared credential set. Not every provider reports chargeability.\n *\n * Connectors with no probe answer `state: 'unknown'` with\n * `unknown_reason: 'connector_not_supported'`, rather than an error — every\n * `'unknown'` carries a reason code you render your own words for. A router\n * without this endpoint answers 404 — render that as \"this build cannot\n * report health\", never as \"healthy\".\n *\n * `GET /account/{accountId}/connectors/{connectorId}/health`\n */\n async health(\n accountId: string,\n connectorId: string,\n options?: { test_mode?: boolean; refresh?: boolean },\n ): Promise<ConnectorHealthResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/health`,\n { query: options },\n );\n }\n\n /** Verify connector credentials. `POST /account/connectors/verify` */\n async verify(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/account/connectors/verify', { body: params });\n }\n\n /**\n * Register a webhook for a connector.\n * `POST /account/{merchantId}/connectors/webhooks/{connectorId}`\n *\n * @param params - Optional event scope. Defaults to `{ event_type: 'all_events' }`\n * when omitted; pass `{ event_type: { specific_event: '…' } }` to scope\n * to a single event.\n */\n async registerWebhook(\n merchantId: string,\n connectorId: string,\n params?: ConnectorWebhookRegisterRequest,\n ): Promise<ConnectorWebhookRegisterResponse> {\n const path = `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}`;\n if (params === undefined) return this.request('POST', path);\n return this.request('POST', path, { body: params });\n }\n\n /**\n * Register checkout/shop domains as Stripe payment method domains, so Apple\n * Pay renders on those pages.\n * `POST /account/{merchantId}/connectors/{connectorId}/stripe/payment-method-domains`\n *\n * Stripe connectors only. One call registers against a single credential set\n * (`environment`, default `'live'`) — call twice to cover live and sandbox.\n * Per-URL outcomes come back in `results`; a missing sandbox credential set\n * is a request-level 400.\n */\n async registerStripePaymentMethodDomains(\n merchantId: string,\n connectorId: string,\n params: StripePaymentMethodDomainsRegisterRequest,\n ): Promise<StripePaymentMethodDomainsRegisterResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/stripe/payment-method-domains`,\n { body: params },\n );\n }\n\n /**\n * Register checkout/shop domains as Airwallex Apple Pay domains, so Apple Pay\n * renders on those pages.\n * `POST /account/{merchantId}/connectors/{connectorId}/airwallex/apple-pay-domains`\n *\n * Airwallex connectors only. One call registers against a single credential\n * set (`environment`, default `'live'`) — call twice to cover live and\n * sandbox. Idempotent: a host already on the account comes back\n * `already_registered` without a write.\n */\n async registerAirwallexApplePayDomains(\n merchantId: string,\n connectorId: string,\n params: AirwallexApplePayDomainsRegisterRequest,\n ): Promise<AirwallexApplePayDomainsRegisterResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/airwallex/apple-pay-domains`,\n { body: params },\n );\n }\n\n /**\n * Register and verify checkout/shop domains as Whop Apple Pay payment method\n * domains, so Apple Pay renders in Whop's embedded card form on those pages.\n * `POST /account/{merchantId}/connectors/{connectorId}/whop/apple-pay-domains`\n *\n * Whop connectors only. One call registers against a single credential set\n * (`environment`, default `'live'`) — call twice to cover live and sandbox.\n * Idempotent: a host Whop already holds as verified comes back\n * `already_verified` without a write, and a `pending` one is verified again.\n */\n async registerWhopApplePayDomains(\n merchantId: string,\n connectorId: string,\n params: WhopApplePayDomainsRegisterRequest,\n ): Promise<WhopApplePayDomainsRegisterResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/whop/apple-pay-domains`,\n { body: params },\n );\n }\n\n /**\n * The account's Apple Pay registration on every checkout address, per key\n * set: `registered`, `failed` (with why), `skipped` (the address serves\n * another processor's file), `pending` (the address is not ready yet),\n * `not_attempted`, or for PayPal `manual_pending` / `manual_done`.\n * `GET /account/{merchantId}/connectors/{connectorId}/apple-pay-registrations`\n */\n async applePayRegistrations(\n merchantId: string,\n connectorId: string,\n ): Promise<ApplePayRegistrationList> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/apple-pay-registrations`,\n );\n }\n\n /**\n * Register the account on every ready checkout address whose Apple Pay file\n * serves its processor again, for one key set or both. Answers the list as\n * it stands afterwards.\n * `POST /account/{merchantId}/connectors/{connectorId}/apple-pay-registrations/retry`\n */\n async retryApplePayRegistrations(\n merchantId: string,\n connectorId: string,\n params: ApplePayRegistrationRetryRequest = {},\n ): Promise<ApplePayRegistrationList> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/apple-pay-registrations/retry`,\n { body: params },\n );\n }\n\n /**\n * Mark a checkout address registered (or not) for one key set, for a\n * processor without a registration API (PayPal). A reminder for the team:\n * nothing is checked with the processor. Refused for other processors.\n * `PUT /account/{merchantId}/connectors/{connectorId}/apple-pay-registrations/{hostId}/mark`\n */\n async markApplePayRegistration(\n merchantId: string,\n connectorId: string,\n hostId: string,\n params: ApplePayRegistrationMarkRequest,\n ): Promise<ApplePayRegistrationList> {\n return this.request(\n 'PUT',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/apple-pay-registrations/${encodeURIComponent(hostId)}/mark`,\n { body: params },\n );\n }\n\n /** Get registered webhooks for a connector. `GET /account/{merchantId}/connectors/webhooks/{connectorId}` */\n async getWebhook(merchantId: string, connectorId: string): Promise<ConnectorWebhookListResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}`,\n );\n }\n\n /**\n * Bring an already-registered webhook's event subscription up to date with\n * the events Delopay handles.\n * `POST /account/{merchantId}/connectors/webhooks/{connectorId}/sync-events`\n *\n * A PSP freezes an endpoint's event list at registration time, so an endpoint\n * created before an event type was added never receives it — silently, with\n * no error anywhere. {@link getWebhook} reports the gap as `missing_events`;\n * this repairs it.\n *\n * Unlike re-registering, the endpoints are updated in place: the endpoint id\n * and its signing secret are preserved, so signature verification keeps\n * working across the change. Stripe connectors only; idempotent, so it is\n * safe to call on a schedule or after every deploy.\n *\n * @example\n * ```typescript\n * const sync = await delopay.connectors.syncWebhookEvents('mer_abc', 'mca_xyz');\n * for (const endpoint of sync.endpoints) {\n * if (endpoint.error_message) console.warn(endpoint.connector_webhook_id, endpoint.error_message);\n * else if (endpoint.updated) console.log('subscribed', endpoint.added_events);\n * }\n * ```\n */\n async syncWebhookEvents(\n merchantId: string,\n connectorId: string,\n ): Promise<ConnectorWebhookSyncResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}/sync-events`,\n );\n }\n\n /**\n * Read the callback addresses of a connector's payment provider.\n * `GET /account/{merchantId}/connectors/webhooks/{connectorId}/address`\n *\n * One entry per environment: the saved mode and identifier, and for every\n * credential group the URL the policy asks for (`desired_url`) beside the URL\n * actually registered at the provider (`registered_url`) with its `status`.\n * Only `registered` means the provider delivers to the desired URL.\n *\n * Available for providers whose webhooks Delopay manages (Stripe, PayPal,\n * Airwallex, Whop) and for hand-configured ones (Creem, NomuPay,\n * MicroPayment). Other connectors are refused with a 400.\n */\n async getWebhookAddress(\n merchantId: string,\n connectorId: string,\n ): Promise<WebhookAddressResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}/address`,\n );\n }\n\n /**\n * Validate a proposed callback address without saving it.\n * `POST /account/{merchantId}/connectors/webhooks/{connectorId}/address/preview`\n *\n * Returns the validation errors as `{ field, code }` pairs, the URL every\n * affected credential group would get, the connector accounts that share it,\n * and whether saving needs `confirm_shared: true`. Needs the same permission\n * as saving.\n *\n * @example\n * ```typescript\n * const preview = await delopay.connectors.previewWebhookAddress('mer_abc', 'mca_xyz', {\n * environment: 'live',\n * mode: 'anonymous',\n * format: { prefix: 'wh-', style: 'alphanumeric', length: 16 },\n * });\n * if (!preview.valid) console.warn(preview.errors);\n * ```\n */\n async previewWebhookAddress(\n merchantId: string,\n connectorId: string,\n params: WebhookAddressRequest,\n ): Promise<WebhookAddressPreviewResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}/address/preview`,\n { body: params },\n );\n }\n\n /**\n * Save the callback address of a connector's payment provider for one\n * environment.\n * `PUT /account/{merchantId}/connectors/webhooks/{connectorId}/address`\n *\n * The address applies to every connector account of that provider and\n * environment, so `confirm_shared: true` is required when other accounts are\n * affected. For a managed provider Delopay then registers the new URL and\n * keeps the former one accepted; the response reports each credential\n * group's outcome in `status`. A `pending` or `failed` group keeps receiving\n * on its previous URL and is retried. For a hand-configured provider the\n * merchant enters the new `desired_url` at the provider.\n *\n * A refused proposal answers 422 with error code `IR_06` and the message\n * `Webhook address refused: field:code,…`. A save that lost to a concurrent\n * change of the same address answers 422 with error code `HE_00` and can be\n * repeated. A caller who may not edit every affected account answers 403.\n * Address changes are limited per provider and environment (`rate_limit`).\n */\n async updateWebhookAddress(\n merchantId: string,\n connectorId: string,\n params: WebhookAddressRequest,\n ): Promise<WebhookAddressResponse> {\n return this.request(\n 'PUT',\n `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}/address`,\n { body: params },\n );\n }\n\n /**\n * Read how the return addresses of a connector's payment provider name the\n * merchant, per environment.\n * `GET /account/{merchantId}/connectors/{connectorId}/return-address`\n *\n * A return address is where the provider sends the buyer back after a step\n * it hosts. It belongs to the merchant, the provider and the environment,\n * so every connector account of that provider follows it.\n */\n async getReturnAddress(merchantId: string, connectorId: string): Promise<ReturnAddressResponse> {\n return this.request(\n 'GET',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/return-address`,\n );\n }\n\n /**\n * Validate a proposed return address without saving it.\n * `POST /account/{merchantId}/connectors/{connectorId}/return-address/preview`\n *\n * Nothing is reserved: a generated identifier in the answer is an example.\n * Needs the same permission as saving.\n *\n * @example\n * ```typescript\n * const preview = await delopay.connectors.previewReturnAddress('mer_abc', 'mca_xyz', {\n * environment: 'live',\n * mode: 'anonymous',\n * share_webhook_identifier: true,\n * });\n * if (!preview.valid) console.warn(preview.errors);\n * ```\n */\n async previewReturnAddress(\n merchantId: string,\n connectorId: string,\n params: ReturnAddressRequest,\n ): Promise<ReturnAddressPreviewResponse> {\n return this.request(\n 'POST',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/return-address/preview`,\n { body: params },\n );\n }\n\n /**\n * Save the return address of a connector's payment provider for one\n * environment.\n * `PUT /account/{merchantId}/connectors/{connectorId}/return-address`\n *\n * Payments started afterwards get return addresses of the new form; every\n * address already handed to the provider keeps working. A refused proposal\n * answers 422 with error code `IR_06` and the message\n * `Return address refused: field:code,…`. A caller who may not edit every\n * connector account of the provider answers 403. Address changes are\n * limited per provider and environment (`rate_limit`).\n */\n async updateReturnAddress(\n merchantId: string,\n connectorId: string,\n params: ReturnAddressRequest,\n ): Promise<ReturnAddressResponse> {\n return this.request(\n 'PUT',\n `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/return-address`,\n { body: params },\n );\n }\n\n /**\n * Every webhook the connector's payment provider lists for its credentials\n * in one environment: Delopay's own, other connector accounts', former\n * addresses' and other integrations'.\n * `GET /account/{merchantId}/connectors/webhooks/{connectorId}/provider`\n *\n * Available for Stripe, PayPal, Airwallex, Whop and Adyen. Destinations are\n * masked; `capabilities` says which changes the provider allows and\n * `editable` whether the caller may make them.\n */\n async listProviderWebhooks(\n merchantId: string,\n connectorId: string,\n environment: WebhookRegistrationEnvironment,\n ): Promise<ProviderWebhookListResponse> {\n return this.request('GET', providerWebhooksPath(merchantId, connectorId), {\n query: { environment },\n });\n }\n\n /**\n * Create a webhook at the provider for the merchant's own systems.\n * `POST /account/{merchantId}/connectors/webhooks/{connectorId}/provider`\n *\n * The URL must be `https` and outside Delopay; Delopay's own webhook is\n * registered with `registerWebhook`. A returned `signing_secret` is not kept\n * by Delopay and cannot be read again.\n */\n async createProviderWebhook(\n merchantId: string,\n connectorId: string,\n params: ProviderWebhookCreateRequest,\n ): Promise<ProviderWebhookCreateResponse> {\n return this.request('POST', providerWebhooksPath(merchantId, connectorId), { body: params });\n }\n\n /**\n * Change one webhook at the provider.\n * `PATCH /account/{merchantId}/connectors/webhooks/{connectorId}/provider/{webhookId}`\n *\n * Refused once the webhook changed since `fingerprint`, and for Delopay's\n * own webhooks.\n */\n async updateProviderWebhook(\n merchantId: string,\n connectorId: string,\n webhookId: string,\n params: ProviderWebhookUpdateRequest,\n ): Promise<ProviderWebhookEndpoint> {\n return this.request(\n 'PATCH',\n `${providerWebhooksPath(merchantId, connectorId)}/${encodeURIComponent(webhookId)}`,\n { body: params },\n );\n }\n\n /**\n * Delete one webhook at the provider.\n * `POST /account/{merchantId}/connectors/webhooks/{connectorId}/provider/{webhookId}/delete`\n *\n * Refused once the webhook changed since `fingerprint`. Deleting Delopay's\n * own webhook needs `confirm_managed: true`; another connector account's is\n * never deleted from here.\n */\n async deleteProviderWebhook(\n merchantId: string,\n connectorId: string,\n webhookId: string,\n params: ProviderWebhookDeleteRequest,\n ): Promise<ProviderWebhookDeleteResult> {\n return this.request(\n 'POST',\n `${providerWebhooksPath(merchantId, connectorId)}/${encodeURIComponent(webhookId)}/delete`,\n { body: params },\n );\n }\n\n /**\n * What \"replace all\" would delete and keep. Nothing is changed.\n * `GET /account/{merchantId}/connectors/webhooks/{connectorId}/provider/replace`\n */\n async previewProviderWebhookReplace(\n merchantId: string,\n connectorId: string,\n environment: WebhookRegistrationEnvironment,\n ): Promise<ProviderWebhookReplacePreviewResponse> {\n return this.request('GET', `${providerWebhooksPath(merchantId, connectorId)}/replace`, {\n query: { environment },\n });\n }\n\n /**\n * Keep only Delopay's webhook: delete exactly the confirmed webhooks of the\n * preview, after registering Delopay's own unless `sequence` is\n * `delete_first`.\n * `POST /account/{merchantId}/connectors/webhooks/{connectorId}/provider/replace`\n *\n * A list that changed since the preview answers `scope_changed` and deletes\n * nothing. A second replacement while one runs is refused as busy (`HE_00`).\n */\n async replaceProviderWebhooks(\n merchantId: string,\n connectorId: string,\n params: ProviderWebhookReplaceRequest,\n ): Promise<ProviderWebhookReplaceResponse> {\n return this.request('POST', `${providerWebhooksPath(merchantId, connectorId)}/replace`, {\n body: params,\n });\n }\n\n /** List available payment methods. `GET /account/payment-methods` */\n async listPaymentMethods(): Promise<Record<string, unknown>[]> {\n return this.request('GET', '/account/payment-methods');\n }\n}\n\nfunction providerWebhooksPath(merchantId: string, connectorId: string): string {\n return `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}/provider`;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/sdk-pub-04970/dist/chunk-6EBY2KKL.cjs","../src/resources/merchantAccounts.ts"],"names":[],"mappings":"AAAA;ACOO,IAAM,iBAAA,EAAN,MAAuB;AAAA,EAC5B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,MAAA,CAAO,MAAA,EAAwE;AACnF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,WAAA,EAAa,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC3D;AAAA,EAEA,MAAM,QAAA,CAAS,SAAA,EAAqD;AAClE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,UAAA,EAAa,kBAAA,CAAmB,SAAS,CAAC,CAAA,CAAA;AACvE,EAAA;AAMoC,EAAA;AACoC,IAAA;AAC9D,MAAA;AACH,MAAA;AACJ,IAAA;AACH,EAAA;AAEkE,EAAA;AACF,IAAA;AAChE,EAAA;AAAA;AAAA;AAKiD,EAAA;AACJ,IAAA;AAC7C,EAAA;AAAA;AAGoE,EAAA;AACI,IAAA;AACxE,EAAA;AAAA;AAGuE,EAAA;AACA,IAAA;AACvE,EAAA;AAAA;AAGsF,EAAA;AAClB,IAAA;AACpE,EAAA;AACF;ADhB0E;AACA;AACA;AACA","file":"/tmp/sdk-pub-04970/dist/chunk-6EBY2KKL.cjs","sourcesContent":[null,"import type {\n MerchantAccountCreateRequest,\n MerchantAccountResponse,\n MerchantAccountUpdateRequest,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\nexport class MerchantAccounts {\n constructor(private readonly request: RequestFn) {}\n\n async create(params: MerchantAccountCreateRequest): Promise<MerchantAccountResponse> {\n return this.request('POST', '/accounts', { body: params });\n }\n\n async retrieve(accountId: string): Promise<MerchantAccountResponse> {\n return this.request('GET', `/accounts/${encodeURIComponent(accountId)}`);\n }\n\n async update(\n accountId: string,\n params: MerchantAccountUpdateRequest,\n options?: RequestExtras,\n ): Promise<MerchantAccountResponse> {\n return this.request('POST', `/accounts/${encodeURIComponent(accountId)}`, {\n body: params,\n ...options,\n });\n }\n\n async delete(accountId: string): Promise<MerchantAccountResponse> {\n return this.request('DELETE', `/accounts/${encodeURIComponent(accountId)}`);\n }\n\n // --- Advanced operations (Task 4.9) ---\n\n /** List all merchant accounts. `GET /accounts/list` */\n async list(): Promise<MerchantAccountResponse[]> {\n return this.request('GET', '/accounts/list');\n }\n\n /** Toggle key-value store for a merchant. `POST /accounts/{accountId}/kv` */\n async toggleKv(accountId: string): Promise<Record<string, unknown>> {\n return this.request('POST', `/accounts/${encodeURIComponent(accountId)}/kv`);\n }\n\n /** Get KV status for a merchant. `GET /accounts/{accountId}/kv` */\n async getKvStatus(accountId: string): Promise<Record<string, unknown>> {\n return this.request('GET', `/accounts/${encodeURIComponent(accountId)}/kv`);\n }\n\n /** Transfer keys between merchants. `POST /accounts/transfer` */\n async transferKeys(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/accounts/transfer', { body: params });\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-6EBY2KKL.cjs","../src/resources/merchantAccounts.ts"],"names":[],"mappings":"AAAA;ACOO,IAAM,iBAAA,EAAN,MAAuB;AAAA,EAC5B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,MAAA,CAAO,MAAA,EAAwE;AACnF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,WAAA,EAAa,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC3D;AAAA,EAEA,MAAM,QAAA,CAAS,SAAA,EAAqD;AAClE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,UAAA,EAAa,kBAAA,CAAmB,SAAS,CAAC,CAAA,CAAA;AACvE,EAAA;AAMoC,EAAA;AACoC,IAAA;AAC9D,MAAA;AACH,MAAA;AACJ,IAAA;AACH,EAAA;AAEkE,EAAA;AACF,IAAA;AAChE,EAAA;AAAA;AAAA;AAKiD,EAAA;AACJ,IAAA;AAC7C,EAAA;AAAA;AAGoE,EAAA;AACI,IAAA;AACxE,EAAA;AAAA;AAGuE,EAAA;AACA,IAAA;AACvE,EAAA;AAAA;AAGsF,EAAA;AAClB,IAAA;AACpE,EAAA;AACF;ADhB0E;AACA;AACA;AACA","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-6EBY2KKL.cjs","sourcesContent":[null,"import type {\n MerchantAccountCreateRequest,\n MerchantAccountResponse,\n MerchantAccountUpdateRequest,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\nexport class MerchantAccounts {\n constructor(private readonly request: RequestFn) {}\n\n async create(params: MerchantAccountCreateRequest): Promise<MerchantAccountResponse> {\n return this.request('POST', '/accounts', { body: params });\n }\n\n async retrieve(accountId: string): Promise<MerchantAccountResponse> {\n return this.request('GET', `/accounts/${encodeURIComponent(accountId)}`);\n }\n\n async update(\n accountId: string,\n params: MerchantAccountUpdateRequest,\n options?: RequestExtras,\n ): Promise<MerchantAccountResponse> {\n return this.request('POST', `/accounts/${encodeURIComponent(accountId)}`, {\n body: params,\n ...options,\n });\n }\n\n async delete(accountId: string): Promise<MerchantAccountResponse> {\n return this.request('DELETE', `/accounts/${encodeURIComponent(accountId)}`);\n }\n\n // --- Advanced operations (Task 4.9) ---\n\n /** List all merchant accounts. `GET /accounts/list` */\n async list(): Promise<MerchantAccountResponse[]> {\n return this.request('GET', '/accounts/list');\n }\n\n /** Toggle key-value store for a merchant. `POST /accounts/{accountId}/kv` */\n async toggleKv(accountId: string): Promise<Record<string, unknown>> {\n return this.request('POST', `/accounts/${encodeURIComponent(accountId)}/kv`);\n }\n\n /** Get KV status for a merchant. `GET /accounts/{accountId}/kv` */\n async getKvStatus(accountId: string): Promise<Record<string, unknown>> {\n return this.request('GET', `/accounts/${encodeURIComponent(accountId)}/kv`);\n }\n\n /** Transfer keys between merchants. `POST /accounts/transfer` */\n async transferKeys(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/accounts/transfer', { body: params });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/sdk-pub-04970/dist/chunk-6LFOM6HV.cjs","../src/resources/checkoutTemplates.ts"],"names":[],"mappings":"AAAA;AC2BO,IAAM,kBAAA,EAAN,MAAwB;AAAA,EAC7B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,MAAM,IAAA,CAAK,UAAA,EAA2D;AACpE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,oBAAA,EAAuB,kBAAA,CAAmB,UAAU,CAAC,CAAA,CAAA;AAClF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUqC,EAAA;AAC8C,IAAA;AACzE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAG0F,EAAA;AAC5E,IAAA;AACV,MAAA;AAC4E,MAAA;AAC9E,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWqC,EAAA;AACvB,IAAA;AACV,MAAA;AAC4E,MAAA;AAC7D,MAAA;AACjB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWqC,EAAA;AACiC,IAAA;AACtE,EAAA;AAAA;AAAA;AAAA;AAAA;AAMwF,EAAA;AAC1E,IAAA;AACV,MAAA;AAC4E,MAAA;AAC9E,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAa0C,EAAA;AAC5B,IAAA;AACV,MAAA;AAC4E,MAAA;AAC5E,MAAA;AACQ,QAAA;AACR,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAUqC,EAAA;AACvB,IAAA;AACV,MAAA;AAC4E,MAAA;AAC9E,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAW0C,EAAA;AAC5B,IAAA;AACV,MAAA;AAC4E,MAAA;AAC5E,MAAA;AACQ,QAAA;AACR,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAM6F,EAAA;AAC/E,IAAA;AACV,MAAA;AAC+D,MAAA;AACjE,IAAA;AACF,EAAA;AACF;ADxDqF;AACA;AACA;AACA","file":"/tmp/sdk-pub-04970/dist/chunk-6LFOM6HV.cjs","sourcesContent":[null,"import type {\n CheckoutTemplateApplyRequest,\n CheckoutTemplateApplyResponse,\n CheckoutTemplateAssignRequest,\n CheckoutTemplateCreateRequest,\n CheckoutTemplateListResponse,\n CheckoutTemplateOfShopResponse,\n CheckoutTemplateResponse,\n CheckoutTemplateUpdateRequest,\n} from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * Checkout templates: a shop's payment methods, behaviour and smart routing,\n * defined once for the merchant and used in many shops.\n *\n * A template is edited where a shop is: its own profile (`template_id`) has a\n * checkout layout, behaviour settings, routing configurations and connector\n * accounts, written with `checkoutMethods`, `shops.updateCheckoutBranding`,\n * `routing` and the connector shop methods. Its changes reach the shops on it\n * when `apply()` runs. While a shop is on a template, its own payment methods,\n * behaviour and routing cannot be changed; its appearance stays its own.\n *\n * Every method but `ofShop()` needs a merchant-level role that sees every\n * connector and payment; `create()`, `assign()` and `apply()` also need\n * routing and connector write.\n */\nexport class CheckoutTemplates {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The merchant's templates, each with the shops on it and whether each\n * runs the template's current settings.\n * `GET /checkout-templates/{merchantId}`\n */\n async list(merchantId: string): Promise<CheckoutTemplateListResponse> {\n return this.request('GET', `/checkout-templates/${encodeURIComponent(merchantId)}`);\n }\n\n /**\n * Create a template, empty or copied from a shop's current settings. The\n * shop copied from is not changed.\n * `POST /checkout-templates/{merchantId}`\n */\n async create(\n merchantId: string,\n params: CheckoutTemplateCreateRequest,\n ): Promise<CheckoutTemplateResponse> {\n return this.request('POST', `/checkout-templates/${encodeURIComponent(merchantId)}`, {\n body: params,\n });\n }\n\n /** `GET /checkout-templates/{merchantId}/{templateId}` */\n async retrieve(merchantId: string, templateId: string): Promise<CheckoutTemplateResponse> {\n return this.request(\n 'GET',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}`,\n );\n }\n\n /**\n * Update a template: rename it (a name another template of the merchant\n * holds is refused), make it the merchant's default, or both.\n * `POST /checkout-templates/{merchantId}/{templateId}`\n */\n async rename(\n merchantId: string,\n templateId: string,\n params: CheckoutTemplateUpdateRequest,\n ): Promise<CheckoutTemplateResponse> {\n return this.request(\n 'POST',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}`,\n { body: params },\n );\n }\n\n /**\n * Make the template the merchant's default, taking the mark off the one that\n * had it, or stop it being the default. No shop changes either way.\n * `POST /checkout-templates/{merchantId}/{templateId}`\n */\n async setDefault(\n merchantId: string,\n templateId: string,\n isDefault: boolean,\n ): Promise<CheckoutTemplateResponse> {\n return this.rename(merchantId, templateId, { is_default: isDefault });\n }\n\n /**\n * Delete a template. Refused while a shop is on it.\n * `DELETE /checkout-templates/{merchantId}/{templateId}`\n */\n async delete(merchantId: string, templateId: string): Promise<CheckoutTemplateResponse> {\n return this.request(\n 'DELETE',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}`,\n );\n }\n\n /**\n * Put shops on the template and copy its settings into them; a shop on\n * another template moves. Each shop is reported on its own: one with\n * `blockers` is left unchanged. `dry_run` changes nothing and reports what\n * would change.\n * `POST /checkout-templates/{merchantId}/{templateId}/shops`\n */\n async assign(\n merchantId: string,\n templateId: string,\n params: CheckoutTemplateAssignRequest,\n ): Promise<CheckoutTemplateApplyResponse> {\n return this.request(\n 'POST',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}/shops`,\n {\n body: params,\n },\n );\n }\n\n /**\n * Take a shop off the template. It keeps every setting it has, as its own.\n * `DELETE /checkout-templates/{merchantId}/{templateId}/shops/{profileId}`\n */\n async unassign(\n merchantId: string,\n templateId: string,\n profileId: string,\n ): Promise<CheckoutTemplateResponse> {\n return this.request(\n 'DELETE',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}/shops/${encodeURIComponent(profileId)}`,\n );\n }\n\n /**\n * Copy the template's current settings into its shops, all or the ones\n * named.\n * `POST /checkout-templates/{merchantId}/{templateId}/apply`\n */\n async apply(\n merchantId: string,\n templateId: string,\n params: CheckoutTemplateApplyRequest = {},\n ): Promise<CheckoutTemplateApplyResponse> {\n return this.request(\n 'POST',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}/apply`,\n {\n body: params,\n },\n );\n }\n\n /**\n * The template a shop is on, if any. Readable by the shop's own members.\n * `GET /checkout-templates/{merchantId}/shops/{profileId}`\n */\n async ofShop(merchantId: string, profileId: string): Promise<CheckoutTemplateOfShopResponse> {\n return this.request(\n 'GET',\n `/checkout-templates/${encodeURIComponent(merchantId)}/shops/${encodeURIComponent(profileId)}`,\n );\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-6LFOM6HV.cjs","../src/resources/checkoutTemplates.ts"],"names":[],"mappings":"AAAA;AC2BO,IAAM,kBAAA,EAAN,MAAwB;AAAA,EAC7B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,MAAM,IAAA,CAAK,UAAA,EAA2D;AACpE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,oBAAA,EAAuB,kBAAA,CAAmB,UAAU,CAAC,CAAA,CAAA;AAClF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUqC,EAAA;AAC8C,IAAA;AACzE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAG0F,EAAA;AAC5E,IAAA;AACV,MAAA;AAC4E,MAAA;AAC9E,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWqC,EAAA;AACvB,IAAA;AACV,MAAA;AAC4E,MAAA;AAC7D,MAAA;AACjB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWqC,EAAA;AACiC,IAAA;AACtE,EAAA;AAAA;AAAA;AAAA;AAAA;AAMwF,EAAA;AAC1E,IAAA;AACV,MAAA;AAC4E,MAAA;AAC9E,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAa0C,EAAA;AAC5B,IAAA;AACV,MAAA;AAC4E,MAAA;AAC5E,MAAA;AACQ,QAAA;AACR,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAUqC,EAAA;AACvB,IAAA;AACV,MAAA;AAC4E,MAAA;AAC9E,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAW0C,EAAA;AAC5B,IAAA;AACV,MAAA;AAC4E,MAAA;AAC5E,MAAA;AACQ,QAAA;AACR,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAM6F,EAAA;AAC/E,IAAA;AACV,MAAA;AAC+D,MAAA;AACjE,IAAA;AACF,EAAA;AACF;ADxDqF;AACA;AACA;AACA","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-6LFOM6HV.cjs","sourcesContent":[null,"import type {\n CheckoutTemplateApplyRequest,\n CheckoutTemplateApplyResponse,\n CheckoutTemplateAssignRequest,\n CheckoutTemplateCreateRequest,\n CheckoutTemplateListResponse,\n CheckoutTemplateOfShopResponse,\n CheckoutTemplateResponse,\n CheckoutTemplateUpdateRequest,\n} from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * Checkout templates: a shop's payment methods, behaviour and smart routing,\n * defined once for the merchant and used in many shops.\n *\n * A template is edited where a shop is: its own profile (`template_id`) has a\n * checkout layout, behaviour settings, routing configurations and connector\n * accounts, written with `checkoutMethods`, `shops.updateCheckoutBranding`,\n * `routing` and the connector shop methods. Its changes reach the shops on it\n * when `apply()` runs. While a shop is on a template, its own payment methods,\n * behaviour and routing cannot be changed; its appearance stays its own.\n *\n * Every method but `ofShop()` needs a merchant-level role that sees every\n * connector and payment; `create()`, `assign()` and `apply()` also need\n * routing and connector write.\n */\nexport class CheckoutTemplates {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The merchant's templates, each with the shops on it and whether each\n * runs the template's current settings.\n * `GET /checkout-templates/{merchantId}`\n */\n async list(merchantId: string): Promise<CheckoutTemplateListResponse> {\n return this.request('GET', `/checkout-templates/${encodeURIComponent(merchantId)}`);\n }\n\n /**\n * Create a template, empty or copied from a shop's current settings. The\n * shop copied from is not changed.\n * `POST /checkout-templates/{merchantId}`\n */\n async create(\n merchantId: string,\n params: CheckoutTemplateCreateRequest,\n ): Promise<CheckoutTemplateResponse> {\n return this.request('POST', `/checkout-templates/${encodeURIComponent(merchantId)}`, {\n body: params,\n });\n }\n\n /** `GET /checkout-templates/{merchantId}/{templateId}` */\n async retrieve(merchantId: string, templateId: string): Promise<CheckoutTemplateResponse> {\n return this.request(\n 'GET',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}`,\n );\n }\n\n /**\n * Update a template: rename it (a name another template of the merchant\n * holds is refused), make it the merchant's default, or both.\n * `POST /checkout-templates/{merchantId}/{templateId}`\n */\n async rename(\n merchantId: string,\n templateId: string,\n params: CheckoutTemplateUpdateRequest,\n ): Promise<CheckoutTemplateResponse> {\n return this.request(\n 'POST',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}`,\n { body: params },\n );\n }\n\n /**\n * Make the template the merchant's default, taking the mark off the one that\n * had it, or stop it being the default. No shop changes either way.\n * `POST /checkout-templates/{merchantId}/{templateId}`\n */\n async setDefault(\n merchantId: string,\n templateId: string,\n isDefault: boolean,\n ): Promise<CheckoutTemplateResponse> {\n return this.rename(merchantId, templateId, { is_default: isDefault });\n }\n\n /**\n * Delete a template. Refused while a shop is on it.\n * `DELETE /checkout-templates/{merchantId}/{templateId}`\n */\n async delete(merchantId: string, templateId: string): Promise<CheckoutTemplateResponse> {\n return this.request(\n 'DELETE',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}`,\n );\n }\n\n /**\n * Put shops on the template and copy its settings into them; a shop on\n * another template moves. Each shop is reported on its own: one with\n * `blockers` is left unchanged. `dry_run` changes nothing and reports what\n * would change.\n * `POST /checkout-templates/{merchantId}/{templateId}/shops`\n */\n async assign(\n merchantId: string,\n templateId: string,\n params: CheckoutTemplateAssignRequest,\n ): Promise<CheckoutTemplateApplyResponse> {\n return this.request(\n 'POST',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}/shops`,\n {\n body: params,\n },\n );\n }\n\n /**\n * Take a shop off the template. It keeps every setting it has, as its own.\n * `DELETE /checkout-templates/{merchantId}/{templateId}/shops/{profileId}`\n */\n async unassign(\n merchantId: string,\n templateId: string,\n profileId: string,\n ): Promise<CheckoutTemplateResponse> {\n return this.request(\n 'DELETE',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}/shops/${encodeURIComponent(profileId)}`,\n );\n }\n\n /**\n * Copy the template's current settings into its shops, all or the ones\n * named.\n * `POST /checkout-templates/{merchantId}/{templateId}/apply`\n */\n async apply(\n merchantId: string,\n templateId: string,\n params: CheckoutTemplateApplyRequest = {},\n ): Promise<CheckoutTemplateApplyResponse> {\n return this.request(\n 'POST',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}/apply`,\n {\n body: params,\n },\n );\n }\n\n /**\n * The template a shop is on, if any. Readable by the shop's own members.\n * `GET /checkout-templates/{merchantId}/shops/{profileId}`\n */\n async ofShop(merchantId: string, profileId: string): Promise<CheckoutTemplateOfShopResponse> {\n return this.request(\n 'GET',\n `/checkout-templates/${encodeURIComponent(merchantId)}/shops/${encodeURIComponent(profileId)}`,\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/sdk-pub-04970/dist/chunk-6LOWE2YI.cjs","../src/resources/cards.ts"],"names":[],"mappings":"AAAA;ACEO,IAAM,MAAA,EAAN,MAAY;AAAA,EACjB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,MAAM,MAAA,CAAO,MAAA,EAAmE;AAC9E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,eAAA,EAAiB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC/D;AAAA;AAAA,EAGA,MAAM,MAAA,CAAO,MAAA,EAAmE;AAC9E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,eAAA,EAAiB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC/D;AAAA;AAAA,EAGA,MAAM,QAAA,CAAS,GAAA,EAA+C;AAC5D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,OAAA,EAAU,kBAAA,CAAmB,GAAG,CAAC,CAAA,CAAA;AAC9D,EAAA;AACF;ADDiE;AACA;AACA;AACA","file":"/tmp/sdk-pub-04970/dist/chunk-6LOWE2YI.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\n\nexport class Cards {\n constructor(private readonly request: RequestFn) {}\n\n /** Create a card. `POST /cards/create` */\n async create(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/cards/create', { body: params });\n }\n\n /** Update a card. `POST /cards/update` */\n async update(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/cards/update', { body: params });\n }\n\n /** Retrieve card info by BIN. `GET /cards/{bin}` */\n async retrieve(bin: string): Promise<Record<string, unknown>> {\n return this.request('GET', `/cards/${encodeURIComponent(bin)}`);\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-6LOWE2YI.cjs","../src/resources/cards.ts"],"names":[],"mappings":"AAAA;ACEO,IAAM,MAAA,EAAN,MAAY;AAAA,EACjB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,MAAM,MAAA,CAAO,MAAA,EAAmE;AAC9E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,eAAA,EAAiB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC/D;AAAA;AAAA,EAGA,MAAM,MAAA,CAAO,MAAA,EAAmE;AAC9E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,eAAA,EAAiB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC/D;AAAA;AAAA,EAGA,MAAM,QAAA,CAAS,GAAA,EAA+C;AAC5D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,OAAA,EAAU,kBAAA,CAAmB,GAAG,CAAC,CAAA,CAAA;AAC9D,EAAA;AACF;ADDiE;AACA;AACA;AACA","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-6LOWE2YI.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\n\nexport class Cards {\n constructor(private readonly request: RequestFn) {}\n\n /** Create a card. `POST /cards/create` */\n async create(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/cards/create', { body: params });\n }\n\n /** Update a card. `POST /cards/update` */\n async update(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/cards/update', { body: params });\n }\n\n /** Retrieve card info by BIN. `GET /cards/{bin}` */\n async retrieve(bin: string): Promise<Record<string, unknown>> {\n return this.request('GET', `/cards/${encodeURIComponent(bin)}`);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/sdk-pub-04970/dist/chunk-6LSG5Z4T.cjs","../src/resources/checkoutRecovery.ts"],"names":[],"mappings":"AAAA;AC+BO,IAAM,iBAAA,EAAN,MAAuB;AAAA,EAC5B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlD,MAAM,QAAA,CAAS,SAAA,EAAoD;AACjE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,4BAAA,EAA+B,kBAAA,CAAmB,SAAS,CAAC,CAAA,CAAA;AACzF,EAAA;AAAA;AAAA;AAAA;AAAA;AAM+D,EAAA;AACjD,IAAA;AACV,MAAA;AAC4D,MAAA;AAC9D,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAMiE,EAAA;AACnD,IAAA;AACV,MAAA;AAC4D,MAAA;AAC9D,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQmF,EAAA;AACrE,IAAA;AACV,MAAA;AAC4D,MAAA;AAC9D,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBiC,EAAA;AACnB,IAAA;AACV,MAAA;AAC4D,MAAA;AAC7C,MAAA;AACjB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAO+F,EAAA;AACjF,IAAA;AACV,MAAA;AAC4D,MAAA;AAC7C,MAAA;AACjB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS0F,EAAA;AAC5E,IAAA;AACV,MAAA;AAC4D,MAAA;AACO,MAAA;AACrE,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAMuF,EAAA;AACzE,IAAA;AACyE,MAAA;AACrF,IAAA;AACyD,IAAA;AAC3D,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOiG,EAAA;AAClB,IAAA;AAC/E,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAO0E,EAAA;AACK,IAAA;AAC/E,EAAA;AACF;ADxC4F;AACA;AACA;AACA","file":"/tmp/sdk-pub-04970/dist/chunk-6LSG5Z4T.cjs","sourcesContent":[null,"import type {\n CandidatePreviewRequest,\n CandidatePreviewResponse,\n CheckoutReactivation,\n CheckoutReactivationPreview,\n CheckoutRecoveryStatus,\n CheckoutReminder,\n CheckoutReminderList,\n CheckoutReminderListQuery,\n ManualEmailPreview,\n ManualEmailRequest,\n ReactivateCheckoutRequest,\n TestEmailRequest,\n TestEmailResponse,\n} from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * Checkout recovery: emails that bring the buyer of an unfinished checkout\n * back to a payable checkout.\n *\n * A shop's automatic reminders are its `checkout_recovery.rule` setting,\n * written with `settings`, and their texts the `checkout_*` message templates,\n * written with `messageTemplates`. This resource reads a checkout's recovery, previews and sends a\n * message by hand, stops a checkout's reminders, previews whom a rule\n * would remind, and reactivates an expired checkout.\n *\n * Reading needs the payment read grant; sending, stopping and testing need\n * the payment write grant. A shop-scoped caller acts on its own shop only.\n * Refusals are `IR_16` (400) with `error.data.reason`.\n */\nexport class CheckoutRecovery {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * A checkout's recovery: whether and when the rule reminds it, every reason\n * it does not, every message about it, and where its link goes. Any payment\n * of the checkout may be named.\n * `GET /checkout-recovery/payments/{payment_id}`\n */\n async retrieve(paymentId: string): Promise<CheckoutRecoveryStatus> {\n return this.request('GET', `/checkout-recovery/payments/${encodeURIComponent(paymentId)}`);\n }\n\n /**\n * No automatic reminder about this checkout from now on.\n * `POST /checkout-recovery/payments/{payment_id}/stop`\n */\n async stop(paymentId: string): Promise<CheckoutRecoveryStatus> {\n return this.request(\n 'POST',\n `/checkout-recovery/payments/${encodeURIComponent(paymentId)}/stop`,\n );\n }\n\n /**\n * Undo `stop`.\n * `POST /checkout-recovery/payments/{payment_id}/resume`\n */\n async resume(paymentId: string): Promise<CheckoutRecoveryStatus> {\n return this.request(\n 'POST',\n `/checkout-recovery/payments/${encodeURIComponent(paymentId)}/resume`,\n );\n }\n\n /**\n * Whether the checkout can be reactivated now, why not when it cannot, and\n * what it would continue: order, amount, the current page's expiry and the\n * validity a reactivation gives. Changes nothing.\n * `GET /checkout-recovery/payments/{payment_id}/reactivation`\n */\n async previewReactivation(paymentId: string): Promise<CheckoutReactivationPreview> {\n return this.request(\n 'GET',\n `/checkout-recovery/payments/${encodeURIComponent(paymentId)}/reactivation`,\n );\n }\n\n /**\n * Continue an expired, unpaid checkout on a new payment for the same order,\n * amount and currency. The payment it replaces is closed first, so the two\n * can never both be charged; nothing is charged and nothing is sent to the\n * buyer. A repeated request answers with the same checkout\n * (`already_active`). Refused (`IR_16`, `error.data.reason` a\n * `ReactivationBlockedReason`, or `invalid_validity`) while the checkout is\n * paid, being paid, awaiting capture or authentication, cancelled or still\n * open, or when no payment method could pay it.\n * `POST /checkout-recovery/payments/{payment_id}/reactivate`\n */\n async reactivate(\n paymentId: string,\n params: ReactivateCheckoutRequest = {},\n ): Promise<CheckoutReactivation> {\n return this.request(\n 'POST',\n `/checkout-recovery/payments/${encodeURIComponent(paymentId)}/reactivate`,\n { body: params },\n );\n }\n\n /**\n * A message by hand as it would be sent now: recipient, sender, text, link\n * and destination, and why it would be refused. Nothing is sent.\n * `POST /checkout-recovery/payments/{payment_id}/email/preview`\n */\n async previewEmail(paymentId: string, params: ManualEmailRequest): Promise<ManualEmailPreview> {\n return this.request(\n 'POST',\n `/checkout-recovery/payments/${encodeURIComponent(paymentId)}/email/preview`,\n { body: params },\n );\n }\n\n /**\n * Send a message by hand, once per `idempotency_key`, composed again from\n * the checkout as it is now. Refused when the checkout was paid or is being\n * paid, was cancelled, the buyer unsubscribed, or no payment method could\n * pay it.\n * `POST /checkout-recovery/payments/{payment_id}/email`\n */\n async sendEmail(paymentId: string, params: ManualEmailRequest): Promise<CheckoutReminder> {\n return this.request(\n 'POST',\n `/checkout-recovery/payments/${encodeURIComponent(paymentId)}/email`,\n { body: params, bodyIdempotencyKey: params.idempotency_key ?? null },\n );\n }\n\n /**\n * Messages to buyers, newest first.\n * `GET /checkout-recovery/reminders`\n */\n async listReminders(params?: CheckoutReminderListQuery): Promise<CheckoutReminderList> {\n if (params) {\n return this.request('GET', '/checkout-recovery/reminders', { query: { ...params } });\n }\n return this.request('GET', '/checkout-recovery/reminders');\n }\n\n /**\n * The shop's recent checkouts judged under a rule (the stored one, or the\n * one given) as if switched on, with every reason. Nothing is sent.\n * `POST /checkout-recovery/candidates`\n */\n async previewCandidates(params: CandidatePreviewRequest = {}): Promise<CandidatePreviewResponse> {\n return this.request('POST', '/checkout-recovery/candidates', { body: params });\n }\n\n /**\n * A reminder with sample values, to the signed-in user's own address.\n * Dashboard sessions only.\n * `POST /checkout-recovery/test-email`\n */\n async sendTestEmail(params: TestEmailRequest): Promise<TestEmailResponse> {\n return this.request('POST', '/checkout-recovery/test-email', { body: params });\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-6LSG5Z4T.cjs","../src/resources/checkoutRecovery.ts"],"names":[],"mappings":"AAAA;AC+BO,IAAM,iBAAA,EAAN,MAAuB;AAAA,EAC5B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlD,MAAM,QAAA,CAAS,SAAA,EAAoD;AACjE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,4BAAA,EAA+B,kBAAA,CAAmB,SAAS,CAAC,CAAA,CAAA;AACzF,EAAA;AAAA;AAAA;AAAA;AAAA;AAM+D,EAAA;AACjD,IAAA;AACV,MAAA;AAC4D,MAAA;AAC9D,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAMiE,EAAA;AACnD,IAAA;AACV,MAAA;AAC4D,MAAA;AAC9D,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQmF,EAAA;AACrE,IAAA;AACV,MAAA;AAC4D,MAAA;AAC9D,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBiC,EAAA;AACnB,IAAA;AACV,MAAA;AAC4D,MAAA;AAC7C,MAAA;AACjB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAO+F,EAAA;AACjF,IAAA;AACV,MAAA;AAC4D,MAAA;AAC7C,MAAA;AACjB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS0F,EAAA;AAC5E,IAAA;AACV,MAAA;AAC4D,MAAA;AACO,MAAA;AACrE,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAMuF,EAAA;AACzE,IAAA;AACyE,MAAA;AACrF,IAAA;AACyD,IAAA;AAC3D,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOiG,EAAA;AAClB,IAAA;AAC/E,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAO0E,EAAA;AACK,IAAA;AAC/E,EAAA;AACF;ADxC4F;AACA;AACA;AACA","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-6LSG5Z4T.cjs","sourcesContent":[null,"import type {\n CandidatePreviewRequest,\n CandidatePreviewResponse,\n CheckoutReactivation,\n CheckoutReactivationPreview,\n CheckoutRecoveryStatus,\n CheckoutReminder,\n CheckoutReminderList,\n CheckoutReminderListQuery,\n ManualEmailPreview,\n ManualEmailRequest,\n ReactivateCheckoutRequest,\n TestEmailRequest,\n TestEmailResponse,\n} from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * Checkout recovery: emails that bring the buyer of an unfinished checkout\n * back to a payable checkout.\n *\n * A shop's automatic reminders are its `checkout_recovery.rule` setting,\n * written with `settings`, and their texts the `checkout_*` message templates,\n * written with `messageTemplates`. This resource reads a checkout's recovery, previews and sends a\n * message by hand, stops a checkout's reminders, previews whom a rule\n * would remind, and reactivates an expired checkout.\n *\n * Reading needs the payment read grant; sending, stopping and testing need\n * the payment write grant. A shop-scoped caller acts on its own shop only.\n * Refusals are `IR_16` (400) with `error.data.reason`.\n */\nexport class CheckoutRecovery {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * A checkout's recovery: whether and when the rule reminds it, every reason\n * it does not, every message about it, and where its link goes. Any payment\n * of the checkout may be named.\n * `GET /checkout-recovery/payments/{payment_id}`\n */\n async retrieve(paymentId: string): Promise<CheckoutRecoveryStatus> {\n return this.request('GET', `/checkout-recovery/payments/${encodeURIComponent(paymentId)}`);\n }\n\n /**\n * No automatic reminder about this checkout from now on.\n * `POST /checkout-recovery/payments/{payment_id}/stop`\n */\n async stop(paymentId: string): Promise<CheckoutRecoveryStatus> {\n return this.request(\n 'POST',\n `/checkout-recovery/payments/${encodeURIComponent(paymentId)}/stop`,\n );\n }\n\n /**\n * Undo `stop`.\n * `POST /checkout-recovery/payments/{payment_id}/resume`\n */\n async resume(paymentId: string): Promise<CheckoutRecoveryStatus> {\n return this.request(\n 'POST',\n `/checkout-recovery/payments/${encodeURIComponent(paymentId)}/resume`,\n );\n }\n\n /**\n * Whether the checkout can be reactivated now, why not when it cannot, and\n * what it would continue: order, amount, the current page's expiry and the\n * validity a reactivation gives. Changes nothing.\n * `GET /checkout-recovery/payments/{payment_id}/reactivation`\n */\n async previewReactivation(paymentId: string): Promise<CheckoutReactivationPreview> {\n return this.request(\n 'GET',\n `/checkout-recovery/payments/${encodeURIComponent(paymentId)}/reactivation`,\n );\n }\n\n /**\n * Continue an expired, unpaid checkout on a new payment for the same order,\n * amount and currency. The payment it replaces is closed first, so the two\n * can never both be charged; nothing is charged and nothing is sent to the\n * buyer. A repeated request answers with the same checkout\n * (`already_active`). Refused (`IR_16`, `error.data.reason` a\n * `ReactivationBlockedReason`, or `invalid_validity`) while the checkout is\n * paid, being paid, awaiting capture or authentication, cancelled or still\n * open, or when no payment method could pay it.\n * `POST /checkout-recovery/payments/{payment_id}/reactivate`\n */\n async reactivate(\n paymentId: string,\n params: ReactivateCheckoutRequest = {},\n ): Promise<CheckoutReactivation> {\n return this.request(\n 'POST',\n `/checkout-recovery/payments/${encodeURIComponent(paymentId)}/reactivate`,\n { body: params },\n );\n }\n\n /**\n * A message by hand as it would be sent now: recipient, sender, text, link\n * and destination, and why it would be refused. Nothing is sent.\n * `POST /checkout-recovery/payments/{payment_id}/email/preview`\n */\n async previewEmail(paymentId: string, params: ManualEmailRequest): Promise<ManualEmailPreview> {\n return this.request(\n 'POST',\n `/checkout-recovery/payments/${encodeURIComponent(paymentId)}/email/preview`,\n { body: params },\n );\n }\n\n /**\n * Send a message by hand, once per `idempotency_key`, composed again from\n * the checkout as it is now. Refused when the checkout was paid or is being\n * paid, was cancelled, the buyer unsubscribed, or no payment method could\n * pay it.\n * `POST /checkout-recovery/payments/{payment_id}/email`\n */\n async sendEmail(paymentId: string, params: ManualEmailRequest): Promise<CheckoutReminder> {\n return this.request(\n 'POST',\n `/checkout-recovery/payments/${encodeURIComponent(paymentId)}/email`,\n { body: params, bodyIdempotencyKey: params.idempotency_key ?? null },\n );\n }\n\n /**\n * Messages to buyers, newest first.\n * `GET /checkout-recovery/reminders`\n */\n async listReminders(params?: CheckoutReminderListQuery): Promise<CheckoutReminderList> {\n if (params) {\n return this.request('GET', '/checkout-recovery/reminders', { query: { ...params } });\n }\n return this.request('GET', '/checkout-recovery/reminders');\n }\n\n /**\n * The shop's recent checkouts judged under a rule (the stored one, or the\n * one given) as if switched on, with every reason. Nothing is sent.\n * `POST /checkout-recovery/candidates`\n */\n async previewCandidates(params: CandidatePreviewRequest = {}): Promise<CandidatePreviewResponse> {\n return this.request('POST', '/checkout-recovery/candidates', { body: params });\n }\n\n /**\n * A reminder with sample values, to the signed-in user's own address.\n * Dashboard sessions only.\n * `POST /checkout-recovery/test-email`\n */\n async sendTestEmail(params: TestEmailRequest): Promise<TestEmailResponse> {\n return this.request('POST', '/checkout-recovery/test-email', { body: params });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/sdk-pub-04970/dist/chunk-6SU2MTN2.cjs","../src/resources/relay.ts"],"names":[],"mappings":"AAAA;ACGO,IAAM,MAAA,EAAN,MAAY;AAAA,EACjB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,MAAA,CAAO,MAAA,EAA8C;AACzD,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,QAAA,EAAU,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACxD;AAAA,EAEA,MAAM,QAAA,CAAS,OAAA,EAAyC;AACtD,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,OAAA,EAAU,kBAAA,CAAmB,OAAO,CAAC,CAAA,CAAA;AAClE,EAAA;AACF;ADDqE;AACA;AACA;AACA","file":"/tmp/sdk-pub-04970/dist/chunk-6SU2MTN2.cjs","sourcesContent":[null,"import type { RelayRequest, RelayResponse } from '../types';\nimport type { RequestFn } from '../client';\n\nexport class Relay {\n constructor(private readonly request: RequestFn) {}\n\n async create(params: RelayRequest): Promise<RelayResponse> {\n return this.request('POST', '/relay', { body: params });\n }\n\n async retrieve(relayId: string): Promise<RelayResponse> {\n return this.request('GET', `/relay/${encodeURIComponent(relayId)}`);\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-6SU2MTN2.cjs","../src/resources/relay.ts"],"names":[],"mappings":"AAAA;ACGO,IAAM,MAAA,EAAN,MAAY;AAAA,EACjB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,MAAA,CAAO,MAAA,EAA8C;AACzD,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,QAAA,EAAU,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACxD;AAAA,EAEA,MAAM,QAAA,CAAS,OAAA,EAAyC;AACtD,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,OAAA,EAAU,kBAAA,CAAmB,OAAO,CAAC,CAAA,CAAA;AAClE,EAAA;AACF;ADDqE;AACA;AACA;AACA","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-6SU2MTN2.cjs","sourcesContent":[null,"import type { RelayRequest, RelayResponse } from '../types';\nimport type { RequestFn } from '../client';\n\nexport class Relay {\n constructor(private readonly request: RequestFn) {}\n\n async create(params: RelayRequest): Promise<RelayResponse> {\n return this.request('POST', '/relay', { body: params });\n }\n\n async retrieve(relayId: string): Promise<RelayResponse> {\n return this.request('GET', `/relay/${encodeURIComponent(relayId)}`);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/sdk-pub-04970/dist/chunk-6YCDLSIU.cjs","../src/resources/processorCosts.ts"],"names":[],"mappings":"AAAA;ACiCO,IAAM,eAAA,EAAN,MAAqB;AAAA,EAC1B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlD,M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;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUoE,EAAA;AACG,IAAA;AAClC,MAAA;AAClC,IAAA;AACH,EAAA;AACF;ADlDkF;AACA;AACA;AACA","file":"/tmp/sdk-pub-04970/dist/chunk-6YCDLSIU.cjs","sourcesContent":[null,"import type {\n BulkCreateProcessorCostSchedulesRequest,\n CreateProcessorCostScheduleRequest,\n ProcessorCostScheduleResponse,\n ReplaceProcessorCostScheduleRequest,\n UpdateProcessorCostScheduleRequest,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * A merchant's own processor cost schedules: what the processor the merchant\n * brought itself charges it, per connector and — as narrowly as the rate is\n * written — per shop, payment method, method type, card network or the\n * processor's own method code.\n *\n * A schedule prices the rails that report no fee on the payment itself. What\n * it produces is stamped `estimated` on the settlement line, never\n * `reported`, and the rates that priced it are copied onto the line as\n * `processor_cost_basis` so the figure survives the schedule being replaced\n * or deleted.\n *\n * The DeloPay-wide defaults a merchant inherits are DeloPay's own acquirer\n * pricing. They are never listed here, and they are edited through the\n * internal client instead (`DelopayInternal.adminPortal`).\n *\n * A rate is never edited in place: it priced transactions that already\n * happened. {@link ProcessorCosts.update} only closes, deactivates or\n * annotates a schedule; a price change is {@link ProcessorCosts.replace},\n * which closes the old window and opens the successor in one step.\n *\n * Every route takes the merchant account id and needs a dashboard session for\n * that merchant.\n */\nexport class ProcessorCosts {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Every processor cost schedule of the merchant.\n * `GET /processor-costs`\n *\n * @param merchantId - The merchant account ID.\n */\n async list(merchantId: string): Promise<ProcessorCostScheduleResponse[]> {\n return this.request('GET', '/processor-costs', { query: { merchant_id: merchantId } });\n }\n\n /**\n * Record a processor cost schedule.\n * `POST /processor-costs`\n *\n * A `shop_id` that is well formed but not a shop of this merchant is\n * answered `404` and nothing is recorded: a rate scoped to a shop the\n * merchant does not own would price no attempt, leaving every line it was\n * meant to price `unavailable` while the screen showed a configured rate.\n *\n * @param params - The schedule.\n * @param merchantId - The merchant account ID.\n */\n async create(\n params: CreateProcessorCostScheduleRequest,\n merchantId: string,\n ): Promise<ProcessorCostScheduleResponse> {\n return this.request('POST', '/processor-costs', {\n body: params,\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Record several schedules at once, all or none — copy a price list across\n * methods or shops.\n * `POST /processor-costs/bulk`\n *\n * 1 to 200 entries. Every entry is validated before anything is stored: an\n * invalid one is answered `422` naming its index, and nothing is stored.\n * The answer lists the created schedules in request order.\n *\n * @param params - The schedules.\n * @param merchantId - The merchant account ID.\n */\n async bulkCreate(\n params: BulkCreateProcessorCostSchedulesRequest,\n merchantId: string,\n ): Promise<ProcessorCostScheduleResponse[]> {\n return this.request('POST', '/processor-costs/bulk', {\n body: params,\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Close, deactivate or annotate a schedule. The rate is not editable.\n * `PUT /processor-costs/{schedule_id}`\n *\n * @param scheduleId - The schedule ID.\n * @param params - What to change.\n * @param merchantId - The merchant account ID.\n */\n async update(\n scheduleId: string,\n params: UpdateProcessorCostScheduleRequest,\n merchantId: string,\n ): Promise<ProcessorCostScheduleResponse> {\n return this.request('PUT', `/processor-costs/${encodeURIComponent(scheduleId)}`, {\n body: params,\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Close a schedule at `effective_from` and open its successor with the same\n * scope and the same end, in one step: no transaction is priced by both\n * rates, and none falls between them.\n * `POST /processor-costs/{schedule_id}/replace`\n *\n * Answers the successor schedule. An `effective_from` outside the old\n * schedule's window, an inactive schedule, or one a concurrent replacement\n * already moved is answered `400` — retry against the schedule as it now\n * stands rather than forcing the write.\n *\n * @param scheduleId - The schedule to replace.\n * @param params - The new rate.\n * @param merchantId - The merchant account ID.\n */\n async replace(\n scheduleId: string,\n params: ReplaceProcessorCostScheduleRequest,\n merchantId: string,\n options?: RequestExtras,\n ): Promise<ProcessorCostScheduleResponse> {\n return this.request('POST', `/processor-costs/${encodeURIComponent(scheduleId)}/replace`, {\n body: params,\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * Delete a schedule. Restates nothing: every figure it derived is already\n * stamped on the settlement lines it priced.\n * `DELETE /processor-costs/{schedule_id}`\n *\n * @param scheduleId - The schedule ID.\n * @param merchantId - The merchant account ID.\n */\n async delete(scheduleId: string, merchantId: string): Promise<void> {\n return this.request('DELETE', `/processor-costs/${encodeURIComponent(scheduleId)}`, {\n query: { merchant_id: merchantId },\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-6YCDLSIU.cjs","../src/resources/processorCosts.ts"],"names":[],"mappings":"AAAA;ACiCO,IAAM,eAAA,EAAN,MAAqB;AAAA,EAC1B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlD,MAAM,IAAA,CAAK,UAAA,EAA8D;AACvE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,kBAAA,EAAoB,EAAE,KAAA,EAAO,EAAE,WAAA,EAAa,WAAW,EAAE,CAAC,CAAA;AAAA,EACvF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcA,MAAM,MAAA,CACJ,MAAA,EACA,UAAA,EACwC;AACxC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,kBAAA,EAAoB;AAAA,MAC9C,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,EAAE,WAAA,EAAa,WAAW;AAAA,IACnC,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcA,MAAM,UAAA,CACJ,MAAA,EACA,UAAA,EAC0C;AAC1C,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,uBAAA,EAAyB;AAAA,MACnD,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,EAAE,WAAA,EAAa,WAAW;AAAA,IACnC,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,MAAM,MAAA,CACJ,UAAA,EACA,MAAA,EACA,UAAA,EACwC;AACxC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,iBAAA,EAAoB,kBAAA,CAAmB,UAAU,CAAC,CAAA,CAAA;AACrE,MAAA;AAC2B,MAAA;AAClC,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsB0C,EAAA;AACsC,IAAA;AACtE,MAAA;AAC2B,MAAA;AAC9B,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUoE,EAAA;AACG,IAAA;AAClC,MAAA;AAClC,IAAA;AACH,EAAA;AACF;ADlDkF;AACA;AACA;AACA","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-6YCDLSIU.cjs","sourcesContent":[null,"import type {\n BulkCreateProcessorCostSchedulesRequest,\n CreateProcessorCostScheduleRequest,\n ProcessorCostScheduleResponse,\n ReplaceProcessorCostScheduleRequest,\n UpdateProcessorCostScheduleRequest,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * A merchant's own processor cost schedules: what the processor the merchant\n * brought itself charges it, per connector and — as narrowly as the rate is\n * written — per shop, payment method, method type, card network or the\n * processor's own method code.\n *\n * A schedule prices the rails that report no fee on the payment itself. What\n * it produces is stamped `estimated` on the settlement line, never\n * `reported`, and the rates that priced it are copied onto the line as\n * `processor_cost_basis` so the figure survives the schedule being replaced\n * or deleted.\n *\n * The DeloPay-wide defaults a merchant inherits are DeloPay's own acquirer\n * pricing. They are never listed here, and they are edited through the\n * internal client instead (`DelopayInternal.adminPortal`).\n *\n * A rate is never edited in place: it priced transactions that already\n * happened. {@link ProcessorCosts.update} only closes, deactivates or\n * annotates a schedule; a price change is {@link ProcessorCosts.replace},\n * which closes the old window and opens the successor in one step.\n *\n * Every route takes the merchant account id and needs a dashboard session for\n * that merchant.\n */\nexport class ProcessorCosts {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Every processor cost schedule of the merchant.\n * `GET /processor-costs`\n *\n * @param merchantId - The merchant account ID.\n */\n async list(merchantId: string): Promise<ProcessorCostScheduleResponse[]> {\n return this.request('GET', '/processor-costs', { query: { merchant_id: merchantId } });\n }\n\n /**\n * Record a processor cost schedule.\n * `POST /processor-costs`\n *\n * A `shop_id` that is well formed but not a shop of this merchant is\n * answered `404` and nothing is recorded: a rate scoped to a shop the\n * merchant does not own would price no attempt, leaving every line it was\n * meant to price `unavailable` while the screen showed a configured rate.\n *\n * @param params - The schedule.\n * @param merchantId - The merchant account ID.\n */\n async create(\n params: CreateProcessorCostScheduleRequest,\n merchantId: string,\n ): Promise<ProcessorCostScheduleResponse> {\n return this.request('POST', '/processor-costs', {\n body: params,\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Record several schedules at once, all or none — copy a price list across\n * methods or shops.\n * `POST /processor-costs/bulk`\n *\n * 1 to 200 entries. Every entry is validated before anything is stored: an\n * invalid one is answered `422` naming its index, and nothing is stored.\n * The answer lists the created schedules in request order.\n *\n * @param params - The schedules.\n * @param merchantId - The merchant account ID.\n */\n async bulkCreate(\n params: BulkCreateProcessorCostSchedulesRequest,\n merchantId: string,\n ): Promise<ProcessorCostScheduleResponse[]> {\n return this.request('POST', '/processor-costs/bulk', {\n body: params,\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Close, deactivate or annotate a schedule. The rate is not editable.\n * `PUT /processor-costs/{schedule_id}`\n *\n * @param scheduleId - The schedule ID.\n * @param params - What to change.\n * @param merchantId - The merchant account ID.\n */\n async update(\n scheduleId: string,\n params: UpdateProcessorCostScheduleRequest,\n merchantId: string,\n ): Promise<ProcessorCostScheduleResponse> {\n return this.request('PUT', `/processor-costs/${encodeURIComponent(scheduleId)}`, {\n body: params,\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Close a schedule at `effective_from` and open its successor with the same\n * scope and the same end, in one step: no transaction is priced by both\n * rates, and none falls between them.\n * `POST /processor-costs/{schedule_id}/replace`\n *\n * Answers the successor schedule. An `effective_from` outside the old\n * schedule's window, an inactive schedule, or one a concurrent replacement\n * already moved is answered `400` — retry against the schedule as it now\n * stands rather than forcing the write.\n *\n * @param scheduleId - The schedule to replace.\n * @param params - The new rate.\n * @param merchantId - The merchant account ID.\n */\n async replace(\n scheduleId: string,\n params: ReplaceProcessorCostScheduleRequest,\n merchantId: string,\n options?: RequestExtras,\n ): Promise<ProcessorCostScheduleResponse> {\n return this.request('POST', `/processor-costs/${encodeURIComponent(scheduleId)}/replace`, {\n body: params,\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * Delete a schedule. Restates nothing: every figure it derived is already\n * stamped on the settlement lines it priced.\n * `DELETE /processor-costs/{schedule_id}`\n *\n * @param scheduleId - The schedule ID.\n * @param merchantId - The merchant account ID.\n */\n async delete(scheduleId: string, merchantId: string): Promise<void> {\n return this.request('DELETE', `/processor-costs/${encodeURIComponent(scheduleId)}`, {\n query: { merchant_id: merchantId },\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/sdk-pub-04970/dist/chunk-75E5WNJG.cjs","../src/resources/payouts.ts"],"names":[],"mappings":"AAAA;ACUO,IAAM,QAAA,EAAN,MAAc;AAAA,EACnB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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ist/chunk-75E5WNJG.cjs","sourcesContent":[null,"import type {\n PayoutCreateRequest,\n PayoutResponse,\n PayoutUpdateRequest,\n PayoutListParams,\n PayoutListResponse,\n} from '../types';\nimport type { RequestFn } from '../client';\n\n/** Create and manage payouts — fund transfers from merchant to a recipient bank account. */\nexport class Payouts {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Create a new payout.\n *\n * @param params - Payout parameters including amount, currency, and destination.\n * @returns The created payout.\n *\n * @example\n * ```typescript\n * const payout = await delopay.payouts.create({\n * amount: 10000,\n * currency: 'EUR',\n * customer_id: 'cus_123',\n * });\n * ```\n */\n async create(params: PayoutCreateRequest): Promise<PayoutResponse> {\n return this.request('POST', '/payouts/create', { body: params });\n }\n\n /**\n * Retrieve a payout by its ID.\n *\n * @param payoutId - The unique payout ID.\n * @returns The payout.\n */\n async retrieve(payoutId: string): Promise<PayoutResponse> {\n return this.request('GET', `/payouts/${encodeURIComponent(payoutId)}`);\n }\n\n /**\n * Update a payout before it is confirmed.\n *\n * @param payoutId - The payout ID to update.\n * @param params - Fields to update.\n * @returns The updated payout.\n */\n async update(payoutId: string, params: PayoutUpdateRequest): Promise<PayoutResponse> {\n return this.request('PUT', `/payouts/${encodeURIComponent(payoutId)}`, { body: params });\n }\n\n /**\n * Confirm a payout, triggering the actual transfer.\n *\n * @param payoutId - The payout ID to confirm.\n * @param params - Optional confirmation parameters.\n * @returns The updated payout.\n */\n async confirm(payoutId: string, params?: PayoutUpdateRequest): Promise<PayoutResponse> {\n return this.request('POST', `/payouts/${encodeURIComponent(payoutId)}/confirm`, {\n body: params,\n });\n }\n\n /**\n * Cancel a payout before it is fulfilled.\n *\n * @param payoutId - The payout ID to cancel.\n * @returns The cancelled payout.\n */\n async cancel(payoutId: string): Promise<PayoutResponse> {\n return this.request('POST', `/payouts/${encodeURIComponent(payoutId)}/cancel`);\n }\n\n /**\n * Mark a payout as fulfilled (manual confirmation of successful transfer).\n *\n * @param payoutId - The payout ID to fulfil.\n * @returns The fulfilled payout.\n */\n async fulfill(payoutId: string): Promise<PayoutResponse> {\n return this.request('POST', `/payouts/${encodeURIComponent(payoutId)}/fulfill`);\n }\n\n /**\n * List payouts, optionally filtered by status or date range.\n *\n * @param params - Optional filter and pagination parameters.\n * @returns Paginated list of payouts.\n */\n async list(params?: PayoutListParams): Promise<PayoutListResponse> {\n return this.request('GET', '/payouts/list', {\n query: params as Record<string, string | number | undefined>,\n });\n }\n\n // --- OLAP extensions (Task 4.5) ---\n\n /** List payouts (profile-scoped). `GET /payouts/profile/list` */\n async listByProfile(params?: PayoutListParams): Promise<PayoutListResponse> {\n return this.request('GET', '/payouts/profile/list', {\n query: params as Record<string, string | number | undefined>,\n });\n }\n\n /** List payouts by filter (POST body). `POST /payouts/list` */\n async listByFilter(params: Record<string, unknown>): Promise<PayoutListResponse> {\n return this.request('POST', '/payouts/list', { body: params });\n }\n\n /** Get payout filter options. `GET /payouts/filter` */\n async getFilters(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/payouts/filter', { query: params });\n }\n\n /** Get payout filters (profile-scoped). `GET /payouts/profile/filter` */\n async getFiltersByProfile(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/payouts/profile/filter', { query: params });\n }\n\n /** Get payout aggregates. `GET /payouts/aggregate` */\n async aggregate(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/payouts/aggregate', { query: params });\n }\n\n /** Get payout aggregates (profile-scoped). `GET /payouts/profile/aggregate` */\n async aggregateByProfile(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/payouts/profile/aggregate', { query: params });\n }\n\n /** Manually update payout status. `PUT /payouts/{payoutId}/manual-update` */\n async manualUpdate(payoutId: string, params: Record<string, unknown>): Promise<PayoutResponse> {\n return this.request('PUT', `/payouts/${encodeURIComponent(payoutId)}/manual-update`, {\n body: params,\n });\n }\n}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,EAAA;AAAA;AAKoC,EAAA;AAC6B,IAAA;AACjE,EAAA;AAAA;AAKoC,EAAA;AAC6B,IAAA;AACjE,EAAA;AAAA;AAKoC,EAAA;AACgC,IAAA;AACpE,EAAA;AAAA;AAKoC,EAAA;AACgC,IAAA;AACpE,EAAA;AAAA;AAG+F,EAAA;AAC1B,IAAA;AAC3D,MAAA;AACP,IAAA;AACH,EAAA;AACF;AD7BwE;AACA;AACA;AACA","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-75E5WNJG.cjs","sourcesContent":[null,"import type {\n PayoutCreateRequest,\n PayoutResponse,\n PayoutUpdateRequest,\n PayoutListParams,\n PayoutListResponse,\n} from '../types';\nimport type { RequestFn } from '../client';\n\n/** Create and manage payouts — fund transfers from merchant to a recipient bank account. */\nexport class Payouts {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Create a new payout.\n *\n * @param params - Payout parameters including amount, currency, and destination.\n * @returns The created payout.\n *\n * @example\n * ```typescript\n * const payout = await delopay.payouts.create({\n * amount: 10000,\n * currency: 'EUR',\n * customer_id: 'cus_123',\n * });\n * ```\n */\n async create(params: PayoutCreateRequest): Promise<PayoutResponse> {\n return this.request('POST', '/payouts/create', { body: params });\n }\n\n /**\n * Retrieve a payout by its ID.\n *\n * @param payoutId - The unique payout ID.\n * @returns The payout.\n */\n async retrieve(payoutId: string): Promise<PayoutResponse> {\n return this.request('GET', `/payouts/${encodeURIComponent(payoutId)}`);\n }\n\n /**\n * Update a payout before it is confirmed.\n *\n * @param payoutId - The payout ID to update.\n * @param params - Fields to update.\n * @returns The updated payout.\n */\n async update(payoutId: string, params: PayoutUpdateRequest): Promise<PayoutResponse> {\n return this.request('PUT', `/payouts/${encodeURIComponent(payoutId)}`, { body: params });\n }\n\n /**\n * Confirm a payout, triggering the actual transfer.\n *\n * @param payoutId - The payout ID to confirm.\n * @param params - Optional confirmation parameters.\n * @returns The updated payout.\n */\n async confirm(payoutId: string, params?: PayoutUpdateRequest): Promise<PayoutResponse> {\n return this.request('POST', `/payouts/${encodeURIComponent(payoutId)}/confirm`, {\n body: params,\n });\n }\n\n /**\n * Cancel a payout before it is fulfilled.\n *\n * @param payoutId - The payout ID to cancel.\n * @returns The cancelled payout.\n */\n async cancel(payoutId: string): Promise<PayoutResponse> {\n return this.request('POST', `/payouts/${encodeURIComponent(payoutId)}/cancel`);\n }\n\n /**\n * Mark a payout as fulfilled (manual confirmation of successful transfer).\n *\n * @param payoutId - The payout ID to fulfil.\n * @returns The fulfilled payout.\n */\n async fulfill(payoutId: string): Promise<PayoutResponse> {\n return this.request('POST', `/payouts/${encodeURIComponent(payoutId)}/fulfill`);\n }\n\n /**\n * List payouts, optionally filtered by status or date range.\n *\n * @param params - Optional filter and pagination parameters.\n * @returns Paginated list of payouts.\n */\n async list(params?: PayoutListParams): Promise<PayoutListResponse> {\n return this.request('GET', '/payouts/list', {\n query: params as Record<string, string | number | undefined>,\n });\n }\n\n // --- OLAP extensions (Task 4.5) ---\n\n /** List payouts (profile-scoped). `GET /payouts/profile/list` */\n async listByProfile(params?: PayoutListParams): Promise<PayoutListResponse> {\n return this.request('GET', '/payouts/profile/list', {\n query: params as Record<string, string | number | undefined>,\n });\n }\n\n /** List payouts by filter (POST body). `POST /payouts/list` */\n async listByFilter(params: Record<string, unknown>): Promise<PayoutListResponse> {\n return this.request('POST', '/payouts/list', { body: params });\n }\n\n /** Get payout filter options. `GET /payouts/filter` */\n async getFilters(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/payouts/filter', { query: params });\n }\n\n /** Get payout filters (profile-scoped). `GET /payouts/profile/filter` */\n async getFiltersByProfile(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/payouts/profile/filter', { query: params });\n }\n\n /** Get payout aggregates. `GET /payouts/aggregate` */\n async aggregate(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/payouts/aggregate', { query: params });\n }\n\n /** Get payout aggregates (profile-scoped). `GET /payouts/profile/aggregate` */\n async aggregateByProfile(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/payouts/profile/aggregate', { query: params });\n }\n\n /** Manually update payout status. `PUT /payouts/{payoutId}/manual-update` */\n async manualUpdate(payoutId: string, params: Record<string, unknown>): Promise<PayoutResponse> {\n return this.request('PUT', `/payouts/${encodeURIComponent(payoutId)}/manual-update`, {\n body: params,\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/sdk-pub-04970/dist/chunk-7JV6VVO7.cjs","../src/resources/externalRecords.ts"],"names":[],"mappings":"AAAA;ACqBO,IAAM,gBAAA,EAAN,MAAsB;AAAA,EAC3B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYlD,MAAM,MAAA,CAAO,MAAA,EAAgE;AAC3E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,mBAAA,EAAqB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACnE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBA,MAAM,YAAA,CAAA,EAAoD;AACxD,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,gCAAgC,CAAA;AAAA,EAC7D;AACF,CAAA;ADnBA;AACA;AACE;AACF,0CAAC","file":"/tmp/sdk-pub-04970/dist/chunk-7JV6VVO7.cjs","sourcesContent":[null,"import type {\n ExternalRecordCapabilities,\n ExternalRecordRequest,\n ExternalRecordResponse,\n} from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * Out-of-band transitions: what a PSP did that DeloPay never observed.\n *\n * A refund issued in the PSP's own dashboard, a chargeback settled by phone, a\n * payment the rail holds as paid but never sent a usable notification for. The\n * transition is written through the normal path, an outgoing webhook is raised\n * for the shop, and an audit row records who asserted it and why.\n *\n * This asserts a fact about somebody else's money, so it is deliberately\n * expensive to call: the reason is compelled, the PSP's own reference belongs\n * with it, and every record is attributable. It needs a dashboard session with\n * the profile external-record write permission — an API key reaches nothing\n * here.\n */\nexport class ExternalRecords {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Record one out-of-band transition.\n * `POST /external-records`\n *\n * Which kinds a deployment answers for depends on the payment's connector\n * and on which arms are live: an arm that is not served answers `501`, which\n * is a statement about this rail rather than about the request.\n *\n * @param params - What happened, and why it is being recorded.\n */\n async create(params: ExternalRecordRequest): Promise<ExternalRecordResponse> {\n return this.request('POST', '/external-records', { body: params });\n }\n\n /**\n * What this deployment will accept, per kind.\n * `GET /external-records/capabilities`\n *\n * Read it before offering the operator a form. Every kind is listed, so an\n * entry that is not served is distinguishable from a kind this release does\n * not know at all — and `create` says *why* it is not served: a gap\n * (`not_implemented`) or a rule (`not_applicable`). Treating those as the\n * same thing is how a caller ends up waiting for something that will never\n * be built.\n *\n * The answer includes the current merchant's rollout and storage eligibility.\n * Read it for the authenticated merchant when deciding whether to offer an\n * action; do not reuse another merchant's response or a previous session's\n * answer after eligibility may have changed.\n */\n async capabilities(): Promise<ExternalRecordCapabilities> {\n return this.request('GET', '/external-records/capabilities');\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-7JV6VVO7.cjs","../src/resources/externalRecords.ts"],"names":[],"mappings":"AAAA;ACqBO,IAAM,gBAAA,EAAN,MAAsB;AAAA,EAC3B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYlD,MAAM,MAAA,CAAO,MAAA,EAAgE;AAC3E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,mBAAA,EAAqB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACnE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBA,MAAM,YAAA,CAAA,EAAoD;AACxD,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,gCAAgC,CAAA;AAAA,EAC7D;AACF,CAAA;ADnBA;AACA;AACE;AACF,0CAAC","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-7JV6VVO7.cjs","sourcesContent":[null,"import type {\n ExternalRecordCapabilities,\n ExternalRecordRequest,\n ExternalRecordResponse,\n} from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * Out-of-band transitions: what a PSP did that DeloPay never observed.\n *\n * A refund issued in the PSP's own dashboard, a chargeback settled by phone, a\n * payment the rail holds as paid but never sent a usable notification for. The\n * transition is written through the normal path, an outgoing webhook is raised\n * for the shop, and an audit row records who asserted it and why.\n *\n * This asserts a fact about somebody else's money, so it is deliberately\n * expensive to call: the reason is compelled, the PSP's own reference belongs\n * with it, and every record is attributable. It needs a dashboard session with\n * the profile external-record write permission — an API key reaches nothing\n * here.\n */\nexport class ExternalRecords {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Record one out-of-band transition.\n * `POST /external-records`\n *\n * Which kinds a deployment answers for depends on the payment's connector\n * and on which arms are live: an arm that is not served answers `501`, which\n * is a statement about this rail rather than about the request.\n *\n * @param params - What happened, and why it is being recorded.\n */\n async create(params: ExternalRecordRequest): Promise<ExternalRecordResponse> {\n return this.request('POST', '/external-records', { body: params });\n }\n\n /**\n * What this deployment will accept, per kind.\n * `GET /external-records/capabilities`\n *\n * Read it before offering the operator a form. Every kind is listed, so an\n * entry that is not served is distinguishable from a kind this release does\n * not know at all — and `create` says *why* it is not served: a gap\n * (`not_implemented`) or a rule (`not_applicable`). Treating those as the\n * same thing is how a caller ends up waiting for something that will never\n * be built.\n *\n * The answer includes the current merchant's rollout and storage eligibility.\n * Read it for the authenticated merchant when deciding whether to offer an\n * action; do not reuse another merchant's response or a previous session's\n * answer after eligibility may have changed.\n */\n async capabilities(): Promise<ExternalRecordCapabilities> {\n return this.request('GET', '/external-records/capabilities');\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/sdk-pub-04970/dist/chunk-7NKJD5ST.cjs","../src/resources/shareLinks.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,wDAA6B;AAC7B;AACA;ACSA,IAAM,iCAAA,kBAAmC,IAAI,GAAA,CAAI,CAAC,mBAAA,EAAqB,gBAAgB,CAAC,CAAA;AAExF,SAAS,SAAA,CAAU,KAAA,EAAgE;AACjF,EAAA,GAAA,iBAAI,KAAA,2BAAO,cAAA,IAAgB,KAAA,CAAA,EAAW,OAAO,KAAA,CAAA;AAC7C,EAAA,OAAO,EAAE,WAAA,EAAa,MAAA,CAAO,KAAA,CAAM,WAAW,EAAE,CAAA;AAClD;AAEA,SAAS,wBAAA,CAAyB,GAAA,EAAiD;AACjF,EAAA,GAAA,CAAI,CAAA,CAAE,IAAA,WAAe,4CAAA,CAAA,EAA6B,OAAO,KAAA;AACzD,EAAA,MAAM,OAAA,kBAAS,GAAA,qBAAI,IAAA,6BAAM,QAAA;AACzB,EAAA,OACE,GAAA,CAAI,KAAA,IAAS,QAAA,GACb,OAAO,OAAA,IAAW,SAAA,GAClB,gCAAA,CAAiC,GAAA,CAAI,MAAM,CAAA;AAE/C;AAcO,IAAM,WAAA,EAAN,MAAiB;AAAA,EACtB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlD,MAAM,aAAA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AAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,IAAA,CAAK,KAAA,EAA4B,OAAA,EAAyD;AAC9F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,cAAA,EAAgB;AAAA,MACzC,GAAG,OAAA;AAAA,MACH,KAAA,EAAO,SAAA,CAAU,KAAK;AAAA,IACxB,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,MAAA,CAAO,MAAA,EAAgB,OAAA,EAAoD;AAC/E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,QAAA,EAAU,CAAA,aAAA,EAAgB,kBAAA,CAAmB,MAAM,CAAC,CAAA,CAAA;AAC1E,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWqC,EAAA;AACiB,IAAA;AAC/C,MAAA;AACH,MAAA;AACD,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAegG,EAAA;AAC1F,IAAA;AACqD,MAAA;AAClD,QAAA;AACH,QAAA;AACoB,QAAA;AACrB,MAAA;AACW,IAAA;AACuB,MAAA;AACG,QAAA;AACtB,UAAA;AACF,UAAA;AACA,UAAA;AACK,UAAA;AACF,UAAA;AACH,UAAA;AACX,QAAA;AACH,MAAA;AACM,MAAA;AACR,IAAA;AACF,EAAA;AACF;ADnD6E;AACA;AACA;AACA","file":"/tmp/sdk-pub-04970/dist/chunk-7NKJD5ST.cjs","sourcesContent":[null,"import type { RequestExtras, RequestFn } from '../client';\nimport { DelopayAuthenticationError, DelopayError } from '../error';\nimport type {\n ShareLinkCreateRequest,\n ShareLinkCreateResponse,\n ShareLinkListQuery,\n ShareLinkListResponse,\n ShareLinkOpenRequest,\n ShareLinkOpenResponse,\n ShareLinkPreviewRequest,\n ShareLinkPreviewResponse,\n ShareLinkSummary,\n} from '../types';\n\nconst SHARE_PASSWORD_CHALLENGE_REASONS = new Set(['password_required', 'password_wrong']);\n\nfunction listQuery(query?: ShareLinkListQuery): Record<string, string> | undefined {\n if (query?.active_only === undefined) return undefined;\n return { active_only: String(query.active_only) };\n}\n\nfunction isSharePasswordChallenge(err: unknown): err is DelopayAuthenticationError {\n if (!(err instanceof DelopayAuthenticationError)) return false;\n const reason = err.data?.reason;\n return (\n err.code === 'IR_18' &&\n typeof reason === 'string' &&\n SHARE_PASSWORD_CHALLENGE_REASONS.has(reason)\n );\n}\n\n/**\n * Expiring external share links for a single person or a single payment.\n *\n * Team members with read access to the underlying person or payment can create,\n * inspect, and revoke expiring read-only links while link sharing is switched\n * on for the merchant (`sharing.share_links_enabled`). The secret share token\n * is returned once on creation and never stored in plaintext.\n *\n * `preview` and `open` are public, credential-less endpoints: pass a client\n * built with no API key and no JWT so a signed-in tab's bearer token is never\n * sent to a public share route.\n */\nexport class ShareLinks {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * List share links created for one person (active links followed by recent\n * history, or active links only when `query.active_only` is `true`).\n *\n * `GET /persons/{personId}/share-links`\n */\n async listForPerson(\n personId: string,\n query?: ShareLinkListQuery,\n options?: RequestExtras,\n ): Promise<ShareLinkListResponse> {\n return this.request('GET', `/persons/${encodeURIComponent(personId)}/share-links`, {\n ...options,\n query: listQuery(query),\n });\n }\n\n /**\n * Create an expiring share link for one person. The response returns the\n * secret `token` once.\n *\n * `POST /persons/{personId}/share-links`\n */\n async createForPerson(\n personId: string,\n body: ShareLinkCreateRequest,\n options?: RequestExtras,\n ): Promise<ShareLinkCreateResponse> {\n return this.request('POST', `/persons/${encodeURIComponent(personId)}/share-links`, {\n ...options,\n body,\n bodyIdempotencyKey: null,\n });\n }\n\n /**\n * List share links created for one payment (active links followed by recent\n * history, or active links only when `query.active_only` is `true`).\n *\n * `GET /payments/{paymentId}/share-links`\n */\n async listForPayment(\n paymentId: string,\n query?: ShareLinkListQuery,\n options?: RequestExtras,\n ): Promise<ShareLinkListResponse> {\n return this.request('GET', `/payments/${encodeURIComponent(paymentId)}/share-links`, {\n ...options,\n query: listQuery(query),\n });\n }\n\n /**\n * Create an expiring share link for one payment. The response returns the\n * secret `token` once. Setting `include_team_notes: true` also requires\n * person-read access.\n *\n * `POST /payments/{paymentId}/share-links`\n */\n async createForPayment(\n paymentId: string,\n body: ShareLinkCreateRequest,\n options?: RequestExtras,\n ): Promise<ShareLinkCreateResponse> {\n return this.request('POST', `/payments/${encodeURIComponent(paymentId)}/share-links`, {\n ...options,\n body,\n bodyIdempotencyKey: null,\n });\n }\n\n /**\n * List share links across the merchant account, filtered to the resources\n * and shop scope the caller may read.\n *\n * `GET /share-links`\n */\n async list(query?: ShareLinkListQuery, options?: RequestExtras): Promise<ShareLinkListResponse> {\n return this.request('GET', '/share-links', {\n ...options,\n query: listQuery(query),\n });\n }\n\n /**\n * Revoke an active share link immediately. Subsequent preview or open\n * attempts are refused with `410` (`reason: \"revoked\"`).\n *\n * `DELETE /share-links/{linkId}`\n */\n async revoke(linkId: string, options?: RequestExtras): Promise<ShareLinkSummary> {\n return this.request('DELETE', `/share-links/${encodeURIComponent(linkId)}`, options);\n }\n\n /**\n * Public metadata preview for a share link. Does not consume a view and\n * requires no authentication.\n *\n * `POST /share-links/preview`\n */\n async preview(\n body: ShareLinkPreviewRequest,\n options?: RequestExtras,\n ): Promise<ShareLinkPreviewResponse> {\n return this.request('POST', '/share-links/preview', {\n ...options,\n body,\n });\n }\n\n /**\n * Public open for a share link. Validates expiry, view limit, account switch\n * and optional password, consumes one view atomically, writes the view audit\n * entry, and returns the redacted read-only person or payment view.\n *\n * A missing or incorrect share password (`401` `IR_18` with `data.reason` of\n * `password_required` or `password_wrong`) is surfaced as a plain\n * `DelopayError` rather than `DelopayAuthenticationError` so callers prompt\n * for the share password instead of taking an API-key or sign-in recovery\n * path.\n *\n * `POST /share-links/open`\n */\n async open(body: ShareLinkOpenRequest, options?: RequestExtras): Promise<ShareLinkOpenResponse> {\n try {\n return await this.request('POST', '/share-links/open', {\n ...options,\n body,\n bodyIdempotencyKey: null,\n });\n } catch (err) {\n if (isSharePasswordChallenge(err)) {\n throw new DelopayError(err.message, {\n status: err.status,\n code: err.code,\n type: err.type,\n requestId: err.requestId,\n rawBody: err.rawBody,\n data: err.data,\n });\n }\n throw err;\n }\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-7NKJD5ST.cjs","../src/resources/shareLinks.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,wDAA6B;AAC7B;AACA;ACSA,IAAM,iCAAA,kBAAmC,IAAI,GAAA,CAAI,CAAC,mBAAA,EAAqB,gBAAgB,CAAC,CAAA;AAExF,SAAS,SAAA,CAAU,KAAA,EAAgE;AACjF,EAAA,GAAA,iBAAI,KAAA,2BAAO,cAAA,IAAgB,KAAA,CAAA,EAAW,OAAO,KAAA,CAAA;AAC7C,EAAA,OAAO,EAAE,WAAA,EAAa,MAAA,CAAO,KAAA,CAAM,WAAW,EAAE,CAAA;AAClD;AAEA,SAAS,wBAAA,CAAyB,GAAA,EAAiD;AACjF,EAAA,GAAA,CAAI,CAAA,CAAE,IAAA,WAAe,4CAAA,CAAA,EAA6B,OAAO,KAAA;AACzD,EAAA,MAAM,OAAA,kBAAS,GAAA,qBAAI,IAAA,6BAAM,QAAA;AACzB,EAAA,OACE,GAAA,CAAI,KAAA,IAAS,QAAA,GACb,OAAO,OAAA,IAAW,SAAA,GAClB,gCAAA,CAAiC,GAAA,CAAI,MAAM,CAAA;AAE/C;AAcO,IAAM,WAAA,EAAN,MAAiB;AAAA,EACtB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlD,MAAM,aAAA,CACJ,QAAA,EACA,KAAA,EACA,OAAA,EACgC;AAChC,IAAA,OA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A;AAAA,EAQA,MAAM,IAAA,CAAK,KAAA,EAA4B,OAAA,EAAyD;AAC9F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,cAAA,EAAgB;AAAA,MACzC,GAAG,OAAA;AAAA,MACH,KAAA,EAAO,SAAA,CAAU,KAAK;AAAA,IACxB,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,MAAA,CAAO,MAAA,EAAgB,OAAA,EAAoD;AAC/E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,QAAA,EAAU,CAAA,aAAA,EAAgB,kBAAA,CAAmB,MAAM,CAAC,CAAA,CAAA;AAC1E,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWqC,EAAA;AACiB,IAAA;AAC/C,MAAA;AACH,MAAA;AACD,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAegG,EAAA;AAC1F,IAAA;AACqD,MAAA;AAClD,QAAA;AACH,QAAA;AACoB,QAAA;AACrB,MAAA;AACW,IAAA;AACuB,MAAA;AACG,QAAA;AACtB,UAAA;AACF,UAAA;AACA,UAAA;AACK,UAAA;AACF,UAAA;AACH,UAAA;AACX,QAAA;AACH,MAAA;AACM,MAAA;AACR,IAAA;AACF,EAAA;AACF;ADnD6E;AACA;AACA;AACA","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-7NKJD5ST.cjs","sourcesContent":[null,"import type { RequestExtras, RequestFn } from '../client';\nimport { DelopayAuthenticationError, DelopayError } from '../error';\nimport type {\n ShareLinkCreateRequest,\n ShareLinkCreateResponse,\n ShareLinkListQuery,\n ShareLinkListResponse,\n ShareLinkOpenRequest,\n ShareLinkOpenResponse,\n ShareLinkPreviewRequest,\n ShareLinkPreviewResponse,\n ShareLinkSummary,\n} from '../types';\n\nconst SHARE_PASSWORD_CHALLENGE_REASONS = new Set(['password_required', 'password_wrong']);\n\nfunction listQuery(query?: ShareLinkListQuery): Record<string, string> | undefined {\n if (query?.active_only === undefined) return undefined;\n return { active_only: String(query.active_only) };\n}\n\nfunction isSharePasswordChallenge(err: unknown): err is DelopayAuthenticationError {\n if (!(err instanceof DelopayAuthenticationError)) return false;\n const reason = err.data?.reason;\n return (\n err.code === 'IR_18' &&\n typeof reason === 'string' &&\n SHARE_PASSWORD_CHALLENGE_REASONS.has(reason)\n );\n}\n\n/**\n * Expiring external share links for a single person or a single payment.\n *\n * Team members with read access to the underlying person or payment can create,\n * inspect, and revoke expiring read-only links while link sharing is switched\n * on for the merchant (`sharing.share_links_enabled`). The secret share token\n * is returned once on creation and never stored in plaintext.\n *\n * `preview` and `open` are public, credential-less endpoints: pass a client\n * built with no API key and no JWT so a signed-in tab's bearer token is never\n * sent to a public share route.\n */\nexport class ShareLinks {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * List share links created for one person (active links followed by recent\n * history, or active links only when `query.active_only` is `true`).\n *\n * `GET /persons/{personId}/share-links`\n */\n async listForPerson(\n personId: string,\n query?: ShareLinkListQuery,\n options?: RequestExtras,\n ): Promise<ShareLinkListResponse> {\n return this.request('GET', `/persons/${encodeURIComponent(personId)}/share-links`, {\n ...options,\n query: listQuery(query),\n });\n }\n\n /**\n * Create an expiring share link for one person. The response returns the\n * secret `token` once.\n *\n * `POST /persons/{personId}/share-links`\n */\n async createForPerson(\n personId: string,\n body: ShareLinkCreateRequest,\n options?: RequestExtras,\n ): Promise<ShareLinkCreateResponse> {\n return this.request('POST', `/persons/${encodeURIComponent(personId)}/share-links`, {\n ...options,\n body,\n bodyIdempotencyKey: null,\n });\n }\n\n /**\n * List share links created for one payment (active links followed by recent\n * history, or active links only when `query.active_only` is `true`).\n *\n * `GET /payments/{paymentId}/share-links`\n */\n async listForPayment(\n paymentId: string,\n query?: ShareLinkListQuery,\n options?: RequestExtras,\n ): Promise<ShareLinkListResponse> {\n return this.request('GET', `/payments/${encodeURIComponent(paymentId)}/share-links`, {\n ...options,\n query: listQuery(query),\n });\n }\n\n /**\n * Create an expiring share link for one payment. The response returns the\n * secret `token` once. Setting `include_team_notes: true` also requires\n * person-read access.\n *\n * `POST /payments/{paymentId}/share-links`\n */\n async createForPayment(\n paymentId: string,\n body: ShareLinkCreateRequest,\n options?: RequestExtras,\n ): Promise<ShareLinkCreateResponse> {\n return this.request('POST', `/payments/${encodeURIComponent(paymentId)}/share-links`, {\n ...options,\n body,\n bodyIdempotencyKey: null,\n });\n }\n\n /**\n * List share links across the merchant account, filtered to the resources\n * and shop scope the caller may read.\n *\n * `GET /share-links`\n */\n async list(query?: ShareLinkListQuery, options?: RequestExtras): Promise<ShareLinkListResponse> {\n return this.request('GET', '/share-links', {\n ...options,\n query: listQuery(query),\n });\n }\n\n /**\n * Revoke an active share link immediately. Subsequent preview or open\n * attempts are refused with `410` (`reason: \"revoked\"`).\n *\n * `DELETE /share-links/{linkId}`\n */\n async revoke(linkId: string, options?: RequestExtras): Promise<ShareLinkSummary> {\n return this.request('DELETE', `/share-links/${encodeURIComponent(linkId)}`, options);\n }\n\n /**\n * Public metadata preview for a share link. Does not consume a view and\n * requires no authentication.\n *\n * `POST /share-links/preview`\n */\n async preview(\n body: ShareLinkPreviewRequest,\n options?: RequestExtras,\n ): Promise<ShareLinkPreviewResponse> {\n return this.request('POST', '/share-links/preview', {\n ...options,\n body,\n });\n }\n\n /**\n * Public open for a share link. Validates expiry, view limit, account switch\n * and optional password, consumes one view atomically, writes the view audit\n * entry, and returns the redacted read-only person or payment view.\n *\n * A missing or incorrect share password (`401` `IR_18` with `data.reason` of\n * `password_required` or `password_wrong`) is surfaced as a plain\n * `DelopayError` rather than `DelopayAuthenticationError` so callers prompt\n * for the share password instead of taking an API-key or sign-in recovery\n * path.\n *\n * `POST /share-links/open`\n */\n async open(body: ShareLinkOpenRequest, options?: RequestExtras): Promise<ShareLinkOpenResponse> {\n try {\n return await this.request('POST', '/share-links/open', {\n ...options,\n body,\n bodyIdempotencyKey: null,\n });\n } catch (err) {\n if (isSharePasswordChallenge(err)) {\n throw new DelopayError(err.message, {\n status: err.status,\n code: err.code,\n type: err.type,\n requestId: err.requestId,\n rawBody: err.rawBody,\n data: err.data,\n });\n }\n throw err;\n }\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/sdk-pub-04970/dist/chunk-7QZCUXWB.cjs","../src/internal/resources/cache.ts"],"names":[],"mappings":"AAAA;ACEO,IAAM,MAAA,EAAN,MAAY;AAAA,EACjB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,MAAM,UAAA,CAAW,GAAA,EAA+C;AAC9D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,CAAA,kBAAA,EAAqB,kBAAA,CAAmB,GAAG,CAAC,CAAA,CAAA;AAC1E,EAAA;AACF;ADC6E;AACA;AACA;AACA","file":"/tmp/sdk-pub-04970/dist/chunk-7QZCUXWB.cjs","sourcesContent":[null,"import type { RequestFn } from '../../client';\n\nexport class Cache {\n constructor(private readonly request: RequestFn) {}\n\n /** Invalidate a cache entry by key. `POST /cache/invalidate/{key}` */\n async invalidate(key: string): Promise<Record<string, unknown>> {\n return this.request('POST', `/cache/invalidate/${encodeURIComponent(key)}`);\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-7QZCUXWB.cjs","../src/internal/resources/cache.ts"],"names":[],"mappings":"AAAA;ACEO,IAAM,MAAA,EAAN,MAAY;AAAA,EACjB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,MAAM,UAAA,CAAW,GAAA,EAA+C;AAC9D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,CAAA,kBAAA,EAAqB,kBAAA,CAAmB,GAAG,CAAC,CAAA,CAAA;AAC1E,EAAA;AACF;ADC6E;AACA;AACA;AACA","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-7QZCUXWB.cjs","sourcesContent":[null,"import type { RequestFn } from '../../client';\n\nexport class Cache {\n constructor(private readonly request: RequestFn) {}\n\n /** Invalidate a cache entry by key. `POST /cache/invalidate/{key}` */\n async invalidate(key: string): Promise<Record<string, unknown>> {\n return this.request('POST', `/cache/invalidate/${encodeURIComponent(key)}`);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/sdk-pub-04970/dist/chunk-7VXF5D67.cjs","../src/internal/resources/gsm.ts"],"names":[],"mappings":"AAAA;ACGO,IAAM,IAAA,EAAN,MAAU;AAAA,EACf,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,MAAA,CAAO,MAAA,EAAwD;AACnE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,MAAA,EAAQ,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACtD;AAAA,EAEA,MAAM,QAAA,CAAS,MAAA,EAA2D;AACxE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,UAAA,EAAY,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC1D;AAAA,EAEA,MAAM,MAAA,CAAO,MAAA,EAAwD;AACnE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,aAAA,EAAe,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC7D;AAAA,EAEA,MAAM,MAAA,CAAO,MAAA,EAA2D;AACtE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,aAAA,EAAe,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC7D;AACF,CAAA;ADHA;AACA;AACE;AACF,kBAAC","file":"/tmp/sdk-pub-04970/dist/chunk-7VXF5D67.cjs","sourcesContent":[null,"import type { GsmRuleCreateRequest, GsmRuleResponse, GsmRuleUpdateRequest } from '../types';\nimport type { RequestFn } from '../../client';\n\nexport class Gsm {\n constructor(private readonly request: RequestFn) {}\n\n async create(params: GsmRuleCreateRequest): Promise<GsmRuleResponse> {\n return this.request('POST', '/gsm', { body: params });\n }\n\n async retrieve(params: Record<string, unknown>): Promise<GsmRuleResponse> {\n return this.request('POST', '/gsm/get', { body: params });\n }\n\n async update(params: GsmRuleUpdateRequest): Promise<GsmRuleResponse> {\n return this.request('POST', '/gsm/update', { body: params });\n }\n\n async delete(params: Record<string, unknown>): Promise<GsmRuleResponse> {\n return this.request('POST', '/gsm/delete', { body: params });\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-7VXF5D67.cjs","../src/internal/resources/gsm.ts"],"names":[],"mappings":"AAAA;ACGO,IAAM,IAAA,EAAN,MAAU;AAAA,EACf,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,MAAA,CAAO,MAAA,EAAwD;AACnE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,MAAA,EAAQ,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACtD;AAAA,EAEA,MAAM,QAAA,CAAS,MAAA,EAA2D;AACxE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,UAAA,EAAY,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC1D;AAAA,EAEA,MAAM,MAAA,CAAO,MAAA,EAAwD;AACnE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,aAAA,EAAe,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC7D;AAAA,EAEA,MAAM,MAAA,CAAO,MAAA,EAA2D;AACtE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,aAAA,EAAe,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC7D;AACF,CAAA;ADHA;AACA;AACE;AACF,kBAAC","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-7VXF5D67.cjs","sourcesContent":[null,"import type { GsmRuleCreateRequest, GsmRuleResponse, GsmRuleUpdateRequest } from '../types';\nimport type { RequestFn } from '../../client';\n\nexport class Gsm {\n constructor(private readonly request: RequestFn) {}\n\n async create(params: GsmRuleCreateRequest): Promise<GsmRuleResponse> {\n return this.request('POST', '/gsm', { body: params });\n }\n\n async retrieve(params: Record<string, unknown>): Promise<GsmRuleResponse> {\n return this.request('POST', '/gsm/get', { body: params });\n }\n\n async update(params: GsmRuleUpdateRequest): Promise<GsmRuleResponse> {\n return this.request('POST', '/gsm/update', { body: params });\n }\n\n async delete(params: Record<string, unknown>): Promise<GsmRuleResponse> {\n return this.request('POST', '/gsm/delete', { body: params });\n }\n}\n"]}