@delopay/sdk 0.464.0 → 0.468.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 (344) 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-2FQVJTLG.js +1 -0
  9. package/dist/chunk-2IJRBJXW.cjs.map +1 -1
  10. package/dist/chunk-34PC72O7.cjs.map +1 -1
  11. package/dist/chunk-3GBWQWTP.cjs.map +1 -1
  12. package/dist/chunk-3YBBJT3Y.cjs.map +1 -1
  13. package/dist/chunk-44QBWVRS.cjs.map +1 -1
  14. package/dist/chunk-4EKAWNYI.cjs.map +1 -1
  15. package/dist/chunk-4LN4BR2T.cjs.map +1 -1
  16. package/dist/chunk-4T4XHPYN.cjs.map +1 -1
  17. package/dist/chunk-5CITBN33.cjs.map +1 -1
  18. package/dist/chunk-5HCKC4HF.cjs.map +1 -1
  19. package/dist/chunk-5O2JSQYA.cjs.map +1 -1
  20. package/dist/chunk-6EBY2KKL.cjs.map +1 -1
  21. package/dist/chunk-6LFOM6HV.cjs.map +1 -1
  22. package/dist/chunk-6LOWE2YI.cjs.map +1 -1
  23. package/dist/chunk-6LSG5Z4T.cjs.map +1 -1
  24. package/dist/chunk-6SU2MTN2.cjs.map +1 -1
  25. package/dist/chunk-6YCDLSIU.cjs.map +1 -1
  26. package/dist/chunk-75E5WNJG.cjs.map +1 -1
  27. package/dist/chunk-7JV6VVO7.cjs.map +1 -1
  28. package/dist/chunk-7QZCUXWB.cjs.map +1 -1
  29. package/dist/chunk-7VXF5D67.cjs.map +1 -1
  30. package/dist/chunk-7WAQX26D.cjs +1 -0
  31. package/dist/chunk-7WAQX26D.cjs.map +1 -0
  32. package/dist/chunk-ABWAYMN5.cjs.map +1 -1
  33. package/dist/chunk-ACZ2R47X.cjs.map +1 -1
  34. package/dist/chunk-AYUYJO3I.cjs.map +1 -1
  35. package/dist/chunk-BCA3TCGS.cjs.map +1 -1
  36. package/dist/chunk-BP6KDQ6I.cjs.map +1 -1
  37. package/dist/chunk-BRY3W7N3.cjs.map +1 -1
  38. package/dist/chunk-CAMALM35.cjs.map +1 -1
  39. package/dist/chunk-CCN44NZJ.cjs.map +1 -1
  40. package/dist/chunk-CKKNFFKP.cjs.map +1 -1
  41. package/dist/chunk-CR3JBTP3.cjs.map +1 -1
  42. package/dist/{chunk-IKLYLBTY.cjs → chunk-DJ2P25KQ.cjs} +31 -8
  43. package/dist/chunk-DJ2P25KQ.cjs.map +1 -0
  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-F3I5DOWV.cjs.map +1 -1
  50. package/dist/chunk-F46K5H3U.cjs.map +1 -1
  51. package/dist/chunk-F6S3WCCB.cjs.map +1 -1
  52. package/dist/chunk-FQRC4NJG.cjs.map +1 -1
  53. package/dist/chunk-FYISDU2Y.cjs.map +1 -1
  54. package/dist/chunk-GG52SAHA.cjs.map +1 -1
  55. package/dist/chunk-GK5FWN4H.cjs.map +1 -1
  56. package/dist/chunk-GSQN5EOO.cjs.map +1 -1
  57. package/dist/{chunk-QTKJIW3T.cjs → chunk-GUDPUSXH.cjs} +142 -16
  58. package/dist/chunk-GUDPUSXH.cjs.map +1 -0
  59. package/dist/chunk-GW7IHYXR.cjs.map +1 -1
  60. package/dist/{chunk-7M26ZQVW.js → chunk-H53DYFFG.js} +12 -8
  61. package/dist/chunk-H53DYFFG.js.map +1 -0
  62. package/dist/chunk-HLHML5ES.cjs.map +1 -1
  63. package/dist/chunk-HLKFUOAQ.cjs.map +1 -1
  64. package/dist/chunk-HLYGHP6F.cjs.map +1 -1
  65. package/dist/chunk-HSJABE7X.cjs.map +1 -1
  66. package/dist/chunk-I2W7AO4B.cjs.map +1 -1
  67. package/dist/chunk-I2XGNALG.cjs.map +1 -1
  68. package/dist/chunk-IKXGA2Z5.cjs.map +1 -1
  69. package/dist/chunk-IR2LFKKA.cjs.map +1 -1
  70. package/dist/chunk-J4ZB7MU4.cjs.map +1 -1
  71. package/dist/chunk-JPRSNCYP.cjs.map +1 -1
  72. package/dist/chunk-K5Q2H3VD.cjs.map +1 -1
  73. package/dist/chunk-KD5Y2YWK.cjs.map +1 -1
  74. package/dist/chunk-KJDMNF2T.cjs.map +1 -1
  75. package/dist/chunk-KLONGJCL.cjs.map +1 -1
  76. package/dist/chunk-KOB6MOAV.cjs.map +1 -1
  77. package/dist/chunk-KSJ7JLR3.cjs.map +1 -1
  78. package/dist/{chunk-MMBX2T4H.cjs → chunk-LD45Q6VA.cjs} +13 -9
  79. package/dist/chunk-LD45Q6VA.cjs.map +1 -0
  80. package/dist/chunk-LJ2EG6JK.cjs.map +1 -1
  81. package/dist/chunk-LLYY4TCZ.cjs.map +1 -1
  82. package/dist/chunk-LYIBTVK6.cjs.map +1 -1
  83. package/dist/chunk-M3HWE7KT.cjs.map +1 -1
  84. package/dist/chunk-M3SJHFT4.cjs.map +1 -1
  85. package/dist/chunk-MCNDMK7F.cjs.map +1 -1
  86. package/dist/chunk-MLG6NXI6.cjs.map +1 -1
  87. package/dist/chunk-NAHX6XYV.cjs +100 -0
  88. package/dist/chunk-NAHX6XYV.cjs.map +1 -0
  89. package/dist/chunk-NFB3S2E6.cjs.map +1 -1
  90. package/dist/{chunk-2VNT2GKF.js → chunk-NKAGLMMC.js} +2 -2
  91. package/dist/chunk-NYL3BNHR.cjs.map +1 -1
  92. package/dist/chunk-O4AYHLQX.cjs.map +1 -1
  93. package/dist/chunk-OAEKP665.cjs.map +1 -1
  94. package/dist/chunk-ODPNVNYE.cjs.map +1 -1
  95. package/dist/chunk-OG2KJAYD.cjs.map +1 -1
  96. package/dist/chunk-ORCK5GQ3.cjs.map +1 -1
  97. package/dist/chunk-OWP7XBY2.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-P6JLNQ6L.cjs.map +1 -1
  101. package/dist/chunk-P7DYLUUI.cjs.map +1 -1
  102. package/dist/chunk-PKAE6AQT.cjs.map +1 -1
  103. package/dist/chunk-Q6XF7JSF.js +100 -0
  104. package/dist/chunk-Q6XF7JSF.js.map +1 -0
  105. package/dist/chunk-Q7M7DO7M.cjs.map +1 -1
  106. package/dist/chunk-QKUWFMZP.cjs.map +1 -1
  107. package/dist/chunk-QRSA72B3.cjs.map +1 -1
  108. package/dist/chunk-QYNRNDIY.cjs.map +1 -1
  109. package/dist/chunk-R4FE6K43.cjs.map +1 -1
  110. package/dist/chunk-R4GA6BVP.cjs.map +1 -1
  111. package/dist/chunk-R5VYSZ3Q.cjs.map +1 -1
  112. package/dist/chunk-RHFUXHQN.cjs.map +1 -1
  113. package/dist/chunk-RI42IDRR.cjs.map +1 -1
  114. package/dist/chunk-RSVLVW4L.cjs.map +1 -1
  115. package/dist/chunk-S77LQWYC.cjs.map +1 -1
  116. package/dist/chunk-S7SBNOGS.cjs.map +1 -1
  117. package/dist/{chunk-4QXG4523.js → chunk-SBRPDPEL.js} +128 -2
  118. package/dist/chunk-SBRPDPEL.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-V47G7P6L.cjs.map +1 -1
  125. package/dist/chunk-VH5A6SMU.cjs.map +1 -1
  126. package/dist/chunk-VHMH4QMY.cjs.map +1 -1
  127. package/dist/chunk-VYC7WUM5.cjs.map +1 -1
  128. package/dist/{chunk-TMMTDTCP.cjs → chunk-VZ3BSIVU.cjs} +12 -1
  129. package/dist/chunk-VZ3BSIVU.cjs.map +1 -0
  130. package/dist/chunk-W457XUA6.cjs.map +1 -1
  131. package/dist/{chunk-BUNJVWPX.js → chunk-W4EASI7R.js} +12 -1
  132. package/dist/chunk-W4EASI7R.js.map +1 -0
  133. package/dist/chunk-WHDI3TMP.cjs.map +1 -1
  134. package/dist/chunk-WITCPKNL.cjs.map +1 -1
  135. package/dist/chunk-WX6NP7UU.cjs.map +1 -1
  136. package/dist/{chunk-OEXXMVCI.cjs → chunk-X7PCVCJP.cjs} +3 -3
  137. package/dist/chunk-X7PCVCJP.cjs.map +1 -0
  138. package/dist/chunk-XQLRIBVR.cjs.map +1 -1
  139. package/dist/chunk-Y7LSSRNJ.cjs.map +1 -1
  140. package/dist/chunk-YK3P5QNZ.cjs.map +1 -1
  141. package/dist/chunk-ZKPVUCQV.cjs.map +1 -1
  142. package/dist/chunk-ZUULK36E.cjs.map +1 -1
  143. package/dist/{chunk-3YRWCQXM.js → chunk-ZVFL25LV.js} +24 -1
  144. package/dist/chunk-ZVFL25LV.js.map +1 -0
  145. package/dist/client.cjs +2 -2
  146. package/dist/client.cjs.map +1 -1
  147. package/dist/client.d.cts +3 -0
  148. package/dist/client.d.ts +3 -0
  149. package/dist/client.js +1 -1
  150. package/dist/core.cjs.map +1 -1
  151. package/dist/currencies.cjs.map +1 -1
  152. package/dist/enigmaCardForm.cjs.map +1 -1
  153. package/dist/error.cjs.map +1 -1
  154. package/dist/eventStream.cjs.map +1 -1
  155. package/dist/exportDownload.cjs.map +1 -1
  156. package/dist/feeProgram.cjs.map +1 -1
  157. package/dist/index.cjs +16 -12
  158. package/dist/index.cjs.map +1 -1
  159. package/dist/index.d.cts +2 -1
  160. package/dist/index.d.ts +2 -1
  161. package/dist/index.js +15 -11
  162. package/dist/internal/resources/admin.cjs.map +1 -1
  163. package/dist/internal/resources/admin.d.cts +1 -1
  164. package/dist/internal/resources/admin.d.ts +1 -1
  165. package/dist/internal/resources/adminBranding.cjs.map +1 -1
  166. package/dist/internal/resources/adminBranding.d.cts +1 -1
  167. package/dist/internal/resources/adminBranding.d.ts +1 -1
  168. package/dist/internal/resources/adminCheckoutDomains.cjs.map +1 -1
  169. package/dist/internal/resources/adminCheckoutDomains.d.cts +1 -1
  170. package/dist/internal/resources/adminCheckoutDomains.d.ts +1 -1
  171. package/dist/internal/resources/adminFeePlans.cjs.map +1 -1
  172. package/dist/internal/resources/adminFeePlans.d.cts +1 -1
  173. package/dist/internal/resources/adminFeePlans.d.ts +1 -1
  174. package/dist/internal/resources/adminFileScans.cjs.map +1 -1
  175. package/dist/internal/resources/adminFileScans.d.cts +1 -1
  176. package/dist/internal/resources/adminFileScans.d.ts +1 -1
  177. package/dist/internal/resources/adminIndustries.cjs.map +1 -1
  178. package/dist/internal/resources/adminIndustries.d.cts +1 -1
  179. package/dist/internal/resources/adminIndustries.d.ts +1 -1
  180. package/dist/internal/resources/adminLive.cjs.map +1 -1
  181. package/dist/internal/resources/adminNotices.cjs.map +1 -1
  182. package/dist/internal/resources/adminNotices.d.cts +1 -1
  183. package/dist/internal/resources/adminNotices.d.ts +1 -1
  184. package/dist/internal/resources/adminPortal.cjs +2 -2
  185. package/dist/internal/resources/adminPortal.cjs.map +1 -1
  186. package/dist/internal/resources/adminPortal.d.cts +56 -2
  187. package/dist/internal/resources/adminPortal.d.ts +56 -2
  188. package/dist/internal/resources/adminPortal.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 +25 -21
  224. package/dist/internal.cjs.map +1 -1
  225. package/dist/internal.d.cts +3 -2
  226. package/dist/internal.d.ts +3 -2
  227. package/dist/internal.js +24 -20
  228. package/dist/internal.js.map +1 -1
  229. package/dist/listQuery.cjs.map +1 -1
  230. package/dist/panes.cjs.map +1 -1
  231. package/dist/paymentPresentation.cjs.map +1 -1
  232. package/dist/recordCounter.cjs.map +1 -1
  233. package/dist/resources/aiTools.cjs.map +1 -1
  234. package/dist/resources/analytics.cjs.map +1 -1
  235. package/dist/resources/analyticsDashboard.cjs.map +1 -1
  236. package/dist/resources/apiKeys.cjs.map +1 -1
  237. package/dist/resources/audit.cjs.map +1 -1
  238. package/dist/resources/authentication.cjs.map +1 -1
  239. package/dist/resources/availabilityOverrides.cjs.map +1 -1
  240. package/dist/resources/billing.cjs.map +1 -1
  241. package/dist/resources/buyerAccount.cjs.map +1 -1
  242. package/dist/resources/buyerBlocklist.cjs.map +1 -1
  243. package/dist/resources/buyerConversations.cjs.map +1 -1
  244. package/dist/resources/buyerEvidenceReviews.cjs.map +1 -1
  245. package/dist/resources/buyerPortal.cjs.map +1 -1
  246. package/dist/resources/cards.cjs.map +1 -1
  247. package/dist/resources/chargebackPrevention.cjs.map +1 -1
  248. package/dist/resources/checkoutDomains.cjs.map +1 -1
  249. package/dist/resources/checkoutMethods.cjs.map +1 -1
  250. package/dist/resources/checkoutRecovery.cjs.map +1 -1
  251. package/dist/resources/checkoutTemplates.cjs.map +1 -1
  252. package/dist/resources/connectors.cjs.map +1 -1
  253. package/dist/resources/contentEncryption.cjs.map +1 -1
  254. package/dist/resources/costRules.cjs.map +1 -1
  255. package/dist/resources/customers.cjs.map +1 -1
  256. package/dist/resources/deploymentBranding.cjs.map +1 -1
  257. package/dist/resources/disputes.cjs.map +1 -1
  258. package/dist/resources/ephemeralKeys.cjs.map +1 -1
  259. package/dist/resources/events.cjs.map +1 -1
  260. package/dist/resources/export.cjs.map +1 -1
  261. package/dist/resources/externalRecords.cjs.map +1 -1
  262. package/dist/resources/featureMatrix.cjs.map +1 -1
  263. package/dist/resources/fees.cjs.map +1 -1
  264. package/dist/resources/files.cjs.map +1 -1
  265. package/dist/resources/forex.cjs.map +1 -1
  266. package/dist/resources/identityVerifications.cjs.map +1 -1
  267. package/dist/resources/industries.cjs.map +1 -1
  268. package/dist/resources/invoiceSettings.cjs.map +1 -1
  269. package/dist/resources/invoices.cjs.map +1 -1
  270. package/dist/resources/live.cjs.map +1 -1
  271. package/dist/resources/mandates.cjs.map +1 -1
  272. package/dist/resources/merchantAccounts.cjs.map +1 -1
  273. package/dist/resources/messageTemplates.cjs.map +1 -1
  274. package/dist/resources/notices.cjs.map +1 -1
  275. package/dist/resources/operationLimits.cjs.map +1 -1
  276. package/dist/resources/paymentLinks.cjs.map +1 -1
  277. package/dist/resources/paymentMethods.cjs.map +1 -1
  278. package/dist/resources/payments.cjs +2 -2
  279. package/dist/resources/payments.cjs.map +1 -1
  280. package/dist/resources/payments.d.cts +10 -1
  281. package/dist/resources/payments.d.ts +10 -1
  282. package/dist/resources/payments.js +1 -1
  283. package/dist/resources/payoutDestinations.cjs.map +1 -1
  284. package/dist/resources/payouts.cjs.map +1 -1
  285. package/dist/resources/paypalDisputes.cjs.map +1 -1
  286. package/dist/resources/persons.cjs.map +1 -1
  287. package/dist/resources/poll.cjs.map +1 -1
  288. package/dist/resources/processorCosts.cjs.map +1 -1
  289. package/dist/resources/processorImports.cjs.map +1 -1
  290. package/dist/resources/products.cjs.map +1 -1
  291. package/dist/resources/profileAcquirers.cjs.map +1 -1
  292. package/dist/resources/profiles.cjs.map +1 -1
  293. package/dist/resources/projects.cjs.map +1 -1
  294. package/dist/resources/refunds.cjs.map +1 -1
  295. package/dist/resources/regions.cjs.map +1 -1
  296. package/dist/resources/relay.cjs.map +1 -1
  297. package/dist/resources/risk.cjs.map +1 -1
  298. package/dist/resources/routing.cjs.map +1 -1
  299. package/dist/resources/search.cjs.map +1 -1
  300. package/dist/resources/sellToRestrictions.cjs.map +1 -1
  301. package/dist/resources/settings.cjs.map +1 -1
  302. package/dist/resources/settlement.cjs +6 -2
  303. package/dist/resources/settlement.cjs.map +1 -1
  304. package/dist/resources/settlement.d.cts +15 -2
  305. package/dist/resources/settlement.d.ts +15 -2
  306. package/dist/resources/settlement.js +5 -1
  307. package/dist/resources/shopLabels.cjs.map +1 -1
  308. package/dist/resources/shopify.cjs +7 -0
  309. package/dist/resources/shopify.cjs.map +1 -0
  310. package/dist/resources/shopify.d.cts +86 -0
  311. package/dist/resources/shopify.d.ts +86 -0
  312. package/dist/resources/shopify.js +7 -0
  313. package/dist/resources/shopify.js.map +1 -0
  314. package/dist/resources/shops.cjs.map +1 -1
  315. package/dist/resources/stripeConnect.cjs.map +1 -1
  316. package/dist/resources/subscriptions.cjs.map +1 -1
  317. package/dist/resources/support.cjs.map +1 -1
  318. package/dist/resources/threeDsRules.cjs.map +1 -1
  319. package/dist/resources/users.cjs.map +1 -1
  320. package/dist/resources/vatRates.cjs.map +1 -1
  321. package/dist/resources/verification.cjs.map +1 -1
  322. package/dist/resources/webhooks.cjs.map +1 -1
  323. package/dist/resources/whopResolutionCases.cjs.map +1 -1
  324. package/dist/trustedOrigins.cjs.map +1 -1
  325. package/dist/{types-C8ojZumf.d.cts → types-BD4UoPj8.d.cts} +32 -2
  326. package/dist/{types-Bx0-pI7E.d.ts → types-CX-yJoOh.d.ts} +32 -2
  327. package/dist/types.cjs.map +1 -1
  328. package/dist/types.d.cts +508 -11
  329. package/dist/types.d.ts +508 -11
  330. package/package.json +19 -17
  331. package/dist/chunk-3YRWCQXM.js.map +0 -1
  332. package/dist/chunk-4QXG4523.js.map +0 -1
  333. package/dist/chunk-7M26ZQVW.js.map +0 -1
  334. package/dist/chunk-BUNJVWPX.js.map +0 -1
  335. package/dist/chunk-CY5VEI3U.js +0 -1
  336. package/dist/chunk-FG7YBXJQ.cjs +0 -1
  337. package/dist/chunk-FG7YBXJQ.cjs.map +0 -1
  338. package/dist/chunk-IKLYLBTY.cjs.map +0 -1
  339. package/dist/chunk-MMBX2T4H.cjs.map +0 -1
  340. package/dist/chunk-OEXXMVCI.cjs.map +0 -1
  341. package/dist/chunk-QTKJIW3T.cjs.map +0 -1
  342. package/dist/chunk-TMMTDTCP.cjs.map +0 -1
  343. /package/dist/{chunk-CY5VEI3U.js.map → chunk-2FQVJTLG.js.map} +0 -0
  344. /package/dist/{chunk-2VNT2GKF.js.map → chunk-NKAGLMMC.js.map} +0 -0
