@delopay/sdk 0.499.0 → 0.501.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/dist/airwallexCard.cjs.map +1 -1
  2. package/dist/branding.cjs.map +1 -1
  3. package/dist/cardFormStyles.cjs.map +1 -1
  4. package/dist/checkoutSession.cjs +2 -2
  5. package/dist/checkoutSession.cjs.map +1 -1
  6. package/dist/checkoutSession.js +1 -1
  7. package/dist/chunk-244VZFFO.cjs.map +1 -1
  8. package/dist/chunk-2IJRBJXW.cjs.map +1 -1
  9. package/dist/{chunk-I5KOMBQ3.js → chunk-2OJJ3KGP.js} +25 -1
  10. package/dist/chunk-2OJJ3KGP.js.map +1 -0
  11. package/dist/chunk-34PC72O7.cjs.map +1 -1
  12. package/dist/chunk-3GBWQWTP.cjs.map +1 -1
  13. package/dist/chunk-3YBBJT3Y.cjs.map +1 -1
  14. package/dist/chunk-44QBWVRS.cjs.map +1 -1
  15. package/dist/chunk-4EKAWNYI.cjs.map +1 -1
  16. package/dist/chunk-4LN4BR2T.cjs.map +1 -1
  17. package/dist/chunk-4T4XHPYN.cjs.map +1 -1
  18. package/dist/chunk-575SNLIT.cjs.map +1 -1
  19. package/dist/chunk-5CITBN33.cjs.map +1 -1
  20. package/dist/chunk-5HCKC4HF.cjs.map +1 -1
  21. package/dist/chunk-5O2JSQYA.cjs.map +1 -1
  22. package/dist/chunk-5QS67SBO.cjs.map +1 -1
  23. package/dist/chunk-6EBY2KKL.cjs.map +1 -1
  24. package/dist/chunk-6LFOM6HV.cjs.map +1 -1
  25. package/dist/chunk-6LOWE2YI.cjs.map +1 -1
  26. package/dist/chunk-6LSG5Z4T.cjs.map +1 -1
  27. package/dist/chunk-6SU2MTN2.cjs.map +1 -1
  28. package/dist/chunk-6YCDLSIU.cjs.map +1 -1
  29. package/dist/chunk-75E5WNJG.cjs.map +1 -1
  30. package/dist/chunk-7JV6VVO7.cjs.map +1 -1
  31. package/dist/chunk-7NKJD5ST.cjs.map +1 -1
  32. package/dist/chunk-7QZCUXWB.cjs.map +1 -1
  33. package/dist/chunk-7VXF5D67.cjs.map +1 -1
  34. package/dist/chunk-ABWAYMN5.cjs.map +1 -1
  35. package/dist/chunk-ACZ2R47X.cjs.map +1 -1
  36. package/dist/chunk-AYUYJO3I.cjs.map +1 -1
  37. package/dist/chunk-BCA3TCGS.cjs.map +1 -1
  38. package/dist/chunk-BP6KDQ6I.cjs.map +1 -1
  39. package/dist/chunk-BRY3W7N3.cjs.map +1 -1
  40. package/dist/chunk-BT3UAUEV.cjs.map +1 -1
  41. package/dist/chunk-CCN44NZJ.cjs.map +1 -1
  42. package/dist/chunk-CR3JBTP3.cjs.map +1 -1
  43. package/dist/chunk-DJASVBOJ.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-F6QJB4XP.cjs.map +1 -1
  52. package/dist/chunk-F6S3WCCB.cjs.map +1 -1
  53. package/dist/chunk-FQRC4NJG.cjs.map +1 -1
  54. package/dist/chunk-FTWGI7UZ.cjs.map +1 -1
  55. package/dist/chunk-FYISDU2Y.cjs.map +1 -1
  56. package/dist/chunk-GG52SAHA.cjs.map +1 -1
  57. package/dist/chunk-GK5FWN4H.cjs.map +1 -1
  58. package/dist/chunk-GSQN5EOO.cjs.map +1 -1
  59. package/dist/chunk-GW7IHYXR.cjs.map +1 -1
  60. package/dist/chunk-GWSVQXEY.cjs.map +1 -1
  61. package/dist/chunk-HLKFUOAQ.cjs.map +1 -1
  62. package/dist/chunk-HLYGHP6F.cjs.map +1 -1
  63. package/dist/chunk-HSJABE7X.cjs.map +1 -1
  64. package/dist/chunk-I2W7AO4B.cjs.map +1 -1
  65. package/dist/chunk-I2XGNALG.cjs.map +1 -1
  66. package/dist/{chunk-K3XXGAOR.cjs → chunk-IDY2LP4Q.cjs} +3 -3
  67. package/dist/chunk-IDY2LP4Q.cjs.map +1 -0
  68. package/dist/chunk-IKXGA2Z5.cjs.map +1 -1
  69. package/dist/{chunk-7H2VFIPS.js → chunk-IPN7D5PP.js} +4 -4
  70. package/dist/chunk-IR2LFKKA.cjs.map +1 -1
  71. package/dist/{chunk-ZMJT2YPZ.cjs → chunk-IUXCU3DW.cjs} +7 -7
  72. package/dist/chunk-IUXCU3DW.cjs.map +1 -0
  73. package/dist/chunk-J4ZB7MU4.cjs.map +1 -1
  74. package/dist/chunk-J5RPSRBQ.cjs.map +1 -1
  75. package/dist/chunk-JPPRDMTJ.cjs.map +1 -1
  76. package/dist/chunk-K5Q2H3VD.cjs.map +1 -1
  77. package/dist/chunk-KD5Y2YWK.cjs.map +1 -1
  78. package/dist/chunk-KJDMNF2T.cjs.map +1 -1
  79. package/dist/chunk-KLONGJCL.cjs.map +1 -1
  80. package/dist/chunk-LJ2EG6JK.cjs.map +1 -1
  81. package/dist/chunk-LLYY4TCZ.cjs.map +1 -1
  82. package/dist/chunk-LYIBTVK6.cjs.map +1 -1
  83. package/dist/chunk-M3HWE7KT.cjs.map +1 -1
  84. package/dist/chunk-M3SJHFT4.cjs.map +1 -1
  85. package/dist/chunk-MLG6NXI6.cjs.map +1 -1
  86. package/dist/chunk-MYAXAWBQ.cjs.map +1 -1
  87. package/dist/chunk-NFB3S2E6.cjs.map +1 -1
  88. package/dist/chunk-NULOAF7W.cjs.map +1 -1
  89. package/dist/chunk-NX36HDXE.cjs.map +1 -1
  90. package/dist/chunk-NYL3BNHR.cjs.map +1 -1
  91. package/dist/chunk-O4AYHLQX.cjs.map +1 -1
  92. package/dist/{chunk-YFRAI34Y.cjs → chunk-O53VOQK7.cjs} +67 -1
  93. package/dist/chunk-O53VOQK7.cjs.map +1 -0
  94. package/dist/chunk-OAEKP665.cjs.map +1 -1
  95. package/dist/chunk-ODPNVNYE.cjs.map +1 -1
  96. package/dist/chunk-OG2KJAYD.cjs.map +1 -1
  97. package/dist/chunk-OYZP6NF6.cjs.map +1 -1
  98. package/dist/chunk-P4UILJVU.cjs.map +1 -1
  99. package/dist/chunk-P7DYLUUI.cjs.map +1 -1
  100. package/dist/chunk-PKAE6AQT.cjs.map +1 -1
  101. package/dist/chunk-Q7M7DO7M.cjs.map +1 -1
  102. package/dist/chunk-QKUWFMZP.cjs.map +1 -1
  103. package/dist/chunk-QRSA72B3.cjs.map +1 -1
  104. package/dist/chunk-QYNRNDIY.cjs.map +1 -1
  105. package/dist/chunk-R4GA6BVP.cjs.map +1 -1
  106. package/dist/chunk-R5VYSZ3Q.cjs.map +1 -1
  107. package/dist/chunk-RHFUXHQN.cjs.map +1 -1
  108. package/dist/{chunk-CAMALM35.cjs → chunk-RHT27R27.cjs} +25 -1
  109. package/dist/chunk-RHT27R27.cjs.map +1 -0
  110. package/dist/chunk-RI42IDRR.cjs.map +1 -1
  111. package/dist/chunk-S77LQWYC.cjs.map +1 -1
  112. package/dist/chunk-S7SBNOGS.cjs.map +1 -1
  113. package/dist/{chunk-CQQW5JU7.js → chunk-SAXTZZQL.js} +2 -2
  114. package/dist/{chunk-OEREK6NU.js → chunk-TDCB2FQI.js} +67 -1
  115. package/dist/chunk-TDCB2FQI.js.map +1 -0
  116. package/dist/chunk-TMAJE5P2.cjs.map +1 -1
  117. package/dist/chunk-TNIJ6OSH.cjs.map +1 -1
  118. package/dist/chunk-U3JK7NBG.cjs.map +1 -1
  119. package/dist/chunk-UGSM7RJ2.cjs.map +1 -1
  120. package/dist/chunk-UKLZAOLW.cjs.map +1 -1
  121. package/dist/chunk-UTCXNBID.cjs.map +1 -1
  122. package/dist/chunk-V47G7P6L.cjs.map +1 -1
  123. package/dist/chunk-VH5A6SMU.cjs.map +1 -1
  124. package/dist/chunk-VHMH4QMY.cjs.map +1 -1
  125. package/dist/chunk-VYC7WUM5.cjs.map +1 -1
  126. package/dist/chunk-W457XUA6.cjs.map +1 -1
  127. package/dist/{chunk-DDXERBGG.js → chunk-W7KJTMAF.js} +12 -1
  128. package/dist/{chunk-PYNHK6AP.cjs.map → chunk-W7KJTMAF.js.map} +1 -1
  129. package/dist/chunk-WHDI3TMP.cjs.map +1 -1
  130. package/dist/chunk-WITCPKNL.cjs.map +1 -1
  131. package/dist/chunk-WX6NP7UU.cjs.map +1 -1
  132. package/dist/chunk-XQLRIBVR.cjs.map +1 -1
  133. package/dist/chunk-Y7LSSRNJ.cjs.map +1 -1
  134. package/dist/chunk-YK3P5QNZ.cjs.map +1 -1
  135. package/dist/chunk-YW4DVKNT.cjs.map +1 -1
  136. package/dist/{chunk-PYNHK6AP.cjs → chunk-Z7AVB6VI.cjs} +12 -1
  137. package/dist/chunk-Z7AVB6VI.cjs.map +1 -0
  138. package/dist/chunk-ZGMIHHGL.cjs.map +1 -1
  139. package/dist/chunk-ZKPVUCQV.cjs.map +1 -1
  140. package/dist/chunk-ZUULK36E.cjs.map +1 -1
  141. package/dist/client.cjs +2 -2
  142. package/dist/client.cjs.map +1 -1
  143. package/dist/client.js +1 -1
  144. package/dist/core.cjs.map +1 -1
  145. package/dist/currencies.cjs.map +1 -1
  146. package/dist/enigmaCardForm.cjs.map +1 -1
  147. package/dist/error.cjs.map +1 -1
  148. package/dist/eventStream.cjs.map +1 -1
  149. package/dist/exportDownload.cjs.map +1 -1
  150. package/dist/feeProgram.cjs.map +1 -1
  151. package/dist/index.cjs +6 -6
  152. package/dist/index.cjs.map +1 -1
  153. package/dist/index.d.cts +1 -1
  154. package/dist/index.d.ts +1 -1
  155. package/dist/index.js +5 -5
  156. package/dist/internal/resources/admin.cjs.map +1 -1
  157. package/dist/internal/resources/adminBranding.cjs.map +1 -1
  158. package/dist/internal/resources/adminCheckoutDomains.cjs.map +1 -1
  159. package/dist/internal/resources/adminFeePlans.cjs.map +1 -1
  160. package/dist/internal/resources/adminFileScans.cjs.map +1 -1
  161. package/dist/internal/resources/adminIndustries.cjs.map +1 -1
  162. package/dist/internal/resources/adminLive.cjs.map +1 -1
  163. package/dist/internal/resources/adminNotices.cjs.map +1 -1
  164. package/dist/internal/resources/adminPortal.cjs.map +1 -1
  165. package/dist/internal/resources/adminPricing.cjs.map +1 -1
  166. package/dist/internal/resources/adminSupport.cjs.map +1 -1
  167. package/dist/internal/resources/auditLogs.cjs.map +1 -1
  168. package/dist/internal/resources/cache.cjs.map +1 -1
  169. package/dist/internal/resources/cardIssuers.cjs.map +1 -1
  170. package/dist/internal/resources/configs.cjs.map +1 -1
  171. package/dist/internal/resources/connectorRestrictionRules.cjs.map +1 -1
  172. package/dist/internal/resources/connectorRestrictions.cjs.map +1 -1
  173. package/dist/internal/resources/diagnostic.cjs.map +1 -1
  174. package/dist/internal/resources/gsm.cjs.map +1 -1
  175. package/dist/internal/resources/nativeRenewals.cjs.map +1 -1
  176. package/dist/internal/resources/platformBilling.cjs.map +1 -1
  177. package/dist/internal/resources/platformFees.cjs.map +1 -1
  178. package/dist/internal/resources/platformMessageTemplates.cjs.map +1 -1
  179. package/dist/internal/resources/platformSettings.cjs.map +1 -1
  180. package/dist/internal.cjs +7 -7
  181. package/dist/internal.cjs.map +1 -1
  182. package/dist/internal.d.cts +1 -1
  183. package/dist/internal.d.ts +1 -1
  184. package/dist/internal.js +5 -5
  185. package/dist/listQuery.cjs.map +1 -1
  186. package/dist/panes.cjs.map +1 -1
  187. package/dist/paymentPresentation.cjs.map +1 -1
  188. package/dist/recordCounter.cjs.map +1 -1
  189. package/dist/resources/aiTools.cjs.map +1 -1
  190. package/dist/resources/analytics.cjs.map +1 -1
  191. package/dist/resources/analyticsDashboard.cjs.map +1 -1
  192. package/dist/resources/apiKeys.cjs.map +1 -1
  193. package/dist/resources/audit.cjs.map +1 -1
  194. package/dist/resources/authentication.cjs.map +1 -1
  195. package/dist/resources/availabilityOverrides.cjs.map +1 -1
  196. package/dist/resources/billing.cjs.map +1 -1
  197. package/dist/resources/buyerAccount.cjs.map +1 -1
  198. package/dist/resources/buyerBlocklist.cjs.map +1 -1
  199. package/dist/resources/buyerConversations.cjs.map +1 -1
  200. package/dist/resources/buyerEvidenceReviews.cjs.map +1 -1
  201. package/dist/resources/buyerPortal.cjs +2 -2
  202. package/dist/resources/buyerPortal.cjs.map +1 -1
  203. package/dist/resources/buyerPortal.d.cts +7 -1
  204. package/dist/resources/buyerPortal.d.ts +7 -1
  205. package/dist/resources/buyerPortal.js +1 -1
  206. package/dist/resources/cards.cjs.map +1 -1
  207. package/dist/resources/chargebackPrevention.cjs.map +1 -1
  208. package/dist/resources/checkoutDomains.cjs.map +1 -1
  209. package/dist/resources/checkoutMethods.cjs.map +1 -1
  210. package/dist/resources/checkoutRecovery.cjs.map +1 -1
  211. package/dist/resources/checkoutTemplates.cjs.map +1 -1
  212. package/dist/resources/connectors.cjs.map +1 -1
  213. package/dist/resources/contentEncryption.cjs.map +1 -1
  214. package/dist/resources/costRules.cjs.map +1 -1
  215. package/dist/resources/customers.cjs.map +1 -1
  216. package/dist/resources/deploymentBranding.cjs.map +1 -1
  217. package/dist/resources/disputes.cjs.map +1 -1
  218. package/dist/resources/ephemeralKeys.cjs.map +1 -1
  219. package/dist/resources/events.cjs.map +1 -1
  220. package/dist/resources/export.cjs.map +1 -1
  221. package/dist/resources/externalRecords.cjs.map +1 -1
  222. package/dist/resources/featureMatrix.cjs.map +1 -1
  223. package/dist/resources/fees.cjs.map +1 -1
  224. package/dist/resources/files.cjs.map +1 -1
  225. package/dist/resources/forex.cjs.map +1 -1
  226. package/dist/resources/identityVerifications.cjs.map +1 -1
  227. package/dist/resources/industries.cjs.map +1 -1
  228. package/dist/resources/invoiceSettings.cjs.map +1 -1
  229. package/dist/resources/invoices.cjs.map +1 -1
  230. package/dist/resources/live.cjs.map +1 -1
  231. package/dist/resources/mandates.cjs.map +1 -1
  232. package/dist/resources/merchantAccounts.cjs.map +1 -1
  233. package/dist/resources/messageTemplates.cjs.map +1 -1
  234. package/dist/resources/notices.cjs.map +1 -1
  235. package/dist/resources/operationLimits.cjs.map +1 -1
  236. package/dist/resources/paymentLinks.cjs.map +1 -1
  237. package/dist/resources/paymentMethods.cjs.map +1 -1
  238. package/dist/resources/payments.cjs.map +1 -1
  239. package/dist/resources/payoutDestinations.cjs.map +1 -1
  240. package/dist/resources/payouts.cjs.map +1 -1
  241. package/dist/resources/paypalDisputes.cjs.map +1 -1
  242. package/dist/resources/persons.cjs.map +1 -1
  243. package/dist/resources/poll.cjs.map +1 -1
  244. package/dist/resources/processorCosts.cjs.map +1 -1
  245. package/dist/resources/processorImports.cjs.map +1 -1
  246. package/dist/resources/products.cjs.map +1 -1
  247. package/dist/resources/profileAcquirers.cjs.map +1 -1
  248. package/dist/resources/profiles.cjs.map +1 -1
  249. package/dist/resources/projects.cjs.map +1 -1
  250. package/dist/resources/refunds.cjs.map +1 -1
  251. package/dist/resources/regions.cjs.map +1 -1
  252. package/dist/resources/relay.cjs.map +1 -1
  253. package/dist/resources/risk.cjs.map +1 -1
  254. package/dist/resources/routing.cjs.map +1 -1
  255. package/dist/resources/search.cjs.map +1 -1
  256. package/dist/resources/sellToRestrictions.cjs.map +1 -1
  257. package/dist/resources/settings.cjs.map +1 -1
  258. package/dist/resources/settlement.cjs.map +1 -1
  259. package/dist/resources/shareLinks.cjs.map +1 -1
  260. package/dist/resources/shopLabels.cjs.map +1 -1
  261. package/dist/resources/shopify.cjs +2 -2
  262. package/dist/resources/shopify.cjs.map +1 -1
  263. package/dist/resources/shopify.d.cts +41 -4
  264. package/dist/resources/shopify.d.ts +41 -4
  265. package/dist/resources/shopify.js +1 -1
  266. package/dist/resources/shops.cjs.map +1 -1
  267. package/dist/resources/stripeConnect.cjs.map +1 -1
  268. package/dist/resources/subscriptions.cjs +2 -2
  269. package/dist/resources/subscriptions.cjs.map +1 -1
  270. package/dist/resources/subscriptions.d.cts +6 -1
  271. package/dist/resources/subscriptions.d.ts +6 -1
  272. package/dist/resources/subscriptions.js +1 -1
  273. package/dist/resources/support.cjs.map +1 -1
  274. package/dist/resources/threeDsRules.cjs.map +1 -1
  275. package/dist/resources/users.cjs.map +1 -1
  276. package/dist/resources/vatRates.cjs.map +1 -1
  277. package/dist/resources/verification.cjs.map +1 -1
  278. package/dist/resources/webhooks.cjs.map +1 -1
  279. package/dist/resources/whopResolutionCases.cjs.map +1 -1
  280. package/dist/trustedOrigins.cjs.map +1 -1
  281. package/dist/types.cjs.map +1 -1
  282. package/dist/types.d.cts +222 -3
  283. package/dist/types.d.ts +222 -3
  284. package/package.json +17 -19
  285. package/dist/chunk-CAMALM35.cjs.map +0 -1
  286. package/dist/chunk-DDXERBGG.js.map +0 -1
  287. package/dist/chunk-I5KOMBQ3.js.map +0 -1
  288. package/dist/chunk-K3XXGAOR.cjs.map +0 -1
  289. package/dist/chunk-OEREK6NU.js.map +0 -1
  290. package/dist/chunk-YFRAI34Y.cjs.map +0 -1
  291. package/dist/chunk-ZMJT2YPZ.cjs.map +0 -1
  292. /package/dist/{chunk-7H2VFIPS.js.map → chunk-IPN7D5PP.js.map} +0 -0
  293. /package/dist/{chunk-CQQW5JU7.js.map → chunk-SAXTZZQL.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/publish-sdk-04990/dist/airwallexCard.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,i4CAAC","file":"/tmp/publish-sdk-04990/dist/airwallexCard.cjs"}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/airwallexCard.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,i4CAAC","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/airwallexCard.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/publish-sdk-04990/dist/branding.cjs"],"names":[],"mappings":"AAAA;AACE;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,klPAAC","file":"/tmp/publish-sdk-04990/dist/branding.cjs"}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/branding.cjs"],"names":[],"mappings":"AAAA;AACE;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,klPAAC","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/branding.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/publish-sdk-04990/dist/cardFormStyles.cjs"],"names":[],"mappings":"AAAA;AACE;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,22EAAC","file":"/tmp/publish-sdk-04990/dist/cardFormStyles.cjs"}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/cardFormStyles.cjs"],"names":[],"mappings":"AAAA;AACE;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,22EAAC","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/cardFormStyles.cjs"}
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkK3XXGAORcjs = require('./chunk-K3XXGAOR.cjs');
3
+ var _chunkIDY2LP4Qcjs = require('./chunk-IDY2LP4Q.cjs');
4
4
 
