@delopay/sdk 0.403.0 → 0.409.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 (1117) hide show
  1. package/README.md +23 -0
  2. package/dist/airwallexCard.cjs +41 -0
  3. package/dist/airwallexCard.cjs.map +1 -0
  4. package/dist/airwallexCard.d.cts +214 -0
  5. package/dist/airwallexCard.d.ts +214 -0
  6. package/dist/airwallexCard.js +41 -0
  7. package/dist/airwallexCard.js.map +1 -0
  8. package/dist/branding.cjs +235 -0
  9. package/dist/branding.cjs.map +1 -0
  10. package/dist/branding.d.cts +784 -0
  11. package/dist/branding.d.ts +784 -0
  12. package/dist/branding.js +235 -0
  13. package/dist/branding.js.map +1 -0
  14. package/dist/cardFormStyles.cjs +77 -0
  15. package/dist/cardFormStyles.cjs.map +1 -0
  16. package/dist/cardFormStyles.d.cts +182 -0
  17. package/dist/cardFormStyles.d.ts +182 -0
  18. package/dist/cardFormStyles.js +77 -0
  19. package/dist/cardFormStyles.js.map +1 -0
  20. package/dist/checkoutSession.cjs +7 -0
  21. package/dist/checkoutSession.cjs.map +1 -0
  22. package/dist/checkoutSession.d.cts +662 -0
  23. package/dist/checkoutSession.d.ts +662 -0
  24. package/dist/checkoutSession.js +7 -0
  25. package/dist/checkoutSession.js.map +1 -0
  26. package/dist/chunk-244VZFFO.cjs +27 -0
  27. package/dist/chunk-244VZFFO.cjs.map +1 -0
  28. package/dist/chunk-26THONSG.js +274 -0
  29. package/dist/chunk-26THONSG.js.map +1 -0
  30. package/dist/chunk-27NVIXDV.js +24 -0
  31. package/dist/chunk-27NVIXDV.js.map +1 -0
  32. package/dist/chunk-2C5XHXAY.js +19 -0
  33. package/dist/chunk-2C5XHXAY.js.map +1 -0
  34. package/dist/chunk-2IJRBJXW.cjs +35 -0
  35. package/dist/chunk-2IJRBJXW.cjs.map +1 -0
  36. package/dist/chunk-2JSBGTTW.js +99 -0
  37. package/dist/chunk-2JSBGTTW.js.map +1 -0
  38. package/dist/chunk-2PC2VAR7.js +217 -0
  39. package/dist/chunk-2PC2VAR7.js.map +1 -0
  40. package/dist/chunk-2QMSBWQY.js +453 -0
  41. package/dist/chunk-2QMSBWQY.js.map +1 -0
  42. package/dist/chunk-2RGSWTDI.js +19 -0
  43. package/dist/chunk-2RGSWTDI.js.map +1 -0
  44. package/dist/chunk-2TQA6UYY.js +228 -0
  45. package/dist/chunk-2TQA6UYY.js.map +1 -0
  46. package/dist/chunk-2XAJIA23.js +20 -0
  47. package/dist/chunk-2XAJIA23.js.map +1 -0
  48. package/dist/chunk-34AF36TY.js +89 -0
  49. package/dist/chunk-34AF36TY.js.map +1 -0
  50. package/dist/chunk-34PC72O7.cjs +73 -0
  51. package/dist/chunk-34PC72O7.cjs.map +1 -0
  52. package/dist/chunk-37BJUQ32.js +37 -0
  53. package/dist/chunk-37BJUQ32.js.map +1 -0
  54. package/dist/chunk-3GBWQWTP.cjs +54 -0
  55. package/dist/chunk-3GBWQWTP.cjs.map +1 -0
  56. package/dist/chunk-3GMGEP5I.js +43 -0
  57. package/dist/chunk-3GMGEP5I.js.map +1 -0
  58. package/dist/chunk-3L3B46AZ.js +44 -0
  59. package/dist/chunk-3L3B46AZ.js.map +1 -0
  60. package/dist/chunk-3NKFPZRS.js +973 -0
  61. package/dist/chunk-3NKFPZRS.js.map +1 -0
  62. package/dist/chunk-3ST4NW2T.js +35 -0
  63. package/dist/chunk-3ST4NW2T.js.map +1 -0
  64. package/dist/chunk-3YBBJT3Y.cjs +64 -0
  65. package/dist/chunk-3YBBJT3Y.cjs.map +1 -0
  66. package/dist/chunk-3YUKTCY2.js +71 -0
  67. package/dist/chunk-3YUKTCY2.js.map +1 -0
  68. package/dist/chunk-3ZHS3MFZ.js +35 -0
  69. package/dist/chunk-3ZHS3MFZ.js.map +1 -0
  70. package/dist/chunk-44QBWVRS.cjs +39 -0
  71. package/dist/chunk-44QBWVRS.cjs.map +1 -0
  72. package/dist/chunk-4EKAWNYI.cjs +69 -0
  73. package/dist/chunk-4EKAWNYI.cjs.map +1 -0
  74. package/dist/chunk-4FVOCZIM.js +15 -0
  75. package/dist/chunk-4FVOCZIM.js.map +1 -0
  76. package/dist/chunk-4LN4BR2T.cjs +262 -0
  77. package/dist/chunk-4LN4BR2T.cjs.map +1 -0
  78. package/dist/chunk-4T3MXBO2.js +114 -0
  79. package/dist/chunk-4T3MXBO2.js.map +1 -0
  80. package/dist/chunk-4T4XHPYN.cjs +135 -0
  81. package/dist/chunk-4T4XHPYN.cjs.map +1 -0
  82. package/dist/chunk-55XO7BFC.js +23 -0
  83. package/dist/chunk-55XO7BFC.js.map +1 -0
  84. package/dist/chunk-5CITBN33.cjs +485 -0
  85. package/dist/chunk-5CITBN33.cjs.map +1 -0
  86. package/dist/chunk-5CNBINCX.cjs +54 -0
  87. package/dist/chunk-5CNBINCX.cjs.map +1 -0
  88. package/dist/chunk-5HCKC4HF.cjs +217 -0
  89. package/dist/chunk-5HCKC4HF.cjs.map +1 -0
  90. package/dist/chunk-5O2JSQYA.cjs +114 -0
  91. package/dist/chunk-5O2JSQYA.cjs.map +1 -0
  92. package/dist/chunk-5P2AO6XY.js +202 -0
  93. package/dist/chunk-5P2AO6XY.js.map +1 -0
  94. package/dist/chunk-5VS3SUPL.js +125 -0
  95. package/dist/chunk-5VS3SUPL.js.map +1 -0
  96. package/dist/chunk-645BQ53W.js +84 -0
  97. package/dist/chunk-645BQ53W.js.map +1 -0
  98. package/dist/chunk-6EBY2KKL.cjs +43 -0
  99. package/dist/chunk-6EBY2KKL.cjs.map +1 -0
  100. package/dist/chunk-6H7K5DDI.js +307 -0
  101. package/dist/chunk-6H7K5DDI.js.map +1 -0
  102. package/dist/chunk-6LOWE2YI.cjs +23 -0
  103. package/dist/chunk-6LOWE2YI.cjs.map +1 -0
  104. package/dist/chunk-6LSG5Z4T.cjs +122 -0
  105. package/dist/chunk-6LSG5Z4T.cjs.map +1 -0
  106. package/dist/chunk-6QGC52VH.js +177 -0
  107. package/dist/chunk-6QGC52VH.js.map +1 -0
  108. package/dist/chunk-6SU2MTN2.cjs +17 -0
  109. package/dist/chunk-6SU2MTN2.cjs.map +1 -0
  110. package/dist/chunk-6TBA7KZO.js +132 -0
  111. package/dist/chunk-6TBA7KZO.js.map +1 -0
  112. package/dist/chunk-6VIC6Y7T.js +64 -0
  113. package/dist/chunk-6VIC6Y7T.js.map +1 -0
  114. package/dist/chunk-6YCDLSIU.cjs +105 -0
  115. package/dist/chunk-6YCDLSIU.cjs.map +1 -0
  116. package/dist/chunk-75E5WNJG.cjs +122 -0
  117. package/dist/chunk-75E5WNJG.cjs.map +1 -0
  118. package/dist/chunk-7ITPMVDB.cjs +108 -0
  119. package/dist/chunk-7ITPMVDB.cjs.map +1 -0
  120. package/dist/chunk-7JV6VVO7.cjs +43 -0
  121. package/dist/chunk-7JV6VVO7.cjs.map +1 -0
  122. package/dist/chunk-7M2KEERO.js +311 -0
  123. package/dist/chunk-7M2KEERO.js.map +1 -0
  124. package/dist/chunk-7QGASY6O.js +134 -0
  125. package/dist/chunk-7QGASY6O.js.map +1 -0
  126. package/dist/chunk-7QZCUXWB.cjs +15 -0
  127. package/dist/chunk-7QZCUXWB.cjs.map +1 -0
  128. package/dist/chunk-7VXF5D67.cjs +23 -0
  129. package/dist/chunk-7VXF5D67.cjs.map +1 -0
  130. package/dist/chunk-7YIDBPIU.js +208 -0
  131. package/dist/chunk-7YIDBPIU.js.map +1 -0
  132. package/dist/chunk-ACZ2R47X.cjs +140 -0
  133. package/dist/chunk-ACZ2R47X.cjs.map +1 -0
  134. package/dist/chunk-AQ5NYBU4.cjs +340 -0
  135. package/dist/chunk-AQ5NYBU4.cjs.map +1 -0
  136. package/dist/chunk-AREMIQLZ.js +202 -0
  137. package/dist/chunk-AREMIQLZ.js.map +1 -0
  138. package/dist/chunk-AYUYJO3I.cjs +44 -0
  139. package/dist/chunk-AYUYJO3I.cjs.map +1 -0
  140. package/dist/chunk-B2TCNGC2.cjs +536 -0
  141. package/dist/chunk-B2TCNGC2.cjs.map +1 -0
  142. package/dist/chunk-B72YNBLS.js +628 -0
  143. package/dist/chunk-B72YNBLS.js.map +1 -0
  144. package/dist/chunk-BCA3TCGS.cjs +185 -0
  145. package/dist/chunk-BCA3TCGS.cjs.map +1 -0
  146. package/dist/chunk-BEND2MZX.js +108 -0
  147. package/dist/chunk-BEND2MZX.js.map +1 -0
  148. package/dist/chunk-BF7IX2O4.js +128 -0
  149. package/dist/chunk-BF7IX2O4.js.map +1 -0
  150. package/dist/chunk-BOU2TQ6U.cjs +1 -0
  151. package/dist/chunk-BOU2TQ6U.cjs.map +1 -0
  152. package/dist/chunk-BP6KDQ6I.cjs +52 -0
  153. package/dist/chunk-BP6KDQ6I.cjs.map +1 -0
  154. package/dist/chunk-BRY3W7N3.cjs +43 -0
  155. package/dist/chunk-BRY3W7N3.cjs.map +1 -0
  156. package/dist/chunk-CAMALM35.cjs +277 -0
  157. package/dist/chunk-CAMALM35.cjs.map +1 -0
  158. package/dist/chunk-CCN44NZJ.cjs +134 -0
  159. package/dist/chunk-CCN44NZJ.cjs.map +1 -0
  160. package/dist/chunk-CECSSOIZ.js +44 -0
  161. package/dist/chunk-CECSSOIZ.js.map +1 -0
  162. package/dist/chunk-CKKNFFKP.cjs +311 -0
  163. package/dist/chunk-CKKNFFKP.cjs.map +1 -0
  164. package/dist/chunk-CMETZEUX.js +168 -0
  165. package/dist/chunk-CMETZEUX.js.map +1 -0
  166. package/dist/chunk-CR3JBTP3.cjs +31 -0
  167. package/dist/chunk-CR3JBTP3.cjs.map +1 -0
  168. package/dist/chunk-CRNICOYA.js +157 -0
  169. package/dist/chunk-CRNICOYA.js.map +1 -0
  170. package/dist/chunk-CSY3IZOC.js +695 -0
  171. package/dist/chunk-CSY3IZOC.js.map +1 -0
  172. package/dist/chunk-CTB54SCJ.js +43 -0
  173. package/dist/chunk-CTB54SCJ.js.map +1 -0
  174. package/dist/chunk-D3D73ANJ.js +39 -0
  175. package/dist/chunk-D3D73ANJ.js.map +1 -0
  176. package/dist/chunk-DECN4QU3.js +33 -0
  177. package/dist/chunk-DECN4QU3.js.map +1 -0
  178. package/dist/chunk-DFC4T6FA.js +137 -0
  179. package/dist/chunk-DFC4T6FA.js.map +1 -0
  180. package/dist/chunk-DJASVBOJ.cjs +61 -0
  181. package/dist/chunk-DJASVBOJ.cjs.map +1 -0
  182. package/dist/chunk-DLKGOSZR.js +73 -0
  183. package/dist/chunk-DLKGOSZR.js.map +1 -0
  184. package/dist/chunk-DO2DYNFW.js +122 -0
  185. package/dist/chunk-DO2DYNFW.js.map +1 -0
  186. package/dist/chunk-DVA3T3MD.js +67 -0
  187. package/dist/chunk-DVA3T3MD.js.map +1 -0
  188. package/dist/chunk-DZM3UP7F.cjs +148 -0
  189. package/dist/chunk-DZM3UP7F.cjs.map +1 -0
  190. package/dist/chunk-ENPSUWTS.cjs +35 -0
  191. package/dist/chunk-ENPSUWTS.cjs.map +1 -0
  192. package/dist/chunk-EQ6P6ZND.cjs +177 -0
  193. package/dist/chunk-EQ6P6ZND.cjs.map +1 -0
  194. package/dist/chunk-EXPWQBI3.cjs +23 -0
  195. package/dist/chunk-EXPWQBI3.cjs.map +1 -0
  196. package/dist/chunk-EXW4VDRM.js +57 -0
  197. package/dist/chunk-EXW4VDRM.js.map +1 -0
  198. package/dist/chunk-F3I5DOWV.cjs +14 -0
  199. package/dist/chunk-F3I5DOWV.cjs.map +1 -0
  200. package/dist/chunk-F6JABQLJ.js +720 -0
  201. package/dist/chunk-F6JABQLJ.js.map +1 -0
  202. package/dist/chunk-F6S3WCCB.cjs +40 -0
  203. package/dist/chunk-F6S3WCCB.cjs.map +1 -0
  204. package/dist/chunk-FI7NLDWZ.js +1 -0
  205. package/dist/chunk-FI7NLDWZ.js.map +1 -0
  206. package/dist/chunk-FQRC4NJG.cjs +202 -0
  207. package/dist/chunk-FQRC4NJG.cjs.map +1 -0
  208. package/dist/chunk-FYISDU2Y.cjs +137 -0
  209. package/dist/chunk-FYISDU2Y.cjs.map +1 -0
  210. package/dist/chunk-FZYEZLTM.js +59 -0
  211. package/dist/chunk-FZYEZLTM.js.map +1 -0
  212. package/dist/chunk-G7FHCGT5.js +140 -0
  213. package/dist/chunk-G7FHCGT5.js.map +1 -0
  214. package/dist/chunk-GA3KXPIF.cjs +720 -0
  215. package/dist/chunk-GA3KXPIF.cjs.map +1 -0
  216. package/dist/chunk-GEYCGYAN.js +122 -0
  217. package/dist/chunk-GEYCGYAN.js.map +1 -0
  218. package/dist/chunk-GG52SAHA.cjs +157 -0
  219. package/dist/chunk-GG52SAHA.cjs.map +1 -0
  220. package/dist/chunk-GGYLU7YO.cjs +58 -0
  221. package/dist/chunk-GGYLU7YO.cjs.map +1 -0
  222. package/dist/chunk-GK5FWN4H.cjs +307 -0
  223. package/dist/chunk-GK5FWN4H.cjs.map +1 -0
  224. package/dist/chunk-GSQN5EOO.cjs +347 -0
  225. package/dist/chunk-GSQN5EOO.cjs.map +1 -0
  226. package/dist/chunk-GVHN6BAJ.js +19 -0
  227. package/dist/chunk-GVHN6BAJ.js.map +1 -0
  228. package/dist/chunk-GW7IHYXR.cjs +125 -0
  229. package/dist/chunk-GW7IHYXR.cjs.map +1 -0
  230. package/dist/chunk-GZW5AFIL.js +27 -0
  231. package/dist/chunk-GZW5AFIL.js.map +1 -0
  232. package/dist/chunk-H2NGR5JG.js +786 -0
  233. package/dist/chunk-H2NGR5JG.js.map +1 -0
  234. package/dist/chunk-H537KAYC.cjs +71 -0
  235. package/dist/chunk-H537KAYC.cjs.map +1 -0
  236. package/dist/chunk-HJL32HDH.js +14 -0
  237. package/dist/chunk-HJL32HDH.js.map +1 -0
  238. package/dist/chunk-HL763JX2.js +43 -0
  239. package/dist/chunk-HL763JX2.js.map +1 -0
  240. package/dist/chunk-HLKFUOAQ.cjs +27 -0
  241. package/dist/chunk-HLKFUOAQ.cjs.map +1 -0
  242. package/dist/chunk-HLYGHP6F.cjs +80 -0
  243. package/dist/chunk-HLYGHP6F.cjs.map +1 -0
  244. package/dist/chunk-HO3SKXCG.js +559 -0
  245. package/dist/chunk-HO3SKXCG.js.map +1 -0
  246. package/dist/chunk-I2W7AO4B.cjs +37 -0
  247. package/dist/chunk-I2W7AO4B.cjs.map +1 -0
  248. package/dist/chunk-I2XGNALG.cjs +19 -0
  249. package/dist/chunk-I2XGNALG.cjs.map +1 -0
  250. package/dist/chunk-I5KOMBQ3.js +277 -0
  251. package/dist/chunk-I5KOMBQ3.js.map +1 -0
  252. package/dist/chunk-I65QS3YQ.cjs +695 -0
  253. package/dist/chunk-I65QS3YQ.cjs.map +1 -0
  254. package/dist/chunk-IB75VVZO.js +58 -0
  255. package/dist/chunk-IB75VVZO.js.map +1 -0
  256. package/dist/chunk-IGFEQECO.js +67 -0
  257. package/dist/chunk-IGFEQECO.js.map +1 -0
  258. package/dist/chunk-IKXGA2Z5.cjs +24 -0
  259. package/dist/chunk-IKXGA2Z5.cjs.map +1 -0
  260. package/dist/chunk-INQQLXAV.js +347 -0
  261. package/dist/chunk-INQQLXAV.js.map +1 -0
  262. package/dist/chunk-IR2LFKKA.cjs +44 -0
  263. package/dist/chunk-IR2LFKKA.cjs.map +1 -0
  264. package/dist/chunk-IVQDVFFR.js +226 -0
  265. package/dist/chunk-IVQDVFFR.js.map +1 -0
  266. package/dist/chunk-J3UH2OJH.js +31 -0
  267. package/dist/chunk-J3UH2OJH.js.map +1 -0
  268. package/dist/chunk-JAJOUFPM.js +30 -0
  269. package/dist/chunk-JAJOUFPM.js.map +1 -0
  270. package/dist/chunk-JPVR2NHV.js +54 -0
  271. package/dist/chunk-JPVR2NHV.js.map +1 -0
  272. package/dist/chunk-JSSDNDAG.cjs +1038 -0
  273. package/dist/chunk-JSSDNDAG.cjs.map +1 -0
  274. package/dist/chunk-JTZ44ZLT.js +1741 -0
  275. package/dist/chunk-JTZ44ZLT.js.map +1 -0
  276. package/dist/chunk-K5Q2H3VD.cjs +85 -0
  277. package/dist/chunk-K5Q2H3VD.cjs.map +1 -0
  278. package/dist/chunk-KAKDDX4L.js +144 -0
  279. package/dist/chunk-KAKDDX4L.js.map +1 -0
  280. package/dist/chunk-KD5Y2YWK.cjs +128 -0
  281. package/dist/chunk-KD5Y2YWK.cjs.map +1 -0
  282. package/dist/chunk-KJDMNF2T.cjs +202 -0
  283. package/dist/chunk-KJDMNF2T.cjs.map +1 -0
  284. package/dist/chunk-KKKEARPT.js +40 -0
  285. package/dist/chunk-KKKEARPT.js.map +1 -0
  286. package/dist/chunk-KLONGJCL.cjs +59 -0
  287. package/dist/chunk-KLONGJCL.cjs.map +1 -0
  288. package/dist/chunk-KS5ZUVPC.js +23 -0
  289. package/dist/chunk-KS5ZUVPC.js.map +1 -0
  290. package/dist/chunk-KSJ7JLR3.cjs +228 -0
  291. package/dist/chunk-KSJ7JLR3.cjs.map +1 -0
  292. package/dist/chunk-L7474OST.js +21 -0
  293. package/dist/chunk-L7474OST.js.map +1 -0
  294. package/dist/chunk-LG7XHNAY.js +52 -0
  295. package/dist/chunk-LG7XHNAY.js.map +1 -0
  296. package/dist/chunk-LJ2EG6JK.cjs +226 -0
  297. package/dist/chunk-LJ2EG6JK.cjs.map +1 -0
  298. package/dist/chunk-LLYY4TCZ.cjs +628 -0
  299. package/dist/chunk-LLYY4TCZ.cjs.map +1 -0
  300. package/dist/chunk-LPDUHBHT.js +2842 -0
  301. package/dist/chunk-LPDUHBHT.js.map +1 -0
  302. package/dist/chunk-LX6E5TTR.js +58 -0
  303. package/dist/chunk-LX6E5TTR.js.map +1 -0
  304. package/dist/chunk-LYIBTVK6.cjs +2842 -0
  305. package/dist/chunk-LYIBTVK6.cjs.map +1 -0
  306. package/dist/chunk-LZUHCGJ3.js +281 -0
  307. package/dist/chunk-LZUHCGJ3.js.map +1 -0
  308. package/dist/chunk-M3HWE7KT.cjs +33 -0
  309. package/dist/chunk-M3HWE7KT.cjs.map +1 -0
  310. package/dist/chunk-M3SJHFT4.cjs +24 -0
  311. package/dist/chunk-M3SJHFT4.cjs.map +1 -0
  312. package/dist/chunk-MCNDMK7F.cjs +167 -0
  313. package/dist/chunk-MCNDMK7F.cjs.map +1 -0
  314. package/dist/chunk-MLG6NXI6.cjs +19 -0
  315. package/dist/chunk-MLG6NXI6.cjs.map +1 -0
  316. package/dist/chunk-MTFLXMYI.js +262 -0
  317. package/dist/chunk-MTFLXMYI.js.map +1 -0
  318. package/dist/chunk-MYDDK2Z3.js +485 -0
  319. package/dist/chunk-MYDDK2Z3.js.map +1 -0
  320. package/dist/chunk-NFB3S2E6.cjs +22 -0
  321. package/dist/chunk-NFB3S2E6.cjs.map +1 -0
  322. package/dist/chunk-NLQOHTYN.js +44 -0
  323. package/dist/chunk-NLQOHTYN.js.map +1 -0
  324. package/dist/chunk-NW37NQZB.cjs +1741 -0
  325. package/dist/chunk-NW37NQZB.cjs.map +1 -0
  326. package/dist/chunk-NXORFP3R.js +148 -0
  327. package/dist/chunk-NXORFP3R.js.map +1 -0
  328. package/dist/chunk-NYL3BNHR.cjs +57 -0
  329. package/dist/chunk-NYL3BNHR.cjs.map +1 -0
  330. package/dist/chunk-O4AYHLQX.cjs +132 -0
  331. package/dist/chunk-O4AYHLQX.cjs.map +1 -0
  332. package/dist/chunk-ODPNVNYE.cjs +75 -0
  333. package/dist/chunk-ODPNVNYE.cjs.map +1 -0
  334. package/dist/chunk-OEKPQXXM.js +24 -0
  335. package/dist/chunk-OEKPQXXM.js.map +1 -0
  336. package/dist/chunk-OG2KJAYD.cjs +44 -0
  337. package/dist/chunk-OG2KJAYD.cjs.map +1 -0
  338. package/dist/chunk-OMGDHJYX.js +39 -0
  339. package/dist/chunk-OMGDHJYX.js.map +1 -0
  340. package/dist/chunk-OMRKVER7.js +80 -0
  341. package/dist/chunk-OMRKVER7.js.map +1 -0
  342. package/dist/chunk-OWP7XBY2.cjs +281 -0
  343. package/dist/chunk-OWP7XBY2.cjs.map +1 -0
  344. package/dist/chunk-OYZP6NF6.cjs +58 -0
  345. package/dist/chunk-OYZP6NF6.cjs.map +1 -0
  346. package/dist/chunk-P6JLNQ6L.cjs +111 -0
  347. package/dist/chunk-P6JLNQ6L.cjs.map +1 -0
  348. package/dist/chunk-P7DYLUUI.cjs +168 -0
  349. package/dist/chunk-P7DYLUUI.cjs.map +1 -0
  350. package/dist/chunk-PKAE6AQT.cjs +208 -0
  351. package/dist/chunk-PKAE6AQT.cjs.map +1 -0
  352. package/dist/chunk-Q347PTXI.js +54 -0
  353. package/dist/chunk-Q347PTXI.js.map +1 -0
  354. package/dist/chunk-Q6HI2G7W.js +40 -0
  355. package/dist/chunk-Q6HI2G7W.js.map +1 -0
  356. package/dist/chunk-Q7M7DO7M.cjs +186 -0
  357. package/dist/chunk-Q7M7DO7M.cjs.map +1 -0
  358. package/dist/chunk-QCPEE3EV.js +186 -0
  359. package/dist/chunk-QCPEE3EV.js.map +1 -0
  360. package/dist/chunk-QF3Q3TPV.js +162 -0
  361. package/dist/chunk-QF3Q3TPV.js.map +1 -0
  362. package/dist/chunk-QGTVOC6O.js +167 -0
  363. package/dist/chunk-QGTVOC6O.js.map +1 -0
  364. package/dist/chunk-QMLU5DST.cjs +786 -0
  365. package/dist/chunk-QMLU5DST.cjs.map +1 -0
  366. package/dist/chunk-QRSA72B3.cjs +40 -0
  367. package/dist/chunk-QRSA72B3.cjs.map +1 -0
  368. package/dist/chunk-QYNRNDIY.cjs +186 -0
  369. package/dist/chunk-QYNRNDIY.cjs.map +1 -0
  370. package/dist/chunk-R4FE6K43.cjs +99 -0
  371. package/dist/chunk-R4FE6K43.cjs.map +1 -0
  372. package/dist/chunk-R5VYSZ3Q.cjs +67 -0
  373. package/dist/chunk-R5VYSZ3Q.cjs.map +1 -0
  374. package/dist/chunk-RBN2H7QR.js +340 -0
  375. package/dist/chunk-RBN2H7QR.js.map +1 -0
  376. package/dist/chunk-RI42IDRR.cjs +23 -0
  377. package/dist/chunk-RI42IDRR.cjs.map +1 -0
  378. package/dist/chunk-RUDKQPEO.js +22 -0
  379. package/dist/chunk-RUDKQPEO.js.map +1 -0
  380. package/dist/chunk-RWCCRTLZ.js +17 -0
  381. package/dist/chunk-RWCCRTLZ.js.map +1 -0
  382. package/dist/chunk-S7SBNOGS.cjs +144 -0
  383. package/dist/chunk-S7SBNOGS.cjs.map +1 -0
  384. package/dist/chunk-SQELICSX.cjs +159 -0
  385. package/dist/chunk-SQELICSX.cjs.map +1 -0
  386. package/dist/chunk-SXCH2AXM.js +85 -0
  387. package/dist/chunk-SXCH2AXM.js.map +1 -0
  388. package/dist/chunk-T37FLY7Q.js +185 -0
  389. package/dist/chunk-T37FLY7Q.js.map +1 -0
  390. package/dist/chunk-T6N35YFJ.js +186 -0
  391. package/dist/chunk-T6N35YFJ.js.map +1 -0
  392. package/dist/chunk-THPCSJUP.js +43 -0
  393. package/dist/chunk-THPCSJUP.js.map +1 -0
  394. package/dist/chunk-TIMYWB2C.cjs +316 -0
  395. package/dist/chunk-TIMYWB2C.cjs.map +1 -0
  396. package/dist/chunk-TMAJE5P2.cjs +84 -0
  397. package/dist/chunk-TMAJE5P2.cjs.map +1 -0
  398. package/dist/chunk-TNIJ6OSH.cjs +162 -0
  399. package/dist/chunk-TNIJ6OSH.cjs.map +1 -0
  400. package/dist/chunk-TZ4JHXBR.js +98 -0
  401. package/dist/chunk-TZ4JHXBR.js.map +1 -0
  402. package/dist/chunk-UGSM7RJ2.cjs +30 -0
  403. package/dist/chunk-UGSM7RJ2.cjs.map +1 -0
  404. package/dist/chunk-UH2A7ZDK.js +61 -0
  405. package/dist/chunk-UH2A7ZDK.js.map +1 -0
  406. package/dist/chunk-UKLZAOLW.cjs +209 -0
  407. package/dist/chunk-UKLZAOLW.cjs.map +1 -0
  408. package/dist/chunk-ULZWGW2O.js +14 -0
  409. package/dist/chunk-ULZWGW2O.js.map +1 -0
  410. package/dist/chunk-US6R4TM4.js +50 -0
  411. package/dist/chunk-US6R4TM4.js.map +1 -0
  412. package/dist/chunk-UU3YQJT6.js +27 -0
  413. package/dist/chunk-UU3YQJT6.js.map +1 -0
  414. package/dist/chunk-V3PCNGDH.js +69 -0
  415. package/dist/chunk-V3PCNGDH.js.map +1 -0
  416. package/dist/chunk-V47G7P6L.cjs +19 -0
  417. package/dist/chunk-V47G7P6L.cjs.map +1 -0
  418. package/dist/chunk-VH5A6SMU.cjs +50 -0
  419. package/dist/chunk-VH5A6SMU.cjs.map +1 -0
  420. package/dist/chunk-VJ2L2GOF.js +23 -0
  421. package/dist/chunk-VJ2L2GOF.js.map +1 -0
  422. package/dist/chunk-VOIELJLZ.cjs +274 -0
  423. package/dist/chunk-VOIELJLZ.cjs.map +1 -0
  424. package/dist/chunk-VW7GWSP6.js +209 -0
  425. package/dist/chunk-VW7GWSP6.js.map +1 -0
  426. package/dist/chunk-VYC7WUM5.cjs +39 -0
  427. package/dist/chunk-VYC7WUM5.cjs.map +1 -0
  428. package/dist/chunk-W3EFNOH6.js +536 -0
  429. package/dist/chunk-W3EFNOH6.js.map +1 -0
  430. package/dist/chunk-W457XUA6.cjs +67 -0
  431. package/dist/chunk-W457XUA6.cjs.map +1 -0
  432. package/dist/chunk-WBAPQODS.js +111 -0
  433. package/dist/chunk-WBAPQODS.js.map +1 -0
  434. package/dist/chunk-WHDI3TMP.cjs +21 -0
  435. package/dist/chunk-WHDI3TMP.cjs.map +1 -0
  436. package/dist/chunk-WITCPKNL.cjs +20 -0
  437. package/dist/chunk-WITCPKNL.cjs.map +1 -0
  438. package/dist/chunk-WSOUQS6C.js +135 -0
  439. package/dist/chunk-WSOUQS6C.js.map +1 -0
  440. package/dist/chunk-WX6NP7UU.cjs +14 -0
  441. package/dist/chunk-WX6NP7UU.cjs.map +1 -0
  442. package/dist/chunk-WZK3BIHG.js +75 -0
  443. package/dist/chunk-WZK3BIHG.js.map +1 -0
  444. package/dist/chunk-X7UAYGQR.cjs +43 -0
  445. package/dist/chunk-X7UAYGQR.cjs.map +1 -0
  446. package/dist/chunk-XQLRIBVR.cjs +98 -0
  447. package/dist/chunk-XQLRIBVR.cjs.map +1 -0
  448. package/dist/chunk-Y4XILACH.js +105 -0
  449. package/dist/chunk-Y4XILACH.js.map +1 -0
  450. package/dist/chunk-YJQPKT6W.cjs +453 -0
  451. package/dist/chunk-YJQPKT6W.cjs.map +1 -0
  452. package/dist/chunk-YK3P5QNZ.cjs +559 -0
  453. package/dist/chunk-YK3P5QNZ.cjs.map +1 -0
  454. package/dist/chunk-YOFIOZJ5.js +1038 -0
  455. package/dist/chunk-YOFIOZJ5.js.map +1 -0
  456. package/dist/chunk-ZDYRYXY3.js +316 -0
  457. package/dist/chunk-ZDYRYXY3.js.map +1 -0
  458. package/dist/chunk-ZKPVUCQV.cjs +973 -0
  459. package/dist/chunk-ZKPVUCQV.cjs.map +1 -0
  460. package/dist/chunk-ZOD4J4XF.cjs +89 -0
  461. package/dist/chunk-ZOD4J4XF.cjs.map +1 -0
  462. package/dist/chunk-ZX4JTR2J.js +23 -0
  463. package/dist/chunk-ZX4JTR2J.js.map +1 -0
  464. package/dist/chunk-ZYWW275O.js +159 -0
  465. package/dist/chunk-ZYWW275O.js.map +1 -0
  466. package/dist/client.cjs +17 -0
  467. package/dist/client.cjs.map +1 -0
  468. package/dist/client.d.cts +221 -0
  469. package/dist/client.d.ts +221 -0
  470. package/dist/client.js +17 -0
  471. package/dist/client.js.map +1 -0
  472. package/dist/core.cjs +13 -0
  473. package/dist/core.cjs.map +1 -0
  474. package/dist/core.d.cts +376 -0
  475. package/dist/core.d.ts +376 -0
  476. package/dist/core.js +13 -0
  477. package/dist/core.js.map +1 -0
  478. package/dist/currencies.cjs +7 -0
  479. package/dist/currencies.cjs.map +1 -0
  480. package/dist/currencies.d.cts +8 -0
  481. package/dist/currencies.d.ts +8 -0
  482. package/dist/currencies.js +7 -0
  483. package/dist/currencies.js.map +1 -0
  484. package/dist/enigmaCardForm.cjs +65 -0
  485. package/dist/enigmaCardForm.cjs.map +1 -0
  486. package/dist/enigmaCardForm.d.cts +145 -0
  487. package/dist/enigmaCardForm.d.ts +145 -0
  488. package/dist/enigmaCardForm.js +65 -0
  489. package/dist/enigmaCardForm.js.map +1 -0
  490. package/dist/error.cjs +9 -0
  491. package/dist/error.cjs.map +1 -0
  492. package/dist/error.d.cts +66 -0
  493. package/dist/error.d.ts +66 -0
  494. package/dist/error.js +9 -0
  495. package/dist/error.js.map +1 -0
  496. package/dist/eventStream.cjs +7 -0
  497. package/dist/eventStream.cjs.map +1 -0
  498. package/dist/eventStream.d.cts +50 -0
  499. package/dist/eventStream.d.ts +50 -0
  500. package/dist/eventStream.js +7 -0
  501. package/dist/eventStream.js.map +1 -0
  502. package/dist/exportDownload.cjs +21 -0
  503. package/dist/exportDownload.cjs.map +1 -0
  504. package/dist/exportDownload.d.cts +86 -0
  505. package/dist/exportDownload.d.ts +86 -0
  506. package/dist/exportDownload.js +21 -0
  507. package/dist/exportDownload.js.map +1 -0
  508. package/dist/feeProgram.cjs +25 -0
  509. package/dist/feeProgram.cjs.map +1 -0
  510. package/dist/feeProgram.d.cts +169 -0
  511. package/dist/feeProgram.d.ts +169 -0
  512. package/dist/feeProgram.js +25 -0
  513. package/dist/feeProgram.js.map +1 -0
  514. package/dist/index.cjs +839 -18306
  515. package/dist/index.cjs.map +1 -1
  516. package/dist/index.d.cts +87 -1
  517. package/dist/index.d.ts +87 -1
  518. package/dist/index.js +418 -186
  519. package/dist/internal/resources/admin.cjs +7 -0
  520. package/dist/internal/resources/admin.cjs.map +1 -0
  521. package/dist/internal/resources/admin.d.cts +31 -0
  522. package/dist/internal/resources/admin.d.ts +31 -0
  523. package/dist/internal/resources/admin.js +7 -0
  524. package/dist/internal/resources/admin.js.map +1 -0
  525. package/dist/internal/resources/adminBranding.cjs +7 -0
  526. package/dist/internal/resources/adminBranding.cjs.map +1 -0
  527. package/dist/internal/resources/adminBranding.d.cts +37 -0
  528. package/dist/internal/resources/adminBranding.d.ts +37 -0
  529. package/dist/internal/resources/adminBranding.js +7 -0
  530. package/dist/internal/resources/adminBranding.js.map +1 -0
  531. package/dist/internal/resources/adminFileScans.cjs +7 -0
  532. package/dist/internal/resources/adminFileScans.cjs.map +1 -0
  533. package/dist/internal/resources/adminFileScans.d.cts +39 -0
  534. package/dist/internal/resources/adminFileScans.d.ts +39 -0
  535. package/dist/internal/resources/adminFileScans.js +7 -0
  536. package/dist/internal/resources/adminFileScans.js.map +1 -0
  537. package/dist/internal/resources/adminIndustries.cjs +7 -0
  538. package/dist/internal/resources/adminIndustries.cjs.map +1 -0
  539. package/dist/internal/resources/adminIndustries.d.cts +61 -0
  540. package/dist/internal/resources/adminIndustries.d.ts +61 -0
  541. package/dist/internal/resources/adminIndustries.js +7 -0
  542. package/dist/internal/resources/adminIndustries.js.map +1 -0
  543. package/dist/internal/resources/adminLive.cjs +7 -0
  544. package/dist/internal/resources/adminLive.cjs.map +1 -0
  545. package/dist/internal/resources/adminLive.d.cts +33 -0
  546. package/dist/internal/resources/adminLive.d.ts +33 -0
  547. package/dist/internal/resources/adminLive.js +7 -0
  548. package/dist/internal/resources/adminLive.js.map +1 -0
  549. package/dist/internal/resources/adminPortal.cjs +7 -0
  550. package/dist/internal/resources/adminPortal.cjs.map +1 -0
  551. package/dist/internal/resources/adminPortal.d.cts +1029 -0
  552. package/dist/internal/resources/adminPortal.d.ts +1029 -0
  553. package/dist/internal/resources/adminPortal.js +7 -0
  554. package/dist/internal/resources/adminPortal.js.map +1 -0
  555. package/dist/internal/resources/adminSupport.cjs +7 -0
  556. package/dist/internal/resources/adminSupport.cjs.map +1 -0
  557. package/dist/internal/resources/adminSupport.d.cts +52 -0
  558. package/dist/internal/resources/adminSupport.d.ts +52 -0
  559. package/dist/internal/resources/adminSupport.js +7 -0
  560. package/dist/internal/resources/adminSupport.js.map +1 -0
  561. package/dist/internal/resources/auditLogs.cjs +7 -0
  562. package/dist/internal/resources/auditLogs.cjs.map +1 -0
  563. package/dist/internal/resources/auditLogs.d.cts +37 -0
  564. package/dist/internal/resources/auditLogs.d.ts +37 -0
  565. package/dist/internal/resources/auditLogs.js +7 -0
  566. package/dist/internal/resources/auditLogs.js.map +1 -0
  567. package/dist/internal/resources/cache.cjs +7 -0
  568. package/dist/internal/resources/cache.cjs.map +1 -0
  569. package/dist/internal/resources/cache.d.cts +13 -0
  570. package/dist/internal/resources/cache.d.ts +13 -0
  571. package/dist/internal/resources/cache.js +7 -0
  572. package/dist/internal/resources/cache.js.map +1 -0
  573. package/dist/internal/resources/cardIssuers.cjs +7 -0
  574. package/dist/internal/resources/cardIssuers.cjs.map +1 -0
  575. package/dist/internal/resources/cardIssuers.d.cts +15 -0
  576. package/dist/internal/resources/cardIssuers.d.ts +15 -0
  577. package/dist/internal/resources/cardIssuers.js +7 -0
  578. package/dist/internal/resources/cardIssuers.js.map +1 -0
  579. package/dist/internal/resources/configs.cjs +7 -0
  580. package/dist/internal/resources/configs.cjs.map +1 -0
  581. package/dist/internal/resources/configs.d.cts +19 -0
  582. package/dist/internal/resources/configs.d.ts +19 -0
  583. package/dist/internal/resources/configs.js +7 -0
  584. package/dist/internal/resources/configs.js.map +1 -0
  585. package/dist/internal/resources/connectorRestrictionRules.cjs +7 -0
  586. package/dist/internal/resources/connectorRestrictionRules.cjs.map +1 -0
  587. package/dist/internal/resources/connectorRestrictionRules.d.cts +43 -0
  588. package/dist/internal/resources/connectorRestrictionRules.d.ts +43 -0
  589. package/dist/internal/resources/connectorRestrictionRules.js +7 -0
  590. package/dist/internal/resources/connectorRestrictionRules.js.map +1 -0
  591. package/dist/internal/resources/connectorRestrictions.cjs +7 -0
  592. package/dist/internal/resources/connectorRestrictions.cjs.map +1 -0
  593. package/dist/internal/resources/connectorRestrictions.d.cts +33 -0
  594. package/dist/internal/resources/connectorRestrictions.d.ts +33 -0
  595. package/dist/internal/resources/connectorRestrictions.js +7 -0
  596. package/dist/internal/resources/connectorRestrictions.js.map +1 -0
  597. package/dist/internal/resources/diagnostic.cjs +7 -0
  598. package/dist/internal/resources/diagnostic.cjs.map +1 -0
  599. package/dist/internal/resources/diagnostic.d.cts +183 -0
  600. package/dist/internal/resources/diagnostic.d.ts +183 -0
  601. package/dist/internal/resources/diagnostic.js +7 -0
  602. package/dist/internal/resources/diagnostic.js.map +1 -0
  603. package/dist/internal/resources/gsm.cjs +7 -0
  604. package/dist/internal/resources/gsm.cjs.map +1 -0
  605. package/dist/internal/resources/gsm.d.cts +16 -0
  606. package/dist/internal/resources/gsm.d.ts +16 -0
  607. package/dist/internal/resources/gsm.js +7 -0
  608. package/dist/internal/resources/gsm.js.map +1 -0
  609. package/dist/internal/resources/nativeRenewals.cjs +7 -0
  610. package/dist/internal/resources/nativeRenewals.cjs.map +1 -0
  611. package/dist/internal/resources/nativeRenewals.d.cts +16 -0
  612. package/dist/internal/resources/nativeRenewals.d.ts +16 -0
  613. package/dist/internal/resources/nativeRenewals.js +7 -0
  614. package/dist/internal/resources/nativeRenewals.js.map +1 -0
  615. package/dist/internal/resources/platformBilling.cjs +7 -0
  616. package/dist/internal/resources/platformBilling.cjs.map +1 -0
  617. package/dist/internal/resources/platformBilling.d.cts +145 -0
  618. package/dist/internal/resources/platformBilling.d.ts +145 -0
  619. package/dist/internal/resources/platformBilling.js +7 -0
  620. package/dist/internal/resources/platformBilling.js.map +1 -0
  621. package/dist/internal/resources/platformFees.cjs +9 -0
  622. package/dist/internal/resources/platformFees.cjs.map +1 -0
  623. package/dist/internal/resources/platformFees.d.cts +60 -0
  624. package/dist/internal/resources/platformFees.d.ts +60 -0
  625. package/dist/internal/resources/platformFees.js +9 -0
  626. package/dist/internal/resources/platformFees.js.map +1 -0
  627. package/dist/internal/resources/platformMessageTemplates.cjs +7 -0
  628. package/dist/internal/resources/platformMessageTemplates.cjs.map +1 -0
  629. package/dist/internal/resources/platformMessageTemplates.d.cts +46 -0
  630. package/dist/internal/resources/platformMessageTemplates.d.ts +46 -0
  631. package/dist/internal/resources/platformMessageTemplates.js +7 -0
  632. package/dist/internal/resources/platformMessageTemplates.js.map +1 -0
  633. package/dist/internal/resources/platformSettings.cjs +7 -0
  634. package/dist/internal/resources/platformSettings.cjs.map +1 -0
  635. package/dist/internal/resources/platformSettings.d.cts +41 -0
  636. package/dist/internal/resources/platformSettings.d.ts +41 -0
  637. package/dist/internal/resources/platformSettings.js +7 -0
  638. package/dist/internal/resources/platformSettings.js.map +1 -0
  639. package/dist/internal.cjs +856 -20979
  640. package/dist/internal.cjs.map +1 -1
  641. package/dist/internal.d.cts +109 -6082
  642. package/dist/internal.d.ts +109 -6082
  643. package/dist/internal.js +480 -2888
  644. package/dist/internal.js.map +1 -1
  645. package/dist/listQuery.cjs +7 -0
  646. package/dist/listQuery.cjs.map +1 -0
  647. package/dist/listQuery.d.cts +15 -0
  648. package/dist/listQuery.d.ts +15 -0
  649. package/dist/listQuery.js +7 -0
  650. package/dist/listQuery.js.map +1 -0
  651. package/dist/panes.cjs +65 -0
  652. package/dist/panes.cjs.map +1 -0
  653. package/dist/panes.d.cts +523 -0
  654. package/dist/panes.d.ts +523 -0
  655. package/dist/panes.js +65 -0
  656. package/dist/panes.js.map +1 -0
  657. package/dist/paymentPresentation.cjs +27 -0
  658. package/dist/paymentPresentation.cjs.map +1 -0
  659. package/dist/paymentPresentation.d.cts +101 -0
  660. package/dist/paymentPresentation.d.ts +101 -0
  661. package/dist/paymentPresentation.js +27 -0
  662. package/dist/paymentPresentation.js.map +1 -0
  663. package/dist/recordCounter.cjs +9 -0
  664. package/dist/recordCounter.cjs.map +1 -0
  665. package/dist/recordCounter.d.cts +92 -0
  666. package/dist/recordCounter.d.ts +92 -0
  667. package/dist/recordCounter.js +9 -0
  668. package/dist/recordCounter.js.map +1 -0
  669. package/dist/resources/analytics.cjs +7 -0
  670. package/dist/resources/analytics.cjs.map +1 -0
  671. package/dist/resources/analytics.d.cts +193 -0
  672. package/dist/resources/analytics.d.ts +193 -0
  673. package/dist/resources/analytics.js +7 -0
  674. package/dist/resources/analytics.js.map +1 -0
  675. package/dist/resources/analyticsDashboard.cjs +7 -0
  676. package/dist/resources/analyticsDashboard.cjs.map +1 -0
  677. package/dist/resources/analyticsDashboard.d.cts +15 -0
  678. package/dist/resources/analyticsDashboard.d.ts +15 -0
  679. package/dist/resources/analyticsDashboard.js +7 -0
  680. package/dist/resources/analyticsDashboard.js.map +1 -0
  681. package/dist/resources/apiKeys.cjs +7 -0
  682. package/dist/resources/apiKeys.cjs.map +1 -0
  683. package/dist/resources/apiKeys.d.cts +156 -0
  684. package/dist/resources/apiKeys.d.ts +156 -0
  685. package/dist/resources/apiKeys.js +7 -0
  686. package/dist/resources/apiKeys.js.map +1 -0
  687. package/dist/resources/audit.cjs +7 -0
  688. package/dist/resources/audit.cjs.map +1 -0
  689. package/dist/resources/audit.d.cts +34 -0
  690. package/dist/resources/audit.d.ts +34 -0
  691. package/dist/resources/audit.js +7 -0
  692. package/dist/resources/audit.js.map +1 -0
  693. package/dist/resources/authentication.cjs +7 -0
  694. package/dist/resources/authentication.cjs.map +1 -0
  695. package/dist/resources/authentication.d.cts +22 -0
  696. package/dist/resources/authentication.d.ts +22 -0
  697. package/dist/resources/authentication.js +7 -0
  698. package/dist/resources/authentication.js.map +1 -0
  699. package/dist/resources/availabilityOverrides.cjs +7 -0
  700. package/dist/resources/availabilityOverrides.cjs.map +1 -0
  701. package/dist/resources/availabilityOverrides.d.cts +30 -0
  702. package/dist/resources/availabilityOverrides.d.ts +30 -0
  703. package/dist/resources/availabilityOverrides.js +7 -0
  704. package/dist/resources/availabilityOverrides.js.map +1 -0
  705. package/dist/resources/billing.cjs +7 -0
  706. package/dist/resources/billing.cjs.map +1 -0
  707. package/dist/resources/billing.d.cts +122 -0
  708. package/dist/resources/billing.d.ts +122 -0
  709. package/dist/resources/billing.js +7 -0
  710. package/dist/resources/billing.js.map +1 -0
  711. package/dist/resources/buyerAccount.cjs +7 -0
  712. package/dist/resources/buyerAccount.cjs.map +1 -0
  713. package/dist/resources/buyerAccount.d.cts +162 -0
  714. package/dist/resources/buyerAccount.d.ts +162 -0
  715. package/dist/resources/buyerAccount.js +7 -0
  716. package/dist/resources/buyerAccount.js.map +1 -0
  717. package/dist/resources/buyerBlocklist.cjs +7 -0
  718. package/dist/resources/buyerBlocklist.cjs.map +1 -0
  719. package/dist/resources/buyerBlocklist.d.cts +120 -0
  720. package/dist/resources/buyerBlocklist.d.ts +120 -0
  721. package/dist/resources/buyerBlocklist.js +7 -0
  722. package/dist/resources/buyerBlocklist.js.map +1 -0
  723. package/dist/resources/buyerConversations.cjs +7 -0
  724. package/dist/resources/buyerConversations.cjs.map +1 -0
  725. package/dist/resources/buyerConversations.d.cts +85 -0
  726. package/dist/resources/buyerConversations.d.ts +85 -0
  727. package/dist/resources/buyerConversations.js +7 -0
  728. package/dist/resources/buyerConversations.js.map +1 -0
  729. package/dist/resources/buyerEvidenceReviews.cjs +7 -0
  730. package/dist/resources/buyerEvidenceReviews.cjs.map +1 -0
  731. package/dist/resources/buyerEvidenceReviews.d.cts +43 -0
  732. package/dist/resources/buyerEvidenceReviews.d.ts +43 -0
  733. package/dist/resources/buyerEvidenceReviews.js +7 -0
  734. package/dist/resources/buyerEvidenceReviews.js.map +1 -0
  735. package/dist/resources/buyerPortal.cjs +7 -0
  736. package/dist/resources/buyerPortal.cjs.map +1 -0
  737. package/dist/resources/buyerPortal.d.cts +122 -0
  738. package/dist/resources/buyerPortal.d.ts +122 -0
  739. package/dist/resources/buyerPortal.js +7 -0
  740. package/dist/resources/buyerPortal.js.map +1 -0
  741. package/dist/resources/cards.cjs +7 -0
  742. package/dist/resources/cards.cjs.map +1 -0
  743. package/dist/resources/cards.d.cts +17 -0
  744. package/dist/resources/cards.d.ts +17 -0
  745. package/dist/resources/cards.js +7 -0
  746. package/dist/resources/cards.js.map +1 -0
  747. package/dist/resources/chargebackPrevention.cjs +9 -0
  748. package/dist/resources/chargebackPrevention.cjs.map +1 -0
  749. package/dist/resources/chargebackPrevention.d.cts +51 -0
  750. package/dist/resources/chargebackPrevention.d.ts +51 -0
  751. package/dist/resources/chargebackPrevention.js +9 -0
  752. package/dist/resources/chargebackPrevention.js.map +1 -0
  753. package/dist/resources/checkoutMethods.cjs +7 -0
  754. package/dist/resources/checkoutMethods.cjs.map +1 -0
  755. package/dist/resources/checkoutMethods.d.cts +135 -0
  756. package/dist/resources/checkoutMethods.d.ts +135 -0
  757. package/dist/resources/checkoutMethods.js +7 -0
  758. package/dist/resources/checkoutMethods.js.map +1 -0
  759. package/dist/resources/checkoutRecovery.cjs +7 -0
  760. package/dist/resources/checkoutRecovery.cjs.map +1 -0
  761. package/dist/resources/checkoutRecovery.d.cts +92 -0
  762. package/dist/resources/checkoutRecovery.d.ts +92 -0
  763. package/dist/resources/checkoutRecovery.js +7 -0
  764. package/dist/resources/checkoutRecovery.js.map +1 -0
  765. package/dist/resources/checkoutTemplates.cjs +7 -0
  766. package/dist/resources/checkoutTemplates.cjs.map +1 -0
  767. package/dist/resources/checkoutTemplates.d.cts +75 -0
  768. package/dist/resources/checkoutTemplates.d.ts +75 -0
  769. package/dist/resources/checkoutTemplates.js +7 -0
  770. package/dist/resources/checkoutTemplates.js.map +1 -0
  771. package/dist/resources/connectors.cjs +7 -0
  772. package/dist/resources/connectors.cjs.map +1 -0
  773. package/dist/resources/connectors.d.cts +500 -0
  774. package/dist/resources/connectors.d.ts +500 -0
  775. package/dist/resources/connectors.js +7 -0
  776. package/dist/resources/connectors.js.map +1 -0
  777. package/dist/resources/costRules.cjs +7 -0
  778. package/dist/resources/costRules.cjs.map +1 -0
  779. package/dist/resources/costRules.d.cts +56 -0
  780. package/dist/resources/costRules.d.ts +56 -0
  781. package/dist/resources/costRules.js +7 -0
  782. package/dist/resources/costRules.js.map +1 -0
  783. package/dist/resources/customers.cjs +7 -0
  784. package/dist/resources/customers.cjs.map +1 -0
  785. package/dist/resources/customers.d.cts +185 -0
  786. package/dist/resources/customers.d.ts +185 -0
  787. package/dist/resources/customers.js +7 -0
  788. package/dist/resources/customers.js.map +1 -0
  789. package/dist/resources/deploymentBranding.cjs +9 -0
  790. package/dist/resources/deploymentBranding.cjs.map +1 -0
  791. package/dist/resources/deploymentBranding.d.cts +51 -0
  792. package/dist/resources/deploymentBranding.d.ts +51 -0
  793. package/dist/resources/deploymentBranding.js +9 -0
  794. package/dist/resources/deploymentBranding.js.map +1 -0
  795. package/dist/resources/disputes.cjs +7 -0
  796. package/dist/resources/disputes.cjs.map +1 -0
  797. package/dist/resources/disputes.d.cts +157 -0
  798. package/dist/resources/disputes.d.ts +157 -0
  799. package/dist/resources/disputes.js +7 -0
  800. package/dist/resources/disputes.js.map +1 -0
  801. package/dist/resources/ephemeralKeys.cjs +7 -0
  802. package/dist/resources/ephemeralKeys.cjs.map +1 -0
  803. package/dist/resources/ephemeralKeys.d.cts +43 -0
  804. package/dist/resources/ephemeralKeys.d.ts +43 -0
  805. package/dist/resources/ephemeralKeys.js +7 -0
  806. package/dist/resources/ephemeralKeys.js.map +1 -0
  807. package/dist/resources/events.cjs +7 -0
  808. package/dist/resources/events.cjs.map +1 -0
  809. package/dist/resources/events.d.cts +48 -0
  810. package/dist/resources/events.d.ts +48 -0
  811. package/dist/resources/events.js +7 -0
  812. package/dist/resources/events.js.map +1 -0
  813. package/dist/resources/export.cjs +7 -0
  814. package/dist/resources/export.cjs.map +1 -0
  815. package/dist/resources/export.d.cts +165 -0
  816. package/dist/resources/export.d.ts +165 -0
  817. package/dist/resources/export.js +7 -0
  818. package/dist/resources/export.js.map +1 -0
  819. package/dist/resources/externalRecords.cjs +7 -0
  820. package/dist/resources/externalRecords.cjs.map +1 -0
  821. package/dist/resources/externalRecords.d.cts +53 -0
  822. package/dist/resources/externalRecords.d.ts +53 -0
  823. package/dist/resources/externalRecords.js +7 -0
  824. package/dist/resources/externalRecords.js.map +1 -0
  825. package/dist/resources/featureMatrix.cjs +7 -0
  826. package/dist/resources/featureMatrix.cjs.map +1 -0
  827. package/dist/resources/featureMatrix.d.cts +24 -0
  828. package/dist/resources/featureMatrix.d.ts +24 -0
  829. package/dist/resources/featureMatrix.js +7 -0
  830. package/dist/resources/featureMatrix.js.map +1 -0
  831. package/dist/resources/fees.cjs +9 -0
  832. package/dist/resources/fees.cjs.map +1 -0
  833. package/dist/resources/fees.d.cts +96 -0
  834. package/dist/resources/fees.d.ts +96 -0
  835. package/dist/resources/fees.js +9 -0
  836. package/dist/resources/fees.js.map +1 -0
  837. package/dist/resources/files.cjs +7 -0
  838. package/dist/resources/files.cjs.map +1 -0
  839. package/dist/resources/files.d.cts +17 -0
  840. package/dist/resources/files.d.ts +17 -0
  841. package/dist/resources/files.js +7 -0
  842. package/dist/resources/files.js.map +1 -0
  843. package/dist/resources/forex.cjs +7 -0
  844. package/dist/resources/forex.cjs.map +1 -0
  845. package/dist/resources/forex.d.cts +15 -0
  846. package/dist/resources/forex.d.ts +15 -0
  847. package/dist/resources/forex.js +7 -0
  848. package/dist/resources/forex.js.map +1 -0
  849. package/dist/resources/identityVerifications.cjs +7 -0
  850. package/dist/resources/identityVerifications.cjs.map +1 -0
  851. package/dist/resources/identityVerifications.d.cts +220 -0
  852. package/dist/resources/identityVerifications.d.ts +220 -0
  853. package/dist/resources/identityVerifications.js +7 -0
  854. package/dist/resources/identityVerifications.js.map +1 -0
  855. package/dist/resources/industries.cjs +7 -0
  856. package/dist/resources/industries.cjs.map +1 -0
  857. package/dist/resources/industries.d.cts +88 -0
  858. package/dist/resources/industries.d.ts +88 -0
  859. package/dist/resources/industries.js +7 -0
  860. package/dist/resources/industries.js.map +1 -0
  861. package/dist/resources/invoiceSettings.cjs +7 -0
  862. package/dist/resources/invoiceSettings.cjs.map +1 -0
  863. package/dist/resources/invoiceSettings.d.cts +131 -0
  864. package/dist/resources/invoiceSettings.d.ts +131 -0
  865. package/dist/resources/invoiceSettings.js +7 -0
  866. package/dist/resources/invoiceSettings.js.map +1 -0
  867. package/dist/resources/invoices.cjs +7 -0
  868. package/dist/resources/invoices.cjs.map +1 -0
  869. package/dist/resources/invoices.d.cts +160 -0
  870. package/dist/resources/invoices.d.ts +160 -0
  871. package/dist/resources/invoices.js +7 -0
  872. package/dist/resources/invoices.js.map +1 -0
  873. package/dist/resources/live.cjs +13 -0
  874. package/dist/resources/live.cjs.map +1 -0
  875. package/dist/resources/live.d.cts +92 -0
  876. package/dist/resources/live.d.ts +92 -0
  877. package/dist/resources/live.js +13 -0
  878. package/dist/resources/live.js.map +1 -0
  879. package/dist/resources/mandates.cjs +7 -0
  880. package/dist/resources/mandates.cjs.map +1 -0
  881. package/dist/resources/mandates.d.cts +33 -0
  882. package/dist/resources/mandates.d.ts +33 -0
  883. package/dist/resources/mandates.js +7 -0
  884. package/dist/resources/mandates.js.map +1 -0
  885. package/dist/resources/merchantAccounts.cjs +7 -0
  886. package/dist/resources/merchantAccounts.cjs.map +1 -0
  887. package/dist/resources/merchantAccounts.d.cts +23 -0
  888. package/dist/resources/merchantAccounts.d.ts +23 -0
  889. package/dist/resources/merchantAccounts.js +7 -0
  890. package/dist/resources/merchantAccounts.js.map +1 -0
  891. package/dist/resources/messageTemplates.cjs +7 -0
  892. package/dist/resources/messageTemplates.cjs.map +1 -0
  893. package/dist/resources/messageTemplates.d.cts +48 -0
  894. package/dist/resources/messageTemplates.d.ts +48 -0
  895. package/dist/resources/messageTemplates.js +7 -0
  896. package/dist/resources/messageTemplates.js.map +1 -0
  897. package/dist/resources/operationLimits.cjs +7 -0
  898. package/dist/resources/operationLimits.cjs.map +1 -0
  899. package/dist/resources/operationLimits.d.cts +122 -0
  900. package/dist/resources/operationLimits.d.ts +122 -0
  901. package/dist/resources/operationLimits.js +7 -0
  902. package/dist/resources/operationLimits.js.map +1 -0
  903. package/dist/resources/paymentLinks.cjs +7 -0
  904. package/dist/resources/paymentLinks.cjs.map +1 -0
  905. package/dist/resources/paymentLinks.d.cts +42 -0
  906. package/dist/resources/paymentLinks.d.ts +42 -0
  907. package/dist/resources/paymentLinks.js +7 -0
  908. package/dist/resources/paymentLinks.js.map +1 -0
  909. package/dist/resources/paymentMethods.cjs +7 -0
  910. package/dist/resources/paymentMethods.cjs.map +1 -0
  911. package/dist/resources/paymentMethods.d.cts +172 -0
  912. package/dist/resources/paymentMethods.d.ts +172 -0
  913. package/dist/resources/paymentMethods.js +7 -0
  914. package/dist/resources/paymentMethods.js.map +1 -0
  915. package/dist/resources/payments.cjs +7 -0
  916. package/dist/resources/payments.cjs.map +1 -0
  917. package/dist/resources/payments.d.cts +509 -0
  918. package/dist/resources/payments.d.ts +509 -0
  919. package/dist/resources/payments.js +7 -0
  920. package/dist/resources/payments.js.map +1 -0
  921. package/dist/resources/payoutDestinations.cjs +7 -0
  922. package/dist/resources/payoutDestinations.cjs.map +1 -0
  923. package/dist/resources/payoutDestinations.d.cts +122 -0
  924. package/dist/resources/payoutDestinations.d.ts +122 -0
  925. package/dist/resources/payoutDestinations.js +7 -0
  926. package/dist/resources/payoutDestinations.js.map +1 -0
  927. package/dist/resources/payouts.cjs +7 -0
  928. package/dist/resources/payouts.cjs.map +1 -0
  929. package/dist/resources/payouts.d.cts +86 -0
  930. package/dist/resources/payouts.d.ts +86 -0
  931. package/dist/resources/payouts.js +7 -0
  932. package/dist/resources/payouts.js.map +1 -0
  933. package/dist/resources/paypalDisputes.cjs +7 -0
  934. package/dist/resources/paypalDisputes.cjs.map +1 -0
  935. package/dist/resources/paypalDisputes.d.cts +25 -0
  936. package/dist/resources/paypalDisputes.d.ts +25 -0
  937. package/dist/resources/paypalDisputes.js +7 -0
  938. package/dist/resources/paypalDisputes.js.map +1 -0
  939. package/dist/resources/persons.cjs +7 -0
  940. package/dist/resources/persons.cjs.map +1 -0
  941. package/dist/resources/persons.d.cts +58 -0
  942. package/dist/resources/persons.d.ts +58 -0
  943. package/dist/resources/persons.js +7 -0
  944. package/dist/resources/persons.js.map +1 -0
  945. package/dist/resources/poll.cjs +7 -0
  946. package/dist/resources/poll.cjs.map +1 -0
  947. package/dist/resources/poll.d.cts +12 -0
  948. package/dist/resources/poll.d.ts +12 -0
  949. package/dist/resources/poll.js +7 -0
  950. package/dist/resources/poll.js.map +1 -0
  951. package/dist/resources/processorCosts.cjs +7 -0
  952. package/dist/resources/processorCosts.cjs.map +1 -0
  953. package/dist/resources/processorCosts.d.cts +102 -0
  954. package/dist/resources/processorCosts.d.ts +102 -0
  955. package/dist/resources/processorCosts.js +7 -0
  956. package/dist/resources/processorCosts.js.map +1 -0
  957. package/dist/resources/processorImports.cjs +11 -0
  958. package/dist/resources/processorImports.cjs.map +1 -0
  959. package/dist/resources/processorImports.d.cts +96 -0
  960. package/dist/resources/processorImports.d.ts +96 -0
  961. package/dist/resources/processorImports.js +11 -0
  962. package/dist/resources/processorImports.js.map +1 -0
  963. package/dist/resources/products.cjs +7 -0
  964. package/dist/resources/products.cjs.map +1 -0
  965. package/dist/resources/products.d.cts +347 -0
  966. package/dist/resources/products.d.ts +347 -0
  967. package/dist/resources/products.js +7 -0
  968. package/dist/resources/products.js.map +1 -0
  969. package/dist/resources/profileAcquirers.cjs +7 -0
  970. package/dist/resources/profileAcquirers.cjs.map +1 -0
  971. package/dist/resources/profileAcquirers.d.cts +13 -0
  972. package/dist/resources/profileAcquirers.d.ts +13 -0
  973. package/dist/resources/profileAcquirers.js +7 -0
  974. package/dist/resources/profileAcquirers.js.map +1 -0
  975. package/dist/resources/profiles.cjs +7 -0
  976. package/dist/resources/profiles.cjs.map +1 -0
  977. package/dist/resources/profiles.d.cts +65 -0
  978. package/dist/resources/profiles.d.ts +65 -0
  979. package/dist/resources/profiles.js +7 -0
  980. package/dist/resources/profiles.js.map +1 -0
  981. package/dist/resources/projects.cjs +7 -0
  982. package/dist/resources/projects.cjs.map +1 -0
  983. package/dist/resources/projects.d.cts +131 -0
  984. package/dist/resources/projects.d.ts +131 -0
  985. package/dist/resources/projects.js +7 -0
  986. package/dist/resources/projects.js.map +1 -0
  987. package/dist/resources/refunds.cjs +7 -0
  988. package/dist/resources/refunds.cjs.map +1 -0
  989. package/dist/resources/refunds.d.cts +118 -0
  990. package/dist/resources/refunds.d.ts +118 -0
  991. package/dist/resources/refunds.js +7 -0
  992. package/dist/resources/refunds.js.map +1 -0
  993. package/dist/resources/regions.cjs +7 -0
  994. package/dist/resources/regions.cjs.map +1 -0
  995. package/dist/resources/regions.d.cts +32 -0
  996. package/dist/resources/regions.d.ts +32 -0
  997. package/dist/resources/regions.js +7 -0
  998. package/dist/resources/regions.js.map +1 -0
  999. package/dist/resources/relay.cjs +7 -0
  1000. package/dist/resources/relay.cjs.map +1 -0
  1001. package/dist/resources/relay.d.cts +13 -0
  1002. package/dist/resources/relay.d.ts +13 -0
  1003. package/dist/resources/relay.js +7 -0
  1004. package/dist/resources/relay.js.map +1 -0
  1005. package/dist/resources/risk.cjs +9 -0
  1006. package/dist/resources/risk.cjs.map +1 -0
  1007. package/dist/resources/risk.d.cts +67 -0
  1008. package/dist/resources/risk.d.ts +67 -0
  1009. package/dist/resources/risk.js +9 -0
  1010. package/dist/resources/risk.js.map +1 -0
  1011. package/dist/resources/routing.cjs +7 -0
  1012. package/dist/resources/routing.cjs.map +1 -0
  1013. package/dist/resources/routing.d.cts +526 -0
  1014. package/dist/resources/routing.d.ts +526 -0
  1015. package/dist/resources/routing.js +7 -0
  1016. package/dist/resources/routing.js.map +1 -0
  1017. package/dist/resources/search.cjs +7 -0
  1018. package/dist/resources/search.cjs.map +1 -0
  1019. package/dist/resources/search.d.cts +59 -0
  1020. package/dist/resources/search.d.ts +59 -0
  1021. package/dist/resources/search.js +7 -0
  1022. package/dist/resources/search.js.map +1 -0
  1023. package/dist/resources/sellToRestrictions.cjs +7 -0
  1024. package/dist/resources/sellToRestrictions.cjs.map +1 -0
  1025. package/dist/resources/sellToRestrictions.d.cts +99 -0
  1026. package/dist/resources/sellToRestrictions.d.ts +99 -0
  1027. package/dist/resources/sellToRestrictions.js +7 -0
  1028. package/dist/resources/sellToRestrictions.js.map +1 -0
  1029. package/dist/resources/settings.cjs +7 -0
  1030. package/dist/resources/settings.cjs.map +1 -0
  1031. package/dist/resources/settings.d.cts +36 -0
  1032. package/dist/resources/settings.d.ts +36 -0
  1033. package/dist/resources/settings.js +7 -0
  1034. package/dist/resources/settings.js.map +1 -0
  1035. package/dist/resources/settlement.cjs +9 -0
  1036. package/dist/resources/settlement.cjs.map +1 -0
  1037. package/dist/resources/settlement.d.cts +297 -0
  1038. package/dist/resources/settlement.d.ts +297 -0
  1039. package/dist/resources/settlement.js +9 -0
  1040. package/dist/resources/settlement.js.map +1 -0
  1041. package/dist/resources/shopLabels.cjs +7 -0
  1042. package/dist/resources/shopLabels.cjs.map +1 -0
  1043. package/dist/resources/shopLabels.d.cts +56 -0
  1044. package/dist/resources/shopLabels.d.ts +56 -0
  1045. package/dist/resources/shopLabels.js +7 -0
  1046. package/dist/resources/shopLabels.js.map +1 -0
  1047. package/dist/resources/shops.cjs +7 -0
  1048. package/dist/resources/shops.cjs.map +1 -0
  1049. package/dist/resources/shops.d.cts +196 -0
  1050. package/dist/resources/shops.d.ts +196 -0
  1051. package/dist/resources/shops.js +7 -0
  1052. package/dist/resources/shops.js.map +1 -0
  1053. package/dist/resources/stripeConnect.cjs +7 -0
  1054. package/dist/resources/stripeConnect.cjs.map +1 -0
  1055. package/dist/resources/stripeConnect.d.cts +19 -0
  1056. package/dist/resources/stripeConnect.d.ts +19 -0
  1057. package/dist/resources/stripeConnect.js +7 -0
  1058. package/dist/resources/stripeConnect.js.map +1 -0
  1059. package/dist/resources/subscriptions.cjs +7 -0
  1060. package/dist/resources/subscriptions.cjs.map +1 -0
  1061. package/dist/resources/subscriptions.d.cts +219 -0
  1062. package/dist/resources/subscriptions.d.ts +219 -0
  1063. package/dist/resources/subscriptions.js +7 -0
  1064. package/dist/resources/subscriptions.js.map +1 -0
  1065. package/dist/resources/support.cjs +7 -0
  1066. package/dist/resources/support.cjs.map +1 -0
  1067. package/dist/resources/support.d.cts +51 -0
  1068. package/dist/resources/support.d.ts +51 -0
  1069. package/dist/resources/support.js +7 -0
  1070. package/dist/resources/support.js.map +1 -0
  1071. package/dist/resources/threeDsRules.cjs +7 -0
  1072. package/dist/resources/threeDsRules.cjs.map +1 -0
  1073. package/dist/resources/threeDsRules.d.cts +12 -0
  1074. package/dist/resources/threeDsRules.d.ts +12 -0
  1075. package/dist/resources/threeDsRules.js +7 -0
  1076. package/dist/resources/threeDsRules.js.map +1 -0
  1077. package/dist/resources/users.cjs +7 -0
  1078. package/dist/resources/users.cjs.map +1 -0
  1079. package/dist/resources/users.d.cts +696 -0
  1080. package/dist/resources/users.d.ts +696 -0
  1081. package/dist/resources/users.js +7 -0
  1082. package/dist/resources/users.js.map +1 -0
  1083. package/dist/resources/vatRates.cjs +7 -0
  1084. package/dist/resources/vatRates.cjs.map +1 -0
  1085. package/dist/resources/vatRates.d.cts +24 -0
  1086. package/dist/resources/vatRates.d.ts +24 -0
  1087. package/dist/resources/vatRates.js +7 -0
  1088. package/dist/resources/vatRates.js.map +1 -0
  1089. package/dist/resources/verification.cjs +7 -0
  1090. package/dist/resources/verification.cjs.map +1 -0
  1091. package/dist/resources/verification.d.cts +13 -0
  1092. package/dist/resources/verification.d.ts +13 -0
  1093. package/dist/resources/verification.js +7 -0
  1094. package/dist/resources/verification.js.map +1 -0
  1095. package/dist/resources/webhooks.cjs +11 -0
  1096. package/dist/resources/webhooks.cjs.map +1 -0
  1097. package/dist/resources/webhooks.d.cts +145 -0
  1098. package/dist/resources/webhooks.d.ts +145 -0
  1099. package/dist/resources/webhooks.js +11 -0
  1100. package/dist/resources/webhooks.js.map +1 -0
  1101. package/dist/resources/whopResolutionCases.cjs +7 -0
  1102. package/dist/resources/whopResolutionCases.cjs.map +1 -0
  1103. package/dist/resources/whopResolutionCases.d.cts +28 -0
  1104. package/dist/resources/whopResolutionCases.d.ts +28 -0
  1105. package/dist/resources/whopResolutionCases.js +7 -0
  1106. package/dist/resources/whopResolutionCases.js.map +1 -0
  1107. package/dist/types-BEuEdvtX.d.cts +4511 -0
  1108. package/dist/types-ewLZOLPZ.d.ts +4511 -0
  1109. package/dist/types.cjs +1 -0
  1110. package/dist/types.cjs.map +1 -0
  1111. package/dist/{index-Dcy3Pwsx.d.cts → types.d.cts} +595 -11014
  1112. package/dist/{index-Dcy3Pwsx.d.ts → types.d.ts} +595 -11014
  1113. package/dist/types.js +1 -0
  1114. package/dist/types.js.map +1 -0
  1115. package/package.json +11 -1
  1116. package/dist/chunk-JJE7PY3K.js +0 -17987
  1117. package/dist/chunk-JJE7PY3K.js.map +0 -1