@@ -1,8 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
+ var _chunkR4FE6K43cjs = require('./chunk-R4FE6K43.cjs');
4
+
5
+
3
6
  var _chunkVYC7WUM5cjs = require('./chunk-VYC7WUM5.cjs');
4
7
 
5
8
 
9
+ var _chunk4LN4BR2Tcjs = require('./chunk-4LN4BR2T.cjs');
10
+
11
+
6
12
  var _chunkUGSM7RJ2cjs = require('./chunk-UGSM7RJ2.cjs');
7
13
 
8
14
 
@@ -24,9 +30,6 @@ var _chunkNFB3S2E6cjs = require('./chunk-NFB3S2E6.cjs');
24
30
  var _chunkWHDI3TMPcjs = require('./chunk-WHDI3TMP.cjs');
25
31
 
26
32
 
27
- var _chunkR4FE6K43cjs = require('./chunk-R4FE6K43.cjs');
28
-
29
-
30
33
  var _chunkTMAJE5P2cjs = require('./chunk-TMAJE5P2.cjs');
31
34
 
32
35
 
@@ -42,13 +45,13 @@ var _chunkACZ2R47Xcjs = require('./chunk-ACZ2R47X.cjs');
42
45
  var _chunkBP6KDQ6Icjs = require('./chunk-BP6KDQ6I.cjs');
43
46
 
44
47
 
45
- var _chunkIKLYLBTYcjs = require('./chunk-IKLYLBTY.cjs');
48
+ var _chunkDJ2P25KQcjs = require('./chunk-DJ2P25KQ.cjs');
46
49
 
47
50
 
48
51
  var _chunkDJASVBOJcjs = require('./chunk-DJASVBOJ.cjs');
49
52
 
50
53
 
51
- var _chunk4LN4BR2Tcjs = require('./chunk-4LN4BR2T.cjs');
54
+ var _chunkNAHX6XYVcjs = require('./chunk-NAHX6XYV.cjs');
52
55
 
53
56
 
54
57
  var _chunkO4AYHLQXcjs = require('./chunk-O4AYHLQX.cjs');
@@ -78,7 +81,7 @@ var _chunk6SU2MTN2cjs = require('./chunk-6SU2MTN2.cjs');
78
81
  var _chunkLJ2EG6JKcjs = require('./chunk-LJ2EG6JK.cjs');
79
82
 
80
83
 
81
- var _chunkTMMTDTCPcjs = require('./chunk-TMMTDTCP.cjs');
84
+ var _chunkVZ3BSIVUcjs = require('./chunk-VZ3BSIVU.cjs');
82
85
 
83
86
 
84
87
  var _chunkP4UILJVUcjs = require('./chunk-P4UILJVU.cjs');
