@delopay/sdk 0.490.0 → 0.492.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 (300) 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.map +1 -1
  5. package/dist/chunk-244VZFFO.cjs.map +1 -1
  6. package/dist/chunk-2IJRBJXW.cjs.map +1 -1
  7. package/dist/chunk-34PC72O7.cjs.map +1 -1
  8. package/dist/chunk-3GBWQWTP.cjs.map +1 -1
  9. package/dist/chunk-3YBBJT3Y.cjs.map +1 -1
  10. package/dist/chunk-44QBWVRS.cjs.map +1 -1
  11. package/dist/chunk-4EKAWNYI.cjs.map +1 -1
  12. package/dist/chunk-4LN4BR2T.cjs.map +1 -1
  13. package/dist/chunk-4T4XHPYN.cjs.map +1 -1
  14. package/dist/chunk-4T7BJFY2.cjs.map +1 -1
  15. package/dist/chunk-5CITBN33.cjs.map +1 -1
  16. package/dist/chunk-5HCKC4HF.cjs.map +1 -1
  17. package/dist/chunk-5O2JSQYA.cjs.map +1 -1
  18. package/dist/chunk-5QS67SBO.cjs.map +1 -1
  19. package/dist/chunk-6BFZS4YP.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-7NKJD5ST.cjs.map +1 -1
  29. package/dist/chunk-7QZCUXWB.cjs.map +1 -1
  30. package/dist/chunk-7VXF5D67.cjs.map +1 -1
  31. package/dist/chunk-ABWAYMN5.cjs.map +1 -1
  32. package/dist/chunk-ACZ2R47X.cjs.map +1 -1
  33. package/dist/chunk-ANQRR2BG.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-BT3UAUEV.cjs.map +1 -1
  39. package/dist/chunk-CAMALM35.cjs.map +1 -1
  40. package/dist/chunk-CCN44NZJ.cjs.map +1 -1
  41. package/dist/chunk-CR3JBTP3.cjs.map +1 -1
  42. package/dist/chunk-DJASVBOJ.cjs.map +1 -1
  43. package/dist/chunk-DQHT4FGI.cjs.map +1 -1
  44. package/dist/chunk-EEB2HDYL.cjs.map +1 -1
  45. package/dist/chunk-ENPSUWTS.cjs.map +1 -1
  46. package/dist/chunk-EQ6P6ZND.cjs.map +1 -1
  47. package/dist/chunk-EXPWQBI3.cjs.map +1 -1
  48. package/dist/chunk-EYHSXJMJ.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-FTWGI7UZ.cjs.map +1 -1
  54. package/dist/chunk-FYISDU2Y.cjs.map +1 -1
  55. package/dist/chunk-GG52SAHA.cjs.map +1 -1
  56. package/dist/chunk-GK5FWN4H.cjs.map +1 -1
  57. package/dist/{chunk-R3WHKS5S.cjs → chunk-GLQ7EJAH.cjs} +2 -2
  58. package/dist/chunk-GLQ7EJAH.cjs.map +1 -0
  59. package/dist/chunk-GSQN5EOO.cjs.map +1 -1
  60. package/dist/chunk-GW7IHYXR.cjs.map +1 -1
  61. package/dist/chunk-GWSVQXEY.cjs.map +1 -1
  62. package/dist/chunk-HLKFUOAQ.cjs.map +1 -1
  63. package/dist/chunk-HLYGHP6F.cjs.map +1 -1
  64. package/dist/chunk-HSJABE7X.cjs.map +1 -1
  65. package/dist/chunk-I2W7AO4B.cjs.map +1 -1
  66. package/dist/chunk-I2XGNALG.cjs.map +1 -1
  67. package/dist/chunk-IKXGA2Z5.cjs.map +1 -1
  68. package/dist/{chunk-7AELDJXA.js → chunk-IM6A64ON.js} +2 -2
  69. package/dist/chunk-IM6A64ON.js.map +1 -0
  70. package/dist/chunk-IR2LFKKA.cjs.map +1 -1
  71. package/dist/chunk-J4ZB7MU4.cjs.map +1 -1
  72. package/dist/chunk-J5RPSRBQ.cjs.map +1 -1
  73. package/dist/chunk-JPPRDMTJ.cjs.map +1 -1
  74. package/dist/chunk-K5Q2H3VD.cjs.map +1 -1
  75. package/dist/chunk-KD5Y2YWK.cjs.map +1 -1
  76. package/dist/chunk-KJDMNF2T.cjs.map +1 -1
  77. package/dist/chunk-KLONGJCL.cjs.map +1 -1
  78. package/dist/chunk-LJ2EG6JK.cjs.map +1 -1
  79. package/dist/chunk-LLYY4TCZ.cjs.map +1 -1
  80. package/dist/chunk-LYIBTVK6.cjs.map +1 -1
  81. package/dist/chunk-M3HWE7KT.cjs.map +1 -1
  82. package/dist/chunk-M3SJHFT4.cjs.map +1 -1
  83. package/dist/chunk-MLG6NXI6.cjs.map +1 -1
  84. package/dist/chunk-MYAXAWBQ.cjs.map +1 -1
  85. package/dist/chunk-NFB3S2E6.cjs.map +1 -1
  86. package/dist/chunk-NYL3BNHR.cjs.map +1 -1
  87. package/dist/chunk-O4AYHLQX.cjs.map +1 -1
  88. package/dist/chunk-OAEKP665.cjs.map +1 -1
  89. package/dist/chunk-ODPNVNYE.cjs.map +1 -1
  90. package/dist/chunk-OG2KJAYD.cjs.map +1 -1
  91. package/dist/chunk-OYZP6NF6.cjs.map +1 -1
  92. package/dist/chunk-P4UILJVU.cjs.map +1 -1
  93. package/dist/chunk-P7DYLUUI.cjs.map +1 -1
  94. package/dist/chunk-PKAE6AQT.cjs.map +1 -1
  95. package/dist/chunk-PYNHK6AP.cjs.map +1 -1
  96. package/dist/chunk-Q7M7DO7M.cjs.map +1 -1
  97. package/dist/chunk-QKUWFMZP.cjs.map +1 -1
  98. package/dist/chunk-QRSA72B3.cjs.map +1 -1
  99. package/dist/chunk-QYNRNDIY.cjs.map +1 -1
  100. package/dist/chunk-R4GA6BVP.cjs.map +1 -1
  101. package/dist/chunk-R5VYSZ3Q.cjs.map +1 -1
  102. package/dist/chunk-RHFUXHQN.cjs.map +1 -1
  103. package/dist/chunk-RI42IDRR.cjs.map +1 -1
  104. package/dist/chunk-S77LQWYC.cjs.map +1 -1
  105. package/dist/chunk-S7SBNOGS.cjs.map +1 -1
  106. package/dist/chunk-TMAJE5P2.cjs.map +1 -1
  107. package/dist/chunk-TNIJ6OSH.cjs.map +1 -1
  108. package/dist/chunk-U3JK7NBG.cjs.map +1 -1
  109. package/dist/chunk-UGSM7RJ2.cjs.map +1 -1
  110. package/dist/chunk-UKLZAOLW.cjs.map +1 -1
  111. package/dist/chunk-UTCXNBID.cjs.map +1 -1
  112. package/dist/chunk-V47G7P6L.cjs.map +1 -1
  113. package/dist/chunk-VH5A6SMU.cjs.map +1 -1
  114. package/dist/chunk-VHMH4QMY.cjs.map +1 -1
  115. package/dist/chunk-VYC7WUM5.cjs.map +1 -1
  116. package/dist/chunk-W457XUA6.cjs.map +1 -1
  117. package/dist/chunk-W7NMENTT.cjs.map +1 -1
  118. package/dist/chunk-WHDI3TMP.cjs.map +1 -1
  119. package/dist/chunk-WITCPKNL.cjs.map +1 -1
  120. package/dist/chunk-WX6NP7UU.cjs.map +1 -1
  121. package/dist/chunk-XQLRIBVR.cjs.map +1 -1
  122. package/dist/chunk-Y7LSSRNJ.cjs.map +1 -1
  123. package/dist/chunk-YFRAI34Y.cjs.map +1 -1
  124. package/dist/chunk-YK3P5QNZ.cjs.map +1 -1
  125. package/dist/chunk-YW4DVKNT.cjs.map +1 -1
  126. package/dist/chunk-YWN76H2W.cjs.map +1 -1
  127. package/dist/chunk-ZKPVUCQV.cjs.map +1 -1
  128. package/dist/chunk-ZUULK36E.cjs.map +1 -1
  129. package/dist/client.cjs.map +1 -1
  130. package/dist/core.cjs.map +1 -1
  131. package/dist/currencies.cjs.map +1 -1
  132. package/dist/enigmaCardForm.cjs.map +1 -1
  133. package/dist/error.cjs.map +1 -1
  134. package/dist/eventStream.cjs.map +1 -1
  135. package/dist/exportDownload.cjs.map +1 -1
  136. package/dist/feeProgram.cjs.map +1 -1
  137. package/dist/index.cjs.map +1 -1
  138. package/dist/index.d.cts +1 -1
  139. package/dist/index.d.ts +1 -1
  140. package/dist/internal/resources/admin.cjs.map +1 -1
  141. package/dist/internal/resources/admin.d.cts +1 -1
  142. package/dist/internal/resources/admin.d.ts +1 -1
  143. package/dist/internal/resources/adminBranding.cjs.map +1 -1
  144. package/dist/internal/resources/adminBranding.d.cts +1 -1
  145. package/dist/internal/resources/adminBranding.d.ts +1 -1
  146. package/dist/internal/resources/adminCheckoutDomains.cjs.map +1 -1
  147. package/dist/internal/resources/adminCheckoutDomains.d.cts +1 -1
  148. package/dist/internal/resources/adminCheckoutDomains.d.ts +1 -1
  149. package/dist/internal/resources/adminFeePlans.cjs.map +1 -1
  150. package/dist/internal/resources/adminFeePlans.d.cts +1 -1
  151. package/dist/internal/resources/adminFeePlans.d.ts +1 -1
  152. package/dist/internal/resources/adminFileScans.cjs.map +1 -1
  153. package/dist/internal/resources/adminFileScans.d.cts +1 -1
  154. package/dist/internal/resources/adminFileScans.d.ts +1 -1
  155. package/dist/internal/resources/adminIndustries.cjs.map +1 -1
  156. package/dist/internal/resources/adminIndustries.d.cts +1 -1
  157. package/dist/internal/resources/adminIndustries.d.ts +1 -1
  158. package/dist/internal/resources/adminLive.cjs.map +1 -1
  159. package/dist/internal/resources/adminNotices.cjs.map +1 -1
  160. package/dist/internal/resources/adminNotices.d.cts +1 -1
  161. package/dist/internal/resources/adminNotices.d.ts +1 -1
  162. package/dist/internal/resources/adminPortal.cjs +2 -2
  163. package/dist/internal/resources/adminPortal.cjs.map +1 -1
  164. package/dist/internal/resources/adminPortal.d.cts +1 -1
  165. package/dist/internal/resources/adminPortal.d.ts +1 -1
  166. package/dist/internal/resources/adminPortal.js +1 -1
  167. package/dist/internal/resources/adminPricing.cjs.map +1 -1
  168. package/dist/internal/resources/adminPricing.d.cts +1 -1
  169. package/dist/internal/resources/adminPricing.d.ts +1 -1
  170. package/dist/internal/resources/adminSupport.cjs.map +1 -1
  171. package/dist/internal/resources/adminSupport.d.cts +1 -1
  172. package/dist/internal/resources/adminSupport.d.ts +1 -1
  173. package/dist/internal/resources/auditLogs.cjs.map +1 -1
  174. package/dist/internal/resources/auditLogs.d.cts +1 -1
  175. package/dist/internal/resources/auditLogs.d.ts +1 -1
  176. package/dist/internal/resources/cache.cjs.map +1 -1
  177. package/dist/internal/resources/cardIssuers.cjs.map +1 -1
  178. package/dist/internal/resources/cardIssuers.d.cts +1 -1
  179. package/dist/internal/resources/cardIssuers.d.ts +1 -1
  180. package/dist/internal/resources/configs.cjs.map +1 -1
  181. package/dist/internal/resources/connectorRestrictionRules.cjs.map +1 -1
  182. package/dist/internal/resources/connectorRestrictionRules.d.cts +1 -1
  183. package/dist/internal/resources/connectorRestrictionRules.d.ts +1 -1
  184. package/dist/internal/resources/connectorRestrictions.cjs.map +1 -1
  185. package/dist/internal/resources/connectorRestrictions.d.cts +1 -1
  186. package/dist/internal/resources/connectorRestrictions.d.ts +1 -1
  187. package/dist/internal/resources/diagnostic.cjs.map +1 -1
  188. package/dist/internal/resources/diagnostic.d.cts +1 -1
  189. package/dist/internal/resources/diagnostic.d.ts +1 -1
  190. package/dist/internal/resources/gsm.cjs.map +1 -1
  191. package/dist/internal/resources/gsm.d.cts +1 -1
  192. package/dist/internal/resources/gsm.d.ts +1 -1
  193. package/dist/internal/resources/nativeRenewals.cjs.map +1 -1
  194. package/dist/internal/resources/nativeRenewals.d.cts +1 -1
  195. package/dist/internal/resources/nativeRenewals.d.ts +1 -1
  196. package/dist/internal/resources/platformBilling.cjs.map +1 -1
  197. package/dist/internal/resources/platformBilling.d.cts +1 -1
  198. package/dist/internal/resources/platformBilling.d.ts +1 -1
  199. package/dist/internal/resources/platformFees.cjs.map +1 -1
  200. package/dist/internal/resources/platformMessageTemplates.cjs.map +1 -1
  201. package/dist/internal/resources/platformSettings.cjs.map +1 -1
  202. package/dist/internal/resources/platformSettings.d.cts +1 -1
  203. package/dist/internal/resources/platformSettings.d.ts +1 -1
  204. package/dist/internal.cjs +3 -3
  205. package/dist/internal.cjs.map +1 -1
  206. package/dist/internal.d.cts +2 -2
  207. package/dist/internal.d.ts +2 -2
  208. package/dist/internal.js +1 -1
  209. package/dist/listQuery.cjs.map +1 -1
  210. package/dist/panes.cjs.map +1 -1
  211. package/dist/paymentPresentation.cjs.map +1 -1
  212. package/dist/recordCounter.cjs.map +1 -1
  213. package/dist/resources/aiTools.cjs.map +1 -1
  214. package/dist/resources/analytics.cjs.map +1 -1
  215. package/dist/resources/analyticsDashboard.cjs.map +1 -1
  216. package/dist/resources/apiKeys.cjs.map +1 -1
  217. package/dist/resources/audit.cjs.map +1 -1
  218. package/dist/resources/authentication.cjs.map +1 -1
  219. package/dist/resources/availabilityOverrides.cjs.map +1 -1
  220. package/dist/resources/billing.cjs.map +1 -1
  221. package/dist/resources/buyerAccount.cjs.map +1 -1
  222. package/dist/resources/buyerBlocklist.cjs.map +1 -1
  223. package/dist/resources/buyerConversations.cjs.map +1 -1
  224. package/dist/resources/buyerEvidenceReviews.cjs.map +1 -1
  225. package/dist/resources/buyerPortal.cjs.map +1 -1
  226. package/dist/resources/cards.cjs.map +1 -1
  227. package/dist/resources/chargebackPrevention.cjs.map +1 -1
  228. package/dist/resources/checkoutDomains.cjs.map +1 -1
  229. package/dist/resources/checkoutMethods.cjs.map +1 -1
  230. package/dist/resources/checkoutRecovery.cjs.map +1 -1
  231. package/dist/resources/checkoutTemplates.cjs.map +1 -1
  232. package/dist/resources/connectors.cjs.map +1 -1
  233. package/dist/resources/contentEncryption.cjs.map +1 -1
  234. package/dist/resources/costRules.cjs.map +1 -1
  235. package/dist/resources/customers.cjs.map +1 -1
  236. package/dist/resources/deploymentBranding.cjs.map +1 -1
  237. package/dist/resources/disputes.cjs.map +1 -1
  238. package/dist/resources/ephemeralKeys.cjs.map +1 -1
  239. package/dist/resources/events.cjs.map +1 -1
  240. package/dist/resources/export.cjs.map +1 -1
  241. package/dist/resources/externalRecords.cjs.map +1 -1
  242. package/dist/resources/featureMatrix.cjs.map +1 -1
  243. package/dist/resources/fees.cjs.map +1 -1
  244. package/dist/resources/files.cjs.map +1 -1
  245. package/dist/resources/forex.cjs.map +1 -1
  246. package/dist/resources/identityVerifications.cjs.map +1 -1
  247. package/dist/resources/industries.cjs.map +1 -1
  248. package/dist/resources/invoiceSettings.cjs.map +1 -1
  249. package/dist/resources/invoices.cjs.map +1 -1
  250. package/dist/resources/live.cjs.map +1 -1
  251. package/dist/resources/mandates.cjs.map +1 -1
  252. package/dist/resources/merchantAccounts.cjs.map +1 -1
  253. package/dist/resources/messageTemplates.cjs.map +1 -1
  254. package/dist/resources/notices.cjs.map +1 -1
  255. package/dist/resources/operationLimits.cjs.map +1 -1
  256. package/dist/resources/paymentLinks.cjs.map +1 -1
  257. package/dist/resources/paymentMethods.cjs.map +1 -1
  258. package/dist/resources/payments.cjs.map +1 -1
  259. package/dist/resources/payoutDestinations.cjs.map +1 -1
  260. package/dist/resources/payouts.cjs.map +1 -1
  261. package/dist/resources/paypalDisputes.cjs.map +1 -1
  262. package/dist/resources/persons.cjs.map +1 -1
  263. package/dist/resources/poll.cjs.map +1 -1
  264. package/dist/resources/processorCosts.cjs.map +1 -1
  265. package/dist/resources/processorImports.cjs.map +1 -1
  266. package/dist/resources/products.cjs.map +1 -1
  267. package/dist/resources/profileAcquirers.cjs.map +1 -1
  268. package/dist/resources/profiles.cjs.map +1 -1
  269. package/dist/resources/projects.cjs.map +1 -1
  270. package/dist/resources/refunds.cjs.map +1 -1
  271. package/dist/resources/regions.cjs.map +1 -1
  272. package/dist/resources/relay.cjs.map +1 -1
  273. package/dist/resources/risk.cjs.map +1 -1
  274. package/dist/resources/routing.cjs.map +1 -1
  275. package/dist/resources/search.cjs.map +1 -1
  276. package/dist/resources/sellToRestrictions.cjs.map +1 -1
  277. package/dist/resources/settings.cjs.map +1 -1
  278. package/dist/resources/settlement.cjs.map +1 -1
  279. package/dist/resources/shareLinks.cjs.map +1 -1
  280. package/dist/resources/shopLabels.cjs.map +1 -1
  281. package/dist/resources/shopify.cjs.map +1 -1
  282. package/dist/resources/shops.cjs.map +1 -1
  283. package/dist/resources/stripeConnect.cjs.map +1 -1
  284. package/dist/resources/subscriptions.cjs.map +1 -1
  285. package/dist/resources/support.cjs.map +1 -1
  286. package/dist/resources/threeDsRules.cjs.map +1 -1
  287. package/dist/resources/users.cjs.map +1 -1
  288. package/dist/resources/vatRates.cjs.map +1 -1
  289. package/dist/resources/verification.cjs.map +1 -1
  290. package/dist/resources/webhooks.cjs.map +1 -1
  291. package/dist/resources/whopResolutionCases.cjs.map +1 -1
  292. package/dist/trustedOrigins.cjs.map +1 -1
  293. package/dist/{types-D9ygoAbt.d.ts → types-C6zTmzk0.d.ts} +7 -0
  294. package/dist/{types-4T8JSWuZ.d.cts → types-CPwF4xMA.d.cts} +7 -0
  295. package/dist/types.cjs.map +1 -1
  296. package/dist/types.d.cts +79 -8
  297. package/dist/types.d.ts +79 -8
  298. package/package.json +1 -1
  299. package/dist/chunk-7AELDJXA.js.map +0 -1
  300. package/dist/chunk-R3WHKS5S.cjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/tmp/w2-sdk-publish-0492/dist/chunk-GLQ7EJAH.cjs","../src/internal/resources/adminPortal.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AAC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;AACV,MAAA;AACwE,MAAA;AACzD,MAAA;AACjB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBuC,EAAA;AACiD,IAAA;AACxF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAW2C,EAAA;AACuC,IAAA;AACxB,MAAA;AACvD,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQgF,EAAA;AACf,IAAA;AACjE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAY8C,EAAA;AACqC,IAAA;AACnF,EAAA;AACF;AAE4F;AACtE,EAAA;AAC6D,EAAA;AACb,IAAA;AAC3C,IAAA;AACzB,EAAA;AACM,EAAA;AACJ,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACG,IAAA;AACD,EAAA;AACoC,EAAA;AACH,EAAA;AACL,EAAA;AACU,EAAA;AACP,EAAA;AAC5B,EAAA;AACF,IAAA;AACwD,IAAA;AACJ,IAAA;AACR,IAAA;AACY,IAAA;AACM,IAAA;AACe,IAAA;AAE1B,IAAA;AAEW,IAAA;AACH,IAAA;AACV,IAAA;AAEC,IAAA;AAGhB,IAAA;AAE+C,IAAA;AACG,IAAA;AACnB,IAAA;AACY,IAAA;AACO,IAAA;AAChB,IAAA;AACzE,EAAA;AACF;AAKkD;AACc,EAAA;AAChE;AAGmE;AACC,EAAA;AACpE;AAGmE;AACC,EAAA;AACpE;AAGkD;AACe,EAAA;AACjE;ADr5B0F;AACA;AACA;AACA","file":"/tmp/w2-sdk-publish-0492/dist/chunk-GLQ7EJAH.cjs","sourcesContent":[null,"import type {\n BuyerRiskEvaluationsResponse,\n BuyerRiskEvidenceQuery,\n BuyerRiskEvidenceResponse,\n NativeReserveListResponse,\n NativeReserveOverview,\n NativeReserveOverviewRequest,\n PreventionCaseDetail,\n PreventionCaseList,\n PreventionRefundActionList,\n PreventionRefundRule,\n ConnectionChecksResponse,\n RiskAdjustments,\n RiskTuningPreviewResponse,\n RiskTuningResponse,\n RiskTuningTarget,\n RiskTuningUpdateRequest,\n TokenResponse,\n VaultOutageGroupActionResponse,\n VaultOutageGroupActionsListResponse,\n VaultOutageGroupCheckRecoveryResponse,\n VaultOutageGroupRestoreRequest,\n VaultOutageGroupRestoreResponse,\n VaultOutageGroupSwitchOffPreviewRequest,\n VaultOutageGroupSwitchOffPreviewResponse,\n VaultOutageGroupSwitchOffRequest,\n} from '../../types';\nimport { riskTuningPath } from '../../resources/risk';\nimport { preventionCaseQuery } from '../../resources/chargebackPrevention';\nimport { exportHeaders, nativeListQuery, statementListQuery } from '../../resources/settlement';\nimport type {\n BinaryExportOptions,\n CsvExportOptions,\n DynamicLineExportOptions,\n ExportEnvelope,\n ExportOptions,\n JsonExportOptions,\n BulkCreateProcessorCostSchedulesRequest,\n BuyerRefundRequestList,\n BuyerRefundRequestPageQuery,\n CreateProcessorCostScheduleRequest,\n ProcessorCostEventsResponse,\n ProcessorCostScheduleResponse,\n ReplaceProcessorCostScheduleRequest,\n UpdateProcessorCostScheduleRequest,\n FeeStatementDetail,\n MerchantAccountResponse,\n MerchantAccountUpdateRequest,\n PaymentAttemptsListResponse,\n PaymentClientContextListResponse,\n PaymentProductLines,\n InvoiceList,\n InvoicePageQuery,\n PaymentsDeleteResponse,\n PaymentIntegrationTestRequest,\n PaymentIntegrationTestResponse,\n PaymentStatusHistoryResponse,\n PaymentLogsResponse,\n PaymentLogConnectorCallDetail,\n PaymentLogIncomingWebhookDetail,\n PaymentLogOutgoingWebhookDetail,\n ProfileResponse,\n ProviderPayoutsRequest,\n ProviderPayoutsResponse,\n RefundListResponse,\n SellToRestrictionsResponse,\n SettlementAdvanceListRequest,\n SettlementAdvanceListResponse,\n SettlementCurrentParams,\n SettlementCurrentResponse,\n SettlementOverviewParams,\n SettlementPeriodListParams,\n SettlementPeriodListResponse,\n SettlementOverviewResponse,\n NativeReportViewListRequest,\n NativeSettlementPayoutListRequest,\n NativeSettlementPayoutListResponse,\n NativeSettlementPdfRequest,\n NativeSettlementReport,\n NativeSettlementReportExport,\n NativeSettlementReportListResponse,\n NativeSettlementImportDetail,\n NativeSettlementImportList,\n NativeSettlementImportListParams,\n NativeSettlementImportRequest,\n NativeSettlementLateEntry,\n NativeSettlementLateEntryCreateRequest,\n NativeSettlementLateEntryList,\n NativeSettlementLateEntryListParams,\n SettlementStatementListParams,\n SettlementStatementListResponse,\n StatementPdfParams,\n SubscriptionAnalyticsRequest,\n SubscriptionAnalyticsResponse,\n SubscriptionDrillRequest,\n ScopeDrillRequest,\n IndustryAnalytics,\n IndustryAnalyticsRequest,\n BuyerEvidenceInformationRequest,\n BuyerEvidenceNote,\n BuyerEvidenceQueue,\n BuyerEvidenceQueueQuery,\n BuyerEvidenceReply,\n BuyerEvidenceReviewCreate,\n BuyerEvidenceReviewDetail,\n MemberMethodAccessResponse,\n UpdateMemberMethodAccessRequest,\n MemberPermissionOverridesResponse,\n UpdateMemberPermissionOverridesRequest,\n MerchantRisk,\n AdminAnalyticsExclusionRequest,\n AdminAnalyticsExclusionResponse,\n AdminAnalyticsExclusionsResponse,\n AdminAnalyticsExclusionCopyRequest,\n AdminAnalyticsExclusionCopyResponse,\n MerchantExclusionsForAdminResponse,\n AdminAnalyticsShopsRequest,\n AdminAnalyticsConnectorsRequest,\n AnalyticsConnectorsRequest,\n AnalyticsConnectorsResponse,\n AnalyticsShopsRequest,\n AnalyticsShopsResponse,\n MerchantPersonFlagList,\n PaymentPersonResponse,\n PersonListParams,\n PersonListResponse,\n AdminRevokeUserSessionsResponse,\n LoginHistoryParams,\n LoginHistoryResponse,\n UserSessionListResponse,\n UserSessionRevokeResponse,\n PersonResponse,\n PersonScopeParams,\n RelatedPersonsResponse,\n VatRateListParams,\n VatRateListResponse,\n VatRateResponse,\n ShopTermConsentResponse,\n ShopTermProposalListRequest,\n ShopTermProposalListResponse,\n ShopTermConsentEventListRequest,\n ShopTermConsentEventListResponse,\n} from '../../types';\nimport type {\n RefundVolumeQuery,\n RefundVolumeResponse,\n UpdateRefundVolumeRequest,\n PlatformFeeReturnListResponse,\n PlatformFeeReturnQuery,\n RiskModelPatch,\n RiskModelResponse,\n RiskModelUpdateOptions,\n PlatformFeeReturnResponse,\n UpdatePlatformFeeReturnRequest,\n ConsolidateRolesRequest,\n ConsolidateRolesResponse,\n ConsolidationCandidatesResponse,\n CreateSharedRoleRequest,\n RetireSharedRolePreviewRequest,\n RetireSharedRolePreviewResponse,\n RetireSharedRoleRequest,\n SharedRoleApplied,\n SharedRoleChange,\n SharedRoleDetailResponse,\n SharedRoleListResponse,\n SharedRolePreviewResponse,\n UpdateSharedRoleRequest,\n AdminAttachVaultRequest,\n AdminAttachVaultResponse,\n AdminAttemptProcessorCost,\n AdminProcessorCostEventsParams,\n AdminVaultStateResponse,\n CardFundingBackfillRequest,\n CardFundingBackfillResponse,\n AdminCustomerListParams,\n AdminCustomerListResponse,\n AdminCustomerDetail,\n AdminTransactionExportParams,\n AdminTransactionExportRecord,\n AdminTransactionLineExportRecord,\n AdminTransactionListParams,\n AdminTransactionListResponse,\n AdminUnresolvedRefundListParams,\n AdminUnresolvedRefundListResponse,\n AdminAnalyticsRequest,\n PlatformAnalyticsResponse,\n OverviewStatsResponse,\n PaymentAnalyticsRequest,\n PaymentAnalyticsResponse,\n AnalyticsScopeRequest,\n ClientAnalyticsRequest,\n DeviceDrillRequest,\n DeviceIntelligencePaymentsParams,\n DeviceIntelligencePaymentsResponse,\n DeviceIntelligenceUsageParams,\n DeviceIntelligenceUsageResponse,\n GeoDrillRequest,\n DrillResponse,\n BuyerRiskAccuracyQuery,\n BuyerRiskAccuracyReport,\n BuyerRiskAccuracyPaymentsRequest,\n DevicesAnalyticsResponse,\n GeoAnalyticsResponse,\n AnalyticsScopeResponse,\n AdminLedgerAnalyticsRequest,\n AdminLedgerAnalyticsResponse,\n AdminOrphanedBillingProfilesResponse,\n AdminCreateUserForMerchantRequest,\n AdminUpdateUserRequest,\n AdminUserResponse,\n AdminUserDetailResponse,\n AdminPersonListParams,\n AdminPersonListResponse,\n AdminTransactionDetail,\n FlaggedElsewhereList,\n FlaggedPersonList,\n FlaggedPersonListParams,\n PersonFlagCreate,\n PersonFlagList,\n PersonFlagMatchSettings,\n PersonFlagMatchUpdate,\n PersonFlagStatusList,\n PersonFlagUpdate,\n PersonFlagView,\n BlockedPersonList,\n BlockedPersonListParams,\n PersonBlockCreate,\n PersonBlockEscalate,\n PersonBlockState,\n PersonBlockUpdate,\n PersonBlockView,\n BuyerEvidenceAssign,\n BuyerEvidenceDeadlineChange,\n RiskBackfillPreview,\n RiskBackfillRequest,\n RiskBackfillResponse,\n RiskBackfillStatus,\n MerchantRiskActionCatalogEntry,\n MerchantRiskActionConfirmRequest,\n MerchantRiskActionDismissRequest,\n MerchantRiskActionLiftRequest,\n MerchantRiskPaymentsStopRequest,\n MerchantRiskActionResponse,\n MerchantRiskBlockedAttemptList,\n MerchantRiskBlockedAttemptListParams,\n MerchantRiskExemptionCreateRequest,\n MerchantRiskExemptionResponse,\n MerchantRiskExemptionRevokeRequest,\n MerchantRiskPolicyPreviewRequest,\n MerchantRiskPolicyPreviewResponse,\n MerchantRiskStageResponse,\n ConnectionCheckPaymentsParams,\n ConnectionCheckPaymentsResponse,\n ConnectionCheckUsageParams,\n ConnectionCheckUsageResponse,\n AdminPreventionCaseFilters,\n AdminPreventionCaseListRequest,\n AdminPreventionConnectionList,\n AdminPreventionConnectionListRequest,\n AdminPreventionMerchantListParams,\n AdminPreventionRefundActionListRequest,\n AdminPreventionRefundRuleList,\n AdminPreventionRefundRuleListRequest,\n AdminPreventionRefundRuleStop,\n AdminPreventionTrendParams,\n PreventionMerchantList,\n PreventionSummary,\n PreventionTrend,\n CreateVatRateRequest,\n UpdateVatRateRequest,\n VatRateDeleteResponse,\n StaffMerchantAccessResponse,\n StaffMerchantAccessUpdateRequest,\n StaffRoleSupportAccess,\n StaffRoleSupportAccessList,\n StaffRoleSupportAccessUpdateRequest,\n ShopTermConsentReleaseRequest,\n} from '../types';\nimport type { RequestExtras, RequestFn, RequestOptions } from '../../client';\nimport { runExport } from '../../exportDownload';\nimport { csvQuery } from '../../listQuery';\n\n/** The case list's filters on an operator read, lists comma-separated. */\nfunction adminPreventionCaseQuery(params?: AdminPreventionCaseFilters): RequestOptions['query'] {\n const { merchant_id, ...filters } = params ?? {};\n return { ...preventionCaseQuery(filters), ...(merchant_id ? { merchant_id } : {}) };\n}\n\nexport class AdminPortal {\n /** Read refund treatment and the scope supplying its effective value. */\n async getRefundVolume(\n merchantId: string,\n query: RefundVolumeQuery = {},\n ): Promise<RefundVolumeResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/refund-volume`,\n {\n query: { ...query },\n },\n );\n }\n\n /** Change future monthly tier snapshots; existing snapshots and statement lines retain their prices. */\n async updateRefundVolume(\n merchantId: string,\n body: UpdateRefundVolumeRequest,\n query: RefundVolumeQuery = {},\n ): Promise<RefundVolumeResponse> {\n return this.request(\n 'PUT',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/refund-volume`,\n {\n query: { ...query },\n body,\n },\n );\n }\n\n /** Read whether refunds return their share of the platform fee, and the scope supplying it. */\n async getPlatformFeeReturn(\n merchantId: string,\n query: PlatformFeeReturnQuery = {},\n ): Promise<PlatformFeeReturnResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/platform-fee-return`,\n {\n query: { ...query },\n },\n );\n }\n\n /** Change the fee return for refunds that succeed from now on; earlier refunds keep their decision. */\n async updatePlatformFeeReturn(\n merchantId: string,\n body: UpdatePlatformFeeReturnRequest,\n query: PlatformFeeReturnQuery = {},\n ): Promise<PlatformFeeReturnResponse> {\n return this.request(\n 'PUT',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/platform-fee-return`,\n {\n query: { ...query },\n body,\n },\n );\n }\n\n /** What each successful refund of one payment returned of the platform fee. */\n async listPaymentPlatformFeeReturns(\n merchantId: string,\n paymentId: string,\n ): Promise<PlatformFeeReturnListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/transactions/${encodeURIComponent(paymentId)}/platform-fee-returns`,\n );\n }\n\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The deployment's merchant roles: shared roles, the roles defined in code,\n * and every merchant's own custom roles. `GET /admin-portal/merchant-roles`\n */\n async listSharedRoles(): Promise<SharedRoleListResponse> {\n return this.request('GET', '/admin-portal/merchant-roles');\n }\n\n /** `GET /admin-portal/merchant-roles/{roleId}` */\n async getSharedRole(roleId: string): Promise<SharedRoleDetailResponse> {\n return this.request('GET', `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}`);\n }\n\n /**\n * Define a role once and offer it to every merchant, or to the ones listed.\n * Offering never assigns it. `POST /admin-portal/merchant-roles`\n */\n async createSharedRole(body: CreateSharedRoleRequest): Promise<SharedRoleDetailResponse> {\n return this.request('POST', '/admin-portal/merchant-roles', { body });\n }\n\n /**\n * What a change would do, without writing anything. Apply it with\n * `updateSharedRole` and the `version` this returns.\n * `POST /admin-portal/merchant-roles/{roleId}/preview`\n */\n async previewSharedRole(\n roleId: string,\n change: SharedRoleChange,\n ): Promise<SharedRolePreviewResponse> {\n return this.request(\n 'POST',\n `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}/preview`,\n { body: change },\n );\n }\n\n /**\n * Apply a reviewed change. A change that takes access away needs\n * `acknowledge_sign_out` and signs out every holder.\n * `PUT /admin-portal/merchant-roles/{roleId}`\n */\n async updateSharedRole(\n roleId: string,\n body: UpdateSharedRoleRequest,\n ): Promise<SharedRoleApplied> {\n return this.request('PUT', `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}`, {\n body,\n });\n }\n\n /** `POST /admin-portal/merchant-roles/{roleId}/retire/preview` */\n async previewRetireSharedRole(\n roleId: string,\n body: RetireSharedRolePreviewRequest = {},\n ): Promise<RetireSharedRolePreviewResponse> {\n return this.request(\n 'POST',\n `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}/retire/preview`,\n { body },\n );\n }\n\n /**\n * Retire a shared role, moving its holders to the replacement.\n * `POST /admin-portal/merchant-roles/{roleId}/retire`\n */\n async retireSharedRole(\n roleId: string,\n body: RetireSharedRoleRequest,\n ): Promise<SharedRoleApplied> {\n return this.request(\n 'POST',\n `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}/retire`,\n { body },\n );\n }\n\n /**\n * Merchant-specific roles whose holders could move to this shared role, and\n * what each move would change. `GET /admin-portal/merchant-roles/{roleId}/consolidation`\n */\n async sharedRoleConsolidationCandidates(\n roleId: string,\n ): Promise<ConsolidationCandidatesResponse> {\n return this.request(\n 'GET',\n `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}/consolidation`,\n );\n }\n\n /** `POST /admin-portal/merchant-roles/{roleId}/consolidate` */\n async consolidateIntoSharedRole(\n roleId: string,\n body: ConsolidateRolesRequest,\n ): Promise<ConsolidateRolesResponse> {\n return this.request(\n 'POST',\n `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}/consolidate`,\n { body },\n );\n }\n\n /**\n * One page of merchants. Without `sort_by` the caller's favorite merchants\n * come first; with one, favorites are not moved. Several `billing_status`\n * values match a merchant in any of them. `GET /admin-portal/customers`\n */\n async listCustomers(params?: AdminCustomerListParams): Promise<AdminCustomerListResponse> {\n return this.request('GET', '/admin-portal/customers', {\n query: csvQuery(params, ['billing_status']),\n });\n }\n\n async getCustomer(customerId: string): Promise<AdminCustomerDetail> {\n return this.request('GET', `/admin-portal/customers/${encodeURIComponent(customerId)}`);\n }\n\n async listTransactions(\n params?: AdminTransactionListParams,\n ): Promise<AdminTransactionListResponse> {\n const query = transactionListQuery(params);\n return this.request('GET', '/admin-portal/transactions', {\n query,\n });\n }\n\n /**\n * Persons of every merchant account, connected accounts included, or of the\n * one merchant named in `merchant_id`. Each row is one merchant's person\n * and names that merchant; persons of two merchants are never merged,\n * whatever they share. `search` is matched at every merchant listed.\n *\n * A `limit` outside 1 to 100, a `search` longer than 320 characters, or\n * `sort_by: 'captured'` without a three-letter `captured_currency` is a\n * `400`.\n *\n * `GET /admin-portal/persons`\n */\n async listPersonsAcrossMerchants(\n params?: AdminPersonListParams,\n ): Promise<AdminPersonListResponse> {\n if (params === undefined) {\n return this.request('GET', '/admin-portal/persons');\n }\n // This list takes no industry, so a `PersonListParams` value passed here\n // that carries one is refused before any request: dropping the filter\n // would answer every merchant's persons as if they matched it.\n if ((params as { industry?: unknown }).industry !== undefined) {\n throw new TypeError(\n \"The list of persons across merchants takes no industry filter; list one merchant's persons with listPersons.\",\n );\n }\n return this.request('GET', '/admin-portal/persons', {\n query: csvQuery(params, ['buyer_risk_band']),\n });\n }\n\n /**\n * One page of ONE merchant's persons: the same query and response as the\n * merchant-facing `persons.list`, admin-authenticated. A person stays one\n * merchant's; `listPersonsAcrossMerchants` lists several merchants' side by\n * side.\n *\n * `GET /admin-portal/persons/{merchantId}`\n */\n async listPersons(merchantId: string, params?: PersonListParams): Promise<PersonListResponse> {\n return this.request('GET', adminPersons(merchantId), {\n query: csvQuery(params, ['buyer_risk_band', 'industry']),\n });\n }\n\n /**\n * One person of a merchant, as the merchant-facing `persons.retrieve`\n * returns it.\n *\n * `GET /admin-portal/persons/{merchantId}/{personId}`\n */\n async getPerson(\n merchantId: string,\n personId: string,\n params?: PersonScopeParams,\n ): Promise<PersonResponse> {\n return this.request('GET', `${adminPersons(merchantId)}/${encodeURIComponent(personId)}`, {\n query: params as PersonQuery | undefined,\n });\n }\n\n /**\n * The persons of a merchant that may be the same person as this one, as\n * the merchant-facing `persons.related` returns them.\n *\n * `GET /admin-portal/persons/{merchantId}/{personId}/related`\n */\n async listRelatedPersons(\n merchantId: string,\n personId: string,\n params?: PersonScopeParams,\n ): Promise<RelatedPersonsResponse> {\n return this.request(\n 'GET',\n `${adminPersons(merchantId)}/${encodeURIComponent(personId)}/related`,\n { query: params as PersonQuery | undefined },\n );\n }\n\n /**\n * The person of one payment of a merchant, as the merchant-facing\n * `persons.ofPayment` returns it.\n *\n * `GET /admin-portal/persons/{merchantId}/payment/{paymentId}`\n */\n async getPaymentPerson(\n merchantId: string,\n paymentId: string,\n params?: PersonScopeParams,\n ): Promise<PaymentPersonResponse> {\n return this.request(\n 'GET',\n `${adminPersons(merchantId)}/payment/${encodeURIComponent(paymentId)}`,\n { query: params as PersonQuery | undefined },\n );\n }\n\n /**\n * Every staff flag of a person, active and removed, newest first, with\n * those of the persons merged into it. A merged person reads as the person\n * it merged into. Staff only; a flag changes no payment.\n *\n * `GET /admin-portal/persons/{merchantId}/{personId}/flags`\n */\n async listPersonFlags(merchantId: string, personId: string): Promise<PersonFlagList> {\n return this.request('GET', personFlags(merchantId, personId));\n }\n\n /**\n * Flags a person for staff. The flag changes no payment and the merchant\n * never sees it. A merged person's flag goes on the person it merged into.\n * A person already flagged is refused with `IR_38` (400); a staff role that\n * may not flag buyers gets a `403`.\n *\n * `POST /admin-portal/persons/{merchantId}/{personId}/flags`\n */\n async flagPerson(\n merchantId: string,\n personId: string,\n body: PersonFlagCreate,\n ): Promise<PersonFlagView> {\n return this.request('POST', personFlags(merchantId, personId), { body });\n }\n\n /**\n * Replaces an active flag's reason and note at the `version` read. A\n * colleague's newer change, or a removal, since that read is refused with\n * `IR_16` (400) rather than overwritten.\n *\n * `PUT /admin-portal/persons/{merchantId}/{personId}/flags/{flagId}`\n */\n async updatePersonFlag(\n merchantId: string,\n personId: string,\n flagId: string,\n body: PersonFlagUpdate,\n ): Promise<PersonFlagView> {\n return this.request(\n 'PUT',\n `${personFlags(merchantId, personId)}/${encodeURIComponent(flagId)}`,\n { body },\n );\n }\n\n /**\n * Removes a flag at the `version` read: the flag stops and stays in the\n * history with who removed it and when, which is what this answers. A\n * colleague's change since that read is refused with `IR_16` (400).\n *\n * `DELETE /admin-portal/persons/{merchantId}/{personId}/flags/{flagId}?version=`\n */\n async removePersonFlag(\n merchantId: string,\n personId: string,\n flagId: string,\n version: number,\n ): Promise<PersonFlagView> {\n return this.request(\n 'DELETE',\n `${personFlags(merchantId, personId)}/${encodeURIComponent(flagId)}`,\n { query: { version } },\n );\n }\n\n /**\n * A person's platform-wide blocks, active and lifted, newest first, with\n * those of the persons merged into it, and their history, oldest first.\n * Staff only.\n *\n * `GET /admin-portal/persons/{merchantId}/{personId}/block`\n */\n async getPersonBlocks(merchantId: string, personId: string): Promise<PersonBlockState> {\n return this.request('GET', personBlock(merchantId, personId));\n }\n\n /**\n * Blocks a person platform-wide: their payments are then refused at every\n * merchant with `DE_30`. A flag never refuses; this is the separate action.\n * A person already blocked is refused with `IR_38` (400); a staff role\n * without the block permission gets a `403`.\n *\n * `POST /admin-portal/persons/{merchantId}/{personId}/block`\n */\n async blockPerson(\n merchantId: string,\n personId: string,\n body: PersonBlockCreate,\n ): Promise<PersonBlockView> {\n return this.request('POST', personBlock(merchantId, personId), { body });\n }\n\n /**\n * Blocks a person from one of their active flags. The block names the flag\n * and takes its reason unless the body names one; the flag stays active and\n * unchanged.\n *\n * `POST /admin-portal/persons/{merchantId}/{personId}/flags/{flagId}/escalate`\n */\n async escalatePersonFlag(\n merchantId: string,\n personId: string,\n flagId: string,\n body: PersonBlockEscalate = {},\n ): Promise<PersonBlockView> {\n return this.request(\n 'POST',\n `${personFlags(merchantId, personId)}/${encodeURIComponent(flagId)}/escalate`,\n { body },\n );\n }\n\n /**\n * Replaces an active block's reason and note at the `version` read. A\n * colleague's newer change, or a lift, since that read is refused with\n * `IR_16` (400) rather than overwritten.\n *\n * `PUT /admin-portal/persons/{merchantId}/{personId}/block/{blockId}`\n */\n async updatePersonBlock(\n merchantId: string,\n personId: string,\n blockId: string,\n body: PersonBlockUpdate,\n ): Promise<PersonBlockView> {\n return this.request(\n 'PUT',\n `${personBlock(merchantId, personId)}/${encodeURIComponent(blockId)}`,\n { body },\n );\n }\n\n /**\n * Lifts a block at the `version` read: the person's payments are no longer\n * refused, and the block stays in the history with who lifted it and when.\n * A colleague's change since that read is refused with `IR_16` (400).\n *\n * `DELETE /admin-portal/persons/{merchantId}/{personId}/block/{blockId}?version=`\n */\n async liftPersonBlock(\n merchantId: string,\n personId: string,\n blockId: string,\n version: number,\n ): Promise<PersonBlockView> {\n return this.request(\n 'DELETE',\n `${personBlock(merchantId, personId)}/${encodeURIComponent(blockId)}`,\n { query: { version } },\n );\n }\n\n /**\n * One page of the persons with an active block, every merchant's or one\n * merchant's, each person once with its newest active block, newest first.\n *\n * `GET /admin-portal/persons/platform-blocks`\n */\n async listBlockedPersons(params?: BlockedPersonListParams): Promise<BlockedPersonList> {\n if (params === undefined) {\n return this.request('GET', '/admin-portal/persons/platform-blocks');\n }\n return this.request('GET', '/admin-portal/persons/platform-blocks', {\n query: params as PersonQuery,\n });\n }\n\n /**\n * The merchant's own flags on one of its persons, active and removed, as\n * the merchant's team set them: read only, staff never set, change or\n * remove them. A merged person reads as the person it merged into. A\n * person the merchant does not have is not found (`404`).\n *\n * `GET /admin-portal/persons/{merchantId}/{personId}/merchant-flags`\n */\n async listMerchantPersonFlags(\n merchantId: string,\n personId: string,\n ): Promise<MerchantPersonFlagList> {\n return this.request(\n 'GET',\n `${adminPersons(merchantId)}/${encodeURIComponent(personId)}/merchant-flags`,\n );\n }\n\n /**\n * One page of a merchant's persons with an active flag, newest flag first.\n * A flag on a merged person is listed under the person it merged into, and\n * a person with two active flags is listed once, with the newer one.\n *\n * `GET /admin-portal/persons/{merchantId}/flagged`\n */\n async listFlaggedPersons(\n merchantId: string,\n params?: FlaggedPersonListParams,\n ): Promise<FlaggedPersonList> {\n if (params === undefined) {\n return this.request('GET', `${adminPersons(merchantId)}/flagged`);\n }\n return this.request('GET', `${adminPersons(merchantId)}/flagged`, {\n query: params as PersonQuery,\n });\n }\n\n /**\n * Whether each of 1 to 100 persons of a merchant is flagged, one answer\n * per asked person in the order asked. A merged person answers for the\n * person it merged into; an unknown person is not flagged. No id, or more\n * than 100, is a `400`.\n *\n * `GET /admin-portal/persons/{merchantId}/flag-status?person_ids=`\n */\n async personFlagStatus(\n merchantId: string,\n personIds: readonly string[],\n ): Promise<PersonFlagStatusList> {\n return this.request('GET', `${adminPersons(merchantId)}/flag-status`, {\n query: { person_ids: personIds.join(',') },\n });\n }\n\n /**\n * Persons flagged by staff at other merchants who share an identifier with\n * this person's 100 most recent payments, each once, newest flag first,\n * by the identifiers switched on in {@link AdminPortal.getPersonFlagMatch}:\n * the email, the DeloPay device id, the phone, the card by its processor's\n * fingerprint, the card's first eight digits, last four and expiry, the\n * customer reference, and the network address within 7 days (never a\n * hosting, proxy, VPN or Tor network, nor one more than 5 persons use). An\n * email or a device counts only while both payments still carry it as an\n * identifier that is not common, and only between payments of the same\n * mode (test or live) of merchants that are not archived, within the last\n * 365 days. Device traits never match. A hint only: the persons stay\n * separate and nothing is written.\n *\n * `GET /admin-portal/persons/{merchantId}/{personId}/flagged-elsewhere`\n */\n async listFlaggedElsewhere(merchantId: string, personId: string): Promise<FlaggedElsewhereList> {\n return this.request(\n 'GET',\n `${adminPersons(merchantId)}/${encodeURIComponent(personId)}/flagged-elsewhere`,\n );\n }\n\n /**\n * Which identifiers match a flagged person, one switch per identifier, for\n * staff's hint in {@link AdminPortal.listFlaggedElsewhere}. While nothing\n * is saved, every identifier is on but `card_number` and `ip`, and\n * `revision` is `null`.\n *\n * `GET /admin-portal/persons/flag-match`\n */\n async getPersonFlagMatch(): Promise<PersonFlagMatchSettings> {\n return this.request('GET', '/admin-portal/persons/flag-match');\n }\n\n /**\n * Replaces every identifier switch. A switch turned off removes its\n * matches at once, and every change is recorded in the settings history\n * (entity type `setting`). Send the `revision` you read as\n * `expected_revision`: a save over a newer value is refused with `400` and\n * code `IR_16`, and writes nothing. A role that may not set flags gets\n * `403`.\n *\n * `PUT /admin-portal/persons/flag-match`\n */\n async updatePersonFlagMatch(params: PersonFlagMatchUpdate): Promise<PersonFlagMatchSettings> {\n return this.request('PUT', '/admin-portal/persons/flag-match', { body: params });\n }\n\n /**\n * The admin transaction search as a file. `GET /admin-portal/transactions/export`\n *\n * Takes the same filters as {@link AdminPortal.listTransactions}, sent the\n * same way, and returns the whole match set rather than a page — bounded at\n * 25,000 rows (500 for `pdf`) and refused past that with `DE_07` rather than\n * truncated. Every page of it is read inside one database snapshot, so a\n * payment updated while the file downloads is neither repeated nor skipped.\n *\n * `csv` and `json` are streamed and held to their `X-Delopay-Record-Count`;\n * see {@link ExportTransferOptions} for progress, cancellation and the\n * `EXPORT_INCOMPLETE` check. The format is negotiated by `Accept` and\n * defaults to `json`.\n */\n async exportTransactions(\n params?: AdminTransactionExportParams,\n options?: JsonExportOptions,\n ): Promise<ExportEnvelope<AdminTransactionExportRecord>>;\n async exportTransactions(\n params: AdminTransactionExportParams | undefined,\n options: BinaryExportOptions,\n ): Promise<Blob>;\n async exportTransactions(\n params: AdminTransactionExportParams | undefined,\n options: ExportOptions,\n ): Promise<ExportEnvelope<AdminTransactionExportRecord> | Blob>;\n async exportTransactions(\n params?: AdminTransactionExportParams,\n options?: ExportOptions,\n ): Promise<ExportEnvelope<AdminTransactionExportRecord> | Blob> {\n return runExport(\n this.request,\n 'GET',\n '/admin-portal/transactions/export',\n { query: transactionListQuery(params) },\n options,\n );\n }\n\n /**\n * The admin transaction search as a file, one row per product line.\n * `GET /admin-portal/transactions/export/lines`\n *\n * The same filters as {@link AdminPortal.exportTransactions}, sent the same\n * way; one row per product line the matched payments recorded, plus one\n * `row_kind: 'no_lines'` row for each payment that recorded none. `csv` or\n * `json` only: the server refuses a PDF with `422`.\n */\n async exportTransactionLines(\n params?: AdminTransactionExportParams,\n options?: JsonExportOptions,\n ): Promise<ExportEnvelope<AdminTransactionLineExportRecord>>;\n async exportTransactionLines(\n params: AdminTransactionExportParams | undefined,\n options: CsvExportOptions,\n ): Promise<Blob>;\n async exportTransactionLines(\n params: AdminTransactionExportParams | undefined,\n options: DynamicLineExportOptions,\n ): Promise<ExportEnvelope<AdminTransactionLineExportRecord> | Blob>;\n async exportTransactionLines(\n params?: AdminTransactionExportParams,\n options?: JsonExportOptions | CsvExportOptions | DynamicLineExportOptions,\n ): Promise<ExportEnvelope<AdminTransactionLineExportRecord> | Blob> {\n return runExport(\n this.request,\n 'GET',\n '/admin-portal/transactions/export/lines',\n { query: transactionListQuery(params) },\n options,\n );\n }\n\n /**\n * Full detail for a single transaction of ANY merchant — the same\n * `PaymentResponse` the merchant `payments.retrieve` returns, with what only\n * staff see beside it (`person_flagged`, `flagged_elsewhere`). Admin-scoped:\n * the JWT (or admin API key) does not need to belong to the payment's\n * merchant; the backend resolves the owning merchant and reads it read-only\n * (no connector sync).\n */\n async getTransaction(paymentId: string): Promise<AdminTransactionDetail> {\n return this.request('GET', `/admin-portal/transactions/${encodeURIComponent(paymentId)}`);\n }\n\n /**\n * A payment's buyer risk evaluations, newest first, across every merchant:\n * the same answer as the merchant's `payments.buyerRisk()`.\n *\n * `GET /admin-portal/transactions/{paymentId}/buyer-risk`\n */\n async getTransactionBuyerRisk(paymentId: string): Promise<BuyerRiskEvaluationsResponse> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/buyer-risk`,\n );\n }\n\n /**\n * Concrete evidence behind one fired buyer-risk signal on a transaction,\n * across every merchant. Includes cross-merchant fraud matches with\n * merchant names and transaction IDs (never exposed on the merchant\n * endpoint), scoped to staff merchant access and the platform\n * cross-merchant switch.\n *\n * `GET /admin-portal/transactions/{paymentId}/buyer-risk/evidence`\n */\n async getTransactionBuyerRiskEvidence(\n paymentId: string,\n params: BuyerRiskEvidenceQuery,\n ): Promise<BuyerRiskEvidenceResponse> {\n const query: Record<string, string | number> = { signal: params.signal };\n if (params.evaluation_id !== undefined && params.evaluation_id !== null) {\n query['evaluation_id'] = params.evaluation_id;\n }\n if (params.view !== undefined && params.view !== null) {\n query['view'] = params.view;\n }\n if (params.limit !== undefined && params.limit !== null) {\n query['limit'] = params.limit;\n }\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/buyer-risk/evidence`,\n { query },\n );\n }\n\n /**\n * A payment's connection checks, newest first, across every merchant: the\n * same answer as the merchant's `identityVerifications.connectionChecks()`.\n *\n * `GET /admin-portal/transactions/{paymentId}/connection-checks`\n */\n async getTransactionConnectionChecks(paymentId: string): Promise<ConnectionChecksResponse> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/connection-checks`,\n );\n }\n\n /**\n * Every account that rates buyer addresses over the last `days` days: its\n * merchant's and its shop's name, its provider and label, whether it can\n * check at all and which credentials it has, and its checks per environment\n * (counts and error rate, anonymising connections, failures by reason,\n * ratings by risk level, finished checks per day, the provider's answer\n * time, its latest check and latest rating). The flat counts stay the live\n * and test totals.\n *\n * `GET /admin-portal/connection-checks`\n */\n async connectionCheckUsage(\n params: ConnectionCheckUsageParams = {},\n ): Promise<ConnectionCheckUsageResponse> {\n return this.request('GET', '/admin-portal/connection-checks', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The same overview over the last 7 days.\n *\n * @deprecated Use `connectionCheckUsage`, which takes a period.\n * `GET /admin-portal/connection-checks`\n */\n async getConnectionCheckUsage(): Promise<ConnectionCheckUsageResponse> {\n return this.request('GET', '/admin-portal/connection-checks');\n }\n\n /**\n * The checks behind one number of the connection check overview, with their\n * payments, one page at a time. With the same `days` and filters a list's\n * `total` is the count it was opened from. A row carries nothing about the\n * buyer, the checked address included.\n *\n * `GET /admin-portal/connection-checks/payments`\n */\n async connectionCheckPayments(\n params: ConnectionCheckPaymentsParams = {},\n ): Promise<ConnectionCheckPaymentsResponse> {\n return this.request('GET', '/admin-portal/connection-checks/payments', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /** The same frozen purchase lines available on the merchant payment read. */\n async getTransactionProductLines(paymentId: string): Promise<PaymentProductLines> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/product-lines`,\n );\n }\n\n /**\n * Per-attempt history (retries across connectors, decline reasons) for a\n * single transaction of ANY merchant.\n */\n async getTransactionAttempts(paymentId: string): Promise<PaymentAttemptsListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/attempts`,\n );\n }\n\n /**\n * Status timeline (intent / attempt / refund / dispute transitions) for a\n * single transaction of ANY merchant. `complete: false` marks timelines\n * partially reconstructed from current records.\n */\n async getTransactionStatusHistory(paymentId: string): Promise<PaymentStatusHistoryResponse> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/status-history`,\n );\n }\n\n /**\n * The traffic of a transaction of ANY merchant: provider requests, provider\n * webhooks and shop webhooks, oldest first, without payloads. Same shape as\n * `payments.listLogs`.\n */\n async getTransactionLogs(paymentId: string): Promise<PaymentLogsResponse> {\n return this.request('GET', `/admin-portal/transactions/${encodeURIComponent(paymentId)}/logs`);\n }\n\n /** One provider request of a transaction of ANY merchant, with its masked payloads. */\n async getTransactionLogConnectorCall(\n paymentId: string,\n callId: string,\n ): Promise<PaymentLogConnectorCallDetail> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/logs/connector-calls/${encodeURIComponent(callId)}`,\n );\n }\n\n /** One provider webhook of a transaction of ANY merchant, with its masked headers and body. */\n async getTransactionLogIncomingWebhook(\n paymentId: string,\n eventId: string,\n ): Promise<PaymentLogIncomingWebhookDetail> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/logs/incoming-webhooks/${encodeURIComponent(eventId)}`,\n );\n }\n\n /** Every delivery attempt of one shop webhook of a transaction of ANY merchant. */\n async getTransactionLogOutgoingWebhook(\n paymentId: string,\n initialAttemptId: string,\n ): Promise<PaymentLogOutgoingWebhookDetail> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/logs/outgoing-webhooks/${encodeURIComponent(initialAttemptId)}`,\n );\n }\n\n /**\n * The invoices and credit notes issued for a transaction of ANY merchant,\n * each its own row, newest first. At most 100 per page.\n * `GET /admin-portal/transactions/{paymentId}/invoices`\n */\n async getTransactionInvoices(paymentId: string, params?: InvoicePageQuery): Promise<InvoiceList> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/invoices`,\n { query: params === undefined ? undefined : { ...params } },\n );\n }\n\n /**\n * One invoice of ANY merchant as a PDF: the stored copy of an issued\n * document, a live render of a draft, the snapshot under a VOIDED banner for\n * a voided one.\n * `GET /admin-portal/invoices/{invoiceId}/pdf`\n */\n async downloadInvoicePdf(invoiceId: string): Promise<Blob> {\n return this.request('GET', `/admin-portal/invoices/${encodeURIComponent(invoiceId)}/pdf`, {\n responseType: 'blob',\n });\n }\n\n /**\n * Refunds for a single transaction of ANY merchant.\n */\n async getTransactionRefunds(paymentId: string): Promise<RefundListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/refunds`,\n );\n }\n\n /**\n * The refund requests buyers raised from the customer portal about a single\n * transaction of ANY merchant, newest first, one page at a time\n * (`total_count` counts them all). Read-only.\n * `GET /admin-portal/transactions/{paymentId}/refund-requests`\n */\n async getTransactionRefundRequests(\n paymentId: string,\n params?: BuyerRefundRequestPageQuery,\n ): Promise<BuyerRefundRequestList> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/refund-requests`,\n { query: params === undefined ? undefined : { ...params } },\n );\n }\n\n /**\n * Refunds of ANY merchant mirrored from a connector webhook at a\n * non-terminal status that no sync can advance. Newest first unless\n * `sort_by` says otherwise. Several `connector`, `status` or `sync_reason`\n * values match a refund with any of them.\n */\n async listUnresolvedRefunds(\n params?: AdminUnresolvedRefundListParams,\n ): Promise<AdminUnresolvedRefundListResponse> {\n return this.request('GET', '/admin-portal/refunds/unresolved', {\n query: csvQuery(params, ['connector', 'status', 'sync_reason', 'merchant_ids', 'industries']),\n });\n }\n\n // --- Buyer evidence review --------------------------------------------------\n\n /**\n * DeloPay's review queue of buyers' evidence, the nearest target first\n * unless `sort_by` says otherwise, across merchants unless `merchant_id` or\n * `profile_id` narrows it. Several `state` values match a case in any of\n * them.\n */\n async listBuyerEvidence(params?: BuyerEvidenceQueueQuery): Promise<BuyerEvidenceQueue> {\n return this.request('GET', '/admin-portal/buyer-evidence', {\n query: csvQuery(params, ['state']),\n });\n }\n\n /**\n * Chargeback prevention connections across merchants, or of one merchant,\n * newest first, one page at a time (`limit` 1 to 200, default 50), with how\n * many match in all.\n */\n async listChargebackPreventionConnections(\n params?: AdminPreventionConnectionListRequest,\n ): Promise<AdminPreventionConnectionList> {\n return this.request('GET', '/admin-portal/chargeback-prevention/connections', {\n query: params as Record<string, string | number | boolean | null | undefined>,\n });\n }\n\n /** Chargeback prevention cases across merchants, or of one merchant. */\n async listChargebackPreventionCases(\n params?: AdminPreventionCaseListRequest,\n ): Promise<PreventionCaseList> {\n const { merchant_id, ...filters } = params ?? {};\n return this.request('GET', '/admin-portal/chargeback-prevention/cases', {\n query: { ...preventionCaseQuery(filters), ...(merchant_id ? { merchant_id } : {}) },\n });\n }\n\n /**\n * Chargeback prevention refund rules across merchants, or of one merchant,\n * each with what its actions add up to.\n */\n async listChargebackPreventionRefundRules(\n params?: AdminPreventionRefundRuleListRequest,\n ): Promise<AdminPreventionRefundRuleList> {\n return this.request('GET', '/admin-portal/chargeback-prevention/refund-rules', {\n query: params as Record<string, string | number | boolean | null | undefined>,\n });\n }\n\n /**\n * Turn a merchant's refund rule off. Its settings are kept, and what it\n * already did is still settled and reported.\n */\n async stopChargebackPreventionRefundRule(\n body: AdminPreventionRefundRuleStop,\n ): Promise<PreventionRefundRule> {\n return this.request('POST', '/admin-portal/chargeback-prevention/refund-rules/disable', {\n body,\n });\n }\n\n /** What refund rules did, across merchants or for one merchant. */\n async listChargebackPreventionRefundActions(\n params?: AdminPreventionRefundActionListRequest,\n ): Promise<PreventionRefundActionList> {\n return this.request('GET', '/admin-portal/chargeback-prevention/refund-actions', {\n query: params as Record<string, string | number | boolean | null | undefined>,\n });\n }\n\n /**\n * Counts and money of the chargeback prevention cases the filters select,\n * per environment, from one snapshot: by outcome, match status and\n * provider, open cases by deadline, and the amounts at stake per currency.\n * The filters are the case list's, so `total` is the list's `total` for the\n * same filters. Amounts are never converted; live and test never added.\n */\n async chargebackPreventionSummary(\n params?: AdminPreventionCaseFilters,\n ): Promise<PreventionSummary> {\n return this.request('GET', '/admin-portal/chargeback-prevention/summary', {\n query: adminPreventionCaseQuery(params),\n });\n }\n\n /**\n * Chargeback prevention alerts raised per UTC day over the last `days` days\n * (1 to 90, default 30), by outcome, per environment, with the share of\n * matched alerts that became a chargeback.\n */\n async chargebackPreventionTrend(params?: AdminPreventionTrendParams): Promise<PreventionTrend> {\n const { days, ...filters } = params ?? {};\n return this.request('GET', '/admin-portal/chargeback-prevention/trend', {\n query: { ...adminPreventionCaseQuery(filters), ...(days !== undefined ? { days } : {}) },\n });\n }\n\n /**\n * Merchants per environment with what their chargeback prevention cases\n * say, one page at a time: open, overdue and unmatched cases, chargebacks\n * and the open amount per currency.\n */\n async chargebackPreventionMerchants(\n params?: AdminPreventionMerchantListParams,\n ): Promise<PreventionMerchantList> {\n const { sort, sort_order, limit, offset, ...filters } = params ?? {};\n return this.request('GET', '/admin-portal/chargeback-prevention/merchants', {\n query: {\n ...adminPreventionCaseQuery(filters),\n ...(sort !== undefined ? { sort } : {}),\n ...(sort_order !== undefined ? { sort_order } : {}),\n ...(limit !== undefined ? { limit } : {}),\n ...(offset !== undefined ? { offset } : {}),\n },\n });\n }\n\n /** One chargeback prevention case of any merchant, with its history. */\n async getChargebackPreventionCase(caseId: string): Promise<PreventionCaseDetail> {\n return this.request(\n 'GET',\n `/admin-portal/chargeback-prevention/cases/${encodeURIComponent(caseId)}`,\n );\n }\n\n /** One case's evidence with every step and file, internal ones included. */\n async getBuyerEvidence(evidenceId: string): Promise<BuyerEvidenceReviewDetail> {\n return this.request('GET', `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}`);\n }\n\n /** Download a file of a case's evidence. */\n async downloadBuyerEvidenceFile(evidenceId: string, fileId: string): Promise<Blob> {\n return this.request(\n 'GET',\n `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/files/${encodeURIComponent(fileId)}`,\n { responseType: 'blob' },\n );\n }\n\n /**\n * Ask the buyer for more, by a cut-off. Refused once a result has closed\n * the review.\n */\n async requestBuyerEvidenceInformation(\n evidenceId: string,\n params: BuyerEvidenceInformationRequest,\n ): Promise<BuyerEvidenceReviewDetail> {\n return this.request(\n 'POST',\n `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/information-requests`,\n { body: params },\n );\n }\n\n /** An answer the buyer sees. */\n async replyToBuyerEvidence(\n evidenceId: string,\n params: BuyerEvidenceReply,\n ): Promise<BuyerEvidenceReviewDetail> {\n return this.request(\n 'POST',\n `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/replies`,\n { body: params },\n );\n }\n\n /**\n * Record the result, which closes the review. It never refunds a payment\n * and never decides a dispute with the payment provider.\n */\n async reviewBuyerEvidence(\n evidenceId: string,\n params: BuyerEvidenceReviewCreate,\n ): Promise<BuyerEvidenceReviewDetail> {\n return this.request(\n 'POST',\n `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/reviews`,\n { body: params },\n );\n }\n\n /** Move the buyer's cut-off, with a reason the buyer sees. */\n async moveBuyerEvidenceDeadline(\n evidenceId: string,\n params: BuyerEvidenceDeadlineChange,\n ): Promise<BuyerEvidenceReviewDetail> {\n return this.request(\n 'PUT',\n `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/deadline`,\n { body: params },\n );\n }\n\n /** Make a user responsible for the review: an id, `me`, or `null` for nobody. */\n async assignBuyerEvidence(\n evidenceId: string,\n params: BuyerEvidenceAssign,\n ): Promise<BuyerEvidenceReviewDetail> {\n return this.request(\n 'PUT',\n `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/reviewer`,\n { body: params },\n );\n }\n\n /** An internal note, never shown to the buyer. */\n async noteBuyerEvidence(\n evidenceId: string,\n params: BuyerEvidenceNote,\n ): Promise<BuyerEvidenceReviewDetail> {\n return this.request(\n 'POST',\n `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/notes`,\n { body: params },\n );\n }\n\n async analytics(params: AdminAnalyticsRequest): Promise<PlatformAnalyticsResponse> {\n return this.request('GET', '/admin-portal/analytics', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n async overviewStats(): Promise<OverviewStatsResponse> {\n return this.request('GET', '/admin-portal/overview-stats');\n }\n\n async paymentAnalytics(params: PaymentAnalyticsRequest): Promise<PaymentAnalyticsResponse> {\n return this.request('GET', '/admin-portal/payment-analytics', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * One drill level of the analytics dashboard: the scope's daily series +\n * processor mix and its direct children's series. Range / metric / donut\n * toggles apply client-side; only a drill (passing merchant_id / project_id\n * / shop_id) fetches the next level.\n */\n async analyticsScope(params?: AnalyticsScopeRequest): Promise<AnalyticsScopeResponse> {\n return this.request('GET', '/admin-portal/analytics/scope', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * The operators' own analytics exclusions, oldest first, with the payments\n * each one matched in the lookback window. They change the admin's\n * analytics only; a merchant's own rules never change the admin's figures.\n * `GET /admin-portal/analytics/exclusions`\n */\n async listAnalyticsExclusions(): Promise<AdminAnalyticsExclusionsResponse> {\n return this.request('GET', '/admin-portal/analytics/exclusions');\n }\n\n /**\n * Write a new operator rule. Omitting `merchant_id` applies it to every\n * merchant; omitting `surfaces` means **all five**, not none.\n * `POST /admin-portal/analytics/exclusions`\n */\n async createAnalyticsExclusion(\n rule: AdminAnalyticsExclusionRequest,\n ): Promise<AdminAnalyticsExclusionResponse> {\n return this.request('POST', '/admin-portal/analytics/exclusions', { body: rule });\n }\n\n /**\n * Replace an operator rule **completely** — send the whole rule, including\n * an explicit `null` for every optional field you mean to clear.\n * `PUT /admin-portal/analytics/exclusions/{id}`\n */\n async updateAnalyticsExclusion(\n id: string,\n rule: AdminAnalyticsExclusionRequest,\n ): Promise<AdminAnalyticsExclusionResponse> {\n return this.request('PUT', `/admin-portal/analytics/exclusions/${encodeURIComponent(id)}`, {\n body: rule,\n });\n }\n\n /**\n * Delete an operator rule. Returns the rule as it was.\n * `DELETE /admin-portal/analytics/exclusions/{id}`\n */\n async deleteAnalyticsExclusion(id: string): Promise<AdminAnalyticsExclusionResponse> {\n return this.request('DELETE', `/admin-portal/analytics/exclusions/${encodeURIComponent(id)}`);\n }\n\n /**\n * A merchant's own exclusions, read-only, each with the operator rule that\n * already holds it (`admin_rule_id`).\n * `GET /admin-portal/analytics/exclusions/merchant/{merchant_id}`\n */\n async listMerchantAnalyticsExclusions(\n merchantId: string,\n ): Promise<MerchantExclusionsForAdminResponse> {\n return this.request(\n 'GET',\n `/admin-portal/analytics/exclusions/merchant/${encodeURIComponent(merchantId)}`,\n );\n }\n\n /**\n * Copy some of a merchant's rules into the operators' rules, each scoped to\n * that merchant. A copy is independent of its source; a rule an operator\n * rule already holds is skipped with a reason.\n * `POST /admin-portal/analytics/exclusions/copy`\n */\n async copyAnalyticsExclusions(\n body: AdminAnalyticsExclusionCopyRequest,\n ): Promise<AdminAnalyticsExclusionCopyResponse> {\n return this.request('POST', '/admin-portal/analytics/exclusions/copy', { body });\n }\n\n /**\n * Shop comparison: one series per shop over one window, with whole-window\n * and previous-window totals. With `merchant_id`, that merchant's shops;\n * without it, the top `limit` (default 50) shops of every merchant by\n * successful volume, the rest summed into `others`. Same contract as the\n * merchant surface's `analytics.shops`. `GET /admin-portal/analytics/shops`\n */\n async analyticsShops(params: AdminAnalyticsShopsRequest = {}): Promise<AnalyticsShopsResponse> {\n const query: AnalyticsShopsRequest = params;\n return this.request('GET', '/admin-portal/analytics/shops', {\n query: csvQuery(query, ['shop_ids']),\n });\n }\n\n /**\n * Every shop's device intelligence account, with its merchant's and its own\n * name and its assessments per environment over the last `days` days: counts\n * and error rate, failures by reason, finished assessments per day and\n * provider, the last recorded assessment, browser payments against assessed\n * ones, and the payments held for a missing assessment. The error rate counts\n * finished assessments: one still running and a payment naming no buyer are\n * not errors.\n * `GET /admin-portal/device-intelligence`\n */\n async deviceIntelligenceUsage(\n params: DeviceIntelligenceUsageParams = {},\n ): Promise<DeviceIntelligenceUsageResponse> {\n return this.request('GET', '/admin-portal/device-intelligence', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The payments behind one number of the device intelligence overview, one\n * page at a time: the assessments it counts, the payments held for a missing\n * assessment, or the browser payments without a device signal. With the same\n * `days` a list's `total` is the count it was opened from. A row carries\n * nothing about the buyer.\n * `GET /admin-portal/device-intelligence/payments`\n */\n async deviceIntelligencePayments(\n params: DeviceIntelligencePaymentsParams = {},\n ): Promise<DeviceIntelligencePaymentsResponse> {\n return this.request('GET', '/admin-portal/device-intelligence/payments', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * PSP analytics across merchants: the merchant surface's\n * `analytics.connectors`, with `merchant_id` optional (omitted, every\n * merchant, broken down by merchant) and each account's merchant named.\n * `GET /admin-portal/analytics/connectors`\n */\n async analyticsConnectors(\n params: AdminAnalyticsConnectorsRequest = {},\n ): Promise<AnalyticsConnectorsResponse> {\n const query: AnalyticsConnectorsRequest = params;\n return this.request('GET', '/admin-portal/analytics/connectors', {\n query: csvQuery(query, ['shop_ids']),\n });\n }\n\n /**\n * Industry analytics across merchants: the merchant surface's\n * `analytics.industries`, with `merchant_id` optional (omitted, every\n * merchant the caller may read). Contributors are merchants rather than\n * shops, the `unmapped` group gathers every merchant-defined industry, and\n * `merchants` and `new_merchants` are filled. Needs the industry analytics\n * staff group. `GET /admin-portal/analytics/industries`\n */\n async analyticsIndustries(params: IndustryAnalyticsRequest = {}): Promise<IndustryAnalytics> {\n return this.request('GET', '/admin-portal/analytics/industries', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Device analytics over the canonical client-context observation per\n * payment, rooted at all merchants and drillable via `merchant_id` /\n * `project_id` / `shop_id` like `analyticsScope`. Answers 200 with\n * `enabled: false` when the client-context optimisation-use switch is off.\n */\n async analyticsDevices(params?: ClientAnalyticsRequest): Promise<DevicesAnalyticsResponse> {\n return this.request('GET', '/admin-portal/analytics/devices', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * Geo analytics over the canonical client-context observation per payment,\n * rooted at all merchants. `mode` selects the location claim (`ip` default,\n * `billing`).\n */\n async analyticsGeo(params?: ClientAnalyticsRequest): Promise<GeoAnalyticsResponse> {\n return this.request('GET', '/admin-portal/analytics/geo', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * The recent payments behind one clicked geo target (map country/city or\n * local-hours heatmap cell), rooted at all merchants. Capped at 50 rows,\n * newest first, with the full match count alongside.\n */\n async analyticsGeoTransactions(params: GeoDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/admin-portal/analytics/geo/transactions', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * The recent payments behind one clicked device target (browser/platform\n * family, device-model label or device class), rooted at all merchants.\n * 50 rows per page (`offset` for the next page), newest first.\n */\n async analyticsDeviceTransactions(params: DeviceDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/admin-portal/analytics/devices/transactions', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * The payments behind one clicked element of the admin payments dashboard\n * (processor / method slice, outcome segment, series bucket or breakdown\n * row), rooted at all merchants. Same contract as the merchant surface's\n * `analytics.scopeTransactions`. `GET /admin-portal/analytics/scope/transactions`\n */\n async analyticsScopeTransactions(params: ScopeDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/admin-portal/analytics/scope/transactions', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * Subscription analytics over `subscription` and `invoice`, rooted at all\n * merchants and drillable via `merchant_id` / `project_id` / `shop_id` like\n * `analyticsScope`. The `children` block at the root is the merchant\n * breakdown — there is no separate endpoint for it.\n *\n * Half the figures are **stocks** (a snapshot at the window's end, not a sum\n * over it), so `est_monthly_volume_usd` and `active` can match across a\n * 7-day and a 30-day window while `billed_volume_usd` does not. Day\n * granularity only.\n */\n async analyticsSubscriptions(\n params?: SubscriptionAnalyticsRequest,\n ): Promise<SubscriptionAnalyticsResponse> {\n return this.request('GET', '/admin-portal/analytics/subscriptions', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * The billing cycles behind one clicked element of the admin subscription\n * dashboard: an invoice outcome, a processor slice on either axis, a plan\n * row, a subscription status, a movement component, a series bucket or a\n * breakdown row. 50 rows per page (`offset` for the next), newest first,\n * with the full match count alongside.\n *\n * A cycle that never reached a payment is listed too — that is what \"still\n * unpaid\" means — and carries its invoice id as `payment_id` with\n * `invoice_id` set to the same value.\n */\n async analyticsSubscriptionsList(params: SubscriptionDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/admin-portal/analytics/subscriptions/list', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * How accurate buyer risk scores were in a period, against what later\n * happened to the payments: fraud, clean, pending and never charged, how\n * well the flagged bands caught the fraud, each band and signal, and the\n * buyers the score stopped who later paid with no fraud. Stores nothing.\n * `GET /admin-portal/buyer-risk/accuracy`\n */\n async buyerRiskAccuracy(params: BuyerRiskAccuracyQuery = {}): Promise<BuyerRiskAccuracyReport> {\n return this.request('GET', '/admin-portal/buyer-risk/accuracy', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The payments behind one number of {@link AdminPortal.buyerRiskAccuracy}:\n * the payments a signal fired on, those in a band, a flagged × outcome cell,\n * the interventions or the false declines. Paged, sorted and searchable\n * like the analytics drills, and answered in the same shape, with each\n * row's band, score, outcome and applied action.\n * `GET /admin-portal/buyer-risk/accuracy/payments`\n */\n async buyerRiskAccuracyPayments(\n params: BuyerRiskAccuracyPaymentsRequest = {},\n ): Promise<DrillResponse> {\n return this.request('GET', '/admin-portal/buyer-risk/accuracy/payments', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Platform billing dashboard: total balance across all ledger accounts (+\n * the net change), top-ups, fees collected, and the day-by-day ledger flow.\n * All amounts are in USD minor units.\n */\n async ledgerAnalytics(\n params?: AdminLedgerAnalyticsRequest,\n ): Promise<AdminLedgerAnalyticsResponse> {\n return this.request('GET', '/admin-portal/ledger-analytics', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Billing profiles no operator listing can reach, and the accounts that may\n * have taken one over.\n *\n * Deleting a merchant account leaves its billing profile — with its\n * balance, its Stripe customer and its saved card — behind, and the\n * Merchants listing enumerates merchant accounts, so such a profile is\n * absent from every operator surface rather than flagged on one. This reads\n * from the billing side instead, so it finds them.\n *\n * Both lists come back complete rather than paged: the healthy answer is two\n * empty arrays, and a truncated answer to *\"is the set empty\"* would read as\n * a clean bill of health.\n *\n * `adoption_candidates` are candidates, not findings — confirm a row against\n * the audit log before acting on it.\n */\n async orphanedBillingProfiles(): Promise<AdminOrphanedBillingProfilesResponse> {\n return this.request('GET', '/admin-portal/billing/orphaned-profiles');\n }\n\n /**\n * Retrieve a merchant account via the admin portal. Unlike\n * `merchantAccounts.retrieve`, this route accepts an admin JWT (or admin API\n * key) and does not require the JWT to be scoped to the target merchant.\n */\n async retrieveAccount(merchantId: string): Promise<MerchantAccountResponse> {\n return this.request('GET', `/admin-portal/accounts/${encodeURIComponent(merchantId)}`);\n }\n\n /**\n * Update a merchant account via the admin portal. Authenticated via admin JWT\n * or admin API key.\n */\n async updateAccount(\n merchantId: string,\n params: MerchantAccountUpdateRequest,\n ): Promise<MerchantAccountResponse> {\n return this.request('POST', `/admin-portal/accounts/${encodeURIComponent(merchantId)}`, {\n body: params,\n });\n }\n\n /**\n * Delete a merchant account via the admin portal. Authenticated via admin JWT\n * or admin API key.\n */\n async deleteAccount(merchantId: string): Promise<MerchantAccountResponse> {\n return this.request('DELETE', `/admin-portal/accounts/${encodeURIComponent(merchantId)}`);\n }\n\n /**\n * Create a brand-new user attached to the given merchant. The user is\n * marked `is_verified = true` so the admin can hand off credentials\n * immediately — no email round-trip is sent.\n */\n async createUserForMerchant(\n customerId: string,\n body: AdminCreateUserForMerchantRequest,\n ): Promise<AdminUserResponse> {\n return this.request('POST', `/admin-portal/customers/${encodeURIComponent(customerId)}/users`, {\n body,\n });\n }\n\n /**\n * Edit a user record. Any subset of fields may be supplied. `role_id`\n * requires `merchant_id`. `password` triggers a password reset (validated\n * against signup policy + JWT blacklist). `reset_2fa` clears TOTP state\n * so the user re-enrolls on next login. `is_active` supports both\n * directions: false soft-disables, true reactivates a soft-disabled user.\n *\n * Throws a `400` with `code === 'UR_66'` when the change would leave a\n * merchant with no administrator — `is_active: false` or `is_verified:\n * false` on, or a `role_id` demoting, the only active user whose role can\n * manage that merchant's users. Nothing is written. `error.data` carries a\n * {@link LastAdministratorRefusal} naming the merchant and which change was\n * refused; render that rather than the generic message.\n */\n async updateUser(userId: string, body: AdminUpdateUserRequest): Promise<AdminUserResponse> {\n return this.request('PATCH', `/admin-portal/users/${encodeURIComponent(userId)}`, { body });\n }\n\n /**\n * One user's account and its health: whether it is active and verified,\n * whether two-factor authentication is set up, when the password last\n * changed, the linked single sign-on providers, the newest successful and\n * failed sign-in, when the user was last seen and how many sessions are\n * live. Lists every membership the user holds in this tenant, invitations\n * and expired ones included, with its role and status. Never returns a\n * credential. `GET /admin-portal/users/{user_id}`\n *\n * Needs an internal role holding `ProfileUserRead`, or the admin API key.\n * A user with no membership in this tenant is a `404`.\n */\n async getUser(userId: string): Promise<AdminUserDetailResponse> {\n return this.request('GET', `/admin-portal/users/${encodeURIComponent(userId)}`);\n }\n\n /**\n * One user's sign-in history (successes and failures, method, address,\n * location and device), filtered, sorted and paged as\n * `users.listLoginActivity` is. Same access and `404` rule as `getUser`.\n * `GET /admin-portal/users/{user_id}/login-activity`\n */\n async listUserLoginActivity(\n userId: string,\n params?: LoginHistoryParams,\n ): Promise<LoginHistoryResponse> {\n const path = `/admin-portal/users/${encodeURIComponent(userId)}/login-activity`;\n if (params === undefined) {\n return this.request('GET', path);\n }\n return this.request('GET', path, {\n query: csvQuery(params, ['event_type', 'auth_method']),\n });\n }\n\n /**\n * One user's live sessions: neither signed out nor expired. `is_current`\n * marks the caller's own session only, when the caller looks at themselves.\n * Same access and `404` rule as `getUser`.\n * `GET /admin-portal/users/{user_id}/sessions`\n */\n async listUserSessions(userId: string): Promise<UserSessionListResponse> {\n return this.request('GET', `/admin-portal/users/${encodeURIComponent(userId)}/sessions`);\n }\n\n /**\n * End one session of the user: its token is refused on its next request.\n * Needs `UsersManage`. Recorded in the audit log. A session that has\n * already ended answers `revoked: false` and records nothing. A session of\n * another user is a `404`, as an unknown id is.\n * `POST /admin-portal/users/{user_id}/sessions/{session_id}/revoke`\n */\n async revokeUserSession(userId: string, sessionId: string): Promise<UserSessionRevokeResponse> {\n return this.request(\n 'POST',\n `/admin-portal/users/${encodeURIComponent(userId)}/sessions/${encodeURIComponent(sessionId)}/revoke`,\n );\n }\n\n /**\n * Sign the user out of every session and token, wherever they signed in.\n * Needs `UsersManage`. The account stays active and the user can sign in\n * again at once. Answers how many live sessions were ended. Recorded in the\n * audit log. `POST /admin-portal/users/{user_id}/sessions/revoke-all`\n */\n async revokeAllUserSessions(userId: string): Promise<AdminRevokeUserSessionsResponse> {\n return this.request(\n 'POST',\n `/admin-portal/users/${encodeURIComponent(userId)}/sessions/revoke-all`,\n );\n }\n\n /**\n * Which checkout payment methods a member of `merchantId` may change.\n * `GET /admin-portal/accounts/{merchant_id}/members/{user_id}/method-access`\n *\n * Any internal role may read it; `can_edit` is `false` for one without\n * `UsersManage`. A user holding no role in the merchant is a 404 `UR_68`.\n */\n async getMemberMethodAccess(\n merchantId: string,\n userId: string,\n ): Promise<MemberMethodAccessResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/members/${encodeURIComponent(userId)}/method-access`,\n );\n }\n\n /**\n * Limit a member of `merchantId` to some checkout payment methods, or give\n * every method back. Needs `UsersManage`. Recorded in the merchant's audit\n * log. `PUT /admin-portal/accounts/{merchant_id}/members/{user_id}/method-access`\n */\n async updateMemberMethodAccess(\n merchantId: string,\n userId: string,\n body: UpdateMemberMethodAccessRequest,\n ): Promise<MemberMethodAccessResponse> {\n return this.request(\n 'PUT',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/members/${encodeURIComponent(userId)}/method-access`,\n { body },\n );\n }\n\n /**\n * A member of `merchantId`'s permission overrides.\n * `GET /admin-portal/accounts/{merchant_id}/members/{user_id}/permission-overrides`\n *\n * Any internal role may read them; `can_edit` is `false` for one without\n * `UsersManage`. A user holding no role in the merchant is a 404 `UR_68`.\n */\n async getMemberPermissionOverrides(\n merchantId: string,\n userId: string,\n ): Promise<MemberPermissionOverridesResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/members/${encodeURIComponent(userId)}/permission-overrides`,\n );\n }\n\n /**\n * Replace a member of `merchantId`'s permission overrides. Needs\n * `UsersManage`; an operator is not limited by their own access. Recorded\n * in the merchant's audit log and applied to the member's next request.\n * `PUT /admin-portal/accounts/{merchant_id}/members/{user_id}/permission-overrides`\n */\n async updateMemberPermissionOverrides(\n merchantId: string,\n userId: string,\n body: UpdateMemberPermissionOverridesRequest,\n ): Promise<MemberPermissionOverridesResponse> {\n return this.request(\n 'PUT',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/members/${encodeURIComponent(userId)}/permission-overrides`,\n { body },\n );\n }\n\n /**\n * The caller's own merchant access: every merchant, or only the merchants\n * listed. Every employee reads their own.\n * `GET /admin-portal/staff/me/merchant-access`\n */\n async getOwnStaffMerchantAccess(): Promise<StaffMerchantAccessResponse> {\n return this.request('GET', '/admin-portal/staff/me/merchant-access');\n }\n\n /**\n * Which merchants one employee may reach in the admin dashboard and open\n * through the support switch. `can_edit` is `false` without user\n * management and for the caller's own access. A user who is not an\n * employee is a 404 `UR_73`.\n * `GET /admin-portal/staff/{user_id}/merchant-access`\n */\n async getStaffMerchantAccess(userId: string): Promise<StaffMerchantAccessResponse> {\n return this.request('GET', `/admin-portal/staff/${encodeURIComponent(userId)}/merchant-access`);\n }\n\n /**\n * Let one employee reach every merchant or only the merchants listed. Needs\n * `UsersManage`; nobody changes their own. Recorded in the audit log and\n * applied to the employee's next request, an open support session included.\n * Refusals are `UR_73` with a {@link StaffAccessRefusal}.\n * `PUT /admin-portal/staff/{user_id}/merchant-access`\n */\n async updateStaffMerchantAccess(\n userId: string,\n body: StaffMerchantAccessUpdateRequest,\n ): Promise<StaffMerchantAccessResponse> {\n return this.request(\n 'PUT',\n `/admin-portal/staff/${encodeURIComponent(userId)}/merchant-access`,\n { body },\n );\n }\n\n /**\n * Sign in as another staff member, to see and do what they may. Only an\n * administrator may, from their own session, and only as an active staff\n * member who is not an administrator. Answers the staff member's session\n * token for a tab of its own: no cookie is set and the caller's own session\n * stays as it is. The session ends one sign-in lifetime later, when the\n * administrator signs out in that tab, or when either person no longer\n * qualifies. Every change made in it is recorded under the administrator.\n *\n * Needs `UsersManage`, else a `403`. A refusal is a `400` `UR_33`: the\n * caller is no administrator, names themselves, an administrator or no\n * active staff member, or calls from a session that is not their own. The\n * admin API key signs in as nobody and is refused the same way.\n * `POST /admin-portal/staff/{user_id}/sign-in-as`\n */\n async signInAsStaffMember(userId: string): Promise<TokenResponse> {\n return this.request('POST', `/admin-portal/staff/${encodeURIComponent(userId)}/sign-in-as`);\n }\n\n /**\n * What holders of each staff role may do inside a merchant's dashboard\n * during a support session.\n * `GET /admin-portal/staff-roles/support-access`\n */\n async listStaffSupportAccess(): Promise<StaffRoleSupportAccessList> {\n return this.request('GET', '/admin-portal/staff-roles/support-access');\n }\n\n /**\n * Cap what holders of one staff role may do inside a merchant's dashboard,\n * or put the role back to the support switch's own decision. Needs\n * `UsersManage`. Recorded in the audit log and applied to open support\n * sessions from their next request.\n * `PUT /admin-portal/staff-roles/{role_id}/support-access`\n */\n async updateStaffSupportAccess(\n roleId: string,\n body: StaffRoleSupportAccessUpdateRequest,\n ): Promise<StaffRoleSupportAccess> {\n return this.request(\n 'PUT',\n `/admin-portal/staff-roles/${encodeURIComponent(roleId)}/support-access`,\n { body },\n );\n }\n\n /**\n * Soft-delete a user globally: deactivates the row, blacklists existing\n * JWTs, and wipes credentials. Distinct from `deleteUserRole`, which\n * removes a single role binding while leaving the user signed-in elsewhere.\n *\n * Throws the same `UR_66` as {@link updateUser} when the user is the last\n * administrator of any merchant they belong to, with `route: 'delete'`.\n */\n async deleteUser(userId: string): Promise<void> {\n return this.request('DELETE', `/admin-portal/users/${encodeURIComponent(userId)}`);\n }\n\n /**\n * Set a target merchant's shop iframe-allowed origins. Internal-admin\n * route — accepts an admin JWT or admin API key without requiring the\n * caller to be scoped to the target merchant. Pass `null` (or an empty\n * array) to clear the allowlist back to same-origin only.\n *\n * Server validates each origin: full origin (scheme + host[:port]),\n * no path/query/fragment, no wildcards.\n *\n * `POST /admin-portal/accounts/{merchantId}/business-profile/{profileId}/iframe-origins`\n */\n async updateShopIframeOrigins(\n merchantId: string,\n profileId: string,\n origins: string[] | null,\n ): Promise<ProfileResponse> {\n return this.request(\n 'POST',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/business-profile/${encodeURIComponent(profileId)}/iframe-origins`,\n { body: { iframe_allowed_origins: origins } },\n );\n }\n\n /**\n * Set (or clear) a target merchant shop's home country — the geo\n * dashboard's cross-border baseline. Internal-admin route. Pass `null` to\n * clear back to \"international / no home country\" (the default).\n *\n * `POST /admin-portal/accounts/{merchantId}/business-profile/{profileId}/home-country`\n */\n async updateShopHomeCountry(\n merchantId: string,\n profileId: string,\n homeCountry: string | null,\n ): Promise<ProfileResponse> {\n return this.request(\n 'POST',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/business-profile/${encodeURIComponent(profileId)}/home-country`,\n { body: { home_country: homeCountry } },\n );\n }\n\n /**\n * One merchant's sell-to restrictions — the merchant-wide policy and every\n * shop's effective policy. Read-only; staff change a policy through the\n * merchant routes.\n *\n * `GET /admin-portal/accounts/{merchantId}/sell-to-restrictions`\n */\n async getSellToRestrictions(merchantId: string): Promise<SellToRestrictionsResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/sell-to-restrictions`,\n );\n }\n\n /**\n * Soft-delete a transaction of ANY merchant. Only payments whose status\n * is in the admin delete policy can be deleted; the action is audited.\n *\n * `DELETE /admin-portal/transactions/{paymentId}`\n */\n async deleteTransaction(paymentId: string): Promise<PaymentsDeleteResponse> {\n return this.request('DELETE', `/admin-portal/transactions/${encodeURIComponent(paymentId)}`);\n }\n\n /**\n * Recover (undelete) a soft-deleted transaction. Audited.\n *\n * `POST /admin-portal/transactions/{paymentId}/recover`\n */\n async recoverTransaction(paymentId: string): Promise<PaymentsDeleteResponse> {\n return this.request(\n 'POST',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/recover`,\n );\n }\n\n /**\n * Mark a transaction of ANY merchant as an integration test, or remove the\n * mark. Recorded in the payment's status history as an operator's change.\n *\n * `POST /admin-portal/transactions/{paymentId}/integration-test`\n */\n async setTransactionIntegrationTest(\n paymentId: string,\n params: PaymentIntegrationTestRequest,\n ): Promise<PaymentIntegrationTestResponse> {\n return this.request(\n 'POST',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/integration-test`,\n { body: params },\n );\n }\n\n /**\n * Client/device observations captured while the buyer interacted with a\n * transaction of ANY merchant, oldest first.\n *\n * `GET /admin-portal/transactions/{paymentId}/client-context`\n */\n async getTransactionClientContext(paymentId: string): Promise<PaymentClientContextListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/client-context`,\n );\n }\n\n /**\n * What the rail charged for one attempt of a transaction of ANY merchant,\n * off the attempt's settlement line. `line_recorded: false` means\n * no line exists for the attempt; an absent amount is \"no figure\", never\n * zero.\n *\n * `GET /admin-portal/transactions/{paymentId}/attempts/{attemptId}/processor-cost`\n */\n async getTransactionAttemptProcessorCost(\n paymentId: string,\n attemptId: string,\n ): Promise<AdminAttemptProcessorCost> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/attempts/${encodeURIComponent(attemptId)}/processor-cost`,\n );\n }\n\n /** Read or refresh signed processor fees for a payment. Internal admin access required. */\n async getTransactionProcessorCostEvents(\n paymentId: string,\n params: AdminProcessorCostEventsParams = {},\n ): Promise<ProcessorCostEventsResponse> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/processor-cost-events`,\n {\n query: {\n test_mode: params.test_mode,\n year: params.year,\n month: params.month,\n limit: params.limit,\n offset: params.offset,\n force_sync: params.force_sync,\n },\n },\n );\n }\n\n /**\n * DeloPay's own processor cost schedules — our acquirer contract, which\n * prices every merchant that has no schedule of its own, except an account\n * a shop owner brought (that rate is in their contract, not ours, and lives\n * on the merchant surface).\n *\n * Never returned on the merchant surface: these rates are DeloPay's cost\n * base. The rows carry no merchant.\n *\n * `GET /admin-portal/processor-costs`\n */\n async listProcessorCostSchedules(): Promise<ProcessorCostScheduleResponse[]> {\n return this.request('GET', '/admin-portal/processor-costs');\n }\n\n /**\n * Record a DeloPay-wide cost schedule — what a rail charges DeloPay, for\n * rails that report no fee on the payment itself. A cost derived from one\n * of these is marked `estimated` on the settlement line, never `reported`.\n *\n * `POST /admin-portal/processor-costs`\n */\n async createProcessorCostSchedule(\n params: CreateProcessorCostScheduleRequest,\n ): Promise<ProcessorCostScheduleResponse> {\n return this.request('POST', '/admin-portal/processor-costs', { body: params });\n }\n\n /**\n * Record several DeloPay-wide schedules at once, all or none — copy a price\n * list across methods. 1 to 200 entries; an invalid entry is answered `422`\n * naming its index and nothing is stored. The answer lists them in request\n * order.\n *\n * `POST /admin-portal/processor-costs/bulk`\n */\n async bulkCreateProcessorCostSchedules(\n params: BulkCreateProcessorCostSchedulesRequest,\n ): Promise<ProcessorCostScheduleResponse[]> {\n return this.request('POST', '/admin-portal/processor-costs/bulk', { body: params });\n }\n\n /**\n * Close a window, deactivate a DeloPay-wide schedule or annotate it. The\n * rate itself is not editable: it priced transactions that already\n * happened, and a new rate is a new row.\n *\n * `PUT /admin-portal/processor-costs/{scheduleId}`\n */\n async updateProcessorCostSchedule(\n scheduleId: string,\n params: UpdateProcessorCostScheduleRequest,\n ): Promise<ProcessorCostScheduleResponse> {\n return this.request('PUT', `/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}`, {\n body: params,\n });\n }\n\n /**\n * Close a DeloPay-wide schedule at `effective_from` and open its successor\n * with the same scope and the same end, in one step: no transaction is\n * priced by both rates, and none falls between them. Answers the successor.\n *\n * `POST /admin-portal/processor-costs/{scheduleId}/replace`\n */\n async replaceProcessorCostSchedule(\n scheduleId: string,\n params: ReplaceProcessorCostScheduleRequest,\n ): Promise<ProcessorCostScheduleResponse> {\n return this.request(\n 'POST',\n `/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}/replace`,\n { body: params },\n );\n }\n\n /**\n * Delete a DeloPay-wide schedule. Restates nothing: every figure it derived\n * is already stamped on the settlement lines it priced.\n *\n * `DELETE /admin-portal/processor-costs/{scheduleId}`\n */\n async deleteProcessorCostSchedule(scheduleId: string): Promise<void> {\n return this.request(\n 'DELETE',\n `/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}`,\n );\n }\n\n /**\n * The platform VAT rate table, every row past and future. With `on`, only\n * the row in force on that date for each country and category.\n *\n * `GET /admin-portal/vat-rates`\n */\n async listVatRates(params?: VatRateListParams): Promise<VatRateListResponse> {\n return this.request('GET', '/admin-portal/vat-rates', {\n query: { country: params?.country, on: params?.on },\n });\n }\n\n /**\n * Add a rate for a country and category from `valid_from` on. A rate change\n * is a new row with a later `valid_from`; the earlier row keeps pricing the\n * days before it. A second row for the same country, category and date is\n * refused with `IR_38`.\n *\n * `POST /admin-portal/vat-rates`\n */\n async createVatRate(params: CreateVatRateRequest): Promise<VatRateResponse> {\n return this.request('POST', '/admin-portal/vat-rates', { body: params });\n }\n\n /**\n * Change a rate's label, or the rate of a row that has not started yet. A\n * row in force (`valid_from` on or before today, UTC) keeps its rate:\n * payments were determined on it, and a new `rate_bp` is refused with\n * `DE_29` (409).\n *\n * `PUT /admin-portal/vat-rates/{rateId}`\n */\n async updateVatRate(rateId: string, params: UpdateVatRateRequest): Promise<VatRateResponse> {\n return this.request('PUT', `/admin-portal/vat-rates/${encodeURIComponent(rateId)}`, {\n body: params,\n });\n }\n\n /**\n * Delete a rate that has not started yet. A row in force is refused with\n * `DE_29` (409); add a row with a later `valid_from` instead.\n *\n * `DELETE /admin-portal/vat-rates/{rateId}`\n */\n async deleteVatRate(rateId: string): Promise<VatRateDeleteResponse> {\n return this.request('DELETE', `/admin-portal/vat-rates/${encodeURIComponent(rateId)}`);\n }\n\n /**\n * Release a shop's consent requirement, as DeloPay staff. The reason is\n * required and recorded first; `publish_reason` shows it to both parties in\n * the consent history.\n *\n * `POST /admin-portal/accounts/{merchantId}/settlement/shops/terms/release`\n */\n async releaseShopTermConsent(\n merchantId: string,\n params: ShopTermConsentReleaseRequest,\n ): Promise<ShopTermConsentResponse> {\n return this.request(\n 'POST',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/shops/terms/release`,\n { body: params },\n );\n }\n /**\n * A merchant's shop-term proposals, as staff read them. Same shapes as\n * `settlement.listShopTermProposals`. Reserve changes are left out while the\n * merchant does not share its reserves with staff.\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/shops/terms/proposals`\n */\n async listShopTermProposals(\n merchantId: string,\n params: ShopTermProposalListRequest = {},\n ): Promise<ShopTermProposalListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/shops/terms/proposals`,\n { query: { profile_id: params.profile_id, status: params.status, limit: params.limit } },\n );\n }\n\n /**\n * A merchant's shop consent record, newest first, as staff read it. Same\n * shapes as `settlement.listShopTermConsentEvents`. While the merchant does\n * not share its reserves with staff, a reserve change keeps its place\n * without `change` and `stated_reason`.\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/shops/terms/consent-events`\n */\n async listShopTermConsentEvents(\n merchantId: string,\n params: ShopTermConsentEventListRequest = {},\n ): Promise<ShopTermConsentEventListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/shops/terms/consent-events`,\n { query: { profile_id: params.profile_id, limit: params.limit, cursor: params.cursor } },\n );\n }\n\n /**\n * The USD transfers recorded in advance against one shop's statement\n * period. Same shapes as the merchant-facing `settlement.listAdvances`,\n * admin-authenticated and read-only: recording one stays a host action.\n * Name the period by `period_start` (as {@link listSettlementPeriods}\n * returns it), or by `year` and `month`, not both.\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/advances`\n */\n async listSettlementAdvances(\n merchantId: string,\n params: SettlementAdvanceListRequest,\n ): Promise<SettlementAdvanceListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/advances`,\n {\n query: {\n profile_id: params.profile_id,\n year: params.year,\n month: params.month,\n period_start: params.period_start,\n test_mode: params.test_mode,\n },\n },\n );\n }\n\n /**\n * One shop's statement periods, newest first. Same shape as the\n * merchant-facing `settlement.listPeriods`, admin-authenticated.\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/periods`\n */\n async listSettlementPeriods(\n merchantId: string,\n params: SettlementPeriodListParams,\n ): Promise<SettlementPeriodListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/periods`,\n { query: { profile_id: params.profile_id } },\n );\n }\n\n /**\n * A merchant's settlement statements. Same shapes as the merchant-facing\n * `settlement` resource, admin-authenticated.\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/statements`\n */\n async listSettlementStatements(\n merchantId: string,\n params: SettlementStatementListParams,\n ): Promise<SettlementStatementListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/statements`,\n { query: statementListQuery(params) },\n );\n }\n\n /**\n * One settlement statement with its breakdown.\n * `GET /admin-portal/accounts/{merchantId}/settlement/statements/{statementId}`\n */\n async getSettlementStatement(\n merchantId: string,\n statementId: string,\n ): Promise<FeeStatementDetail> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/statements/${encodeURIComponent(statementId)}`,\n );\n }\n\n /**\n * Export a settlement statement as PDF. Returns the raw bytes as a `Blob`\n * with the same auth and error handling as every other call. `options`\n * takes a signal, a timeout and an `onDownloadProgress` listener for the\n * download's bytes (the PDF carries a `Content-Length`, so `total` is set).\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/statements/{statementId}/pdf`\n */\n async downloadSettlementStatementPdf(\n merchantId: string,\n statementId: string,\n params?: StatementPdfParams,\n options?: RequestExtras,\n ): Promise<Blob> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/statements/${encodeURIComponent(statementId)}/pdf`,\n {\n query: {\n currency: params?.currency,\n include_transactions: params?.include_transactions,\n format: params?.format,\n },\n responseType: 'blob',\n ...options,\n },\n );\n }\n\n /**\n * A merchant's per-shop settlement overview.\n * `GET /admin-portal/accounts/{merchantId}/settlement/overview`\n */\n async settlementOverview(\n merchantId: string,\n params: SettlementOverviewParams,\n ): Promise<SettlementOverviewResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/overview`,\n { query: { test_mode: params.test_mode } },\n );\n }\n\n /**\n * Check an import of a merchant's past settlement periods and opening\n * balances: the same checks as the import, nothing written.\n *\n * `POST /admin-portal/accounts/{merchantId}/settlement/native/imports/preview`\n */\n async previewNativeSettlementImport(\n merchantId: string,\n params: NativeSettlementImportRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementImportDetail> {\n return this.request(\n 'POST',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/native/imports/preview`,\n { body: params, ...options },\n );\n }\n\n /**\n * Import a merchant's past settlement periods and opening balances, as the\n * merchant can. The same idempotency key with the same request answers the\n * import already made.\n *\n * `POST /admin-portal/accounts/{merchantId}/settlement/native/imports`\n */\n async createNativeSettlementImport(\n merchantId: string,\n params: NativeSettlementImportRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementImportDetail> {\n return this.request(\n 'POST',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/native/imports`,\n { body: params, ...options, bodyIdempotencyKey: params.idempotency_key },\n );\n }\n\n /**\n * A merchant's settlement imports of one mode, newest first. Read only.\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/native/imports`\n */\n async listNativeSettlementImports(\n merchantId: string,\n params: NativeSettlementImportListParams,\n options?: RequestExtras,\n ): Promise<NativeSettlementImportList> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/native/imports`,\n {\n query: { test_mode: params.test_mode, limit: params.limit, offset: params.offset },\n ...options,\n },\n );\n }\n\n /**\n * One settlement import of a merchant and what it holds. Read only.\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/native/imports/{importId}`\n */\n async retrieveNativeSettlementImport(\n merchantId: string,\n importId: string,\n options?: RequestExtras,\n ): Promise<NativeSettlementImportDetail> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/native/imports/${encodeURIComponent(importId)}`,\n { ...options },\n );\n }\n\n /**\n * Undo a merchant's settlement import as a whole, while no stored report\n * built on it (otherwise 412).\n *\n * `POST /admin-portal/accounts/{merchantId}/settlement/native/imports/{importId}/undo`\n */\n async undoNativeSettlementImport(\n merchantId: string,\n importId: string,\n options?: RequestExtras,\n ): Promise<NativeSettlementImportDetail> {\n return this.request(\n 'POST',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/native/imports/${encodeURIComponent(importId)}/undo`,\n { ...options },\n );\n }\n\n /**\n * Record a late entry of a merchant's settled period, as the merchant can.\n * The next report of the shop closes with it and moves only the amount\n * payable.\n *\n * `POST /admin-portal/accounts/{merchantId}/settlement/native/late-entries`\n */\n async createNativeSettlementLateEntry(\n merchantId: string,\n params: NativeSettlementLateEntryCreateRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementLateEntry> {\n return this.request(\n 'POST',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/native/late-entries`,\n // Never retried: the API does not deduplicate late entries.\n { body: params, ...options, bodyIdempotencyKey: null },\n );\n }\n\n /**\n * A merchant's late entries of one mode, newest first. Read only.\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/native/late-entries`\n */\n async listNativeSettlementLateEntries(\n merchantId: string,\n params: NativeSettlementLateEntryListParams,\n options?: RequestExtras,\n ): Promise<NativeSettlementLateEntryList> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/native/late-entries`,\n {\n query: {\n test_mode: params.test_mode,\n profile_id: params.profile_id,\n open: params.open,\n limit: params.limit,\n offset: params.offset,\n },\n ...options,\n },\n );\n }\n\n /**\n * Remove a merchant's late entry no report took yet (otherwise 412).\n *\n * `DELETE /admin-portal/accounts/{merchantId}/settlement/native/late-entries/{entryId}`\n */\n async deleteNativeSettlementLateEntry(\n merchantId: string,\n entryId: string,\n options?: RequestExtras,\n ): Promise<NativeSettlementLateEntry> {\n return this.request(\n 'DELETE',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/native/late-entries/${encodeURIComponent(entryId)}`,\n { ...options },\n );\n }\n\n /**\n * A merchant's period reports of one shop, currency and mode, the newest\n * first. Read only. `sort_by` takes `period` here; another value is\n * refused.\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/native/reports`\n */\n async listNativeSettlementReports(\n merchantId: string,\n params: NativeReportViewListRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementReportListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/native/reports`,\n { query: nativeListQuery(params), ...options },\n );\n }\n\n /**\n * One period report of a merchant, with the figures the merchant reads.\n * While the merchant does not share its reserves with staff, a reserve line\n * keeps its amount but carries no held or released amounts. Read only.\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/native/reports/{reportId}`\n */\n async retrieveNativeSettlementReport(\n merchantId: string,\n reportId: string,\n options?: RequestExtras,\n ): Promise<NativeSettlementReport> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/native/reports/${encodeURIComponent(reportId)}`,\n { ...options },\n );\n }\n\n /**\n * A merchant's period report as CSV, built from the same report staff\n * reads.\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/native/reports/{reportId}/export`\n */\n async downloadNativeSettlementReportCsv(\n merchantId: string,\n reportId: string,\n options?: RequestExtras,\n ): Promise<Blob> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/native/reports/${encodeURIComponent(reportId)}/export`,\n { ...options, headers: exportHeaders(options, 'text/csv'), responseType: 'blob' },\n );\n }\n\n /**\n * A merchant's period report as its shareable JSON export, the same\n * document the merchant exports. It leaves out the host's account-level\n * costs and the platform's own fee even where reading the report returns\n * them; read the report for the full figures.\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/native/reports/{reportId}/export`\n */\n async exportNativeSettlementReportJson(\n merchantId: string,\n reportId: string,\n options?: RequestExtras,\n ): Promise<NativeSettlementReportExport> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/native/reports/${encodeURIComponent(reportId)}/export`,\n { ...options, headers: exportHeaders(options, 'application/json') },\n );\n }\n\n /**\n * A merchant's period report as PDF, rendered from the same report staff\n * reads.\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/native/reports/{reportId}/pdf`\n */\n async downloadNativeSettlementReportPdf(\n merchantId: string,\n reportId: string,\n params?: NativeSettlementPdfRequest,\n options?: RequestExtras,\n ): Promise<Blob> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/native/reports/${encodeURIComponent(reportId)}/pdf`,\n {\n query: { include_transactions: params?.include_transactions },\n responseType: 'blob',\n ...options,\n },\n );\n }\n\n /**\n * The transfers a merchant recorded against its period reports of one\n * shop, currency and mode, the earliest value date first. Read only.\n * `sort_by` takes `value_date` or `amount` here; another value is refused.\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/native/payouts`\n */\n async listNativeSettlementPayouts(\n merchantId: string,\n params: NativeSettlementPayoutListRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementPayoutListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/native/payouts`,\n { query: nativeListQuery(params), ...options },\n );\n }\n\n /**\n * A merchant's stored reserves, read only. Answers 403 when the merchant\n * has not shared its reserves with staff, never an empty list.\n * `GET /admin-portal/accounts/{merchantId}/settlement/reserves`\n */\n async settlementReserves(merchantId: string): Promise<NativeReserveListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/reserves`,\n );\n }\n\n /**\n * One stored reserve of a merchant in one currency and mode: balance, open\n * held amounts and every release. Read only; 403 when the merchant has not\n * shared its reserves with staff.\n * `GET /admin-portal/accounts/{merchantId}/settlement/reserves/{reserveId}/overview`\n */\n async settlementReserveOverview(\n merchantId: string,\n reserveId: string,\n params: NativeReserveOverviewRequest,\n ): Promise<NativeReserveOverview> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/reserves/${encodeURIComponent(reserveId)}/overview`,\n { query: { currency: params.currency, test_mode: params.test_mode } },\n );\n }\n\n /**\n * A merchant's live current-period settlement rollup.\n * `GET /admin-portal/accounts/{merchantId}/settlement/current`\n */\n async settlementCurrent(\n merchantId: string,\n params: SettlementCurrentParams,\n ): Promise<SettlementCurrentResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/current`,\n { query: { test_mode: params.test_mode, profile_id: params.profile_id } },\n );\n }\n\n /**\n * Earned, received, not-received, returned and unmatched money per provider\n * account for one merchant period, with reported bank payouts listed.\n * Read only.\n * `GET /admin-portal/accounts/{merchantId}/settlement/provider-payouts`\n */\n async settlementProviderPayouts(\n merchantId: string,\n params?: ProviderPayoutsRequest,\n ): Promise<ProviderPayoutsResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/provider-payouts`,\n {\n query: {\n profile_id: params?.profile_id,\n currency: params?.currency,\n test_mode: params?.test_mode,\n from: params?.from,\n to: params?.to,\n },\n },\n );\n }\n\n /**\n * A merchant's vault state: the attach entitlement, and the vault\n * configuration of every shop.\n *\n * `GET /admin-portal/accounts/{merchantId}/vault`\n */\n async getVaultState(merchantId: string): Promise<AdminVaultStateResponse> {\n return this.request('GET', `/admin-portal/accounts/${encodeURIComponent(merchantId)}/vault`);\n }\n\n /**\n * Attach a vault to one of a merchant's shops — creates the vault\n * connector account and points the profile at it in one request. The\n * Collect credentials are verified write-only before anything is stored.\n *\n * `POST /admin-portal/accounts/{merchantId}/vault/attach`\n */\n async attachVault(\n merchantId: string,\n params: AdminAttachVaultRequest,\n ): Promise<AdminAttachVaultResponse> {\n return this.request(\n 'POST',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/vault/attach`,\n { body: params },\n );\n }\n\n /**\n * Preview switching off a failing vault provider across all affected shops\n * of a merchant from the admin portal.\n *\n * `POST /admin-portal/accounts/{merchantId}/vault/outages/group-switch-off/preview`\n */\n async previewVaultOutageGroupSwitchOff(\n merchantId: string,\n params: VaultOutageGroupSwitchOffPreviewRequest,\n ): Promise<VaultOutageGroupSwitchOffPreviewResponse> {\n return this.request(\n 'POST',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/vault/outages/group-switch-off/preview`,\n { body: params },\n );\n }\n\n /**\n * Switch off a failing vault provider across all affected shops of a\n * merchant in one atomic step from the admin portal.\n *\n * `POST /admin-portal/accounts/{merchantId}/vault/outages/group-switch-off`\n */\n async executeVaultOutageGroupSwitchOff(\n merchantId: string,\n params: VaultOutageGroupSwitchOffRequest,\n ): Promise<VaultOutageGroupActionResponse> {\n return this.request(\n 'POST',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/vault/outages/group-switch-off`,\n { body: params },\n );\n }\n\n /**\n * List active, recovered, and historical vault outage group actions for a\n * merchant from the admin portal.\n *\n * `GET /admin-portal/accounts/{merchantId}/vault/outages/group-actions`\n */\n async listVaultOutageGroupActions(\n merchantId: string,\n ): Promise<VaultOutageGroupActionsListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/vault/outages/group-actions`,\n );\n }\n\n /**\n * Run a manual recovery check on an active vault outage group action for a\n * merchant from the admin portal.\n *\n * `POST /admin-portal/accounts/{merchantId}/vault/outages/group-actions/{actionId}/check-recovery`\n */\n async checkVaultOutageGroupRecovery(\n merchantId: string,\n actionId: string,\n ): Promise<VaultOutageGroupCheckRecoveryResponse> {\n return this.request(\n 'POST',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/vault/outages/group-actions/${encodeURIComponent(actionId)}/check-recovery`,\n );\n }\n\n /**\n * Restore or undo a vault outage group action for a merchant from the admin\n * portal, verifying each remaining vault account works again and skipping\n * shops already changed individually.\n *\n * `POST /admin-portal/accounts/{merchantId}/vault/outages/group-actions/{actionId}/restore`\n */\n async restoreVaultOutageGroupAction(\n merchantId: string,\n actionId: string,\n params: VaultOutageGroupRestoreRequest = {},\n ): Promise<VaultOutageGroupRestoreResponse> {\n return this.request(\n 'POST',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/vault/outages/group-actions/${encodeURIComponent(actionId)}/restore`,\n { body: params },\n );\n }\n\n /**\n * Correct the funding type, issuing bank and issuing country recorded on\n * past card payments from the BIN table, across every merchant, oldest\n * first, one bounded page per call. Resume with the returned `next_after`\n * until it is `null`. A dry run, the default, reports without writing; a\n * payment that changed while the page ran is left alone and counted as a\n * conflict. Payments of merchants whose attempts are stored in Redis are\n * not corrected.\n *\n * `POST /admin-portal/card-funding/backfill`\n */\n async backfillCardFunding(\n params: CardFundingBackfillRequest = {},\n ): Promise<CardFundingBackfillResponse> {\n return this.request('POST', '/admin-portal/card-funding/backfill', { body: params });\n }\n\n /**\n * Every live shop of a merchant, worst first, with DeloPay's reference\n * assessment and, where a merchant adjustment applied, the adjusted one\n * beside it. Not narrowed to one shop: operators see the whole merchant.\n *\n * `GET /admin-portal/accounts/{merchant_id}/risk`\n */\n async getMerchantRisk(merchantId: string): Promise<MerchantRisk> {\n return this.request('GET', `/admin-portal/accounts/${encodeURIComponent(merchantId)}/risk`);\n }\n\n /**\n * A merchant's tuning of its own risk assessment at one scope, as the\n * merchant sees it, for operators.\n *\n * `GET /admin-portal/accounts/{merchant_id}/risk/tuning[/{projects|shops}/{id}]`\n */\n async getMerchantRiskTuning(\n merchantId: string,\n target: RiskTuningTarget = { scope: 'merchant' },\n ): Promise<RiskTuningResponse> {\n return this.request('GET', riskTuningPath(target, adminAccount(merchantId)));\n }\n\n /**\n * Replace a merchant's tuning at one scope on its behalf. Needs\n * `AccountManage`; the merchant sees the change as `platform_operator`, the\n * audit names the operator. Validated and revision-checked as the\n * merchant's own save is.\n *\n * `PUT /admin-portal/accounts/{merchant_id}/risk/tuning[/{projects|shops}/{id}]`\n */\n async updateMerchantRiskTuning(\n merchantId: string,\n target: RiskTuningTarget,\n params: RiskTuningUpdateRequest,\n ): Promise<RiskTuningResponse> {\n return this.request('PUT', riskTuningPath(target, adminAccount(merchantId)), {\n body: params,\n });\n }\n\n /**\n * Reset a merchant's tuning at one scope on its behalf.\n *\n * `DELETE /admin-portal/accounts/{merchant_id}/risk/tuning[/{projects|shops}/{id}]`\n */\n async resetMerchantRiskTuning(\n merchantId: string,\n target: RiskTuningTarget,\n expectedRevision: number,\n ): Promise<RiskTuningResponse> {\n return this.request('DELETE', riskTuningPath(target, adminAccount(merchantId)), {\n query: { expected_revision: expectedRevision },\n });\n }\n\n /**\n * Estimate a change to a merchant's tuning. Stores, scores and sends nothing.\n *\n * `POST /admin-portal/accounts/{merchant_id}/risk/tuning[/{projects|shops}/{id}]/preview`\n */\n async previewMerchantRiskTuning(\n merchantId: string,\n target: RiskTuningTarget,\n adjustments: RiskAdjustments,\n ): Promise<RiskTuningPreviewResponse> {\n return this.request('POST', `${riskTuningPath(target, adminAccount(merchantId))}/preview`, {\n body: { adjustments },\n });\n }\n\n /**\n * The shop risk model the daily scoring pass uses, where it comes from and\n * the `revision` to name when changing it. When no model can be used,\n * `model` is absent and `problem` says why.\n *\n * `GET /admin-portal/risk-model`\n */\n async getRiskModel(): Promise<RiskModelResponse> {\n return this.request('GET', '/admin-portal/risk-model');\n }\n\n /**\n * Change the shop risk model; the answer is the model stored. Name the\n * `revision` the change was made against so a save over a change made in\n * between is refused (`IR_16`) instead of overwriting it. An invalid\n * result, or a scoring change without a higher `model_version`, is refused\n * with the reason in `error.message`.\n *\n * `PUT /admin-portal/risk-model`\n */\n async updateRiskModel(\n patch: RiskModelPatch,\n options: RiskModelUpdateOptions = {},\n ): Promise<RiskModelResponse> {\n return this.request('PUT', '/admin-portal/risk-model', {\n body: patch,\n query: { revision: options.revision },\n });\n }\n\n /**\n * What recalculating the shop risk history over `range` would do, without\n * queuing it: its days, the first day whose counters are rebuilt, the model\n * it would score with now, and the run of the same range already recorded.\n * Refused exactly where `startRiskBackfill()` would be.\n *\n * `POST /admin-portal/risk-engine/backfill/preview`\n */\n async previewRiskBackfill(range: RiskBackfillRequest): Promise<RiskBackfillPreview> {\n return this.request('POST', '/admin-portal/risk-engine/backfill/preview', { body: range });\n }\n\n /**\n * Queue a recalculation of `range`. Days that already have a risk score keep\n * it, and recalculated days never alert. While the same range is queued or\n * running, nothing new is started and `enqueued` is `false`.\n *\n * `POST /admin-portal/risk-engine/backfill`\n */\n async startRiskBackfill(range: RiskBackfillRequest): Promise<RiskBackfillResponse> {\n return this.request('POST', '/admin-portal/risk-engine/backfill', { body: range });\n }\n\n /**\n * One recalculation by the `job_id` a preview or start returned.\n *\n * `GET /admin-portal/risk-engine/backfill/{job_id}`\n */\n async getRiskBackfill(jobId: string): Promise<RiskBackfillStatus> {\n return this.request('GET', `/admin-portal/risk-engine/backfill/${encodeURIComponent(jobId)}`);\n }\n\n /**\n * Where a merchant stands in the risk policy (`merchant_risk.policy`): the\n * policy in force, the stage, the conditions of the last evaluation with\n * their evidence, pending and past actions, exemptions and stage changes.\n *\n * `GET /admin-portal/accounts/{merchant_id}/risk/stage`\n */\n async getMerchantRiskStage(merchantId: string): Promise<MerchantRiskStageResponse> {\n return this.request('GET', `${adminAccount(merchantId)}/risk/stage`);\n }\n\n /**\n * Evaluate a merchant against its risk policy now, as the scoring pass\n * does, and answer where it stands afterwards. Needs `AccountManage`.\n *\n * `POST /admin-portal/accounts/{merchant_id}/risk/stage/evaluate`\n */\n async evaluateMerchantRiskStage(merchantId: string): Promise<MerchantRiskStageResponse> {\n return this.request('POST', `${adminAccount(merchantId)}/risk/stage/evaluate`, { body: {} });\n }\n\n /**\n * Apply a pending action that waits for an operator. An action already\n * decided, suppressed or expired is refused with `DE_19` (HTTP 409).\n *\n * `POST /admin-portal/accounts/{merchant_id}/risk/actions/{action_id}/confirm`\n */\n async confirmMerchantRiskAction(\n merchantId: string,\n actionId: string,\n params: MerchantRiskActionConfirmRequest = {},\n ): Promise<MerchantRiskActionResponse> {\n return this.request(\n 'POST',\n `${adminAccount(merchantId)}/risk/actions/${encodeURIComponent(actionId)}/confirm`,\n { body: params },\n );\n }\n\n /**\n * Dismiss a pending action with a reason; it never applies. An action\n * already decided is refused with `DE_19` (HTTP 409).\n *\n * `POST /admin-portal/accounts/{merchant_id}/risk/actions/{action_id}/dismiss`\n */\n async dismissMerchantRiskAction(\n merchantId: string,\n actionId: string,\n params: MerchantRiskActionDismissRequest,\n ): Promise<MerchantRiskActionResponse> {\n return this.request(\n 'POST',\n `${adminAccount(merchantId)}/risk/actions/${encodeURIComponent(actionId)}/dismiss`,\n { body: params },\n );\n }\n\n /**\n * Exempt a merchant from one action for one risk dimension, until\n * `expires_at` or for good. An exempted action is recorded as `suppressed`\n * with the exemption's id; the stage itself is still entered.\n *\n * `POST /admin-portal/accounts/{merchant_id}/risk/exemptions`\n */\n async createMerchantRiskExemption(\n merchantId: string,\n params: MerchantRiskExemptionCreateRequest,\n ): Promise<MerchantRiskExemptionResponse> {\n return this.request('POST', `${adminAccount(merchantId)}/risk/exemptions`, { body: params });\n }\n\n /**\n * End an exemption now, with a reason. It no longer suppresses anything\n * from the next evaluation on.\n *\n * `POST /admin-portal/accounts/{merchant_id}/risk/exemptions/{exemption_id}/revoke`\n */\n async revokeMerchantRiskExemption(\n merchantId: string,\n exemptionId: string,\n params: MerchantRiskExemptionRevokeRequest,\n ): Promise<MerchantRiskExemptionResponse> {\n return this.request(\n 'POST',\n `${adminAccount(merchantId)}/risk/exemptions/${encodeURIComponent(exemptionId)}/revoke`,\n { body: params },\n );\n }\n\n /**\n * Lift an applied `restrict_payments`, `hold_payouts` or `suspend` action\n * with a reason: what it blocked is allowed again, and nothing else\n * changes. The merchant stays in its stage and the action stays lifted for\n * the rest of that stage entry. An action that is not applied, not one of\n * those kinds, or already lifted is refused with `DE_19` (HTTP 409).\n *\n * `POST /admin-portal/accounts/{merchant_id}/risk/actions/{action_id}/lift`\n */\n async liftMerchantRiskAction(\n merchantId: string,\n actionId: string,\n params: MerchantRiskActionLiftRequest,\n ): Promise<MerchantRiskActionResponse> {\n return this.request(\n 'POST',\n `${adminAccount(merchantId)}/risk/actions/${encodeURIComponent(actionId)}/lift`,\n { body: params },\n );\n }\n\n /**\n * Stop new payments of one shop (`profile_id`), or of every shop of the\n * merchant, with a required reason. The stop is an\n * applied `restrict_payments` action of mode `operator`: payment create,\n * every confirm, the hosted checkout and its provider routes are refused\n * with `DE_22` before any provider is called. No template, connector\n * account, visibility, routing or stage change ends it; only\n * `liftMerchantRiskAction`, with a reason, does. A blank reason is\n * refused (HTTP 400), a shop of another merchant is not found (404), and a\n * scope an applied stop already covers is refused with `DE_19` (409).\n *\n * `POST /admin-portal/accounts/{merchant_id}/risk/stops`\n */\n async stopMerchantPayments(\n merchantId: string,\n params: MerchantRiskPaymentsStopRequest,\n ): Promise<MerchantRiskActionResponse> {\n return this.request('POST', `${adminAccount(merchantId)}/risk/stops`, { body: params });\n }\n\n /**\n * The payments and payouts a merchant's applied risk actions refused,\n * newest first; 50 unless `limit` (at most 200) says otherwise.\n *\n * `GET /admin-portal/accounts/{merchant_id}/risk/blocked-attempts`\n */\n async listMerchantRiskBlockedAttempts(\n merchantId: string,\n params?: MerchantRiskBlockedAttemptListParams,\n ): Promise<MerchantRiskBlockedAttemptList> {\n return this.request('GET', `${adminAccount(merchantId)}/risk/blocked-attempts`, {\n query: params === undefined ? undefined : { ...params },\n });\n }\n\n /**\n * Every merchant risk action kind and whether this platform can use it,\n * with its default mode, its scopes and what it blocks.\n *\n * `GET /admin-portal/risk/actions/catalog`\n */\n async getMerchantRiskActionCatalog(): Promise<MerchantRiskActionCatalogEntry[]> {\n return this.request('GET', '/admin-portal/risk/actions/catalog');\n }\n\n /**\n * Which merchants a risk policy, saved or not, would put in each stage now,\n * from their stored signals, and what each action would block there.\n * Writes nothing. A policy a settings write would refuse is refused the\n * same way (HTTP 422).\n *\n * `POST /admin-portal/risk/policy/preview`\n */\n async previewMerchantRiskPolicy(\n params: MerchantRiskPolicyPreviewRequest,\n ): Promise<MerchantRiskPolicyPreviewResponse> {\n return this.request('POST', '/admin-portal/risk/policy/preview', { body: params });\n }\n}\n\nfunction transactionListQuery(params?: AdminTransactionListParams): RequestOptions['query'] {\n if (!params) return undefined;\n const csv = (value: string[] | string | null | undefined): string | undefined => {\n if (Array.isArray(value)) return value.length ? value.join(',') : undefined;\n return value ? value : undefined;\n };\n const {\n search_terms,\n shop_ids,\n statuses,\n connectors,\n payment_methods,\n payment_method_types,\n currencies,\n card_networks,\n countries,\n merchant_connector_ids,\n connector_settlement_statuses,\n routing_approaches,\n failure_substatuses,\n product_ids,\n buyer_risk_band,\n integration_origins,\n merchant_ids,\n industries,\n ...query\n } = params;\n const searchTermsWire = csv(search_terms);\n const industriesWire = csv(industries);\n const shopIdsWire = csv(shop_ids);\n const cardNetworksWire = csv(card_networks);\n const countriesWire = csv(countries);\n return {\n ...query,\n ...(searchTermsWire ? { search_terms: searchTermsWire } : {}),\n ...(industriesWire ? { industries: industriesWire } : {}),\n ...(shopIdsWire ? { shop_ids: shopIdsWire } : {}),\n ...(statuses?.length ? { statuses: statuses.join(',') } : {}),\n ...(connectors?.length ? { connectors: connectors.join(',') } : {}),\n ...(payment_methods?.length ? { payment_methods: payment_methods.join(',') } : {}),\n ...(payment_method_types?.length\n ? { payment_method_types: payment_method_types.join(',') }\n : {}),\n ...(currencies?.length ? { currencies: currencies.join(',') } : {}),\n ...(cardNetworksWire ? { card_networks: cardNetworksWire } : {}),\n ...(countriesWire ? { countries: countriesWire } : {}),\n ...(merchant_connector_ids?.length\n ? { merchant_connector_ids: merchant_connector_ids.join(',') }\n : {}),\n ...(connector_settlement_statuses?.length\n ? { connector_settlement_statuses: connector_settlement_statuses.join(',') }\n : {}),\n ...(routing_approaches?.length ? { routing_approaches: routing_approaches.join(',') } : {}),\n ...(failure_substatuses?.length ? { failure_substatuses: failure_substatuses.join(',') } : {}),\n ...(product_ids?.length ? { product_ids: product_ids.join(',') } : {}),\n ...(buyer_risk_band?.length ? { buyer_risk_band: buyer_risk_band.join(',') } : {}),\n ...(integration_origins?.length ? { integration_origins: integration_origins.join(',') } : {}),\n ...(merchant_ids?.length ? { merchant_ids: merchant_ids.join(',') } : {}),\n };\n}\n\ntype PersonQuery = Record<string, string | number | boolean | null | undefined>;\n\n/** The admin-portal prefix of one merchant's person routes. */\nfunction adminPersons(merchantId: string): string {\n return `/admin-portal/persons/${encodeURIComponent(merchantId)}`;\n}\n\n/** The admin-portal path of one person's staff flags. */\nfunction personFlags(merchantId: string, personId: string): string {\n return `${adminPersons(merchantId)}/${encodeURIComponent(personId)}/flags`;\n}\n\n/** The admin-portal path of one person's platform-wide block. */\nfunction personBlock(merchantId: string, personId: string): string {\n return `${adminPersons(merchantId)}/${encodeURIComponent(personId)}/block`;\n}\n\n/** The admin-portal prefix of one merchant's account routes. */\nfunction adminAccount(merchantId: string): string {\n return `/admin-portal/accounts/${encodeURIComponent(merchantId)}`;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-GSQN5EOO.cjs","../src/cardFormStyles.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC0BO,IAAM,mBAAA,EAAqB,yCAAA;AAI3B,IAAM,sBAAA,EAAwB,4CAAA;AAI9B,IAAM,mBAAA,EAAqB,yCAAA;AAI3B,IAAM,iBAAA,EAAmB,uCAAA;AAIzB,SAAS,eAAA,CAAgB,IAAA,EAAiC;AAC/D,EAAA,OAAO,KAAA,IAAS,KAAA,EAAO,GAAA,EAAK,KAAA,IAAS,KAAA,EAAO,GAAA,EAAK,EAAA;AACnD;AAGO,SAAS,oBAAA,CAAqB,MAAA,EAAiC;AACpE,EAAA,OAAO,OAAA,IAAW,UAAA,EAAY,IAAA,EAAM,OAAA,IAAW,WAAA,EAAa,IAAA,EAAM,GAAA;AACpE;AASO,IAAM,cAAA,EAAgB,CAAC,MAAA,EAAQ,QAAA,EAAU,MAAA,EAAQ,OAAO,CAAA;AAIxD,SAAS,kBAAA,CAAmB,KAAA,EAAoB,IAAA,EAA4C;AACjG,EAAA,GAAA,CAAI,MAAA,IAAU,MAAA,EAAQ,OAAO,KAAA,EAAO,QAAA,EAAU,QAAA;AAC9C,EAAA,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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,muDAAC","file":"/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-GSQN5EOO.cjs","sourcesContent":[null,"// How the card forms that are not Airwallex's can be styled: Stripe's Payment\n// Element, PayPal Card Fields and NomuPay's COPYandPAY widget.\n//\n// Each processor draws the card inside its own iframes and exposes a\n// different, narrow styling surface, so each gets only the controls that\n// surface actually reaches:\n//\n// - Stripe takes an Appearance object (`theme`, `inputs`, `labels`,\n// `variables`, `rules`, `disableAnimations`) and paints everything inside\n// one iframe itself.\n// - PayPal takes CSS for the text inside each field iframe (`input`, `.valid`,\n// `.invalid`, `:focus`); the box around it is the checkout's own DOM.\n// - COPYandPAY takes `wpwlOptions` (`style`, `showLabels`, `showPlaceholders`,\n// `showCVVHint`, `iframeStyles` for the two placeholders) and renders its\n// `.wpwl-*` classes into the page, where the checkout's CSS styles the box.\n//\n// Every value here is presentation. Nothing narrows the cards a buyer may pay\n// with, and nothing reaches a confirm path. COPYandPAY's `brandDetection` is\n// deliberately absent for that reason: it picks the scheme a co-badged card is\n// charged on, which is the buyer's choice to make, not a style.\n//\n// The box vocabularies (chrome, type size, weight, focus ring) are the\n// Airwallex section's, re-exported under neutral names, so a merchant styling\n// two rails meets the same words and the checkout draws them the same way.\n\nimport {\n AIRWALLEX_FIELD_CHROMES,\n AIRWALLEX_FIELD_FONT_SIZES,\n AIRWALLEX_FIELD_WEIGHTS,\n AIRWALLEX_FOCUS_RINGS,\n} from './airwallexCard';\n\n/** How the box around a field is drawn: `outlined`, `filled` or `underline`. */\nexport const CARD_FIELD_CHROMES = AIRWALLEX_FIELD_CHROMES;\nexport type CardFieldChrome = (typeof CARD_FIELD_CHROMES)[number];\n\n/** Field type size: `sm` 14px, `md` 16px, `lg` 18px. */\nexport const CARD_FIELD_FONT_SIZES = AIRWALLEX_FIELD_FONT_SIZES;\nexport type CardFieldFontSize = (typeof CARD_FIELD_FONT_SIZES)[number];\n\n/** Field type weight: `regular` 400, `medium` 500, `semibold` 600. */\nexport const CARD_FIELD_WEIGHTS = AIRWALLEX_FIELD_WEIGHTS;\nexport type CardFieldWeight = (typeof CARD_FIELD_WEIGHTS)[number];\n\n/** The ring around the focused field: `none`, `subtle` (neutral) or `strong` (brand colour). */\nexport const CARD_FOCUS_RINGS = AIRWALLEX_FOCUS_RINGS;\nexport type CardFocusRing = (typeof CARD_FOCUS_RINGS)[number];\n\n/** A field type size in px. */\nexport function cardFieldFontPx(size: CardFieldFontSize): number {\n return size === 'sm' ? 14 : size === 'lg' ? 18 : 16;\n}\n\n/** A field type weight as a CSS numeric weight. */\nexport function cardFieldWeightValue(weight: CardFieldWeight): number {\n return weight === 'regular' ? 400 : weight === 'semibold' ? 600 : 500;\n}\n\n// --- Stripe Payment Element ---------------------------------------------\n\n/**\n * Stripe's base theme. `auto` is `night` on a dark checkout and `stripe` on a\n * light one, which is what the pane chose before this setting existed. The\n * merchant's colours, font and radius are applied over whichever is picked.\n */\nexport const STRIPE_THEMES = ['auto', 'stripe', 'flat', 'night'] as const;\nexport type StripeTheme = (typeof STRIPE_THEMES)[number];\n\n/** The theme Stripe is actually given. */\nexport function resolveStripeTheme(theme: StripeTheme, dark: boolean): 'stripe' | 'flat' | 'night' {\n if (theme === 'auto') return dark ? 'night' : 'stripe';\n return theme;\n}\n\n/** Stripe's `appearance.inputs`: separate boxes, or one condensed block. */\nexport const STRIPE_INPUT_STYLES = ['spaced', 'condensed'] as const;\nexport type StripeInputStyle = (typeof STRIPE_INPUT_STYLES)[number];\n\n/**\n * Stripe's `appearance.labels`. The checkout-wide `labelStyle: 'hidden'` still\n * wins over either, because hiding is a decision about every form.\n */\nexport const STRIPE_LABEL_PLACEMENTS = ['above', 'floating'] as const;\nexport type StripeLabelPlacement = (typeof STRIPE_LABEL_PLACEMENTS)[number];\n\n/** The space between Stripe's fields and rows. */\nexport const STRIPE_SPACINGS = ['compact', 'comfortable', 'spacious'] as const;\nexport type StripeSpacing = (typeof STRIPE_SPACINGS)[number];\n\n/**\n * Stripe's `spacingUnit` and `gridRowSpacing` for a spacing choice.\n * `comfortable` is the 4px / 12px the pane always sent.\n */\nexport function stripeSpacingValues(spacing: StripeSpacing): {\n spacingUnit: string;\n gridRowSpacing: string;\n} {\n if (spacing === 'compact') return { spacingUnit: '3px', gridRowSpacing: '8px' };\n if (spacing === 'spacious') return { spacingUnit: '5px', gridRowSpacing: '16px' };\n return { spacingUnit: '4px', gridRowSpacing: '12px' };\n}\n\n// --- PayPal Card Fields -------------------------------------------------\n\n/** The PayPal card form's rows: expiry and CVC side by side, or every field full width. */\nexport const PAYPAL_CARD_LAYOUTS = ['split', 'stacked'] as const;\nexport type PaypalCardLayout = (typeof PAYPAL_CARD_LAYOUTS)[number];\n\n/**\n * Captions over PayPal's fields. Visual only: a `<label for>` cannot reach an\n * input inside PayPal's iframe, and the field keeps the name PayPal gives it.\n */\nexport const PAYPAL_LABEL_STYLES = ['above', 'none'] as const;\nexport type PaypalLabelStyle = (typeof PAYPAL_LABEL_STYLES)[number];\n\n// --- NomuPay COPYandPAY -------------------------------------------------\n\n/**\n * COPYandPAY's `style`. `plain` is bare labelled fields; `card` is the\n * widget's card-shaped presentation. `logos` and `none` are not offered:\n * `logos` makes the buyer pick a brand before the fields appear, and `none`\n * drops the widget's own CSS the checkout's field styling builds on.\n */\nexport const NOMUPAY_FORM_STYLES = ['plain', 'card'] as const;\nexport type NomupayFormStyle = (typeof NOMUPAY_FORM_STYLES)[number];\n\n/**\n * Apple Pay's `buttonStyle`. `auto` is `white` on a dark checkout and `black`\n * on a light one, as the widget was configured before this setting existed.\n */\nexport const APPLE_PAY_BUTTON_STYLES = ['auto', 'black', 'white', 'white-outline'] as const;\nexport type ApplePayButtonStyle = (typeof APPLE_PAY_BUTTON_STYLES)[number];\n\nexport function resolveApplePayButtonStyle(\n style: ApplePayButtonStyle,\n dark: boolean,\n): 'black' | 'white' | 'white-outline' {\n if (style === 'auto') return dark ? 'white' : 'black';\n return style;\n}\n\n/** Apple Pay's `buttonType`: the word on the button. Apple's own list. */\nexport const APPLE_PAY_BUTTON_TYPES = [\n 'pay',\n 'plain',\n 'buy',\n 'check-out',\n 'continue',\n 'book',\n 'order',\n 'subscribe',\n 'donate',\n 'contribute',\n 'support',\n 'tip',\n 'add-money',\n 'top-up',\n 'reload',\n 'rent',\n] as const;\nexport type ApplePayButtonType = (typeof APPLE_PAY_BUTTON_TYPES)[number];\n\n/**\n * Google Pay's `buttonColor`. `auto` is `white` on a dark checkout and `black`\n * on a light one; `default` lets Google choose for the buyer's browser.\n */\nexport const GOOGLE_PAY_BUTTON_COLORS = ['auto', 'default', 'black', 'white'] as const;\nexport type GooglePayButtonColor = (typeof GOOGLE_PAY_BUTTON_COLORS)[number];\n\nexport function resolveGooglePayButtonColor(\n color: GooglePayButtonColor,\n dark: boolean,\n): 'default' | 'black' | 'white' {\n if (color === 'auto') return dark ? 'white' : 'black';\n return color;\n}\n\n/** Google Pay's `buttonType`: the word on the button. Google's own list. */\nexport const GOOGLE_PAY_BUTTON_TYPES = [\n 'pay',\n 'plain',\n 'buy',\n 'checkout',\n 'book',\n 'order',\n 'subscribe',\n 'donate',\n] as const;\nexport type GooglePayButtonType = (typeof GOOGLE_PAY_BUTTON_TYPES)[number];\n\n// --- Whop Payment Elements ----------------------------------------------\n//\n// Whop draws its form inside its own frames and takes one `appearance`\n// object: a `theme` of named palettes (no hex), radius `variables`, and\n// per-part `classes` it sanitises against an allowlist. The element itself\n// is chosen by the preset: Whop's Payment Element (every method the account\n// offers, as an accordion or as tiles) or its Card Element (cards only, in\n// two shapes).\n\n/**\n * The Whop card form's shape.\n *\n * - `accordion`: the Payment Element, methods stacked; what the form always was.\n * - `tiles`: the Payment Element with `layout: 'horizontal'`, equal-width tiles.\n * - `card_stacked`: the Card Element, number above expiry and CVC. Cards only.\n * - `card_compact`: the Card Element on one row. Cards only.\n *\n * The two card presets offer no wallet inside the form: Apple Pay and Google\n * Pay are then the shop's own wallet buttons, or absent.\n */\nexport const WHOP_CARD_PRESETS = ['accordion', 'tiles', 'card_stacked', 'card_compact'] as const;\nexport type WhopCardPreset = (typeof WHOP_CARD_PRESETS)[number];\n\n/** The Whop element and layout a preset mounts. */\nexport type WhopCardElement =\n | { element: 'payment'; layout: 'accordion' | 'horizontal' }\n | { element: 'card'; layout: 'stacked' | 'compact' };\n\nexport function whopCardElement(preset: WhopCardPreset): WhopCardElement {\n switch (preset) {\n case 'tiles':\n return { element: 'payment', layout: 'horizontal' };\n case 'card_stacked':\n return { element: 'card', layout: 'stacked' };\n case 'card_compact':\n return { element: 'card', layout: 'compact' };\n default:\n return { element: 'payment', layout: 'accordion' };\n }\n}\n\n/**\n * Whop's `theme.accentColor`: the palette its radios, selected rows and\n * buttons are drawn in. Whop takes a palette name only, never a colour, so\n * `auto` picks the palette nearest the checkout's primary colour\n * (`nearestWhopAccent`).\n */\nexport const WHOP_ACCENT_COLORS = [\n 'auto',\n 'gray',\n 'blue',\n 'indigo',\n 'iris',\n 'violet',\n 'purple',\n 'plum',\n 'pink',\n 'crimson',\n 'ruby',\n 'red',\n 'tomato',\n 'orange',\n 'amber',\n 'yellow',\n 'lime',\n 'grass',\n 'green',\n 'jade',\n 'teal',\n 'cyan',\n 'sky',\n 'mint',\n 'brown',\n 'bronze',\n 'gold',\n] as const;\nexport type WhopAccentColor = (typeof WHOP_ACCENT_COLORS)[number];\n\n/** Each palette's solid step (Radix colour scale step 9, light). */\nconst WHOP_ACCENT_SWATCHES: Readonly<Record<Exclude<WhopAccentColor, 'auto' | 'gray'>, string>> = {\n blue: '#0090ff',\n indigo: '#3e63dd',\n iris: '#5b5bd6',\n violet: '#6e56cf',\n purple: '#8e4ec6',\n plum: '#ab4aba',\n pink: '#d6409f',\n crimson: '#e93d82',\n ruby: '#e54666',\n red: '#e5484d',\n tomato: '#e54d2e',\n orange: '#f76b15',\n amber: '#ffc53d',\n yellow: '#ffe629',\n lime: '#bdee63',\n grass: '#46a758',\n green: '#30a46c',\n jade: '#29a383',\n teal: '#12a594',\n cyan: '#00a2c7',\n sky: '#7ce2fe',\n mint: '#86ead4',\n brown: '#ad7f58',\n bronze: '#a18072',\n gold: '#978365',\n};\n\n/** A palette's solid swatch, for the dashboard's picker. `gray` is neutral. */\nexport function whopAccentSwatch(accent: Exclude<WhopAccentColor, 'auto'>): string {\n return accent === 'gray' ? '#8d8d8d' : WHOP_ACCENT_SWATCHES[accent];\n}\n\nfunction hexRgb(hex: string): [number, number, number] | null {\n const raw = hex.trim().replace(/^#/, '');\n const full = raw.length === 3 ? raw.replace(/./g, (c) => c + c) : raw;\n if (!/^[0-9a-f]{6}$/i.test(full)) return null;\n const n = Number.parseInt(full, 16);\n return [(n >> 16) & 255, (n >> 8) & 255, n & 255];\n}\n\n/** OKLab, so \"nearest\" means nearest to the eye rather than in RGB. */\nfunction oklab([r, g, b]: [number, number, number]): [number, number, number] {\n const lin = (c: number) => {\n const v = c / 255;\n return v <= 0.04045 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4;\n };\n const [lr, lg, lb] = [lin(r), lin(g), lin(b)];\n const l = Math.cbrt(0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb);\n const m = Math.cbrt(0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb);\n const s = Math.cbrt(0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb);\n return [\n 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,\n 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,\n 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s,\n ];\n}\n\n/**\n * The Whop palette nearest a colour. A colour with almost no chroma (black,\n * white, greys) is `gray`; an unreadable one is `blue`, Whop's own default.\n */\nexport function nearestWhopAccent(hex: string): Exclude<WhopAccentColor, 'auto'> {\n const rgb = hexRgb(hex);\n if (!rgb) return 'blue';\n const [L, a, b] = oklab(rgb);\n if (Math.hypot(a, b) < 0.04) return 'gray';\n let best: Exclude<WhopAccentColor, 'auto' | 'gray'> = 'blue';\n let bestDistance = Number.POSITIVE_INFINITY;\n for (const [name, swatch] of Object.entries(WHOP_ACCENT_SWATCHES) as [\n Exclude<WhopAccentColor, 'auto' | 'gray'>,\n string,\n ][]) {\n const swatchRgb = hexRgb(swatch);\n if (!swatchRgb) continue;\n const [sL, sa, sb] = oklab(swatchRgb);\n // Hue and chroma decide the palette; lightness counts for less, since\n // Whop draws each palette in several steps.\n const distance = Math.hypot((L - sL) * 0.5, a - sa, b - sb);\n if (distance < bestDistance) {\n bestDistance = distance;\n best = name;\n }\n }\n return best;\n}\n\n/** The accent Whop is actually given. */\nexport function resolveWhopAccent(\n accent: WhopAccentColor,\n primaryHex: string,\n): Exclude<WhopAccentColor, 'auto'> {\n return accent === 'auto' ? nearestWhopAccent(primaryHex) : accent;\n}\n\n/** Whop's email field `labelMode`: a caption above the box, or inside it until typed. */\nexport const WHOP_EMAIL_LABELS = ['above', 'floating'] as const;\nexport type WhopEmailLabel = (typeof WHOP_EMAIL_LABELS)[number];\n\n/**\n * Whop's `theme.grayColor`: the neutral scale its borders, muted text and\n * backgrounds are drawn in. `auto` lets Whop match it to the accent.\n */\nexport const WHOP_GRAY_COLORS = [\n 'auto',\n 'gray',\n 'mauve',\n 'slate',\n 'sage',\n 'olive',\n 'sand',\n] as const;\nexport type WhopGrayColor = (typeof WHOP_GRAY_COLORS)[number];\n\n/**\n * How much billing address Whop asks a card for. `minimal` is Whop's\n * minimum for a card: name, country and postal code. `full` asks the\n * complete address in the country's own format, for address checks.\n */\nexport const WHOP_BILLING_DETAILS = ['minimal', 'full'] as const;\nexport type WhopBillingDetails = (typeof WHOP_BILLING_DETAILS)[number];\n\n/**\n * The corners of Whop's form: its fields, the joined card and address groups,\n * the method list and the tiles. `checkout` follows the checkout's own input\n * radius (`radiusInput`); the rest name a radius of the same scale.\n */\nexport const WHOP_RADII = ['checkout', 'square', 'small', 'medium', 'large'] as const;\nexport type WhopRadius = (typeof WHOP_RADII)[number];\n\n/**\n * Whether Whop's fields, groups and method list keep the soft drop shadow\n * Whop draws under them, or lie flat like the checkout's own fields.\n */\nexport const WHOP_SHADOWS = ['none', 'soft'] as const;\nexport type WhopShadow = (typeof WHOP_SHADOWS)[number];\n\n/**\n * How the method list marks the chosen method: Whop's radio dots, the dots\n * with the chosen method tinted in the brand colour, or the tint alone.\n * Tiles always ring the chosen tile.\n */\nexport const WHOP_SELECTIONS = ['radio_tint', 'radio', 'tint'] as const;\nexport type WhopSelection = (typeof WHOP_SELECTIONS)[number];\n\n/** The Whop settings a look sets together. Colours stay the shop's. */\nexport interface WhopLookSettings {\n whopCardPreset: WhopCardPreset;\n // Every look asks Whop's card minimum: a look is a design, and the full\n // address is a separate choice that names no look.\n whopBillingDetails: WhopBillingDetails;\n whopSeparated: boolean;\n whopFieldChrome: CardFieldChrome;\n whopEmailLabel: WhopEmailLabel;\n whopRadius: WhopRadius;\n whopShadow: WhopShadow;\n whopMethodIcons: boolean;\n whopSelection: WhopSelection;\n}\n\n/**\n * Curated looks for the Whop form: each sets the form, the chrome, the\n * captions, the corners, the shadow and how the chosen method is marked, as\n * one choice the dashboard offers before the single settings. `standard` is\n * the default branding's own look.\n */\nexport const WHOP_LOOKS = [\n 'standard',\n 'clean',\n 'whop',\n 'cards',\n 'tiles',\n 'soft',\n 'minimal',\n] as const;\nexport type WhopLook = (typeof WHOP_LOOKS)[number];\n\nexport const WHOP_LOOK_SETTINGS: Readonly<Record<WhopLook, Readonly<WhopLookSettings>>> = {\n // The fewest fields Whop takes a card with, laid out as Stripe's card\n // form: the email, the number above expiry and code, then one group of\n // name, country (preselected) and postal code. Whop refuses a card without\n // any of them. The wallets are the shop's own express buttons.\n standard: {\n whopCardPreset: 'card_stacked',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'checkout',\n whopShadow: 'soft',\n whopMethodIcons: true,\n whopSelection: 'radio_tint',\n },\n // Flat fields like the checkout's own, the method list with the chosen\n // method tinted beside its radio.\n clean: {\n whopCardPreset: 'accordion',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'checkout',\n whopShadow: 'none',\n whopMethodIcons: true,\n whopSelection: 'radio_tint',\n },\n // Whop's own form: its corners, its soft shadow, its radio dots.\n whop: {\n whopCardPreset: 'accordion',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'small',\n whopShadow: 'soft',\n whopMethodIcons: true,\n whopSelection: 'radio',\n },\n // Each method its own raised card, the chosen one tinted, no dots.\n cards: {\n whopCardPreset: 'accordion',\n whopBillingDetails: 'minimal',\n whopSeparated: true,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'medium',\n whopShadow: 'soft',\n whopMethodIcons: true,\n whopSelection: 'tint',\n },\n // The methods as tiles above the card's fields.\n tiles: {\n whopCardPreset: 'tiles',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'checkout',\n whopShadow: 'none',\n whopMethodIcons: true,\n whopSelection: 'radio_tint',\n },\n // Filled fields with the captions inside, round corners.\n soft: {\n whopCardPreset: 'accordion',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'filled',\n whopEmailLabel: 'floating',\n whopRadius: 'large',\n whopShadow: 'none',\n whopMethodIcons: false,\n whopSelection: 'radio_tint',\n },\n // The card alone on one line, underlined, captions inside.\n minimal: {\n whopCardPreset: 'card_compact',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'underline',\n whopEmailLabel: 'floating',\n whopRadius: 'square',\n whopShadow: 'none',\n whopMethodIcons: true,\n whopSelection: 'radio_tint',\n },\n};\n\n/** The look a branding's Whop settings match exactly, or `null` for a custom mix. */\nexport function matchWhopLook(settings: WhopLookSettings): WhopLook | null {\n const keys = Object.keys(WHOP_LOOK_SETTINGS.clean) as (keyof WhopLookSettings)[];\n return (\n WHOP_LOOKS.find((look) =>\n keys.every((key) => WHOP_LOOK_SETTINGS[look][key] === settings[key]),\n ) ?? null\n );\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w2-sdk-publish-0492/dist/chunk-GSQN5EOO.cjs","../src/cardFormStyles.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC0BO,IAAM,mBAAA,EAAqB,yCAAA;AAI3B,IAAM,sBAAA,EAAwB,4CAAA;AAI9B,IAAM,mBAAA,EAAqB,yCAAA;AAI3B,IAAM,iBAAA,EAAmB,uCAAA;AAIzB,SAAS,eAAA,CAAgB,IAAA,EAAiC;AAC/D,EAAA,OAAO,KAAA,IAAS,KAAA,EAAO,GAAA,EAAK,KAAA,IAAS,KAAA,EAAO,GAAA,EAAK,EAAA;AACnD;AAGO,SAAS,oBAAA,CAAqB,MAAA,EAAiC;AACpE,EAAA,OAAO,OAAA,IAAW,UAAA,EAAY,IAAA,EAAM,OAAA,IAAW,WAAA,EAAa,IAAA,EAAM,GAAA;AACpE;AASO,IAAM,cAAA,EAAgB,CAAC,MAAA,EAAQ,QAAA,EAAU,MAAA,EAAQ,OAAO,CAAA;AAIxD,SAAS,kBAAA,CAAmB,KAAA,EAAoB,IAAA,EAA4C;AACjG,EAAA,GAAA,CAAI,MAAA,IAAU,MAAA,EAAQ,OAAO,KAAA,EAAO,QAAA,EAAU,QAAA;AAC9C,EAAA,OAAO,KAAA;AACT;AAGO,IAAM,oBAAA,EAAsB,CAAC,QAAA,EAAU,WAAW,CAAA;AAOlD,IAAM,wBAAA,EAA0B,CAAC,OAAA,EAAS,UAAU,CAAA;AAIpD,IAAM,gBAAA,EAAkB,CAAC,SAAA,EAAW,aAAA,EAA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s","sourcesContent":[null,"// How the card forms that are not Airwallex's can be styled: Stripe's Payment\n// Element, PayPal Card Fields and NomuPay's COPYandPAY widget.\n//\n// Each processor draws the card inside its own iframes and exposes a\n// different, narrow styling surface, so each gets only the controls that\n// surface actually reaches:\n//\n// - Stripe takes an Appearance object (`theme`, `inputs`, `labels`,\n// `variables`, `rules`, `disableAnimations`) and paints everything inside\n// one iframe itself.\n// - PayPal takes CSS for the text inside each field iframe (`input`, `.valid`,\n// `.invalid`, `:focus`); the box around it is the checkout's own DOM.\n// - COPYandPAY takes `wpwlOptions` (`style`, `showLabels`, `showPlaceholders`,\n// `showCVVHint`, `iframeStyles` for the two placeholders) and renders its\n// `.wpwl-*` classes into the page, where the checkout's CSS styles the box.\n//\n// Every value here is presentation. Nothing narrows the cards a buyer may pay\n// with, and nothing reaches a confirm path. COPYandPAY's `brandDetection` is\n// deliberately absent for that reason: it picks the scheme a co-badged card is\n// charged on, which is the buyer's choice to make, not a style.\n//\n// The box vocabularies (chrome, type size, weight, focus ring) are the\n// Airwallex section's, re-exported under neutral names, so a merchant styling\n// two rails meets the same words and the checkout draws them the same way.\n\nimport {\n AIRWALLEX_FIELD_CHROMES,\n AIRWALLEX_FIELD_FONT_SIZES,\n AIRWALLEX_FIELD_WEIGHTS,\n AIRWALLEX_FOCUS_RINGS,\n} from './airwallexCard';\n\n/** How the box around a field is drawn: `outlined`, `filled` or `underline`. */\nexport const CARD_FIELD_CHROMES = AIRWALLEX_FIELD_CHROMES;\nexport type CardFieldChrome = (typeof CARD_FIELD_CHROMES)[number];\n\n/** Field type size: `sm` 14px, `md` 16px, `lg` 18px. */\nexport const CARD_FIELD_FONT_SIZES = AIRWALLEX_FIELD_FONT_SIZES;\nexport type CardFieldFontSize = (typeof CARD_FIELD_FONT_SIZES)[number];\n\n/** Field type weight: `regular` 400, `medium` 500, `semibold` 600. */\nexport const CARD_FIELD_WEIGHTS = AIRWALLEX_FIELD_WEIGHTS;\nexport type CardFieldWeight = (typeof CARD_FIELD_WEIGHTS)[number];\n\n/** The ring around the focused field: `none`, `subtle` (neutral) or `strong` (brand colour). */\nexport const CARD_FOCUS_RINGS = AIRWALLEX_FOCUS_RINGS;\nexport type CardFocusRing = (typeof CARD_FOCUS_RINGS)[number];\n\n/** A field type size in px. */\nexport function cardFieldFontPx(size: CardFieldFontSize): number {\n return size === 'sm' ? 14 : size === 'lg' ? 18 : 16;\n}\n\n/** A field type weight as a CSS numeric weight. */\nexport function cardFieldWeightValue(weight: CardFieldWeight): number {\n return weight === 'regular' ? 400 : weight === 'semibold' ? 600 : 500;\n}\n\n// --- Stripe Payment Element ---------------------------------------------\n\n/**\n * Stripe's base theme. `auto` is `night` on a dark checkout and `stripe` on a\n * light one, which is what the pane chose before this setting existed. The\n * merchant's colours, font and radius are applied over whichever is picked.\n */\nexport const STRIPE_THEMES = ['auto', 'stripe', 'flat', 'night'] as const;\nexport type StripeTheme = (typeof STRIPE_THEMES)[number];\n\n/** The theme Stripe is actually given. */\nexport function resolveStripeTheme(theme: StripeTheme, dark: boolean): 'stripe' | 'flat' | 'night' {\n if (theme === 'auto') return dark ? 'night' : 'stripe';\n return theme;\n}\n\n/** Stripe's `appearance.inputs`: separate boxes, or one condensed block. */\nexport const STRIPE_INPUT_STYLES = ['spaced', 'condensed'] as const;\nexport type StripeInputStyle = (typeof STRIPE_INPUT_STYLES)[number];\n\n/**\n * Stripe's `appearance.labels`. The checkout-wide `labelStyle: 'hidden'` still\n * wins over either, because hiding is a decision about every form.\n */\nexport const STRIPE_LABEL_PLACEMENTS = ['above', 'floating'] as const;\nexport type StripeLabelPlacement = (typeof STRIPE_LABEL_PLACEMENTS)[number];\n\n/** The space between Stripe's fields and rows. */\nexport const STRIPE_SPACINGS = ['compact', 'comfortable', 'spacious'] as const;\nexport type StripeSpacing = (typeof STRIPE_SPACINGS)[number];\n\n/**\n * Stripe's `spacingUnit` and `gridRowSpacing` for a spacing choice.\n * `comfortable` is the 4px / 12px the pane always sent.\n */\nexport function stripeSpacingValues(spacing: StripeSpacing): {\n spacingUnit: string;\n gridRowSpacing: string;\n} {\n if (spacing === 'compact') return { spacingUnit: '3px', gridRowSpacing: '8px' };\n if (spacing === 'spacious') return { spacingUnit: '5px', gridRowSpacing: '16px' };\n return { spacingUnit: '4px', gridRowSpacing: '12px' };\n}\n\n// --- PayPal Card Fields -------------------------------------------------\n\n/** The PayPal card form's rows: expiry and CVC side by side, or every field full width. */\nexport const PAYPAL_CARD_LAYOUTS = ['split', 'stacked'] as const;\nexport type PaypalCardLayout = (typeof PAYPAL_CARD_LAYOUTS)[number];\n\n/**\n * Captions over PayPal's fields. Visual only: a `<label for>` cannot reach an\n * input inside PayPal's iframe, and the field keeps the name PayPal gives it.\n */\nexport const PAYPAL_LABEL_STYLES = ['above', 'none'] as const;\nexport type PaypalLabelStyle = (typeof PAYPAL_LABEL_STYLES)[number];\n\n// --- NomuPay COPYandPAY -------------------------------------------------\n\n/**\n * COPYandPAY's `style`. `plain` is bare labelled fields; `card` is the\n * widget's card-shaped presentation. `logos` and `none` are not offered:\n * `logos` makes the buyer pick a brand before the fields appear, and `none`\n * drops the widget's own CSS the checkout's field styling builds on.\n */\nexport const NOMUPAY_FORM_STYLES = ['plain', 'card'] as const;\nexport type NomupayFormStyle = (typeof NOMUPAY_FORM_STYLES)[number];\n\n/**\n * Apple Pay's `buttonStyle`. `auto` is `white` on a dark checkout and `black`\n * on a light one, as the widget was configured before this setting existed.\n */\nexport const APPLE_PAY_BUTTON_STYLES = ['auto', 'black', 'white', 'white-outline'] as const;\nexport type ApplePayButtonStyle = (typeof APPLE_PAY_BUTTON_STYLES)[number];\n\nexport function resolveApplePayButtonStyle(\n style: ApplePayButtonStyle,\n dark: boolean,\n): 'black' | 'white' | 'white-outline' {\n if (style === 'auto') return dark ? 'white' : 'black';\n return style;\n}\n\n/** Apple Pay's `buttonType`: the word on the button. Apple's own list. */\nexport const APPLE_PAY_BUTTON_TYPES = [\n 'pay',\n 'plain',\n 'buy',\n 'check-out',\n 'continue',\n 'book',\n 'order',\n 'subscribe',\n 'donate',\n 'contribute',\n 'support',\n 'tip',\n 'add-money',\n 'top-up',\n 'reload',\n 'rent',\n] as const;\nexport type ApplePayButtonType = (typeof APPLE_PAY_BUTTON_TYPES)[number];\n\n/**\n * Google Pay's `buttonColor`. `auto` is `white` on a dark checkout and `black`\n * on a light one; `default` lets Google choose for the buyer's browser.\n */\nexport const GOOGLE_PAY_BUTTON_COLORS = ['auto', 'default', 'black', 'white'] as const;\nexport type GooglePayButtonColor = (typeof GOOGLE_PAY_BUTTON_COLORS)[number];\n\nexport function resolveGooglePayButtonColor(\n color: GooglePayButtonColor,\n dark: boolean,\n): 'default' | 'black' | 'white' {\n if (color === 'auto') return dark ? 'white' : 'black';\n return color;\n}\n\n/** Google Pay's `buttonType`: the word on the button. Google's own list. */\nexport const GOOGLE_PAY_BUTTON_TYPES = [\n 'pay',\n 'plain',\n 'buy',\n 'checkout',\n 'book',\n 'order',\n 'subscribe',\n 'donate',\n] as const;\nexport type GooglePayButtonType = (typeof GOOGLE_PAY_BUTTON_TYPES)[number];\n\n// --- Whop Payment Elements ----------------------------------------------\n//\n// Whop draws its form inside its own frames and takes one `appearance`\n// object: a `theme` of named palettes (no hex), radius `variables`, and\n// per-part `classes` it sanitises against an allowlist. The element itself\n// is chosen by the preset: Whop's Payment Element (every method the account\n// offers, as an accordion or as tiles) or its Card Element (cards only, in\n// two shapes).\n\n/**\n * The Whop card form's shape.\n *\n * - `accordion`: the Payment Element, methods stacked; what the form always was.\n * - `tiles`: the Payment Element with `layout: 'horizontal'`, equal-width tiles.\n * - `card_stacked`: the Card Element, number above expiry and CVC. Cards only.\n * - `card_compact`: the Card Element on one row. Cards only.\n *\n * The two card presets offer no wallet inside the form: Apple Pay and Google\n * Pay are then the shop's own wallet buttons, or absent.\n */\nexport const WHOP_CARD_PRESETS = ['accordion', 'tiles', 'card_stacked', 'card_compact'] as const;\nexport type WhopCardPreset = (typeof WHOP_CARD_PRESETS)[number];\n\n/** The Whop element and layout a preset mounts. */\nexport type WhopCardElement =\n | { element: 'payment'; layout: 'accordion' | 'horizontal' }\n | { element: 'card'; layout: 'stacked' | 'compact' };\n\nexport function whopCardElement(preset: WhopCardPreset): WhopCardElement {\n switch (preset) {\n case 'tiles':\n return { element: 'payment', layout: 'horizontal' };\n case 'card_stacked':\n return { element: 'card', layout: 'stacked' };\n case 'card_compact':\n return { element: 'card', layout: 'compact' };\n default:\n return { element: 'payment', layout: 'accordion' };\n }\n}\n\n/**\n * Whop's `theme.accentColor`: the palette its radios, selected rows and\n * buttons are drawn in. Whop takes a palette name only, never a colour, so\n * `auto` picks the palette nearest the checkout's primary colour\n * (`nearestWhopAccent`).\n */\nexport const WHOP_ACCENT_COLORS = [\n 'auto',\n 'gray',\n 'blue',\n 'indigo',\n 'iris',\n 'violet',\n 'purple',\n 'plum',\n 'pink',\n 'crimson',\n 'ruby',\n 'red',\n 'tomato',\n 'orange',\n 'amber',\n 'yellow',\n 'lime',\n 'grass',\n 'green',\n 'jade',\n 'teal',\n 'cyan',\n 'sky',\n 'mint',\n 'brown',\n 'bronze',\n 'gold',\n] as const;\nexport type WhopAccentColor = (typeof WHOP_ACCENT_COLORS)[number];\n\n/** Each palette's solid step (Radix colour scale step 9, light). */\nconst WHOP_ACCENT_SWATCHES: Readonly<Record<Exclude<WhopAccentColor, 'auto' | 'gray'>, string>> = {\n blue: '#0090ff',\n indigo: '#3e63dd',\n iris: '#5b5bd6',\n violet: '#6e56cf',\n purple: '#8e4ec6',\n plum: '#ab4aba',\n pink: '#d6409f',\n crimson: '#e93d82',\n ruby: '#e54666',\n red: '#e5484d',\n tomato: '#e54d2e',\n orange: '#f76b15',\n amber: '#ffc53d',\n yellow: '#ffe629',\n lime: '#bdee63',\n grass: '#46a758',\n green: '#30a46c',\n jade: '#29a383',\n teal: '#12a594',\n cyan: '#00a2c7',\n sky: '#7ce2fe',\n mint: '#86ead4',\n brown: '#ad7f58',\n bronze: '#a18072',\n gold: '#978365',\n};\n\n/** A palette's solid swatch, for the dashboard's picker. `gray` is neutral. */\nexport function whopAccentSwatch(accent: Exclude<WhopAccentColor, 'auto'>): string {\n return accent === 'gray' ? '#8d8d8d' : WHOP_ACCENT_SWATCHES[accent];\n}\n\nfunction hexRgb(hex: string): [number, number, number] | null {\n const raw = hex.trim().replace(/^#/, '');\n const full = raw.length === 3 ? raw.replace(/./g, (c) => c + c) : raw;\n if (!/^[0-9a-f]{6}$/i.test(full)) return null;\n const n = Number.parseInt(full, 16);\n return [(n >> 16) & 255, (n >> 8) & 255, n & 255];\n}\n\n/** OKLab, so \"nearest\" means nearest to the eye rather than in RGB. */\nfunction oklab([r, g, b]: [number, number, number]): [number, number, number] {\n const lin = (c: number) => {\n const v = c / 255;\n return v <= 0.04045 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4;\n };\n const [lr, lg, lb] = [lin(r), lin(g), lin(b)];\n const l = Math.cbrt(0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb);\n const m = Math.cbrt(0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb);\n const s = Math.cbrt(0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb);\n return [\n 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,\n 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,\n 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s,\n ];\n}\n\n/**\n * The Whop palette nearest a colour. A colour with almost no chroma (black,\n * white, greys) is `gray`; an unreadable one is `blue`, Whop's own default.\n */\nexport function nearestWhopAccent(hex: string): Exclude<WhopAccentColor, 'auto'> {\n const rgb = hexRgb(hex);\n if (!rgb) return 'blue';\n const [L, a, b] = oklab(rgb);\n if (Math.hypot(a, b) < 0.04) return 'gray';\n let best: Exclude<WhopAccentColor, 'auto' | 'gray'> = 'blue';\n let bestDistance = Number.POSITIVE_INFINITY;\n for (const [name, swatch] of Object.entries(WHOP_ACCENT_SWATCHES) as [\n Exclude<WhopAccentColor, 'auto' | 'gray'>,\n string,\n ][]) {\n const swatchRgb = hexRgb(swatch);\n if (!swatchRgb) continue;\n const [sL, sa, sb] = oklab(swatchRgb);\n // Hue and chroma decide the palette; lightness counts for less, since\n // Whop draws each palette in several steps.\n const distance = Math.hypot((L - sL) * 0.5, a - sa, b - sb);\n if (distance < bestDistance) {\n bestDistance = distance;\n best = name;\n }\n }\n return best;\n}\n\n/** The accent Whop is actually given. */\nexport function resolveWhopAccent(\n accent: WhopAccentColor,\n primaryHex: string,\n): Exclude<WhopAccentColor, 'auto'> {\n return accent === 'auto' ? nearestWhopAccent(primaryHex) : accent;\n}\n\n/** Whop's email field `labelMode`: a caption above the box, or inside it until typed. */\nexport const WHOP_EMAIL_LABELS = ['above', 'floating'] as const;\nexport type WhopEmailLabel = (typeof WHOP_EMAIL_LABELS)[number];\n\n/**\n * Whop's `theme.grayColor`: the neutral scale its borders, muted text and\n * backgrounds are drawn in. `auto` lets Whop match it to the accent.\n */\nexport const WHOP_GRAY_COLORS = [\n 'auto',\n 'gray',\n 'mauve',\n 'slate',\n 'sage',\n 'olive',\n 'sand',\n] as const;\nexport type WhopGrayColor = (typeof WHOP_GRAY_COLORS)[number];\n\n/**\n * How much billing address Whop asks a card for. `minimal` is Whop's\n * minimum for a card: name, country and postal code. `full` asks the\n * complete address in the country's own format, for address checks.\n */\nexport const WHOP_BILLING_DETAILS = ['minimal', 'full'] as const;\nexport type WhopBillingDetails = (typeof WHOP_BILLING_DETAILS)[number];\n\n/**\n * The corners of Whop's form: its fields, the joined card and address groups,\n * the method list and the tiles. `checkout` follows the checkout's own input\n * radius (`radiusInput`); the rest name a radius of the same scale.\n */\nexport const WHOP_RADII = ['checkout', 'square', 'small', 'medium', 'large'] as const;\nexport type WhopRadius = (typeof WHOP_RADII)[number];\n\n/**\n * Whether Whop's fields, groups and method list keep the soft drop shadow\n * Whop draws under them, or lie flat like the checkout's own fields.\n */\nexport const WHOP_SHADOWS = ['none', 'soft'] as const;\nexport type WhopShadow = (typeof WHOP_SHADOWS)[number];\n\n/**\n * How the method list marks the chosen method: Whop's radio dots, the dots\n * with the chosen method tinted in the brand colour, or the tint alone.\n * Tiles always ring the chosen tile.\n */\nexport const WHOP_SELECTIONS = ['radio_tint', 'radio', 'tint'] as const;\nexport type WhopSelection = (typeof WHOP_SELECTIONS)[number];\n\n/** The Whop settings a look sets together. Colours stay the shop's. */\nexport interface WhopLookSettings {\n whopCardPreset: WhopCardPreset;\n // Every look asks Whop's card minimum: a look is a design, and the full\n // address is a separate choice that names no look.\n whopBillingDetails: WhopBillingDetails;\n whopSeparated: boolean;\n whopFieldChrome: CardFieldChrome;\n whopEmailLabel: WhopEmailLabel;\n whopRadius: WhopRadius;\n whopShadow: WhopShadow;\n whopMethodIcons: boolean;\n whopSelection: WhopSelection;\n}\n\n/**\n * Curated looks for the Whop form: each sets the form, the chrome, the\n * captions, the corners, the shadow and how the chosen method is marked, as\n * one choice the dashboard offers before the single settings. `standard` is\n * the default branding's own look.\n */\nexport const WHOP_LOOKS = [\n 'standard',\n 'clean',\n 'whop',\n 'cards',\n 'tiles',\n 'soft',\n 'minimal',\n] as const;\nexport type WhopLook = (typeof WHOP_LOOKS)[number];\n\nexport const WHOP_LOOK_SETTINGS: Readonly<Record<WhopLook, Readonly<WhopLookSettings>>> = {\n // The fewest fields Whop takes a card with, laid out as Stripe's card\n // form: the email, the number above expiry and code, then one group of\n // name, country (preselected) and postal code. Whop refuses a card without\n // any of them. The wallets are the shop's own express buttons.\n standard: {\n whopCardPreset: 'card_stacked',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'checkout',\n whopShadow: 'soft',\n whopMethodIcons: true,\n whopSelection: 'radio_tint',\n },\n // Flat fields like the checkout's own, the method list with the chosen\n // method tinted beside its radio.\n clean: {\n whopCardPreset: 'accordion',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'checkout',\n whopShadow: 'none',\n whopMethodIcons: true,\n whopSelection: 'radio_tint',\n },\n // Whop's own form: its corners, its soft shadow, its radio dots.\n whop: {\n whopCardPreset: 'accordion',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'small',\n whopShadow: 'soft',\n whopMethodIcons: true,\n whopSelection: 'radio',\n },\n // Each method its own raised card, the chosen one tinted, no dots.\n cards: {\n whopCardPreset: 'accordion',\n whopBillingDetails: 'minimal',\n whopSeparated: true,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'medium',\n whopShadow: 'soft',\n whopMethodIcons: true,\n whopSelection: 'tint',\n },\n // The methods as tiles above the card's fields.\n tiles: {\n whopCardPreset: 'tiles',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'checkout',\n whopShadow: 'none',\n whopMethodIcons: true,\n whopSelection: 'radio_tint',\n },\n // Filled fields with the captions inside, round corners.\n soft: {\n whopCardPreset: 'accordion',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'filled',\n whopEmailLabel: 'floating',\n whopRadius: 'large',\n whopShadow: 'none',\n whopMethodIcons: false,\n whopSelection: 'radio_tint',\n },\n // The card alone on one line, underlined, captions inside.\n minimal: {\n whopCardPreset: 'card_compact',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'underline',\n whopEmailLabel: 'floating',\n whopRadius: 'square',\n whopShadow: 'none',\n whopMethodIcons: true,\n whopSelection: 'radio_tint',\n },\n};\n\n/** The look a branding's Whop settings match exactly, or `null` for a custom mix. */\nexport function matchWhopLook(settings: WhopLookSettings): WhopLook | null {\n const keys = Object.keys(WHOP_LOOK_SETTINGS.clean) as (keyof WhopLookSettings)[];\n return (\n WHOP_LOOKS.find((look) =>\n keys.every((key) => WHOP_LOOK_SETTINGS[look][key] === settings[key]),\n ) ?? null\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-GW7IHYXR.cjs","../src/resources/buyerConversations.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACyBO,IAAM,mBAAA,EAAN,MAAyB;AAAA,EAC9B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,MAAM,IAAA,CAAK,MAAA,EAAqE;AAC9E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,sBAAA,EAAwB;AAAA,MACjD,KAAA,EAAO,wCAAA,MAAS,EAAQ,CAAC,QAAQ,CAAC;AAAA,IACpC,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAM,KAAA,CAAM,MAAA,EAAkE;AAC5E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,sBAAA,EAAwB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACtE;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAM,QAAA,CACJ,EAAA,EACA,MAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,qBAAA,EAAwB,kBAAA,CAAmB,EAAE,CAAC,CAAA,CAAA;AAChE,MAAA;AACR,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AASqC,EAAA;AACuC,IAAA;AAClE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ+F,EAAA;AACnB,IAAA;AAClE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAewC,EAAA;AACZ,IAAA;AACoB,IAAA;AACM,IAAA;AACb,IAAA;AACkB,IAAA;AACjD,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAM8D,EAAA;AAChD,IAAA;AACV,MAAA;AACuD,MAAA;AAChC,MAAA;AACzB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAM4D,EAAA;AAC9C,IAAA;AACV,MAAA;AACuD,MAAA;AACzD,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAM8D,EAAA;AACc,IAAA;AAC5E,EAAA;AAAA;AAAA;AAAA;AAAA;AAM6F,EAAA;AACjB,IAAA;AAClE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUqC,EAAA;AACuC,IAAA;AAClE,MAAA;AACP,IAAA;AACH,EAAA;AACF;AD9C8E;AACA;AACA;AACA","file":"/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-GW7IHYXR.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\nimport type {\n BuyerConversationAssign,\n BuyerConversationAttachment,\n BuyerConversationDetail,\n BuyerConversationList,\n BuyerConversationListQuery,\n BuyerConversationMessage,\n BuyerConversationMessageCreate,\n BuyerConversationMessagesQuery,\n BuyerConversationNote,\n BuyerConversationNoteCreate,\n BuyerConversationStart,\n BuyerConversationStatusUpdate,\n BuyerConversationSummary,\n} from '../types';\nimport { csvQuery } from '../listQuery';\n\n/**\n * Conversations between buyers and the shop's team. A buyer writes from the\n * buyer account or a shop's portal; the team reads and answers here. There is\n * one conversation per buyer, shop and mode, whoever on the team answers.\n *\n * Every route needs a dashboard session. The `BuyerConversations` area at\n * `Read` lists and opens conversations, `Edit` answers, starts one and adds\n * internal notes and uploads files for an answer, and `Write` assigns, closes and reopens. A caller scoped to one shop reaches\n * that shop's conversations only. Answers carry the team member's first name\n * to the buyer, never more of their name.\n */\nexport class BuyerConversations {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * One page of the inbox, the latest message first unless `sort_by` says\n * otherwise, filtered by shop, status (one or several), assignee, mode or\n * buyer. `GET /buyer-conversations`\n */\n async list(params?: BuyerConversationListQuery): Promise<BuyerConversationList> {\n return this.request('GET', '/buyer-conversations', {\n query: csvQuery(params, ['status']),\n });\n }\n\n /**\n * Starts the conversation with a buyer at one shop, or adds to the one that\n * exists, with a first message. `POST /buyer-conversations`\n */\n async start(params: BuyerConversationStart): Promise<BuyerConversationDetail> {\n return this.request('POST', '/buyer-conversations', { body: params });\n }\n\n /**\n * One conversation and its newest messages, oldest first; `before` pages\n * back. `GET /buyer-conversations/{id}`\n */\n async retrieve(\n id: string,\n params?: BuyerConversationMessagesQuery,\n ): Promise<BuyerConversationDetail> {\n return this.request('GET', `/buyer-conversations/${encodeURIComponent(id)}`, {\n query: params as Record<string, string | number | null | undefined>,\n });\n }\n\n /**\n * A team member's answer. A closed conversation refuses it.\n * `POST /buyer-conversations/{id}/messages`\n */\n async reply(\n id: string,\n params: BuyerConversationMessageCreate,\n ): Promise<BuyerConversationMessage> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/messages`, {\n body: params,\n });\n }\n\n /**\n * A team member's internal note. Only the team reads it: the buyer never\n * sees a note, and a note does not move the conversation or mark it unread.\n * A closed conversation takes notes as well.\n * `POST /buyer-conversations/{id}/notes`\n */\n async addNote(id: string, params: BuyerConversationNoteCreate): Promise<BuyerConversationNote> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/notes`, {\n body: params,\n });\n }\n\n /**\n * Upload a file for the caller's next answer, under the shop's attachment\n * rules (`attachment_rules` on the conversation). It belongs to the caller\n * until an answer names it in `attachments`; one no answer took within a\n * day is cleared. Uploading again with the same `clientUploadId` returns\n * the file the first upload stored.\n * `POST /buyer-conversation-files/{conversation}`\n */\n async uploadFile(\n id: string,\n file: Blob,\n clientUploadId: string,\n fileName?: string,\n ): Promise<BuyerConversationAttachment> {\n const form = new FormData();\n form.append('client_upload_id', clientUploadId);\n if (fileName === undefined) form.append('file', file);\n else form.append('file', file, fileName);\n return this.request('POST', `/buyer-conversation-files/${encodeURIComponent(id)}`, {\n body: form,\n });\n }\n\n /**\n * Download a file a message of the conversation carries.\n * `GET /buyer-conversation-files/{conversation}/{file}`\n */\n async downloadFile(id: string, fileId: string): Promise<Blob> {\n return this.request(\n 'GET',\n `/buyer-conversation-files/${encodeURIComponent(id)}/${encodeURIComponent(fileId)}`,\n { responseType: 'blob' },\n );\n }\n\n /**\n * Remove a file the caller uploaded that no answer took.\n * `DELETE /buyer-conversation-files/{conversation}/{file}`\n */\n async removeFile(id: string, fileId: string): Promise<void> {\n return this.request(\n 'DELETE',\n `/buyer-conversation-files/${encodeURIComponent(id)}/${encodeURIComponent(fileId)}`,\n );\n }\n\n /**\n * The team has read the conversation up to its last accepted message.\n * `POST /buyer-conversations/{id}/read`\n */\n async markRead(id: string): Promise<BuyerConversationSummary> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/read`);\n }\n\n /**\n * Hands the conversation to a team member, to the caller with `me`, or to\n * nobody with `null`. `POST /buyer-conversations/{id}/assign`\n */\n async assign(id: string, params: BuyerConversationAssign): Promise<BuyerConversationSummary> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/assign`, {\n body: params,\n });\n }\n\n /**\n * Closes or reopens the conversation. Closing moves no money and decides\n * no case; it stops new messages until reopened.\n * `POST /buyer-conversations/{id}/status`\n */\n async setStatus(\n id: string,\n params: BuyerConversationStatusUpdate,\n ): Promise<BuyerConversationSummary> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/status`, {\n body: params,\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w2-sdk-publish-0492/dist/chunk-GW7IHYXR.cjs","../src/resources/buyerConversations.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACyBO,IAAM,mBAAA,EAAN,MAAyB;AAAA,EAC9B,WAAA,CAA6B,OAAA,EAAoB;AAAp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ACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAM8D,EAAA;AACc,IAAA;AAC5E,EAAA;AAAA;AAAA;AAAA;AAAA;AAM6F,EAAA;AACjB,IAAA;AAClE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUqC,EAAA;AACuC,IAAA;AAClE,MAAA;AACP,IAAA;AACH,EAAA;AACF;AD9C8E;AACA;AACA;AACA","file":"/tmp/w2-sdk-publish-0492/dist/chunk-GW7IHYXR.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\nimport type {\n BuyerConversationAssign,\n BuyerConversationAttachment,\n BuyerConversationDetail,\n BuyerConversationList,\n BuyerConversationListQuery,\n BuyerConversationMessage,\n BuyerConversationMessageCreate,\n BuyerConversationMessagesQuery,\n BuyerConversationNote,\n BuyerConversationNoteCreate,\n BuyerConversationStart,\n BuyerConversationStatusUpdate,\n BuyerConversationSummary,\n} from '../types';\nimport { csvQuery } from '../listQuery';\n\n/**\n * Conversations between buyers and the shop's team. A buyer writes from the\n * buyer account or a shop's portal; the team reads and answers here. There is\n * one conversation per buyer, shop and mode, whoever on the team answers.\n *\n * Every route needs a dashboard session. The `BuyerConversations` area at\n * `Read` lists and opens conversations, `Edit` answers, starts one and adds\n * internal notes and uploads files for an answer, and `Write` assigns, closes and reopens. A caller scoped to one shop reaches\n * that shop's conversations only. Answers carry the team member's first name\n * to the buyer, never more of their name.\n */\nexport class BuyerConversations {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * One page of the inbox, the latest message first unless `sort_by` says\n * otherwise, filtered by shop, status (one or several), assignee, mode or\n * buyer. `GET /buyer-conversations`\n */\n async list(params?: BuyerConversationListQuery): Promise<BuyerConversationList> {\n return this.request('GET', '/buyer-conversations', {\n query: csvQuery(params, ['status']),\n });\n }\n\n /**\n * Starts the conversation with a buyer at one shop, or adds to the one that\n * exists, with a first message. `POST /buyer-conversations`\n */\n async start(params: BuyerConversationStart): Promise<BuyerConversationDetail> {\n return this.request('POST', '/buyer-conversations', { body: params });\n }\n\n /**\n * One conversation and its newest messages, oldest first; `before` pages\n * back. `GET /buyer-conversations/{id}`\n */\n async retrieve(\n id: string,\n params?: BuyerConversationMessagesQuery,\n ): Promise<BuyerConversationDetail> {\n return this.request('GET', `/buyer-conversations/${encodeURIComponent(id)}`, {\n query: params as Record<string, string | number | null | undefined>,\n });\n }\n\n /**\n * A team member's answer. A closed conversation refuses it.\n * `POST /buyer-conversations/{id}/messages`\n */\n async reply(\n id: string,\n params: BuyerConversationMessageCreate,\n ): Promise<BuyerConversationMessage> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/messages`, {\n body: params,\n });\n }\n\n /**\n * A team member's internal note. Only the team reads it: the buyer never\n * sees a note, and a note does not move the conversation or mark it unread.\n * A closed conversation takes notes as well.\n * `POST /buyer-conversations/{id}/notes`\n */\n async addNote(id: string, params: BuyerConversationNoteCreate): Promise<BuyerConversationNote> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/notes`, {\n body: params,\n });\n }\n\n /**\n * Upload a file for the caller's next answer, under the shop's attachment\n * rules (`attachment_rules` on the conversation). It belongs to the caller\n * until an answer names it in `attachments`; one no answer took within a\n * day is cleared. Uploading again with the same `clientUploadId` returns\n * the file the first upload stored.\n * `POST /buyer-conversation-files/{conversation}`\n */\n async uploadFile(\n id: string,\n file: Blob,\n clientUploadId: string,\n fileName?: string,\n ): Promise<BuyerConversationAttachment> {\n const form = new FormData();\n form.append('client_upload_id', clientUploadId);\n if (fileName === undefined) form.append('file', file);\n else form.append('file', file, fileName);\n return this.request('POST', `/buyer-conversation-files/${encodeURIComponent(id)}`, {\n body: form,\n });\n }\n\n /**\n * Download a file a message of the conversation carries.\n * `GET /buyer-conversation-files/{conversation}/{file}`\n */\n async downloadFile(id: string, fileId: string): Promise<Blob> {\n return this.request(\n 'GET',\n `/buyer-conversation-files/${encodeURIComponent(id)}/${encodeURIComponent(fileId)}`,\n { responseType: 'blob' },\n );\n }\n\n /**\n * Remove a file the caller uploaded that no answer took.\n * `DELETE /buyer-conversation-files/{conversation}/{file}`\n */\n async removeFile(id: string, fileId: string): Promise<void> {\n return this.request(\n 'DELETE',\n `/buyer-conversation-files/${encodeURIComponent(id)}/${encodeURIComponent(fileId)}`,\n );\n }\n\n /**\n * The team has read the conversation up to its last accepted message.\n * `POST /buyer-conversations/{id}/read`\n */\n async markRead(id: string): Promise<BuyerConversationSummary> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/read`);\n }\n\n /**\n * Hands the conversation to a team member, to the caller with `me`, or to\n * nobody with `null`. `POST /buyer-conversations/{id}/assign`\n */\n async assign(id: string, params: BuyerConversationAssign): Promise<BuyerConversationSummary> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/assign`, {\n body: params,\n });\n }\n\n /**\n * Closes or reopens the conversation. Closing moves no money and decides\n * no case; it stops new messages until reopened.\n * `POST /buyer-conversations/{id}/status`\n */\n async setStatus(\n id: string,\n params: BuyerConversationStatusUpdate,\n ): Promise<BuyerConversationSummary> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/status`, {\n body: params,\n });\n }\n}\n"]}