package/dist/internal.js CHANGED
@@ -1,37 +1,126 @@
1
1
  import {
2
- AIRWALLEX_AUTOFILL_TREATMENTS,
3
- AIRWALLEX_CARD_LAYOUTS,
4
- AIRWALLEX_CARD_PRESETS,
5
- AIRWALLEX_CARD_PRESET_FALLBACK,
6
- AIRWALLEX_FIELD_CHROMES,
7
- AIRWALLEX_FIELD_FONT_SIZES,
8
- AIRWALLEX_FIELD_WEIGHTS,
9
- AIRWALLEX_FOCUS_RINGS,
10
- AIRWALLEX_LABEL_STYLES,
11
- AIRWALLEX_NETWORK_MARKS,
2
+ ConnectorRestrictions
3
+ } from "./chunk-3ST4NW2T.js";
4
+ import {
5
+ Diagnostic
6
+ } from "./chunk-7YIDBPIU.js";
7
+ import {
8
+ Gsm
9
+ } from "./chunk-KS5ZUVPC.js";
10
+ import {
11
+ NativeRenewals
12
+ } from "./chunk-27NVIXDV.js";
13
+ import {
14
+ PlatformBilling
15
+ } from "./chunk-T37FLY7Q.js";
16
+ import {
17
+ PlatformFees
18
+ } from "./chunk-OMRKVER7.js";
19
+ import {
20
+ PlatformMessageTemplates
21
+ } from "./chunk-IGFEQECO.js";
22
+ import {
23
+ PlatformSettings
24
+ } from "./chunk-3YUKTCY2.js";
25
+ import {
26
+ AdminLive
27
+ } from "./chunk-HL763JX2.js";
28
+ import {
29
+ AdminPortal
30
+ } from "./chunk-JTZ44ZLT.js";
31
+ import {
32
+ AdminSupport
33
+ } from "./chunk-SXCH2AXM.js";
34
+ import {
35
+ AuditLogs
36
+ } from "./chunk-3GMGEP5I.js";
37
+ import {
38
+ Cache
39
+ } from "./chunk-4FVOCZIM.js";
40
+ import {
41
+ CardIssuers
42
+ } from "./chunk-2XAJIA23.js";
43
+ import {
44
+ Configs
45
+ } from "./chunk-GZW5AFIL.js";
46
+ import {
47
+ ConnectorRestrictionRules
48
+ } from "./chunk-D3D73ANJ.js";
49
+ import {
50
+ Admin
51
+ } from "./chunk-NLQOHTYN.js";
52
+ import {
53
+ AdminBranding
54
+ } from "./chunk-J3UH2OJH.js";
55
+ import {
56
+ AdminFileScans
57
+ } from "./chunk-CECSSOIZ.js";
58
+ import {
59
+ AdminIndustries
60
+ } from "./chunk-IB75VVZO.js";
61
+ import {
62
+ BUILTIN_PAYMENT_ICON_KEYS,
63
+ PRESENTATION_CONTRACT_VERSION,
64
+ PresentationCache,
65
+ builtinPaymentIconDataUri,
66
+ builtinPaymentIconSvg,
67
+ isConfirmedChild,
68
+ isSupportedPresentation,
69
+ presentationIconDataUri,
70
+ presentationIconSrc,
71
+ presentationTiers,
72
+ selectableEntries
73
+ } from "./chunk-QCPEE3EV.js";
74
+ import {
75
+ FeeProgramBuilder,
76
+ allOf,
77
+ anyOf,
78
+ feeProgram,
79
+ leaf,
80
+ metadataLeaf,
81
+ programToTree,
82
+ ruleMatchToTree
83
+ } from "./chunk-6QGC52VH.js";
84
+ import {
85
+ CHECKOUT_EVENT_KINDS,
86
+ NATIVE_PANES_MAX,
87
+ NATIVE_PANE_CATEGORY_KEYS,
88
+ NATIVE_PANE_ICON_KEYS,
89
+ PANES_MAX,
90
+ PANE_CATEGORY_KEYS,
91
+ PANE_ICON_KEYS,
92
+ STRIPE_FALLBACK_PANE_CATALOG,
93
+ STRIPE_FALLBACK_PANE_METHODS,
94
+ STRIPE_NATIVE_PANE_METHODS,
95
+ checkoutEntryUrl,
96
+ cloneNativePane,
97
+ clonePane,
98
+ decodeNativePanes,
99
+ decodePanes,
100
+ defaultNativePane,
101
+ defaultPane,
102
+ emptyPaneCatalog,
103
+ encodeNativePanes,
104
+ encodePanes,
105
+ focusedCheckoutUrl,
106
+ isCheckoutOpenEntryMessage,
107
+ nativePaneMethodInfo,
108
+ offerablePaneMethods,
109
+ paneCatalogFor,
110
+ paneDisplayDefaults,
111
+ paneMethodInfo,
112
+ paneRailAllowed,
113
+ paneViewVisibility,
114
+ validatePanes
115
+ } from "./chunk-2QMSBWQY.js";
116
+ import {
12
117
  ALL_CUSTOM_FIELD_CONDITION_SOURCES,
13
118
  ALL_CUSTOM_FIELD_OPERATORS,
14
119
  ALL_CUSTOM_FIELD_TYPES,
15
- APPLE_PAY_BUTTON_STYLES,
16
- APPLE_PAY_BUTTON_TYPES,
17
- Analytics,
18
- AnalyticsDashboard,
19
- Audit,
20
- AvailabilityOverrides,
21
120
  BRANDING_EXPORT_FORMAT,
22
121
  BRANDING_EXPORT_VERSION,
23
- BUILTIN_PAYMENT_ICON_KEYS,
24
- Branding,
25
- BuyerBlocklist,
26
- BuyerConversations,
27
- BuyerEvidenceReviews,
28
- CARD_FIELD_CHROMES,
29
- CARD_FIELD_FONT_SIZES,
30
- CARD_FIELD_WEIGHTS,
31
- CARD_FOCUS_RINGS,
32
122
  CHECKBOX_CHECKED,
33
123
  CHECKBOX_UNCHECKED,
34
- CHECKOUT_EVENT_KINDS,
35
124
  CHECKOUT_LOCALES,
36
125
  CUSTOM_CSS_MAX_LENGTH,
37
126
  CUSTOM_FIELDS_MAX,
@@ -39,102 +128,25 @@ import {
39
128
  CUSTOM_FIELD_KEY_PATTERN,
40
129
  CUSTOM_FIELD_OPERATORS_BY_SOURCE,
41
130
  CUSTOM_FIELD_VALUELESS_OPERATORS,
42
- Cards,
43
- ChargebackPrevention,
44
- CheckoutMethods,
45
- CheckoutRecovery,
46
- CheckoutSession,
47
- CheckoutTemplates,
48
- CostRules,
49
131
  DEFAULT_BADGES,
50
132
  DEFAULT_BADGES_DARK,
51
133
  DEFAULT_BRANDING,
52
134
  DEFAULT_BRANDING_DARK,
53
- DEFAULT_ENIGMA_CARD_FORM,
54
135
  DEFAULT_NOTICES,
55
- Delopay,
56
- DelopayAuthenticationError,
57
- DelopayError,
58
- ENIGMA_CLICK_FEEDBACK,
59
- ENIGMA_CORNERS,
60
- ENIGMA_CUSTOM_CSS_MAX_LENGTH,
61
- ENIGMA_CUSTOM_HEIGHT_DEFAULT,
62
- ENIGMA_CUSTOM_HEIGHT_MAX,
63
- ENIGMA_CUSTOM_HEIGHT_MIN,
64
- ENIGMA_FIELD_CHROMES,
65
- ENIGMA_FIELD_HEIGHTS,
66
- ENIGMA_FIELD_MOTIONS,
67
- ENIGMA_FIELD_ORDERS,
68
- ENIGMA_FOCUS_RINGS,
69
- ENIGMA_LABEL_PLACEMENTS,
70
- ENIGMA_LABEL_TONES,
71
- ENIGMA_LOADING_STYLES,
72
- ENIGMA_NETWORK_MARKS,
73
- ENIGMA_OPENINGS,
74
- ENIGMA_PAY_FEEDBACK,
75
- ENIGMA_REVEALS,
76
- ENIGMA_ROW_GAPS,
77
- ENIGMA_STYLE_MODES,
78
- ENIGMA_TEMPLATES,
79
- ENIGMA_TEMPLATE_PRESETS,
80
- Export,
81
- ExternalRecords,
82
- FeatureMatrix,
83
- FeeProgramBuilder,
84
- Files,
85
- Forex,
86
- GOOGLE_PAY_BUTTON_COLORS,
87
- GOOGLE_PAY_BUTTON_TYPES,
88
- IdentityVerifications,
89
- Industries,
90
- InvoiceSettingsResource,
91
- Invoices,
92
136
  LOCALIZABLE_COPY_FIELDS,
93
- Live,
94
- LiveEventStream,
95
137
  MAX_SECTION_LABEL_LENGTH,
96
138
  MAX_SECTION_ORDER,
97
139
  METHOD_SECTIONS,
98
140
  MIN_SECTION_ORDER,
99
- MessageTemplates,
100
141
  NATIVE_ELEMENT_POSITIONS,
101
- NATIVE_PANES_MAX,
102
- NATIVE_PANE_CATEGORY_KEYS,
103
- NATIVE_PANE_ICON_KEYS,
104
- NOMUPAY_FORM_STYLES,
105
142
  NOTICES_PER_SECTION,
106
143
  NOTICE_ICONS,
107
144
  NOTICE_ICON_FALLBACK,
108
145
  NOTICE_ICON_PATHS,
109
146
  NOTICE_LABEL_MAX_LENGTH,
110
147
  NOTICE_SECTIONS,
111
- OperationLimits,
112
- PANES_MAX,
113
- PANE_CATEGORY_KEYS,
114
- PANE_ICON_KEYS,
115
- PAYMENT_CURRENCIES,
116
- PAYPAL_CARD_LAYOUTS,
117
- PAYPAL_LABEL_STYLES,
118
- PRESENTATION_CONTRACT_VERSION,
119
- PayoutDestinations,
120
- PaypalDisputes,
121
- Persons,
122
- PresentationCache,
123
- ProcessorCosts,
124
- ProcessorImports,
125
- Products,
126
- PspImportEventStream,
127
148
  RTL_CHECKOUT_LOCALES,
128
- Regions,
129
- Risk,
130
149
  SECTION_ALIASES,
131
- STRIPE_FALLBACK_PANE_CATALOG,
132
- STRIPE_FALLBACK_PANE_METHODS,
133
- STRIPE_INPUT_STYLES,
134
- STRIPE_LABEL_PLACEMENTS,
135
- STRIPE_NATIVE_PANE_METHODS,
136
- STRIPE_SPACINGS,
137
- STRIPE_THEMES,
138
150
  SURCHARGE_BORDER_STYLES,
139
151
  SURCHARGE_BORDER_WIDTHS,
140
152
  SURCHARGE_FIGURE_MODES,
@@ -145,58 +157,21 @@ import {
145
157
  SURCHARGE_SIZES,
146
158
  SURCHARGE_STYLES,
147
159
  SURCHARGE_WEIGHTS,
148
- Search,
149
- SellToRestrictions,
150
- Settings,
151
- Settlement,
152
- ShopLabels,
153
- Subscriptions,
154
- Support,
155
160
  UNKNOWN_SECTION_ORDER,
156
161
  WCAG_AA_TEXT,
157
162
  WCAG_AA_UI,
158
- WHOP_ACCENT_COLORS,
159
- WHOP_BILLING_DETAILS,
160
- WHOP_CARD_PRESETS,
161
- WHOP_EMAIL_LABELS,
162
- WHOP_GRAY_COLORS,
163
- WHOP_LOOKS,
164
- WHOP_LOOK_SETTINGS,
165
- WHOP_RADII,
166
- WHOP_SELECTIONS,
167
- WHOP_SHADOWS,
168
- Webhooks,
169
- WhopResolutionCases,
170
- airwallexCardLayout,
171
- airwallexCardLayoutIsCoherent,
172
- airwallexCellWeight,
173
- airwallexFieldFontPx,
174
- airwallexFieldWeightValue,
175
- allOf,
176
- anyOf,
177
163
  applyBrandingVariables,
178
- applyEnigmaTemplate,
179
- asAirwallexCardPreset,
180
- brandingAssetPath,
181
164
  buildBrandingExport,
182
- builtinPaymentIconDataUri,
183
- builtinPaymentIconSvg,
184
165
  buttonPadValue,
185
166
  canonicalSectionId,
186
- cardFieldFontPx,
187
- cardFieldWeightValue,
188
167
  checkoutCopy,
189
- checkoutEntryUrl,
190
168
  checkoutLocaleDir,
191
169
  cloneBranding,
192
170
  cloneCustomField,
193
- cloneNativePane,
194
171
  cloneNotice,
195
- clonePane,
196
172
  compareSections,
197
173
  contrastRatio,
198
174
  copyTranslationsKey,
199
- csvQuery,
200
175
  customFieldContextFromMetadata,
201
176
  customFieldIsTextLike,
202
177
  customFieldOperatorTakesValue,
@@ -205,2802 +180,387 @@ import {
205
180
  decodeBadges,
206
181
  decodeBranding,
207
182
  decodeCustomFields,
208
- decodeEnigmaCardForm,
209
183
  decodeMethodSectionLabels,
210
184
  decodeMethodSectionOrder,
211
- decodeNativePanes,
212
185
  decodeNotices,
213
- decodePanes,
214
186
  defaultBranding,
215
187
  defaultCustomFieldVisibility,
216
188
  defaultMethodSectionOrder,
217
- defaultNativePane,
218
189
  defaultNotices,
219
190
  defaultOperatorForSource,
220
- defaultPane,
221
- emptyPaneCatalog,
222
191
  encodeBadges,
223
192
  encodeBranding,
224
193
  encodeCustomFields,
225
- encodeEnigmaCardForm,
226
194
  encodeMethodSectionLabels,
227
195
  encodeMethodSectionOrder,
228
- encodeNativePanes,
229
196
  encodeNotices,
230
- encodePanes,
231
- enigmaCornerPx,
232
- enigmaCustomCssProblem,
233
197
  enigmaDefaultFill,
234
- enigmaNamesInside,
235
- enigmaTemplateChanges,
236
198
  evaluateCustomFieldCondition,
237
199
  evaluateCustomFieldVisibility,
238
- feeProgram,
239
- focusedCheckoutUrl,
240
200
  fontStack,
241
201
  fontWeightValue,
242
202
  inputPadValue,
243
203
  isCheckboxChecked,
244
- isCheckoutOpenEntryMessage,
245
- isConfirmedChild,
246
204
  isDarkSurface,
247
205
  isDefaultBadgeSet,
248
206
  isHexColor,
249
207
  isNoticeIcon,
250
- isSubscriptionDisputeWebhook,
251
- isSubscriptionLifecycleWebhook,
252
- isSupportedPresentation,
253
208
  knownSectionLabelKey,
254
- leaf,
255
209
  logoDimensions,
256
- matchWhopLook,
257
- metadataLeaf,
258
- nativePaneMethodInfo,
259
- nearestWhopAccent,
260
210
  noticeText,
261
211
  noticesIn,
262
- offerablePaneMethods,
263
- openLiveStream,
264
- paneCatalogFor,
265
- paneDisplayDefaults,
266
- paneMethodInfo,
267
- paneRailAllowed,
268
- paneViewVisibility,
269
212
  parseCustomFieldsLoose,
270
213
  parseImportedBranding,
271
214
  parseNoticesLoose,
272
- presentationIconDataUri,
273
- presentationIconSrc,
274
- presentationTiers,
275
- preventionCaseQuery,
276
- programToTree,
277
215
  radiusValue,
278
216
  readableInkOn,
279
- resolveAirwallexCardPreset,
280
- resolveAirwallexLabelStyle,
281
- resolveApplePayButtonStyle,
282
- resolveGooglePayButtonColor,
283
217
  resolveNoticesAndBadges,
284
- resolveStripeTheme,
285
- resolveWhopAccent,
286
- riskTuningPath,
287
- ruleMatchToTree,
288
- runExport,
289
218
  sanitizeCustomCss,
290
219
  sectionLabel,
291
220
  sectionOrderOf,
292
- selectableEntries,
293
221
  shadowFor,
294
222
  shownNotices,
295
- statementListQuery,
296
- stripeSpacingValues,
297
223
  surchargeFigurePlan,
298
224
  surchargeShowsLabel,
299
225
  surchargeStyleDrawsAShape,
300
226
  surchargeWordFor,
301
227
  surfacePadValue,
302
228
  validSectionOrder,
303
- validatePanes,
304
229
  vaultFormAppearance,
305
230
  verticalGapValue,
306
- visibleCustomFields,
307
- whopAccentSwatch,
308
- whopCardElement
309
- } from "./chunk-JJE7PY3K.js";
310
-
311
- // src/internal/resources/admin.ts
312
- var Admin = class {
313
- constructor(request) {
314
- this.request = request;
315
- }
316
- async signIn(params) {
317
- return this.request("POST", "/admin/signin", { body: params });
318
- }
319
- async createInternalUser(params) {
320
- return this.request("POST", "/admin/internal-signup", { body: params });
321
- }
322
- async createTenant(params) {
323
- return this.request("POST", "/admin/tenant-signup", { body: params });
324
- }
325
- /**
326
- * Create a new merchant admin user and merchant account atomically.
327
- *
328
- * This is the correct endpoint for bootstrapping the first admin user in a
329
- * fresh deployment — `internal-signup`/`tenant-signup` both require
330
- * pre-existing merchant records that don't exist on a clean database.
331
- *
332
- * `POST /admin/signup-with-merchant-id`
333
- */
334
- async signupWithMerchantId(params) {
335
- return this.request("POST", "/admin/signup-with-merchant-id", { body: params });
336
- }
337
- /** Toggle public signup on/off. `POST /admin/settings/signup` */
338
- async setSignupSettings(params) {
339
- return this.request("POST", "/admin/settings/signup", { body: params });
340
- }
341
- /** Read current public-signup status. `GET /admin/settings/signup` */
342
- async getSignupSettings() {
343
- return this.request("GET", "/admin/settings/signup");
344
- }
345
- /** Full merchant bootstrap — user + merchant + project + profile + keys. `POST /admin/onboard-merchant` */
346
- async onboardMerchant(params) {
347
- return this.request("POST", "/admin/onboard-merchant", { body: params });
348
- }
349
- };
350
-
351
- // src/internal/resources/adminBranding.ts
352
- var AdminBranding = class {
353
- constructor(request) {
354
- this.request = request;
355
- }
356
- /**
357
- * What is saved, the value in force for each unset field, and the revision
358
- * to send back on the next update.
359
- *
360
- * `GET /admin-portal/branding`
361
- */
362
- async retrieve(options) {
363
- return this.request("GET", "/admin-portal/branding", { ...options });
364
- }
365
- /**
366
- * Replace the whole branding; all fields `null` clears it. A changed image
367
- * or font address is fetched first and refused unless it answers with the
368
- * right kind of file. A stale `expected_revision` is refused and changes
369
- * nothing.
370
- *
371
- * `PUT /admin-portal/branding`
372
- */
373
- async update(params, options) {
374
- return this.request("PUT", "/admin-portal/branding", { body: params, ...options });
375
- }
376
- };
377
-
378
- // src/internal/resources/adminFileScans.ts
379
- var AdminFileScans = class {
380
- constructor(request) {
381
- this.request = request;
382
- }
383
- /**
384
- * The scanner settings in force and where they come from, a check of the
385
- * scanner made for this answer, when it last finished a file and how many
386
- * files wait for their scan. `GET /admin-portal/file-scans/status`
387
- */
388
- async status() {
389
- return this.request("GET", "/admin-portal/file-scans/status");
390
- }
391
- /**
392
- * Ask a scanner whether it answers, before it is saved. Only the connection
393
- * is tested: no file content is sent. A field left out takes the value in
394
- * force. An address outside the deployment's private network is refused
395
- * without a connection (`problem: 'public_address'`).
396
- * `POST /admin-portal/file-scans/test`
397
- */
398
- async test(body = {}) {
399
- return this.request("POST", "/admin-portal/file-scans/test", { body });
400
- }
401
- /**
402
- * Uploaded files their scan blocked, of every kind, latest result first
403
- * unless `sort_by` says otherwise, with what the scanner found. Several
404
- * `kind` or `side` values match a file with any of them. A blocked file's
405
- * content is never handed out. `GET /admin-portal/file-scans/blocked`
406
- */
407
- async blocked(query = {}) {
408
- return this.request("GET", "/admin-portal/file-scans/blocked", {
409
- query: csvQuery(query, ["kind", "side"])
410
- });
411
- }
412
- };
413
-
414
- // src/internal/resources/adminIndustries.ts
415
- var path = (id) => `/admin-portal/industries/${encodeURIComponent(id)}`;
416
- var AdminIndustries = class {
417
- constructor(request) {
418
- this.request = request;
419
- }
420
- /** The whole catalog, archived entries included. `GET /admin-portal/industries` */
421
- async list() {
422
- return this.request("GET", "/admin-portal/industries");
423
- }
424
- /**
425
- * Create an industry, or a sub-industry under `parent_id`. Without
426
- * `availability` it can be selected nowhere until availability is set.
427
- * `POST /admin-portal/industries`
428
- */
429
- async create(body) {
430
- return this.request("POST", "/admin-portal/industries", { body });
431
- }
432
- /** Rename an entry; its id stays. `PATCH /admin-portal/industries/{industry_id}` */
433
- async rename(industryId, body) {
434
- return this.request("PATCH", path(industryId), { body });
435
- }
436
- /**
437
- * Stop offering an entry, and for an industry its sub-industries, for new
438
- * selections. Existing selections keep it. `POST /admin-portal/industries/{industry_id}/archive`
439
- */
440
- async archive(industryId) {
441
- return this.request("POST", `${path(industryId)}/archive`);
442
- }
443
- /**
444
- * Offer an archived entry again. Refused while an active sibling holds its
445
- * name, or for a sub-industry while its industry is archived.
446
- * `POST /admin-portal/industries/{industry_id}/restore`
447
- */
448
- async restore(industryId) {
449
- return this.request("POST", `${path(industryId)}/restore`);
450
- }
451
- /**
452
- * Replace where an entry can be selected.
453
- * `PUT /admin-portal/industries/{industry_id}/availability`
454
- */
455
- async setAvailability(industryId, body) {
456
- return this.request("PUT", `${path(industryId)}/availability`, { body });
457
- }
458
- /**
459
- * Every entry as seen from one merchant, or one of its projects or shops:
460
- * whether it can be selected there, why, and which scope grants it.
461
- * `GET /admin-portal/industries/preview`
462
- */
463
- async preview(query) {
464
- return this.request("GET", "/admin-portal/industries/preview", { query: { ...query } });
465
- }
466
- };
467
-
468
- // src/internal/resources/adminLive.ts
469
- var AdminLive = class {
470
- constructor(request, openStream) {
471
- this.request = request;
472
- this.openStream = openStream;
473
- }
474
- /**
475
- * Open the stream of what changed in every merchant. Each change names its
476
- * `merchant_id`. The SDK does not reconnect — see `LiveEventStream`.
477
- *
478
- * `GET /admin-portal/live/stream`
479
- */
480
- async stream(options) {
481
- return openLiveStream(this.openStream, "/admin-portal/live/stream", options);
482
- }
483
- /**
484
- * The versions an admin editor of `merchantId` names in `If-Match`. A save
485
- * over a newer version is refused with `IR_16` (400), `error.data` a
486
- * `LiveChangedElsewhere`.
487
- *
488
- * `GET /admin-portal/live/versions`
489
- */
490
- async versions(merchantId, params, options) {
491
- return this.request("GET", "/admin-portal/live/versions", {
492
- query: {
493
- merchant_id: merchantId,
494
- entities: params.entities.join(","),
495
- profile_id: params.profile_id,
496
- record_id: params.record_id
497
- },
498
- ...options
499
- });
500
- }
501
- };
502
-
503
- // src/internal/resources/adminPortal.ts
504
- var AdminPortal = class {
505
- constructor(request) {
506
- this.request = request;
507
- }
508
- /** Read refund treatment and the scope supplying its effective value. */
509
- async getRefundVolume(merchantId, query = {}) {
510
- return this.request(
511
- "GET",
512
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/refund-volume`,
513
- {
514
- query: { ...query }
515
- }
516
- );
517
- }
518
- /** Change future monthly tier snapshots; existing snapshots and statement lines retain their prices. */
519
- async updateRefundVolume(merchantId, body, query = {}) {
520
- return this.request(
521
- "PUT",
522
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/refund-volume`,
523
- {
524
- query: { ...query },
525
- body
526
- }
527
- );
528
- }
529
- /** Read whether refunds return their share of the platform fee, and the scope supplying it. */
530
- async getPlatformFeeReturn(merchantId, query = {}) {
531
- return this.request(
532
- "GET",
533
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/platform-fee-return`,
534
- {
535
- query: { ...query }
536
- }
537
- );
538
- }
539
- /** Change the fee return for refunds that succeed from now on; earlier refunds keep their decision. */
540
- async updatePlatformFeeReturn(merchantId, body, query = {}) {
541
- return this.request(
542
- "PUT",
543
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/platform-fee-return`,
544
- {
545
- query: { ...query },
546
- body
547
- }
548
- );
549
- }
550
- /** What each successful refund of one payment returned of the platform fee. */
551
- async listPaymentPlatformFeeReturns(merchantId, paymentId) {
552
- return this.request(
553
- "GET",
554
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/transactions/${encodeURIComponent(paymentId)}/platform-fee-returns`
555
- );
556
- }
557
- /**
558
- * The deployment's merchant roles: shared roles, the roles defined in code,
559
- * and every merchant's own custom roles. `GET /admin-portal/merchant-roles`
560
- */
561
- async listSharedRoles() {
562
- return this.request("GET", "/admin-portal/merchant-roles");
563
- }
564
- /** `GET /admin-portal/merchant-roles/{roleId}` */
565
- async getSharedRole(roleId) {
566
- return this.request("GET", `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}`);
567
- }
568
- /**
569
- * Define a role once and offer it to every merchant, or to the ones listed.
570
- * Offering never assigns it. `POST /admin-portal/merchant-roles`
571
- */
572
- async createSharedRole(body) {
573
- return this.request("POST", "/admin-portal/merchant-roles", { body });
574
- }
575
- /**
576
- * What a change would do, without writing anything. Apply it with
577
- * `updateSharedRole` and the `version` this returns.
578
- * `POST /admin-portal/merchant-roles/{roleId}/preview`
579
- */
580
- async previewSharedRole(roleId, change) {
581
- return this.request(
582
- "POST",
583
- `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}/preview`,
584
- { body: change }
585
- );
586
- }
587
- /**
588
- * Apply a reviewed change. A change that takes access away needs
589
- * `acknowledge_sign_out` and signs out every holder.
590
- * `PUT /admin-portal/merchant-roles/{roleId}`
591
- */
592
- async updateSharedRole(roleId, body) {
593
- return this.request("PUT", `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}`, {
594
- body
595
- });
596
- }
597
- /** `POST /admin-portal/merchant-roles/{roleId}/retire/preview` */
598
- async previewRetireSharedRole(roleId, body = {}) {
599
- return this.request(
600
- "POST",
601
- `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}/retire/preview`,
602
- { body }
603
- );
604
- }
605
- /**
606
- * Retire a shared role, moving its holders to the replacement.
607
- * `POST /admin-portal/merchant-roles/{roleId}/retire`
608
- */
609
- async retireSharedRole(roleId, body) {
610
- return this.request(
611
- "POST",
612
- `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}/retire`,
613
- { body }
614
- );
615
- }
616
- /**
617
- * Merchant-specific roles whose holders could move to this shared role, and
618
- * what each move would change. `GET /admin-portal/merchant-roles/{roleId}/consolidation`
619
- */
620
- async sharedRoleConsolidationCandidates(roleId) {
621
- return this.request(
622
- "GET",
623
- `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}/consolidation`
624
- );
625
- }
626
- /** `POST /admin-portal/merchant-roles/{roleId}/consolidate` */
627
- async consolidateIntoSharedRole(roleId, body) {
628
- return this.request(
629
- "POST",
630
- `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}/consolidate`,
631
- { body }
632
- );
633
- }
634
- /**
635
- * One page of merchants. Without `sort_by` the caller's favorite merchants
636
- * come first; with one, favorites are not moved. Several `billing_status`
637
- * values match a merchant in any of them. `GET /admin-portal/customers`
638
- */
639
- async listCustomers(params) {
640
- return this.request("GET", "/admin-portal/customers", {
641
- query: csvQuery(params, ["billing_status"])
642
- });
643
- }
644
- async getCustomer(customerId) {
645
- return this.request("GET", `/admin-portal/customers/${encodeURIComponent(customerId)}`);
646
- }
647
- async listTransactions(params) {
648
- const query = transactionListQuery(params);
649
- return this.request("GET", "/admin-portal/transactions", {
650
- query
651
- });
652
- }
653
- /**
654
- * Persons of every merchant account, connected accounts included, or of the
655
- * one merchant named in `merchant_id`. Each row is one merchant's person
656
- * and names that merchant; persons of two merchants are never merged,
657
- * whatever they share. `search` is matched at every merchant listed.
658
- *
659
- * A `limit` outside 1 to 100, a `search` longer than 320 characters, or
660
- * `sort_by: 'captured'` without a three-letter `captured_currency` is a
661
- * `400`.
662
- *
663
- * `GET /admin-portal/persons`
664
- */
665
- async listPersonsAcrossMerchants(params) {
666
- if (params === void 0) {
667
- return this.request("GET", "/admin-portal/persons");
668
- }
669
- return this.request("GET", "/admin-portal/persons", { query: params });
670
- }
671
- /**
672
- * One page of ONE merchant's persons: the same query and response as the
673
- * merchant-facing `persons.list`, admin-authenticated. A person stays one
674
- * merchant's; `listPersonsAcrossMerchants` lists several merchants' side by
675
- * side.
676
- *
677
- * `GET /admin-portal/persons/{merchantId}`
678
- */
679
- async listPersons(merchantId, params) {
680
- return this.request("GET", adminPersons(merchantId), {
681
- query: params
682
- });
683
- }
684
- /**
685
- * One person of a merchant, as the merchant-facing `persons.retrieve`
686
- * returns it.
687
- *
688
- * `GET /admin-portal/persons/{merchantId}/{personId}`
689
- */
690
- async getPerson(merchantId, personId, params) {
691
- return this.request("GET", `${adminPersons(merchantId)}/${encodeURIComponent(personId)}`, {
692
- query: params
693
- });
694
- }
695
- /**
696
- * The persons of a merchant that may be the same person as this one, as
697
- * the merchant-facing `persons.related` returns them.
698
- *
699
- * `GET /admin-portal/persons/{merchantId}/{personId}/related`
700
- */
701
- async listRelatedPersons(merchantId, personId, params) {
702
- return this.request(
703
- "GET",
704
- `${adminPersons(merchantId)}/${encodeURIComponent(personId)}/related`,
705
- { query: params }
706
- );
707
- }
708
- /**
709
- * The person of one payment of a merchant, as the merchant-facing
710
- * `persons.ofPayment` returns it.
711
- *
712
- * `GET /admin-portal/persons/{merchantId}/payment/{paymentId}`
713
- */
714
- async getPaymentPerson(merchantId, paymentId, params) {
715
- return this.request(
716
- "GET",
717
- `${adminPersons(merchantId)}/payment/${encodeURIComponent(paymentId)}`,
718
- { query: params }
719
- );
720
- }
721
- /**
722
- * Every staff flag of a person, active and removed, newest first, with
723
- * those of the persons merged into it. A merged person reads as the person
724
- * it merged into. Staff only; a flag changes no payment.
725
- *
726
- * `GET /admin-portal/persons/{merchantId}/{personId}/flags`
727
- */
728
- async listPersonFlags(merchantId, personId) {
729
- return this.request("GET", personFlags(merchantId, personId));
730
- }
731
- /**
732
- * Flags a person for staff. The flag changes no payment and the merchant
733
- * never sees it. A merged person's flag goes on the person it merged into.
734
- * A person already flagged is refused with `IR_38` (400); a staff role that
735
- * may not flag buyers gets a `403`.
736
- *
737
- * `POST /admin-portal/persons/{merchantId}/{personId}/flags`
738
- */
739
- async flagPerson(merchantId, personId, body) {
740
- return this.request("POST", personFlags(merchantId, personId), { body });
741
- }
742
- /**
743
- * Replaces an active flag's reason and note at the `version` read. A
744
- * colleague's newer change, or a removal, since that read is refused with
745
- * `IR_16` (400) rather than overwritten.
746
- *
747
- * `PUT /admin-portal/persons/{merchantId}/{personId}/flags/{flagId}`
748
- */
749
- async updatePersonFlag(merchantId, personId, flagId, body) {
750
- return this.request(
751
- "PUT",
752
- `${personFlags(merchantId, personId)}/${encodeURIComponent(flagId)}`,
753
- { body }
754
- );
755
- }
756
- /**
757
- * Removes a flag at the `version` read: the flag stops and stays in the
758
- * history with who removed it and when, which is what this answers. A
759
- * colleague's change since that read is refused with `IR_16` (400).
760
- *
761
- * `DELETE /admin-portal/persons/{merchantId}/{personId}/flags/{flagId}?version=`
762
- */
763
- async removePersonFlag(merchantId, personId, flagId, version) {
764
- return this.request(
765
- "DELETE",
766
- `${personFlags(merchantId, personId)}/${encodeURIComponent(flagId)}`,
767
- { query: { version } }
768
- );
769
- }
770
- /**
771
- * One page of a merchant's persons with an active flag, newest flag first.
772
- * A flag on a merged person is listed under the person it merged into, and
773
- * a person with two active flags is listed once, with the newer one.
774
- *
775
- * `GET /admin-portal/persons/{merchantId}/flagged`
776
- */
777
- async listFlaggedPersons(merchantId, params) {
778
- if (params === void 0) {
779
- return this.request("GET", `${adminPersons(merchantId)}/flagged`);
780
- }
781
- return this.request("GET", `${adminPersons(merchantId)}/flagged`, {
782
- query: params
783
- });
784
- }
785
- /**
786
- * Whether each of 1 to 100 persons of a merchant is flagged, one answer
787
- * per asked person in the order asked. A merged person answers for the
788
- * person it merged into; an unknown person is not flagged. No id, or more
789
- * than 100, is a `400`.
790
- *
791
- * `GET /admin-portal/persons/{merchantId}/flag-status?person_ids=`
792
- */
793
- async personFlagStatus(merchantId, personIds) {
794
- return this.request("GET", `${adminPersons(merchantId)}/flag-status`, {
795
- query: { person_ids: personIds.join(",") }
796
- });
797
- }
798
- /**
799
- * Persons flagged by staff at other merchants who share an email address
800
- * or a device id with this person's 100 most recent payments, each once,
801
- * newest flag first. A card, an IP address or device traits never match.
802
- * A hint only: the persons stay separate and nothing is written.
803
- *
804
- * `GET /admin-portal/persons/{merchantId}/{personId}/flagged-elsewhere`
805
- */
806
- async listFlaggedElsewhere(merchantId, personId) {
807
- return this.request(
808
- "GET",
809
- `${adminPersons(merchantId)}/${encodeURIComponent(personId)}/flagged-elsewhere`
810
- );
811
- }
812
- async exportTransactions(params, options) {
813
- return runExport(
814
- this.request,
815
- "GET",
816
- "/admin-portal/transactions/export",
817
- { query: transactionListQuery(params) },
818
- options
819
- );
820
- }
821
- async exportTransactionLines(params, options) {
822
- return runExport(
823
- this.request,
824
- "GET",
825
- "/admin-portal/transactions/export/lines",
826
- { query: transactionListQuery(params) },
827
- options
828
- );
829
- }
830
- /**
831
- * Full detail for a single transaction of ANY merchant — the same
832
- * `PaymentResponse` the merchant `payments.retrieve` returns, with what only
833
- * staff see beside it (`person_flagged`, `flagged_elsewhere`). Admin-scoped:
834
- * the JWT (or admin API key) does not need to belong to the payment's
835
- * merchant; the backend resolves the owning merchant and reads it read-only
836
- * (no connector sync).
837
- */
838
- async getTransaction(paymentId) {
839
- return this.request("GET", `/admin-portal/transactions/${encodeURIComponent(paymentId)}`);
840
- }
841
- /**
842
- * A payment's buyer risk evaluations, newest first, across every merchant:
843
- * the same answer as the merchant's `payments.buyerRisk()`.
844
- *
845
- * `GET /admin-portal/transactions/{paymentId}/buyer-risk`
846
- */
847
- async getTransactionBuyerRisk(paymentId) {
848
- return this.request(
849
- "GET",
850
- `/admin-portal/transactions/${encodeURIComponent(paymentId)}/buyer-risk`
851
- );
852
- }
853
- /**
854
- * A payment's connection checks, newest first, across every merchant: the
855
- * same answer as the merchant's `identityVerifications.connectionChecks()`.
856
- *
857
- * `GET /admin-portal/transactions/{paymentId}/connection-checks`
858
- */
859
- async getTransactionConnectionChecks(paymentId) {
860
- return this.request(
861
- "GET",
862
- `/admin-portal/transactions/${encodeURIComponent(paymentId)}/connection-checks`
863
- );
864
- }
865
- /**
866
- * Every account that rates buyer addresses, with its checks, recorded and
867
- * not recorded, and error rate over the last `window_days` days.
868
- *
869
- * `GET /admin-portal/connection-checks`
870
- */
871
- async getConnectionCheckUsage() {
872
- return this.request("GET", "/admin-portal/connection-checks");
873
- }
874
- /** The same frozen purchase lines available on the merchant payment read. */
875
- async getTransactionProductLines(paymentId) {
876
- return this.request(
877
- "GET",
878
- `/admin-portal/transactions/${encodeURIComponent(paymentId)}/product-lines`
879
- );
880
- }
881
- /**
882
- * Per-attempt history (retries across connectors, decline reasons) for a
883
- * single transaction of ANY merchant.
884
- */
885
- async getTransactionAttempts(paymentId) {
886
- return this.request(
887
- "GET",
888
- `/admin-portal/transactions/${encodeURIComponent(paymentId)}/attempts`
889
- );
890
- }
891
- /**
892
- * Status timeline (intent / attempt / refund / dispute transitions) for a
893
- * single transaction of ANY merchant. `complete: false` marks timelines
894
- * partially reconstructed from current records.
895
- */
896
- async getTransactionStatusHistory(paymentId) {
897
- return this.request(
898
- "GET",
899
- `/admin-portal/transactions/${encodeURIComponent(paymentId)}/status-history`
900
- );
901
- }
902
- /**
903
- * The traffic of a transaction of ANY merchant: provider requests, provider
904
- * webhooks and shop webhooks, oldest first, without payloads. Same shape as
905
- * `payments.listLogs`.
906
- */
907
- async getTransactionLogs(paymentId) {
908
- return this.request("GET", `/admin-portal/transactions/${encodeURIComponent(paymentId)}/logs`);
909
- }
910
- /** One provider request of a transaction of ANY merchant, with its masked payloads. */
911
- async getTransactionLogConnectorCall(paymentId, callId) {
912
- return this.request(
913
- "GET",
914
- `/admin-portal/transactions/${encodeURIComponent(paymentId)}/logs/connector-calls/${encodeURIComponent(callId)}`
915
- );
916
- }
917
- /** One provider webhook of a transaction of ANY merchant, with its masked headers and body. */
918
- async getTransactionLogIncomingWebhook(paymentId, eventId) {
919
- return this.request(
920
- "GET",
921
- `/admin-portal/transactions/${encodeURIComponent(paymentId)}/logs/incoming-webhooks/${encodeURIComponent(eventId)}`
922
- );
923
- }
924
- /** Every delivery attempt of one shop webhook of a transaction of ANY merchant. */
925
- async getTransactionLogOutgoingWebhook(paymentId, initialAttemptId) {
926
- return this.request(
927
- "GET",
928
- `/admin-portal/transactions/${encodeURIComponent(paymentId)}/logs/outgoing-webhooks/${encodeURIComponent(initialAttemptId)}`
929
- );
930
- }
931
- /**
932
- * The invoices and credit notes issued for a transaction of ANY merchant,
933
- * each its own row, newest first. At most 100 per page.
934
- * `GET /admin-portal/transactions/{paymentId}/invoices`
935
- */
936
- async getTransactionInvoices(paymentId, params) {
937
- return this.request(
938
- "GET",
939
- `/admin-portal/transactions/${encodeURIComponent(paymentId)}/invoices`,
940
- { query: params === void 0 ? void 0 : { ...params } }
941
- );
942
- }
943
- /**
944
- * One invoice of ANY merchant as a PDF: the stored copy of an issued
945
- * document, a live render of a draft, the snapshot under a VOIDED banner for
946
- * a voided one.
947
- * `GET /admin-portal/invoices/{invoiceId}/pdf`
948
- */
949
- async downloadInvoicePdf(invoiceId) {
950
- return this.request("GET", `/admin-portal/invoices/${encodeURIComponent(invoiceId)}/pdf`, {
951
- responseType: "blob"
952
- });
953
- }
954
- /**
955
- * Refunds for a single transaction of ANY merchant.
956
- */
957
- async getTransactionRefunds(paymentId) {
958
- return this.request(
959
- "GET",
960
- `/admin-portal/transactions/${encodeURIComponent(paymentId)}/refunds`
961
- );
962
- }
963
- /**
964
- * The refund requests buyers raised from the customer portal about a single
965
- * transaction of ANY merchant, newest first, one page at a time
966
- * (`total_count` counts them all). Read-only.
967
- * `GET /admin-portal/transactions/{paymentId}/refund-requests`
968
- */
969
- async getTransactionRefundRequests(paymentId, params) {
970
- return this.request(
971
- "GET",
972
- `/admin-portal/transactions/${encodeURIComponent(paymentId)}/refund-requests`,
973
- { query: params === void 0 ? void 0 : { ...params } }
974
- );
975
- }
976
- /**
977
- * Refunds of ANY merchant mirrored from a connector webhook at a
978
- * non-terminal status that no sync can advance. Newest first unless
979
- * `sort_by` says otherwise. Several `connector`, `status` or `sync_reason`
980
- * values match a refund with any of them.
981
- */
982
- async listUnresolvedRefunds(params) {
983
- return this.request("GET", "/admin-portal/refunds/unresolved", {
984
- query: csvQuery(params, ["connector", "status", "sync_reason"])
985
- });
986
- }
987
- // --- Buyer evidence review --------------------------------------------------
988
- /**
989
- * DeloPay's review queue of buyers' evidence, the nearest target first
990
- * unless `sort_by` says otherwise, across merchants unless `merchant_id` or
991
- * `profile_id` narrows it. Several `state` values match a case in any of
992
- * them.
993
- */
994
- async listBuyerEvidence(params) {
995
- return this.request("GET", "/admin-portal/buyer-evidence", {
996
- query: csvQuery(params, ["state"])
997
- });
998
- }
999
- /** Chargeback prevention connections across merchants, or of one merchant. */
1000
- async listChargebackPreventionConnections(params) {
1001
- return this.request("GET", "/admin-portal/chargeback-prevention/connections", {
1002
- query: params
1003
- });
1004
- }
1005
- /** Chargeback prevention cases across merchants, or of one merchant. */
1006
- async listChargebackPreventionCases(params) {
1007
- const { merchant_id, ...filters } = params ?? {};
1008
- return this.request("GET", "/admin-portal/chargeback-prevention/cases", {
1009
- query: { ...preventionCaseQuery(filters), ...merchant_id ? { merchant_id } : {} }
1010
- });
1011
- }
1012
- /** Chargeback prevention refund rules across merchants, or of one merchant. */
1013
- async listChargebackPreventionRefundRules(params) {
1014
- return this.request("GET", "/admin-portal/chargeback-prevention/refund-rules", {
1015
- query: params
1016
- });
1017
- }
1018
- /**
1019
- * Turn a merchant's refund rule off. Its settings are kept, and what it
1020
- * already did is still settled and reported.
1021
- */
1022
- async stopChargebackPreventionRefundRule(body) {
1023
- return this.request("POST", "/admin-portal/chargeback-prevention/refund-rules/disable", {
1024
- body
1025
- });
1026
- }
1027
- /** What refund rules did, across merchants or for one merchant. */
1028
- async listChargebackPreventionRefundActions(params) {
1029
- return this.request("GET", "/admin-portal/chargeback-prevention/refund-actions", {
1030
- query: params
1031
- });
1032
- }
1033
- /** One chargeback prevention case of any merchant, with its history. */
1034
- async getChargebackPreventionCase(caseId) {
1035
- return this.request(
1036
- "GET",
1037
- `/admin-portal/chargeback-prevention/cases/${encodeURIComponent(caseId)}`
1038
- );
1039
- }
1040
- /** One case's evidence with every step and file, internal ones included. */
1041
- async getBuyerEvidence(evidenceId) {
1042
- return this.request("GET", `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}`);
1043
- }
1044
- /** Download a file of a case's evidence. */
1045
- async downloadBuyerEvidenceFile(evidenceId, fileId) {
1046
- return this.request(
1047
- "GET",
1048
- `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/files/${encodeURIComponent(fileId)}`,
1049
- { responseType: "blob" }
1050
- );
1051
- }
1052
- /**
1053
- * Ask the buyer for more, by a cut-off. Refused once a result has closed
1054
- * the review.
1055
- */
1056
- async requestBuyerEvidenceInformation(evidenceId, params) {
1057
- return this.request(
1058
- "POST",
1059
- `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/information-requests`,
1060
- { body: params }
1061
- );
1062
- }
1063
- /** An answer the buyer sees. */
1064
- async replyToBuyerEvidence(evidenceId, params) {
1065
- return this.request(
1066
- "POST",
1067
- `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/replies`,
1068
- { body: params }
1069
- );
1070
- }
1071
- /**
1072
- * Record the result, which closes the review. It never refunds a payment
1073
- * and never decides a dispute with the payment provider.
1074
- */
1075
- async reviewBuyerEvidence(evidenceId, params) {
1076
- return this.request(
1077
- "POST",
1078
- `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/reviews`,
1079
- { body: params }
1080
- );
1081
- }
1082
- /** Move the buyer's cut-off, with a reason the buyer sees. */
1083
- async moveBuyerEvidenceDeadline(evidenceId, params) {
1084
- return this.request(
1085
- "PUT",
1086
- `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/deadline`,
1087
- { body: params }
1088
- );
1089
- }
1090
- /** Make a user responsible for the review: an id, `me`, or `null` for nobody. */
1091
- async assignBuyerEvidence(evidenceId, params) {
1092
- return this.request(
1093
- "PUT",
1094
- `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/reviewer`,
1095
- { body: params }
1096
- );
1097
- }
1098
- /** An internal note, never shown to the buyer. */
1099
- async noteBuyerEvidence(evidenceId, params) {
1100
- return this.request(
1101
- "POST",
1102
- `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/notes`,
1103
- { body: params }
1104
- );
1105
- }
1106
- async analytics(params) {
1107
- return this.request("GET", "/admin-portal/analytics", {
1108
- query: params
1109
- });
1110
- }
1111
- async overviewStats() {
1112
- return this.request("GET", "/admin-portal/overview-stats");
1113
- }
1114
- async paymentAnalytics(params) {
1115
- return this.request("GET", "/admin-portal/payment-analytics", {
1116
- query: params
1117
- });
1118
- }
1119
- /**
1120
- * One drill level of the analytics dashboard: the scope's daily series +
1121
- * processor mix and its direct children's series. Range / metric / donut
1122
- * toggles apply client-side; only a drill (passing merchant_id / project_id
1123
- * / shop_id) fetches the next level.
1124
- */
1125
- async analyticsScope(params) {
1126
- return this.request("GET", "/admin-portal/analytics/scope", {
1127
- query: params
1128
- });
1129
- }
1130
- /**
1131
- * The operators' own analytics exclusions, oldest first, with the payments
1132
- * each one matched in the lookback window. They change the admin's
1133
- * analytics only; a merchant's own rules never change the admin's figures.
1134
- * `GET /admin-portal/analytics/exclusions`
1135
- */
1136
- async listAnalyticsExclusions() {
1137
- return this.request("GET", "/admin-portal/analytics/exclusions");
1138
- }
1139
- /**
1140
- * Write a new operator rule. Omitting `merchant_id` applies it to every
1141
- * merchant; omitting `surfaces` means **all five**, not none.
1142
- * `POST /admin-portal/analytics/exclusions`
1143
- */
1144
- async createAnalyticsExclusion(rule) {
1145
- return this.request("POST", "/admin-portal/analytics/exclusions", { body: rule });
1146
- }
1147
- /**
1148
- * Replace an operator rule **completely** — send the whole rule, including
1149
- * an explicit `null` for every optional field you mean to clear.
1150
- * `PUT /admin-portal/analytics/exclusions/{id}`
1151
- */
1152
- async updateAnalyticsExclusion(id, rule) {
1153
- return this.request("PUT", `/admin-portal/analytics/exclusions/${encodeURIComponent(id)}`, {
1154
- body: rule
1155
- });
1156
- }
1157
- /**
1158
- * Delete an operator rule. Returns the rule as it was.
1159
- * `DELETE /admin-portal/analytics/exclusions/{id}`
1160
- */
1161
- async deleteAnalyticsExclusion(id) {
1162
- return this.request("DELETE", `/admin-portal/analytics/exclusions/${encodeURIComponent(id)}`);
1163
- }
1164
- /**
1165
- * A merchant's own exclusions, read-only, each with the operator rule that
1166
- * already holds it (`admin_rule_id`).
1167
- * `GET /admin-portal/analytics/exclusions/merchant/{merchant_id}`
1168
- */
1169
- async listMerchantAnalyticsExclusions(merchantId) {
1170
- return this.request(
1171
- "GET",
1172
- `/admin-portal/analytics/exclusions/merchant/${encodeURIComponent(merchantId)}`
1173
- );
1174
- }
1175
- /**
1176
- * Copy some of a merchant's rules into the operators' rules, each scoped to
1177
- * that merchant. A copy is independent of its source; a rule an operator
1178
- * rule already holds is skipped with a reason.
1179
- * `POST /admin-portal/analytics/exclusions/copy`
1180
- */
1181
- async copyAnalyticsExclusions(body) {
1182
- return this.request("POST", "/admin-portal/analytics/exclusions/copy", { body });
1183
- }
1184
- /**
1185
- * Shop comparison: one series per shop over one window, with whole-window
1186
- * and previous-window totals. With `merchant_id`, that merchant's shops;
1187
- * without it, the top `limit` (default 50) shops of every merchant by
1188
- * successful volume, the rest summed into `others`. Same contract as the
1189
- * merchant surface's `analytics.shops`. `GET /admin-portal/analytics/shops`
1190
- */
1191
- async analyticsShops(params = {}) {
1192
- const query = params;
1193
- return this.request("GET", "/admin-portal/analytics/shops", {
1194
- query
1195
- });
1196
- }
1197
- /**
1198
- * Every shop's device intelligence account, with its merchant's and its own
1199
- * name and its assessments per environment over the last `days` days: counts
1200
- * and error rate, failures by reason, finished assessments per day and
1201
- * provider, the last recorded assessment, browser payments against assessed
1202
- * ones, and the payments held for a missing assessment. The error rate counts
1203
- * finished assessments: one still running and a payment naming no buyer are
1204
- * not errors.
1205
- * `GET /admin-portal/device-intelligence`
1206
- */
1207
- async deviceIntelligenceUsage(params = {}) {
1208
- return this.request("GET", "/admin-portal/device-intelligence", {
1209
- query: params
1210
- });
1211
- }
1212
- /**
1213
- * The payments behind one number of the device intelligence overview, one
1214
- * page at a time: the assessments it counts, the payments held for a missing
1215
- * assessment, or the browser payments without a device signal. With the same
1216
- * `days` a list's `total` is the count it was opened from. A row carries
1217
- * nothing about the buyer.
1218
- * `GET /admin-portal/device-intelligence/payments`
1219
- */
1220
- async deviceIntelligencePayments(params = {}) {
1221
- return this.request("GET", "/admin-portal/device-intelligence/payments", {
1222
- query: params
1223
- });
1224
- }
1225
- /**
1226
- * PSP analytics across merchants: the merchant surface's
1227
- * `analytics.connectors`, with `merchant_id` optional (omitted, every
1228
- * merchant, broken down by merchant) and each account's merchant named.
1229
- * `GET /admin-portal/analytics/connectors`
1230
- */
1231
- async analyticsConnectors(params = {}) {
1232
- const query = params;
1233
- return this.request("GET", "/admin-portal/analytics/connectors", {
1234
- query
1235
- });
1236
- }
1237
- /**
1238
- * Device analytics over the canonical client-context observation per
1239
- * payment, rooted at all merchants and drillable via `merchant_id` /
1240
- * `project_id` / `shop_id` like `analyticsScope`. Answers 200 with
1241
- * `enabled: false` when the client-context optimisation-use switch is off.
1242
- */
1243
- async analyticsDevices(params) {
1244
- return this.request("GET", "/admin-portal/analytics/devices", {
1245
- query: params
1246
- });
1247
- }
1248
- /**
1249
- * Geo analytics over the canonical client-context observation per payment,
1250
- * rooted at all merchants. `mode` selects the location claim (`ip` default,
1251
- * `billing`).
1252
- */
1253
- async analyticsGeo(params) {
1254
- return this.request("GET", "/admin-portal/analytics/geo", {
1255
- query: params
1256
- });
1257
- }
1258
- /**
1259
- * The recent payments behind one clicked geo target (map country/city or
1260
- * local-hours heatmap cell), rooted at all merchants. Capped at 50 rows,
1261
- * newest first, with the full match count alongside.
1262
- */
1263
- async analyticsGeoTransactions(params) {
1264
- return this.request("GET", "/admin-portal/analytics/geo/transactions", {
1265
- query: params
1266
- });
1267
- }
1268
- /**
1269
- * The recent payments behind one clicked device target (browser/platform
1270
- * family, device-model label or device class), rooted at all merchants.
1271
- * 50 rows per page (`offset` for the next page), newest first.
1272
- */
1273
- async analyticsDeviceTransactions(params) {
1274
- return this.request("GET", "/admin-portal/analytics/devices/transactions", {
1275
- // A discriminated union carries no index signature, so the widening
1276
- // goes via `unknown` — the union is the point.
1277
- query: params
1278
- });
1279
- }
1280
- /**
1281
- * The payments behind one clicked element of the admin payments dashboard
1282
- * (processor / method slice, outcome segment, series bucket or breakdown
1283
- * row), rooted at all merchants. Same contract as the merchant surface's
1284
- * `analytics.scopeTransactions`. `GET /admin-portal/analytics/scope/transactions`
1285
- */
1286
- async analyticsScopeTransactions(params) {
1287
- return this.request("GET", "/admin-portal/analytics/scope/transactions", {
1288
- query: params
1289
- });
1290
- }
1291
- /**
1292
- * Subscription analytics over `subscription` and `invoice`, rooted at all
1293
- * merchants and drillable via `merchant_id` / `project_id` / `shop_id` like
1294
- * `analyticsScope`. The `children` block at the root is the merchant
1295
- * breakdown — there is no separate endpoint for it.
1296
- *
1297
- * Half the figures are **stocks** (a snapshot at the window's end, not a sum
1298
- * over it), so `est_monthly_volume_usd` and `active` can match across a
1299
- * 7-day and a 30-day window while `billed_volume_usd` does not. Day
1300
- * granularity only.
1301
- */
1302
- async analyticsSubscriptions(params) {
1303
- return this.request("GET", "/admin-portal/analytics/subscriptions", {
1304
- query: params
1305
- });
1306
- }
1307
- /**
1308
- * The billing cycles behind one clicked element of the admin subscription
1309
- * dashboard: an invoice outcome, a processor slice on either axis, a plan
1310
- * row, a subscription status, a movement component, a series bucket or a
1311
- * breakdown row. 50 rows per page (`offset` for the next), newest first,
1312
- * with the full match count alongside.
1313
- *
1314
- * A cycle that never reached a payment is listed too — that is what "still
1315
- * unpaid" means — and carries its invoice id as `payment_id` with
1316
- * `invoice_id` set to the same value.
1317
- */
1318
- async analyticsSubscriptionsList(params) {
1319
- return this.request("GET", "/admin-portal/analytics/subscriptions/list", {
1320
- // A discriminated union carries no index signature, so the widening
1321
- // goes via `unknown` — the union is the point, and the query builder
1322
- // only ever reads own enumerable keys.
1323
- query: params
1324
- });
1325
- }
1326
- /**
1327
- * How accurate buyer risk scores were in a period, against what later
1328
- * happened to the payments: fraud, clean, pending and never charged, how
1329
- * well the flagged bands caught the fraud, each band and signal, and the
1330
- * buyers the score stopped who later paid with no fraud. Stores nothing.
1331
- * `GET /admin-portal/buyer-risk/accuracy`
1332
- */
1333
- async buyerRiskAccuracy(params = {}) {
1334
- return this.request("GET", "/admin-portal/buyer-risk/accuracy", {
1335
- query: params
1336
- });
1337
- }
1338
- /**
1339
- * The payments behind one number of {@link AdminPortal.buyerRiskAccuracy}:
1340
- * the payments a signal fired on, those in a band, a flagged × outcome cell,
1341
- * the interventions or the false declines. Paged, sorted and searchable
1342
- * like the analytics drills, and answered in the same shape, with each
1343
- * row's band, score, outcome and applied action.
1344
- * `GET /admin-portal/buyer-risk/accuracy/payments`
1345
- */
1346
- async buyerRiskAccuracyPayments(params = {}) {
1347
- return this.request("GET", "/admin-portal/buyer-risk/accuracy/payments", {
1348
- query: params
1349
- });
1350
- }
1351
- /**
1352
- * Platform billing dashboard: total balance across all ledger accounts (+
1353
- * the net change), top-ups, fees collected, and the day-by-day ledger flow.
1354
- * All amounts are in USD minor units.
1355
- */
1356
- async ledgerAnalytics(params) {
1357
- return this.request("GET", "/admin-portal/ledger-analytics", {
1358
- query: params
1359
- });
1360
- }
1361
- /**
1362
- * Billing profiles no operator listing can reach, and the accounts that may
1363
- * have taken one over.
1364
- *
1365
- * Deleting a merchant account leaves its billing profile — with its
1366
- * balance, its Stripe customer and its saved card — behind, and the
1367
- * Merchants listing enumerates merchant accounts, so such a profile is
1368
- * absent from every operator surface rather than flagged on one. This reads
1369
- * from the billing side instead, so it finds them.
1370
- *
1371
- * Both lists come back complete rather than paged: the healthy answer is two
1372
- * empty arrays, and a truncated answer to *"is the set empty"* would read as
1373
- * a clean bill of health.
1374
- *
1375
- * `adoption_candidates` are candidates, not findings — confirm a row against
1376
- * the audit log before acting on it.
1377
- */
1378
- async orphanedBillingProfiles() {
1379
- return this.request("GET", "/admin-portal/billing/orphaned-profiles");
1380
- }
1381
- /**
1382
- * Retrieve a merchant account via the admin portal. Unlike
1383
- * `merchantAccounts.retrieve`, this route accepts an admin JWT (or admin API
1384
- * key) and does not require the JWT to be scoped to the target merchant.
1385
- */
1386
- async retrieveAccount(merchantId) {
1387
- return this.request("GET", `/admin-portal/accounts/${encodeURIComponent(merchantId)}`);
1388
- }
1389
- /**
1390
- * Update a merchant account via the admin portal. Authenticated via admin JWT
1391
- * or admin API key.
1392
- */
1393
- async updateAccount(merchantId, params) {
1394
- return this.request("POST", `/admin-portal/accounts/${encodeURIComponent(merchantId)}`, {
1395
- body: params
1396
- });
1397
- }
1398
- /**
1399
- * Delete a merchant account via the admin portal. Authenticated via admin JWT
1400
- * or admin API key.
1401
- */
1402
- async deleteAccount(merchantId) {
1403
- return this.request("DELETE", `/admin-portal/accounts/${encodeURIComponent(merchantId)}`);
1404
- }
1405
- /**
1406
- * Create a brand-new user attached to the given merchant. The user is
1407
- * marked `is_verified = true` so the admin can hand off credentials
1408
- * immediately — no email round-trip is sent.
1409
- */
1410
- async createUserForMerchant(customerId, body) {
1411
- return this.request("POST", `/admin-portal/customers/${encodeURIComponent(customerId)}/users`, {
1412
- body
1413
- });
1414
- }
1415
- /**
1416
- * Edit a user record. Any subset of fields may be supplied. `role_id`
1417
- * requires `merchant_id`. `password` triggers a password reset (validated
1418
- * against signup policy + JWT blacklist). `reset_2fa` clears TOTP state
1419
- * so the user re-enrolls on next login. `is_active` supports both
1420
- * directions: false soft-disables, true reactivates a soft-disabled user.
1421
- *
1422
- * Throws a `400` with `code === 'UR_66'` when the change would leave a
1423
- * merchant with no administrator — `is_active: false` or `is_verified:
1424
- * false` on, or a `role_id` demoting, the only active user whose role can
1425
- * manage that merchant's users. Nothing is written. `error.data` carries a
1426
- * {@link LastAdministratorRefusal} naming the merchant and which change was
1427
- * refused; render that rather than the generic message.
1428
- */
1429
- async updateUser(userId, body) {
1430
- return this.request("PATCH", `/admin-portal/users/${encodeURIComponent(userId)}`, { body });
1431
- }
1432
- /**
1433
- * One user's account and its health: whether it is active and verified,
1434
- * whether two-factor authentication is set up, when the password last
1435
- * changed, the linked single sign-on providers, the newest successful and
1436
- * failed sign-in, when the user was last seen and how many sessions are
1437
- * live. Lists every membership the user holds in this tenant, invitations
1438
- * and expired ones included, with its role and status. Never returns a
1439
- * credential. `GET /admin-portal/users/{user_id}`
1440
- *
1441
- * Needs an internal role holding `ProfileUserRead`, or the admin API key.
1442
- * A user with no membership in this tenant is a `404`.
1443
- */
1444
- async getUser(userId) {
1445
- return this.request("GET", `/admin-portal/users/${encodeURIComponent(userId)}`);
1446
- }
1447
- /**
1448
- * One user's sign-in history (successes and failures, method, address,
1449
- * location and device), filtered, sorted and paged as
1450
- * `users.listLoginActivity` is. Same access and `404` rule as `getUser`.
1451
- * `GET /admin-portal/users/{user_id}/login-activity`
1452
- */
1453
- async listUserLoginActivity(userId, params) {
1454
- const path3 = `/admin-portal/users/${encodeURIComponent(userId)}/login-activity`;
1455
- if (params === void 0) {
1456
- return this.request("GET", path3);
1457
- }
1458
- return this.request("GET", path3, {
1459
- query: csvQuery(params, ["event_type", "auth_method"])
1460
- });
1461
- }
1462
- /**
1463
- * One user's live sessions: neither signed out nor expired. `is_current`
1464
- * marks the caller's own session only, when the caller looks at themselves.
1465
- * Same access and `404` rule as `getUser`.
1466
- * `GET /admin-portal/users/{user_id}/sessions`
1467
- */
1468
- async listUserSessions(userId) {
1469
- return this.request("GET", `/admin-portal/users/${encodeURIComponent(userId)}/sessions`);
1470
- }
1471
- /**
1472
- * End one session of the user: its token is refused on its next request.
1473
- * Needs `UsersManage`. Recorded in the audit log. A session that has
1474
- * already ended answers `revoked: false` and records nothing. A session of
1475
- * another user is a `404`, as an unknown id is.
1476
- * `POST /admin-portal/users/{user_id}/sessions/{session_id}/revoke`
1477
- */
1478
- async revokeUserSession(userId, sessionId) {
1479
- return this.request(
1480
- "POST",
1481
- `/admin-portal/users/${encodeURIComponent(userId)}/sessions/${encodeURIComponent(sessionId)}/revoke`
1482
- );
1483
- }
1484
- /**
1485
- * Sign the user out of every session and token, wherever they signed in.
1486
- * Needs `UsersManage`. The account stays active and the user can sign in
1487
- * again at once. Answers how many live sessions were ended. Recorded in the
1488
- * audit log. `POST /admin-portal/users/{user_id}/sessions/revoke-all`
1489
- */
1490
- async revokeAllUserSessions(userId) {
1491
- return this.request(
1492
- "POST",
1493
- `/admin-portal/users/${encodeURIComponent(userId)}/sessions/revoke-all`
1494
- );
1495
- }
1496
- /**
1497
- * Which checkout payment methods a member of `merchantId` may change.
1498
- * `GET /admin-portal/accounts/{merchant_id}/members/{user_id}/method-access`
1499
- *
1500
- * Any internal role may read it; `can_edit` is `false` for one without
1501
- * `UsersManage`. A user holding no role in the merchant is a 404 `UR_68`.
1502
- */
1503
- async getMemberMethodAccess(merchantId, userId) {
1504
- return this.request(
1505
- "GET",
1506
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/members/${encodeURIComponent(userId)}/method-access`
1507
- );
1508
- }
1509
- /**
1510
- * Limit a member of `merchantId` to some checkout payment methods, or give
1511
- * every method back. Needs `UsersManage`. Recorded in the merchant's audit
1512
- * log. `PUT /admin-portal/accounts/{merchant_id}/members/{user_id}/method-access`
1513
- */
1514
- async updateMemberMethodAccess(merchantId, userId, body) {
1515
- return this.request(
1516
- "PUT",
1517
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/members/${encodeURIComponent(userId)}/method-access`,
1518
- { body }
1519
- );
1520
- }
1521
- /**
1522
- * A member of `merchantId`'s permission overrides.
1523
- * `GET /admin-portal/accounts/{merchant_id}/members/{user_id}/permission-overrides`
1524
- *
1525
- * Any internal role may read them; `can_edit` is `false` for one without
1526
- * `UsersManage`. A user holding no role in the merchant is a 404 `UR_68`.
1527
- */
1528
- async getMemberPermissionOverrides(merchantId, userId) {
1529
- return this.request(
1530
- "GET",
1531
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/members/${encodeURIComponent(userId)}/permission-overrides`
1532
- );
1533
- }
1534
- /**
1535
- * Replace a member of `merchantId`'s permission overrides. Needs
1536
- * `UsersManage`; an operator is not limited by their own access. Recorded
1537
- * in the merchant's audit log and applied to the member's next request.
1538
- * `PUT /admin-portal/accounts/{merchant_id}/members/{user_id}/permission-overrides`
1539
- */
1540
- async updateMemberPermissionOverrides(merchantId, userId, body) {
1541
- return this.request(
1542
- "PUT",
1543
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/members/${encodeURIComponent(userId)}/permission-overrides`,
1544
- { body }
1545
- );
1546
- }
1547
- /**
1548
- * Soft-delete a user globally: deactivates the row, blacklists existing
1549
- * JWTs, and wipes credentials. Distinct from `deleteUserRole`, which
1550
- * removes a single role binding while leaving the user signed-in elsewhere.
1551
- *
1552
- * Throws the same `UR_66` as {@link updateUser} when the user is the last
1553
- * administrator of any merchant they belong to, with `route: 'delete'`.
1554
- */
1555
- async deleteUser(userId) {
1556
- return this.request("DELETE", `/admin-portal/users/${encodeURIComponent(userId)}`);
1557
- }
1558
- /**
1559
- * Set a target merchant's shop iframe-allowed origins. Internal-admin
1560
- * route — accepts an admin JWT or admin API key without requiring the
1561
- * caller to be scoped to the target merchant. Pass `null` (or an empty
1562
- * array) to clear the allowlist back to same-origin only.
1563
- *
1564
- * Server validates each origin: full origin (scheme + host[:port]),
1565
- * no path/query/fragment, no wildcards.
1566
- *
1567
- * `POST /admin-portal/accounts/{merchantId}/business-profile/{profileId}/iframe-origins`
1568
- */
1569
- async updateShopIframeOrigins(merchantId, profileId, origins) {
1570
- return this.request(
1571
- "POST",
1572
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/business-profile/${encodeURIComponent(profileId)}/iframe-origins`,
1573
- { body: { iframe_allowed_origins: origins } }
1574
- );
1575
- }
1576
- /**
1577
- * Set (or clear) a target merchant shop's home country — the geo
1578
- * dashboard's cross-border baseline. Internal-admin route. Pass `null` to
1579
- * clear back to "international / no home country" (the default).
1580
- *
1581
- * `POST /admin-portal/accounts/{merchantId}/business-profile/{profileId}/home-country`
1582
- */
1583
- async updateShopHomeCountry(merchantId, profileId, homeCountry) {
1584
- return this.request(
1585
- "POST",
1586
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/business-profile/${encodeURIComponent(profileId)}/home-country`,
1587
- { body: { home_country: homeCountry } }
1588
- );
1589
- }
1590
- /**
1591
- * One merchant's sell-to restrictions — the merchant-wide policy and every
1592
- * shop's effective policy. Read-only; staff change a policy through the
1593
- * merchant routes.
1594
- *
1595
- * `GET /admin-portal/accounts/{merchantId}/sell-to-restrictions`
1596
- */
1597
- async getSellToRestrictions(merchantId) {
1598
- return this.request(
1599
- "GET",
1600
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/sell-to-restrictions`
1601
- );
1602
- }
1603
- /**
1604
- * Soft-delete a transaction of ANY merchant. Only payments whose status
1605
- * is in the admin delete policy can be deleted; the action is audited.
1606
- *
1607
- * `DELETE /admin-portal/transactions/{paymentId}`
1608
- */
1609
- async deleteTransaction(paymentId) {
1610
- return this.request("DELETE", `/admin-portal/transactions/${encodeURIComponent(paymentId)}`);
1611
- }
1612
- /**
1613
- * Recover (undelete) a soft-deleted transaction. Audited.
1614
- *
1615
- * `POST /admin-portal/transactions/{paymentId}/recover`
1616
- */
1617
- async recoverTransaction(paymentId) {
1618
- return this.request(
1619
- "POST",
1620
- `/admin-portal/transactions/${encodeURIComponent(paymentId)}/recover`
1621
- );
1622
- }
1623
- /**
1624
- * Mark a transaction of ANY merchant as an integration test, or remove the
1625
- * mark. Recorded in the payment's status history as an operator's change.
1626
- *
1627
- * `POST /admin-portal/transactions/{paymentId}/integration-test`
1628
- */
1629
- async setTransactionIntegrationTest(paymentId, params) {
1630
- return this.request(
1631
- "POST",
1632
- `/admin-portal/transactions/${encodeURIComponent(paymentId)}/integration-test`,
1633
- { body: params }
1634
- );
1635
- }
1636
- /**
1637
- * Client/device observations captured while the buyer interacted with a
1638
- * transaction of ANY merchant, oldest first.
1639
- *
1640
- * `GET /admin-portal/transactions/{paymentId}/client-context`
1641
- */
1642
- async getTransactionClientContext(paymentId) {
1643
- return this.request(
1644
- "GET",
1645
- `/admin-portal/transactions/${encodeURIComponent(paymentId)}/client-context`
1646
- );
1647
- }
1648
- /**
1649
- * What the rail charged for one attempt of a transaction of ANY merchant,
1650
- * off the attempt's settlement line. `line_recorded: false` means
1651
- * no line exists for the attempt; an absent amount is "no figure", never
1652
- * zero.
1653
- *
1654
- * `GET /admin-portal/transactions/{paymentId}/attempts/{attemptId}/processor-cost`
1655
- */
1656
- async getTransactionAttemptProcessorCost(paymentId, attemptId) {
1657
- return this.request(
1658
- "GET",
1659
- `/admin-portal/transactions/${encodeURIComponent(paymentId)}/attempts/${encodeURIComponent(attemptId)}/processor-cost`
1660
- );
1661
- }
1662
- /** Read or refresh signed processor fees for a payment. Internal admin access required. */
1663
- async getTransactionProcessorCostEvents(paymentId, params = {}) {
1664
- return this.request(
1665
- "GET",
1666
- `/admin-portal/transactions/${encodeURIComponent(paymentId)}/processor-cost-events`,
1667
- {
1668
- query: {
1669
- test_mode: params.test_mode,
1670
- year: params.year,
1671
- month: params.month,
1672
- limit: params.limit,
1673
- offset: params.offset,
1674
- force_sync: params.force_sync
1675
- }
1676
- }
1677
- );
1678
- }
1679
- /**
1680
- * DeloPay's own processor cost schedules — our acquirer contract, which
1681
- * prices every merchant that has no schedule of its own, except an account
1682
- * a shop owner brought (that rate is in their contract, not ours, and lives
1683
- * on the merchant surface).
1684
- *
1685
- * Never returned on the merchant surface: these rates are DeloPay's cost
1686
- * base. The rows carry no merchant.
1687
- *
1688
- * `GET /admin-portal/processor-costs`
1689
- */
1690
- async listProcessorCostSchedules() {
1691
- return this.request("GET", "/admin-portal/processor-costs");
1692
- }
1693
- /**
1694
- * Record a DeloPay-wide cost schedule — what a rail charges DeloPay, for
1695
- * rails that report no fee on the payment itself. A cost derived from one
1696
- * of these is marked `estimated` on the settlement line, never `reported`.
1697
- *
1698
- * `POST /admin-portal/processor-costs`
1699
- */
1700
- async createProcessorCostSchedule(params) {
1701
- return this.request("POST", "/admin-portal/processor-costs", { body: params });
1702
- }
1703
- /**
1704
- * Record several DeloPay-wide schedules at once, all or none — copy a price
1705
- * list across methods. 1 to 200 entries; an invalid entry is answered `422`
1706
- * naming its index and nothing is stored. The answer lists them in request
1707
- * order.
1708
- *
1709
- * `POST /admin-portal/processor-costs/bulk`
1710
- */
1711
- async bulkCreateProcessorCostSchedules(params) {
1712
- return this.request("POST", "/admin-portal/processor-costs/bulk", { body: params });
1713
- }
1714
- /**
1715
- * Close a window, deactivate a DeloPay-wide schedule or annotate it. The
1716
- * rate itself is not editable: it priced transactions that already
1717
- * happened, and a new rate is a new row.
1718
- *
1719
- * `PUT /admin-portal/processor-costs/{scheduleId}`
1720
- */
1721
- async updateProcessorCostSchedule(scheduleId, params) {
1722
- return this.request("PUT", `/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}`, {
1723
- body: params
1724
- });
1725
- }
1726
- /**
1727
- * Close a DeloPay-wide schedule at `effective_from` and open its successor
1728
- * with the same scope and the same end, in one step: no transaction is
1729
- * priced by both rates, and none falls between them. Answers the successor.
1730
- *
1731
- * `POST /admin-portal/processor-costs/{scheduleId}/replace`
1732
- */
1733
- async replaceProcessorCostSchedule(scheduleId, params) {
1734
- return this.request(
1735
- "POST",
1736
- `/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}/replace`,
1737
- { body: params }
1738
- );
1739
- }
1740
- /**
1741
- * Delete a DeloPay-wide schedule. Restates nothing: every figure it derived
1742
- * is already stamped on the settlement lines it priced.
1743
- *
1744
- * `DELETE /admin-portal/processor-costs/{scheduleId}`
1745
- */
1746
- async deleteProcessorCostSchedule(scheduleId) {
1747
- return this.request(
1748
- "DELETE",
1749
- `/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}`
1750
- );
1751
- }
1752
- /**
1753
- * One shop's statement periods, newest first. Same shape as the
1754
- * merchant-facing `settlement.listPeriods`, admin-authenticated.
1755
- *
1756
- * `GET /admin-portal/accounts/{merchantId}/settlement/periods`
1757
- */
1758
- async listSettlementPeriods(merchantId, params) {
1759
- return this.request(
1760
- "GET",
1761
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/periods`,
1762
- { query: { profile_id: params.profile_id } }
1763
- );
1764
- }
1765
- /**
1766
- * A merchant's settlement statements. Same shapes as the merchant-facing
1767
- * `settlement` resource, admin-authenticated.
1768
- *
1769
- * `GET /admin-portal/accounts/{merchantId}/settlement/statements`
1770
- */
1771
- async listSettlementStatements(merchantId, params) {
1772
- return this.request(
1773
- "GET",
1774
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/statements`,
1775
- { query: statementListQuery(params) }
1776
- );
1777
- }
1778
- /**
1779
- * One settlement statement with its breakdown.
1780
- * `GET /admin-portal/accounts/{merchantId}/settlement/statements/{statementId}`
1781
- */
1782
- async getSettlementStatement(merchantId, statementId) {
1783
- return this.request(
1784
- "GET",
1785
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/statements/${encodeURIComponent(statementId)}`
1786
- );
1787
- }
1788
- /**
1789
- * Export a settlement statement as PDF. Returns the raw bytes as a `Blob`
1790
- * with the same auth and error handling as every other call. `options`
1791
- * takes a signal, a timeout and an `onDownloadProgress` listener for the
1792
- * download's bytes (the PDF carries a `Content-Length`, so `total` is set).
1793
- *
1794
- * `GET /admin-portal/accounts/{merchantId}/settlement/statements/{statementId}/pdf`
1795
- */
1796
- async downloadSettlementStatementPdf(merchantId, statementId, params, options) {
1797
- return this.request(
1798
- "GET",
1799
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/statements/${encodeURIComponent(statementId)}/pdf`,
1800
- {
1801
- query: {
1802
- currency: params?.currency,
1803
- include_transactions: params?.include_transactions,
1804
- format: params?.format
1805
- },
1806
- responseType: "blob",
1807
- ...options
1808
- }
1809
- );
1810
- }
1811
- /**
1812
- * A merchant's per-shop settlement overview.
1813
- * `GET /admin-portal/accounts/{merchantId}/settlement/overview`
1814
- */
1815
- async settlementOverview(merchantId, params) {
1816
- return this.request(
1817
- "GET",
1818
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/overview`,
1819
- { query: { test_mode: params.test_mode } }
1820
- );
1821
- }
1822
- /**
1823
- * A merchant's live current-period settlement rollup.
1824
- * `GET /admin-portal/accounts/{merchantId}/settlement/current`
1825
- */
1826
- async settlementCurrent(merchantId, params) {
1827
- return this.request(
1828
- "GET",
1829
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/current`,
1830
- { query: { test_mode: params.test_mode, profile_id: params.profile_id } }
1831
- );
1832
- }
1833
- /**
1834
- * A merchant's vault state: the attach entitlement, and the vault
1835
- * configuration of every shop.
1836
- *
1837
- * `GET /admin-portal/accounts/{merchantId}/vault`
1838
- */
1839
- async getVaultState(merchantId) {
1840
- return this.request("GET", `/admin-portal/accounts/${encodeURIComponent(merchantId)}/vault`);
1841
- }
1842
- /**
1843
- * Attach a vault to one of a merchant's shops — creates the vault
1844
- * connector account and points the profile at it in one request. The
1845
- * Collect credentials are verified write-only before anything is stored.
1846
- *
1847
- * `POST /admin-portal/accounts/{merchantId}/vault/attach`
1848
- */
1849
- async attachVault(merchantId, params) {
1850
- return this.request(
1851
- "POST",
1852
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/vault/attach`,
1853
- { body: params }
1854
- );
1855
- }
1856
- /**
1857
- * Correct the funding type, issuing bank and issuing country recorded on
1858
- * past card payments from the BIN table, across every merchant, oldest
1859
- * first, one bounded page per call. Resume with the returned `next_after`
1860
- * until it is `null`. A dry run, the default, reports without writing; a
1861
- * payment that changed while the page ran is left alone and counted as a
1862
- * conflict. Payments of merchants whose attempts are stored in Redis are
1863
- * not corrected.
1864
- *
1865
- * `POST /admin-portal/card-funding/backfill`
1866
- */
1867
- async backfillCardFunding(params = {}) {
1868
- return this.request("POST", "/admin-portal/card-funding/backfill", { body: params });
1869
- }
1870
- /**
1871
- * Every live shop of a merchant, worst first, with DeloPay's reference
1872
- * assessment and, where a merchant adjustment applied, the adjusted one
1873
- * beside it. Not narrowed to one shop: operators see the whole merchant.
1874
- *
1875
- * `GET /admin-portal/accounts/{merchant_id}/risk`
1876
- */
1877
- async getMerchantRisk(merchantId) {
1878
- return this.request("GET", `/admin-portal/accounts/${encodeURIComponent(merchantId)}/risk`);
1879
- }
1880
- /**
1881
- * A merchant's tuning of its own risk assessment at one scope, as the
1882
- * merchant sees it, for operators.
1883
- *
1884
- * `GET /admin-portal/accounts/{merchant_id}/risk/tuning[/{projects|shops}/{id}]`
1885
- */
1886
- async getMerchantRiskTuning(merchantId, target = { scope: "merchant" }) {
1887
- return this.request("GET", riskTuningPath(target, adminAccount(merchantId)));
1888
- }
1889
- /**
1890
- * Replace a merchant's tuning at one scope on its behalf. Needs
1891
- * `AccountManage`; the merchant sees the change as `platform_operator`, the
1892
- * audit names the operator. Validated and revision-checked as the
1893
- * merchant's own save is.
1894
- *
1895
- * `PUT /admin-portal/accounts/{merchant_id}/risk/tuning[/{projects|shops}/{id}]`
1896
- */
1897
- async updateMerchantRiskTuning(merchantId, target, params) {
1898
- return this.request("PUT", riskTuningPath(target, adminAccount(merchantId)), {
1899
- body: params
1900
- });
1901
- }
1902
- /**
1903
- * Reset a merchant's tuning at one scope on its behalf.
1904
- *
1905
- * `DELETE /admin-portal/accounts/{merchant_id}/risk/tuning[/{projects|shops}/{id}]`
1906
- */
1907
- async resetMerchantRiskTuning(merchantId, target, expectedRevision) {
1908
- return this.request("DELETE", riskTuningPath(target, adminAccount(merchantId)), {
1909
- query: { expected_revision: expectedRevision }
1910
- });
1911
- }
1912
- /**
1913
- * Estimate a change to a merchant's tuning. Stores, scores and sends nothing.
1914
- *
1915
- * `POST /admin-portal/accounts/{merchant_id}/risk/tuning[/{projects|shops}/{id}]/preview`
1916
- */
1917
- async previewMerchantRiskTuning(merchantId, target, adjustments) {
1918
- return this.request("POST", `${riskTuningPath(target, adminAccount(merchantId))}/preview`, {
1919
- body: { adjustments }
1920
- });
1921
- }
1922
- /**
1923
- * The shop risk model the daily scoring pass uses, where it comes from and
1924
- * the `revision` to name when changing it. When no model can be used,
1925
- * `model` is absent and `problem` says why.
1926
- *
1927
- * `GET /admin-portal/risk-model`
1928
- */
1929
- async getRiskModel() {
1930
- return this.request("GET", "/admin-portal/risk-model");
1931
- }
1932
- /**
1933
- * Change the shop risk model; the answer is the model stored. Name the
1934
- * `revision` the change was made against so a save over a change made in
1935
- * between is refused (`IR_16`) instead of overwriting it. An invalid
1936
- * result, or a scoring change without a higher `model_version`, is refused
1937
- * with the reason in `error.message`.
1938
- *
1939
- * `PUT /admin-portal/risk-model`
1940
- */
1941
- async updateRiskModel(patch, options = {}) {
1942
- return this.request("PUT", "/admin-portal/risk-model", {
1943
- body: patch,
1944
- query: { revision: options.revision }
1945
- });
1946
- }
1947
- /**
1948
- * What recalculating the shop risk history over `range` would do, without
1949
- * queuing it: its days, the first day whose counters are rebuilt, the model
1950
- * it would score with now, and the run of the same range already recorded.
1951
- * Refused exactly where `startRiskBackfill()` would be.
1952
- *
1953
- * `POST /admin-portal/risk-engine/backfill/preview`
1954
- */
1955
- async previewRiskBackfill(range) {
1956
- return this.request("POST", "/admin-portal/risk-engine/backfill/preview", { body: range });
1957
- }
1958
- /**
1959
- * Queue a recalculation of `range`. Days that already have a risk score keep
1960
- * it, and recalculated days never alert. While the same range is queued or
1961
- * running, nothing new is started and `enqueued` is `false`.
1962
- *
1963
- * `POST /admin-portal/risk-engine/backfill`
1964
- */
1965
- async startRiskBackfill(range) {
1966
- return this.request("POST", "/admin-portal/risk-engine/backfill", { body: range });
1967
- }
1968
- /**
1969
- * One recalculation by the `job_id` a preview or start returned.
1970
- *
1971
- * `GET /admin-portal/risk-engine/backfill/{job_id}`
1972
- */
1973
- async getRiskBackfill(jobId) {
1974
- return this.request("GET", `/admin-portal/risk-engine/backfill/${encodeURIComponent(jobId)}`);
1975
- }
1976
- /**
1977
- * Where a merchant stands in the risk policy (`merchant_risk.policy`): the
1978
- * policy in force, the stage, the conditions of the last evaluation with
1979
- * their evidence, pending and past actions, exemptions and stage changes.
1980
- *
1981
- * `GET /admin-portal/accounts/{merchant_id}/risk/stage`
1982
- */
1983
- async getMerchantRiskStage(merchantId) {
1984
- return this.request("GET", `${adminAccount(merchantId)}/risk/stage`);
1985
- }
1986
- /**
1987
- * Evaluate a merchant against its risk policy now, as the scoring pass
1988
- * does, and answer where it stands afterwards. Needs `AccountManage`.
1989
- *
1990
- * `POST /admin-portal/accounts/{merchant_id}/risk/stage/evaluate`
1991
- */
1992
- async evaluateMerchantRiskStage(merchantId) {
1993
- return this.request("POST", `${adminAccount(merchantId)}/risk/stage/evaluate`, { body: {} });
1994
- }
1995
- /**
1996
- * Apply a pending action that waits for an operator. An action already
1997
- * decided, suppressed or expired is refused with `DE_19` (HTTP 409).
1998
- *
1999
- * `POST /admin-portal/accounts/{merchant_id}/risk/actions/{action_id}/confirm`
2000
- */
2001
- async confirmMerchantRiskAction(merchantId, actionId, params = {}) {
2002
- return this.request(
2003
- "POST",
2004
- `${adminAccount(merchantId)}/risk/actions/${encodeURIComponent(actionId)}/confirm`,
2005
- { body: params }
2006
- );
2007
- }
2008
- /**
2009
- * Dismiss a pending action with a reason; it never applies. An action
2010
- * already decided is refused with `DE_19` (HTTP 409).
2011
- *
2012
- * `POST /admin-portal/accounts/{merchant_id}/risk/actions/{action_id}/dismiss`
2013
- */
2014
- async dismissMerchantRiskAction(merchantId, actionId, params) {
2015
- return this.request(
2016
- "POST",
2017
- `${adminAccount(merchantId)}/risk/actions/${encodeURIComponent(actionId)}/dismiss`,
2018
- { body: params }
2019
- );
2020
- }
2021
- /**
2022
- * Exempt a merchant from one action for one risk dimension, until
2023
- * `expires_at` or for good. An exempted action is recorded as `suppressed`
2024
- * with the exemption's id; the stage itself is still entered.
2025
- *
2026
- * `POST /admin-portal/accounts/{merchant_id}/risk/exemptions`
2027
- */
2028
- async createMerchantRiskExemption(merchantId, params) {
2029
- return this.request("POST", `${adminAccount(merchantId)}/risk/exemptions`, { body: params });
2030
- }
2031
- /**
2032
- * End an exemption now, with a reason. It no longer suppresses anything
2033
- * from the next evaluation on.
2034
- *
2035
- * `POST /admin-portal/accounts/{merchant_id}/risk/exemptions/{exemption_id}/revoke`
2036
- */
2037
- async revokeMerchantRiskExemption(merchantId, exemptionId, params) {
2038
- return this.request(
2039
- "POST",
2040
- `${adminAccount(merchantId)}/risk/exemptions/${encodeURIComponent(exemptionId)}/revoke`,
2041
- { body: params }
2042
- );
2043
- }
2044
- /**
2045
- * Lift an applied `restrict_payments`, `hold_payouts` or `suspend` action
2046
- * with a reason: what it blocked is allowed again, and nothing else
2047
- * changes. The merchant stays in its stage and the action stays lifted for
2048
- * the rest of that stage entry. An action that is not applied, not one of
2049
- * those kinds, or already lifted is refused with `DE_19` (HTTP 409).
2050
- *
2051
- * `POST /admin-portal/accounts/{merchant_id}/risk/actions/{action_id}/lift`
2052
- */
2053
- async liftMerchantRiskAction(merchantId, actionId, params) {
2054
- return this.request(
2055
- "POST",
2056
- `${adminAccount(merchantId)}/risk/actions/${encodeURIComponent(actionId)}/lift`,
2057
- { body: params }
2058
- );
2059
- }
2060
- /**
2061
- * Stop new payments of one shop (`profile_id`), or of every shop of the
2062
- * merchant, with a required reason. The stop is an
2063
- * applied `restrict_payments` action of mode `operator`: payment create,
2064
- * every confirm, the hosted checkout and its provider routes are refused
2065
- * with `DE_22` before any provider is called. No template, connector
2066
- * account, visibility, routing or stage change ends it; only
2067
- * `liftMerchantRiskAction`, with a reason, does. A blank reason is
2068
- * refused (HTTP 400), a shop of another merchant is not found (404), and a
2069
- * scope an applied stop already covers is refused with `DE_19` (409).
2070
- *
2071
- * `POST /admin-portal/accounts/{merchant_id}/risk/stops`
2072
- */
2073
- async stopMerchantPayments(merchantId, params) {
2074
- return this.request("POST", `${adminAccount(merchantId)}/risk/stops`, { body: params });
2075
- }
2076
- /**
2077
- * The payments and payouts a merchant's applied risk actions refused,
2078
- * newest first; 50 unless `limit` (at most 200) says otherwise.
2079
- *
2080
- * `GET /admin-portal/accounts/{merchant_id}/risk/blocked-attempts`
2081
- */
2082
- async listMerchantRiskBlockedAttempts(merchantId, params) {
2083
- return this.request("GET", `${adminAccount(merchantId)}/risk/blocked-attempts`, {
2084
- query: params === void 0 ? void 0 : { ...params }
2085
- });
2086
- }
2087
- /**
2088
- * Every merchant risk action kind and whether this platform can use it,
2089
- * with its default mode, its scopes and what it blocks.
2090
- *
2091
- * `GET /admin-portal/risk/actions/catalog`
2092
- */
2093
- async getMerchantRiskActionCatalog() {
2094
- return this.request("GET", "/admin-portal/risk/actions/catalog");
2095
- }
2096
- /**
2097
- * Which merchants a risk policy, saved or not, would put in each stage now,
2098
- * from their stored signals, and what each action would block there.
2099
- * Writes nothing. A policy a settings write would refuse is refused the
2100
- * same way (HTTP 422).
2101
- *
2102
- * `POST /admin-portal/risk/policy/preview`
2103
- */
2104
- async previewMerchantRiskPolicy(params) {
2105
- return this.request("POST", "/admin-portal/risk/policy/preview", { body: params });
2106
- }
2107
- };
2108
- function transactionListQuery(params) {
2109
- if (!params) return void 0;
2110
- const {
2111
- statuses,
2112
- connectors,
2113
- payment_methods,
2114
- payment_method_types,
2115
- currencies,
2116
- merchant_connector_ids,
2117
- connector_settlement_statuses,
2118
- routing_approaches,
2119
- failure_substatuses,
2120
- product_ids,
2121
- buyer_risk_band,
2122
- merchant_ids,
2123
- ...query
2124
- } = params;
2125
- return {
2126
- ...query,
2127
- ...statuses?.length ? { statuses: statuses.join(",") } : {},
2128
- ...connectors?.length ? { connectors: connectors.join(",") } : {},
2129
- ...payment_methods?.length ? { payment_methods: payment_methods.join(",") } : {},
2130
- ...payment_method_types?.length ? { payment_method_types: payment_method_types.join(",") } : {},
2131
- ...currencies?.length ? { currencies: currencies.join(",") } : {},
2132
- ...merchant_connector_ids?.length ? { merchant_connector_ids: merchant_connector_ids.join(",") } : {},
2133
- ...connector_settlement_statuses?.length ? { connector_settlement_statuses: connector_settlement_statuses.join(",") } : {},
2134
- ...routing_approaches?.length ? { routing_approaches: routing_approaches.join(",") } : {},
2135
- ...failure_substatuses?.length ? { failure_substatuses: failure_substatuses.join(",") } : {},
2136
- ...product_ids?.length ? { product_ids: product_ids.join(",") } : {},
2137
- ...buyer_risk_band?.length ? { buyer_risk_band: buyer_risk_band.join(",") } : {},
2138
- ...merchant_ids?.length ? { merchant_ids: merchant_ids.join(",") } : {}
2139
- };
2140
- }
2141
- function adminPersons(merchantId) {
2142
- return `/admin-portal/persons/${encodeURIComponent(merchantId)}`;
2143
- }
2144
- function personFlags(merchantId, personId) {
2145
- return `${adminPersons(merchantId)}/${encodeURIComponent(personId)}/flags`;
2146
- }
2147
- function adminAccount(merchantId) {
2148
- return `/admin-portal/accounts/${encodeURIComponent(merchantId)}`;
2149
- }
2150
-
2151
- // src/internal/resources/adminSupport.ts
2152
- var path2 = (id) => `/admin-portal/support/conversations/${encodeURIComponent(id)}`;
2153
- var AdminSupport = class {
2154
- constructor(request) {
2155
- this.request = request;
2156
- }
2157
- /**
2158
- * The queue, the latest message first unless `sort_by` says otherwise.
2159
- * Several `kind`, `category` or `status` values match a conversation with
2160
- * any of them. `GET /admin-portal/support/conversations`
2161
- */
2162
- async list(query) {
2163
- return this.request("GET", "/admin-portal/support/conversations", {
2164
- query: csvQuery(query, ["kind", "category", "status"])
2165
- });
2166
- }
2167
- /**
2168
- * Open a conversation towards a merchant, one of its shops or one of its members,
2169
- * with a first message from the support team. `POST /admin-portal/support/conversations`
2170
- */
2171
- async create(body) {
2172
- return this.request("POST", "/admin-portal/support/conversations", { body });
2173
- }
2174
- /**
2175
- * The members of a merchant a message can be addressed to, with whether their role
2176
- * opens the support page. `GET /admin-portal/support/recipients`
2177
- */
2178
- async recipients(query) {
2179
- return this.request("GET", "/admin-portal/support/recipients", { query: { ...query } });
2180
- }
2181
- /** One conversation. `GET /admin-portal/support/conversations/{id}` */
2182
- async retrieve(id) {
2183
- return this.request("GET", path2(id));
2184
- }
2185
- /** Change status, kind, category or assignee. `PATCH /admin-portal/support/conversations/{id}` */
2186
- async update(id, body) {
2187
- return this.request("PATCH", path2(id), { body });
2188
- }
2189
- /** Messages, notes included. `GET /admin-portal/support/conversations/{id}/messages` */
2190
- async messages(id, query) {
2191
- return this.request("GET", `${path2(id)}/messages`, {
2192
- query: query === void 0 ? void 0 : { ...query }
2193
- });
2194
- }
2195
- /** Answer, or leave a note. `POST /admin-portal/support/conversations/{id}/messages` */
2196
- async reply(id, body) {
2197
- return this.request("POST", `${path2(id)}/messages`, { body });
2198
- }
2199
- /**
2200
- * Upload a file for a message from staff, scanned like a merchant's.
2201
- * `POST /admin-portal/support/conversations/{id}/attachments`
2202
- */
2203
- async uploadAttachment(id, file, clientUploadId, fileName) {
2204
- const form = new FormData();
2205
- form.append("client_upload_id", clientUploadId);
2206
- if (fileName === void 0) form.append("file", file);
2207
- else form.append("file", file, fileName);
2208
- return this.request("POST", `${path2(id)}/attachments`, { body: form });
2209
- }
2210
- /**
2211
- * Fetch a file once its scan is clean. A blocked file stays shut for staff too.
2212
- * `GET /admin-portal/support/conversations/{id}/attachments/{fileId}`
2213
- */
2214
- async downloadAttachment(id, fileId) {
2215
- return this.request("GET", `${path2(id)}/attachments/${encodeURIComponent(fileId)}`, {
2216
- responseType: "blob"
2217
- });
2218
- }
2219
- /**
2220
- * Clear the staff unread mark and read the conversation as it is now.
2221
- * `POST /admin-portal/support/conversations/{id}/read`
2222
- */
2223
- async markRead(id) {
2224
- return this.request("POST", `${path2(id)}/read`);
2225
- }
2226
- };
2227
-
2228
- // src/internal/resources/auditLogs.ts
2229
- var AuditLogs = class {
2230
- constructor(request) {
2231
- this.request = request;
2232
- }
2233
- /**
2234
- * One page of the platform audit log, the newest entry first unless
2235
- * `sort_by` says otherwise. Several `action` or `entity_type` values match
2236
- * an entry with any of them.
2237
- */
2238
- async list(params) {
2239
- return this.request("GET", "/admin-portal/audit", {
2240
- query: csvQuery(params, ["action", "entity_type"])
2241
- });
2242
- }
2243
- async retrieve(logId) {
2244
- return this.request("GET", `/admin-portal/audit/${encodeURIComponent(logId)}`);
2245
- }
2246
- async export(params, options) {
2247
- return runExport(
2248
- this.request,
2249
- "GET",
2250
- "/admin-portal/audit/export",
2251
- // The format is negotiated by `Accept`, never a query field: the query
2252
- // here is the list's own filter model, and adding a key to it would fork
2253
- // the filter vocabulary the export exists to reuse.
2254
- { query: csvQuery(params, ["action", "entity_type"]) },
2255
- options
2256
- );
2257
- }
2258
- };
2259
-
2260
- // src/internal/resources/cache.ts
2261
- var Cache = class {
2262
- constructor(request) {
2263
- this.request = request;
2264
- }
2265
- /** Invalidate a cache entry by key. `POST /cache/invalidate/{key}` */
2266
- async invalidate(key) {
2267
- return this.request("POST", `/cache/invalidate/${encodeURIComponent(key)}`);
2268
- }
2269
- };
2270
-
2271
- // src/internal/resources/cardIssuers.ts
2272
- var CardIssuers = class {
2273
- constructor(request) {
2274
- this.request = request;
2275
- }
2276
- async create(params) {
2277
- return this.request("POST", "/card-issuers", { body: params });
2278
- }
2279
- async update(issuerId, params) {
2280
- return this.request("PUT", `/card-issuers/${encodeURIComponent(issuerId)}`, { body: params });
2281
- }
2282
- async list() {
2283
- return this.request("GET", "/card-issuers");
2284
- }
2285
- };
2286
-
2287
- // src/internal/resources/configs.ts
2288
- var Configs = class {
2289
- constructor(request) {
2290
- this.request = request;
2291
- }
2292
- /** Create a config. `POST /configs` */
2293
- async create(params) {
2294
- return this.request("POST", "/configs", { body: params });
2295
- }
2296
- /** Retrieve a config by key. `GET /configs/{key}` */
2297
- async retrieve(key) {
2298
- return this.request("GET", `/configs/${encodeURIComponent(key)}`);
2299
- }
2300
- /** Update a config. `PUT /configs/{key}` */
2301
- async update(key, params) {
2302
- return this.request("PUT", `/configs/${encodeURIComponent(key)}`, { body: params });
2303
- }
2304
- /** Delete a config. `DELETE /configs/{key}` */
2305
- async delete(key) {
2306
- return this.request("DELETE", `/configs/${encodeURIComponent(key)}`);
2307
- }
2308
- };
2309
-
2310
- // src/internal/resources/connectorRestrictionRules.ts
2311
- var BASE = "/admin/connector-restriction-rules";
2312
- var ConnectorRestrictionRules = class {
2313
- constructor(request) {
2314
- this.request = request;
2315
- }
2316
- /**
2317
- * Create one allow/deny rule. A duplicate
2318
- * `(merchant_id, scope, scope_id, connector)` is rejected — update or delete
2319
- * the existing rule instead.
2320
- */
2321
- async create(body) {
2322
- return this.request("POST", BASE, { body });
2323
- }
2324
- /**
2325
- * List rules for one scope (`scope` + `scope_id`) or a whole merchant
2326
- * (`merchant_id`). Pass exactly one selector.
2327
- */
2328
- async list(query) {
2329
- return this.request("GET", BASE, { query: { ...query } });
2330
- }
2331
- /** Retrieve a single rule by ID. */
2332
- async retrieve(id) {
2333
- return this.request("GET", `${BASE}/${encodeURIComponent(id)}`);
2334
- }
2335
- /** Update a rule's action and/or reason. */
2336
- async update(id, body) {
2337
- return this.request("PATCH", `${BASE}/${encodeURIComponent(id)}`, { body });
2338
- }
2339
- /** Delete a rule by ID. */
2340
- async delete(id) {
2341
- return this.request("DELETE", `${BASE}/${encodeURIComponent(id)}`);
2342
- }
2343
- };
2344
-
2345
- // src/internal/resources/connectorRestrictions.ts
2346
- var ConnectorRestrictions = class {
2347
- constructor(request) {
2348
- this.request = request;
2349
- }
2350
- /**
2351
- * Idempotent upsert. If a row exists for `connector_name`, its
2352
- * allowlist + reason are replaced. To open the connector to
2353
- * everyone again, call `delete()`.
2354
- */
2355
- async upsert(body) {
2356
- return this.request("POST", "/admin/connector-restrictions", { body });
2357
- }
2358
- async list() {
2359
- return this.request("GET", "/admin/connector-restrictions");
2360
- }
2361
- async retrieve(connectorName) {
2362
- return this.request(
2363
- "GET",
2364
- `/admin/connector-restrictions/${encodeURIComponent(connectorName)}`
2365
- );
2366
- }
2367
- /** Removing the row makes the connector public again. */
2368
- async delete(connectorName) {
2369
- return this.request(
2370
- "DELETE",
2371
- `/admin/connector-restrictions/${encodeURIComponent(connectorName)}`
2372
- );
2373
- }
2374
- };
2375
-
2376
- // src/internal/resources/diagnostic.ts
2377
- var Diagnostic = class {
2378
- constructor(request) {
2379
- this.request = request;
2380
- }
2381
- /**
2382
- * The ranked attention board — the page's landing state, with nothing typed.
2383
- *
2384
- * Always carries `checks_run` and `vitals`, so an empty `items` reads as
2385
- * "checked these things at 14:02, all clear" rather than as a panel that
2386
- * failed to load. A check that could not run is **absent** from `checks_run`
2387
- * rather than silently counted as clear.
2388
- */
2389
- async attention(body) {
2390
- return this.request("POST", "/admin-portal/diagnostic/attention", { body: body ?? {} });
2391
- }
2392
- /**
2393
- * Provider webhooks received, across every merchant.
2394
- *
2395
- * `source_verified: false` selects rows that failed verification **or** never
2396
- * reached it — the deliveries that failed before verification was attempted
2397
- * are exactly the ones an operator opens this tab for.
2398
- */
2399
- async listIncomingWebhooks(body) {
2400
- return this.request("POST", "/admin-portal/diagnostic/webhooks/incoming", {
2401
- body: body ?? {}
2402
- });
2403
- }
2404
- /**
2405
- * One delivery in full: masked headers and body, the verification verdict,
2406
- * and the router log lines for its request id.
2407
- *
2408
- * `router_logs` is `null` — not `[]` — when the log store is unreachable, and
2409
- * `router_logs_unavailable` then says why. Render the first as *unavailable*,
2410
- * never as "the router logged nothing".
2411
- */
2412
- async getIncomingWebhook(eventId) {
2413
- return this.request(
2414
- "GET",
2415
- `/admin-portal/diagnostic/webhooks/incoming/${encodeURIComponent(eventId)}`
2416
- );
2417
- }
2418
- /** Shop webhooks sent, across every merchant, with each event's attempts folded in. */
2419
- async listOutgoingWebhooks(body) {
2420
- return this.request("POST", "/admin-portal/diagnostic/webhooks/outgoing", {
2421
- body: body ?? {}
2422
- });
2423
- }
2424
- /**
2425
- * The four tiles above the shop-webhooks table.
2426
- *
2427
- * Counted under the same window and environment as the table but **without**
2428
- * its delivery filter — the tiles say what the window holds, and applying the
2429
- * filter would make every tile agree with whichever one is selected.
2430
- */
2431
- async outgoingWebhookSummary(body) {
2432
- return this.request("POST", "/admin-portal/diagnostic/webhooks/outgoing/summary", {
2433
- body: body ?? {}
2434
- });
2435
- }
2436
- /**
2437
- * Connector calls the router made.
2438
- *
2439
- * List rows carry no payload. Fetch one with {@link getConnectorCall} for the
2440
- * masked request and response.
2441
- */
2442
- async listConnectorCalls(body) {
2443
- return this.request("POST", "/admin-portal/diagnostic/connector-calls", { body: body ?? {} });
2444
- }
2445
- /** One connector call, with its masked payloads. */
2446
- async getConnectorCall(id) {
2447
- return this.request(
2448
- "GET",
2449
- `/admin-portal/diagnostic/connector-calls/${encodeURIComponent(id)}`
2450
- );
2451
- }
2452
- /**
2453
- * Router logs, proxied from the deployment's log store.
2454
- *
2455
- * Answers a {@link DiagnosticPanel}. Check `status` before reading `data`:
2456
- * `'unavailable'` means the store did not answer, which is the opposite of
2457
- * "there were no errors" and must be rendered as such.
2458
- */
2459
- async routerLogs(body) {
2460
- return this.request("POST", "/admin-portal/diagnostic/logs", { body: body ?? {} });
2461
- }
2462
- /**
2463
- * Payments that are stuck or failed.
2464
- *
2465
- * Stuck means non-terminal for longer than `stuck_minutes`; failed means it
2466
- * ended without succeeding inside the window. Omitting `stuck_minutes` turns
2467
- * the first arm off rather than widening it.
2468
- */
2469
- async listPayments(body) {
2470
- return this.request("POST", "/admin-portal/diagnostic/payments", { body: body ?? {} });
2471
- }
2472
- /**
2473
- * The error codes in this window, each with its count in the previous window
2474
- * of equal length.
2475
- *
2476
- * `previous_count: null` means the code did not appear before — render it as
2477
- * "new" rather than as a fall to zero.
2478
- */
2479
- async paymentErrorCodes(body) {
2480
- return this.request("POST", "/admin-portal/diagnostic/payments/error-codes", {
2481
- body: body ?? {}
2482
- });
2483
- }
2484
- /**
2485
- * Everything about one payment, in one call: the payment, its attempts, its
2486
- * status history, its client context, and what it produced — connector calls,
2487
- * webhooks both ways, and scheduler jobs.
2488
- *
2489
- * Read `diagnostic_capture` before rendering an empty section. A payment with
2490
- * no connector calls and a deployment that never recorded any are different
2491
- * facts, and the second must not read as the first.
2492
- *
2493
- * Typed loosely on purpose: the payment, attempts, status-history and
2494
- * client-context halves are the merchant-facing shapes this package already
2495
- * exports, and re-declaring them here would give consumers two names for one
2496
- * thing that could then drift apart.
2497
- */
2498
- async getPayment(paymentId) {
2499
- return this.request(
2500
- "GET",
2501
- `/admin-portal/diagnostic/payments/${encodeURIComponent(paymentId)}`
2502
- );
2503
- }
2504
- /** Scheduler tasks, most overdue first. */
2505
- async listQueues(body) {
2506
- return this.request("POST", "/admin-portal/diagnostic/queues", { body: body ?? {} });
2507
- }
2508
- /**
2509
- * The four tiles above the queues table, plus the approvals count.
2510
- *
2511
- * `pending_approvals` is a **different** queue from `pending_count`: a stalled
2512
- * scheduler needs a consumer, a full approvals queue needs a person, and
2513
- * folding them into one number would point an operator at the wrong fix.
2514
- */
2515
- async queueSummary() {
2516
- return this.request("GET", "/admin-portal/diagnostic/queues/summary");
2517
- }
2518
- /**
2519
- * Replicas and their dependencies.
2520
- *
2521
- * `build_mismatch` is computed server-side rather than left for a caller to
2522
- * notice by comparing strings: one replica in four answering differently
2523
- * explains a whole class of "it only fails sometimes" incident, and is
2524
- * invisible unless something says it out loud.
2525
- */
2526
- async infrastructure() {
2527
- return this.request("GET", "/admin-portal/diagnostic/infrastructure");
2528
- }
2529
- /**
2530
- * Firing alerts, proxied from Alertmanager.
2531
- *
2532
- * Answers a {@link DiagnosticPanel} for the same reason {@link routerLogs}
2533
- * does: a strip that renders empty because Alertmanager is down says "nothing
2534
- * is firing", which is the most dangerous sentence this page could print.
2535
- */
2536
- async alerts() {
2537
- return this.request("GET", "/admin-portal/diagnostic/alerts");
2538
- }
2539
- /** Config edits and admin actions inside the window. */
2540
- async listChanges(body) {
2541
- return this.request("POST", "/admin-portal/diagnostic/changes", { body: body ?? {} });
2542
- }
2543
- /**
2544
- * What a pasted id is, and whether we hold it.
2545
- *
2546
- * `kind` and `found` are separate answers on purpose. A well-shaped id that
2547
- * matches nothing comes back `found: false` with the three `reasons` and
2548
- * their fixes — render that, never an empty table, which reads as "no such
2549
- * payment" when the real answer is "outside the window" or "it is a test
2550
- * payment".
2551
- */
2552
- async resolveId(id) {
2553
- return this.request("GET", `/admin-portal/diagnostic/resolve/${encodeURIComponent(id)}`);
2554
- }
2555
- /**
2556
- * One id across every source, as an ordered span list.
2557
- *
2558
- * Accepts a payment, attempt, event or request id. Sources that could not be
2559
- * read are named in `unavailable_sources` rather than left out: a waterfall
2560
- * with an unexplained gap reads as a period when nothing happened.
2561
- */
2562
- async trace(id) {
2563
- return this.request("GET", `/admin-portal/diagnostic/trace/${encodeURIComponent(id)}`);
2564
- }
2565
- /**
2566
- * Unmask one field of one object.
2567
- *
2568
- * **Writes an audit row** naming the operator, the field and the object,
2569
- * before the value is returned — a reveal that could not be audited does not
2570
- * happen. Needs a dashboard JWT holding `DiagnosticReveal`; an admin API key
2571
- * cannot call it, because an API key names no person.
2572
- *
2573
- * `reason` is required and is stored verbatim.
2574
- */
2575
- async reveal(body) {
2576
- return this.request("POST", "/admin-portal/diagnostic/reveal", { body });
2577
- }
2578
- };
2579
-
2580
- // src/internal/resources/gsm.ts
2581
- var Gsm = class {
2582
- constructor(request) {
2583
- this.request = request;
2584
- }
2585
- async create(params) {
2586
- return this.request("POST", "/gsm", { body: params });
2587
- }
2588
- async retrieve(params) {
2589
- return this.request("POST", "/gsm/get", { body: params });
2590
- }
2591
- async update(params) {
2592
- return this.request("POST", "/gsm/update", { body: params });
2593
- }
2594
- async delete(params) {
2595
- return this.request("POST", "/gsm/delete", { body: params });
2596
- }
2597
- };
2598
-
2599
- // src/internal/resources/platformBilling.ts
2600
- var PlatformBilling = class {
2601
- constructor(request) {
2602
- this.request = request;
2603
- }
2604
- /**
2605
- * Manually credit a merchant's balance (e.g. promotional credit,
2606
- * dispute reversal, manual correction).
2607
- *
2608
- * @param merchantId - The merchant account ID.
2609
- * @param params - Credit amount and reason.
2610
- */
2611
- async credit(merchantId, params) {
2612
- return this.request("POST", `/billing/${encodeURIComponent(merchantId)}/admin/credit`, {
2613
- body: params
2614
- });
2615
- }
2616
- /**
2617
- * Manually debit a merchant's balance.
2618
- *
2619
- * @param merchantId - The merchant account ID.
2620
- * @param params - Debit amount and reason.
2621
- */
2622
- async debit(merchantId, params) {
2623
- return this.request("POST", `/billing/${encodeURIComponent(merchantId)}/admin/debit`, {
2624
- body: params
2625
- });
2626
- }
2627
- /**
2628
- * Edit a single ledger entry (amount and/or description), keeping the
2629
- * merchant balance consistent: when `amount` changes, the balance is
2630
- * atomically adjusted by the difference. Returns the entry id and new
2631
- * balance.
2632
- *
2633
- * @param merchantId - The merchant account ID.
2634
- * @param ledgerId - The ledger entry id to edit.
2635
- * @param params - New amount / description (either optional).
2636
- */
2637
- async editLedgerEntry(merchantId, ledgerId, params) {
2638
- return this.request(
2639
- "PATCH",
2640
- `/billing/${encodeURIComponent(merchantId)}/admin/ledger/${encodeURIComponent(ledgerId)}`,
2641
- { body: params }
2642
- );
2643
- }
2644
- /**
2645
- * Delete a single ledger entry, reversing its amount from the merchant
2646
- * balance. Returns the deleted entry id and the new balance.
2647
- *
2648
- * @param merchantId - The merchant account ID.
2649
- * @param ledgerId - The ledger entry id to delete.
2650
- */
2651
- async deleteLedgerEntry(merchantId, ledgerId) {
2652
- return this.request(
2653
- "DELETE",
2654
- `/billing/${encodeURIComponent(merchantId)}/admin/ledger/${encodeURIComponent(ledgerId)}`
2655
- );
2656
- }
2657
- /**
2658
- * Manually suspend a merchant (e.g. confirmed fraud or ToS violation),
2659
- * independent of balance. A `reason` is required for audit. Throws 412 if
2660
- * the merchant is trusted (clear the flag first) or already suspended.
2661
- *
2662
- * @param merchantId - The merchant account ID.
2663
- * @param params - Suspension reason.
2664
- * @returns The updated billing profile.
2665
- */
2666
- async suspend(merchantId, params) {
2667
- return this.request("POST", `/billing/${encodeURIComponent(merchantId)}/admin/suspend`, {
2668
- body: params
2669
- });
2670
- }
2671
- /**
2672
- * Lift a suspension. Restores the merchant to `active` (or `delinquent` if
2673
- * the balance is at/below the hard floor) and resets the recharge-failure
2674
- * counter. Throws 412 if the merchant is not suspended.
2675
- *
2676
- * @param merchantId - The merchant account ID.
2677
- * @param params - Optional audit note.
2678
- * @returns The updated billing profile.
2679
- */
2680
- async unsuspend(merchantId, params = {}) {
2681
- return this.request("POST", `/billing/${encodeURIComponent(merchantId)}/admin/unsuspend`, {
2682
- body: params
2683
- });
2684
- }
2685
- /**
2686
- * Set or clear the trusted (suspension-exempt) flag. Trusted merchants
2687
- * cannot be suspended automatically or manually. Does not lift an existing
2688
- * suspension — use {@link PlatformBilling.unsuspend} for that.
2689
- *
2690
- * @param merchantId - The merchant account ID.
2691
- * @param params - The desired trusted state.
2692
- * @returns The updated billing profile.
2693
- */
2694
- async setTrusted(merchantId, params) {
2695
- return this.request("PATCH", `/billing/${encodeURIComponent(merchantId)}/admin/trusted`, {
2696
- body: params
2697
- });
2698
- }
2699
- /**
2700
- * Set the merchant's hard floor — the balance at or below which the
2701
- * merchant stops being active. A negative value grants a credit line; zero
2702
- * means no negative balance at all. This moves the suspension line, it does
2703
- * not remove it. The value and the caller are written to the audit log
2704
- * before the floor changes, so the change is always attributable.
2705
- *
2706
- * Refused (412) for a positive amount, for a floor beyond the maximum
2707
- * credit line of 10,000,000 minor units, or for an empty `reason`.
2708
- *
2709
- * Requires a router that serves the hard-floor admin route; older ones
2710
- * answer `404`.
2711
- *
2712
- * @param merchantId - The merchant account ID.
2713
- * @param params - The new floor (zero or negative) and the audit reason.
2714
- * @returns The updated billing profile.
2715
- */
2716
- async setHardFloor(merchantId, params) {
2717
- return this.request("PATCH", `/billing/${encodeURIComponent(merchantId)}/admin/hard-floor`, {
2718
- body: params
2719
- });
2720
- }
2721
- /**
2722
- * Mark a merchant free (not billed), or put it back on the prepaid model.
2723
- * While free, no platform fee is deducted, the payment gate never blocks on
2724
- * billing status, top-ups are refused and auto-recharge is inert. Marking
2725
- * free needs a `reason` and is refused (412) while an admin suspension is in
2726
- * force — lift that first.
2727
- *
2728
- * Requires a router that supports the free flag; older ones answer `404`.
2729
- *
2730
- * @param merchantId - The merchant account ID.
2731
- * @param params - The desired free state and, when marking free, the reason.
2732
- * @returns The updated billing profile.
2733
- */
2734
- async setFree(merchantId, params) {
2735
- return this.request("PATCH", `/billing/${encodeURIComponent(merchantId)}/admin/free`, {
2736
- body: params
2737
- });
2738
- }
2739
- /**
2740
- * Delete a merchant's **entire** ledger. Every live entry is soft-deleted —
2741
- * kept, so a replayed fee deduction or top-up webhook still no-ops — the
2742
- * balance is set to zero and the status re-derived (`active` for a free
2743
- * merchant; an active paying merchant lands in `delinquent`). Refused (412)
2744
- * while the merchant has shop allocations. Audited.
2745
- *
2746
- * Requires a router that serves the ledger admin routes; older ones answer
2747
- * `404`.
2748
- *
2749
- * @param merchantId - The merchant account ID.
2750
- * @param params - The reason, required for audit.
2751
- * @returns What was removed and the post-reset profile.
2752
- */
2753
- async resetLedger(merchantId, params) {
2754
- return this.request("DELETE", `/billing/${encodeURIComponent(merchantId)}/admin/ledger`, {
2755
- body: params
2756
- });
2757
- }
2758
- /**
2759
- * (Re)create a merchant's ledger, optionally seeded with an opening
2760
- * balance. Ensures the billing profile exists (created without the welcome
2761
- * promo credit) and, when `opening_balance` is set, writes one
2762
- * `opening_balance` entry through the same atomic helper an admin credit
2763
- * uses. Refused (412) while live entries or a non-zero balance remain —
2764
- * reset first. Does not clear the free flag. Audited.
2765
- *
2766
- * Requires a router that serves the ledger admin routes; older ones answer
2767
- * `404`.
2768
- *
2769
- * @param merchantId - The merchant account ID.
2770
- * @param params - Opening balance (minor units), currency for a new profile, and the reason.
2771
- * @returns The opening entry id (if one was written) and the profile.
2772
- */
2773
- async createLedger(merchantId, params) {
2774
- return this.request("POST", `/billing/${encodeURIComponent(merchantId)}/admin/ledger`, {
2775
- body: params
2776
- });
2777
- }
2778
- };
2779
-
2780
- // src/internal/resources/platformFees.ts
2781
- var PlatformFees = class {
2782
- constructor(request) {
2783
- this.request = request;
2784
- this.rules = new PlatformFeeRulesManager(request);
2785
- }
2786
- /** Create a platform fee schedule for a specific merchant. */
2787
- async create(params, merchantId) {
2788
- return this.request("POST", "/admin/fees", {
2789
- body: params,
2790
- query: { merchant_id: merchantId }
2791
- });
2792
- }
2793
- /** List every platform fee schedule assigned to a merchant. */
2794
- async list(merchantId) {
2795
- return this.request("GET", "/admin/fees/list", {
2796
- query: { merchant_id: merchantId }
2797
- });
2798
- }
2799
- /** Retrieve a single platform fee schedule by ID. */
2800
- async retrieve(feeId) {
2801
- return this.request("GET", `/admin/fees/${encodeURIComponent(feeId)}`);
2802
- }
2803
- /** Update a platform fee schedule. */
2804
- async update(feeId, params) {
2805
- return this.request("PUT", `/admin/fees/${encodeURIComponent(feeId)}`, { body: params });
2806
- }
2807
- /** Delete a platform fee schedule. */
2808
- async delete(feeId) {
2809
- return this.request("DELETE", `/admin/fees/${encodeURIComponent(feeId)}`);
2810
- }
2811
- };
2812
- var PlatformFeeRulesManager = class {
2813
- constructor(request) {
2814
- this.request = request;
2815
- }
2816
- /** Create or replace the platform fee-rule program for a merchant. */
2817
- async upsert(params, merchantId) {
2818
- const body = { ...params, fee_owner: "platform" };
2819
- return this.request("PUT", "/admin/fees/rules", {
2820
- body,
2821
- query: { merchant_id: merchantId }
2822
- });
2823
- }
2824
- /**
2825
- * Retrieve the active platform fee-rule program for a scope, or `null`.
2826
- * `profileId` omitted = merchant-wide program; set = that shop's program.
2827
- */
2828
- async retrieve(merchantId, profileId) {
2829
- return this.request("GET", "/admin/fees/rules", {
2830
- query: { merchant_id: merchantId, profile_id: profileId }
2831
- });
2832
- }
2833
- /**
2834
- * Deactivate a platform fee-rule program. Idempotent. `profileId` omitted
2835
- * targets the merchant-wide program; set targets only that shop's program.
2836
- */
2837
- async delete(merchantId, profileId) {
2838
- await this.request("DELETE", "/admin/fees/rules", {
2839
- query: { merchant_id: merchantId, profile_id: profileId }
2840
- });
2841
- }
2842
- /**
2843
- * Dry-run a candidate fee-rule program against a sample transaction.
2844
- * Returns the matched rule name, whether it fell through, and the computed fee.
2845
- * Does not persist anything.
2846
- */
2847
- async preview(input, merchantId) {
2848
- return this.request("POST", "/admin/fees/rules/preview", {
2849
- body: input,
2850
- query: { merchant_id: merchantId }
2851
- });
2852
- }
2853
- };
2854
-
2855
- // src/internal/resources/platformSettings.ts
2856
- var PlatformSettings = class {
2857
- constructor(request) {
2858
- this.request = request;
2859
- }
2860
- /** Provider-issued presets for this backend environment. */
2861
- async applePayVerificationCatalogue() {
2862
- return this.request("GET", "/payment-link/apple-pay-verification/catalogue");
2863
- }
2864
- /** Atomic, audited update. A stale revision leaves the current file unchanged. */
2865
- async updateApplePayVerification(selection, expectedRevision) {
2866
- return this.update({
2867
- changes: [
2868
- {
2869
- key: "checkout.apple_pay_verification",
2870
- value: selection,
2871
- expected_revision: expectedRevision
2872
- }
2873
- ]
2874
- });
2875
- }
2876
- /** `GET /admin-portal/settings` */
2877
- async retrieve() {
2878
- return this.request("GET", "/admin-portal/settings");
2879
- }
2880
- /**
2881
- * Change platform settings. All changes are applied or none is.
2882
- *
2883
- * `PATCH /admin-portal/settings`
2884
- */
2885
- async update(params) {
2886
- return this.request("PATCH", "/admin-portal/settings", { body: params });
2887
- }
2888
- /** `GET /admin-portal/accounts/{merchantId}/settings` */
2889
- async retrieveMerchant(merchantId, query = {}) {
2890
- return this.request(
2891
- "GET",
2892
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settings`,
2893
- {
2894
- query: projectQuery(query)
2895
- }
2896
- );
2897
- }
2898
- /** `PATCH /admin-portal/accounts/{merchantId}/settings` */
2899
- async updateMerchant(merchantId, params, query = {}) {
2900
- return this.request(
2901
- "PATCH",
2902
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settings`,
2903
- { body: params, query: projectQuery(query) }
2904
- );
2905
- }
2906
- /** `GET /admin-portal/accounts/{merchantId}/shops/{profileId}/settings` */
2907
- async retrieveShop(merchantId, profileId) {
2908
- return this.request("GET", shopPath(merchantId, profileId));
2909
- }
2910
- /** `PATCH /admin-portal/accounts/{merchantId}/shops/{profileId}/settings` */
2911
- async updateShop(merchantId, profileId, params) {
2912
- return this.request("PATCH", shopPath(merchantId, profileId), { body: params });
2913
- }
2914
- };
2915
- function shopPath(merchantId, profileId) {
2916
- return `/admin-portal/accounts/${encodeURIComponent(merchantId)}/shops/${encodeURIComponent(profileId)}/settings`;
2917
- }
2918
- function projectQuery(query) {
2919
- return query.project_id ? { project_id: query.project_id } : {};
2920
- }
2921
-
2922
- // src/internal/resources/platformMessageTemplates.ts
2923
- var PlatformMessageTemplates = class {
2924
- constructor(request) {
2925
- this.request = request;
2926
- }
2927
- /** `GET /admin-portal/message-templates` */
2928
- async list() {
2929
- return this.request("GET", "/admin-portal/message-templates");
2930
- }
2931
- /** `GET /admin-portal/message-templates/{template_id}` */
2932
- async retrieve(templateId) {
2933
- return this.request("GET", `/admin-portal/message-templates/${encodeURIComponent(templateId)}`);
2934
- }
2935
- /**
2936
- * Store the platform's text in one language.
2937
- *
2938
- * `PUT /admin-portal/message-templates/{template_id}/languages/{language}`
2939
- */
2940
- async updateLanguage(templateId, language, params) {
2941
- return this.request(
2942
- "PUT",
2943
- `/admin-portal/message-templates/${encodeURIComponent(templateId)}/languages/${encodeURIComponent(language)}`,
2944
- {
2945
- body: params
2946
- }
2947
- );
2948
- }
2949
- /**
2950
- * Remove the platform's text in one language, so the built-in text applies.
2951
- *
2952
- * `DELETE /admin-portal/message-templates/{template_id}/languages/{language}`
2953
- */
2954
- async resetLanguage(templateId, language, params = {}) {
2955
- return this.request(
2956
- "DELETE",
2957
- `/admin-portal/message-templates/${encodeURIComponent(templateId)}/languages/${encodeURIComponent(language)}`,
2958
- {
2959
- query: { expected_revision: params.expected_revision }
2960
- }
2961
- );
2962
- }
2963
- /** `POST /admin-portal/message-templates/{template_id}/preview` */
2964
- async preview(templateId, params) {
2965
- return this.request(
2966
- "POST",
2967
- `/admin-portal/message-templates/${encodeURIComponent(templateId)}/preview`,
2968
- { body: params }
2969
- );
2970
- }
2971
- /**
2972
- * Send the template to the signed-in admin's own address.
2973
- *
2974
- * `POST /admin-portal/message-templates/{template_id}/test`
2975
- */
2976
- async sendTest(templateId, params) {
2977
- return this.request(
2978
- "POST",
2979
- `/admin-portal/message-templates/${encodeURIComponent(templateId)}/test`,
2980
- { body: params }
2981
- );
2982
- }
2983
- };
2984
-
2985
- // src/internal/resources/nativeRenewals.ts
2986
- var NativeRenewals = class {
2987
- constructor(request, serviceKey) {
2988
- this.request = request;
2989
- this.serviceKey = serviceKey;
2990
- }
2991
- /** Close the previous renewal payment using the internal service key and its owner context. */
2992
- async close(paymentId, target, options) {
2993
- return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/native-renewal-close`, {
2994
- ...options,
2995
- headers: {
2996
- ...options?.headers,
2997
- "X-Internal-API-Key": this.serviceKey,
2998
- "X-Merchant-Id": target.merchant_id,
2999
- "X-Profile-Id": target.profile_id
3000
- }
3001
- });
3002
- }
3003
- };
231
+ visibleCustomFields
232
+ } from "./chunk-LPDUHBHT.js";
233
+ import {
234
+ APPLE_PAY_BUTTON_STYLES,
235
+ APPLE_PAY_BUTTON_TYPES,
236
+ CARD_FIELD_CHROMES,
237
+ CARD_FIELD_FONT_SIZES,
238
+ CARD_FIELD_WEIGHTS,
239
+ CARD_FOCUS_RINGS,
240
+ GOOGLE_PAY_BUTTON_COLORS,
241
+ GOOGLE_PAY_BUTTON_TYPES,
242
+ NOMUPAY_FORM_STYLES,
243
+ PAYPAL_CARD_LAYOUTS,
244
+ PAYPAL_LABEL_STYLES,
245
+ STRIPE_INPUT_STYLES,
246
+ STRIPE_LABEL_PLACEMENTS,
247
+ STRIPE_SPACINGS,
248
+ STRIPE_THEMES,
249
+ WHOP_ACCENT_COLORS,
250
+ WHOP_BILLING_DETAILS,
251
+ WHOP_CARD_PRESETS,
252
+ WHOP_EMAIL_LABELS,
253
+ WHOP_GRAY_COLORS,
254
+ WHOP_LOOKS,
255
+ WHOP_LOOK_SETTINGS,
256
+ WHOP_RADII,
257
+ WHOP_SELECTIONS,
258
+ WHOP_SHADOWS,
259
+ cardFieldFontPx,
260
+ cardFieldWeightValue,
261
+ matchWhopLook,
262
+ nearestWhopAccent,
263
+ resolveApplePayButtonStyle,
264
+ resolveGooglePayButtonColor,
265
+ resolveStripeTheme,
266
+ resolveWhopAccent,
267
+ stripeSpacingValues,
268
+ whopAccentSwatch,
269
+ whopCardElement
270
+ } from "./chunk-INQQLXAV.js";
271
+ import {
272
+ AIRWALLEX_AUTOFILL_TREATMENTS,
273
+ AIRWALLEX_CARD_LAYOUTS,
274
+ AIRWALLEX_CARD_PRESETS,
275
+ AIRWALLEX_CARD_PRESET_FALLBACK,
276
+ AIRWALLEX_FIELD_CHROMES,
277
+ AIRWALLEX_FIELD_FONT_SIZES,
278
+ AIRWALLEX_FIELD_WEIGHTS,
279
+ AIRWALLEX_FOCUS_RINGS,
280
+ AIRWALLEX_LABEL_STYLES,
281
+ AIRWALLEX_NETWORK_MARKS,
282
+ airwallexCardLayout,
283
+ airwallexCardLayoutIsCoherent,
284
+ airwallexCellWeight,
285
+ airwallexFieldFontPx,
286
+ airwallexFieldWeightValue,
287
+ asAirwallexCardPreset,
288
+ resolveAirwallexCardPreset,
289
+ resolveAirwallexLabelStyle
290
+ } from "./chunk-WSOUQS6C.js";
291
+ import {
292
+ CheckoutSession
293
+ } from "./chunk-YOFIOZJ5.js";
294
+ import {
295
+ Delopay
296
+ } from "./chunk-ZDYRYXY3.js";
297
+ import {
298
+ VatRates
299
+ } from "./chunk-RUDKQPEO.js";
300
+ import {
301
+ Verification
302
+ } from "./chunk-L7474OST.js";
303
+ import {
304
+ Webhooks,
305
+ isSubscriptionDisputeWebhook,
306
+ isSubscriptionLifecycleWebhook
307
+ } from "./chunk-2JSBGTTW.js";
308
+ import {
309
+ WhopResolutionCases
310
+ } from "./chunk-OMGDHJYX.js";
311
+ import {
312
+ Settlement
313
+ } from "./chunk-W3EFNOH6.js";
314
+ import {
315
+ ShopLabels
316
+ } from "./chunk-UH2A7ZDK.js";
317
+ import {
318
+ Shops
319
+ } from "./chunk-MTFLXMYI.js";
320
+ import {
321
+ StripeConnect
322
+ } from "./chunk-JAJOUFPM.js";
323
+ import {
324
+ Subscriptions
325
+ } from "./chunk-7M2KEERO.js";
326
+ import {
327
+ Support
328
+ } from "./chunk-WZK3BIHG.js";
329
+ import {
330
+ ThreeDsRules
331
+ } from "./chunk-HJL32HDH.js";
332
+ import {
333
+ Users
334
+ } from "./chunk-3NKFPZRS.js";
335
+ import {
336
+ Refunds
337
+ } from "./chunk-CRNICOYA.js";
338
+ import {
339
+ Regions
340
+ } from "./chunk-LX6E5TTR.js";
341
+ import {
342
+ Relay
343
+ } from "./chunk-RWCCRTLZ.js";
344
+ import {
345
+ Risk
346
+ } from "./chunk-645BQ53W.js";
347
+ import {
348
+ Routing
349
+ } from "./chunk-B72YNBLS.js";
350
+ import {
351
+ Search
352
+ } from "./chunk-UU3YQJT6.js";
353
+ import {
354
+ SellToRestrictions
355
+ } from "./chunk-G7FHCGT5.js";
356
+ import {
357
+ Settings
358
+ } from "./chunk-LG7XHNAY.js";
359
+ import {
360
+ Persons
361
+ } from "./chunk-Q347PTXI.js";
362
+ import {
363
+ Poll
364
+ } from "./chunk-ULZWGW2O.js";
365
+ import {
366
+ ProcessorCosts
367
+ } from "./chunk-Y4XILACH.js";
368
+ import {
369
+ ProcessorImports,
370
+ PspImportEventStream
371
+ } from "./chunk-6TBA7KZO.js";
372
+ import {
373
+ Products
374
+ } from "./chunk-HO3SKXCG.js";
375
+ import {
376
+ ProfileAcquirers
377
+ } from "./chunk-VJ2L2GOF.js";
378
+ import {
379
+ Profiles
380
+ } from "./chunk-DFC4T6FA.js";
381
+ import {
382
+ Projects
383
+ } from "./chunk-QF3Q3TPV.js";
384
+ import {
385
+ MessageTemplates
386
+ } from "./chunk-V3PCNGDH.js";
387
+ import {
388
+ OperationLimits
389
+ } from "./chunk-KAKDDX4L.js";
390
+ import {
391
+ PaymentLinks
392
+ } from "./chunk-EXW4VDRM.js";
393
+ import {
394
+ PaymentMethods
395
+ } from "./chunk-IVQDVFFR.js";
396
+ import {
397
+ Payments
398
+ } from "./chunk-CSY3IZOC.js";
399
+ import {
400
+ PayoutDestinations
401
+ } from "./chunk-ZYWW275O.js";
402
+ import {
403
+ Payouts
404
+ } from "./chunk-DO2DYNFW.js";
405
+ import {
406
+ PaypalDisputes
407
+ } from "./chunk-US6R4TM4.js";
408
+ import {
409
+ Forex
410
+ } from "./chunk-GVHN6BAJ.js";
411
+ import {
412
+ IdentityVerifications
413
+ } from "./chunk-RBN2H7QR.js";
414
+ import {
415
+ Industries
416
+ } from "./chunk-34AF36TY.js";
417
+ import {
418
+ InvoiceSettingsResource
419
+ } from "./chunk-T6N35YFJ.js";
420
+ import {
421
+ Invoices
422
+ } from "./chunk-5P2AO6XY.js";
423
+ import {
424
+ Live,
425
+ LiveEventStream
426
+ } from "./chunk-7QGASY6O.js";
427
+ import {
428
+ Mandates
429
+ } from "./chunk-KKKEARPT.js";
430
+ import {
431
+ MerchantAccounts
432
+ } from "./chunk-THPCSJUP.js";
433
+ import {
434
+ Disputes
435
+ } from "./chunk-2TQA6UYY.js";
436
+ import {
437
+ EphemeralKeys
438
+ } from "./chunk-3ZHS3MFZ.js";
439
+ import {
440
+ Events
441
+ } from "./chunk-DVA3T3MD.js";
442
+ import {
443
+ Export
444
+ } from "./chunk-WBAPQODS.js";
445
+ import {
446
+ ExternalRecords
447
+ } from "./chunk-CTB54SCJ.js";
448
+ import {
449
+ FeatureMatrix
450
+ } from "./chunk-OEKPQXXM.js";
451
+ import {
452
+ FeeRulesManager,
453
+ Fees
454
+ } from "./chunk-4T3MXBO2.js";
455
+ import {
456
+ Files
457
+ } from "./chunk-ZX4JTR2J.js";
458
+ import {
459
+ ChargebackPrevention
460
+ } from "./chunk-DLKGOSZR.js";
461
+ import {
462
+ CheckoutMethods
463
+ } from "./chunk-VW7GWSP6.js";
464
+ import {
465
+ CheckoutRecovery
466
+ } from "./chunk-GEYCGYAN.js";
467
+ import {
468
+ CheckoutTemplates
469
+ } from "./chunk-BEND2MZX.js";
470
+ import {
471
+ Connectors
472
+ } from "./chunk-F6JABQLJ.js";
473
+ import {
474
+ CostRules
475
+ } from "./chunk-FZYEZLTM.js";
476
+ import {
477
+ Customers
478
+ } from "./chunk-LZUHCGJ3.js";
479
+ import {
480
+ Branding,
481
+ brandingAssetPath
482
+ } from "./chunk-Q6HI2G7W.js";
483
+ import {
484
+ AvailabilityOverrides
485
+ } from "./chunk-3L3B46AZ.js";
486
+ import {
487
+ Billing
488
+ } from "./chunk-QGTVOC6O.js";
489
+ import {
490
+ BuyerAccount
491
+ } from "./chunk-6H7K5DDI.js";
492
+ import {
493
+ BuyerBlocklist
494
+ } from "./chunk-NXORFP3R.js";
495
+ import {
496
+ BuyerConversations
497
+ } from "./chunk-5VS3SUPL.js";
498
+ import {
499
+ BuyerEvidenceReviews
500
+ } from "./chunk-6VIC6Y7T.js";
501
+ import {
502
+ BuyerPortal
503
+ } from "./chunk-I5KOMBQ3.js";
504
+ import {
505
+ Cards
506
+ } from "./chunk-55XO7BFC.js";
507
+ import {
508
+ Analytics
509
+ } from "./chunk-26THONSG.js";
510
+ import {
511
+ AnalyticsDashboard
512
+ } from "./chunk-2RGSWTDI.js";
513
+ import {
514
+ ApiKeys
515
+ } from "./chunk-2PC2VAR7.js";
516
+ import {
517
+ Audit
518
+ } from "./chunk-DECN4QU3.js";
519
+ import {
520
+ Authentication
521
+ } from "./chunk-JPVR2NHV.js";
522
+ import {
523
+ DelopayCore
524
+ } from "./chunk-H2NGR5JG.js";
525
+ import {
526
+ DelopayAuthenticationError,
527
+ DelopayError
528
+ } from "./chunk-37BJUQ32.js";
529
+ import {
530
+ PAYMENT_CURRENCIES
531
+ } from "./chunk-CMETZEUX.js";
532
+ import {
533
+ DEFAULT_ENIGMA_CARD_FORM,
534
+ ENIGMA_CLICK_FEEDBACK,
535
+ ENIGMA_CORNERS,
536
+ ENIGMA_CUSTOM_CSS_MAX_LENGTH,
537
+ ENIGMA_CUSTOM_HEIGHT_DEFAULT,
538
+ ENIGMA_CUSTOM_HEIGHT_MAX,
539
+ ENIGMA_CUSTOM_HEIGHT_MIN,
540
+ ENIGMA_FIELD_CHROMES,
541
+ ENIGMA_FIELD_HEIGHTS,
542
+ ENIGMA_FIELD_MOTIONS,
543
+ ENIGMA_FIELD_ORDERS,
544
+ ENIGMA_FOCUS_RINGS,
545
+ ENIGMA_LABEL_PLACEMENTS,
546
+ ENIGMA_LABEL_TONES,
547
+ ENIGMA_LOADING_STYLES,
548
+ ENIGMA_NETWORK_MARKS,
549
+ ENIGMA_OPENINGS,
550
+ ENIGMA_PAY_FEEDBACK,
551
+ ENIGMA_REVEALS,
552
+ ENIGMA_ROW_GAPS,
553
+ ENIGMA_STYLE_MODES,
554
+ ENIGMA_TEMPLATES,
555
+ ENIGMA_TEMPLATE_PRESETS,
556
+ applyEnigmaTemplate,
557
+ decodeEnigmaCardForm,
558
+ encodeEnigmaCardForm,
559
+ enigmaCornerPx,
560
+ enigmaCustomCssProblem,
561
+ enigmaNamesInside,
562
+ enigmaTemplateChanges
563
+ } from "./chunk-MYDDK2Z3.js";
3004
564
 