@@ -245,7 +248,7 @@ var Delopay = class extends _chunkHSJABE7Xcjs.DelopayCore {
245
248
  constructor(apiKey, options) {
246
249
  super(apiKey, options);
247
250
  const { request, openStream } = this.transport;
248
- this.payments = new (0, _chunkTMMTDTCPcjs.Payments)(request);
251
+ this.payments = new (0, _chunkVZ3BSIVUcjs.Payments)(request);
249
252
  this.refunds = new (0, _chunkGG52SAHAcjs.Refunds)(request);
250
253
  this.customers = new (0, _chunkOWP7XBY2cjs.Customers)(request);
251
254
  this.paymentMethods = new (0, _chunkLJ2EG6JKcjs.PaymentMethods)(request);
@@ -277,7 +280,7 @@ var Delopay = class extends _chunkHSJABE7Xcjs.DelopayCore {
277
280
  this.stripeConnect = new (0, _chunkUGSM7RJ2cjs.StripeConnect)(request);
278
281
  this.threeDsRules = new (0, _chunkWX6NP7UUcjs.ThreeDsRules)(request);
279
282
  this.audit = new (0, _chunkM3HWE7KTcjs.Audit)(request);
280
- this.settlement = new (0, _chunkIKLYLBTYcjs.Settlement)(request);
283
+ this.settlement = new (0, _chunkDJ2P25KQcjs.Settlement)(request);
281
284
  this.operationLimits = new (0, _chunkS7SBNOGScjs.OperationLimits)(request);
282
285
  this.settings = new (0, _chunkBP6KDQ6Icjs.Settings)(request);
283
286
  this.messageTemplates = new (0, _chunk4EKAWNYIcjs.MessageTemplates)(request);
@@ -303,6 +306,7 @@ var Delopay = class extends _chunkHSJABE7Xcjs.DelopayCore {
303
306
  this.industries = new (0, _chunkEEB2HDYLcjs.Industries)(request);
304
307
  this.payoutDestinations = new (0, _chunkP4UILJVUcjs.PayoutDestinations)(request);
305
308
  this.notices = new (0, _chunkU3JK7NBGcjs.Notices)(request);
309
+ this.shopify = new (0, _chunkNAHX6XYVcjs.Shopify)(request);
306
310
  this.checkoutTemplates = new (0, _chunk6LFOM6HVcjs.CheckoutTemplates)(request);
307
311
  this.buyerConversations = new (0, _chunkGW7IHYXRcjs.BuyerConversations)(request);
308
312
  this.buyerEvidence = new (0, _chunk3YBBJT3Ycjs.BuyerEvidenceReviews)(request);
@@ -329,4 +333,4 @@ Delopay.webhooks = _chunkR4FE6K43cjs.Webhooks;
329
333
 
330
334
 
331
335
  exports.Delopay = Delopay;
332
- //# sourceMappingURL=chunk-MMBX2T4H.cjs.map
336
+ //# sourceMappingURL=chunk-LD45Q6VA.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/tmp/w4-pub468/sdk/dist/chunk-LD45Q6VA.cjs","../src/client.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;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AAA,IAAA,CAAK,SAAA,EAAW,IAAI,+BAAA,CAAS,OAAO,CAAA;AACpC,IAAA,IAAA,CAAK,QAAA,EAAU,IAAI,8BAAA,CAAQ,OAAO,CAAA;AAClC,IAAA,IAAA,CAAK,SAAA,EAAW,IAAI,+BAAA,CAAS,OAAO,CAAA;AACpC,IAAA,IAAA,CAAK,gBAAA,EAAkB,IAAI,8CAAA,CAAwB,OAAO,CAAA;AAC1D,IAAA,IAAA,CAAK,eAAA,EAAiB,IAAI,qCAAA,CAAe,OAAO,CAAA;AAChD,IAAA,IAAA,CAAK,gBAAA,EAAkB,IAAI,sCAAA,CAAgB,OAAO,CAAA;AAClD,IAAA,IAAA,CAAK,UAAA,EAAY,IAAI,gCAAA,CAAU,OAAO,CAAA;AACtC,IAAA,IAAA,CAAK,mBAAA,EAAqB,IAAI,yCAAA,CAAmB,OAAO,CAAA;AACxD,IAAA,IAAA,CAAK,cAAA,EAAgB,IAAI,oCAAA,CAAc,OAAO,CAAA;AAC9C,IAAA,IAAA,CAAK,MAAA,EAAQ,IAAI,4BAAA,CAAM,OAAO,CAAA;AAC9B,IAAA,IAAA,CAAK,OAAA,EAAS,IAAI,6BAAA,CAAO,OAAO,CAAA;AAChC,IAAA,IAAA,CAAK,QAAA,EAAU,IAAI,8BAAA,CAAQ,OAAO,CAAA;AAAA,EACpC;AACF,CAAA;AAAA;AA5Oa,OAAA,CAEJ,SAAA,EAAW,0BAAA;ADqOpB;AACA;AACE;AACF,0BAAC","file":"/tmp/w4-pub468/sdk/dist/chunk-LD45Q6VA.cjs","sourcesContent":[null,"import { DelopayCore } from './core';\nimport type { DelopayOptions } from './core';\nimport { ApiKeys } from './resources/apiKeys';\nimport { Authentication } from './resources/authentication';\nimport { Billing } from './resources/billing';\nimport { Connectors } from './resources/connectors';\nimport { Customers } from './resources/customers';\nimport { Disputes } from './resources/disputes';\nimport { ChargebackPrevention } from './resources/chargebackPrevention';\nimport { PaypalDisputes } from './resources/paypalDisputes';\nimport { WhopResolutionCases } from './resources/whopResolutionCases';\nimport { EphemeralKeys } from './resources/ephemeralKeys';\nimport { Events } from './resources/events';\nimport { Fees } from './resources/fees';\nimport { Mandates } from './resources/mandates';\nimport { MerchantAccounts } from './resources/merchantAccounts';\nimport { PaymentLinks } from './resources/paymentLinks';\nimport { PaymentMethods } from './resources/paymentMethods';\nimport { Payments } from './resources/payments';\nimport { Payouts } from './resources/payouts';\nimport { Poll } from './resources/poll';\nimport { ProfileAcquirers } from './resources/profileAcquirers';\nimport { Profiles } from './resources/profiles';\nimport { Projects } from './resources/projects';\nimport { Refunds } from './resources/refunds';\nimport { Relay } from './resources/relay';\nimport { Routing } from './resources/routing';\nimport { Search } from './resources/search';\nimport { AiTools } from './resources/aiTools';\nimport { Shops } from './resources/shops';\nimport { StripeConnect } from './resources/stripeConnect';\nimport { ThreeDsRules } from './resources/threeDsRules';\nimport { Users } from './resources/users';\nimport { Verification } from './resources/verification';\nimport { IdentityVerifications } from './resources/identityVerifications';\nimport { Webhooks } from './resources/webhooks';\nimport { Analytics } from './resources/analytics';\nimport { AnalyticsDashboard } from './resources/analyticsDashboard';\nimport { Cards } from './resources/cards';\nimport { Export } from './resources/export';\nimport { FeatureMatrix } from './resources/featureMatrix';\nimport { Files } from './resources/files';\nimport { Forex } from './resources/forex';\nimport { Regions } from './resources/regions';\nimport { AvailabilityOverrides } from './resources/availabilityOverrides';\nimport { SellToRestrictions } from './resources/sellToRestrictions';\nimport { VatRates } from './resources/vatRates';\nimport { BuyerBlocklist } from './resources/buyerBlocklist';\nimport { CheckoutDomains } from './resources/checkoutDomains';\nimport { Persons } from './resources/persons';\nimport { ShopLabels } from './resources/shopLabels';\nimport { Industries } from './resources/industries';\nimport { PayoutDestinations } from './resources/payoutDestinations';\nimport { Notices } from './resources/notices';\nimport { Shopify } from './resources/shopify';\nimport { CheckoutTemplates } from './resources/checkoutTemplates';\nimport { BuyerConversations } from './resources/buyerConversations';\nimport { BuyerEvidenceReviews } from './resources/buyerEvidenceReviews';\nimport { CheckoutRecovery } from './resources/checkoutRecovery';\nimport { CostRules } from './resources/costRules';\nimport { ExternalRecords } from './resources/externalRecords';\nimport { Products } from './resources/products';\nimport { Support } from './resources/support';\nimport { Invoices } from './resources/invoices';\nimport { InvoiceSettingsResource } from './resources/invoiceSettings';\nimport { ProcessorCosts } from './resources/processorCosts';\nimport { CheckoutMethods } from './resources/checkoutMethods';\nimport { Subscriptions } from './resources/subscriptions';\nimport { BuyerAccount } from './resources/buyerAccount';\nimport { BuyerPortal } from './resources/buyerPortal';\nimport { Audit } from './resources/audit';\nimport { Settlement } from './resources/settlement';\nimport { OperationLimits } from './resources/operationLimits';\nimport { Settings } from './resources/settings';\nimport { MessageTemplates } from './resources/messageTemplates';\nimport { Risk } from './resources/risk';\nimport { Live } from './resources/live';\nimport { ProcessorImports } from './resources/processorImports';\nimport { Branding } from './resources/deploymentBranding';\nimport { ContentEncryption } from './resources/contentEncryption';\n\nexport * from './core';\n\n/**\n * Delopay API client.\n *\n * Instantiate once with your API key and reuse across your application.\n * All resource sub-clients (payments, refunds, customers, …) are exposed\n * as properties on the instance.\n *\n * Every resource is in the bundle of an application that uses this class. A\n * browser application that wants only the resources it calls uses\n * {@link DelopayCore} instead.\n *\n * @example\n * ```typescript\n * const delopay = new Delopay('prd_...', { sandbox: false });\n * const payment = await delopay.payments.create({ amount: 5000, currency: 'EUR' });\n * ```\n */\nexport class Delopay extends DelopayCore {\n /** Utility for verifying incoming webhook signatures (static, no instance needed). */\n static webhooks = Webhooks;\n\n // Merchant-facing\n readonly payments: Payments;\n readonly refunds: Refunds;\n readonly customers: Customers;\n readonly paymentMethods: PaymentMethods;\n readonly paymentLinks: PaymentLinks;\n readonly mandates: Mandates;\n readonly disputes: Disputes;\n readonly chargebackPrevention: ChargebackPrevention;\n readonly paypalDisputes: PaypalDisputes;\n readonly whopResolutionCases: WhopResolutionCases;\n /** Import refunds and disputes from connected processor accounts. */\n readonly processorImports: ProcessorImports;\n readonly payouts: Payouts;\n readonly ephemeralKeys: EphemeralKeys;\n readonly events: Events;\n readonly poll: Poll;\n\n // Connector / routing\n readonly connectors: Connectors;\n readonly routing: Routing;\n readonly profiles: Profiles;\n readonly shops: Shops;\n readonly profileAcquirers: ProfileAcquirers;\n\n // Authentication & verification\n readonly authentication: Authentication;\n readonly verification: Verification;\n readonly identityVerifications: IdentityVerifications;\n\n // Dashboard / internal\n readonly users: Users;\n readonly apiKeys: ApiKeys;\n readonly billing: Billing;\n readonly fees: Fees;\n readonly merchantAccounts: MerchantAccounts;\n readonly projects: Projects;\n readonly relay: Relay;\n readonly stripeConnect: StripeConnect;\n readonly threeDsRules: ThreeDsRules;\n /**\n * A merchant's own audit log. Needs a dashboard JWT, not an API key —\n * see {@link Audit}.\n */\n readonly audit: Audit;\n readonly settlement: Settlement;\n readonly operationLimits: OperationLimits;\n /** Every setting of the merchant, its projects and its shops, audited per change. */\n readonly settings: Settings;\n /** A shop's own texts of the emails it sends its buyers. */\n readonly messageTemplates: MessageTemplates;\n readonly risk: Risk;\n /**\n * Live updates of the dashboard: the stream of what changed and the\n * versions a save names in `If-Match`. Needs a dashboard JWT — see\n * {@link Live}.\n */\n readonly live: Live;\n /**\n * The deployment's branding (name, logos, favicon, default checkout\n * colours) as the operator saved it. Public: no credential is needed.\n */\n readonly branding: Branding;\n /**\n * Whether the deployment stores new messages and uploaded files encrypted\n * with its own key. Public: no credential is needed.\n */\n readonly contentEncryption: ContentEncryption;\n\n // New resources (Phases 3-4)\n readonly subscriptions: Subscriptions;\n /** Buyer portal grant access. Construct a separate client with the portal token. */\n readonly buyerPortal: BuyerPortal;\n /**\n * The buyer account: email sign-in, and purchases across merchants.\n * Construct a separate client with the buyer account session token for\n * everything after the sign-in.\n */\n readonly buyerAccount: BuyerAccount;\n readonly files: Files;\n readonly export: Export;\n readonly forex: Forex;\n readonly regions: Regions;\n readonly availabilityOverrides: AvailabilityOverrides;\n readonly sellToRestrictions: SellToRestrictions;\n /** The platform VAT rate table buyer tax charges from, read-only. */\n readonly vatRates: VatRates;\n /** Buyers the merchant refuses to sell to again (email, IP, customer, device, card, BIN), with Stripe Radar sync. */\n readonly buyerBlocklist: BuyerBlocklist;\n /** The merchant's own checkout addresses: subdomains and own domains, their setup, shops and Apple Pay file. */\n readonly checkoutDomains: CheckoutDomains;\n /** The merchant's payments grouped by the person behind them. */\n readonly persons: Persons;\n /** The merchant's labels for grouping shops, several per shop. */\n readonly shopLabels: ShopLabels;\n /** The industry of the merchant, its projects and its shops, with what each inherits. */\n readonly industries: Industries;\n /** Payouts: how team members want to be paid. Moves no money. */\n readonly payoutDestinations: PayoutDestinations;\n /** Notices a merchant's people send each other. */\n readonly notices: Notices;\n /** A shop's link to the merchant's Shopify store, its storefront settings and its sync log. */\n readonly shopify: Shopify;\n /** Payment methods, behaviour and smart routing defined once and used in many shops. */\n readonly checkoutTemplates: CheckoutTemplates;\n /** Conversations between buyers and the shop's team: the team inbox. */\n readonly buyerConversations: BuyerConversations;\n /** The evidence buyers hand in for the shop's cases, as the shop's team reviews it. */\n readonly buyerEvidence: BuyerEvidenceReviews;\n readonly checkoutRecovery: CheckoutRecovery;\n readonly costRules: CostRules;\n\n /** Out-of-band transitions a PSP made that DeloPay never observed. */\n readonly externalRecords: ExternalRecords;\n\n /** A shop's product catalogue: what it sells, and at which prices. */\n readonly products: Products;\n /** Conversations with DeloPay's support team. */\n readonly support: Support;\n /** The invoices and credit notes the merchant issues to its buyers. */\n readonly invoices: Invoices;\n /** How those invoices look and are taxed: the merchant default and each shop's override. */\n readonly invoiceSettings: InvoiceSettingsResource;\n /** What the merchant's own processor charges it — see {@link ProcessorCosts}. */\n readonly processorCosts: ProcessorCosts;\n readonly checkoutMethods: CheckoutMethods;\n readonly analytics: Analytics;\n readonly analyticsDashboard: AnalyticsDashboard;\n readonly featureMatrix: FeatureMatrix;\n readonly cards: Cards;\n readonly search: Search;\n /** AI tools working in the account through the MCP server: their confirmations and connections. */\n readonly aiTools: AiTools;\n\n /**\n * Create a new Delopay client.\n *\n * @param apiKey - Your Delopay API key (e.g. `prd_...` or `snd_...`).\n * Pass an empty string or omit for JWT-only usage (e.g. dashboard apps).\n * @param options - Optional configuration (sandbox mode, base URL override, timeout).\n */\n constructor(apiKey?: string, options?: DelopayOptions) {\n super(apiKey, options);\n const { request, openStream } = this.transport;\n\n // Merchant-facing\n this.payments = new Payments(request);\n this.refunds = new Refunds(request);\n this.customers = new Customers(request);\n this.paymentMethods = new PaymentMethods(request);\n this.paymentLinks = new PaymentLinks(request);\n this.mandates = new Mandates(request);\n this.disputes = new Disputes(request);\n this.chargebackPrevention = new ChargebackPrevention(request);\n this.paypalDisputes = new PaypalDisputes(request);\n this.whopResolutionCases = new WhopResolutionCases(request);\n this.payouts = new Payouts(request);\n this.ephemeralKeys = new EphemeralKeys(request);\n this.events = new Events(request);\n this.poll = new Poll(request);\n\n // Connector / routing\n this.connectors = new Connectors(request);\n this.routing = new Routing(request);\n this.profiles = new Profiles(request);\n this.shops = new Shops(request);\n this.profileAcquirers = new ProfileAcquirers(request);\n\n // Authentication & verification\n this.authentication = new Authentication(request);\n this.verification = new Verification(request);\n this.identityVerifications = new IdentityVerifications(request);\n\n // Dashboard / internal\n this.users = new Users(request);\n this.apiKeys = new ApiKeys(request);\n this.billing = new Billing(request);\n this.fees = new Fees(request);\n this.merchantAccounts = new MerchantAccounts(request);\n this.projects = new Projects(request);\n this.relay = new Relay(request);\n this.stripeConnect = new StripeConnect(request);\n this.threeDsRules = new ThreeDsRules(request);\n this.audit = new Audit(request);\n this.settlement = new Settlement(request);\n this.operationLimits = new OperationLimits(request);\n this.settings = new Settings(request);\n this.messageTemplates = new MessageTemplates(request);\n this.risk = new Risk(request);\n this.live = new Live(request, openStream);\n this.processorImports = new ProcessorImports(request, openStream);\n this.branding = new Branding(request, this.baseUrl);\n this.contentEncryption = new ContentEncryption(request);\n\n // New resources (Phases 3-4)\n this.subscriptions = new Subscriptions(request);\n this.buyerPortal = new BuyerPortal(request);\n this.buyerAccount = new BuyerAccount(request);\n this.files = new Files(request);\n this.export = new Export(request);\n this.forex = new Forex(request);\n this.regions = new Regions(request);\n this.availabilityOverrides = new AvailabilityOverrides(request);\n this.sellToRestrictions = new SellToRestrictions(request);\n this.vatRates = new VatRates(request);\n this.buyerBlocklist = new BuyerBlocklist(request);\n this.checkoutDomains = new CheckoutDomains(request);\n this.persons = new Persons(request);\n this.shopLabels = new ShopLabels(request);\n this.industries = new Industries(request);\n this.payoutDestinations = new PayoutDestinations(request);\n this.notices = new Notices(request);\n this.shopify = new Shopify(request);\n this.checkoutTemplates = new CheckoutTemplates(request);\n this.buyerConversations = new BuyerConversations(request);\n this.buyerEvidence = new BuyerEvidenceReviews(request);\n this.checkoutRecovery = new CheckoutRecovery(request);\n this.costRules = new CostRules(request);\n this.externalRecords = new ExternalRecords(request);\n this.products = new Products(request);\n this.support = new Support(request);\n this.invoices = new Invoices(request);\n this.invoiceSettings = new InvoiceSettingsResource(request);\n this.processorCosts = new ProcessorCosts(request);\n this.checkoutMethods = new CheckoutMethods(request);\n this.analytics = new Analytics(request);\n this.analyticsDashboard = new AnalyticsDashboard(request);\n this.featureMatrix = new FeatureMatrix(request);\n this.cards = new Cards(request);\n this.search = new Search(request);\n this.aiTools = new AiTools(request);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-LJ2EG6JK.cjs","../src/resources/paymentMethods.ts"],"names":[],"mappings":"AAAA;ACeO,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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiBlD,MAAM,MAAA,CAAO,MAAA,EAAoE;AAC/E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,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uF,EAAA;AACzE,IAAA;AACV,MAAA;AACgE,MAAA;AAClE,IAAA;AACF,EAAA;AAAA;AAAA;AAK+E,EAAA;AACL,IAAA;AAC1E,EAAA;AAAA;AAGwF,EAAA;AAChB,IAAA;AACxE,EAAA;AAAA;AAGuF,EAAA;AACT,IAAA;AAC9E,EAAA;AAAA;AAKoC,EAAA;AACoC,IAAA;AACxE,EAAA;AAAA;AAGsF,EAAA;AACd,IAAA;AACxE,EAAA;AAAA;AAG6F,EAAA;AACf,IAAA;AAC9E,EAAA;AAAA;AAGiF,EAAA;AACP,IAAA;AAC1E,EAAA;AAAA;AAG+F,EAAA;AACjB,IAAA;AACpE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAGwF,EAAA;AACZ,IAAA;AAC5E,EAAA;AAAA;AAG2F,EAAA;AACnB,IAAA;AACxE,EAAA;AAAA;AAMoC,EAAA;AAC0C,IAAA;AACpE,MAAA;AACP,IAAA;AACH,EAAA;AACF;ADhDgF;AACA;AACA;AACA","file":"/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-LJ2EG6JK.cjs","sourcesContent":[null,"import type {\n PaymentMethodCreateRequest,\n PaymentMethodResponse,\n PaymentMethodUpdateRequest,\n PaymentMethodListParams,\n PaymentMethodListResponse,\n PaymentMethodDeleteResponse,\n PaymentMethodPresentationParams,\n PaymentMethodPresentationResponse,\n CustomerPaymentMethodsListParams,\n CustomerPaymentMethodsListResponse,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/** Create and manage saved payment methods for customers. */\nexport class PaymentMethods {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Save a new payment method (card, bank account, wallet, etc.).\n *\n * @param params - Payment method data including type and card/bank details.\n * @returns The saved payment method.\n *\n * @example\n * ```typescript\n * const pm = await delopay.paymentMethods.create({\n * payment_method: 'card',\n * customer_id: 'cus_123',\n * client_secret: 'cs_...',\n * });\n * ```\n */\n async create(params: PaymentMethodCreateRequest): Promise<PaymentMethodResponse> {\n return this.request('POST', '/payment-methods', { body: params });\n }\n\n /**\n * Retrieve a saved payment method by its ID.\n *\n * @param methodId - The payment method ID.\n * @returns The payment method.\n */\n async retrieve(methodId: string): Promise<PaymentMethodResponse> {\n return this.request('GET', `/payment-methods/${encodeURIComponent(methodId)}`);\n }\n\n /**\n * Update an existing payment method (e.g. update card expiry).\n *\n * @param methodId - The payment method ID to update.\n * @param params - Fields to update (card expiry, holder name, etc.).\n * @returns The updated payment method.\n */\n async update(\n methodId: string,\n params: PaymentMethodUpdateRequest,\n ): Promise<PaymentMethodResponse> {\n return this.request('POST', `/payment-methods/${encodeURIComponent(methodId)}/update`, {\n body: params,\n });\n }\n\n /**\n * Delete a saved payment method.\n *\n * @param methodId - The payment method ID to delete.\n * @returns Deletion confirmation.\n */\n async delete(methodId: string): Promise<PaymentMethodDeleteResponse> {\n return this.request('DELETE', `/payment-methods/${encodeURIComponent(methodId)}`);\n }\n\n /**\n * List the payment methods available for a payment — the discovery endpoint a\n * custom checkout renders its tiles from.\n *\n * Callable with a publishable key plus the payment's `client_secret`, so it\n * runs from the browser. The returned set is already filtered by country,\n * order value and the merchant's availability rules, and each entry carries\n * `display` (name + icon slug) and `amount_limits` (the order values it stays\n * available for) so you do not have to maintain either alongside.\n *\n * This is *not* the customer's saved methods — see {@link listForCustomer}.\n *\n * @param params - `client_secret`, plus optional `country`, `amount` and filters.\n * @returns The methods available for the payment, grouped by payment method.\n *\n * @example\n * ```typescript\n * const { payment_methods } = await delopay.paymentMethods.list({\n * client_secret: 'pay_abc_secret_xyz',\n * country: 'DE',\n * amount: 25000,\n * });\n *\n * for (const group of payment_methods) {\n * for (const method of group.payment_method_types) {\n * // Re-check availability yourself as the cart total changes, instead of\n * // re-listing on every keystroke.\n * const limits = method.amount_limits;\n * const available =\n * !limits ||\n * ((limits.min_amount == null || cartTotal >= limits.min_amount) &&\n * (limits.max_amount == null || cartTotal <= limits.max_amount) &&\n * !limits.excluded_ranges.some(\n * (band) => cartTotal >= band.min_amount && cartTotal <= band.max_amount,\n * ));\n *\n * if (available) render(method.display?.display_name, method.display?.icon_slug);\n * }\n * }\n * ```\n */\n async list(params?: PaymentMethodListParams): Promise<PaymentMethodListResponse> {\n return this.request('GET', '/payment-methods', {\n query: params as Record<string, string | number | undefined>,\n });\n }\n\n /**\n * The shop's payment buttons as the hosted checkout draws them: order,\n * labels in the shop's or caller's language, artwork, and what selecting\n * each one does. For rendering payment buttons on your own site without a\n * local table of provider names and icons.\n *\n * With a secret key, name the shop (`profile_id`) and optionally the\n * environment and a buyer context; the answer may be reused for\n * `cache.max_age_seconds` — {@link PresentationCache} does that. With a\n * publishable key, pass the payment's `client_secret` (or use\n * `CheckoutSession.paymentMethodPresentation`); that answer is never reused.\n *\n * A displayed entry is not a promise: the payment is confirmed against the\n * current configuration.\n *\n * `GET /account/payment-methods/presentation`\n *\n * @example\n * ```typescript\n * const buttons = await delopay.paymentMethods.presentation({\n * profile_id: 'pro_123',\n * country: 'DE',\n * currency: 'EUR',\n * amount: 4999,\n * locale: 'de',\n * });\n * for (const entry of buttons.entries) {\n * if (entry.kind === 'heading') renderHeading(entry.label);\n * else renderButton(entry.label, entry.sublabel, presentationIconSrc(entry));\n * }\n * ```\n */\n async presentation(\n params?: PaymentMethodPresentationParams,\n options?: RequestExtras,\n ): Promise<PaymentMethodPresentationResponse> {\n return this.request('GET', '/account/payment-methods/presentation', {\n query: params as Record<string, string | number | undefined>,\n ...options,\n });\n }\n\n /**\n * List all saved payment methods for a customer, optionally filtered.\n *\n * @param customerId - The customer ID.\n * @param params - Optional filters: `client_secret`, `accepted_countries`, `accepted_currencies`,\n * `amount`, `recurring_enabled`, `installment_payment_enabled`, `limit`, `card_networks`.\n * @returns Customer's saved payment methods.\n *\n * @example\n * ```typescript\n * const { customer_payment_methods } = await delopay.paymentMethods.listForCustomer(\n * 'cus_123',\n * { accepted_currencies: ['EUR'], amount: 5000 },\n * );\n * ```\n */\n async listForCustomer(\n customerId: string,\n params?: CustomerPaymentMethodsListParams,\n ): Promise<CustomerPaymentMethodsListResponse> {\n return this.request('GET', `/customers/${encodeURIComponent(customerId)}/payment-methods`, {\n query: params as Record<\n string,\n string | number | boolean | (string | number | boolean)[] | null | undefined\n >,\n });\n }\n\n /**\n * Set a payment method as the default for a customer.\n *\n * @param customerId - The customer ID.\n * @param methodId - The payment method ID to set as default.\n * @returns The updated payment method.\n */\n async setDefault(customerId: string, methodId: string): Promise<PaymentMethodResponse> {\n return this.request(\n 'POST',\n `/customers/${encodeURIComponent(customerId)}/payment-methods/${encodeURIComponent(methodId)}/default`,\n );\n }\n\n // --- Advanced operations (Task 3.3) ---\n\n /** Migrate a payment method. `POST /payment-methods/migrate` */\n async migrate(params: Record<string, unknown>): Promise<PaymentMethodResponse> {\n return this.request('POST', '/payment-methods/migrate', { body: params });\n }\n\n /** Batch migrate payment methods. `POST /payment-methods/migrate-batch` */\n async migrateBatch(params: Record<string, unknown>[]): Promise<Record<string, unknown>> {\n return this.request('POST', '/payment-methods/migrate-batch', { body: params });\n }\n\n /** Batch update payment methods. `POST /payment-methods/update-batch` */\n async updateBatch(params: Record<string, unknown>[]): Promise<Record<string, unknown>> {\n return this.request('POST', '/payment-methods/update-batch', { body: params });\n }\n\n /** Batch retrieve payment methods. `GET /payment-methods/batch` */\n async batchRetrieve(\n params?: Record<string, string | number | undefined>,\n ): Promise<PaymentMethodResponse[]> {\n return this.request('GET', '/payment-methods/batch', { query: params });\n }\n\n /** Tokenize a card. `POST /payment-methods/tokenize-card` */\n async tokenizeCard(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/payment-methods/tokenize-card', { body: params });\n }\n\n /** Batch tokenize cards. `POST /payment-methods/tokenize-card-batch` */\n async tokenizeCardBatch(params: Record<string, unknown>[]): Promise<Record<string, unknown>> {\n return this.request('POST', '/payment-methods/tokenize-card-batch', { body: params });\n }\n\n /** Initiate payment method collect link flow. `POST /payment-methods/collect` */\n async collect(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/payment-methods/collect', { body: params });\n }\n\n /** Save a payment method. `POST /payment-methods/{methodId}/save` */\n async save(methodId: string, params?: Record<string, unknown>): Promise<PaymentMethodResponse> {\n return this.request('POST', `/payment-methods/${encodeURIComponent(methodId)}/save`, {\n body: params,\n });\n }\n\n /** Create payment method auth link token. `POST /payment-methods/auth/link` */\n async createAuthLink(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/payment-methods/auth/link', { body: params });\n }\n\n /** Exchange payment method auth token. `POST /payment-methods/auth/exchange` */\n async exchangeAuthToken(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/payment-methods/auth/exchange', { body: params });\n }\n\n /** Tokenize card using existing PM. `POST /payment-methods/{methodId}/tokenize-card` */\n async tokenizeCardForMethod(\n methodId: string,\n params: Record<string, unknown>,\n ): Promise<Record<string, unknown>> {\n return this.request('POST', `/payment-methods/${encodeURIComponent(methodId)}/tokenize-card`, {\n body: params,\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w4-pub468/sdk/dist/chunk-LJ2EG6JK.cjs","../src/resources/paymentMethods.ts"],"names":[],"mappings":"AAAA;ACeO,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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiBlD,MAAM,MAAA,CAAO,MAAA,EAAoE;AAC/E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,kBAAA,EAAoB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAClE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,QAAA,CAAS,QAAA,EAAkD;AAC/D,IAAA,OAAO,IAAA,CAAK,OAAA,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AA;AAC9E,EAAA;AAAA;AAKoC,EAAA;AACoC,IAAA;AACxE,EAAA;AAAA;AAGsF,EAAA;AACd,IAAA;AACxE,EAAA;AAAA;AAG6F,EAAA;AACf,IAAA;AAC9E,EAAA;AAAA;AAGiF,EAAA;AACP,IAAA;AAC1E,EAAA;AAAA;AAG+F,EAAA;AACjB,IAAA;AACpE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAGwF,EAAA;AACZ,IAAA;AAC5E,EAAA;AAAA;AAG2F,EAAA;AACnB,IAAA;AACxE,EAAA;AAAA;AAMoC,EAAA;AAC0C,IAAA;AACpE,MAAA;AACP,IAAA;AACH,EAAA;AACF;ADhDgF;AACA;AACA;AACA","file":"/tmp/w4-pub468/sdk/dist/chunk-LJ2EG6JK.cjs","sourcesContent":[null,"import type {\n PaymentMethodCreateRequest,\n PaymentMethodResponse,\n PaymentMethodUpdateRequest,\n PaymentMethodListParams,\n PaymentMethodListResponse,\n PaymentMethodDeleteResponse,\n PaymentMethodPresentationParams,\n PaymentMethodPresentationResponse,\n CustomerPaymentMethodsListParams,\n CustomerPaymentMethodsListResponse,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/** Create and manage saved payment methods for customers. */\nexport class PaymentMethods {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Save a new payment method (card, bank account, wallet, etc.).\n *\n * @param params - Payment method data including type and card/bank details.\n * @returns The saved payment method.\n *\n * @example\n * ```typescript\n * const pm = await delopay.paymentMethods.create({\n * payment_method: 'card',\n * customer_id: 'cus_123',\n * client_secret: 'cs_...',\n * });\n * ```\n */\n async create(params: PaymentMethodCreateRequest): Promise<PaymentMethodResponse> {\n return this.request('POST', '/payment-methods', { body: params });\n }\n\n /**\n * Retrieve a saved payment method by its ID.\n *\n * @param methodId - The payment method ID.\n * @returns The payment method.\n */\n async retrieve(methodId: string): Promise<PaymentMethodResponse> {\n return this.request('GET', `/payment-methods/${encodeURIComponent(methodId)}`);\n }\n\n /**\n * Update an existing payment method (e.g. update card expiry).\n *\n * @param methodId - The payment method ID to update.\n * @param params - Fields to update (card expiry, holder name, etc.).\n * @returns The updated payment method.\n */\n async update(\n methodId: string,\n params: PaymentMethodUpdateRequest,\n ): Promise<PaymentMethodResponse> {\n return this.request('POST', `/payment-methods/${encodeURIComponent(methodId)}/update`, {\n body: params,\n });\n }\n\n /**\n * Delete a saved payment method.\n *\n * @param methodId - The payment method ID to delete.\n * @returns Deletion confirmation.\n */\n async delete(methodId: string): Promise<PaymentMethodDeleteResponse> {\n return this.request('DELETE', `/payment-methods/${encodeURIComponent(methodId)}`);\n }\n\n /**\n * List the payment methods available for a payment — the discovery endpoint a\n * custom checkout renders its tiles from.\n *\n * Callable with a publishable key plus the payment's `client_secret`, so it\n * runs from the browser. The returned set is already filtered by country,\n * order value and the merchant's availability rules, and each entry carries\n * `display` (name + icon slug) and `amount_limits` (the order values it stays\n * available for) so you do not have to maintain either alongside.\n *\n * This is *not* the customer's saved methods — see {@link listForCustomer}.\n *\n * @param params - `client_secret`, plus optional `country`, `amount` and filters.\n * @returns The methods available for the payment, grouped by payment method.\n *\n * @example\n * ```typescript\n * const { payment_methods } = await delopay.paymentMethods.list({\n * client_secret: 'pay_abc_secret_xyz',\n * country: 'DE',\n * amount: 25000,\n * });\n *\n * for (const group of payment_methods) {\n * for (const method of group.payment_method_types) {\n * // Re-check availability yourself as the cart total changes, instead of\n * // re-listing on every keystroke.\n * const limits = method.amount_limits;\n * const available =\n * !limits ||\n * ((limits.min_amount == null || cartTotal >= limits.min_amount) &&\n * (limits.max_amount == null || cartTotal <= limits.max_amount) &&\n * !limits.excluded_ranges.some(\n * (band) => cartTotal >= band.min_amount && cartTotal <= band.max_amount,\n * ));\n *\n * if (available) render(method.display?.display_name, method.display?.icon_slug);\n * }\n * }\n * ```\n */\n async list(params?: PaymentMethodListParams): Promise<PaymentMethodListResponse> {\n return this.request('GET', '/payment-methods', {\n query: params as Record<string, string | number | undefined>,\n });\n }\n\n /**\n * The shop's payment buttons as the hosted checkout draws them: order,\n * labels in the shop's or caller's language, artwork, and what selecting\n * each one does. For rendering payment buttons on your own site without a\n * local table of provider names and icons.\n *\n * With a secret key, name the shop (`profile_id`) and optionally the\n * environment and a buyer context; the answer may be reused for\n * `cache.max_age_seconds` — {@link PresentationCache} does that. With a\n * publishable key, pass the payment's `client_secret` (or use\n * `CheckoutSession.paymentMethodPresentation`); that answer is never reused.\n *\n * A displayed entry is not a promise: the payment is confirmed against the\n * current configuration.\n *\n * `GET /account/payment-methods/presentation`\n *\n * @example\n * ```typescript\n * const buttons = await delopay.paymentMethods.presentation({\n * profile_id: 'pro_123',\n * country: 'DE',\n * currency: 'EUR',\n * amount: 4999,\n * locale: 'de',\n * });\n * for (const entry of buttons.entries) {\n * if (entry.kind === 'heading') renderHeading(entry.label);\n * else renderButton(entry.label, entry.sublabel, presentationIconSrc(entry));\n * }\n * ```\n */\n async presentation(\n params?: PaymentMethodPresentationParams,\n options?: RequestExtras,\n ): Promise<PaymentMethodPresentationResponse> {\n return this.request('GET', '/account/payment-methods/presentation', {\n query: params as Record<string, string | number | undefined>,\n ...options,\n });\n }\n\n /**\n * List all saved payment methods for a customer, optionally filtered.\n *\n * @param customerId - The customer ID.\n * @param params - Optional filters: `client_secret`, `accepted_countries`, `accepted_currencies`,\n * `amount`, `recurring_enabled`, `installment_payment_enabled`, `limit`, `card_networks`.\n * @returns Customer's saved payment methods.\n *\n * @example\n * ```typescript\n * const { customer_payment_methods } = await delopay.paymentMethods.listForCustomer(\n * 'cus_123',\n * { accepted_currencies: ['EUR'], amount: 5000 },\n * );\n * ```\n */\n async listForCustomer(\n customerId: string,\n params?: CustomerPaymentMethodsListParams,\n ): Promise<CustomerPaymentMethodsListResponse> {\n return this.request('GET', `/customers/${encodeURIComponent(customerId)}/payment-methods`, {\n query: params as Record<\n string,\n string | number | boolean | (string | number | boolean)[] | null | undefined\n >,\n });\n }\n\n /**\n * Set a payment method as the default for a customer.\n *\n * @param customerId - The customer ID.\n * @param methodId - The payment method ID to set as default.\n * @returns The updated payment method.\n */\n async setDefault(customerId: string, methodId: string): Promise<PaymentMethodResponse> {\n return this.request(\n 'POST',\n `/customers/${encodeURIComponent(customerId)}/payment-methods/${encodeURIComponent(methodId)}/default`,\n );\n }\n\n // --- Advanced operations (Task 3.3) ---\n\n /** Migrate a payment method. `POST /payment-methods/migrate` */\n async migrate(params: Record<string, unknown>): Promise<PaymentMethodResponse> {\n return this.request('POST', '/payment-methods/migrate', { body: params });\n }\n\n /** Batch migrate payment methods. `POST /payment-methods/migrate-batch` */\n async migrateBatch(params: Record<string, unknown>[]): Promise<Record<string, unknown>> {\n return this.request('POST', '/payment-methods/migrate-batch', { body: params });\n }\n\n /** Batch update payment methods. `POST /payment-methods/update-batch` */\n async updateBatch(params: Record<string, unknown>[]): Promise<Record<string, unknown>> {\n return this.request('POST', '/payment-methods/update-batch', { body: params });\n }\n\n /** Batch retrieve payment methods. `GET /payment-methods/batch` */\n async batchRetrieve(\n params?: Record<string, string | number | undefined>,\n ): Promise<PaymentMethodResponse[]> {\n return this.request('GET', '/payment-methods/batch', { query: params });\n }\n\n /** Tokenize a card. `POST /payment-methods/tokenize-card` */\n async tokenizeCard(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/payment-methods/tokenize-card', { body: params });\n }\n\n /** Batch tokenize cards. `POST /payment-methods/tokenize-card-batch` */\n async tokenizeCardBatch(params: Record<string, unknown>[]): Promise<Record<string, unknown>> {\n return this.request('POST', '/payment-methods/tokenize-card-batch', { body: params });\n }\n\n /** Initiate payment method collect link flow. `POST /payment-methods/collect` */\n async collect(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/payment-methods/collect', { body: params });\n }\n\n /** Save a payment method. `POST /payment-methods/{methodId}/save` */\n async save(methodId: string, params?: Record<string, unknown>): Promise<PaymentMethodResponse> {\n return this.request('POST', `/payment-methods/${encodeURIComponent(methodId)}/save`, {\n body: params,\n });\n }\n\n /** Create payment method auth link token. `POST /payment-methods/auth/link` */\n async createAuthLink(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/payment-methods/auth/link', { body: params });\n }\n\n /** Exchange payment method auth token. `POST /payment-methods/auth/exchange` */\n async exchangeAuthToken(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/payment-methods/auth/exchange', { body: params });\n }\n\n /** Tokenize card using existing PM. `POST /payment-methods/{methodId}/tokenize-card` */\n async tokenizeCardForMethod(\n methodId: string,\n params: Record<string, unknown>,\n ): Promise<Record<string, unknown>> {\n return this.request('POST', `/payment-methods/${encodeURIComponent(methodId)}/tokenize-card`, {\n body: params,\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-LLYY4TCZ.cjs","../src/resources/routing.ts"],"names":[],"mappings":"AAAA;AC2CO,IAAM,QAAA,EAAN,MAAc;AAAA,EASnB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAC3B,IAAA,IAAA,CAAK,SAAA,EAAW,IAAI,sBAAA,CAAuB,OAAO,CAAA;AAClD,IAAA,IAAA,CAAK,eAAA,EAAiB,IAAI,cAAA,CAAe,OAAO,CAAA;AAChD,IAAA,IAAA,CAAK,mBAAA,EAAqB,IAAI,kBAAA,CAAmB,OAAO,CAAA;AACxD,IAAA,IAAA,CAAK,wBAAA,EAA0B,IAAI,uBAAA,CAAwB,OAAO,CAAA;AAAA,EACpE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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jC,MAAA;AACD,IAAA;AACH,EAAA;AACF;AD9L2E;AACA;AACA;AACA","file":"/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-LLYY4TCZ.cjs","sourcesContent":[null,"import type {\n CheckoutThemeConversionQuery,\n CheckoutThemeConversionResponse,\n CheckoutThemeProgramRequest,\n CheckoutThemeProgramResponse,\n DefaultRoutingConfigUpdate,\n LinkedRoutingConfigRetrieveResponse,\n MerchantRoutingAlgorithm,\n ProfileDefaultRoutingConfig,\n ProfileDeniedConnectorsResponse,\n RoutableConnectorChoice,\n RoutingActivatePayload,\n RoutingConfigCreateRequest,\n RoutingConfigDeleteResponse,\n RoutingConfigHistoryResponse,\n RoutingConfigUpdateRequest,\n ConnectorCapOverride,\n ConnectorCapOverrideLevel,\n ConnectorCapOverrideList,\n ConnectorCapOverrideRequest,\n ConnectorCapOverrides,\n RoutingConnectorCapReset,\n RoutingConnectorCapResetRequest,\n RoutingConnectorCaps,\n RoutingConnectorCapSchedule,\n RoutingConnectorCapScheduleShuffle,\n RoutingDeactivateRequest,\n RoutingDictionary,\n RoutingDictionaryRecord,\n RoutingHistoryParams,\n RoutingTimePlanDocument,\n RoutingVolumeCounters,\n SurchargeRuleRequest,\n SurchargeRuleResponse,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * Create and manage payment routing algorithms.\n *\n * Routing rules determine which gateway connector handles each payment based on\n * card type, currency, amount, or custom conditions.\n */\nexport class Routing {\n readonly decision: RoutingDecisionManager;\n /** Merchant-friendly, per-payment-method surcharge rules (no Euclid DSL). */\n readonly surchargeRules: SurchargeRules;\n /** Which stored appearance variant a buyer is shown. Decides a look, never a payment. */\n readonly checkoutThemeRules: CheckoutThemeRules;\n /** Rendered-to-paid conversion per appearance variant and segment. */\n readonly checkoutThemeConversion: CheckoutThemeConversion;\n\n constructor(private readonly request: RequestFn) {\n this.decision = new RoutingDecisionManager(request);\n this.surchargeRules = new SurchargeRules(request);\n this.checkoutThemeRules = new CheckoutThemeRules(request);\n this.checkoutThemeConversion = new CheckoutThemeConversion(request);\n }\n\n /**\n * Create a new routing algorithm.\n *\n * @param params - Routing algorithm definition (rule-based, priority, or volume-based).\n * @returns Metadata record for the created routing configuration. The full\n * algorithm body is not echoed back — use `retrieve(id)` if you need it.\n *\n * @example\n * ```typescript\n * const config = await delopay.routing.create({\n * name: 'EU Priority',\n * algorithm: { type: 'priority', data: [{ connector: 'stripe' }] },\n * });\n * ```\n *\n * @example Conditional volume split (advanced): cards → 90% epayouts / 10% stripe.\n * Rules run top-down (first match wins); `defaultSelection` is the fallback.\n * Splits must sum to 100; `amount` conditions are in minor units.\n * ```typescript\n * const config = await delopay.routing.create({\n * name: 'Card split 90/10',\n * profile_id: 'pro_...',\n * algorithm: {\n * type: 'advanced',\n * data: {\n * defaultSelection: { type: 'priority', data: [{ connector: 'stripe' }] },\n * rules: [\n * {\n * name: 'cards',\n * connectorSelection: {\n * type: 'volume_split',\n * data: [\n * { connector: { connector: 'epayouts' }, split: 90 },\n * { connector: { connector: 'stripe' }, split: 10 },\n * ],\n * },\n * statements: [\n * {\n * condition: [\n * {\n * lhs: 'payment_method',\n * comparison: 'equal',\n * value: { type: 'enum_variant', value: 'card' },\n * metadata: {},\n * },\n * ],\n * },\n * ],\n * },\n * ],\n * metadata: {},\n * },\n * },\n * });\n * await delopay.routing.activate(config.id);\n * ```\n */\n async create(params: RoutingConfigCreateRequest): Promise<RoutingDictionaryRecord> {\n return this.request('POST', '/routing', { body: params });\n }\n\n /**\n * Retrieve a routing algorithm by its ID.\n *\n * @param algorithmId - The routing algorithm ID.\n * @returns The full routing configuration including the algorithm body.\n */\n async retrieve(algorithmId: string): Promise<MerchantRoutingAlgorithm> {\n return this.request('GET', `/routing/${encodeURIComponent(algorithmId)}`);\n }\n\n /**\n * Activate a routing algorithm, making it the active routing strategy.\n *\n * Always sends a JSON body (default `{}`) so the request carries the\n * `Content-Type: application/json` header that the server requires.\n *\n * @param algorithmId - The routing algorithm ID to activate.\n * @param params - Optional activation payload (e.g. `transaction_type`).\n */\n async activate(\n algorithmId: string,\n params: RoutingActivatePayload = {},\n ): Promise<RoutingDictionaryRecord> {\n return this.request('POST', `/routing/${encodeURIComponent(algorithmId)}/activate`, {\n body: params,\n });\n }\n\n /**\n * Deactivate the currently active routing algorithm (falls back to default routing).\n *\n * Always sends a JSON body (default `{}`) so the request carries the\n * `Content-Type: application/json` header that the server requires.\n *\n * @param params - Optional deactivation payload.\n */\n async deactivate(params: RoutingDeactivateRequest = {}): Promise<RoutingDictionaryRecord> {\n return this.request('POST', '/routing/deactivate', { body: params });\n }\n\n /**\n * Edit a static routing configuration.\n *\n * Partial: send only the fields to change. `name`/`description` are\n * metadata-only; `algorithm` is a wholesale rule replacement, validated\n * against the shop exactly as at create. `modified_at` is bumped either way.\n *\n * `PUT /routing/{algorithmId}`\n *\n * @param algorithmId - The routing algorithm ID to edit.\n * @param params - The fields to change (at least one required).\n * @returns The updated routing configuration including the algorithm body.\n */\n async update(\n algorithmId: string,\n params: RoutingConfigUpdateRequest,\n options?: RequestExtras,\n ): Promise<MerchantRoutingAlgorithm> {\n return this.request('PUT', `/routing/${encodeURIComponent(algorithmId)}`, {\n body: params,\n ...options,\n });\n }\n\n /**\n * Delete a static routing configuration.\n *\n * A soft delete: the configuration disappears from every list and read, but\n * its version history is kept server-side for audit. The live configuration\n * of a shop cannot be deleted — the backend refuses it (400, `IR_16`); deactivate it first.\n * Only `single`, `priority`, `volume_split` and `advanced` payment\n * configurations qualify (400 otherwise).\n *\n * `DELETE /routing/{algorithmId}`\n *\n * @param algorithmId - The routing algorithm to delete.\n */\n async delete(algorithmId: string): Promise<RoutingConfigDeleteResponse> {\n return this.request('DELETE', `/routing/${encodeURIComponent(algorithmId)}`);\n }\n\n /**\n * Every content window a routing configuration has had, oldest first.\n *\n * A configuration's rule can be edited in place, so this is what makes \"which\n * rule decided this payment\" answerable after the fact. Each entry is the rule\n * as it stood between `valid_from` and `valid_until`; the windows of one\n * config abut exactly, with no gap.\n *\n * Paging covers the whole timeline including the live window, so a page never\n * holds more than `limit` entries and the live one — the only entry without a\n * `valid_until` — comes back on exactly one page. Advance `offset` by `limit`;\n * a page past the end is empty, and `total_count` says where that end is\n * without probing for it.\n *\n * `GET /routing/{algorithmId}/history`\n *\n * @param algorithmId - The routing algorithm to read the history of.\n * @param params - Optional paging.\n */\n async history(\n algorithmId: string,\n params: RoutingHistoryParams = {},\n ): Promise<RoutingConfigHistoryResponse> {\n return this.request('GET', `/routing/${encodeURIComponent(algorithmId)}/history`, {\n query: params as Record<string, number | null | undefined>,\n });\n }\n\n /**\n * A shop's per-connector caps, each with its unit and window and how much of\n * the current window is spent (`used`) or held by payments in flight\n * (`reserved`).\n *\n * `GET /routing/connector-caps/{profileId}`\n */\n async connectorCaps(profileId: string): Promise<RoutingConnectorCaps> {\n return this.request('GET', `/routing/connector-caps/${encodeURIComponent(profileId)}`);\n }\n\n /** Read a shop's dated limit overrides. `GET /routing/connector-cap-schedules/{profileId}` */\n async connectorCapSchedules(profileId: string): Promise<RoutingConnectorCapSchedule> {\n return this.request('GET', `/routing/connector-cap-schedules/${encodeURIComponent(profileId)}`);\n }\n\n /**\n * Replace a shop's complete schedule using its last-read revision.\n * Remove an entry to cancel it; ordinary configured caps are unchanged.\n * Instants require explicit offsets, and overlapping entries for the same\n * account and unit are refused by the server. Capability preflight refuses\n * unsupported backends before submitting any schedule.\n *\n * `PUT /routing/connector-cap-schedules/{profileId}`\n */\n async setConnectorCapSchedules(\n profileId: string,\n params: RoutingConnectorCapSchedule,\n ): Promise<RoutingConnectorCapSchedule> {\n const caps = await this.connectorCaps(profileId);\n if (!caps.features?.includes('limit_schedules')) {\n throw new Error('Connector limit schedules are unsupported by the serving backend');\n }\n return this.request(\n 'PUT',\n `/routing/connector-cap-schedules/${encodeURIComponent(profileId)}`,\n {\n body: params,\n },\n );\n }\n\n /** Change the drawn value of an active scheduled range; preserves all usage. */\n async shuffleConnectorCapSchedule(\n profileId: string,\n params: RoutingConnectorCapScheduleShuffle,\n ): Promise<RoutingConnectorCaps> {\n const caps = await this.connectorCaps(profileId);\n if (!caps.features?.includes('limit_schedules')) {\n throw new Error('Connector limit schedules are unsupported by the serving backend');\n }\n return this.request(\n 'POST',\n `/routing/connector-cap-schedules/${encodeURIComponent(profileId)}/shuffle`,\n { body: params },\n );\n }\n\n /**\n * A shop's recurring time plan with its revision, the band active now, the\n * next change and each limit the plan releases in parts.\n *\n * `GET /routing/time-plans/{profileId}`\n */\n async timePlan(profileId: string): Promise<RoutingTimePlanDocument> {\n return this.request('GET', `/routing/time-plans/${encodeURIComponent(profileId)}`);\n }\n\n /**\n * Replace a shop's whole time plan using its last-read revision; `plan`\n * null removes it. Usage, reservations and dated limit entries are left as\n * they are. Overlapping bands, shares that do not total 100 and a stale\n * revision are refused by the server. Capability preflight refuses a\n * backend that would not apply the plan before anything is sent.\n *\n * `PUT /routing/time-plans/{profileId}`\n */\n async setTimePlan(\n profileId: string,\n params: Pick<RoutingTimePlanDocument, 'revision' | 'plan'>,\n ): Promise<RoutingTimePlanDocument> {\n const caps = await this.connectorCaps(profileId);\n if (!caps.features?.includes('time_plans')) {\n throw new Error('Time plans are unsupported by the serving backend');\n }\n return this.request('PUT', `/routing/time-plans/${encodeURIComponent(profileId)}`, {\n body: { revision: params.revision, plan: params.plan },\n });\n }\n\n /**\n * The live `routing_volume` counters behind a shop's active advanced\n * program: one per distinct budget the program reads, each with the window\n * it covers, the figure in the pinned threshold currency, and the rules that\n * read it. Lets a merchant see whether a `routing_volume < 50000` rule is at\n * 120 or at 499 today, and support answer why a payment went to the overflow\n * connector.\n *\n * What routing will use right now, not what the shop turned over: the\n * counters are held in Redis only and a lost Redis restarts the window at\n * zero. Read-only; needs the same permission as reading the rules.\n *\n * `GET /routing/volume-counters/{profileId}`\n */\n async volumeCounters(profileId: string): Promise<RoutingVolumeCounters> {\n return this.request('GET', `/routing/volume-counters/${encodeURIComponent(profileId)}`);\n }\n\n /**\n * Replace a shop's per-connector caps.\n *\n * Whole-set replacement, not a patch: the list sent becomes the complete set\n * of capped connectors, and an empty list clears them all — which is how\n * acquirer onboarding finishes, the new account ceasing to be a special case.\n * Re-send every other cap with its `unit`, `window` and `currency` as read:\n * an amount cap sent back without its `unit` is refused, because it carries a\n * currency and would otherwise be a payment count.\n *\n * Every account named must belong to this shop; one that does not is refused.\n * So is an amount cap without a `currency`, and a payment cap with one.\n *\n * An account may appear twice — a payment count and a budget — and never\n * twice in one `unit`. Re-send a range with its `limit_max`, or it is stored\n * as its bottom. Never re-send `current_limit` as `set_current_limit`: the\n * value read belongs to the window it was read in, and pinning it into a\n * window that has since reset is a limit nobody chose.\n *\n * `PUT /routing/connector-caps/{profileId}`\n */\n async setConnectorCaps(\n profileId: string,\n params: RoutingConnectorCaps,\n ): Promise<RoutingConnectorCaps> {\n return this.request('PUT', `/routing/connector-caps/${encodeURIComponent(profileId)}`, {\n body: params,\n });\n }\n\n /**\n * Reset one limit's usage for the window open now: what settled payments\n * spent stops counting, so the account takes payments again. Payments still\n * in flight keep their hold and count once they complete. The account's\n * other limit is untouched. Offered by a router that lists `usage_reset` in\n * `features`; refused (422) for an account with no limit in that unit.\n *\n * `POST /routing/connector-caps/{profileId}/reset`\n */\n async resetConnectorCapUsage(\n profileId: string,\n params: RoutingConnectorCapResetRequest,\n ): Promise<RoutingConnectorCapReset> {\n return this.request('POST', `/routing/connector-caps/${encodeURIComponent(profileId)}/reset`, {\n body: params,\n });\n }\n\n /**\n * Every connector cap override of the merchant: the accounts whose limits a\n * project or shop overrides.\n *\n * `GET /routing/connector-caps/overrides`\n */\n async connectorCapOverrides(): Promise<ConnectorCapOverrideList> {\n return this.request('GET', '/routing/connector-caps/overrides');\n }\n\n /**\n * One connector account's overrides, and for every shop the account takes\n * payments in, which limits apply there and where they come from.\n *\n * `GET /routing/connector-caps/accounts/{merchantConnectorId}/overrides`\n */\n async accountConnectorCapOverrides(merchantConnectorId: string): Promise<ConnectorCapOverrides> {\n return this.request(\n 'GET',\n `/routing/connector-caps/accounts/${encodeURIComponent(merchantConnectorId)}/overrides`,\n );\n }\n\n /**\n * Override an account's limits for one project (and every shop below it) or\n * one shop: `unlimited` lifts them there, `own` sets limits of its own,\n * counted separately from the account's. Replaces an existing override of\n * the same target. Setting the same target again keeps the usage its\n * current window already counted.\n *\n * `PUT /routing/connector-caps/accounts/{merchantConnectorId}/overrides/{level}/{scopeId}`\n */\n async setConnectorCapOverride(\n merchantConnectorId: string,\n level: ConnectorCapOverrideLevel,\n scopeId: string,\n params: ConnectorCapOverrideRequest,\n ): Promise<ConnectorCapOverride> {\n return this.request('PUT', this.overridePath(merchantConnectorId, level, scopeId), {\n body: params,\n });\n }\n\n /**\n * Remove an account's override for one project or shop; the next level up\n * applies again. Answers the override removed.\n *\n * `DELETE /routing/connector-caps/accounts/{merchantConnectorId}/overrides/{level}/{scopeId}`\n */\n async deleteConnectorCapOverride(\n merchantConnectorId: string,\n level: ConnectorCapOverrideLevel,\n scopeId: string,\n ): Promise<ConnectorCapOverride> {\n return this.request('DELETE', this.overridePath(merchantConnectorId, level, scopeId));\n }\n\n private overridePath(\n merchantConnectorId: string,\n level: ConnectorCapOverrideLevel,\n scopeId: string,\n ): string {\n return `/routing/connector-caps/accounts/${encodeURIComponent(merchantConnectorId)}/overrides/${encodeURIComponent(level)}/${encodeURIComponent(scopeId)}`;\n }\n\n /**\n * List all routing algorithms for the current merchant.\n *\n * @returns The routing dictionary (records + currently active id).\n */\n async list(): Promise<RoutingDictionary> {\n return this.request('GET', '/routing');\n }\n\n /**\n * Connector names denied at routing for a shop (explicit denies plus\n * whitelist-implied exclusions). Read-only; surfaced in the routing builder.\n *\n * `GET /routing/connector-restrictions/{profileId}`\n */\n async connectorRestrictions(profileId: string): Promise<ProfileDeniedConnectorsResponse> {\n return this.request('GET', `/routing/connector-restrictions/${encodeURIComponent(profileId)}`);\n }\n\n // --- Advanced operations (Task 3.4) ---\n\n /** Get active routing config. `GET /routing/active` */\n async getActive(): Promise<LinkedRoutingConfigRetrieveResponse> {\n return this.request('GET', '/routing/active');\n }\n\n /** Update default routing config. `POST /routing/default` */\n async updateDefault(params: Record<string, unknown>): Promise<RoutableConnectorChoice[]> {\n return this.request('POST', '/routing/default', { body: params });\n }\n\n /** Retrieve default config for profiles. `GET /routing/default/profile` */\n async getDefaultProfile(): Promise<RoutableConnectorChoice[] | ProfileDefaultRoutingConfig[]> {\n return this.request('GET', '/routing/default/profile');\n }\n\n /**\n * Retrieve one profile's default config. `GET /routing/default/profile/{profileId}`\n *\n * The narrow counterpart of `getDefaultProfile()`: that one returns every\n * profile of the merchant and needs merchant-level routing read, so a\n * profile-scoped (shop) role could write its own default through\n * `updateDefaultProfile()` but never read it back. This read is gated on\n * profile-level routing read and pinned to the caller's own profile — a shop\n * role asking for a sibling profile is refused.\n */\n async getDefaultForProfile(profileId: string): Promise<ProfileDefaultRoutingConfig> {\n return this.request('GET', `/routing/default/profile/${encodeURIComponent(profileId)}`);\n }\n\n /**\n * Update default config for a profile. `POST /routing/default/profile/{profileId}`\n *\n * Send the list alone to keep the shop's fallback mode, or `{ connectors, mode, splits }` to set\n * it. A `volume_split` whose shares do not total 100 is refused.\n */\n async updateDefaultProfile(\n profileId: string,\n params: DefaultRoutingConfigUpdate | Record<string, unknown>,\n options?: RequestExtras,\n ): Promise<ProfileDefaultRoutingConfig> {\n return this.request('POST', `/routing/default/profile/${encodeURIComponent(profileId)}`, {\n body: params,\n ...options,\n });\n }\n\n /** List routing configs for profile. `GET /routing/list/profile` */\n async listForProfile(): Promise<RoutingDictionary> {\n return this.request('GET', '/routing/list/profile');\n }\n\n /** Evaluate a routing rule. `POST /routing/rule/evaluate` */\n async evaluateRule(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/routing/rule/evaluate', { body: params });\n }\n\n /** Migrate routing rules for profile. `POST /routing/rule/migrate` */\n async migrateRule(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/routing/rule/migrate', { body: params });\n }\n\n /** Evaluate routing for a payment. `POST /routing/evaluate` */\n async evaluate(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/routing/evaluate', { body: params });\n }\n\n /** Update gateway scores for dynamic routing. `POST /routing/feedback` */\n async feedback(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/routing/feedback', { body: params });\n }\n}\n\nclass RoutingDecisionManager {\n constructor(private readonly request: RequestFn) {}\n\n /** Upsert decision manager config. `PUT /routing/decision` */\n async upsert(\n params: Record<string, unknown>,\n options?: RequestExtras,\n ): Promise<Record<string, unknown>> {\n return this.request('PUT', '/routing/decision', { body: params, ...options });\n }\n\n /** Retrieve decision manager config. `GET /routing/decision` */\n async retrieve(): Promise<Record<string, unknown>> {\n return this.request('GET', '/routing/decision');\n }\n\n /** Delete decision manager config. `DELETE /routing/decision` */\n async delete(options?: RequestExtras): Promise<Record<string, unknown>> {\n return this.request('DELETE', '/routing/decision', options);\n }\n\n /** Upsert surcharge decision config. `PUT /routing/decision/surcharge` */\n async upsertSurcharge(\n params: Record<string, unknown>,\n options?: RequestExtras,\n ): Promise<Record<string, unknown>> {\n return this.request('PUT', '/routing/decision/surcharge', { body: params, ...options });\n }\n\n /** Retrieve surcharge decision config. `GET /routing/decision/surcharge` */\n async retrieveSurcharge(): Promise<Record<string, unknown>> {\n return this.request('GET', '/routing/decision/surcharge');\n }\n\n /** Delete surcharge decision config. `DELETE /routing/decision/surcharge` */\n async deleteSurcharge(options?: RequestExtras): Promise<Record<string, unknown>> {\n return this.request('DELETE', '/routing/decision/surcharge', options);\n }\n}\n\n/**\n * Merchant-friendly surcharge rules: configure a per-payment-method surcharge\n * (fixed or %) added to the amount the buyer pays — without hand-writing the\n * Euclid DSL. Scope to a shop via `profile_id` (omit for merchant-wide).\n *\n * Distinct from the platform fee (a balance deduction): a surcharge changes what\n * the buyer is charged.\n */\nclass SurchargeRules {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Create or replace the surcharge program for a scope.\n *\n * `PUT /routing/surcharge/rules`\n *\n * @example\n * ```typescript\n * await delopay.routing.surchargeRules.upsert({\n * surcharges: [\n * { payment_method: 'crypto', surcharge: { rate: { percent: 1.0 } } },\n * { payment_method: 'card', surcharge: { fixed: { amount: 35 } } },\n * ],\n * });\n * ```\n */\n async upsert(\n params: SurchargeRuleRequest,\n options?: RequestExtras,\n ): Promise<SurchargeRuleResponse> {\n return this.request('PUT', '/routing/surcharge/rules', { body: params, ...options });\n }\n\n /**\n * Retrieve the active surcharge program for a scope, or `null` when none is set.\n *\n * `GET /routing/surcharge/rules?profile_id={profileId}`\n *\n * @param profileId - Shop scope. Omit for the merchant-wide rule.\n */\n async retrieve(profileId?: string): Promise<SurchargeRuleResponse | null> {\n return this.request('GET', '/routing/surcharge/rules', {\n query: { profile_id: profileId },\n });\n }\n\n /**\n * Deactivate the active surcharge program for a scope.\n *\n * `DELETE /routing/surcharge/rules?profile_id={profileId}`\n *\n * @param profileId - Shop scope. Omit for the merchant-wide rule.\n */\n async delete(profileId?: string, options?: RequestExtras): Promise<void> {\n return this.request('DELETE', '/routing/surcharge/rules', {\n query: { profile_id: profileId },\n ...options,\n });\n }\n}\n\n/**\n * Checkout theme programs: which of a shop's stored appearance variants a buyer\n * is shown.\n *\n * Same engine and same wire format as the advanced routing rules above — a\n * Euclid program whose rules run top-down, first match wins, with\n * `defaultSelection` as the fallback — with the output swapped for a variant\n * name. That is deliberate: the dashboard's routing rule builder can author\n * these without learning a second condition language.\n *\n * **A theme program decides a look and nothing else.** It cannot express which\n * payment methods are offered, what is charged, which provider processes the\n * payment, or whether it succeeds. The allowed dimensions are fixed server-side\n * by the output type — see {@link CheckoutThemeDimension} — so that is a\n * property of the API rather than a convention.\n *\n * Naming a variant the shop has not defined is **not** an error: the checkout\n * falls back to the shop default, exactly as it does for an unknown `?theme=`,\n * because a buyer who cannot pay is worse than a buyer who sees the default\n * look. Such names come back in `warnings` instead, recomputed on every read.\n */\nclass CheckoutThemeRules {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Create or replace the theme program for a scope.\n *\n * `PUT /routing/checkout-theme/rules`\n *\n * Supersedes rather than overwrites: the previous active version is retired\n * and a new one stored, so the record of which look was live when survives.\n * Pass `active: false` to store a revision **without** retiring the live one —\n * that is where a program drafted against a variant you have not built yet\n * belongs.\n *\n * @example A phone in Germany gets the compact look; everyone else the house style.\n * ```typescript\n * await delopay.routing.checkoutThemeRules.upsert({\n * name: 'Autumn targeting',\n * profile_id: 'pro_...',\n * algorithm: {\n * rules: [\n * {\n * name: 'German phones',\n * connectorSelection: { theme: { variant: 'compact' } },\n * statements: [\n * {\n * condition: [\n * {\n * lhs: 'device_class',\n * comparison: 'equal',\n * value: { type: 'enum_variant', value: 'phone' },\n * metadata: {},\n * },\n * {\n * lhs: 'browser_language',\n * comparison: 'equal',\n * value: { type: 'enum_variant', value: 'de' },\n * metadata: {},\n * },\n * ],\n * },\n * ],\n * },\n * ],\n * defaultSelection: { theme: { variant: 'house' } },\n * metadata: {},\n * },\n * });\n * ```\n */\n async upsert(params: CheckoutThemeProgramRequest): Promise<CheckoutThemeProgramResponse> {\n return this.request('PUT', '/routing/checkout-theme/rules', { body: params });\n }\n\n /**\n * Retrieve the active theme program for a scope, or `null` when none is set.\n *\n * `GET /routing/checkout-theme/rules?profile_id={profileId}`\n *\n * @param profileId - Shop scope. Omit for the merchant-wide program. A\n * shop-scoped caller that omits it gets its own shop's program.\n */\n async retrieve(profileId?: string): Promise<CheckoutThemeProgramResponse | null> {\n return this.request('GET', '/routing/checkout-theme/rules', {\n query: { profile_id: profileId },\n });\n }\n\n /**\n * Deactivate the active theme program for a scope. Idempotent.\n *\n * `DELETE /routing/checkout-theme/rules?profile_id={profileId}`\n *\n * Deactivation, not deletion — the stored row is what says which look was\n * live when, and that history cannot be reconstructed after the fact. Shops\n * go back to their default appearance immediately.\n *\n * @param profileId - Shop scope. Omit for the merchant-wide program.\n */\n async delete(profileId?: string): Promise<void> {\n return this.request('DELETE', '/routing/checkout-theme/rules', {\n query: { profile_id: profileId },\n });\n }\n}\n\n/**\n * Rendered-to-paid conversion, per appearance variant and segment.\n *\n * Answers the one question theme targeting exists for: *does variant B convert\n * better than the house style, on phones, in Germany?*\n *\n * **What a rate here means.** The denominator is backend-observed checkout page\n * opens, deduplicated by device within the hosted checkout's cache window, with\n * automated traffic excluded from both sides. It is narrower than \"paints\", and\n * that is deliberate - counting one buyer's refresh as a second render would\n * understate conversion. The exact basis travels with every response in\n * `denominator`, and the ways it is not the whole truth travel in `caveats`.\n *\n * **The server decides what may be concluded, not you.** Rate, Wilson interval,\n * per-cell `verdict` and the variant-vs-default `separates` test are computed\n * once, server-side, and shipped as values. Do not recompute them: the first\n * client that rounds differently tells a merchant a difference is real when the\n * server says it is not.\n */\nclass CheckoutThemeConversion {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Rendered-to-paid conversion for a shop over a window.\n *\n * `GET /routing/checkout-theme/conversion`\n *\n * Requires `CheckoutBranding` read at profile scope - the same permission\n * that governs seeing how a checkout looks.\n *\n * @param params - Window (RFC3339, `start` inclusive / `end` exclusive), the\n * shop, the dimension to group by, and the optional `device_class`,\n * `country` and `selection` filters.\n *\n * @example Which variant wins on which device, over the last 30 days.\n * ```typescript\n * const report = await delopay.routing.checkoutThemeConversion.retrieve({\n * profile_id: 'pro_...',\n * start: '2026-07-21T00:00:00Z',\n * end: '2026-08-20T00:00:00Z',\n * segment: 'device',\n * });\n *\n * for (const c of report.comparisons) {\n * if (!c.separates) continue; // \"not shown to differ\" - say nothing\n * console.log(`${c.variant} on ${c.segment}: ${c.higher} converts better`);\n * }\n * ```\n */\n async retrieve(params: CheckoutThemeConversionQuery): Promise<CheckoutThemeConversionResponse> {\n return this.request('GET', '/routing/checkout-theme/conversion', {\n query: {\n profile_id: params.profile_id,\n start: params.start,\n end: params.end,\n segment: params.segment,\n device_class: params.device_class ?? undefined,\n country: params.country ?? undefined,\n selection: params.selection ?? undefined,\n },\n });\n }\n}\n"]}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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiDuC,EAAA;AACnB,IAAA;AACtE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUiF,EAAA;AACnB,IAAA;AAC3B,MAAA;AAChC,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAagD,EAAA;AACiB,IAAA;AAC9B,MAAA;AAChC,IAAA;AACH,EAAA;AACF;AAqB8B;AACqB,EAAA;AAApB,IAAA;AAAqB,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6B6C,EAAA;AAC5B,IAAA;AACxD,MAAA;AACc,QAAA;AACL,QAAA;AACF,QAAA;AACI,QAAA;AACqB,QAAA;AACV,QAAA;AACI,QAAA;AACjC,MAAA;AACD,IAAA;AACH,EAAA;AACF;AD9L2E;AACA;AACA;AACA","file":"/tmp/w4-pub468/sdk/dist/chunk-LLYY4TCZ.cjs","sourcesContent":[null,"import type {\n CheckoutThemeConversionQuery,\n CheckoutThemeConversionResponse,\n CheckoutThemeProgramRequest,\n CheckoutThemeProgramResponse,\n DefaultRoutingConfigUpdate,\n LinkedRoutingConfigRetrieveResponse,\n MerchantRoutingAlgorithm,\n ProfileDefaultRoutingConfig,\n ProfileDeniedConnectorsResponse,\n RoutableConnectorChoice,\n RoutingActivatePayload,\n RoutingConfigCreateRequest,\n RoutingConfigDeleteResponse,\n RoutingConfigHistoryResponse,\n RoutingConfigUpdateRequest,\n ConnectorCapOverride,\n ConnectorCapOverrideLevel,\n ConnectorCapOverrideList,\n ConnectorCapOverrideRequest,\n ConnectorCapOverrides,\n RoutingConnectorCapReset,\n RoutingConnectorCapResetRequest,\n RoutingConnectorCaps,\n RoutingConnectorCapSchedule,\n RoutingConnectorCapScheduleShuffle,\n RoutingDeactivateRequest,\n RoutingDictionary,\n RoutingDictionaryRecord,\n RoutingHistoryParams,\n RoutingTimePlanDocument,\n RoutingVolumeCounters,\n SurchargeRuleRequest,\n SurchargeRuleResponse,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * Create and manage payment routing algorithms.\n *\n * Routing rules determine which gateway connector handles each payment based on\n * card type, currency, amount, or custom conditions.\n */\nexport class Routing {\n readonly decision: RoutingDecisionManager;\n /** Merchant-friendly, per-payment-method surcharge rules (no Euclid DSL). */\n readonly surchargeRules: SurchargeRules;\n /** Which stored appearance variant a buyer is shown. Decides a look, never a payment. */\n readonly checkoutThemeRules: CheckoutThemeRules;\n /** Rendered-to-paid conversion per appearance variant and segment. */\n readonly checkoutThemeConversion: CheckoutThemeConversion;\n\n constructor(private readonly request: RequestFn) {\n this.decision = new RoutingDecisionManager(request);\n this.surchargeRules = new SurchargeRules(request);\n this.checkoutThemeRules = new CheckoutThemeRules(request);\n this.checkoutThemeConversion = new CheckoutThemeConversion(request);\n }\n\n /**\n * Create a new routing algorithm.\n *\n * @param params - Routing algorithm definition (rule-based, priority, or volume-based).\n * @returns Metadata record for the created routing configuration. The full\n * algorithm body is not echoed back — use `retrieve(id)` if you need it.\n *\n * @example\n * ```typescript\n * const config = await delopay.routing.create({\n * name: 'EU Priority',\n * algorithm: { type: 'priority', data: [{ connector: 'stripe' }] },\n * });\n * ```\n *\n * @example Conditional volume split (advanced): cards → 90% epayouts / 10% stripe.\n * Rules run top-down (first match wins); `defaultSelection` is the fallback.\n * Splits must sum to 100; `amount` conditions are in minor units.\n * ```typescript\n * const config = await delopay.routing.create({\n * name: 'Card split 90/10',\n * profile_id: 'pro_...',\n * algorithm: {\n * type: 'advanced',\n * data: {\n * defaultSelection: { type: 'priority', data: [{ connector: 'stripe' }] },\n * rules: [\n * {\n * name: 'cards',\n * connectorSelection: {\n * type: 'volume_split',\n * data: [\n * { connector: { connector: 'epayouts' }, split: 90 },\n * { connector: { connector: 'stripe' }, split: 10 },\n * ],\n * },\n * statements: [\n * {\n * condition: [\n * {\n * lhs: 'payment_method',\n * comparison: 'equal',\n * value: { type: 'enum_variant', value: 'card' },\n * metadata: {},\n * },\n * ],\n * },\n * ],\n * },\n * ],\n * metadata: {},\n * },\n * },\n * });\n * await delopay.routing.activate(config.id);\n * ```\n */\n async create(params: RoutingConfigCreateRequest): Promise<RoutingDictionaryRecord> {\n return this.request('POST', '/routing', { body: params });\n }\n\n /**\n * Retrieve a routing algorithm by its ID.\n *\n * @param algorithmId - The routing algorithm ID.\n * @returns The full routing configuration including the algorithm body.\n */\n async retrieve(algorithmId: string): Promise<MerchantRoutingAlgorithm> {\n return this.request('GET', `/routing/${encodeURIComponent(algorithmId)}`);\n }\n\n /**\n * Activate a routing algorithm, making it the active routing strategy.\n *\n * Always sends a JSON body (default `{}`) so the request carries the\n * `Content-Type: application/json` header that the server requires.\n *\n * @param algorithmId - The routing algorithm ID to activate.\n * @param params - Optional activation payload (e.g. `transaction_type`).\n */\n async activate(\n algorithmId: string,\n params: RoutingActivatePayload = {},\n ): Promise<RoutingDictionaryRecord> {\n return this.request('POST', `/routing/${encodeURIComponent(algorithmId)}/activate`, {\n body: params,\n });\n }\n\n /**\n * Deactivate the currently active routing algorithm (falls back to default routing).\n *\n * Always sends a JSON body (default `{}`) so the request carries the\n * `Content-Type: application/json` header that the server requires.\n *\n * @param params - Optional deactivation payload.\n */\n async deactivate(params: RoutingDeactivateRequest = {}): Promise<RoutingDictionaryRecord> {\n return this.request('POST', '/routing/deactivate', { body: params });\n }\n\n /**\n * Edit a static routing configuration.\n *\n * Partial: send only the fields to change. `name`/`description` are\n * metadata-only; `algorithm` is a wholesale rule replacement, validated\n * against the shop exactly as at create. `modified_at` is bumped either way.\n *\n * `PUT /routing/{algorithmId}`\n *\n * @param algorithmId - The routing algorithm ID to edit.\n * @param params - The fields to change (at least one required).\n * @returns The updated routing configuration including the algorithm body.\n */\n async update(\n algorithmId: string,\n params: RoutingConfigUpdateRequest,\n options?: RequestExtras,\n ): Promise<MerchantRoutingAlgorithm> {\n return this.request('PUT', `/routing/${encodeURIComponent(algorithmId)}`, {\n body: params,\n ...options,\n });\n }\n\n /**\n * Delete a static routing configuration.\n *\n * A soft delete: the configuration disappears from every list and read, but\n * its version history is kept server-side for audit. The live configuration\n * of a shop cannot be deleted — the backend refuses it (400, `IR_16`); deactivate it first.\n * Only `single`, `priority`, `volume_split` and `advanced` payment\n * configurations qualify (400 otherwise).\n *\n * `DELETE /routing/{algorithmId}`\n *\n * @param algorithmId - The routing algorithm to delete.\n */\n async delete(algorithmId: string): Promise<RoutingConfigDeleteResponse> {\n return this.request('DELETE', `/routing/${encodeURIComponent(algorithmId)}`);\n }\n\n /**\n * Every content window a routing configuration has had, oldest first.\n *\n * A configuration's rule can be edited in place, so this is what makes \"which\n * rule decided this payment\" answerable after the fact. Each entry is the rule\n * as it stood between `valid_from` and `valid_until`; the windows of one\n * config abut exactly, with no gap.\n *\n * Paging covers the whole timeline including the live window, so a page never\n * holds more than `limit` entries and the live one — the only entry without a\n * `valid_until` — comes back on exactly one page. Advance `offset` by `limit`;\n * a page past the end is empty, and `total_count` says where that end is\n * without probing for it.\n *\n * `GET /routing/{algorithmId}/history`\n *\n * @param algorithmId - The routing algorithm to read the history of.\n * @param params - Optional paging.\n */\n async history(\n algorithmId: string,\n params: RoutingHistoryParams = {},\n ): Promise<RoutingConfigHistoryResponse> {\n return this.request('GET', `/routing/${encodeURIComponent(algorithmId)}/history`, {\n query: params as Record<string, number | null | undefined>,\n });\n }\n\n /**\n * A shop's per-connector caps, each with its unit and window and how much of\n * the current window is spent (`used`) or held by payments in flight\n * (`reserved`).\n *\n * `GET /routing/connector-caps/{profileId}`\n */\n async connectorCaps(profileId: string): Promise<RoutingConnectorCaps> {\n return this.request('GET', `/routing/connector-caps/${encodeURIComponent(profileId)}`);\n }\n\n /** Read a shop's dated limit overrides. `GET /routing/connector-cap-schedules/{profileId}` */\n async connectorCapSchedules(profileId: string): Promise<RoutingConnectorCapSchedule> {\n return this.request('GET', `/routing/connector-cap-schedules/${encodeURIComponent(profileId)}`);\n }\n\n /**\n * Replace a shop's complete schedule using its last-read revision.\n * Remove an entry to cancel it; ordinary configured caps are unchanged.\n * Instants require explicit offsets, and overlapping entries for the same\n * account and unit are refused by the server. Capability preflight refuses\n * unsupported backends before submitting any schedule.\n *\n * `PUT /routing/connector-cap-schedules/{profileId}`\n */\n async setConnectorCapSchedules(\n profileId: string,\n params: RoutingConnectorCapSchedule,\n ): Promise<RoutingConnectorCapSchedule> {\n const caps = await this.connectorCaps(profileId);\n if (!caps.features?.includes('limit_schedules')) {\n throw new Error('Connector limit schedules are unsupported by the serving backend');\n }\n return this.request(\n 'PUT',\n `/routing/connector-cap-schedules/${encodeURIComponent(profileId)}`,\n {\n body: params,\n },\n );\n }\n\n /** Change the drawn value of an active scheduled range; preserves all usage. */\n async shuffleConnectorCapSchedule(\n profileId: string,\n params: RoutingConnectorCapScheduleShuffle,\n ): Promise<RoutingConnectorCaps> {\n const caps = await this.connectorCaps(profileId);\n if (!caps.features?.includes('limit_schedules')) {\n throw new Error('Connector limit schedules are unsupported by the serving backend');\n }\n return this.request(\n 'POST',\n `/routing/connector-cap-schedules/${encodeURIComponent(profileId)}/shuffle`,\n { body: params },\n );\n }\n\n /**\n * A shop's recurring time plan with its revision, the band active now, the\n * next change and each limit the plan releases in parts.\n *\n * `GET /routing/time-plans/{profileId}`\n */\n async timePlan(profileId: string): Promise<RoutingTimePlanDocument> {\n return this.request('GET', `/routing/time-plans/${encodeURIComponent(profileId)}`);\n }\n\n /**\n * Replace a shop's whole time plan using its last-read revision; `plan`\n * null removes it. Usage, reservations and dated limit entries are left as\n * they are. Overlapping bands, shares that do not total 100 and a stale\n * revision are refused by the server. Capability preflight refuses a\n * backend that would not apply the plan before anything is sent.\n *\n * `PUT /routing/time-plans/{profileId}`\n */\n async setTimePlan(\n profileId: string,\n params: Pick<RoutingTimePlanDocument, 'revision' | 'plan'>,\n ): Promise<RoutingTimePlanDocument> {\n const caps = await this.connectorCaps(profileId);\n if (!caps.features?.includes('time_plans')) {\n throw new Error('Time plans are unsupported by the serving backend');\n }\n return this.request('PUT', `/routing/time-plans/${encodeURIComponent(profileId)}`, {\n body: { revision: params.revision, plan: params.plan },\n });\n }\n\n /**\n * The live `routing_volume` counters behind a shop's active advanced\n * program: one per distinct budget the program reads, each with the window\n * it covers, the figure in the pinned threshold currency, and the rules that\n * read it. Lets a merchant see whether a `routing_volume < 50000` rule is at\n * 120 or at 499 today, and support answer why a payment went to the overflow\n * connector.\n *\n * What routing will use right now, not what the shop turned over: the\n * counters are held in Redis only and a lost Redis restarts the window at\n * zero. Read-only; needs the same permission as reading the rules.\n *\n * `GET /routing/volume-counters/{profileId}`\n */\n async volumeCounters(profileId: string): Promise<RoutingVolumeCounters> {\n return this.request('GET', `/routing/volume-counters/${encodeURIComponent(profileId)}`);\n }\n\n /**\n * Replace a shop's per-connector caps.\n *\n * Whole-set replacement, not a patch: the list sent becomes the complete set\n * of capped connectors, and an empty list clears them all — which is how\n * acquirer onboarding finishes, the new account ceasing to be a special case.\n * Re-send every other cap with its `unit`, `window` and `currency` as read:\n * an amount cap sent back without its `unit` is refused, because it carries a\n * currency and would otherwise be a payment count.\n *\n * Every account named must belong to this shop; one that does not is refused.\n * So is an amount cap without a `currency`, and a payment cap with one.\n *\n * An account may appear twice — a payment count and a budget — and never\n * twice in one `unit`. Re-send a range with its `limit_max`, or it is stored\n * as its bottom. Never re-send `current_limit` as `set_current_limit`: the\n * value read belongs to the window it was read in, and pinning it into a\n * window that has since reset is a limit nobody chose.\n *\n * `PUT /routing/connector-caps/{profileId}`\n */\n async setConnectorCaps(\n profileId: string,\n params: RoutingConnectorCaps,\n ): Promise<RoutingConnectorCaps> {\n return this.request('PUT', `/routing/connector-caps/${encodeURIComponent(profileId)}`, {\n body: params,\n });\n }\n\n /**\n * Reset one limit's usage for the window open now: what settled payments\n * spent stops counting, so the account takes payments again. Payments still\n * in flight keep their hold and count once they complete. The account's\n * other limit is untouched. Offered by a router that lists `usage_reset` in\n * `features`; refused (422) for an account with no limit in that unit.\n *\n * `POST /routing/connector-caps/{profileId}/reset`\n */\n async resetConnectorCapUsage(\n profileId: string,\n params: RoutingConnectorCapResetRequest,\n ): Promise<RoutingConnectorCapReset> {\n return this.request('POST', `/routing/connector-caps/${encodeURIComponent(profileId)}/reset`, {\n body: params,\n });\n }\n\n /**\n * Every connector cap override of the merchant: the accounts whose limits a\n * project or shop overrides.\n *\n * `GET /routing/connector-caps/overrides`\n */\n async connectorCapOverrides(): Promise<ConnectorCapOverrideList> {\n return this.request('GET', '/routing/connector-caps/overrides');\n }\n\n /**\n * One connector account's overrides, and for every shop the account takes\n * payments in, which limits apply there and where they come from.\n *\n * `GET /routing/connector-caps/accounts/{merchantConnectorId}/overrides`\n */\n async accountConnectorCapOverrides(merchantConnectorId: string): Promise<ConnectorCapOverrides> {\n return this.request(\n 'GET',\n `/routing/connector-caps/accounts/${encodeURIComponent(merchantConnectorId)}/overrides`,\n );\n }\n\n /**\n * Override an account's limits for one project (and every shop below it) or\n * one shop: `unlimited` lifts them there, `own` sets limits of its own,\n * counted separately from the account's. Replaces an existing override of\n * the same target. Setting the same target again keeps the usage its\n * current window already counted.\n *\n * `PUT /routing/connector-caps/accounts/{merchantConnectorId}/overrides/{level}/{scopeId}`\n */\n async setConnectorCapOverride(\n merchantConnectorId: string,\n level: ConnectorCapOverrideLevel,\n scopeId: string,\n params: ConnectorCapOverrideRequest,\n ): Promise<ConnectorCapOverride> {\n return this.request('PUT', this.overridePath(merchantConnectorId, level, scopeId), {\n body: params,\n });\n }\n\n /**\n * Remove an account's override for one project or shop; the next level up\n * applies again. Answers the override removed.\n *\n * `DELETE /routing/connector-caps/accounts/{merchantConnectorId}/overrides/{level}/{scopeId}`\n */\n async deleteConnectorCapOverride(\n merchantConnectorId: string,\n level: ConnectorCapOverrideLevel,\n scopeId: string,\n ): Promise<ConnectorCapOverride> {\n return this.request('DELETE', this.overridePath(merchantConnectorId, level, scopeId));\n }\n\n private overridePath(\n merchantConnectorId: string,\n level: ConnectorCapOverrideLevel,\n scopeId: string,\n ): string {\n return `/routing/connector-caps/accounts/${encodeURIComponent(merchantConnectorId)}/overrides/${encodeURIComponent(level)}/${encodeURIComponent(scopeId)}`;\n }\n\n /**\n * List all routing algorithms for the current merchant.\n *\n * @returns The routing dictionary (records + currently active id).\n */\n async list(): Promise<RoutingDictionary> {\n return this.request('GET', '/routing');\n }\n\n /**\n * Connector names denied at routing for a shop (explicit denies plus\n * whitelist-implied exclusions). Read-only; surfaced in the routing builder.\n *\n * `GET /routing/connector-restrictions/{profileId}`\n */\n async connectorRestrictions(profileId: string): Promise<ProfileDeniedConnectorsResponse> {\n return this.request('GET', `/routing/connector-restrictions/${encodeURIComponent(profileId)}`);\n }\n\n // --- Advanced operations (Task 3.4) ---\n\n /** Get active routing config. `GET /routing/active` */\n async getActive(): Promise<LinkedRoutingConfigRetrieveResponse> {\n return this.request('GET', '/routing/active');\n }\n\n /** Update default routing config. `POST /routing/default` */\n async updateDefault(params: Record<string, unknown>): Promise<RoutableConnectorChoice[]> {\n return this.request('POST', '/routing/default', { body: params });\n }\n\n /** Retrieve default config for profiles. `GET /routing/default/profile` */\n async getDefaultProfile(): Promise<RoutableConnectorChoice[] | ProfileDefaultRoutingConfig[]> {\n return this.request('GET', '/routing/default/profile');\n }\n\n /**\n * Retrieve one profile's default config. `GET /routing/default/profile/{profileId}`\n *\n * The narrow counterpart of `getDefaultProfile()`: that one returns every\n * profile of the merchant and needs merchant-level routing read, so a\n * profile-scoped (shop) role could write its own default through\n * `updateDefaultProfile()` but never read it back. This read is gated on\n * profile-level routing read and pinned to the caller's own profile — a shop\n * role asking for a sibling profile is refused.\n */\n async getDefaultForProfile(profileId: string): Promise<ProfileDefaultRoutingConfig> {\n return this.request('GET', `/routing/default/profile/${encodeURIComponent(profileId)}`);\n }\n\n /**\n * Update default config for a profile. `POST /routing/default/profile/{profileId}`\n *\n * Send the list alone to keep the shop's fallback mode, or `{ connectors, mode, splits }` to set\n * it. A `volume_split` whose shares do not total 100 is refused.\n */\n async updateDefaultProfile(\n profileId: string,\n params: DefaultRoutingConfigUpdate | Record<string, unknown>,\n options?: RequestExtras,\n ): Promise<ProfileDefaultRoutingConfig> {\n return this.request('POST', `/routing/default/profile/${encodeURIComponent(profileId)}`, {\n body: params,\n ...options,\n });\n }\n\n /** List routing configs for profile. `GET /routing/list/profile` */\n async listForProfile(): Promise<RoutingDictionary> {\n return this.request('GET', '/routing/list/profile');\n }\n\n /** Evaluate a routing rule. `POST /routing/rule/evaluate` */\n async evaluateRule(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/routing/rule/evaluate', { body: params });\n }\n\n /** Migrate routing rules for profile. `POST /routing/rule/migrate` */\n async migrateRule(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/routing/rule/migrate', { body: params });\n }\n\n /** Evaluate routing for a payment. `POST /routing/evaluate` */\n async evaluate(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/routing/evaluate', { body: params });\n }\n\n /** Update gateway scores for dynamic routing. `POST /routing/feedback` */\n async feedback(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/routing/feedback', { body: params });\n }\n}\n\nclass RoutingDecisionManager {\n constructor(private readonly request: RequestFn) {}\n\n /** Upsert decision manager config. `PUT /routing/decision` */\n async upsert(\n params: Record<string, unknown>,\n options?: RequestExtras,\n ): Promise<Record<string, unknown>> {\n return this.request('PUT', '/routing/decision', { body: params, ...options });\n }\n\n /** Retrieve decision manager config. `GET /routing/decision` */\n async retrieve(): Promise<Record<string, unknown>> {\n return this.request('GET', '/routing/decision');\n }\n\n /** Delete decision manager config. `DELETE /routing/decision` */\n async delete(options?: RequestExtras): Promise<Record<string, unknown>> {\n return this.request('DELETE', '/routing/decision', options);\n }\n\n /** Upsert surcharge decision config. `PUT /routing/decision/surcharge` */\n async upsertSurcharge(\n params: Record<string, unknown>,\n options?: RequestExtras,\n ): Promise<Record<string, unknown>> {\n return this.request('PUT', '/routing/decision/surcharge', { body: params, ...options });\n }\n\n /** Retrieve surcharge decision config. `GET /routing/decision/surcharge` */\n async retrieveSurcharge(): Promise<Record<string, unknown>> {\n return this.request('GET', '/routing/decision/surcharge');\n }\n\n /** Delete surcharge decision config. `DELETE /routing/decision/surcharge` */\n async deleteSurcharge(options?: RequestExtras): Promise<Record<string, unknown>> {\n return this.request('DELETE', '/routing/decision/surcharge', options);\n }\n}\n\n/**\n * Merchant-friendly surcharge rules: configure a per-payment-method surcharge\n * (fixed or %) added to the amount the buyer pays — without hand-writing the\n * Euclid DSL. Scope to a shop via `profile_id` (omit for merchant-wide).\n *\n * Distinct from the platform fee (a balance deduction): a surcharge changes what\n * the buyer is charged.\n */\nclass SurchargeRules {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Create or replace the surcharge program for a scope.\n *\n * `PUT /routing/surcharge/rules`\n *\n * @example\n * ```typescript\n * await delopay.routing.surchargeRules.upsert({\n * surcharges: [\n * { payment_method: 'crypto', surcharge: { rate: { percent: 1.0 } } },\n * { payment_method: 'card', surcharge: { fixed: { amount: 35 } } },\n * ],\n * });\n * ```\n */\n async upsert(\n params: SurchargeRuleRequest,\n options?: RequestExtras,\n ): Promise<SurchargeRuleResponse> {\n return this.request('PUT', '/routing/surcharge/rules', { body: params, ...options });\n }\n\n /**\n * Retrieve the active surcharge program for a scope, or `null` when none is set.\n *\n * `GET /routing/surcharge/rules?profile_id={profileId}`\n *\n * @param profileId - Shop scope. Omit for the merchant-wide rule.\n */\n async retrieve(profileId?: string): Promise<SurchargeRuleResponse | null> {\n return this.request('GET', '/routing/surcharge/rules', {\n query: { profile_id: profileId },\n });\n }\n\n /**\n * Deactivate the active surcharge program for a scope.\n *\n * `DELETE /routing/surcharge/rules?profile_id={profileId}`\n *\n * @param profileId - Shop scope. Omit for the merchant-wide rule.\n */\n async delete(profileId?: string, options?: RequestExtras): Promise<void> {\n return this.request('DELETE', '/routing/surcharge/rules', {\n query: { profile_id: profileId },\n ...options,\n });\n }\n}\n\n/**\n * Checkout theme programs: which of a shop's stored appearance variants a buyer\n * is shown.\n *\n * Same engine and same wire format as the advanced routing rules above — a\n * Euclid program whose rules run top-down, first match wins, with\n * `defaultSelection` as the fallback — with the output swapped for a variant\n * name. That is deliberate: the dashboard's routing rule builder can author\n * these without learning a second condition language.\n *\n * **A theme program decides a look and nothing else.** It cannot express which\n * payment methods are offered, what is charged, which provider processes the\n * payment, or whether it succeeds. The allowed dimensions are fixed server-side\n * by the output type — see {@link CheckoutThemeDimension} — so that is a\n * property of the API rather than a convention.\n *\n * Naming a variant the shop has not defined is **not** an error: the checkout\n * falls back to the shop default, exactly as it does for an unknown `?theme=`,\n * because a buyer who cannot pay is worse than a buyer who sees the default\n * look. Such names come back in `warnings` instead, recomputed on every read.\n */\nclass CheckoutThemeRules {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Create or replace the theme program for a scope.\n *\n * `PUT /routing/checkout-theme/rules`\n *\n * Supersedes rather than overwrites: the previous active version is retired\n * and a new one stored, so the record of which look was live when survives.\n * Pass `active: false` to store a revision **without** retiring the live one —\n * that is where a program drafted against a variant you have not built yet\n * belongs.\n *\n * @example A phone in Germany gets the compact look; everyone else the house style.\n * ```typescript\n * await delopay.routing.checkoutThemeRules.upsert({\n * name: 'Autumn targeting',\n * profile_id: 'pro_...',\n * algorithm: {\n * rules: [\n * {\n * name: 'German phones',\n * connectorSelection: { theme: { variant: 'compact' } },\n * statements: [\n * {\n * condition: [\n * {\n * lhs: 'device_class',\n * comparison: 'equal',\n * value: { type: 'enum_variant', value: 'phone' },\n * metadata: {},\n * },\n * {\n * lhs: 'browser_language',\n * comparison: 'equal',\n * value: { type: 'enum_variant', value: 'de' },\n * metadata: {},\n * },\n * ],\n * },\n * ],\n * },\n * ],\n * defaultSelection: { theme: { variant: 'house' } },\n * metadata: {},\n * },\n * });\n * ```\n */\n async upsert(params: CheckoutThemeProgramRequest): Promise<CheckoutThemeProgramResponse> {\n return this.request('PUT', '/routing/checkout-theme/rules', { body: params });\n }\n\n /**\n * Retrieve the active theme program for a scope, or `null` when none is set.\n *\n * `GET /routing/checkout-theme/rules?profile_id={profileId}`\n *\n * @param profileId - Shop scope. Omit for the merchant-wide program. A\n * shop-scoped caller that omits it gets its own shop's program.\n */\n async retrieve(profileId?: string): Promise<CheckoutThemeProgramResponse | null> {\n return this.request('GET', '/routing/checkout-theme/rules', {\n query: { profile_id: profileId },\n });\n }\n\n /**\n * Deactivate the active theme program for a scope. Idempotent.\n *\n * `DELETE /routing/checkout-theme/rules?profile_id={profileId}`\n *\n * Deactivation, not deletion — the stored row is what says which look was\n * live when, and that history cannot be reconstructed after the fact. Shops\n * go back to their default appearance immediately.\n *\n * @param profileId - Shop scope. Omit for the merchant-wide program.\n */\n async delete(profileId?: string): Promise<void> {\n return this.request('DELETE', '/routing/checkout-theme/rules', {\n query: { profile_id: profileId },\n });\n }\n}\n\n/**\n * Rendered-to-paid conversion, per appearance variant and segment.\n *\n * Answers the one question theme targeting exists for: *does variant B convert\n * better than the house style, on phones, in Germany?*\n *\n * **What a rate here means.** The denominator is backend-observed checkout page\n * opens, deduplicated by device within the hosted checkout's cache window, with\n * automated traffic excluded from both sides. It is narrower than \"paints\", and\n * that is deliberate - counting one buyer's refresh as a second render would\n * understate conversion. The exact basis travels with every response in\n * `denominator`, and the ways it is not the whole truth travel in `caveats`.\n *\n * **The server decides what may be concluded, not you.** Rate, Wilson interval,\n * per-cell `verdict` and the variant-vs-default `separates` test are computed\n * once, server-side, and shipped as values. Do not recompute them: the first\n * client that rounds differently tells a merchant a difference is real when the\n * server says it is not.\n */\nclass CheckoutThemeConversion {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Rendered-to-paid conversion for a shop over a window.\n *\n * `GET /routing/checkout-theme/conversion`\n *\n * Requires `CheckoutBranding` read at profile scope - the same permission\n * that governs seeing how a checkout looks.\n *\n * @param params - Window (RFC3339, `start` inclusive / `end` exclusive), the\n * shop, the dimension to group by, and the optional `device_class`,\n * `country` and `selection` filters.\n *\n * @example Which variant wins on which device, over the last 30 days.\n * ```typescript\n * const report = await delopay.routing.checkoutThemeConversion.retrieve({\n * profile_id: 'pro_...',\n * start: '2026-07-21T00:00:00Z',\n * end: '2026-08-20T00:00:00Z',\n * segment: 'device',\n * });\n *\n * for (const c of report.comparisons) {\n * if (!c.separates) continue; // \"not shown to differ\" - say nothing\n * console.log(`${c.variant} on ${c.segment}: ${c.higher} converts better`);\n * }\n * ```\n */\n async retrieve(params: CheckoutThemeConversionQuery): Promise<CheckoutThemeConversionResponse> {\n return this.request('GET', '/routing/checkout-theme/conversion', {\n query: {\n profile_id: params.profile_id,\n start: params.start,\n end: params.end,\n segment: params.segment,\n device_class: params.device_class ?? undefined,\n country: params.country ?? undefined,\n selection: params.selection ?? undefined,\n },\n });\n }\n}\n"]}