5
5
 
6
- exports.CheckoutSession = _chunkK3XXGAORcjs.CheckoutSession;
6
+ exports.CheckoutSession = _chunkIDY2LP4Qcjs.CheckoutSession;
7
7
  //# sourceMappingURL=checkoutSession.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/publish-sdk-04990/dist/checkoutSession.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AA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7.js";
3
+ } from "./chunk-SAXTZZQL.js";
4
4
  export {
5
5
  CheckoutSession
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/publish-sdk-04990/dist/chunk-244VZFFO.cjs","../src/resources/search.ts"],"names":[],"mappings":"AAAA;ACkDO,IAAM,OAAA,EAAN,MAAa;AAAA,EAClB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYlD,MAAM,MAAA,CACJ,MAAA,EACA,OAAA,EACgC;AAChC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,mBAAA,EAAqB;AAAA,MAC/C,IAAA,EAAM,MAAA;AAAA,MACN,mBAAI,OAAA,2BAAS,SAAA,EAAS,EAAE,MAAA,EAAQ,OAAA,CAAQ,OAAO,EAAA,EAAI,CAAC;AAAA,IACtD,CAAC,CAAA;AAAA,EACH;AACF,CAAA;ADlDA;AACA;AACE;AACF,wBAAC","file":"/tmp/publish-sdk-04990/dist/chunk-244VZFFO.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\n\n/** Index discriminator returned for each search result group. */\nexport type SearchIndex =\n | 'payment_attempts'\n | 'payment_intents'\n | 'refunds'\n | 'disputes'\n | 'payouts'\n | 'sessionizer_payment_attempts'\n | 'sessionizer_payment_intents'\n | 'sessionizer_refunds'\n | 'sessionizer_disputes'\n | 'routing_rules'\n | 'webhook_events'\n | 'audit_logs'\n | 'subscriptions';\n\nexport type SearchStatus = 'Success' | 'Failure';\n\n/** One result group (per index) in the response array. */\nexport interface SearchGroupResponse {\n count: number;\n index: SearchIndex;\n hits: Record<string, unknown>[];\n status: SearchStatus;\n}\n\n/**\n * The window a global search covers. The documented wire fields are\n * `start_time` (required) and `end_time` (optional — omit it for \"up to\n * now\"); the server also accepts the camelCase spellings as aliases, which\n * earlier SDK versions sent, so both are declared and either compiles.\n * Prefer the snake_case pair: it is what the operation documents.\n */\nexport type SearchTimeRange =\n | { start_time: string; end_time?: string | null }\n /** @deprecated Use `start_time` / `end_time` — the documented wire names. */\n | { startTime: string; endTime?: string | null };\n\nexport interface GlobalSearchRequest {\n query: string;\n filters?: Record<string, unknown>;\n /** Naive ISO 8601 bounds; `end_time` may be omitted. */\n timeRange?: SearchTimeRange;\n /** Wire alias for `timeRange` — the server reads either. */\n time_range?: SearchTimeRange;\n}\n\n/** Global cross-index search. */\nexport class Search {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Search every supported index for `query`.\n * `POST /analytics/search`\n *\n * @example\n * ```typescript\n * const groups = await delopay.search.global({ query: 'pay_abc' });\n * for (const g of groups) console.log(g.index, g.count);\n * ```\n */\n async global(\n params: GlobalSearchRequest,\n options?: { signal?: AbortSignal },\n ): Promise<SearchGroupResponse[]> {\n return this.request('POST', '/analytics/search', {\n body: params,\n ...(options?.signal ? { signal: options.signal } : {}),\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-244VZFFO.cjs","../src/resources/search.ts"],"names":[],"mappings":"AAAA;ACkDO,IAAM,OAAA,EAAN,MAAa;AAAA,EAClB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYlD,MAAM,MAAA,CACJ,MAAA,EACA,OAAA,EACgC;AAChC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,mBAAA,EAAqB;AAAA,MAC/C,IAAA,EAAM,MAAA;AAAA,MACN,mBAAI,OAAA,2BAAS,SAAA,EAAS,EAAE,MAAA,EAAQ,OAAA,CAAQ,OAAO,EAAA,EAAI,CAAC;AAAA,IACtD,CAAC,CAAA;AAAA,EACH;AACF,CAAA;ADlDA;AACA;AACE;AACF,wBAAC","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-244VZFFO.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\n\n/** Index discriminator returned for each search result group. */\nexport type SearchIndex =\n | 'payment_attempts'\n | 'payment_intents'\n | 'refunds'\n | 'disputes'\n | 'payouts'\n | 'sessionizer_payment_attempts'\n | 'sessionizer_payment_intents'\n | 'sessionizer_refunds'\n | 'sessionizer_disputes'\n | 'routing_rules'\n | 'webhook_events'\n | 'audit_logs'\n | 'subscriptions';\n\nexport type SearchStatus = 'Success' | 'Failure';\n\n/** One result group (per index) in the response array. */\nexport interface SearchGroupResponse {\n count: number;\n index: SearchIndex;\n hits: Record<string, unknown>[];\n status: SearchStatus;\n}\n\n/**\n * The window a global search covers. The documented wire fields are\n * `start_time` (required) and `end_time` (optional — omit it for \"up to\n * now\"); the server also accepts the camelCase spellings as aliases, which\n * earlier SDK versions sent, so both are declared and either compiles.\n * Prefer the snake_case pair: it is what the operation documents.\n */\nexport type SearchTimeRange =\n | { start_time: string; end_time?: string | null }\n /** @deprecated Use `start_time` / `end_time` — the documented wire names. */\n | { startTime: string; endTime?: string | null };\n\nexport interface GlobalSearchRequest {\n query: string;\n filters?: Record<string, unknown>;\n /** Naive ISO 8601 bounds; `end_time` may be omitted. */\n timeRange?: SearchTimeRange;\n /** Wire alias for `timeRange` — the server reads either. */\n time_range?: SearchTimeRange;\n}\n\n/** Global cross-index search. */\nexport class Search {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Search every supported index for `query`.\n * `POST /analytics/search`\n *\n * @example\n * ```typescript\n * const groups = await delopay.search.global({ query: 'pay_abc' });\n * for (const g of groups) console.log(g.index, g.count);\n * ```\n */\n async global(\n params: GlobalSearchRequest,\n options?: { signal?: AbortSignal },\n ): Promise<SearchGroupResponse[]> {\n return this.request('POST', '/analytics/search', {\n body: params,\n ...(options?.signal ? { signal: options.signal } : {}),\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/publish-sdk-04990/dist/chunk-2IJRBJXW.cjs","../src/resources/ephemeralKeys.ts"],"names":[],"mappings":"AAAA;ACeO,IAAM,cAAA,EAAN,MAAoB;AAAA,EACzB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAclD,MAAM,MAAA,CAAO,MAAA,EAAwE;AACnF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,iBAAA,EAAmB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,MAAA,CAAO,KAAA,EAAoD;AAC/D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,QAAA,EAAU,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,KAAK,CAAC,CAAA,CAAA;AAC5E,EAAA;AACF;ADb+E;AACA;AACA;AACA","file":"/tmp/publish-sdk-04990/dist/chunk-2IJRBJXW.cjs","sourcesContent":[null,"import type { EphemeralKeyCreateRequest, EphemeralKeyCreateResponse } from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * Create short-lived ephemeral keys for secure client-side operations.\n *\n * Ephemeral keys grant a mobile or browser client temporary access to a\n * specific customer's data (e.g. to display saved payment methods) without\n * exposing your secret API key.\n *\n * The key is confined to the customer it was minted for, and that is\n * enforced on every customer and payment-method route: a request for another\n * customer — or for a payment method belonging to one — is refused rather\n * than served. Mint one key per customer; do not reuse a key across them.\n */\nexport class EphemeralKeys {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Create an ephemeral key scoped to a specific customer.\n *\n * @param params - Customer ID and optional expiry.\n * @returns The ephemeral key with its plaintext secret and expiry timestamp.\n *\n * @example\n * ```typescript\n * const ephKey = await delopay.ephemeralKeys.create({ customer_id: 'cus_123' });\n * // Pass ephKey.secret to your mobile app.\n * ```\n */\n async create(params: EphemeralKeyCreateRequest): Promise<EphemeralKeyCreateResponse> {\n return this.request('POST', '/ephemeral-keys', { body: params });\n }\n\n /**\n * Invalidate an ephemeral key before it expires.\n *\n * @param keyId - The ephemeral key ID to delete.\n * @returns The deleted key object.\n */\n async delete(keyId: string): Promise<EphemeralKeyCreateResponse> {\n return this.request('DELETE', `/ephemeral-keys/${encodeURIComponent(keyId)}`);\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-2IJRBJXW.cjs","../src/resources/ephemeralKeys.ts"],"names":[],"mappings":"AAAA;ACeO,IAAM,cAAA,EAAN,MAAoB;AAAA,EACzB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAclD,MAAM,MAAA,CAAO,MAAA,EAAwE;AACnF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,iBAAA,EAAmB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,MAAA,CAAO,KAAA,EAAoD;AAC/D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,QAAA,EAAU,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,KAAK,CAAC,CAAA,CAAA;AAC5E,EAAA;AACF;ADb+E;AACA;AACA;AACA","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-2IJRBJXW.cjs","sourcesContent":[null,"import type { EphemeralKeyCreateRequest, EphemeralKeyCreateResponse } from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * Create short-lived ephemeral keys for secure client-side operations.\n *\n * Ephemeral keys grant a mobile or browser client temporary access to a\n * specific customer's data (e.g. to display saved payment methods) without\n * exposing your secret API key.\n *\n * The key is confined to the customer it was minted for, and that is\n * enforced on every customer and payment-method route: a request for another\n * customer — or for a payment method belonging to one — is refused rather\n * than served. Mint one key per customer; do not reuse a key across them.\n */\nexport class EphemeralKeys {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Create an ephemeral key scoped to a specific customer.\n *\n * @param params - Customer ID and optional expiry.\n * @returns The ephemeral key with its plaintext secret and expiry timestamp.\n *\n * @example\n * ```typescript\n * const ephKey = await delopay.ephemeralKeys.create({ customer_id: 'cus_123' });\n * // Pass ephKey.secret to your mobile app.\n * ```\n */\n async create(params: EphemeralKeyCreateRequest): Promise<EphemeralKeyCreateResponse> {\n return this.request('POST', '/ephemeral-keys', { body: params });\n }\n\n /**\n * Invalidate an ephemeral key before it expires.\n *\n * @param keyId - The ephemeral key ID to delete.\n * @returns The deleted key object.\n */\n async delete(keyId: string): Promise<EphemeralKeyCreateResponse> {\n return this.request('DELETE', `/ephemeral-keys/${encodeURIComponent(keyId)}`);\n }\n}\n"]}
@@ -269,9 +269,33 @@ var BuyerPortal = class {
269
269
  { query: { profile_id: params.profile_id }, ...options }
270
270
  );
271
271
  }
272
+ /** Start (or resume an open) payment method replacement for a native subscription. */
273
+ async replaceSubscriptionPaymentMethod(subscriptionId, params, options) {
274
+ return this.request(
275
+ "POST",
276
+ `/buyer-portal/subscriptions/${encodeURIComponent(subscriptionId)}/payment-method/replace`,
277
+ { body: params, ...options }
278
+ );
279
+ }
280
+ /** Read the latest payment method replacement state for a native subscription. */
281
+ async getSubscriptionPaymentMethodReplacement(subscriptionId, options) {
282
+ return this.request(
283
+ "GET",
284
+ `/buyer-portal/subscriptions/${encodeURIComponent(subscriptionId)}/payment-method/replace`,
285
+ { ...options }
286
+ );
287
+ }
288
+ /** Abandon a pending payment method replacement; the existing method remains in place. */
289
+ async abandonSubscriptionPaymentMethodReplacement(subscriptionId, options) {
290
+ return this.request(
291
+ "POST",
292
+ `/buyer-portal/subscriptions/${encodeURIComponent(subscriptionId)}/payment-method/replace/abandon`,
293
+ { ...options }
294
+ );
295
+ }
272
296
  };
273
297
 
274
298
  export {
275
299
  BuyerPortal
276
300
  };
277
- //# sourceMappingURL=chunk-I5KOMBQ3.js.map
301
+ //# sourceMappingURL=chunk-2OJJ3KGP.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/buyerPortal.ts"],"sourcesContent":["import type { RequestExtras, RequestFn } from '../client';\nimport type {\n BuyerCaseList,\n BuyerConversationAttachment,\n BuyerPortalAttachmentQuery,\n BuyerPortalContactEmailCommand,\n BuyerPortalContactEmailOutcome,\n BuyerPortalConversationList,\n BuyerPortalConversationQuery,\n BuyerPortalMessage,\n BuyerPortalMessageCreate,\n BuyerPortalMessagePage,\n BuyerInvoiceListQuery,\n BuyerPortalInvoice,\n BuyerPortalInvoicePage,\n BuyerPortalPageQuery,\n BuyerPortalProfile,\n BuyerPortalProfileUpdate,\n BuyerPortalPurchasePage,\n BuyerPortalRefundRequest,\n BuyerPortalRefundRequestCreate,\n BuyerPortalSession,\n BuyerPortalSubscriptionPage,\n BuyerPortalSubscription,\n BuyerPortalSubscriptionActionRequest,\n BuyerPortalPlanPage,\n BuyerPortalPlanChangeRequest,\n NativeCreateSubscriptionRequest,\n NativeEnrollmentResponse,\n NativeEnrollmentStatusQuery,\n NativeEnrollmentAbandonResponse,\n NativePaymentMethodReplacementRequest,\n NativePaymentMethodReplacementResponse,\n BuyerEvidence,\n BuyerEvidenceEntry,\n BuyerEvidenceExtensionRequest,\n BuyerEvidenceFile,\n BuyerEvidenceSubmit,\n} from '../types';\n\n/**\n * Buyer access using a customer portal grant, sent in the api-key header.\n * Use a separate client constructed with the portal token, not a merchant secret\n * key or dashboard JWT. The grant determines buyer identity and permitted shops.\n */\nexport class BuyerPortal {\n constructor(private readonly request: RequestFn) {}\n\n async getSession(options?: RequestExtras): Promise<BuyerPortalSession> {\n return this.request('GET', '/buyer-portal/session', { ...options });\n }\n\n /**\n * The buyer's cases at the shop: the refund requests they sent and the\n * disputes about their purchases, newest first, with where each stands, who\n * acts next, the outcome and the recorded steps.\n */\n async listCases(options?: RequestExtras): Promise<BuyerCaseList> {\n return this.request('GET', '/buyer-portal/cases', { ...options });\n }\n\n /**\n * A case's evidence: what may be handed in and by when, the files saved\n * and handed in, and what the reviewer said. Opened on the first read\n * while the case still waits.\n */\n async caseEvidence(caseId: string, options?: RequestExtras): Promise<BuyerEvidence> {\n return this.request('GET', `/buyer-portal/cases/${encodeURIComponent(caseId)}/evidence`, {\n ...options,\n });\n }\n\n /**\n * Upload a file for a case. It is saved, not handed in, until a\n * submission takes it. Uploading again with the same `clientUploadId`\n * returns the file the first upload stored, also after the cut-off.\n */\n async uploadEvidenceFile(\n caseId: string,\n file: Blob,\n clientUploadId: string,\n options?: RequestExtras & { fileName?: string },\n ): Promise<BuyerEvidenceFile> {\n const { fileName, ...extras } = options ?? {};\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(\n 'POST',\n `/buyer-portal/cases/${encodeURIComponent(caseId)}/evidence/files`,\n { body: form, ...extras },\n );\n }\n\n /** Download a file of the case's evidence. */\n async downloadEvidenceFile(\n caseId: string,\n fileId: string,\n options?: RequestExtras,\n ): Promise<Blob> {\n return this.request(\n 'GET',\n `/buyer-portal/cases/${encodeURIComponent(caseId)}/evidence/files/${encodeURIComponent(fileId)}`,\n {\n responseType: 'blob',\n ...options,\n },\n );\n }\n\n /** Remove a saved file. A file a submission took stays. */\n async removeEvidenceFile(caseId: string, fileId: string, options?: RequestExtras): Promise<void> {\n return this.request(\n 'DELETE',\n `/buyer-portal/cases/${encodeURIComponent(caseId)}/evidence/files/${encodeURIComponent(fileId)}`,\n {\n ...options,\n },\n );\n }\n\n /**\n * Hand in an explanation, saved files or both, while the buyer's window\n * is open. Sending again with the same `client_submission_id` returns the\n * submission the first send stored.\n */\n async submitEvidence(\n caseId: string,\n params: BuyerEvidenceSubmit,\n options?: RequestExtras,\n ): Promise<BuyerEvidenceEntry> {\n return this.request(\n 'POST',\n `/buyer-portal/cases/${encodeURIComponent(caseId)}/evidence/submissions`,\n { body: params, ...options },\n );\n }\n\n /** Ask for more time, once until the cut-off is next set. */\n async requestEvidenceExtension(\n caseId: string,\n params: BuyerEvidenceExtensionRequest,\n options?: RequestExtras,\n ): Promise<BuyerEvidenceEntry> {\n return this.request(\n 'POST',\n `/buyer-portal/cases/${encodeURIComponent(caseId)}/evidence/extension-requests`,\n { body: params, ...options },\n );\n }\n\n /**\n * The buyer's conversations with the shop, the latest message first. A\n * portal link for the whole merchant lists one per shop and mode.\n */\n async listConversations(options?: RequestExtras): Promise<BuyerPortalConversationList> {\n return this.request('GET', '/buyer-portal/conversations', { ...options });\n }\n\n /**\n * The conversation with one shop and its newest messages, oldest first;\n * `before` pages back. A link issued for one shop may leave `shop` out.\n */\n async listMessages(\n query?: BuyerPortalConversationQuery,\n options?: RequestExtras,\n ): Promise<BuyerPortalMessagePage> {\n return this.request('GET', '/buyer-portal/messages', {\n query: query as Record<string, string | number | boolean | null | undefined>,\n ...options,\n });\n }\n\n /**\n * A message to the shop. A message to a closed conversation reopens it.\n * Sending again with the same `client_message_id` returns the message the\n * first send stored.\n */\n async sendMessage(\n message: BuyerPortalMessageCreate,\n options?: RequestExtras,\n ): Promise<BuyerPortalMessage> {\n return this.request('POST', '/buyer-portal/messages', { body: message, ...options });\n }\n\n /**\n * The buyer has read the conversation with the shop up to its last accepted\n * message. Answers with the buyer's conversations as they now stand.\n */\n async markMessagesRead(\n query?: BuyerPortalConversationQuery,\n options?: RequestExtras,\n ): Promise<BuyerPortalConversationList> {\n return this.request('POST', '/buyer-portal/messages/read', {\n query: query as Record<string, string | number | boolean | null | undefined>,\n ...options,\n });\n }\n\n /**\n * Upload a file for the buyer's next message to one shop, under the shop's\n * attachment rules (`attachment_rules` on the message page). It belongs to\n * the buyer until a message names it in `attachments`; one no message took\n * within a day is cleared. Uploading again with the same `clientUploadId`\n * returns the file the first upload stored.\n */\n async uploadMessageFile(\n file: Blob,\n clientUploadId: string,\n query?: BuyerPortalAttachmentQuery,\n options?: RequestExtras & { fileName?: string },\n ): Promise<BuyerConversationAttachment> {\n const { fileName, ...extras } = options ?? {};\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-portal/messages/files', {\n body: form,\n query: query as Record<string, string | boolean | null | undefined>,\n ...extras,\n });\n }\n\n /** Download a file a message of the buyer's conversation with one shop carries. */\n async downloadMessageFile(\n fileId: string,\n query?: BuyerPortalAttachmentQuery,\n options?: RequestExtras,\n ): Promise<Blob> {\n return this.request('GET', `/buyer-portal/messages/files/${encodeURIComponent(fileId)}`, {\n query: query as Record<string, string | boolean | null | undefined>,\n responseType: 'blob',\n ...options,\n });\n }\n\n /** Remove a file the buyer uploaded that no message took. */\n async removeMessageFile(\n fileId: string,\n query?: BuyerPortalAttachmentQuery,\n options?: RequestExtras,\n ): Promise<void> {\n return this.request('DELETE', `/buyer-portal/messages/files/${encodeURIComponent(fileId)}`, {\n query: query as Record<string, string | boolean | null | undefined>,\n ...options,\n });\n }\n\n /** The buyer's contact and billing details, and what they may change. */\n async getProfile(options?: RequestExtras): Promise<BuyerPortalProfile> {\n return this.request('GET', '/buyer-portal/profile', { ...options });\n }\n\n /**\n * Change the buyer's contact and billing details. Fields left out stay as\n * they are; the merchant decides whether buyers may change them at all.\n */\n async updateProfile(\n params: BuyerPortalProfileUpdate,\n options?: RequestExtras,\n ): Promise<BuyerPortalProfile> {\n return this.request('POST', '/buyer-portal/profile', { body: params, ...options });\n }\n\n /**\n * Change the buyer's email address, as the profile's `email_policy` allows:\n * `request` names the new address, and under a `confirm_new` policy\n * `confirm` completes it with the proof sent there. A refusal comes back as\n * an outcome with `status: 'refused'`; a 403 means the policy does not let\n * the buyer change the address at all, and a 429 that the request limit was\n * reached.\n * `POST /buyer-portal/profile/contact-email`\n */\n async changeContactEmail(\n command: BuyerPortalContactEmailCommand,\n options?: RequestExtras,\n ): Promise<BuyerPortalContactEmailOutcome> {\n return this.request('POST', '/buyer-portal/profile/contact-email', {\n body: command,\n ...options,\n });\n }\n\n /**\n * Ask the shop for a refund of one of the buyer's purchases, named by its\n * `id` from `listPurchases()`. Nothing is refunded until the shop approves\n * the request with a refund.\n */\n async createRefundRequest(\n purchaseId: string,\n params: BuyerPortalRefundRequestCreate,\n options?: RequestExtras,\n ): Promise<BuyerPortalRefundRequest> {\n return this.request(\n 'POST',\n `/buyer-portal/purchases/${encodeURIComponent(purchaseId)}/refund-requests`,\n { body: params, ...options },\n );\n }\n\n async listInvoices(\n params?: BuyerInvoiceListQuery,\n options?: RequestExtras,\n ): Promise<BuyerPortalInvoicePage> {\n return this.request('GET', '/buyer-portal/invoices', {\n query: params as Record<string, number | null | undefined>,\n ...options,\n });\n }\n\n async retrieveInvoice(invoiceId: string, options?: RequestExtras): Promise<BuyerPortalInvoice> {\n return this.request('GET', `/buyer-portal/invoices/${encodeURIComponent(invoiceId)}`, {\n ...options,\n });\n }\n\n /** Download the owned, published invoice as PDF bytes. */\n async downloadInvoicePdf(invoiceId: string, options?: RequestExtras): Promise<Blob> {\n return this.request('GET', `/buyer-portal/invoices/${encodeURIComponent(invoiceId)}/pdf`, {\n responseType: 'blob',\n ...options,\n });\n }\n\n async listPurchases(\n params?: BuyerPortalPageQuery,\n options?: RequestExtras,\n ): Promise<BuyerPortalPurchasePage> {\n return this.request('GET', '/buyer-portal/purchases', {\n query: params as Record<string, number | null | undefined>,\n ...options,\n });\n }\n\n async listSubscriptions(\n params?: BuyerPortalPageQuery,\n options?: RequestExtras,\n ): Promise<BuyerPortalSubscriptionPage> {\n return this.request('GET', '/buyer-portal/subscriptions', {\n query: params as Record<string, number | null | undefined>,\n ...options,\n });\n }\n\n /** Apply an action allowed by the subscription capabilities and portal grant. */\n async actOnSubscription(\n subscriptionId: string,\n params: BuyerPortalSubscriptionActionRequest,\n options?: RequestExtras,\n ): Promise<BuyerPortalSubscription> {\n return this.request(\n 'POST',\n `/buyer-portal/subscriptions/${encodeURIComponent(subscriptionId)}/actions`,\n { body: params, ...options },\n );\n }\n\n async listSubscriptionPlans(\n subscriptionId: string,\n params?: BuyerPortalPageQuery,\n options?: RequestExtras,\n ): Promise<BuyerPortalPlanPage> {\n return this.request(\n 'GET',\n `/buyer-portal/subscriptions/${encodeURIComponent(subscriptionId)}/plans`,\n { query: params as Record<string, number | null | undefined>, ...options },\n );\n }\n\n async changeSubscriptionPlan(\n subscriptionId: string,\n params: BuyerPortalPlanChangeRequest,\n options?: RequestExtras,\n ): Promise<BuyerPortalSubscription> {\n return this.request(\n 'POST',\n `/buyer-portal/subscriptions/${encodeURIComponent(subscriptionId)}/change-plan`,\n { body: params, ...options },\n );\n }\n\n async listNativePlans(\n profileId: string,\n params?: BuyerPortalPageQuery,\n options?: RequestExtras,\n ): Promise<BuyerPortalPlanPage> {\n return this.request(\n 'GET',\n `/buyer-portal/subscriptions/native/plans/${encodeURIComponent(profileId)}`,\n { query: params as Record<string, number | null | undefined>, ...options },\n );\n }\n\n /** Retry with the same subscription ID and accepted terms after a lost response. */\n async enrollNative(\n params: NativeCreateSubscriptionRequest,\n options?: RequestExtras,\n ): Promise<NativeEnrollmentResponse> {\n return this.request('POST', '/buyer-portal/subscriptions/native/enroll', {\n body: params,\n ...options,\n });\n }\n\n async getNativeEnrollment(\n subscriptionId: string,\n params: NativeEnrollmentStatusQuery,\n options?: RequestExtras,\n ): Promise<NativeEnrollmentResponse> {\n return this.request(\n 'GET',\n `/buyer-portal/subscriptions/native/enroll/${encodeURIComponent(subscriptionId)}`,\n { query: { profile_id: params.profile_id }, ...options },\n );\n }\n\n async abandonNativeEnrollment(\n subscriptionId: string,\n params: NativeEnrollmentStatusQuery,\n options?: RequestExtras,\n ): Promise<NativeEnrollmentAbandonResponse> {\n return this.request(\n 'POST',\n `/buyer-portal/subscriptions/native/enroll/${encodeURIComponent(subscriptionId)}/abandon`,\n { query: { profile_id: params.profile_id }, ...options },\n );\n }\n\n /** Start (or resume an open) payment method replacement for a native subscription. */\n async replaceSubscriptionPaymentMethod(\n subscriptionId: string,\n params: NativePaymentMethodReplacementRequest,\n options?: RequestExtras,\n ): Promise<NativePaymentMethodReplacementResponse> {\n return this.request(\n 'POST',\n `/buyer-portal/subscriptions/${encodeURIComponent(subscriptionId)}/payment-method/replace`,\n { body: params, ...options },\n );\n }\n\n /** Read the latest payment method replacement state for a native subscription. */\n async getSubscriptionPaymentMethodReplacement(\n subscriptionId: string,\n options?: RequestExtras,\n ): Promise<NativePaymentMethodReplacementResponse> {\n return this.request(\n 'GET',\n `/buyer-portal/subscriptions/${encodeURIComponent(subscriptionId)}/payment-method/replace`,\n { ...options },\n );\n }\n\n /** Abandon a pending payment method replacement; the existing method remains in place. */\n async abandonSubscriptionPaymentMethodReplacement(\n subscriptionId: string,\n options?: RequestExtras,\n ): Promise<NativePaymentMethodReplacementResponse> {\n return this.request(\n 'POST',\n `/buyer-portal/subscriptions/${encodeURIComponent(subscriptionId)}/payment-method/replace/abandon`,\n { ...options },\n );\n }\n}\n"],"mappings":";AA6CO,IAAM,cAAN,MAAkB;AAAA,EACvB,YAA6B,SAAoB;AAApB;AAAA,EAAqB;AAAA,EAElD,MAAM,WAAW,SAAsD;AACrE,WAAO,KAAK,QAAQ,OAAO,yBAAyB,EAAE,GAAG,QAAQ,CAAC;AAAA,EACpE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,UAAU,SAAiD;AAC/D,WAAO,KAAK,QAAQ,OAAO,uBAAuB,EAAE,GAAG,QAAQ,CAAC;AAAA,EAClE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,aAAa,QAAgB,SAAiD;AAClF,WAAO,KAAK,QAAQ,OAAO,uBAAuB,mBAAmB,MAAM,CAAC,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M;AAAA,MACN,GAAG;AAAA,IACL,CAAC;AAAA,EACH;AAAA,EAEA,MAAM,oBACJ,gBACA,QACA,SACmC;AACnC,WAAO,KAAK;AAAA,MACV;AAAA,MACA,6CAA6C,mBAAmB,cAAc,CAAC;AAAA,MAC/E,EAAE,OAAO,EAAE,YAAY,OAAO,WAAW,GAAG,GAAG,QAAQ;AAAA,IACzD;AAAA,EACF;AAAA,EAEA,MAAM,wBACJ,gBACA,QACA,SAC0C;AAC1C,WAAO,KAAK;AAAA,MACV;AAAA,MACA,6CAA6C,mBAAmB,cAAc,CAAC;AAAA,MAC/E,EAAE,OAAO,EAAE,YAAY,OAAO,WAAW,GAAG,GAAG,QAAQ;AAAA,IACzD;AAAA,EACF;AAAA;AAAA,EAGA,MAAM,iCACJ,gBACA,QACA,SACiD;AACjD,WAAO,KAAK;AAAA,MACV;AAAA,MACA,+BAA+B,mBAAmB,cAAc,CAAC;AAAA,MACjE,EAAE,MAAM,QAAQ,GAAG,QAAQ;AAAA,IAC7B;AAAA,EACF;AAAA;AAAA,EAGA,MAAM,wCACJ,gBACA,SACiD;AACjD,WAAO,KAAK;AAAA,MACV;AAAA,MACA,+BAA+B,mBAAmB,cAAc,CAAC;AAAA,MACjE,EAAE,GAAG,QAAQ;AAAA,IACf;AAAA,EACF;AAAA;AAAA,EAGA,MAAM,4CACJ,gBACA,SACiD;AACjD,WAAO,KAAK;AAAA,MACV;AAAA,MACA,+BAA+B,mBAAmB,cAAc,CAAC;AAAA,MACjE,EAAE,GAAG,QAAQ;AAAA,IACf;AAAA,EACF;AACF;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/publish-sdk-04990/dist/chunk-34PC72O7.cjs","../src/resources/chargebackPrevention.ts"],"names":[],"mappings":"AAAA;ACiBO,SAAS,mBAAA,CAAoB,MAAA,EAA6D;AAC/F,EAAA,GAAA,CAAI,CAAC,MAAA,EAAQ,OAAO,KAAA,CAAA;AACpB,EAAA,MAAM,EAAE,QAAA,EAA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,MAAM,SAAA,CAAU,MAAA,EAAiE;AAC/E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,8BAAA,EAAgC;AAAA,MACzD,KAAA,EAAO,mBAAA,CAAoB,MAAM;AAAA,IACnC,CAAC,CAAA;AAAA,EACH;AAAA;AAAA,EAGA,MAAM,YAAA,CAAa,MAAA,EAA+C;AAChE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,6BAAA,EAAgC,kBAAA,CAAmB,MAAM,CAAC,CAAA,CAAA;AACvF,EAAA;AAAA;AAAA;AAAA;AAAA;AAM2D,EAAA;AACO,IAAA;AAClE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOsF,EAAA;AACV,IAAA;AAC5E,EAAA;AAAA;AAAA;AAAA;AAAA;AAMgG,EAAA;AACX,IAAA;AACrF,EAAA;AAAA;AAKuC,EAAA;AAC+B,IAAA;AAC3D,MAAA;AACR,IAAA;AACH,EAAA;AACF;ADpC0F;AACA;AACA;AACA;AACA","file":"/tmp/publish-sdk-04990/dist/chunk-34PC72O7.cjs","sourcesContent":[null,"import type {\n PreventionCaseDetail,\n PreventionCaseList,\n PreventionCaseListRequest,\n PreventionConnection,\n PreventionConnectionList,\n PreventionRefundActionList,\n PreventionRefundActionListRequest,\n PreventionRefundPreview,\n PreventionRefundPreviewRequest,\n PreventionRefundRule,\n PreventionRefundRuleList,\n PreventionRefundRuleUpdate,\n} from '../types';\nimport type { RequestFn, RequestOptions } from '../client';\n\n/** List filters travel as comma-separated values. */\nexport function preventionCaseQuery(params?: PreventionCaseListRequest): RequestOptions['query'] {\n if (!params) return undefined;\n const { provider, source, status, outcome, match_status, ...query } = params;\n return {\n ...query,\n ...(provider?.length ? { provider: provider.join(',') } : {}),\n ...(source?.length ? { source: source.join(',') } : {}),\n ...(status?.length ? { status: status.join(',') } : {}),\n ...(outcome?.length ? { outcome: outcome.join(',') } : {}),\n ...(match_status?.length ? { match_status: match_status.join(',') } : {}),\n };\n}\n\n/**\n * Chargeback prevention alerts from a provider account the merchant connects\n * with its own key. Nothing here answers an alert, refunds or opens a dispute,\n * except a refund rule the merchant turns on (`saveRefundRule`).\n *\n * The provider account is a connector account (connector type\n * `fiz_operations`, category `chargeback_prevention_provider`): connect, edit,\n * replace a key, assign shops and remove it with the connector methods. Its\n * live and test credential slots each appear here as one connection. The\n * account's shops decide where its alerts are matched; `metadata.all_shops:\n * true` matches them in every shop, shops added later included.\n */\nexport class ChargebackPrevention {\n constructor(private readonly request: RequestFn) {}\n\n /** The merchant's connections, with their business accounts and sync health. */\n async listConnections(): Promise<PreventionConnectionList> {\n return this.request('GET', '/chargeback-prevention/connections');\n }\n\n /** Read the connection's alerts again as soon as the provider allows. */\n async syncNow(connectionId: string): Promise<PreventionConnection> {\n return this.request(\n 'POST',\n `/chargeback-prevention/connections/${encodeURIComponent(connectionId)}/sync`,\n );\n }\n\n /** Cases with what DeloPay's records say happened to each payment. */\n async listCases(params?: PreventionCaseListRequest): Promise<PreventionCaseList> {\n return this.request('GET', '/chargeback-prevention/cases', {\n query: preventionCaseQuery(params),\n });\n }\n\n /** One case with its references and observed history. */\n async retrieveCase(caseId: string): Promise<PreventionCaseDetail> {\n return this.request('GET', `/chargeback-prevention/cases/${encodeURIComponent(caseId)}`);\n }\n\n /**\n * The refund rule of every connected account and environment; version `0`\n * and off for one never saved. Needs a merchant-wide key or sign-in.\n */\n async listRefundRules(): Promise<PreventionRefundRuleList> {\n return this.request('GET', '/chargeback-prevention/refund-rules');\n }\n\n /**\n * Save a refund rule over the version read. Dashboard sign-in only, by a\n * merchant-wide user who may write refunds; an API key is refused. A rule\n * saved since the version named is not overwritten: the call fails.\n */\n async saveRefundRule(body: PreventionRefundRuleUpdate): Promise<PreventionRefundRule> {\n return this.request('PUT', '/chargeback-prevention/refund-rules', { body });\n }\n\n /**\n * What the stored rule, or unsaved `settings`, would do with each open\n * alert of the account now. Nothing is refunded.\n */\n async previewRefundRule(body: PreventionRefundPreviewRequest): Promise<PreventionRefundPreview> {\n return this.request('POST', '/chargeback-prevention/refund-rules/preview', { body });\n }\n\n /** What the merchant's refund rules did, newest first. */\n async listRefundActions(\n params?: PreventionRefundActionListRequest,\n ): Promise<PreventionRefundActionList> {\n return this.request('GET', '/chargeback-prevention/refund-actions', {\n query: params as Record<string, string | number | boolean | null | undefined>,\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-34PC72O7.cjs","../src/resources/chargebackPrevention.ts"],"names":[],"mappings":"AAAA;ACiBO,SAAS,mBAAA,CAAoB,MAAA,EAA6D;AAC/F,EAAA,GAAA,CAAI,CAAC,MAAA,EAAQ,OAAO,KAAA,CAAA;AACpB,EAAA,MAAM,EAAE,QAAA,EAAU,MAAA,EAAQ,MAAA,EAAQ,OAAA,EAAS,YAAA,EAAc,GAAG,MAAM,EAAA,EAAI,MAAA;AACtE,EAAA,OAAO;AAAA,IACL,GAAG,KAAA;AAAA,IACH,mBAAI,QAAA,2BAAU,SAAA,EAAS,EAAE,QAAA,EAAU,QAAA,CAAS,IAAA,CAAK,GAAG,EAAE,EAAA,EAAI,CAAC,CAAA;AAAA,IAC3D,mBAAI,MAAA,6BAAQ,SAAA,EAAS,EAAE,MAAA,EAAQ,MAAA,CAAO,IAAA,CAAK,GAAG,EAAE,EAAA,EAAI,CAAC,CAAA;AAAA,IACrD,mBAAI,MAAA,6BAAQ,SAAA,EAAS,EAAE,MAAA,EAAQ,MAAA,CAAO,IAAA,CAAK,GAAG,EAAE,EAAA,EAAI,CAAC,CAAA;AAAA,IACrD,mBAAI,OAAA,6BAAS,SAAA,EAAS,EAAE,OAAA,EAAS,OAAA,CAAQ,IAAA,CAAK,GAAG,EAAE,EAAA,EAAI,CAAC,CAAA;AAAA,IACxD,mBAAI,YAAA,6BAAc,SAAA,EAAS,EAAE,YAAA,EAAc,YAAA,CAAa,IAAA,CAAK,GAAG,EAAE,EAAA,EAAI,CA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seDetail,\n PreventionCaseList,\n PreventionCaseListRequest,\n PreventionConnection,\n PreventionConnectionList,\n PreventionRefundActionList,\n PreventionRefundActionListRequest,\n PreventionRefundPreview,\n PreventionRefundPreviewRequest,\n PreventionRefundRule,\n PreventionRefundRuleList,\n PreventionRefundRuleUpdate,\n} from '../types';\nimport type { RequestFn, RequestOptions } from '../client';\n\n/** List filters travel as comma-separated values. */\nexport function preventionCaseQuery(params?: PreventionCaseListRequest): RequestOptions['query'] {\n if (!params) return undefined;\n const { provider, source, status, outcome, match_status, ...query } = params;\n return {\n ...query,\n ...(provider?.length ? { provider: provider.join(',') } : {}),\n ...(source?.length ? { source: source.join(',') } : {}),\n ...(status?.length ? { status: status.join(',') } : {}),\n ...(outcome?.length ? { outcome: outcome.join(',') } : {}),\n ...(match_status?.length ? { match_status: match_status.join(',') } : {}),\n };\n}\n\n/**\n * Chargeback prevention alerts from a provider account the merchant connects\n * with its own key. Nothing here answers an alert, refunds or opens a dispute,\n * except a refund rule the merchant turns on (`saveRefundRule`).\n *\n * The provider account is a connector account (connector type\n * `fiz_operations`, category `chargeback_prevention_provider`): connect, edit,\n * replace a key, assign shops and remove it with the connector methods. Its\n * live and test credential slots each appear here as one connection. The\n * account's shops decide where its alerts are matched; `metadata.all_shops:\n * true` matches them in every shop, shops added later included.\n */\nexport class ChargebackPrevention {\n constructor(private readonly request: RequestFn) {}\n\n /** The merchant's connections, with their business accounts and sync health. */\n async listConnections(): Promise<PreventionConnectionList> {\n return this.request('GET', '/chargeback-prevention/connections');\n }\n\n /** Read the connection's alerts again as soon as the provider allows. */\n async syncNow(connectionId: string): Promise<PreventionConnection> {\n return this.request(\n 'POST',\n `/chargeback-prevention/connections/${encodeURIComponent(connectionId)}/sync`,\n );\n }\n\n /** Cases with what DeloPay's records say happened to each payment. */\n async listCases(params?: PreventionCaseListRequest): Promise<PreventionCaseList> {\n return this.request('GET', '/chargeback-prevention/cases', {\n query: preventionCaseQuery(params),\n });\n }\n\n /** One case with its references and observed history. */\n async retrieveCase(caseId: string): Promise<PreventionCaseDetail> {\n return this.request('GET', `/chargeback-prevention/cases/${encodeURIComponent(caseId)}`);\n }\n\n /**\n * The refund rule of every connected account and environment; version `0`\n * and off for one never saved. Needs a merchant-wide key or sign-in.\n */\n async listRefundRules(): Promise<PreventionRefundRuleList> {\n return this.request('GET', '/chargeback-prevention/refund-rules');\n }\n\n /**\n * Save a refund rule over the version read. Dashboard sign-in only, by a\n * merchant-wide user who may write refunds; an API key is refused. A rule\n * saved since the version named is not overwritten: the call fails.\n */\n async saveRefundRule(body: PreventionRefundRuleUpdate): Promise<PreventionRefundRule> {\n return this.request('PUT', '/chargeback-prevention/refund-rules', { body });\n }\n\n /**\n * What the stored rule, or unsaved `settings`, would do with each open\n * alert of the account now. Nothing is refunded.\n */\n async previewRefundRule(body: PreventionRefundPreviewRequest): Promise<PreventionRefundPreview> {\n return this.request('POST', '/chargeback-prevention/refund-rules/preview', { body });\n }\n\n /** What the merchant's refund rules did, newest first. */\n async listRefundActions(\n params?: PreventionRefundActionListRequest,\n ): Promise<PreventionRefundActionList> {\n return this.request('GET', '/chargeback-prevention/refund-actions', {\n query: params as Record<string, string | number | boolean | null | undefined>,\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/publish-sdk-04990/dist/chunk-3GBWQWTP.cjs","../src/resources/authentication.ts"],"names":[],"mappings":"AAAA;ACGO,IAAM,eAAA,EAAN,MAAqB;AAAA,EAC1B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,MAAA,CAAO,MAAA,EAAsE;AACjF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,iBAAA,EAAmB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACjE;AAAA,EAEA,MAAM,gBAAA,CAAiB,MAAA,EAAiD;AACtE,IAAA,OAAO,IAAA,CAAK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;AAAA;AAAA,EAGA,MAAM,gBAAA,CACJ,MAAA,EACA,MAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,MAAM,CAAC,CAAA,kBAAA,CAAA,EAAsB;AAAA,MAC7F,IAAA,EAAM;AAAA,IACR,CAAC,CAAA;AAAA,EACH;AACF,CAAA;ADvBA;AACA;AACE;AACF,wCAAC","file":"/tmp/publish-sdk-04990/dist/chunk-3GBWQWTP.cjs","sourcesContent":[null,"import type { AuthenticationCreateRequest, AuthenticationResponse } from '../types';\nimport type { RequestFn } from '../client';\n\nexport class Authentication {\n constructor(private readonly request: RequestFn) {}\n\n async create(params: AuthenticationCreateRequest): Promise<AuthenticationResponse> {\n return this.request('POST', '/authentication', { body: params });\n }\n\n async checkEligibility(authId: string): Promise<AuthenticationResponse> {\n return this.request('POST', `/authentication/${encodeURIComponent(authId)}/eligibility`);\n }\n\n async authenticate(\n authId: string,\n params: Record<string, unknown>,\n ): Promise<AuthenticationResponse> {\n return this.request('POST', `/authentication/${encodeURIComponent(authId)}/authenticate`, {\n body: params,\n });\n }\n\n /** Sync authentication status. `POST /authentication/{merchantId}/{authId}/sync` */\n async sync(\n merchantId: string,\n authId: string,\n params?: Record<string, unknown>,\n ): Promise<AuthenticationResponse> {\n return this.request(\n 'POST',\n `/authentication/${encodeURIComponent(merchantId)}/${encodeURIComponent(authId)}/sync`,\n { body: params },\n );\n }\n\n /** Redirect after authentication. `POST /authentication/{merchantId}/{authId}/redirect` */\n async redirect(\n merchantId: string,\n authId: string,\n params: Record<string, unknown>,\n ): Promise<Record<string, unknown>> {\n return this.request(\n 'POST',\n `/authentication/${encodeURIComponent(merchantId)}/${encodeURIComponent(authId)}/redirect`,\n { body: params },\n );\n }\n\n /** Enable authn methods token. `POST /authentication/{authId}/enabled-authn-methods-token` */\n async enabledAuthnMethodsToken(\n authId: string,\n params: Record<string, unknown>,\n ): Promise<Record<string, unknown>> {\n return this.request(\n 'POST',\n `/authentication/${encodeURIComponent(authId)}/enabled-authn-methods-token`,\n {\n body: params,\n },\n );\n }\n\n /** Submit eligibility check. `POST /authentication/{authId}/eligibility-check` */\n async eligibilityCheck(\n authId: string,\n params: Record<string, unknown>,\n ): Promise<Record<string, unknown>> {\n return this.request('POST', `/authentication/${encodeURIComponent(authId)}/eligibility-check`, {\n body: params,\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-3GBWQWTP.cjs","../src/resources/authentication.ts"],"names":[],"mappings":"AAAA;ACGO,IAAM,eAAA,EAAN,MAAqB;AAAA,EAC1B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,MAAA,CAAO,MAAA,EAAsE;AACjF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,iBAAA,EAAmB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACjE;AAAA,EAEA,MAAM,gBAAA,CAAiB,MAAA,EAAiD;AACtE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,MAAM,CAAC,CAAA,YAAA,CAAc,CAAA;AAAA,EACzF;AAAA,EAEA,MAAM,YAAA,CACJ,MAAA,EACA,MAAA,EACiC;AACjC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,MAAM,CAAC,CAAA,aAAA,CAAA,EAAiB;AAAA,MACxF,IAAA,EAAM;AAAA,IACR,CAAC,CAAA;AAAA,EACH;AAAA;AAAA,EAGA,MAAM,IAAA,CACJ,UAAA,EACA,MAAA,EACA,MAAA,EACiC;AACjC,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,MACV,MAAA;AAAA,MACA,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,UAAU,CAAC,CAAA,CAAA,EAAI,kBAAA,CAAmB,MAAM,CAAC,CAAA,KAAA,CAAA;AAAA,MAC/E,EAAE,IAAA,EAAM,OAAO;AAAA,IACjB,CAAA;AAAA,EACF;AAAA;AAAA,EAGA,MAAM,QAAA,CACJ,UAAA,EACA,MAAA,EACA,MAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,MACV,MAAA;AAAA,MACA,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,UAAU,CAAC,CAAA,CAAA,EAAI,kBAAA,CAAmB,MAAM,CAAC,CAAA,SAAA,CAAA;AAAA,MAC/E,EAAE,IAAA,EAAM,OAAO;AAAA,IACjB,CAAA;AAAA,EACF;AAAA;AAAA,EAGA,MAAM,wBAAA,CACJ,MAAA,EACA,MAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,MACV,MAAA;AAAA,MACA,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,MAAM,CAAC,CAAA,4BAAA,CAAA;AAAA,MAC7C;AAAA,QACE,IAAA,EAAM;AAAA,MACR;AAAA,IACF,CAAA;AAAA,EACF;AAAA;AAAA,EAGA,MAAM,gBAAA,CACJ,MAAA,EACA,MAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,MAAM,CAAC,CAAA,kBAAA,CAAA,EAAsB;AAAA,MAC7F,IAAA,EAAM;AAAA,IACR,CAAC,CAAA;AAAA,EACH;AACF,CAAA;ADvBA;AACA;AACE;AACF,wCAAC","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-3GBWQWTP.cjs","sourcesContent":[null,"import type { AuthenticationCreateRequest, AuthenticationResponse } from '../types';\nimport type { RequestFn } from '../client';\n\nexport class Authentication {\n constructor(private readonly request: RequestFn) {}\n\n async create(params: AuthenticationCreateRequest): Promise<AuthenticationResponse> {\n return this.request('POST', '/authentication', { body: params });\n }\n\n async checkEligibility(authId: string): Promise<AuthenticationResponse> {\n return this.request('POST', `/authentication/${encodeURIComponent(authId)}/eligibility`);\n }\n\n async authenticate(\n authId: string,\n params: Record<string, unknown>,\n ): Promise<AuthenticationResponse> {\n return this.request('POST', `/authentication/${encodeURIComponent(authId)}/authenticate`, {\n body: params,\n });\n }\n\n /** Sync authentication status. `POST /authentication/{merchantId}/{authId}/sync` */\n async sync(\n merchantId: string,\n authId: string,\n params?: Record<string, unknown>,\n ): Promise<AuthenticationResponse> {\n return this.request(\n 'POST',\n `/authentication/${encodeURIComponent(merchantId)}/${encodeURIComponent(authId)}/sync`,\n { body: params },\n );\n }\n\n /** Redirect after authentication. `POST /authentication/{merchantId}/{authId}/redirect` */\n async redirect(\n merchantId: string,\n authId: string,\n params: Record<string, unknown>,\n ): Promise<Record<string, unknown>> {\n return this.request(\n 'POST',\n `/authentication/${encodeURIComponent(merchantId)}/${encodeURIComponent(authId)}/redirect`,\n { body: params },\n );\n }\n\n /** Enable authn methods token. `POST /authentication/{authId}/enabled-authn-methods-token` */\n async enabledAuthnMethodsToken(\n authId: string,\n params: Record<string, unknown>,\n ): Promise<Record<string, unknown>> {\n return this.request(\n 'POST',\n `/authentication/${encodeURIComponent(authId)}/enabled-authn-methods-token`,\n {\n body: params,\n },\n );\n }\n\n /** Submit eligibility check. `POST /authentication/{authId}/eligibility-check` */\n async eligibilityCheck(\n authId: string,\n params: Record<string, unknown>,\n ): Promise<Record<string, unknown>> {\n return this.request('POST', `/authentication/${encodeURIComponent(authId)}/eligibility-check`, {\n body: params,\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/publish-sdk-04990/dist/chunk-3YBBJT3Y.cjs","../src/resources/buyerEvidenceReviews.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACqBO,IAAM,qBAAA,EAAN,MAA2B;AAAA,EAChC,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlD,MAAM,IAAA,CAAK,MAAA,EAA+D;AACxE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,iBAAA,EAAmB;AAAA,MAC5C,KAAA,EAAO,wCAAA,MAAS,EAAQ,CAAC,OAAO,CAAC;AAAA,IACnC,CAAC,CAAA;AAAA,EACH;AAAA;AAAA,EAGA,MAAM,QAAA,CAAS,UAAA,EAAwD;AACrE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,UAAU,CAAC,CAAA,CAAA;AAC9E,EAAA;AAAA;AAGsE,EAAA;AACxD,IAAA;AACV,MAAA;AAC2D,MAAA;AACpC,MAAA;AACzB,IAAA;AACF,EAAA;AAAA;AAMsC,EAAA;AACxB,IAAA;AACV,MAAA;AACiD,MAAA;AAClC,MAAA;AACjB,IAAA;AACF,EAAA;AAAA;AAGgG,EAAA;AACjB,IAAA;AACrE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAMsC,EAAA;AACyC,IAAA;AACrE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAG8F,EAAA;AACf,IAAA;AACrE,MAAA;AACP,IAAA;AACH,EAAA;AACF;AD9BiF;AACA;AACA;AACA","file":"/tmp/publish-sdk-04990/dist/chunk-3YBBJT3Y.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\nimport type {\n BuyerEvidenceInformationRequest,\n BuyerEvidenceNote,\n BuyerEvidenceQueue,\n BuyerEvidenceQueueQuery,\n BuyerEvidenceReply,\n BuyerEvidenceReviewCreate,\n BuyerEvidenceReviewDetail,\n} from '../types';\nimport { csvQuery } from '../listQuery';\n\n/**\n * The evidence buyers hand in for the shop's cases, as the shop's team reads\n * and reviews it.\n *\n * A case appears only where its evidence policy shows it to shops\n * (`merchant_access` `view` or `review`), and only for the caller's own shop\n * when the caller's role belongs to one. Reading needs the `Dispute` area at\n * `Read`; the review steps need `Write` and a policy that delegates the\n * review (`merchant_access: review`). Every route needs a dashboard session.\n * The team reads every step the buyer sees and its own notes, never\n * DeloPay's internal steps or who at DeloPay reviews. A result never refunds\n * a payment and never decides a dispute with the payment provider.\n */\nexport class BuyerEvidenceReviews {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The shop's cases with buyer evidence, the nearest target first unless\n * `sort_by` says otherwise. Several `state` values match a case in any of\n * them. `merchant_id` and `reviewer` are ignored here, and so are the\n * `merchant` and `reviewer` sorts. `GET /buyer-evidence`\n */\n async list(params?: BuyerEvidenceQueueQuery): Promise<BuyerEvidenceQueue> {\n return this.request('GET', '/buyer-evidence', {\n query: csvQuery(params, ['state']),\n });\n }\n\n /** One case's evidence with its history and files. `GET /buyer-evidence/{id}` */\n async retrieve(evidenceId: string): Promise<BuyerEvidenceReviewDetail> {\n return this.request('GET', `/buyer-evidence/${encodeURIComponent(evidenceId)}`);\n }\n\n /** Download a file of a case's evidence. */\n async downloadFile(evidenceId: string, fileId: string): Promise<Blob> {\n return this.request(\n 'GET',\n `/buyer-evidence/${encodeURIComponent(evidenceId)}/files/${encodeURIComponent(fileId)}`,\n { responseType: 'blob' },\n );\n }\n\n /** Ask the buyer for more, by a cut-off. Refused once a result closed the review. */\n async requestInformation(\n evidenceId: string,\n params: BuyerEvidenceInformationRequest,\n ): Promise<BuyerEvidenceReviewDetail> {\n return this.request(\n 'POST',\n `/buyer-evidence/${encodeURIComponent(evidenceId)}/information-requests`,\n { body: params },\n );\n }\n\n /** An answer the buyer sees. */\n async reply(evidenceId: string, params: BuyerEvidenceReply): Promise<BuyerEvidenceReviewDetail> {\n return this.request('POST', `/buyer-evidence/${encodeURIComponent(evidenceId)}/replies`, {\n body: params,\n });\n }\n\n /** Record the result, which closes the review. */\n async review(\n evidenceId: string,\n params: BuyerEvidenceReviewCreate,\n ): Promise<BuyerEvidenceReviewDetail> {\n return this.request('POST', `/buyer-evidence/${encodeURIComponent(evidenceId)}/reviews`, {\n body: params,\n });\n }\n\n /** A note the shop's team and DeloPay read, never the buyer. */\n async note(evidenceId: string, params: BuyerEvidenceNote): Promise<BuyerEvidenceReviewDetail> {\n return this.request('POST', `/buyer-evidence/${encodeURIComponent(evidenceId)}/notes`, {\n body: params,\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-3YBBJT3Y.cjs","../src/resources/buyerEvidenceReviews.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACqBO,IAAM,qBAAA,EAAN,MAA2B;AAAA,EAChC,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlD,MAAM,IAAA,CAAK,MAAA,EAA+D;AACxE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,iBAAA,EAAmB;AAAA,MAC5C,KAAA,EAAO,wCAAA,MAAS,EAAQ,CAAC,OAAO,CAAC;AAAA,IACnC,CAAC,CAAA;AAAA,EACH;AAAA;AAAA,EAGA,MAAM,QAAA,CAAS,UAAA,EAAwD;AACrE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,UAAU,CAAC,CAAA,CAAA;AAC9E,EAAA;AAAA;AAGsE,EAAA;AACxD,IAAA;AACV,MAAA;AAC2D,MAAA;AACpC,MAAA;AACzB,IAAA;AACF,EAAA;AAAA;AAMsC,EAAA;AACxB,IAAA;AACV,MAAA;AACiD,MAAA;AAClC,MAAA;AACjB,IAAA;AACF,EAAA;AAAA;AAGgG,EAAA;AACjB,IAAA;AACrE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAMsC,EAAA;AACyC,IAAA;AACrE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAG8F,EAAA;AACf,IAAA;AACrE,MAAA;AACP,IAAA;AACH,EAAA;AACF;AD9BiF;AACA;AACA;AACA","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-3YBBJT3Y.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\nimport type {\n BuyerEvidenceInformationRequest,\n BuyerEvidenceNote,\n BuyerEvidenceQueue,\n BuyerEvidenceQueueQuery,\n BuyerEvidenceReply,\n BuyerEvidenceReviewCreate,\n BuyerEvidenceReviewDetail,\n} from '../types';\nimport { csvQuery } from '../listQuery';\n\n/**\n * The evidence buyers hand in for the shop's cases, as the shop's team reads\n * and reviews it.\n *\n * A case appears only where its evidence policy shows it to shops\n * (`merchant_access` `view` or `review`), and only for the caller's own shop\n * when the caller's role belongs to one. Reading needs the `Dispute` area at\n * `Read`; the review steps need `Write` and a policy that delegates the\n * review (`merchant_access: review`). Every route needs a dashboard session.\n * The team reads every step the buyer sees and its own notes, never\n * DeloPay's internal steps or who at DeloPay reviews. A result never refunds\n * a payment and never decides a dispute with the payment provider.\n */\nexport class BuyerEvidenceReviews {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The shop's cases with buyer evidence, the nearest target first unless\n * `sort_by` says otherwise. Several `state` values match a case in any of\n * them. `merchant_id` and `reviewer` are ignored here, and so are the\n * `merchant` and `reviewer` sorts. `GET /buyer-evidence`\n */\n async list(params?: BuyerEvidenceQueueQuery): Promise<BuyerEvidenceQueue> {\n return this.request('GET', '/buyer-evidence', {\n query: csvQuery(params, ['state']),\n });\n }\n\n /** One case's evidence with its history and files. `GET /buyer-evidence/{id}` */\n async retrieve(evidenceId: string): Promise<BuyerEvidenceReviewDetail> {\n return this.request('GET', `/buyer-evidence/${encodeURIComponent(evidenceId)}`);\n }\n\n /** Download a file of a case's evidence. */\n async downloadFile(evidenceId: string, fileId: string): Promise<Blob> {\n return this.request(\n 'GET',\n `/buyer-evidence/${encodeURIComponent(evidenceId)}/files/${encodeURIComponent(fileId)}`,\n { responseType: 'blob' },\n );\n }\n\n /** Ask the buyer for more, by a cut-off. Refused once a result closed the review. */\n async requestInformation(\n evidenceId: string,\n params: BuyerEvidenceInformationRequest,\n ): Promise<BuyerEvidenceReviewDetail> {\n return this.request(\n 'POST',\n `/buyer-evidence/${encodeURIComponent(evidenceId)}/information-requests`,\n { body: params },\n );\n }\n\n /** An answer the buyer sees. */\n async reply(evidenceId: string, params: BuyerEvidenceReply): Promise<BuyerEvidenceReviewDetail> {\n return this.request('POST', `/buyer-evidence/${encodeURIComponent(evidenceId)}/replies`, {\n body: params,\n });\n }\n\n /** Record the result, which closes the review. */\n async review(\n evidenceId: string,\n params: BuyerEvidenceReviewCreate,\n ): Promise<BuyerEvidenceReviewDetail> {\n return this.request('POST', `/buyer-evidence/${encodeURIComponent(evidenceId)}/reviews`, {\n body: params,\n });\n }\n\n /** A note the shop's team and DeloPay read, never the buyer. */\n async note(evidenceId: string, params: BuyerEvidenceNote): Promise<BuyerEvidenceReviewDetail> {\n return this.request('POST', `/buyer-evidence/${encodeURIComponent(evidenceId)}/notes`, {\n body: params,\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/publish-sdk-04990/dist/chunk-44QBWVRS.cjs","../src/internal/resources/connectorRestrictionRules.ts"],"names":[],"mappings":"AAAA;ACQA,IAAM,KAAA,EAAO,oCAAA;AAaN,IAAM,0BAAA,EAAN,MAAgC;AAAA,EACrC,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,MAAM,MAAA,CACJ,IAAA,EAC2C;AAC3C,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,IAAA,EAAM,EAAE,KAAK,CAAC,CAAA;AAAA,EAC5C;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAM,IAAA,CACJ,KAAA,EAC6C;AAI7C,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,IAAA,EAAM,EAAE,KAAA,EAAO,EAAE,GAAG,MAAM,EAAE,CAAC,CAAA;AAAA,EAC1D;AAAA;AAAA,EAGA,MAAM,QAAA,CAAS,EAAA,EAAuD;AACpE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,EAAA;AAC7B,EAAA;AAAA;AAM6C,EAAA;AACvB,IAAA;AACtB,EAAA;AAAA;AAGoE,EAAA;AAC9C,IAAA;AACtB,EAAA;AACF;AD/BgC;AACA;AACA;AACA","file":"/tmp/publish-sdk-04990/dist/chunk-44QBWVRS.cjs","sourcesContent":[null,"import type {\n ConnectorRestrictionRuleResponse,\n CreateConnectorRestrictionRuleRequest,\n ListConnectorRestrictionRulesQuery,\n UpdateConnectorRestrictionRuleRequest,\n} from '../types';\nimport type { RequestFn } from '../../client';\n\nconst BASE = '/admin/connector-restriction-rules';\n\n/**\n * Per-shop / per-project connector restriction rules.\n *\n * Distinct from `connectorRestrictions` (the merchant-tier attach gate):\n * these rules allow/deny a connector for one shop (`scope: 'profile'`) or\n * project (`scope: 'project'`) at routing time. A `deny` is never routed even\n * when the connector is attached and enabled; once a scope has any `allow` it\n * becomes a whitelist, and the project scope takes precedence over the shop\n * scope. Admin-only, under `/admin/connector-restriction-rules`; exposed only\n * via `'@delopay/sdk/internal'`.\n */\nexport class ConnectorRestrictionRules {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Create one allow/deny rule. A duplicate\n * `(merchant_id, scope, scope_id, connector)` is rejected — update or delete\n * the existing rule instead.\n */\n async create(\n body: CreateConnectorRestrictionRuleRequest,\n ): Promise<ConnectorRestrictionRuleResponse> {\n return this.request('POST', BASE, { body });\n }\n\n /**\n * List rules for one scope (`scope` + `scope_id`) or a whole merchant\n * (`merchant_id`). Pass exactly one selector.\n */\n async list(\n query: ListConnectorRestrictionRulesQuery,\n ): Promise<ConnectorRestrictionRuleResponse[]> {\n // Spread into a fresh object literal so the typed query satisfies the\n // request layer's `Record<string, …>` index signature. `undefined` values\n // are dropped by `request()`.\n return this.request('GET', BASE, { query: { ...query } });\n }\n\n /** Retrieve a single rule by ID. */\n async retrieve(id: string): Promise<ConnectorRestrictionRuleResponse> {\n return this.request('GET', `${BASE}/${encodeURIComponent(id)}`);\n }\n\n /** Update a rule's action and/or reason. */\n async update(\n id: string,\n body: UpdateConnectorRestrictionRuleRequest,\n ): Promise<ConnectorRestrictionRuleResponse> {\n return this.request('PATCH', `${BASE}/${encodeURIComponent(id)}`, { body });\n }\n\n /** Delete a rule by ID. */\n async delete(id: string): Promise<{ id: string; deleted: boolean }> {\n return this.request('DELETE', `${BASE}/${encodeURIComponent(id)}`);\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-44QBWVRS.cjs","../src/internal/resources/connectorRestrictionRules.ts"],"names":[],"mappings":"AAAA;ACQA,IAAM,KAAA,EAAO,oCAAA;AAaN,IAAM,0BAAA,EAAN,MAAgC;AAAA,EACrC,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,MAAM,MAAA,CACJ,IAAA,EAC2C;AAC3C,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,IAAA,EAAM,EAAE,KAAK,CAAC,CAAA;AAAA,EAC5C;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAM,IAAA,CACJ,KAAA,EAC6C;AAI7C,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,IAAA,EAAM,EAAE,KAAA,EAAO,EAAE,GAAG,MAAM,EAAE,CAAC,CAAA;AAAA,EAC1D;AAAA;AAAA,EAGA,MAAM,QAAA,CAAS,EAAA,EAAuD;AACpE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,EAAA;AAC7B,EAAA;AAAA;AAM6C,EAAA;AACvB,IAAA;AACtB,EAAA;AAAA;AAGoE,EAAA;AAC9C,IAAA;AACtB,EAAA;AACF;AD/BgC;AACA;AACA;AACA","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-44QBWVRS.cjs","sourcesContent":[null,"import type {\n ConnectorRestrictionRuleResponse,\n CreateConnectorRestrictionRuleRequest,\n ListConnectorRestrictionRulesQuery,\n UpdateConnectorRestrictionRuleRequest,\n} from '../types';\nimport type { RequestFn } from '../../client';\n\nconst BASE = '/admin/connector-restriction-rules';\n\n/**\n * Per-shop / per-project connector restriction rules.\n *\n * Distinct from `connectorRestrictions` (the merchant-tier attach gate):\n * these rules allow/deny a connector for one shop (`scope: 'profile'`) or\n * project (`scope: 'project'`) at routing time. A `deny` is never routed even\n * when the connector is attached and enabled; once a scope has any `allow` it\n * becomes a whitelist, and the project scope takes precedence over the shop\n * scope. Admin-only, under `/admin/connector-restriction-rules`; exposed only\n * via `'@delopay/sdk/internal'`.\n */\nexport class ConnectorRestrictionRules {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Create one allow/deny rule. A duplicate\n * `(merchant_id, scope, scope_id, connector)` is rejected — update or delete\n * the existing rule instead.\n */\n async create(\n body: CreateConnectorRestrictionRuleRequest,\n ): Promise<ConnectorRestrictionRuleResponse> {\n return this.request('POST', BASE, { body });\n }\n\n /**\n * List rules for one scope (`scope` + `scope_id`) or a whole merchant\n * (`merchant_id`). Pass exactly one selector.\n */\n async list(\n query: ListConnectorRestrictionRulesQuery,\n ): Promise<ConnectorRestrictionRuleResponse[]> {\n // Spread into a fresh object literal so the typed query satisfies the\n // request layer's `Record<string, …>` index signature. `undefined` values\n // are dropped by `request()`.\n return this.request('GET', BASE, { query: { ...query } });\n }\n\n /** Retrieve a single rule by ID. */\n async retrieve(id: string): Promise<ConnectorRestrictionRuleResponse> {\n return this.request('GET', `${BASE}/${encodeURIComponent(id)}`);\n }\n\n /** Update a rule's action and/or reason. */\n async update(\n id: string,\n body: UpdateConnectorRestrictionRuleRequest,\n ): Promise<ConnectorRestrictionRuleResponse> {\n return this.request('PATCH', `${BASE}/${encodeURIComponent(id)}`, { body });\n }\n\n /** Delete a rule by ID. */\n async delete(id: string): Promise<{ id: string; deleted: boolean }> {\n return this.request('DELETE', `${BASE}/${encodeURIComponent(id)}`);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/publish-sdk-04990/dist/chunk-4EKAWNYI.cjs","../src/resources/messageTemplates.ts"],"names":[],"mappings":"AAAA;AC0BO,IAAM,iBAAA,EAAN,MAAuB;AAAA,EAC5B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,MAAM,QAAA,CAAS,SAAA,EAAiD;AAC9D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,yBAAA,EAA4B,kBAAA,CAAmB,SAAS,CAAC,CAAA,CAAA;AACtF,EAAA;AAAA;AAG0F,EAAA;AAC5E,IAAA;AACV,MAAA;AACgF,MAAA;AAClF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYoC,EAAA;AACtB,IAAA;AACV,MAAA;AACgF,MAAA;AACjE,MAAA;AACjB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaoC,EAAA;AACtB,IAAA;AACV,MAAA;AACgF,MAAA;AACvB,MAAA;AAC3D,IAAA;AACF,EAAA;AAAA;AAOmC,EAAA;AACrB,IAAA;AACV,MAAA;AACgF,MAAA;AAChF,MAAA;AACQ,QAAA;AACR,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWoC,EAAA;AACtB,IAAA;AACV,MAAA;AACgF,MAAA;AACjE,MAAA;AACjB,IAAA;AACF,EAAA;AACF;AD9CyF;AACA;AACA;AACA","file":"/tmp/publish-sdk-04990/dist/chunk-4EKAWNYI.cjs","sourcesContent":[null,"import type {\n MessageLanguage,\n MessageTemplateDetail,\n MessageTemplateLanguage,\n MessageTemplateList,\n MessageTemplatePreview,\n PreviewMessageTemplateRequest,\n ResetMessageTemplateLanguageQuery,\n SendTestMessageRequest,\n SendTestMessageResponse,\n UpdateMessageTemplateLanguageRequest,\n} from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * A shop's own texts of the emails it sends its buyers: invoices, renewal\n * recovery and checkout reminders. In each language the shop's text goes\n * before the platform's, which goes before the built-in one.\n *\n * Dashboard (JWT) routes. The shop must belong to the caller's merchant; each\n * template needs the permission of its kind (invoice or payment), read to\n * list, retrieve and preview, write to change, reset and send a test. The\n * list holds only the templates the caller may read. Every change is\n * recorded in the audit log (`entity_type: 'message_template'`, `entity_id:\n * 'shop:<profile_id>:<channel>:<template_id>:<language>'`).\n */\nexport class MessageTemplates {\n constructor(private readonly request: RequestFn) {}\n\n /** `GET /message-templates/shops/{profile_id}` */\n async listShop(profileId: string): Promise<MessageTemplateList> {\n return this.request('GET', `/message-templates/shops/${encodeURIComponent(profileId)}`);\n }\n\n /** `GET /message-templates/shops/{profile_id}/{template_id}` */\n async retrieveShop(profileId: string, templateId: string): Promise<MessageTemplateDetail> {\n return this.request(\n 'GET',\n `/message-templates/shops/${encodeURIComponent(profileId)}/${encodeURIComponent(templateId)}`,\n );\n }\n\n /**\n * Store the shop's text in one language.\n *\n * `PUT /message-templates/shops/{profile_id}/{template_id}/languages/{language}`\n */\n async updateShopLanguage(\n profileId: string,\n templateId: string,\n language: MessageLanguage,\n params: UpdateMessageTemplateLanguageRequest,\n ): Promise<MessageTemplateLanguage> {\n return this.request(\n 'PUT',\n `/message-templates/shops/${encodeURIComponent(profileId)}/${encodeURIComponent(templateId)}/languages/${encodeURIComponent(language)}`,\n { body: params },\n );\n }\n\n /**\n * Remove the shop's text in one language, so the platform's or the built-in\n * text applies.\n *\n * `DELETE /message-templates/shops/{profile_id}/{template_id}/languages/{language}`\n */\n async resetShopLanguage(\n profileId: string,\n templateId: string,\n language: MessageLanguage,\n params: ResetMessageTemplateLanguageQuery = {},\n ): Promise<MessageTemplateLanguage> {\n return this.request(\n 'DELETE',\n `/message-templates/shops/${encodeURIComponent(profileId)}/${encodeURIComponent(templateId)}/languages/${encodeURIComponent(language)}`,\n { query: { expected_revision: params.expected_revision } },\n );\n }\n\n /** `POST /message-templates/shops/{profile_id}/{template_id}/preview` */\n async previewShop(\n profileId: string,\n templateId: string,\n params: PreviewMessageTemplateRequest,\n ): Promise<MessageTemplatePreview> {\n return this.request(\n 'POST',\n `/message-templates/shops/${encodeURIComponent(profileId)}/${encodeURIComponent(templateId)}/preview`,\n {\n body: params,\n },\n );\n }\n\n /**\n * Send the template to the signed-in user's own address.\n *\n * `POST /message-templates/shops/{profile_id}/{template_id}/test`\n */\n async sendShopTest(\n profileId: string,\n templateId: string,\n params: SendTestMessageRequest,\n ): Promise<SendTestMessageResponse> {\n return this.request(\n 'POST',\n `/message-templates/shops/${encodeURIComponent(profileId)}/${encodeURIComponent(templateId)}/test`,\n { body: params },\n );\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-4EKAWNYI.cjs","../src/resources/messageTemplates.ts"],"names":[],"mappings":"AAAA;AC0BO,IAAM,iBAAA,EAAN,MAAuB;AAAA,EAC5B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,MAAM,QAAA,CAAS,SAAA,EAAiD;AAC9D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,yBAAA,EAA4B,kBAAA,CAAmB,SAAS,CAAC,CAAA,CAAA;AACtF,EAAA;AAAA;AAG0F,EAAA;AAC5E,IAAA;AACV,MAAA;AACgF,MAAA;AAClF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYoC,EAAA;AACtB,IAAA;AACV,MAAA;AACgF,MAAA;AACjE,MAAA;AACjB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaoC,EAAA;AACtB,IAAA;AACV,MAAA;AACgF,MAAA;AACvB,MAAA;AAC3D,IAAA;AACF,EAAA;AAAA;AAOmC,EAAA;AACrB,IAAA;AACV,MAAA;AACgF,MAAA;AAChF,MAAA;AACQ,QAAA;AACR,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWoC,EAAA;AACtB,IAAA;AACV,MAAA;AACgF,MAAA;AACjE,MAAA;AACjB,IAAA;AACF,EAAA;AACF;AD9CyF;AACA;AACA;AACA","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-4EKAWNYI.cjs","sourcesContent":[null,"import type {\n MessageLanguage,\n MessageTemplateDetail,\n MessageTemplateLanguage,\n MessageTemplateList,\n MessageTemplatePreview,\n PreviewMessageTemplateRequest,\n ResetMessageTemplateLanguageQuery,\n SendTestMessageRequest,\n SendTestMessageResponse,\n UpdateMessageTemplateLanguageRequest,\n} from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * A shop's own texts of the emails it sends its buyers: invoices, renewal\n * recovery and checkout reminders. In each language the shop's text goes\n * before the platform's, which goes before the built-in one.\n *\n * Dashboard (JWT) routes. The shop must belong to the caller's merchant; each\n * template needs the permission of its kind (invoice or payment), read to\n * list, retrieve and preview, write to change, reset and send a test. The\n * list holds only the templates the caller may read. Every change is\n * recorded in the audit log (`entity_type: 'message_template'`, `entity_id:\n * 'shop:<profile_id>:<channel>:<template_id>:<language>'`).\n */\nexport class MessageTemplates {\n constructor(private readonly request: RequestFn) {}\n\n /** `GET /message-templates/shops/{profile_id}` */\n async listShop(profileId: string): Promise<MessageTemplateList> {\n return this.request('GET', `/message-templates/shops/${encodeURIComponent(profileId)}`);\n }\n\n /** `GET /message-templates/shops/{profile_id}/{template_id}` */\n async retrieveShop(profileId: string, templateId: string): Promise<MessageTemplateDetail> {\n return this.request(\n 'GET',\n `/message-templates/shops/${encodeURIComponent(profileId)}/${encodeURIComponent(templateId)}`,\n );\n }\n\n /**\n * Store the shop's text in one language.\n *\n * `PUT /message-templates/shops/{profile_id}/{template_id}/languages/{language}`\n */\n async updateShopLanguage(\n profileId: string,\n templateId: string,\n language: MessageLanguage,\n params: UpdateMessageTemplateLanguageRequest,\n ): Promise<MessageTemplateLanguage> {\n return this.request(\n 'PUT',\n `/message-templates/shops/${encodeURIComponent(profileId)}/${encodeURIComponent(templateId)}/languages/${encodeURIComponent(language)}`,\n { body: params },\n );\n }\n\n /**\n * Remove the shop's text in one language, so the platform's or the built-in\n * text applies.\n *\n * `DELETE /message-templates/shops/{profile_id}/{template_id}/languages/{language}`\n */\n async resetShopLanguage(\n profileId: string,\n templateId: string,\n language: MessageLanguage,\n params: ResetMessageTemplateLanguageQuery = {},\n ): Promise<MessageTemplateLanguage> {\n return this.request(\n 'DELETE',\n `/message-templates/shops/${encodeURIComponent(profileId)}/${encodeURIComponent(templateId)}/languages/${encodeURIComponent(language)}`,\n { query: { expected_revision: params.expected_revision } },\n );\n }\n\n /** `POST /message-templates/shops/{profile_id}/{template_id}/preview` */\n async previewShop(\n profileId: string,\n templateId: string,\n params: PreviewMessageTemplateRequest,\n ): Promise<MessageTemplatePreview> {\n return this.request(\n 'POST',\n `/message-templates/shops/${encodeURIComponent(profileId)}/${encodeURIComponent(templateId)}/preview`,\n {\n body: params,\n },\n );\n }\n\n /**\n * Send the template to the signed-in user's own address.\n *\n * `POST /message-templates/shops/{profile_id}/{template_id}/test`\n */\n async sendShopTest(\n profileId: string,\n templateId: string,\n params: SendTestMessageRequest,\n ): Promise<SendTestMessageResponse> {\n return this.request(\n 'POST',\n `/message-templates/shops/${encodeURIComponent(profileId)}/${encodeURIComponent(templateId)}/test`,\n { body: params },\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/publish-sdk-04990/dist/chunk-4LN4BR2T.cjs","../src/resources/shops.ts"],"names":[],"mappings":"AAAA;ACeA,IAAM,aAAA,EAAN,MAAmB;AAAA,EACjB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUlD,MAAM,OAAA,CACJ,UAAA,EACA,MAAA,EACA,MAAA,EAC0B;AAC1B,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,MACV,MAAA;AAAA,MACA,CAAA,OAAA,EAAU,kBAAA,CAAmB,UAAU,CAAC,CAAA,CAAA,EAAI,kBAAA,CAAmB,MAAM,CAAC,CAAA,SAAA,CAAA;AAAA,MACtE,EAAE,IAAA,EAAM,OAAO;AAAA,IACjB,CAAA;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,MAAM,IAAA,CAAK,UAAA,EAAoB,MAAA,EAA4C;AACzE,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,MACV,KAAA;AAAA,MACA,CAAA,OAAA,EAAU,kBAAA,CAAmB,UAAU,CAAC,CAAA,CAAA,EAAI,kBAAA,CAAmB,MAAM,CAAC,CAAA,SAAA;AAAA,IACxE,CAAA;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,MAAM,UAAA,CACJ,UAAA,EACA,MAAA,EACA,SAAA,EAC0B;AAC1B,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,MACV,QAAA;AAAA,MACA,CAAA,OAAA,EAAU,kBAAA,CAAmB,UAAU,CAAC,CAAA,CAAA,EAAI,kBAAA,CAAmB,MAAM,CAAC,CAAA,UAAA,EAAa,kBAAA,CAAm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AAA;AACsE,MAAA;AAC3C,IAAA;AAC7B,EAAA;AACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AA0BE,IAAA;AAAY,MAAA;AACV,MAAA;AACsE,MAAA;AACtE,IAAA;AACF,EAAA;AACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AAcE,IAAA;AAAY,MAAA;AACV,MAAA;AACsE,MAAA;AACtE,IAAA;AACF,EAAA;AACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AAeE,IAAA;AAAY,MAAA;AACV,MAAA;AACsE,MAAA;AAC3C,IAAA;AAC7B,EAAA;AAEJ;ADvEA;AACA;AACA;AACA","file":"/tmp/publish-sdk-04990/dist/chunk-4LN4BR2T.cjs","sourcesContent":[null,"import type {\n CheckoutBrandingResponse,\n CheckoutBrandingUpdate,\n ShopCreateRequest,\n ShopResponse,\n ShopUpdateRequest,\n GatewayConnectRequest,\n GatewayResponse,\n ProfileLogoUploadResponse,\n ShopStatsResponse,\n StatsPeriod,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/** Manage gateway connections for a specific shop. */\nclass ShopGateways {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Connect a payment gateway to a shop.\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop (business profile) ID.\n * @param params - Gateway connector credentials and configuration.\n * @returns The created gateway connection.\n */\n async connect(\n merchantId: string,\n shopId: string,\n params: GatewayConnectRequest,\n ): Promise<GatewayResponse> {\n return this.request(\n 'POST',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/gateways`,\n { body: params },\n );\n }\n\n /**\n * List all gateway connections for a shop.\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop ID.\n * @returns Array of gateway connections.\n */\n async list(merchantId: string, shopId: string): Promise<GatewayResponse[]> {\n return this.request(\n 'GET',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/gateways`,\n );\n }\n\n /**\n * Disconnect a gateway from a shop.\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop ID.\n * @param gatewayId - The gateway connector ID to remove.\n * @returns The removed gateway connection.\n */\n async disconnect(\n merchantId: string,\n shopId: string,\n gatewayId: string,\n ): Promise<GatewayResponse> {\n return this.request(\n 'DELETE',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/gateways/${encodeURIComponent(gatewayId)}`,\n );\n }\n}\n\n/**\n * Create and manage shops (business profiles) within a merchant account.\n *\n * Each shop can have its own gateway connections, routing rules, and fee schedules.\n */\nexport class Shops {\n /** Gateway connection management for shops. */\n readonly gateways: ShopGateways;\n\n constructor(private readonly request: RequestFn) {\n this.gateways = new ShopGateways(request);\n }\n\n /**\n * Create a new shop under a merchant account.\n *\n * @param merchantId - The merchant account ID.\n * @param params - Shop creation parameters (name, etc.).\n * @returns The created shop.\n *\n * @example\n * ```typescript\n * const shop = await delopay.shops.create('merch_123', { shop_name: 'EU Store' });\n * ```\n */\n async create(merchantId: string, params: ShopCreateRequest): Promise<ShopResponse> {\n return this.request('POST', `/shops/${encodeURIComponent(merchantId)}`, { body: params });\n }\n\n /**\n * Retrieve a shop by its ID.\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop ID.\n * @returns The shop.\n */\n async retrieve(merchantId: string, shopId: string): Promise<ShopResponse> {\n return this.request(\n 'GET',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}`,\n );\n }\n\n /**\n * Update a shop's configuration.\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop ID to update.\n * @param params - Fields to update.\n * @returns The updated shop.\n */\n async update(\n merchantId: string,\n shopId: string,\n params: ShopUpdateRequest,\n ): Promise<ShopResponse> {\n return this.request(\n 'PUT',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}`,\n { body: params },\n );\n }\n\n /**\n * Delete a shop.\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop ID to delete.\n * @returns The deleted shop object.\n */\n async delete(merchantId: string, shopId: string): Promise<ShopResponse> {\n return this.request(\n 'DELETE',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}`,\n );\n }\n\n /**\n * List all shops under a merchant account.\n *\n * @param merchantId - The merchant account ID.\n * @returns Array of shops.\n */\n async list(merchantId: string): Promise<ShopResponse[]> {\n return this.request('GET', `/shops/${encodeURIComponent(merchantId)}`);\n }\n\n /**\n * Successful-order count and revenue for one shop.\n *\n * Unlike `projects.stats()` this needs only `ProfileAccountRead`, so a\n * shop-scoped user can load it for their own shop; merchant-level users can\n * load any shop of their merchant.\n *\n * Revenue comes back FX-converted as `revenue_usd` (USD major units) plus a\n * `revenue_by_currency` breakdown. The legacy `revenue` field is a raw\n * cross-currency minor-unit sum and should not be displayed.\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop (business profile) ID.\n * @param period - Window in days, or `'all'` for an all-time total.\n * Omitted means the server default of 30 days.\n * @returns The shop's stats over the requested window.\n *\n * @example\n * ```typescript\n * const stats = await delopay.shops.stats('merch_123', 'pro_1', 'all');\n * console.log(stats.orders, stats.revenue_usd);\n * ```\n */\n async stats(\n merchantId: string,\n shopId: string,\n period?: StatsPeriod,\n ): Promise<ShopStatsResponse> {\n const path = `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/stats`;\n if (period === undefined) return this.request('GET', path);\n return this.request('GET', path, { query: { period: String(period) } });\n }\n\n /**\n * Upload a logo file for a shop. The file is stored in Delopay's configured\n * object store and a public HTTPS URL is returned. This method does NOT write\n * the URL into the shop's `payment_link_config.logo` — call\n * `shops.update` afterwards with the returned `logo_url` to persist the change.\n *\n * Accepts PNG, JPEG, WebP or SVG. The file must be ≤ 1 MiB.\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop (business profile) ID.\n * @param file - The logo file (Blob / File in browsers).\n * @returns The publicly-reachable URL of the uploaded logo.\n *\n * @example\n * ```typescript\n * const { logo_url } = await delopay.shops.uploadLogo('merch_1', 'pro_1', file);\n * await delopay.shops.update('merch_1', 'pro_1', {\n * payment_link_config: { logo: logo_url },\n * });\n * ```\n */\n async uploadLogo(\n merchantId: string,\n shopId: string,\n file: Blob,\n ): Promise<ProfileLogoUploadResponse> {\n const form = new FormData();\n form.append('file', file);\n return this.request(\n 'POST',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/logo`,\n { body: form },\n );\n }\n\n /**\n * Update only the checkout appearance (the `payment_link_config` blob:\n * theme, logo, colours, seller name, SDK layout/rules, DeloPay-branding\n * toggle) of a shop. Applied as a whole-object replace of\n * `payment_link_config`, mirroring the shop-update semantics.\n *\n * Gated on the dedicated `CheckoutBranding` permission, so \"may restyle\n * the checkout\" can be granted without full account/shop write.\n *\n * `POST /shops/{merchantId}/{shopId}/checkout-branding`\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop (business profile) ID to restyle.\n * @param params - The new `payment_link_config` blob (full replacement).\n * @returns The saved branding — the same shape `retrieveCheckoutBranding`\n * returns, not the whole shop. A role whose only power is restyling a\n * checkout must not receive the webhook signing key or the card-vault\n * configuration back from a save.\n */\n async updateCheckoutBranding(\n merchantId: string,\n shopId: string,\n params: CheckoutBrandingUpdate,\n options?: RequestExtras,\n ): Promise<CheckoutBrandingResponse> {\n return this.request(\n 'POST',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/checkout-branding`,\n { body: params, ...options },\n );\n }\n\n /**\n * Read only the checkout appearance of a shop, so the role that may restyle a\n * checkout can load the checkout it may restyle.\n *\n * Gated on `ProfileCheckoutBrandingRead` — the read twin of the\n * `ProfileCheckoutBrandingEdit` guard on `updateCheckoutBranding` above.\n * Prefer this over `shops.retrieve` for the branding editor: `retrieve`\n * returns the whole profile, including the webhook signing key and the\n * card-vault configuration, and needs the shop-read permission for exactly\n * that reason.\n *\n * `GET /shops/{merchantId}/{shopId}/checkout-branding`\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop (business profile) ID whose branding to read.\n * @returns The shop's id, name and stored `payment_link_config`. That config\n * is `null` when the shop has never been styled — the untouched default, not\n * an error, and distinct from a stored-but-empty style.\n */\n async retrieveCheckoutBranding(\n merchantId: string,\n shopId: string,\n options?: RequestExtras,\n ): Promise<CheckoutBrandingResponse> {\n return this.request(\n 'GET',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/checkout-branding`,\n options,\n );\n }\n\n /**\n * Read the Test checkout's appearance, used by payments created with\n * `test_mode: true`. Until its first save, Test follows Live:\n * `follows_live` is `true` and `payment_link_config` is Live's.\n *\n * `GET /shops/{merchantId}/{shopId}/checkout-branding/test`\n */\n async retrieveTestCheckoutBranding(\n merchantId: string,\n shopId: string,\n options?: RequestExtras,\n ): Promise<CheckoutBrandingResponse> {\n return this.request(\n 'GET',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/checkout-branding/test`,\n options,\n );\n }\n\n /**\n * Replace the Test checkout's appearance, exactly as\n * {@link updateCheckoutBranding} replaces Live's. Live is not touched; a\n * shop whose Test followed Live has its own Test settings from this save on.\n *\n * `POST /shops/{merchantId}/{shopId}/checkout-branding/test`\n */\n async updateTestCheckoutBranding(\n merchantId: string,\n shopId: string,\n params: CheckoutBrandingUpdate,\n options?: RequestExtras,\n ): Promise<CheckoutBrandingResponse> {\n return this.request(\n 'POST',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/checkout-branding/test`,\n { body: params, ...options },\n );\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-4LN4BR2T.cjs","../src/resources/shops.ts"],"names":[],"mappings":"AAAA;ACeA,IAAM,aAAA,EAAN,MAAmB;AAAA,EACjB,WAAA,CAA6B,OAAA,EAAoB;AAApB,I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AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AAcE,IAAA;AAAY,MAAA;AACV,MAAA;AACsE,MAAA;AACtE,IAAA;AACF,EAAA;AACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AAeE,IAAA;AAAY,MAAA;AACV,MAAA;AACsE,MAAA;AAC3C,IAAA;AAC7B,EAAA;AAEJ;ADvEA;AACA;AACA;AACA","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-4LN4BR2T.cjs","sourcesContent":[null,"import type {\n CheckoutBrandingResponse,\n CheckoutBrandingUpdate,\n ShopCreateRequest,\n ShopResponse,\n ShopUpdateRequest,\n GatewayConnectRequest,\n GatewayResponse,\n ProfileLogoUploadResponse,\n ShopStatsResponse,\n StatsPeriod,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/** Manage gateway connections for a specific shop. */\nclass ShopGateways {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Connect a payment gateway to a shop.\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop (business profile) ID.\n * @param params - Gateway connector credentials and configuration.\n * @returns The created gateway connection.\n */\n async connect(\n merchantId: string,\n shopId: string,\n params: GatewayConnectRequest,\n ): Promise<GatewayResponse> {\n return this.request(\n 'POST',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/gateways`,\n { body: params },\n );\n }\n\n /**\n * List all gateway connections for a shop.\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop ID.\n * @returns Array of gateway connections.\n */\n async list(merchantId: string, shopId: string): Promise<GatewayResponse[]> {\n return this.request(\n 'GET',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/gateways`,\n );\n }\n\n /**\n * Disconnect a gateway from a shop.\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop ID.\n * @param gatewayId - The gateway connector ID to remove.\n * @returns The removed gateway connection.\n */\n async disconnect(\n merchantId: string,\n shopId: string,\n gatewayId: string,\n ): Promise<GatewayResponse> {\n return this.request(\n 'DELETE',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/gateways/${encodeURIComponent(gatewayId)}`,\n );\n }\n}\n\n/**\n * Create and manage shops (business profiles) within a merchant account.\n *\n * Each shop can have its own gateway connections, routing rules, and fee schedules.\n */\nexport class Shops {\n /** Gateway connection management for shops. */\n readonly gateways: ShopGateways;\n\n constructor(private readonly request: RequestFn) {\n this.gateways = new ShopGateways(request);\n }\n\n /**\n * Create a new shop under a merchant account.\n *\n * @param merchantId - The merchant account ID.\n * @param params - Shop creation parameters (name, etc.).\n * @returns The created shop.\n *\n * @example\n * ```typescript\n * const shop = await delopay.shops.create('merch_123', { shop_name: 'EU Store' });\n * ```\n */\n async create(merchantId: string, params: ShopCreateRequest): Promise<ShopResponse> {\n return this.request('POST', `/shops/${encodeURIComponent(merchantId)}`, { body: params });\n }\n\n /**\n * Retrieve a shop by its ID.\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop ID.\n * @returns The shop.\n */\n async retrieve(merchantId: string, shopId: string): Promise<ShopResponse> {\n return this.request(\n 'GET',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}`,\n );\n }\n\n /**\n * Update a shop's configuration.\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop ID to update.\n * @param params - Fields to update.\n * @returns The updated shop.\n */\n async update(\n merchantId: string,\n shopId: string,\n params: ShopUpdateRequest,\n ): Promise<ShopResponse> {\n return this.request(\n 'PUT',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}`,\n { body: params },\n );\n }\n\n /**\n * Delete a shop.\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop ID to delete.\n * @returns The deleted shop object.\n */\n async delete(merchantId: string, shopId: string): Promise<ShopResponse> {\n return this.request(\n 'DELETE',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}`,\n );\n }\n\n /**\n * List all shops under a merchant account.\n *\n * @param merchantId - The merchant account ID.\n * @returns Array of shops.\n */\n async list(merchantId: string): Promise<ShopResponse[]> {\n return this.request('GET', `/shops/${encodeURIComponent(merchantId)}`);\n }\n\n /**\n * Successful-order count and revenue for one shop.\n *\n * Unlike `projects.stats()` this needs only `ProfileAccountRead`, so a\n * shop-scoped user can load it for their own shop; merchant-level users can\n * load any shop of their merchant.\n *\n * Revenue comes back FX-converted as `revenue_usd` (USD major units) plus a\n * `revenue_by_currency` breakdown. The legacy `revenue` field is a raw\n * cross-currency minor-unit sum and should not be displayed.\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop (business profile) ID.\n * @param period - Window in days, or `'all'` for an all-time total.\n * Omitted means the server default of 30 days.\n * @returns The shop's stats over the requested window.\n *\n * @example\n * ```typescript\n * const stats = await delopay.shops.stats('merch_123', 'pro_1', 'all');\n * console.log(stats.orders, stats.revenue_usd);\n * ```\n */\n async stats(\n merchantId: string,\n shopId: string,\n period?: StatsPeriod,\n ): Promise<ShopStatsResponse> {\n const path = `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/stats`;\n if (period === undefined) return this.request('GET', path);\n return this.request('GET', path, { query: { period: String(period) } });\n }\n\n /**\n * Upload a logo file for a shop. The file is stored in Delopay's configured\n * object store and a public HTTPS URL is returned. This method does NOT write\n * the URL into the shop's `payment_link_config.logo` — call\n * `shops.update` afterwards with the returned `logo_url` to persist the change.\n *\n * Accepts PNG, JPEG, WebP or SVG. The file must be ≤ 1 MiB.\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop (business profile) ID.\n * @param file - The logo file (Blob / File in browsers).\n * @returns The publicly-reachable URL of the uploaded logo.\n *\n * @example\n * ```typescript\n * const { logo_url } = await delopay.shops.uploadLogo('merch_1', 'pro_1', file);\n * await delopay.shops.update('merch_1', 'pro_1', {\n * payment_link_config: { logo: logo_url },\n * });\n * ```\n */\n async uploadLogo(\n merchantId: string,\n shopId: string,\n file: Blob,\n ): Promise<ProfileLogoUploadResponse> {\n const form = new FormData();\n form.append('file', file);\n return this.request(\n 'POST',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/logo`,\n { body: form },\n );\n }\n\n /**\n * Update only the checkout appearance (the `payment_link_config` blob:\n * theme, logo, colours, seller name, SDK layout/rules, DeloPay-branding\n * toggle) of a shop. Applied as a whole-object replace of\n * `payment_link_config`, mirroring the shop-update semantics.\n *\n * Gated on the dedicated `CheckoutBranding` permission, so \"may restyle\n * the checkout\" can be granted without full account/shop write.\n *\n * `POST /shops/{merchantId}/{shopId}/checkout-branding`\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop (business profile) ID to restyle.\n * @param params - The new `payment_link_config` blob (full replacement).\n * @returns The saved branding — the same shape `retrieveCheckoutBranding`\n * returns, not the whole shop. A role whose only power is restyling a\n * checkout must not receive the webhook signing key or the card-vault\n * configuration back from a save.\n */\n async updateCheckoutBranding(\n merchantId: string,\n shopId: string,\n params: CheckoutBrandingUpdate,\n options?: RequestExtras,\n ): Promise<CheckoutBrandingResponse> {\n return this.request(\n 'POST',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/checkout-branding`,\n { body: params, ...options },\n );\n }\n\n /**\n * Read only the checkout appearance of a shop, so the role that may restyle a\n * checkout can load the checkout it may restyle.\n *\n * Gated on `ProfileCheckoutBrandingRead` — the read twin of the\n * `ProfileCheckoutBrandingEdit` guard on `updateCheckoutBranding` above.\n * Prefer this over `shops.retrieve` for the branding editor: `retrieve`\n * returns the whole profile, including the webhook signing key and the\n * card-vault configuration, and needs the shop-read permission for exactly\n * that reason.\n *\n * `GET /shops/{merchantId}/{shopId}/checkout-branding`\n *\n * @param merchantId - The merchant account ID.\n * @param shopId - The shop (business profile) ID whose branding to read.\n * @returns The shop's id, name and stored `payment_link_config`. That config\n * is `null` when the shop has never been styled — the untouched default, not\n * an error, and distinct from a stored-but-empty style.\n */\n async retrieveCheckoutBranding(\n merchantId: string,\n shopId: string,\n options?: RequestExtras,\n ): Promise<CheckoutBrandingResponse> {\n return this.request(\n 'GET',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/checkout-branding`,\n options,\n );\n }\n\n /**\n * Read the Test checkout's appearance, used by payments created with\n * `test_mode: true`. Until its first save, Test follows Live:\n * `follows_live` is `true` and `payment_link_config` is Live's.\n *\n * `GET /shops/{merchantId}/{shopId}/checkout-branding/test`\n */\n async retrieveTestCheckoutBranding(\n merchantId: string,\n shopId: string,\n options?: RequestExtras,\n ): Promise<CheckoutBrandingResponse> {\n return this.request(\n 'GET',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/checkout-branding/test`,\n options,\n );\n }\n\n /**\n * Replace the Test checkout's appearance, exactly as\n * {@link updateCheckoutBranding} replaces Live's. Live is not touched; a\n * shop whose Test followed Live has its own Test settings from this save on.\n *\n * `POST /shops/{merchantId}/{shopId}/checkout-branding/test`\n */\n async updateTestCheckoutBranding(\n merchantId: string,\n shopId: string,\n params: CheckoutBrandingUpdate,\n options?: RequestExtras,\n ): Promise<CheckoutBrandingResponse> {\n return this.request(\n 'POST',\n `/shops/${encodeURIComponent(merchantId)}/${encodeURIComponent(shopId)}/checkout-branding/test`,\n { body: params, ...options },\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/publish-sdk-04990/dist/chunk-4T4XHPYN.cjs","../src/airwallexCard.ts"],"names":[],"mappings":"AAAA;ACkCO,IAAM,uBAAA,EAAyB;AAAA,EACpC,YAAA;AAAA,EACA,cAAA;AAAA,EACA,uBAAA;AAAA,EACA,SAAA;AAAA,EACA,mBAAA;AAAA,EACA;AACF,CAAA;AAmEA,IAAM,MAAA,EAAuC,CAAC,YAAA,EAAc,QAAA,EAAU,KAAK,CAAA;AAUpE,IAAM,uBAAA,EAA2E;AAAA;AAAA;AAAA;AAAA,EAItF,UAAA,EAAY;AAAA,IACV,QAAA,EAAU,CAAC,MA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EAAA,OAAO,OAAA,IAAW,UAAA,EAAY,IAAA,EAAM,OAAA,IAAW,WAAA,EAAa,IAAA,EAAM,GAAA;AACpE;AAYO,IAAM,wBAAA,EAA0B,CAAC,MAAA,EAAQ,YAAA,EAAc,MAAA,EAAQ,UAAU,CAAA;AD7PhF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,6jCAAC","file":"/tmp/publish-sdk-04990/dist/chunk-4T4XHPYN.cjs","sourcesContent":[null,"// The Airwallex card form's shape, as one description both renderers read.\n//\n// The buyer's checkout draws this form twice: once for real, mounting one\n// Airwallex iframe per field (`AirwallexCardPane`), and once inert, inside the\n// merchant dashboard's live preview (`PreviewPaymentSurface`). The preview\n// cannot be the real one — mounting a processor's SDK in a dashboard frame is\n// a payment nobody asked to start, and `check-preview-inert.mjs` exists to\n// forbid it — so there are necessarily two renderers of the same form.\n//\n// Two renderers of one form is the drift hazard this file exists to remove. A\n// preview that shows a layout the pane does not produce is worse than no\n// preview at all, because the merchant configures against it and finds out\n// from a buyer. So neither renderer describes the geometry: both read\n// `AIRWALLEX_CARD_LAYOUTS`, and a preset that exists in one and not the other\n// is a TYPE ERROR here rather than a guard finding later — `Record<\n// AirwallexCardPreset, …>` has to name every member of the union.\n//\n// What lives here is geometry and nothing else. Colours, radius, padding and\n// type come from the merchant's own branding tokens, and what happens INSIDE\n// each box belongs to Airwallex.\n\n/**\n * The card layouts the checkout can draw.\n *\n * Presentation only. Every one of them collects the card inside Airwallex's\n * own iframes and confirms the same intent, so the PCI scope, the guards and\n * the return leg are identical whichever the merchant picks — which is what\n * makes this a setting rather than a second rail.\n *\n * `fullFeaturedCard`, Airwallex's own all-in-one element, is deliberately not\n * on this list. It is a different element with a different theming API, and it\n * takes the layout away from us entirely; it needs its own decision, not a\n * seventh row in a list of geometries.\n */\nexport const AIRWALLEX_CARD_PRESETS = [\n 'single_row',\n 'split_fields',\n 'split_fields_labelled',\n 'stacked',\n 'number_expiry_row',\n 'compact',\n] as const;\n\nexport type AirwallexCardPreset = (typeof AIRWALLEX_CARD_PRESETS)[number];\n\n/**\n * A field of the card form, named as Airwallex's `createElement` names it.\n *\n * `card` is the combined element — number, expiry and CVC in one iframe on one\n * line — and it never appears alongside the other three: a layout is either\n * the one element or the trio.\n */\nexport type AirwallexCardField = 'card' | 'cardNumber' | 'expiry' | 'cvc';\n\nexport interface AirwallexCardLayout {\n /**\n * The elements to create, in creation order.\n *\n * Order is load-bearing twice over: `confirm()` is called on the first one\n * (the combined element, or the number field, which coordinates its\n * siblings), and completion advances the caret to the next.\n */\n readonly elements: readonly AirwallexCardField[];\n /**\n * The rows to draw, top to bottom, each naming the fields on it left to\n * right. Fields sharing a row share its width evenly.\n *\n * Every field in `elements` appears exactly once across `rows`, and nothing\n * else does — `airwallexCardLayoutIsCoherent` is that claim, executable.\n */\n readonly rows: readonly (readonly AirwallexCardField[])[];\n /**\n * How a row's width is shared, when sharing it evenly is wrong.\n *\n * **Optional, and absent is the normal case**: a row with no weights splits\n * evenly, which is what every other preset wants — `stacked` is full-width\n * rows, `split_fields`, `split_fields_labelled` and `compact` pair expiry\n * and CVC, which are both short and genuinely want half each, and\n * `single_row` is one element. Only `number_expiry_row` puts two fields of\n * very different lengths on one line, and only it declares weights.\n *\n * Declared as weights rather than widths on purpose. A fixed width is right\n * for exactly the embed width it was tuned against and wrong either side of\n * it; a weight is a ratio and holds at any width. That is not hypothetical\n * — the defect that produced this field was a card-number placeholder\n * clipped at 460px, which no fixed width would have fixed for the merchant\n * whose embed is 380px.\n *\n * A field with no entry weighs 1.\n */\n readonly weights?: Readonly<Partial<Record<AirwallexCardField, number>>>;\n /**\n * Whether this preset captions its fields by default.\n *\n * The merchant can override it (`branding.airwallexLabelStyle`); this is\n * what the preset means when they have not. Captions are always visual: see\n * `AIRWALLEX_LABEL_STYLES`.\n */\n readonly labels: boolean;\n /**\n * `compact` draws one step tighter and one step smaller than the merchant's\n * own `inputSize` and field type size, rather than replacing them — a\n * merchant who chose spacious spacing and this preset gets spacious-minus-\n * one, not the same form as a merchant who chose compact.\n */\n readonly density: 'default' | 'compact';\n}\n\nconst SPLIT: readonly AirwallexCardField[] = ['cardNumber', 'expiry', 'cvc'];\n\n/**\n * Every preset's geometry, and the single source of it.\n *\n * Typed as a total `Record` on purpose. Adding a preset to\n * `AIRWALLEX_CARD_PRESETS` without adding its geometry here does not compile,\n * so the two cannot come apart in the direction that would leave a renderer\n * guessing.\n */\nexport const AIRWALLEX_CARD_LAYOUTS: Record<AirwallexCardPreset, AirwallexCardLayout> = {\n // Airwallex's combined element. One iframe, one row, and the only preset\n // whose insides are not ours to lay out — which is why it carries no\n // captions: there is nothing to caption but the row as a whole.\n single_row: {\n elements: ['card'],\n rows: [['card']],\n labels: false,\n density: 'default',\n },\n // The trio with placeholders carrying the meaning. Shorter than the\n // labelled variant and fine on a wide surface.\n split_fields: {\n elements: SPLIT,\n rows: [['cardNumber'], ['expiry', 'cvc']],\n labels: false,\n density: 'default',\n },\n // The default. The same geometry, captioned — which is what makes it\n // survive a narrow embed, where a bare field row stops being self-evident.\n split_fields_labelled: {\n elements: SPLIT,\n rows: [['cardNumber'], ['expiry', 'cvc']],\n labels: true,\n density: 'default',\n },\n // Every field full width. Expiry and CVC side by side start to crowd below\n // roughly 320px, and this is the layout that does not.\n stacked: {\n elements: SPLIT,\n rows: [['cardNumber'], ['expiry'], ['cvc']],\n labels: true,\n density: 'default',\n },\n // Two rows instead of two-plus-one: shorter than the split forms without\n // the ambiguity of a single combined field.\n //\n // 3:2, not an even split. A card number is nineteen characters and an expiry\n // is five, so halving the row clipped the number's own placeholder at 460px\n // — seen in the preview before this was weighted. The proposal drew it even;\n // the merchant-facing decision was taken on the two drawn side by side and\n // the weighted one was chosen, so do not \"restore\" the even split to match\n // the original mock.\n number_expiry_row: {\n elements: SPLIT,\n rows: [['cardNumber', 'expiry'], ['cvc']],\n weights: { cardNumber: 3, expiry: 2 },\n labels: true,\n density: 'default',\n },\n // Split geometry at reduced density and type size, for a checkout embedded\n // in a page that already has its own chrome.\n compact: {\n elements: SPLIT,\n rows: [['cardNumber'], ['expiry', 'cvc']],\n labels: false,\n density: 'compact',\n },\n};\n\n/**\n * The preset that renders when nobody has chosen one.\n *\n * Not `DEFAULT_BRANDING.airwallexCardPreset`, which is the empty string: the\n * branding field means \"the merchant's choice, in the shop's checkout\n * customizer\", and empty means they have not made one. This is the last step\n * of the resolution, after the connector account's own setting.\n * See `resolveAirwallexCardPreset`.\n */\nexport const AIRWALLEX_CARD_PRESET_FALLBACK: AirwallexCardPreset = 'split_fields_labelled';\n\n/**\n * Which preset the buyer's card form is drawn from.\n *\n * Three sources, in this order, and the order is the migration story:\n *\n * 1. **The shop's branding.** Set in the checkout customizer, empty when the\n * merchant has not been there. Empty rather than pre-filled with the\n * default precisely so that (2) still means something — a branding field\n * that always held a value would silently override every connector\n * account already configured, which is a rendering change no merchant\n * asked for.\n * 2. **The connector account's `integration_style` metadata**, where this\n * setting lived before the customizer existed, projected onto the checkout\n * payload as `card_connector_integration_style`. Still authoritative for\n * every merchant who set it and has not overridden it here. Nothing\n * migrates it; it simply keeps working.\n * 3. **`split_fields_labelled`**, for a shop that has never set either.\n *\n * Step 3 is the one visible change: a shop with nothing configured used to get\n * the combined single row, and now gets the labelled split form.\n *\n * Anything unrecognised at either step falls through rather than failing. The\n * dashboard and the router deploy separately and may already offer a preset\n * this build has not heard of; a card form in the wrong layout is a cosmetic\n * disappointment, and no card form is a lost sale.\n */\nexport function resolveAirwallexCardPreset(\n fromBranding: string | null | undefined,\n fromConnector: string | null | undefined,\n): AirwallexCardPreset {\n return asPreset(fromBranding) ?? asPreset(fromConnector) ?? AIRWALLEX_CARD_PRESET_FALLBACK;\n}\n\n/** The preset named, or `null` for anything this build does not know. */\nexport function asAirwallexCardPreset(value: unknown): AirwallexCardPreset | null {\n return asPreset(value);\n}\n\nfunction asPreset(value: unknown): AirwallexCardPreset | null {\n if (typeof value !== 'string') return null;\n const trimmed = value.trim().toLowerCase();\n return (AIRWALLEX_CARD_PRESETS as readonly string[]).includes(trimmed)\n ? (trimmed as AirwallexCardPreset)\n : null;\n}\n\n/** The geometry for a preset. Total, by the type of `AIRWALLEX_CARD_LAYOUTS`. */\nexport function airwallexCardLayout(preset: AirwallexCardPreset): AirwallexCardLayout {\n return AIRWALLEX_CARD_LAYOUTS[preset];\n}\n\n/**\n * How much of its row a field takes, relative to its neighbours.\n *\n * `1` unless the layout says otherwise, so a caller can multiply blindly and\n * an unweighted row divides evenly — which is what the CSS did before weights\n * existed, and therefore what every preset but one still gets.\n */\nexport function airwallexCellWeight(\n layout: AirwallexCardLayout,\n field: AirwallexCardField,\n): number {\n const weight = layout.weights?.[field];\n return typeof weight === 'number' && Number.isFinite(weight) && weight > 0 ? weight : 1;\n}\n\n/**\n * Whether a layout's rows draw exactly the elements it creates.\n *\n * The one thing the `Record` type cannot check. An element created with no row\n * to mount into leaves its field permanently pending — the pane's own comment\n * for that case is \"the form would sit on the skeleton until the deadline with\n * no reason given\" — and a row naming a field with no element draws an empty\n * box the buyer can click into and never type in. Both are silent.\n *\n * Executed by the checkout's preview guard over every preset, which is where a\n * new one gets caught.\n */\nexport function airwallexCardLayoutIsCoherent(layout: AirwallexCardLayout): boolean {\n const drawn = layout.rows.flat();\n if (drawn.length !== layout.elements.length) return false;\n return layout.elements.every((field) => drawn.filter((f) => f === field).length === 1);\n}\n\n/**\n * How the field's caption is drawn.\n *\n * Every one of these is **visual only**, and that is not a limitation we chose:\n * `for` cannot cross into a cross-origin iframe, so a `<label>` here would name\n * nothing and focus nothing. The field keeps the accessible name Airwallex\n * gives it inside the frame, and these captions sit beside it as an\n * affordance. The pane ships a caption on exactly these terms today.\n *\n * `''` is not a style — it means \"whatever the preset says\", so that\n * `split_fields` and `split_fields_labelled` keep meaning what they mean while\n * a merchant can still put floating captions on `compact`.\n */\nexport const AIRWALLEX_LABEL_STYLES = ['above', 'inline', 'floating', 'none'] as const;\nexport type AirwallexLabelStyle = (typeof AIRWALLEX_LABEL_STYLES)[number];\n\n/**\n * The caption style actually drawn: the merchant's override, or the preset's\n * own answer to whether it captions at all.\n */\nexport function resolveAirwallexLabelStyle(\n override: string | null | undefined,\n layout: AirwallexCardLayout,\n): AirwallexLabelStyle {\n if (\n typeof override === 'string' &&\n (AIRWALLEX_LABEL_STYLES as readonly string[]).includes(override)\n ) {\n return override as AirwallexLabelStyle;\n }\n return layout.labels ? 'above' : 'none';\n}\n\n/** How the box around each field is drawn. All three are the pane's own CSS. */\nexport const AIRWALLEX_FIELD_CHROMES = ['outlined', 'filled', 'underline'] as const;\nexport type AirwallexFieldChrome = (typeof AIRWALLEX_FIELD_CHROMES)[number];\n\n/**\n * The ring drawn around the focused field.\n *\n * Half of it is the pane's CSS on the container and half is Airwallex's\n * `:focus` bucket inside the frame; they are one control because a ring that\n * appeared on only one side of the iframe boundary would look like a bug.\n */\nexport const AIRWALLEX_FOCUS_RINGS = ['none', 'subtle', 'strong'] as const;\nexport type AirwallexFocusRing = (typeof AIRWALLEX_FOCUS_RINGS)[number];\n\n/**\n * What the browser's autofill highlight is allowed to do to the field.\n *\n * The one control on this list with no workaround from outside the frame:\n * the browser paints its own background on an autofilled input, and only the\n * SDK's `:autofill` bucket reaches it. `system` leaves it alone — the buyer's\n * own browser telling them it filled the field is information, not a style\n * bug — which is why it is the default.\n */\nexport const AIRWALLEX_AUTOFILL_TREATMENTS = ['system', 'brand', 'neutral'] as const;\nexport type AirwallexAutofillTreatment = (typeof AIRWALLEX_AUTOFILL_TREATMENTS)[number];\n\n/** Field type sizes, as the checkout's other size scales are named. */\nexport const AIRWALLEX_FIELD_FONT_SIZES = ['sm', 'md', 'lg'] as const;\nexport type AirwallexFieldFontSize = (typeof AIRWALLEX_FIELD_FONT_SIZES)[number];\n\n/** Field type weights. `medium` is what the pane hardcoded before this existed. */\nexport const AIRWALLEX_FIELD_WEIGHTS = ['regular', 'medium', 'semibold'] as const;\nexport type AirwallexFieldWeight = (typeof AIRWALLEX_FIELD_WEIGHTS)[number];\n\n/** Field type size in px, for the SDK's `base.fontSize`. */\nexport function airwallexFieldFontPx(\n size: AirwallexFieldFontSize,\n density: AirwallexCardLayout['density'],\n): number {\n const base = size === 'sm' ? 14 : size === 'lg' ? 18 : 16;\n // A compact preset draws one step smaller, floored so the field never\n // reaches the size at which iOS zooms the page on focus minus two.\n return density === 'compact' ? Math.max(13, base - 1) : base;\n}\n\n/** Field type weight as a CSS numeric weight, for the SDK's `base.fontWeight`. */\nexport function airwallexFieldWeightValue(weight: AirwallexFieldWeight): number {\n return weight === 'regular' ? 400 : weight === 'semibold' ? 600 : 500;\n}\n\n/**\n * The card networks whose marks the field row can display.\n *\n * **Decorative.** This list does not restrict what Airwallex accepts — that\n * would be `allowedCardNetworks`, which this build deliberately does not set,\n * because narrowing the networks a buyer may pay with is an acceptance change\n * and not a styling one. So the marks say what the merchant claims to take,\n * and it is the merchant's job to keep that true; the dashboard's field hint\n * says so in as many words. Enforcement is its own decision.\n */\nexport const AIRWALLEX_NETWORK_MARKS = ['visa', 'mastercard', 'amex', 'discover'] as const;\nexport type AirwallexNetworkMark = (typeof AIRWALLEX_NETWORK_MARKS)[number];\n"]}
1
+ {"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-4T4XHPYN.cjs","../src/airwallexCard.ts"],"names":[],"mappings":"AAAA;ACkCO,IAAM,uBAAA,EAAyB;AAAA,EACpC,YAAA;AAAA,EACA,cAAA;AAAA,EACA,uBAAA;AAAA,EACA,SAAA;AAAA,EACA,mBAAA;AAAA,EACA;AACF,CAAA;AAmEA,IAAM,MAAA,EAAuC,CAAC,YAAA,EAAc,QAAA,EAAU,KAAK,CAAA;AAUpE,IAAM,uBAAA,EAA2E;AAAA;AAAA;AAAA;AAAA,EAItF,UAAA,EAAY;AAAA,IACV,QAAA,EAAU,CAAC,MAAM,CAAA;AAAA,IACjB,IAAA,EAAM,CAAC,CAAC,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M,OAAA,IAAW,WAAA,EAAa,IAAA,EAAM,GAAA;AACpE;AAYO,IAAM,wBAAA,EAA0B,CAAC,MAAA,EAAQ,YAAA,EAAc,MAAA,EAAQ,UAAU,CAAA;AD7PhF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,6jCAAC","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-4T4XHPYN.cjs","sourcesContent":[null,"// The Airwallex card form's shape, as one description both renderers read.\n//\n// The buyer's checkout draws this form twice: once for real, mounting one\n// Airwallex iframe per field (`AirwallexCardPane`), and once inert, inside the\n// merchant dashboard's live preview (`PreviewPaymentSurface`). The preview\n// cannot be the real one — mounting a processor's SDK in a dashboard frame is\n// a payment nobody asked to start, and `check-preview-inert.mjs` exists to\n// forbid it — so there are necessarily two renderers of the same form.\n//\n// Two renderers of one form is the drift hazard this file exists to remove. A\n// preview that shows a layout the pane does not produce is worse than no\n// preview at all, because the merchant configures against it and finds out\n// from a buyer. So neither renderer describes the geometry: both read\n// `AIRWALLEX_CARD_LAYOUTS`, and a preset that exists in one and not the other\n// is a TYPE ERROR here rather than a guard finding later — `Record<\n// AirwallexCardPreset, …>` has to name every member of the union.\n//\n// What lives here is geometry and nothing else. Colours, radius, padding and\n// type come from the merchant's own branding tokens, and what happens INSIDE\n// each box belongs to Airwallex.\n\n/**\n * The card layouts the checkout can draw.\n *\n * Presentation only. Every one of them collects the card inside Airwallex's\n * own iframes and confirms the same intent, so the PCI scope, the guards and\n * the return leg are identical whichever the merchant picks — which is what\n * makes this a setting rather than a second rail.\n *\n * `fullFeaturedCard`, Airwallex's own all-in-one element, is deliberately not\n * on this list. It is a different element with a different theming API, and it\n * takes the layout away from us entirely; it needs its own decision, not a\n * seventh row in a list of geometries.\n */\nexport const AIRWALLEX_CARD_PRESETS = [\n 'single_row',\n 'split_fields',\n 'split_fields_labelled',\n 'stacked',\n 'number_expiry_row',\n 'compact',\n] as const;\n\nexport type AirwallexCardPreset = (typeof AIRWALLEX_CARD_PRESETS)[number];\n\n/**\n * A field of the card form, named as Airwallex's `createElement` names it.\n *\n * `card` is the combined element — number, expiry and CVC in one iframe on one\n * line — and it never appears alongside the other three: a layout is either\n * the one element or the trio.\n */\nexport type AirwallexCardField = 'card' | 'cardNumber' | 'expiry' | 'cvc';\n\nexport interface AirwallexCardLayout {\n /**\n * The elements to create, in creation order.\n *\n * Order is load-bearing twice over: `confirm()` is called on the first one\n * (the combined element, or the number field, which coordinates its\n * siblings), and completion advances the caret to the next.\n */\n readonly elements: readonly AirwallexCardField[];\n /**\n * The rows to draw, top to bottom, each naming the fields on it left to\n * right. Fields sharing a row share its width evenly.\n *\n * Every field in `elements` appears exactly once across `rows`, and nothing\n * else does — `airwallexCardLayoutIsCoherent` is that claim, executable.\n */\n readonly rows: readonly (readonly AirwallexCardField[])[];\n /**\n * How a row's width is shared, when sharing it evenly is wrong.\n *\n * **Optional, and absent is the normal case**: a row with no weights splits\n * evenly, which is what every other preset wants — `stacked` is full-width\n * rows, `split_fields`, `split_fields_labelled` and `compact` pair expiry\n * and CVC, which are both short and genuinely want half each, and\n * `single_row` is one element. Only `number_expiry_row` puts two fields of\n * very different lengths on one line, and only it declares weights.\n *\n * Declared as weights rather than widths on purpose. A fixed width is right\n * for exactly the embed width it was tuned against and wrong either side of\n * it; a weight is a ratio and holds at any width. That is not hypothetical\n * — the defect that produced this field was a card-number placeholder\n * clipped at 460px, which no fixed width would have fixed for the merchant\n * whose embed is 380px.\n *\n * A field with no entry weighs 1.\n */\n readonly weights?: Readonly<Partial<Record<AirwallexCardField, number>>>;\n /**\n * Whether this preset captions its fields by default.\n *\n * The merchant can override it (`branding.airwallexLabelStyle`); this is\n * what the preset means when they have not. Captions are always visual: see\n * `AIRWALLEX_LABEL_STYLES`.\n */\n readonly labels: boolean;\n /**\n * `compact` draws one step tighter and one step smaller than the merchant's\n * own `inputSize` and field type size, rather than replacing them — a\n * merchant who chose spacious spacing and this preset gets spacious-minus-\n * one, not the same form as a merchant who chose compact.\n */\n readonly density: 'default' | 'compact';\n}\n\nconst SPLIT: readonly AirwallexCardField[] = ['cardNumber', 'expiry', 'cvc'];\n\n/**\n * Every preset's geometry, and the single source of it.\n *\n * Typed as a total `Record` on purpose. Adding a preset to\n * `AIRWALLEX_CARD_PRESETS` without adding its geometry here does not compile,\n * so the two cannot come apart in the direction that would leave a renderer\n * guessing.\n */\nexport const AIRWALLEX_CARD_LAYOUTS: Record<AirwallexCardPreset, AirwallexCardLayout> = {\n // Airwallex's combined element. One iframe, one row, and the only preset\n // whose insides are not ours to lay out — which is why it carries no\n // captions: there is nothing to caption but the row as a whole.\n single_row: {\n elements: ['card'],\n rows: [['card']],\n labels: false,\n density: 'default',\n },\n // The trio with placeholders carrying the meaning. Shorter than the\n // labelled variant and fine on a wide surface.\n split_fields: {\n elements: SPLIT,\n rows: [['cardNumber'], ['expiry', 'cvc']],\n labels: false,\n density: 'default',\n },\n // The default. The same geometry, captioned — which is what makes it\n // survive a narrow embed, where a bare field row stops being self-evident.\n split_fields_labelled: {\n elements: SPLIT,\n rows: [['cardNumber'], ['expiry', 'cvc']],\n labels: true,\n density: 'default',\n },\n // Every field full width. Expiry and CVC side by side start to crowd below\n // roughly 320px, and this is the layout that does not.\n stacked: {\n elements: SPLIT,\n rows: [['cardNumber'], ['expiry'], ['cvc']],\n labels: true,\n density: 'default',\n },\n // Two rows instead of two-plus-one: shorter than the split forms without\n // the ambiguity of a single combined field.\n //\n // 3:2, not an even split. A card number is nineteen characters and an expiry\n // is five, so halving the row clipped the number's own placeholder at 460px\n // — seen in the preview before this was weighted. The proposal drew it even;\n // the merchant-facing decision was taken on the two drawn side by side and\n // the weighted one was chosen, so do not \"restore\" the even split to match\n // the original mock.\n number_expiry_row: {\n elements: SPLIT,\n rows: [['cardNumber', 'expiry'], ['cvc']],\n weights: { cardNumber: 3, expiry: 2 },\n labels: true,\n density: 'default',\n },\n // Split geometry at reduced density and type size, for a checkout embedded\n // in a page that already has its own chrome.\n compact: {\n elements: SPLIT,\n rows: [['cardNumber'], ['expiry', 'cvc']],\n labels: false,\n density: 'compact',\n },\n};\n\n/**\n * The preset that renders when nobody has chosen one.\n *\n * Not `DEFAULT_BRANDING.airwallexCardPreset`, which is the empty string: the\n * branding field means \"the merchant's choice, in the shop's checkout\n * customizer\", and empty means they have not made one. This is the last step\n * of the resolution, after the connector account's own setting.\n * See `resolveAirwallexCardPreset`.\n */\nexport const AIRWALLEX_CARD_PRESET_FALLBACK: AirwallexCardPreset = 'split_fields_labelled';\n\n/**\n * Which preset the buyer's card form is drawn from.\n *\n * Three sources, in this order, and the order is the migration story:\n *\n * 1. **The shop's branding.** Set in the checkout customizer, empty when the\n * merchant has not been there. Empty rather than pre-filled with the\n * default precisely so that (2) still means something — a branding field\n * that always held a value would silently override every connector\n * account already configured, which is a rendering change no merchant\n * asked for.\n * 2. **The connector account's `integration_style` metadata**, where this\n * setting lived before the customizer existed, projected onto the checkout\n * payload as `card_connector_integration_style`. Still authoritative for\n * every merchant who set it and has not overridden it here. Nothing\n * migrates it; it simply keeps working.\n * 3. **`split_fields_labelled`**, for a shop that has never set either.\n *\n * Step 3 is the one visible change: a shop with nothing configured used to get\n * the combined single row, and now gets the labelled split form.\n *\n * Anything unrecognised at either step falls through rather than failing. The\n * dashboard and the router deploy separately and may already offer a preset\n * this build has not heard of; a card form in the wrong layout is a cosmetic\n * disappointment, and no card form is a lost sale.\n */\nexport function resolveAirwallexCardPreset(\n fromBranding: string | null | undefined,\n fromConnector: string | null | undefined,\n): AirwallexCardPreset {\n return asPreset(fromBranding) ?? asPreset(fromConnector) ?? AIRWALLEX_CARD_PRESET_FALLBACK;\n}\n\n/** The preset named, or `null` for anything this build does not know. */\nexport function asAirwallexCardPreset(value: unknown): AirwallexCardPreset | null {\n return asPreset(value);\n}\n\nfunction asPreset(value: unknown): AirwallexCardPreset | null {\n if (typeof value !== 'string') return null;\n const trimmed = value.trim().toLowerCase();\n return (AIRWALLEX_CARD_PRESETS as readonly string[]).includes(trimmed)\n ? (trimmed as AirwallexCardPreset)\n : null;\n}\n\n/** The geometry for a preset. Total, by the type of `AIRWALLEX_CARD_LAYOUTS`. */\nexport function airwallexCardLayout(preset: AirwallexCardPreset): AirwallexCardLayout {\n return AIRWALLEX_CARD_LAYOUTS[preset];\n}\n\n/**\n * How much of its row a field takes, relative to its neighbours.\n *\n * `1` unless the layout says otherwise, so a caller can multiply blindly and\n * an unweighted row divides evenly — which is what the CSS did before weights\n * existed, and therefore what every preset but one still gets.\n */\nexport function airwallexCellWeight(\n layout: AirwallexCardLayout,\n field: AirwallexCardField,\n): number {\n const weight = layout.weights?.[field];\n return typeof weight === 'number' && Number.isFinite(weight) && weight > 0 ? weight : 1;\n}\n\n/**\n * Whether a layout's rows draw exactly the elements it creates.\n *\n * The one thing the `Record` type cannot check. An element created with no row\n * to mount into leaves its field permanently pending — the pane's own comment\n * for that case is \"the form would sit on the skeleton until the deadline with\n * no reason given\" — and a row naming a field with no element draws an empty\n * box the buyer can click into and never type in. Both are silent.\n *\n * Executed by the checkout's preview guard over every preset, which is where a\n * new one gets caught.\n */\nexport function airwallexCardLayoutIsCoherent(layout: AirwallexCardLayout): boolean {\n const drawn = layout.rows.flat();\n if (drawn.length !== layout.elements.length) return false;\n return layout.elements.every((field) => drawn.filter((f) => f === field).length === 1);\n}\n\n/**\n * How the field's caption is drawn.\n *\n * Every one of these is **visual only**, and that is not a limitation we chose:\n * `for` cannot cross into a cross-origin iframe, so a `<label>` here would name\n * nothing and focus nothing. The field keeps the accessible name Airwallex\n * gives it inside the frame, and these captions sit beside it as an\n * affordance. The pane ships a caption on exactly these terms today.\n *\n * `''` is not a style — it means \"whatever the preset says\", so that\n * `split_fields` and `split_fields_labelled` keep meaning what they mean while\n * a merchant can still put floating captions on `compact`.\n */\nexport const AIRWALLEX_LABEL_STYLES = ['above', 'inline', 'floating', 'none'] as const;\nexport type AirwallexLabelStyle = (typeof AIRWALLEX_LABEL_STYLES)[number];\n\n/**\n * The caption style actually drawn: the merchant's override, or the preset's\n * own answer to whether it captions at all.\n */\nexport function resolveAirwallexLabelStyle(\n override: string | null | undefined,\n layout: AirwallexCardLayout,\n): AirwallexLabelStyle {\n if (\n typeof override === 'string' &&\n (AIRWALLEX_LABEL_STYLES as readonly string[]).includes(override)\n ) {\n return override as AirwallexLabelStyle;\n }\n return layout.labels ? 'above' : 'none';\n}\n\n/** How the box around each field is drawn. All three are the pane's own CSS. */\nexport const AIRWALLEX_FIELD_CHROMES = ['outlined', 'filled', 'underline'] as const;\nexport type AirwallexFieldChrome = (typeof AIRWALLEX_FIELD_CHROMES)[number];\n\n/**\n * The ring drawn around the focused field.\n *\n * Half of it is the pane's CSS on the container and half is Airwallex's\n * `:focus` bucket inside the frame; they are one control because a ring that\n * appeared on only one side of the iframe boundary would look like a bug.\n */\nexport const AIRWALLEX_FOCUS_RINGS = ['none', 'subtle', 'strong'] as const;\nexport type AirwallexFocusRing = (typeof AIRWALLEX_FOCUS_RINGS)[number];\n\n/**\n * What the browser's autofill highlight is allowed to do to the field.\n *\n * The one control on this list with no workaround from outside the frame:\n * the browser paints its own background on an autofilled input, and only the\n * SDK's `:autofill` bucket reaches it. `system` leaves it alone — the buyer's\n * own browser telling them it filled the field is information, not a style\n * bug — which is why it is the default.\n */\nexport const AIRWALLEX_AUTOFILL_TREATMENTS = ['system', 'brand', 'neutral'] as const;\nexport type AirwallexAutofillTreatment = (typeof AIRWALLEX_AUTOFILL_TREATMENTS)[number];\n\n/** Field type sizes, as the checkout's other size scales are named. */\nexport const AIRWALLEX_FIELD_FONT_SIZES = ['sm', 'md', 'lg'] as const;\nexport type AirwallexFieldFontSize = (typeof AIRWALLEX_FIELD_FONT_SIZES)[number];\n\n/** Field type weights. `medium` is what the pane hardcoded before this existed. */\nexport const AIRWALLEX_FIELD_WEIGHTS = ['regular', 'medium', 'semibold'] as const;\nexport type AirwallexFieldWeight = (typeof AIRWALLEX_FIELD_WEIGHTS)[number];\n\n/** Field type size in px, for the SDK's `base.fontSize`. */\nexport function airwallexFieldFontPx(\n size: AirwallexFieldFontSize,\n density: AirwallexCardLayout['density'],\n): number {\n const base = size === 'sm' ? 14 : size === 'lg' ? 18 : 16;\n // A compact preset draws one step smaller, floored so the field never\n // reaches the size at which iOS zooms the page on focus minus two.\n return density === 'compact' ? Math.max(13, base - 1) : base;\n}\n\n/** Field type weight as a CSS numeric weight, for the SDK's `base.fontWeight`. */\nexport function airwallexFieldWeightValue(weight: AirwallexFieldWeight): number {\n return weight === 'regular' ? 400 : weight === 'semibold' ? 600 : 500;\n}\n\n/**\n * The card networks whose marks the field row can display.\n *\n * **Decorative.** This list does not restrict what Airwallex accepts — that\n * would be `allowedCardNetworks`, which this build deliberately does not set,\n * because narrowing the networks a buyer may pay with is an acceptance change\n * and not a styling one. So the marks say what the merchant claims to take,\n * and it is the merchant's job to keep that true; the dashboard's field hint\n * says so in as many words. Enforcement is its own decision.\n */\nexport const AIRWALLEX_NETWORK_MARKS = ['visa', 'mastercard', 'amex', 'discover'] as const;\nexport type AirwallexNetworkMark = (typeof AIRWALLEX_NETWORK_MARKS)[number];\n"]}