3005
565
  // src/internal/client.ts
3006
566
  var DelopayInternal = class extends Delopay {
@@ -3055,16 +615,21 @@ export {
3055
615
  AdminSupport,
3056
616
  Analytics,
3057
617
  AnalyticsDashboard,
618
+ ApiKeys,
3058
619
  Audit,
3059
620
  AuditLogs,
621
+ Authentication,
3060
622
  AvailabilityOverrides,
3061
623
  BRANDING_EXPORT_FORMAT,
3062
624
  BRANDING_EXPORT_VERSION,
3063
625
  BUILTIN_PAYMENT_ICON_KEYS,
626
+ Billing,
3064
627
  Branding,
628
+ BuyerAccount,
3065
629
  BuyerBlocklist,
3066
630
  BuyerConversations,
3067
631
  BuyerEvidenceReviews,
632
+ BuyerPortal,
3068
633
  CARD_FIELD_CHROMES,
3069
634
  CARD_FIELD_FONT_SIZES,
3070
635
  CARD_FIELD_WEIGHTS,
@@ -3090,7 +655,9 @@ export {
3090
655
  Configs,
3091
656
  ConnectorRestrictionRules,
3092
657
  ConnectorRestrictions,
658
+ Connectors,
3093
659
  CostRules,
660
+ Customers,
3094
661
  DEFAULT_BADGES,
3095
662
  DEFAULT_BADGES_DARK,
3096
663
  DEFAULT_BRANDING,
@@ -3099,9 +666,11 @@ export {
3099
666
  DEFAULT_NOTICES,
3100
667
  Delopay,
3101
668
  DelopayAuthenticationError,
669
+ DelopayCore,
3102
670
  DelopayError,
3103
671
  DelopayInternal,
3104
672
  Diagnostic,
673
+ Disputes,
3105
674
  ENIGMA_CLICK_FEEDBACK,
3106
675
  ENIGMA_CORNERS,
3107
676
  ENIGMA_CUSTOM_CSS_MAX_LENGTH,
@@ -3124,10 +693,14 @@ export {
3124
693
  ENIGMA_STYLE_MODES,
3125
694
  ENIGMA_TEMPLATES,
3126
695
  ENIGMA_TEMPLATE_PRESETS,
696
+ EphemeralKeys,
697
+ Events,
3127
698
  Export,
3128
699
  ExternalRecords,
3129
700
  FeatureMatrix,
3130
701
  FeeProgramBuilder,
702
+ FeeRulesManager,
703
+ Fees,
3131
704
  Files,
3132
705
  Forex,
3133
706
  GOOGLE_PAY_BUTTON_COLORS,
@@ -3144,6 +717,8 @@ export {
3144
717
  MAX_SECTION_ORDER,
3145
718
  METHOD_SECTIONS,
3146
719
  MIN_SECTION_ORDER,
720
+ Mandates,
721
+ MerchantAccounts,
3147
722
  MessageTemplates,
3148
723
  NATIVE_ELEMENT_POSITIONS,
3149
724
  NATIVE_PANES_MAX,
@@ -3165,21 +740,32 @@ export {
3165
740
  PAYPAL_CARD_LAYOUTS,
3166
741
  PAYPAL_LABEL_STYLES,
3167
742
  PRESENTATION_CONTRACT_VERSION,
743
+ PaymentLinks,
744
+ PaymentMethods,
745
+ Payments,
3168
746
  PayoutDestinations,
747
+ Payouts,
3169
748
  PaypalDisputes,
3170
749
  Persons,
3171
750
  PlatformBilling,
3172
751
  PlatformFees,
3173
752
  PlatformMessageTemplates,
3174
753
  PlatformSettings,
754
+ Poll,
3175
755
  PresentationCache,
3176
756
  ProcessorCosts,
3177
757
  ProcessorImports,
3178
758
  Products,
759
+ ProfileAcquirers,
760
+ Profiles,
761
+ Projects,
3179
762
  PspImportEventStream,
3180
763
  RTL_CHECKOUT_LOCALES,
764
+ Refunds,
3181
765
  Regions,
766
+ Relay,
3182
767
  Risk,
768
+ Routing,
3183
769
  SECTION_ALIASES,
3184
770
  STRIPE_FALLBACK_PANE_CATALOG,
3185
771
  STRIPE_FALLBACK_PANE_METHODS,
@@ -3203,9 +789,15 @@ export {
3203
789
  Settings,
3204
790
  Settlement,
3205
791
  ShopLabels,
792
+ Shops,
793
+ StripeConnect,
3206
794
  Subscriptions,
3207
795
  Support,
796
+ ThreeDsRules,
3208
797
  UNKNOWN_SECTION_ORDER,
798
+ Users,
799
+ VatRates,
800
+ Verification,
3209
801
  WCAG_AA_TEXT,
3210
802
  WCAG_AA_UI,
3211
803
  WHOP_ACCENT_COLORS,