@delopay/sdk 0.407.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 -18404
  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 +417 -187
  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 +855 -21120
  640. package/dist/internal.cjs.map +1 -1
  641. package/dist/internal.d.cts +109 -6144
  642. package/dist/internal.d.ts +109 -6144
  643. package/dist/internal.js +478 -2932
  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-WArxrQje.d.cts → types.d.cts} +3 -11109
  1112. package/dist/{index-WArxrQje.d.ts → types.d.ts} +3 -11109
  1113. package/dist/types.js +1 -0
  1114. package/dist/types.js.map +1 -0
  1115. package/package.json +29 -17
  1116. package/dist/chunk-DZK6LFNW.js +0 -18084
  1117. package/dist/chunk-DZK6LFNW.js.map +0 -1
@@ -0,0 +1,311 @@
1
+ // src/resources/subscriptions.ts
2
+ var Subscriptions = class {
3
+ constructor(request) {
4
+ this.request = request;
5
+ }
6
+ /** Read native enrollment settings. Pass X-Profile-Id in options.headers. */
7
+ async getNativeConfig(options) {
8
+ return this.request("GET", "/subscriptions/native/config", { ...options });
9
+ }
10
+ /** Replace native enrollment settings. Pass X-Profile-Id in options.headers. */
11
+ async updateNativeConfig(params, options) {
12
+ return this.request("PUT", "/subscriptions/native/config", { body: params, ...options });
13
+ }
14
+ /** Read merchant-wide renewal recovery settings. */
15
+ async getNativeDunning(options) {
16
+ return this.request("GET", "/subscriptions/native/dunning", { ...options });
17
+ }
18
+ async updateNativeDunning(params, options) {
19
+ return this.request("PUT", "/subscriptions/native/dunning", { body: params, ...options });
20
+ }
21
+ /** Read supported actions for an owned subscription. Pass X-Profile-Id in options.headers. */
22
+ async getCapabilities(subscriptionId, options) {
23
+ return this.request(
24
+ "GET",
25
+ `/subscriptions/${encodeURIComponent(subscriptionId)}/capabilities`,
26
+ { ...options }
27
+ );
28
+ }
29
+ /**
30
+ * Create and immediately confirm a subscription. `POST /subscriptions`
31
+ *
32
+ * For billing processors that require buyer approval (e.g. PayPal), the
33
+ * response carries a `redirect_url` the customer must be sent to.
34
+ */
35
+ async createAndConfirm(params, options) {
36
+ return this.request("POST", "/subscriptions", { body: params, ...options });
37
+ }
38
+ /** Create a subscription without confirming it. `POST /subscriptions/create` */
39
+ async create(params, options) {
40
+ return this.request("POST", "/subscriptions/create", { body: params, ...options });
41
+ }
42
+ /**
43
+ * Adopt an existing Creem subscription. `POST /subscriptions/adopt`
44
+ *
45
+ * Requires adoption to be enabled on the deployment and `X-Profile-Id` in
46
+ * options.headers. Adoption charges nothing and emits no invoice or webhook.
47
+ * Repeating the processor subscription ID returns the existing DeloPay ID.
48
+ * Retry when handoff_confirmed is false. That flag confirms persistence,
49
+ * not the merchant's external switch-over: stop processing Creem events in
50
+ * your own integration when handing subsequent events to DeloPay.
51
+ */
52
+ async adopt(params, options) {
53
+ return this.request("POST", "/subscriptions/adopt", { body: params, ...options });
54
+ }
55
+ /** Retrieve a subscription by ID. `GET /subscriptions/{subscriptionId}` */
56
+ async retrieve(subscriptionId, options) {
57
+ return this.request("GET", `/subscriptions/${encodeURIComponent(subscriptionId)}`, {
58
+ ...options
59
+ });
60
+ }
61
+ /**
62
+ * Confirm a previously created subscription. `POST /subscriptions/{subscriptionId}/confirm`
63
+ *
64
+ * Like {@link createAndConfirm}, the response may carry a `redirect_url` for
65
+ * processors that require buyer approval.
66
+ */
67
+ async confirm(subscriptionId, params, options) {
68
+ return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/confirm`, {
69
+ body: params,
70
+ ...options
71
+ });
72
+ }
73
+ /**
74
+ * Update a subscription's plan/price. `PUT /subscriptions/{subscriptionId}/update`
75
+ *
76
+ * From the dashboard this counts against the caller's `subscription_change`
77
+ * operation limit; an over-limit call fails with `DE_01` and nothing reaches
78
+ * the processor. Calls made with an API key are not limited.
79
+ */
80
+ async update(subscriptionId, params, options) {
81
+ return this.request("PUT", `/subscriptions/${encodeURIComponent(subscriptionId)}/update`, {
82
+ body: params,
83
+ ...options
84
+ });
85
+ }
86
+ /**
87
+ * List subscriptions for the profile, or one customer's with `customer_id`.
88
+ * `GET /subscriptions/list`
89
+ */
90
+ async list(params, options) {
91
+ return this.request("GET", "/subscriptions/list", {
92
+ query: params,
93
+ ...options
94
+ });
95
+ }
96
+ /** Estimate the cost of a subscription before creating it. `GET /subscriptions/estimate` */
97
+ async getEstimate(params, options) {
98
+ return this.request("GET", "/subscriptions/estimate", {
99
+ query: params,
100
+ ...options
101
+ });
102
+ }
103
+ /** List purchasable subscription items (plans/addons). `GET /subscriptions/items` */
104
+ async getItems(params, options) {
105
+ return this.request("GET", "/subscriptions/items", {
106
+ query: params,
107
+ ...options
108
+ });
109
+ }
110
+ /**
111
+ * {@link getItems}, with whether the list is only the first part of what the
112
+ * processor holds. `GET /subscriptions/items`
113
+ *
114
+ * The backend states that in the `X-Delopay-Items-Truncated` response
115
+ * header (Stripe Billing lists its first 100 products), which the plain
116
+ * {@link getItems} cannot return. Without `limit` and `offset` every item
117
+ * the billing account offers is listed, up to 500.
118
+ */
119
+ async getItemsPage(params, options) {
120
+ let truncated = false;
121
+ const items = await this.request(
122
+ "GET",
123
+ "/subscriptions/items",
124
+ {
125
+ query: params,
126
+ ...options,
127
+ onDownloadProgress: (event) => {
128
+ truncated = event.headers.get("x-delopay-items-truncated")?.toLowerCase() === "true";
129
+ options?.onDownloadProgress?.(event);
130
+ }
131
+ }
132
+ );
133
+ return { items, truncated };
134
+ }
135
+ /**
136
+ * Pause a subscription. `POST /subscriptions/{subscriptionId}/pause`
137
+ *
138
+ * From the dashboard this counts against the caller's `subscription_change`
139
+ * operation limit; an over-limit call fails with `DE_01` and nothing reaches
140
+ * the processor. Calls made with an API key are not limited.
141
+ *
142
+ * The body defaults to `{}` so the request still carries
143
+ * `Content-Type: application/json` even when no params are passed — the
144
+ * backend rejects the POST otherwise ("Unsupported content type").
145
+ */
146
+ async pause(subscriptionId, params, options) {
147
+ return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/pause`, {
148
+ body: params ?? {},
149
+ ...options
150
+ });
151
+ }
152
+ /**
153
+ * Resume a paused subscription. `POST /subscriptions/{subscriptionId}/resume`
154
+ *
155
+ * From the dashboard this counts against the caller's `subscription_change`
156
+ * operation limit; an over-limit call fails with `DE_01` and nothing reaches
157
+ * the processor. Calls made with an API key are not limited.
158
+ */
159
+ async resume(subscriptionId, params, options) {
160
+ return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/resume`, {
161
+ body: params ?? {},
162
+ ...options
163
+ });
164
+ }
165
+ /**
166
+ * Cancel a subscription. `POST /subscriptions/{subscriptionId}/cancel`
167
+ *
168
+ * A subscription in a state it cannot be cancelled from is refused with
169
+ * `DE_11`; `error.data.reason` then names why (`SubscriptionActionRefusal`).
170
+ *
171
+ * From the dashboard this counts against the caller's `subscription_change`
172
+ * operation limit; an over-limit call fails with `DE_01` and nothing reaches
173
+ * the processor. Calls made with an API key are not limited.
174
+ */
175
+ async cancel(subscriptionId, params, options) {
176
+ return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/cancel`, {
177
+ body: params ?? {},
178
+ ...options
179
+ });
180
+ }
181
+ /**
182
+ * Read 1 to 50 subscriptions back from their billing processor and mirror
183
+ * what it reports. `POST /subscriptions/sync`
184
+ *
185
+ * Nothing is written at the processor. A status is mirrored only with the
186
+ * time the processor stamped it with, and never over a newer event already
187
+ * recorded; a plan only with its own stamp. One result per id, in request
188
+ * order; one that fails does not stop the others.
189
+ */
190
+ async sync(params, options) {
191
+ return this.request("POST", "/subscriptions/sync", { body: params, ...options });
192
+ }
193
+ /**
194
+ * Read one subscription back from its billing processor and mirror what it
195
+ * reports, as {@link sync} does, with what the processor reported beside
196
+ * what the mirror now holds. `POST /subscriptions/{subscriptionId}/sync`
197
+ */
198
+ async syncOne(subscriptionId, options) {
199
+ return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/sync`, {
200
+ ...options
201
+ });
202
+ }
203
+ /**
204
+ * List the subscriptions a billing account holds at its processor, and how
205
+ * each relates to DeloPay's: already held, new (its buyer is a DeloPay
206
+ * customer), needing a customer, ended, or not adoptable here.
207
+ * `POST /subscriptions/import/preview`
208
+ *
209
+ * Reads only; nothing is written here or at the processor. Creem and
210
+ * Stripe Billing can be listed; PayPal cannot, which `capabilities` states
211
+ * (`reason_code: 'listing_unsupported'`).
212
+ */
213
+ async importPreview(params, options) {
214
+ return this.request("POST", "/subscriptions/import/preview", { body: params, ...options });
215
+ }
216
+ /**
217
+ * Take 1 to 25 processor subscriptions over, each through {@link adopt}
218
+ * with every one of its checks, one after another.
219
+ * `POST /subscriptions/import/apply`
220
+ *
221
+ * One result per selection, in request order; one refused does not stop
222
+ * the others.
223
+ */
224
+ async importApply(params, options) {
225
+ return this.request("POST", "/subscriptions/import/apply", { body: params, ...options });
226
+ }
227
+ /**
228
+ * Resolve which of the given payments were raised by a subscription.
229
+ * `POST /subscriptions/payments/lookup`
230
+ *
231
+ * The linkage exists in one direction only — an invoice points at the payment
232
+ * it settled, and nothing is stamped on the payment — so this is the only way
233
+ * to tell a subscription charge from a one-off one when you are holding a
234
+ * page of payments. In particular, do not use `off_session` or the presence
235
+ * of a mandate: an ordinary saved-card charge sets those identically.
236
+ *
237
+ * Ids that belong to no subscription are **absent** from `links` rather than
238
+ * returned as an error, so match on presence:
239
+ *
240
+ * ```ts
241
+ * const { links } = await subscriptions.lookupPayments(
242
+ * { payment_ids: page.map((p) => p.payment_id) },
243
+ * { headers: { 'X-Profile-Id': profileId } },
244
+ * );
245
+ * const bySubscription = new Map(links.map((l) => [l.payment_id, l]));
246
+ * ```
247
+ *
248
+ * Profile-scoped like every other subscription route, and that matters more
249
+ * here than elsewhere: a `payment_id` is merchant-supplied and only unique
250
+ * within a merchant, so the shop is part of the question, not an
251
+ * optimisation. Pass the profile that owns **the payments** — for a list
252
+ * spanning several shops, group the ids by shop and call once per group.
253
+ *
254
+ * At most 200 ids per call.
255
+ */
256
+ async lookupPayments(params, options) {
257
+ return this.request("POST", "/subscriptions/payments/lookup", { body: params, ...options });
258
+ }
259
+ /**
260
+ * One subscription's billing history, newest cycle first.
261
+ * `GET /subscriptions/{subscriptionId}/invoices`
262
+ *
263
+ * {@link retrieve} carries only the *latest* invoice, which is the current
264
+ * cycle — a subscription that has renewed monthly for a year has one of those
265
+ * and twelve of these. Use this wherever a merchant needs to see what a
266
+ * subscription has actually billed, in particular on self-charging processors
267
+ * (Creem, PayPal) where each renewal is charged by the processor and mirrored
268
+ * here rather than raised as a DeloPay payment.
269
+ *
270
+ * Two things to render honestly, both decided rather than incidental:
271
+ *
272
+ * - `amount` is **gross** and `refunded_amount` sits beside it. Do not net
273
+ * them: the difference between the two is not a smaller charge.
274
+ * - A `refunded_amount` of `null` is "not reported" and must not render as
275
+ * `0`. Likewise a processor-hosted origination records a bootstrap invoice
276
+ * at `0` before the buyer has paid anything, so a zero amount on such a
277
+ * subscription is a placeholder rather than a free cycle.
278
+ *
279
+ * Profile-scoped like every other subscription route.
280
+ */
281
+ async listInvoices(subscriptionId, params, options) {
282
+ return this.request("GET", `/subscriptions/${encodeURIComponent(subscriptionId)}/invoices`, {
283
+ query: params,
284
+ ...options
285
+ });
286
+ }
287
+ /**
288
+ * Which billing processor this shop's subscriptions run on.
289
+ * `GET /subscriptions/billing_processor`
290
+ *
291
+ * The same mapping is derivable from the connector inventory
292
+ * (`GET /account/{merchant_id}/connectors`), but that route is gated by a
293
+ * connector-read permission granted independently of subscriptions — so a
294
+ * role authorised to create subscriptions could be unable to learn which
295
+ * processor it was creating them on. This answers under the same
296
+ * authorization as the rest of the subscription API.
297
+ *
298
+ * Reach for it when the client must branch on the processor *before* calling
299
+ * — origination differs by processor, and guessing is destructive. Resolve
300
+ * the shop's `billing_processor_id` first: a shop that runs no subscriptions
301
+ * has none assigned, and this route has no identity to report for it.
302
+ */
303
+ async getBillingProcessor(options) {
304
+ return this.request("GET", "/subscriptions/billing_processor", { ...options });
305
+ }
306
+ };
307
+
308
+ export {
309
+ Subscriptions
310
+ };
311
+ //# sourceMappingURL=chunk-7M2KEERO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/subscriptions.ts"],"sourcesContent":["import type {\n BuyerPortalSubscriptionCapabilities,\n NativeShopConfigRequest,\n NativeShopConfigResponse,\n NativeDunningConfigRequest,\n NativeDunningConfigResponse,\n AdoptSubscriptionRequest,\n AdoptSubscriptionResponse,\n CreateSubscriptionRequest,\n CreateAndConfirmSubscriptionRequest,\n ConfirmSubscriptionRequest,\n UpdateSubscriptionRequest,\n PauseSubscriptionRequest,\n ResumeSubscriptionRequest,\n CancelSubscriptionRequest,\n SubscriptionResponse,\n ConfirmSubscriptionResponse,\n PauseSubscriptionResponse,\n ResumeSubscriptionResponse,\n CancelSubscriptionResponse,\n GetSubscriptionItemsResponse,\n GetSubscriptionItemsParams,\n SubscriptionEstimateResponse,\n SubscriptionEstimateParams,\n SubscriptionListParams,\n SubscriptionPaymentLookupRequest,\n SubscriptionPaymentLookupResponse,\n SubscriptionInvoiceListParams,\n SubscriptionInvoiceListResponse,\n SubscriptionBillingProcessorResponse,\n SubscriptionImportApplyRequest,\n SubscriptionImportApplyResponse,\n SubscriptionImportPreviewRequest,\n SubscriptionImportPreviewResponse,\n SubscriptionItemsPage,\n SubscriptionSyncRequest,\n SubscriptionSyncResponse,\n SubscriptionSyncResult,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * Subscription endpoints are profile-scoped: the backend requires an\n * `X-Profile-Id` header to resolve the shop / billing processor (`IR_04`\n * otherwise). Pass it through the per-call `options.headers`, e.g.\n * `subscriptions.list(params, { headers: { 'X-Profile-Id': profileId } })`.\n */\nexport class Subscriptions {\n constructor(private readonly request: RequestFn) {}\n\n /** Read native enrollment settings. Pass X-Profile-Id in options.headers. */\n async getNativeConfig(options?: RequestExtras): Promise<NativeShopConfigResponse> {\n return this.request('GET', '/subscriptions/native/config', { ...options });\n }\n\n /** Replace native enrollment settings. Pass X-Profile-Id in options.headers. */\n async updateNativeConfig(\n params: NativeShopConfigRequest,\n options?: RequestExtras,\n ): Promise<NativeShopConfigResponse> {\n return this.request('PUT', '/subscriptions/native/config', { body: params, ...options });\n }\n\n /** Read merchant-wide renewal recovery settings. */\n async getNativeDunning(options?: RequestExtras): Promise<NativeDunningConfigResponse> {\n return this.request('GET', '/subscriptions/native/dunning', { ...options });\n }\n\n async updateNativeDunning(\n params: NativeDunningConfigRequest,\n options?: RequestExtras,\n ): Promise<NativeDunningConfigResponse> {\n return this.request('PUT', '/subscriptions/native/dunning', { body: params, ...options });\n }\n\n /** Read supported actions for an owned subscription. Pass X-Profile-Id in options.headers. */\n async getCapabilities(\n subscriptionId: string,\n options?: RequestExtras,\n ): Promise<BuyerPortalSubscriptionCapabilities> {\n return this.request(\n 'GET',\n `/subscriptions/${encodeURIComponent(subscriptionId)}/capabilities`,\n { ...options },\n );\n }\n\n /**\n * Create and immediately confirm a subscription. `POST /subscriptions`\n *\n * For billing processors that require buyer approval (e.g. PayPal), the\n * response carries a `redirect_url` the customer must be sent to.\n */\n async createAndConfirm(\n params: CreateAndConfirmSubscriptionRequest,\n options?: RequestExtras,\n ): Promise<ConfirmSubscriptionResponse> {\n return this.request('POST', '/subscriptions', { body: params, ...options });\n }\n\n /** Create a subscription without confirming it. `POST /subscriptions/create` */\n async create(\n params: CreateSubscriptionRequest,\n options?: RequestExtras,\n ): Promise<SubscriptionResponse> {\n return this.request('POST', '/subscriptions/create', { body: params, ...options });\n }\n\n /**\n * Adopt an existing Creem subscription. `POST /subscriptions/adopt`\n *\n * Requires adoption to be enabled on the deployment and `X-Profile-Id` in\n * options.headers. Adoption charges nothing and emits no invoice or webhook.\n * Repeating the processor subscription ID returns the existing DeloPay ID.\n * Retry when handoff_confirmed is false. That flag confirms persistence,\n * not the merchant's external switch-over: stop processing Creem events in\n * your own integration when handing subsequent events to DeloPay.\n */\n async adopt(\n params: AdoptSubscriptionRequest,\n options?: RequestExtras,\n ): Promise<AdoptSubscriptionResponse> {\n return this.request('POST', '/subscriptions/adopt', { body: params, ...options });\n }\n\n /** Retrieve a subscription by ID. `GET /subscriptions/{subscriptionId}` */\n async retrieve(subscriptionId: string, options?: RequestExtras): Promise<SubscriptionResponse> {\n return this.request('GET', `/subscriptions/${encodeURIComponent(subscriptionId)}`, {\n ...options,\n });\n }\n\n /**\n * Confirm a previously created subscription. `POST /subscriptions/{subscriptionId}/confirm`\n *\n * Like {@link createAndConfirm}, the response may carry a `redirect_url` for\n * processors that require buyer approval.\n */\n async confirm(\n subscriptionId: string,\n params: ConfirmSubscriptionRequest,\n options?: RequestExtras,\n ): Promise<ConfirmSubscriptionResponse> {\n return this.request('POST', `/subscriptions/${encodeURIComponent(subscriptionId)}/confirm`, {\n body: params,\n ...options,\n });\n }\n\n /**\n * Update a subscription's plan/price. `PUT /subscriptions/{subscriptionId}/update`\n *\n * From the dashboard this counts against the caller's `subscription_change`\n * operation limit; an over-limit call fails with `DE_01` and nothing reaches\n * the processor. Calls made with an API key are not limited.\n */\n async update(\n subscriptionId: string,\n params: UpdateSubscriptionRequest,\n options?: RequestExtras,\n ): Promise<SubscriptionResponse> {\n return this.request('PUT', `/subscriptions/${encodeURIComponent(subscriptionId)}/update`, {\n body: params,\n ...options,\n });\n }\n\n /**\n * List subscriptions for the profile, or one customer's with `customer_id`.\n * `GET /subscriptions/list`\n */\n async list(\n params?: SubscriptionListParams,\n options?: RequestExtras,\n ): Promise<SubscriptionResponse[]> {\n return this.request('GET', '/subscriptions/list', {\n query: params as Record<string, string | number | undefined>,\n ...options,\n });\n }\n\n /** Estimate the cost of a subscription before creating it. `GET /subscriptions/estimate` */\n async getEstimate(\n params: SubscriptionEstimateParams,\n options?: RequestExtras,\n ): Promise<SubscriptionEstimateResponse> {\n return this.request('GET', '/subscriptions/estimate', {\n query: params as unknown as Record<string, string | number | undefined>,\n ...options,\n });\n }\n\n /** List purchasable subscription items (plans/addons). `GET /subscriptions/items` */\n async getItems(\n params: GetSubscriptionItemsParams,\n options?: RequestExtras,\n ): Promise<GetSubscriptionItemsResponse[]> {\n return this.request('GET', '/subscriptions/items', {\n query: params as unknown as Record<string, string | number | undefined>,\n ...options,\n });\n }\n\n /**\n * {@link getItems}, with whether the list is only the first part of what the\n * processor holds. `GET /subscriptions/items`\n *\n * The backend states that in the `X-Delopay-Items-Truncated` response\n * header (Stripe Billing lists its first 100 products), which the plain\n * {@link getItems} cannot return. Without `limit` and `offset` every item\n * the billing account offers is listed, up to 500.\n */\n async getItemsPage(\n params: GetSubscriptionItemsParams,\n options?: RequestExtras,\n ): Promise<SubscriptionItemsPage> {\n let truncated = false;\n const items = await this.request<GetSubscriptionItemsResponse[]>(\n 'GET',\n '/subscriptions/items',\n {\n query: params as unknown as Record<string, string | number | undefined>,\n ...options,\n onDownloadProgress: (event) => {\n // The headers arrive with the first event; a retried request reports\n // them again, and the last attempt is the one the items come from.\n truncated = event.headers.get('x-delopay-items-truncated')?.toLowerCase() === 'true';\n options?.onDownloadProgress?.(event);\n },\n },\n );\n return { items, truncated };\n }\n\n /**\n * Pause a subscription. `POST /subscriptions/{subscriptionId}/pause`\n *\n * From the dashboard this counts against the caller's `subscription_change`\n * operation limit; an over-limit call fails with `DE_01` and nothing reaches\n * the processor. Calls made with an API key are not limited.\n *\n * The body defaults to `{}` so the request still carries\n * `Content-Type: application/json` even when no params are passed — the\n * backend rejects the POST otherwise (\"Unsupported content type\").\n */\n async pause(\n subscriptionId: string,\n params?: PauseSubscriptionRequest,\n options?: RequestExtras,\n ): Promise<PauseSubscriptionResponse> {\n return this.request('POST', `/subscriptions/${encodeURIComponent(subscriptionId)}/pause`, {\n body: params ?? {},\n ...options,\n });\n }\n\n /**\n * Resume a paused subscription. `POST /subscriptions/{subscriptionId}/resume`\n *\n * From the dashboard this counts against the caller's `subscription_change`\n * operation limit; an over-limit call fails with `DE_01` and nothing reaches\n * the processor. Calls made with an API key are not limited.\n */\n async resume(\n subscriptionId: string,\n params?: ResumeSubscriptionRequest,\n options?: RequestExtras,\n ): Promise<ResumeSubscriptionResponse> {\n return this.request('POST', `/subscriptions/${encodeURIComponent(subscriptionId)}/resume`, {\n body: params ?? {},\n ...options,\n });\n }\n\n /**\n * Cancel a subscription. `POST /subscriptions/{subscriptionId}/cancel`\n *\n * A subscription in a state it cannot be cancelled from is refused with\n * `DE_11`; `error.data.reason` then names why (`SubscriptionActionRefusal`).\n *\n * From the dashboard this counts against the caller's `subscription_change`\n * operation limit; an over-limit call fails with `DE_01` and nothing reaches\n * the processor. Calls made with an API key are not limited.\n */\n async cancel(\n subscriptionId: string,\n params?: CancelSubscriptionRequest,\n options?: RequestExtras,\n ): Promise<CancelSubscriptionResponse> {\n return this.request('POST', `/subscriptions/${encodeURIComponent(subscriptionId)}/cancel`, {\n body: params ?? {},\n ...options,\n });\n }\n\n /**\n * Read 1 to 50 subscriptions back from their billing processor and mirror\n * what it reports. `POST /subscriptions/sync`\n *\n * Nothing is written at the processor. A status is mirrored only with the\n * time the processor stamped it with, and never over a newer event already\n * recorded; a plan only with its own stamp. One result per id, in request\n * order; one that fails does not stop the others.\n */\n async sync(\n params: SubscriptionSyncRequest,\n options?: RequestExtras,\n ): Promise<SubscriptionSyncResponse> {\n return this.request('POST', '/subscriptions/sync', { body: params, ...options });\n }\n\n /**\n * Read one subscription back from its billing processor and mirror what it\n * reports, as {@link sync} does, with what the processor reported beside\n * what the mirror now holds. `POST /subscriptions/{subscriptionId}/sync`\n */\n async syncOne(subscriptionId: string, options?: RequestExtras): Promise<SubscriptionSyncResult> {\n return this.request('POST', `/subscriptions/${encodeURIComponent(subscriptionId)}/sync`, {\n ...options,\n });\n }\n\n /**\n * List the subscriptions a billing account holds at its processor, and how\n * each relates to DeloPay's: already held, new (its buyer is a DeloPay\n * customer), needing a customer, ended, or not adoptable here.\n * `POST /subscriptions/import/preview`\n *\n * Reads only; nothing is written here or at the processor. Creem and\n * Stripe Billing can be listed; PayPal cannot, which `capabilities` states\n * (`reason_code: 'listing_unsupported'`).\n */\n async importPreview(\n params: SubscriptionImportPreviewRequest,\n options?: RequestExtras,\n ): Promise<SubscriptionImportPreviewResponse> {\n return this.request('POST', '/subscriptions/import/preview', { body: params, ...options });\n }\n\n /**\n * Take 1 to 25 processor subscriptions over, each through {@link adopt}\n * with every one of its checks, one after another.\n * `POST /subscriptions/import/apply`\n *\n * One result per selection, in request order; one refused does not stop\n * the others.\n */\n async importApply(\n params: SubscriptionImportApplyRequest,\n options?: RequestExtras,\n ): Promise<SubscriptionImportApplyResponse> {\n return this.request('POST', '/subscriptions/import/apply', { body: params, ...options });\n }\n\n /**\n * Resolve which of the given payments were raised by a subscription.\n * `POST /subscriptions/payments/lookup`\n *\n * The linkage exists in one direction only — an invoice points at the payment\n * it settled, and nothing is stamped on the payment — so this is the only way\n * to tell a subscription charge from a one-off one when you are holding a\n * page of payments. In particular, do not use `off_session` or the presence\n * of a mandate: an ordinary saved-card charge sets those identically.\n *\n * Ids that belong to no subscription are **absent** from `links` rather than\n * returned as an error, so match on presence:\n *\n * ```ts\n * const { links } = await subscriptions.lookupPayments(\n * { payment_ids: page.map((p) => p.payment_id) },\n * { headers: { 'X-Profile-Id': profileId } },\n * );\n * const bySubscription = new Map(links.map((l) => [l.payment_id, l]));\n * ```\n *\n * Profile-scoped like every other subscription route, and that matters more\n * here than elsewhere: a `payment_id` is merchant-supplied and only unique\n * within a merchant, so the shop is part of the question, not an\n * optimisation. Pass the profile that owns **the payments** — for a list\n * spanning several shops, group the ids by shop and call once per group.\n *\n * At most 200 ids per call.\n */\n async lookupPayments(\n params: SubscriptionPaymentLookupRequest,\n options?: RequestExtras,\n ): Promise<SubscriptionPaymentLookupResponse> {\n return this.request('POST', '/subscriptions/payments/lookup', { body: params, ...options });\n }\n\n /**\n * One subscription's billing history, newest cycle first.\n * `GET /subscriptions/{subscriptionId}/invoices`\n *\n * {@link retrieve} carries only the *latest* invoice, which is the current\n * cycle — a subscription that has renewed monthly for a year has one of those\n * and twelve of these. Use this wherever a merchant needs to see what a\n * subscription has actually billed, in particular on self-charging processors\n * (Creem, PayPal) where each renewal is charged by the processor and mirrored\n * here rather than raised as a DeloPay payment.\n *\n * Two things to render honestly, both decided rather than incidental:\n *\n * - `amount` is **gross** and `refunded_amount` sits beside it. Do not net\n * them: the difference between the two is not a smaller charge.\n * - A `refunded_amount` of `null` is \"not reported\" and must not render as\n * `0`. Likewise a processor-hosted origination records a bootstrap invoice\n * at `0` before the buyer has paid anything, so a zero amount on such a\n * subscription is a placeholder rather than a free cycle.\n *\n * Profile-scoped like every other subscription route.\n */\n async listInvoices(\n subscriptionId: string,\n params?: SubscriptionInvoiceListParams,\n options?: RequestExtras,\n ): Promise<SubscriptionInvoiceListResponse> {\n return this.request('GET', `/subscriptions/${encodeURIComponent(subscriptionId)}/invoices`, {\n query: params as Record<string, string | number | undefined>,\n ...options,\n });\n }\n\n /**\n * Which billing processor this shop's subscriptions run on.\n * `GET /subscriptions/billing_processor`\n *\n * The same mapping is derivable from the connector inventory\n * (`GET /account/{merchant_id}/connectors`), but that route is gated by a\n * connector-read permission granted independently of subscriptions — so a\n * role authorised to create subscriptions could be unable to learn which\n * processor it was creating them on. This answers under the same\n * authorization as the rest of the subscription API.\n *\n * Reach for it when the client must branch on the processor *before* calling\n * — origination differs by processor, and guessing is destructive. Resolve\n * the shop's `billing_processor_id` first: a shop that runs no subscriptions\n * has none assigned, and this route has no identity to report for it.\n */\n async getBillingProcessor(\n options?: RequestExtras,\n ): Promise<SubscriptionBillingProcessorResponse> {\n return this.request('GET', '/subscriptions/billing_processor', { ...options });\n }\n}\n"],"mappings":"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","names":[]}
@@ -0,0 +1,134 @@
1
+ // src/resources/live.ts
2
+ function readField(data, key) {
3
+ let value;
4
+ try {
5
+ value = JSON.parse(data);
6
+ } catch {
7
+ return void 0;
8
+ }
9
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return void 0;
10
+ return Object.getOwnPropertyDescriptor(value, key)?.value;
11
+ }
12
+ function toLiveStreamEvent(event, id, retry) {
13
+ switch (event.type) {
14
+ case "ready": {
15
+ const resumed = readField(event.data, "resumed");
16
+ return { type: "ready", id, retry, resumed: typeof resumed === "boolean" ? resumed : null };
17
+ }
18
+ case "change": {
19
+ const changes = readField(event.data, "changes");
20
+ if (!Array.isArray(changes)) return { type: "resync", id };
21
+ return { type: "change", id, changes };
22
+ }
23
+ case "resync":
24
+ return { type: "resync", id };
25
+ default:
26
+ return null;
27
+ }
28
+ }
29
+ var LiveEventStream = class {
30
+ constructor(connection, lastEventId = null) {
31
+ this.connection = connection;
32
+ this._retry = null;
33
+ this._lastEventId = lastEventId || null;
34
+ }
35
+ /**
36
+ * The position to resume after: the id of the last event read, advanced by
37
+ * keepalives too. `null` before the server named one. Send it as
38
+ * `lastEventId` when reconnecting.
39
+ */
40
+ get lastEventId() {
41
+ return this._lastEventId;
42
+ }
43
+ /** The wait before reconnecting the server asked for, in ms; `null` until it says. */
44
+ get retry() {
45
+ return this._retry;
46
+ }
47
+ /** Close the stream; the iteration ends without an error. */
48
+ close() {
49
+ this.connection.close();
50
+ }
51
+ [Symbol.asyncIterator]() {
52
+ this.iterator ?? (this.iterator = this.events());
53
+ return this.iterator;
54
+ }
55
+ async *events() {
56
+ for await (const dispatch of this.connection.dispatches) {
57
+ const event = this.read(dispatch);
58
+ if (event) yield event;
59
+ }
60
+ }
61
+ read(dispatch) {
62
+ this._lastEventId = dispatch.lastEventId || null;
63
+ if (dispatch.retry !== null) this._retry = dispatch.retry;
64
+ if (!dispatch.event) return null;
65
+ return toLiveStreamEvent(dispatch.event, this._lastEventId, this._retry);
66
+ }
67
+ };
68
+ async function openLiveStream(openStream, path, options = {}) {
69
+ const connection = await openStream(path, {
70
+ ...options.lastEventId ? { lastEventId: options.lastEventId } : {},
71
+ ...options.signal ? { signal: options.signal } : {},
72
+ ...options.idleTimeoutMs !== void 0 ? { idleTimeoutMs: options.idleTimeoutMs } : {},
73
+ ...options.headers ? { headers: options.headers } : {}
74
+ });
75
+ return new LiveEventStream(connection, options.lastEventId ?? null);
76
+ }
77
+ var Live = class {
78
+ constructor(request, openStream) {
79
+ this.request = request;
80
+ this.openStream = openStream;
81
+ }
82
+ /**
83
+ * Open the stream of what changed in the caller's merchant, as their role
84
+ * may read it. Resolves once the server answered; a `401` rejects with
85
+ * `DelopayAuthenticationError`.
86
+ *
87
+ * The first event is `ready`. `change` names the kinds of record and, when
88
+ * few, the ids that changed: read them again through the usual endpoints.
89
+ * `resync`, and `ready` with `resumed: false`, mean read everything again.
90
+ * The SDK does not reconnect — see {@link LiveEventStream}.
91
+ *
92
+ * `GET /live/stream`
93
+ *
94
+ * @example
95
+ * ```typescript
96
+ * const stream = await delopay.live.stream({ lastEventId, signal });
97
+ * for await (const event of stream) {
98
+ * if (event.type === 'change') refresh(event.changes);
99
+ * else if (event.type === 'resync' || event.resumed === false) refreshAll();
100
+ * }
101
+ * lastEventId = stream.lastEventId; // reconnect after stream.retry
102
+ * ```
103
+ */
104
+ async stream(options) {
105
+ return openLiveStream(this.openStream, "/live/stream", options);
106
+ }
107
+ /**
108
+ * The current version of each kind of record named, in the caller's
109
+ * merchant and shop. Read it before the record and send the entry's
110
+ * `if_match` in the `If-Match` header of the save: a save over a newer
111
+ * version is refused with `IR_16` (400), `error.data` a
112
+ * `LiveChangedElsewhere` naming who made the change.
113
+ *
114
+ * `GET /live/versions`
115
+ */
116
+ async versions(params, options) {
117
+ return this.request("GET", "/live/versions", {
118
+ query: {
119
+ entities: params.entities.join(","),
120
+ profile_id: params.profile_id,
121
+ record_id: params.record_id
122
+ },
123
+ ...options
124
+ });
125
+ }
126
+ };
127
+
128
+ export {
129
+ toLiveStreamEvent,
130
+ LiveEventStream,
131
+ openLiveStream,
132
+ Live
133
+ };
134
+ //# sourceMappingURL=chunk-7QGASY6O.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/live.ts"],"sourcesContent":["import type {\n LiveChange,\n LiveStreamEvent,\n LiveStreamOptions,\n LiveVersionsParams,\n LiveVersionsResponse,\n} from '../types';\nimport type { EventStreamConnection, EventStreamFn, RequestExtras, RequestFn } from '../client';\nimport type { EventStreamDispatch } from '../eventStream';\n\n/** `key` of the JSON object `data` holds; `undefined` when it holds none. */\nfunction readField(data: string, key: string): unknown {\n let value: unknown;\n try {\n value = JSON.parse(data);\n } catch {\n return undefined;\n }\n if (value === null || typeof value !== 'object' || Array.isArray(value)) return undefined;\n return Object.getOwnPropertyDescriptor(value, key)?.value as unknown;\n}\n\n/** The typed event a dispatch carries, or `null` for a kind the SDK does not know. */\nexport function toLiveStreamEvent(\n event: { type: string; data: string },\n id: string | null,\n retry: number | null,\n): LiveStreamEvent | null {\n switch (event.type) {\n case 'ready': {\n const resumed = readField(event.data, 'resumed');\n return { type: 'ready', id, retry, resumed: typeof resumed === 'boolean' ? resumed : null };\n }\n case 'change': {\n const changes = readField(event.data, 'changes');\n // A change the SDK cannot read still says that something changed: the\n // dashboard reads everything again rather than miss it.\n if (!Array.isArray(changes)) return { type: 'resync', id };\n return { type: 'change', id, changes: changes as LiveChange[] };\n }\n case 'resync':\n return { type: 'resync', id };\n default:\n return null;\n }\n}\n\n/**\n * An open live stream: iterate it with `for await` for its events.\n *\n * It is not reconnected. The iteration ends without an error when the server\n * ends the stream (the session expired, 30 minutes passed, the server\n * restarted) and when the stream is aborted or closed; the dashboard then\n * opens a new one after {@link LiveEventStream.retry}, passing\n * {@link LiveEventStream.lastEventId}. It throws a `DelopayError` with code\n * `TIMEOUT` when the stream stays silent past `idleTimeoutMs` and `NETWORK`\n * when the connection fails; reconnect on those too.\n *\n * Iterate it once. Call {@link LiveEventStream.close} (or abort the signal)\n * to release a stream that is not iterated to its end.\n */\nexport class LiveEventStream implements AsyncIterable<LiveStreamEvent> {\n private _lastEventId: string | null;\n private _retry: number | null = null;\n private iterator?: AsyncGenerator<LiveStreamEvent, void, undefined>;\n\n constructor(\n private readonly connection: EventStreamConnection,\n lastEventId: string | null = null,\n ) {\n this._lastEventId = lastEventId || null;\n }\n\n /**\n * The position to resume after: the id of the last event read, advanced by\n * keepalives too. `null` before the server named one. Send it as\n * `lastEventId` when reconnecting.\n */\n get lastEventId(): string | null {\n return this._lastEventId;\n }\n\n /** The wait before reconnecting the server asked for, in ms; `null` until it says. */\n get retry(): number | null {\n return this._retry;\n }\n\n /** Close the stream; the iteration ends without an error. */\n close(): void {\n this.connection.close();\n }\n\n [Symbol.asyncIterator](): AsyncGenerator<LiveStreamEvent, void, undefined> {\n this.iterator ??= this.events();\n return this.iterator;\n }\n\n private async *events(): AsyncGenerator<LiveStreamEvent, void, undefined> {\n for await (const dispatch of this.connection.dispatches) {\n const event = this.read(dispatch);\n if (event) yield event;\n }\n }\n\n private read(dispatch: EventStreamDispatch): LiveStreamEvent | null {\n this._lastEventId = dispatch.lastEventId || null;\n if (dispatch.retry !== null) this._retry = dispatch.retry;\n if (!dispatch.event) return null;\n return toLiveStreamEvent(dispatch.event, this._lastEventId, this._retry);\n }\n}\n\n/** Open a live stream at `path`. */\nexport async function openLiveStream(\n openStream: EventStreamFn,\n path: string,\n options: LiveStreamOptions = {},\n): Promise<LiveEventStream> {\n const connection = await openStream(path, {\n ...(options.lastEventId ? { lastEventId: options.lastEventId } : {}),\n ...(options.signal ? { signal: options.signal } : {}),\n ...(options.idleTimeoutMs !== undefined ? { idleTimeoutMs: options.idleTimeoutMs } : {}),\n ...(options.headers ? { headers: options.headers } : {}),\n });\n return new LiveEventStream(connection, options.lastEventId ?? null);\n}\n\n/**\n * Live updates of the merchant dashboard: a stream that\n * says what kind of record changed, and the versions an editor names in\n * `If-Match` so a save never overwrites a newer change. Both need a dashboard\n * JWT (`setJwtToken`), not an API key.\n */\nexport class Live {\n constructor(\n private readonly request: RequestFn,\n private readonly openStream: EventStreamFn,\n ) {}\n\n /**\n * Open the stream of what changed in the caller's merchant, as their role\n * may read it. Resolves once the server answered; a `401` rejects with\n * `DelopayAuthenticationError`.\n *\n * The first event is `ready`. `change` names the kinds of record and, when\n * few, the ids that changed: read them again through the usual endpoints.\n * `resync`, and `ready` with `resumed: false`, mean read everything again.\n * The SDK does not reconnect — see {@link LiveEventStream}.\n *\n * `GET /live/stream`\n *\n * @example\n * ```typescript\n * const stream = await delopay.live.stream({ lastEventId, signal });\n * for await (const event of stream) {\n * if (event.type === 'change') refresh(event.changes);\n * else if (event.type === 'resync' || event.resumed === false) refreshAll();\n * }\n * lastEventId = stream.lastEventId; // reconnect after stream.retry\n * ```\n */\n async stream(options?: LiveStreamOptions): Promise<LiveEventStream> {\n return openLiveStream(this.openStream, '/live/stream', options);\n }\n\n /**\n * The current version of each kind of record named, in the caller's\n * merchant and shop. Read it before the record and send the entry's\n * `if_match` in the `If-Match` header of the save: a save over a newer\n * version is refused with `IR_16` (400), `error.data` a\n * `LiveChangedElsewhere` naming who made the change.\n *\n * `GET /live/versions`\n */\n async versions(\n params: LiveVersionsParams,\n options?: RequestExtras,\n ): Promise<LiveVersionsResponse> {\n return this.request('GET', '/live/versions', {\n query: {\n entities: params.entities.join(','),\n profile_id: params.profile_id,\n record_id: params.record_id,\n },\n ...options,\n });\n }\n}\n"],"mappings":"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","names":[]}
@@ -0,0 +1,15 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/internal/resources/cache.ts
2
+ var Cache = class {
3
+ constructor(request) {
4
+ this.request = request;
5
+ }
6
+ /** Invalidate a cache entry by key. `POST /cache/invalidate/{key}` */
7
+ async invalidate(key) {
8
+ return this.request("POST", `/cache/invalidate/${encodeURIComponent(key)}`);
9
+ }
10
+ };
11
+
12
+
13
+
14
+ exports.Cache = Cache;
15
+ //# sourceMappingURL=chunk-7QZCUXWB.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/ts-publish-w3/dist/chunk-7QZCUXWB.cjs","../src/internal/resources/cache.ts"],"names":[],"mappings":"AAAA;ACEO,IAAM,MAAA,EAAN,MAAY;AAAA,EACjB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,MAAM,UAAA,CAAW,GAAA,EAA+C;AAC9D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,CAAA,kBAAA,EAAqB,kBAAA,CAAmB,GAAG,CAAC,CAAA,CAAA;AAC1E,EAAA;AACF;ADC6E;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/ts-publish-w3/dist/chunk-7QZCUXWB.cjs","sourcesContent":[null,"import type { RequestFn } from '../../client';\n\nexport class Cache {\n constructor(private readonly request: RequestFn) {}\n\n /** Invalidate a cache entry by key. `POST /cache/invalidate/{key}` */\n async invalidate(key: string): Promise<Record<string, unknown>> {\n return this.request('POST', `/cache/invalidate/${encodeURIComponent(key)}`);\n }\n}\n"]}
@@ -0,0 +1,23 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/internal/resources/gsm.ts
2
+ var Gsm = class {
3
+ constructor(request) {
4
+ this.request = request;
5
+ }
6
+ async create(params) {
7
+ return this.request("POST", "/gsm", { body: params });
8
+ }
9
+ async retrieve(params) {
10
+ return this.request("POST", "/gsm/get", { body: params });
11
+ }
12
+ async update(params) {
13
+ return this.request("POST", "/gsm/update", { body: params });
14
+ }
15
+ async delete(params) {
16
+ return this.request("POST", "/gsm/delete", { body: params });
17
+ }
18
+ };
19
+
20
+
21
+
22
+ exports.Gsm = Gsm;
23
+ //# sourceMappingURL=chunk-7VXF5D67.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/ts-publish-w3/dist/chunk-7VXF5D67.cjs","../src/internal/resources/gsm.ts"],"names":[],"mappings":"AAAA;ACGO,IAAM,IAAA,EAAN,MAAU;AAAA,EACf,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,MAAA,CAAO,MAAA,EAAwD;AACnE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,MAAA,EAAQ,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACtD;AAAA,EAEA,MAAM,QAAA,CAAS,MAAA,EAA2D;AACxE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,UAAA,EAAY,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC1D;AAAA,EAEA,MAAM,MAAA,CAAO,MAAA,EAAwD;AACnE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,aAAA,EAAe,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC7D;AAAA,EAEA,MAAM,MAAA,CAAO,MAAA,EAA2D;AACtE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,aAAA,EAAe,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC7D;AACF,CAAA;ADHA;AACA;AACE;AACF,kBAAC","file":"/home/anes/delo-payment/_worktrees/ts-publish-w3/dist/chunk-7VXF5D67.cjs","sourcesContent":[null,"import type { GsmRuleCreateRequest, GsmRuleResponse, GsmRuleUpdateRequest } from '../types';\nimport type { RequestFn } from '../../client';\n\nexport class Gsm {\n constructor(private readonly request: RequestFn) {}\n\n async create(params: GsmRuleCreateRequest): Promise<GsmRuleResponse> {\n return this.request('POST', '/gsm', { body: params });\n }\n\n async retrieve(params: Record<string, unknown>): Promise<GsmRuleResponse> {\n return this.request('POST', '/gsm/get', { body: params });\n }\n\n async update(params: GsmRuleUpdateRequest): Promise<GsmRuleResponse> {\n return this.request('POST', '/gsm/update', { body: params });\n }\n\n async delete(params: Record<string, unknown>): Promise<GsmRuleResponse> {\n return this.request('POST', '/gsm/delete', { body: params });\n }\n}\n"]}