@delopay/sdk 0.415.0 → 0.420.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 (295) hide show
  1. package/dist/airwallexCard.cjs.map +1 -1
  2. package/dist/branding.cjs.map +1 -1
  3. package/dist/cardFormStyles.cjs.map +1 -1
  4. package/dist/checkoutSession.cjs +2 -2
  5. package/dist/checkoutSession.cjs.map +1 -1
  6. package/dist/checkoutSession.js +1 -1
  7. package/dist/chunk-244VZFFO.cjs.map +1 -1
  8. package/dist/chunk-2IJRBJXW.cjs.map +1 -1
  9. package/dist/chunk-34PC72O7.cjs.map +1 -1
  10. package/dist/chunk-3GBWQWTP.cjs.map +1 -1
  11. package/dist/chunk-3YBBJT3Y.cjs.map +1 -1
  12. package/dist/chunk-44QBWVRS.cjs.map +1 -1
  13. package/dist/chunk-4EKAWNYI.cjs.map +1 -1
  14. package/dist/chunk-4LN4BR2T.cjs.map +1 -1
  15. package/dist/chunk-4T4XHPYN.cjs.map +1 -1
  16. package/dist/chunk-5CITBN33.cjs.map +1 -1
  17. package/dist/chunk-5HCKC4HF.cjs.map +1 -1
  18. package/dist/chunk-5O2JSQYA.cjs.map +1 -1
  19. package/dist/{chunk-QT3HUTWI.cjs → chunk-5XGAQGYK.cjs} +3 -3
  20. package/dist/chunk-5XGAQGYK.cjs.map +1 -0
  21. package/dist/chunk-6EBY2KKL.cjs.map +1 -1
  22. package/dist/chunk-6LOWE2YI.cjs.map +1 -1
  23. package/dist/chunk-6LSG5Z4T.cjs.map +1 -1
  24. package/dist/chunk-6SU2MTN2.cjs.map +1 -1
  25. package/dist/chunk-6YCDLSIU.cjs.map +1 -1
  26. package/dist/chunk-75E5WNJG.cjs.map +1 -1
  27. package/dist/chunk-7ITPMVDB.cjs.map +1 -1
  28. package/dist/chunk-7JV6VVO7.cjs.map +1 -1
  29. package/dist/chunk-7QZCUXWB.cjs.map +1 -1
  30. package/dist/chunk-7VXF5D67.cjs.map +1 -1
  31. package/dist/chunk-ACZ2R47X.cjs.map +1 -1
  32. package/dist/chunk-AYUYJO3I.cjs.map +1 -1
  33. package/dist/chunk-B2TCNGC2.cjs.map +1 -1
  34. package/dist/chunk-BCA3TCGS.cjs.map +1 -1
  35. package/dist/chunk-BOU2TQ6U.cjs.map +1 -1
  36. package/dist/chunk-BP6KDQ6I.cjs.map +1 -1
  37. package/dist/chunk-BRY3W7N3.cjs.map +1 -1
  38. package/dist/{chunk-XAUPBK6A.cjs → chunk-BXQLINBN.cjs} +3 -3
  39. package/dist/chunk-BXQLINBN.cjs.map +1 -0
  40. package/dist/chunk-CAMALM35.cjs.map +1 -1
  41. package/dist/chunk-CCN44NZJ.cjs.map +1 -1
  42. package/dist/chunk-CKKNFFKP.cjs.map +1 -1
  43. package/dist/chunk-CR3JBTP3.cjs.map +1 -1
  44. package/dist/chunk-DJASVBOJ.cjs.map +1 -1
  45. package/dist/chunk-ENPSUWTS.cjs.map +1 -1
  46. package/dist/chunk-EQ6P6ZND.cjs.map +1 -1
  47. package/dist/chunk-EXPWQBI3.cjs.map +1 -1
  48. package/dist/chunk-F3I5DOWV.cjs.map +1 -1
  49. package/dist/chunk-F6S3WCCB.cjs.map +1 -1
  50. package/dist/chunk-FQRC4NJG.cjs.map +1 -1
  51. package/dist/chunk-FYISDU2Y.cjs.map +1 -1
  52. package/dist/chunk-GA3KXPIF.cjs.map +1 -1
  53. package/dist/chunk-GG52SAHA.cjs.map +1 -1
  54. package/dist/chunk-GGYLU7YO.cjs.map +1 -1
  55. package/dist/chunk-GK5FWN4H.cjs.map +1 -1
  56. package/dist/chunk-GSQN5EOO.cjs.map +1 -1
  57. package/dist/chunk-GW7IHYXR.cjs.map +1 -1
  58. package/dist/chunk-HLKFUOAQ.cjs.map +1 -1
  59. package/dist/chunk-HLYGHP6F.cjs.map +1 -1
  60. package/dist/chunk-I2W7AO4B.cjs.map +1 -1
  61. package/dist/chunk-I2XGNALG.cjs.map +1 -1
  62. package/dist/chunk-I65QS3YQ.cjs.map +1 -1
  63. package/dist/chunk-IKXGA2Z5.cjs.map +1 -1
  64. package/dist/chunk-IR2LFKKA.cjs.map +1 -1
  65. package/dist/chunk-K5Q2H3VD.cjs.map +1 -1
  66. package/dist/chunk-KD5Y2YWK.cjs.map +1 -1
  67. package/dist/{chunk-VCIPI4R2.js → chunk-KGN4J2JT.js} +39 -1
  68. package/dist/chunk-KGN4J2JT.js.map +1 -0
  69. package/dist/chunk-KJDMNF2T.cjs.map +1 -1
  70. package/dist/chunk-KLONGJCL.cjs.map +1 -1
  71. package/dist/chunk-KOB6MOAV.cjs +113 -0
  72. package/dist/chunk-KOB6MOAV.cjs.map +1 -0
  73. package/dist/chunk-KSJ7JLR3.cjs.map +1 -1
  74. package/dist/chunk-LJ2EG6JK.cjs.map +1 -1
  75. package/dist/chunk-LLYY4TCZ.cjs.map +1 -1
  76. package/dist/chunk-LYIBTVK6.cjs.map +1 -1
  77. package/dist/chunk-M3HWE7KT.cjs.map +1 -1
  78. package/dist/chunk-M3SJHFT4.cjs.map +1 -1
  79. package/dist/chunk-MCNDMK7F.cjs.map +1 -1
  80. package/dist/chunk-MH3DDSRV.js +113 -0
  81. package/dist/chunk-MH3DDSRV.js.map +1 -0
  82. package/dist/chunk-MLG6NXI6.cjs.map +1 -1
  83. package/dist/chunk-NFB3S2E6.cjs.map +1 -1
  84. package/dist/chunk-NYL3BNHR.cjs.map +1 -1
  85. package/dist/chunk-O4AYHLQX.cjs.map +1 -1
  86. package/dist/chunk-ODPNVNYE.cjs.map +1 -1
  87. package/dist/chunk-OG2KJAYD.cjs.map +1 -1
  88. package/dist/chunk-OWP7XBY2.cjs.map +1 -1
  89. package/dist/chunk-OYZP6NF6.cjs.map +1 -1
  90. package/dist/chunk-P6JLNQ6L.cjs.map +1 -1
  91. package/dist/chunk-P7DYLUUI.cjs.map +1 -1
  92. package/dist/chunk-PKAE6AQT.cjs.map +1 -1
  93. package/dist/chunk-PWDY5D5S.cjs.map +1 -1
  94. package/dist/chunk-Q7M7DO7M.cjs.map +1 -1
  95. package/dist/chunk-QMLU5DST.cjs.map +1 -1
  96. package/dist/chunk-QRSA72B3.cjs.map +1 -1
  97. package/dist/chunk-QYNRNDIY.cjs.map +1 -1
  98. package/dist/chunk-R4FE6K43.cjs.map +1 -1
  99. package/dist/chunk-R4GA6BVP.cjs.map +1 -1
  100. package/dist/chunk-R5VYSZ3Q.cjs.map +1 -1
  101. package/dist/chunk-RI42IDRR.cjs.map +1 -1
  102. package/dist/chunk-RSVLVW4L.cjs.map +1 -1
  103. package/dist/chunk-S77LQWYC.cjs.map +1 -1
  104. package/dist/chunk-S7SBNOGS.cjs.map +1 -1
  105. package/dist/chunk-SQELICSX.cjs.map +1 -1
  106. package/dist/{chunk-ZJRQ2AKS.js → chunk-TA5O2MBG.js} +2 -2
  107. package/dist/chunk-TMAJE5P2.cjs.map +1 -1
  108. package/dist/chunk-TNIJ6OSH.cjs.map +1 -1
  109. package/dist/chunk-UGSM7RJ2.cjs.map +1 -1
  110. package/dist/chunk-UKLZAOLW.cjs.map +1 -1
  111. package/dist/chunk-V47G7P6L.cjs.map +1 -1
  112. package/dist/chunk-VH5A6SMU.cjs.map +1 -1
  113. package/dist/chunk-VOIELJLZ.cjs.map +1 -1
  114. package/dist/chunk-VYC7WUM5.cjs.map +1 -1
  115. package/dist/chunk-W457XUA6.cjs.map +1 -1
  116. package/dist/chunk-WHDI3TMP.cjs.map +1 -1
  117. package/dist/chunk-WITCPKNL.cjs.map +1 -1
  118. package/dist/chunk-WX6NP7UU.cjs.map +1 -1
  119. package/dist/{chunk-A3DALTDS.cjs → chunk-X5P2AS63.cjs} +39 -1
  120. package/dist/chunk-X5P2AS63.cjs.map +1 -0
  121. package/dist/{chunk-4YCQWMFF.js → chunk-X76YC766.js} +2 -2
  122. package/dist/chunk-XQLRIBVR.cjs.map +1 -1
  123. package/dist/chunk-YJQPKT6W.cjs.map +1 -1
  124. package/dist/chunk-YK3P5QNZ.cjs.map +1 -1
  125. package/dist/chunk-ZKPVUCQV.cjs.map +1 -1
  126. package/dist/chunk-ZOD4J4XF.cjs.map +1 -1
  127. package/dist/client.cjs +2 -2
  128. package/dist/client.cjs.map +1 -1
  129. package/dist/client.js +1 -1
  130. package/dist/core.cjs.map +1 -1
  131. package/dist/currencies.cjs.map +1 -1
  132. package/dist/enigmaCardForm.cjs.map +1 -1
  133. package/dist/error.cjs.map +1 -1
  134. package/dist/eventStream.cjs.map +1 -1
  135. package/dist/exportDownload.cjs.map +1 -1
  136. package/dist/feeProgram.cjs.map +1 -1
  137. package/dist/index.cjs +4 -4
  138. package/dist/index.cjs.map +1 -1
  139. package/dist/index.d.cts +1 -1
  140. package/dist/index.d.ts +1 -1
  141. package/dist/index.js +3 -3
  142. package/dist/internal/resources/admin.cjs.map +1 -1
  143. package/dist/internal/resources/admin.d.cts +1 -1
  144. package/dist/internal/resources/admin.d.ts +1 -1
  145. package/dist/internal/resources/adminBranding.cjs.map +1 -1
  146. package/dist/internal/resources/adminBranding.d.cts +1 -1
  147. package/dist/internal/resources/adminBranding.d.ts +1 -1
  148. package/dist/internal/resources/adminFileScans.cjs.map +1 -1
  149. package/dist/internal/resources/adminFileScans.d.cts +1 -1
  150. package/dist/internal/resources/adminFileScans.d.ts +1 -1
  151. package/dist/internal/resources/adminIndustries.cjs.map +1 -1
  152. package/dist/internal/resources/adminIndustries.d.cts +1 -1
  153. package/dist/internal/resources/adminIndustries.d.ts +1 -1
  154. package/dist/internal/resources/adminLive.cjs.map +1 -1
  155. package/dist/internal/resources/adminPortal.cjs +2 -2
  156. package/dist/internal/resources/adminPortal.cjs.map +1 -1
  157. package/dist/internal/resources/adminPortal.d.cts +21 -2
  158. package/dist/internal/resources/adminPortal.d.ts +21 -2
  159. package/dist/internal/resources/adminPortal.js +1 -1
  160. package/dist/internal/resources/adminSupport.cjs.map +1 -1
  161. package/dist/internal/resources/adminSupport.d.cts +1 -1
  162. package/dist/internal/resources/adminSupport.d.ts +1 -1
  163. package/dist/internal/resources/auditLogs.cjs.map +1 -1
  164. package/dist/internal/resources/auditLogs.d.cts +1 -1
  165. package/dist/internal/resources/auditLogs.d.ts +1 -1
  166. package/dist/internal/resources/cache.cjs.map +1 -1
  167. package/dist/internal/resources/cardIssuers.cjs.map +1 -1
  168. package/dist/internal/resources/cardIssuers.d.cts +1 -1
  169. package/dist/internal/resources/cardIssuers.d.ts +1 -1
  170. package/dist/internal/resources/configs.cjs.map +1 -1
  171. package/dist/internal/resources/connectorRestrictionRules.cjs.map +1 -1
  172. package/dist/internal/resources/connectorRestrictionRules.d.cts +1 -1
  173. package/dist/internal/resources/connectorRestrictionRules.d.ts +1 -1
  174. package/dist/internal/resources/connectorRestrictions.cjs.map +1 -1
  175. package/dist/internal/resources/connectorRestrictions.d.cts +1 -1
  176. package/dist/internal/resources/connectorRestrictions.d.ts +1 -1
  177. package/dist/internal/resources/diagnostic.cjs.map +1 -1
  178. package/dist/internal/resources/diagnostic.d.cts +1 -1
  179. package/dist/internal/resources/diagnostic.d.ts +1 -1
  180. package/dist/internal/resources/gsm.cjs.map +1 -1
  181. package/dist/internal/resources/gsm.d.cts +1 -1
  182. package/dist/internal/resources/gsm.d.ts +1 -1
  183. package/dist/internal/resources/nativeRenewals.cjs.map +1 -1
  184. package/dist/internal/resources/nativeRenewals.d.cts +1 -1
  185. package/dist/internal/resources/nativeRenewals.d.ts +1 -1
  186. package/dist/internal/resources/platformBilling.cjs.map +1 -1
  187. package/dist/internal/resources/platformBilling.d.cts +1 -1
  188. package/dist/internal/resources/platformBilling.d.ts +1 -1
  189. package/dist/internal/resources/platformFees.cjs.map +1 -1
  190. package/dist/internal/resources/platformMessageTemplates.cjs.map +1 -1
  191. package/dist/internal/resources/platformSettings.cjs.map +1 -1
  192. package/dist/internal/resources/platformSettings.d.cts +1 -1
  193. package/dist/internal/resources/platformSettings.d.ts +1 -1
  194. package/dist/internal.cjs +7 -7
  195. package/dist/internal.cjs.map +1 -1
  196. package/dist/internal.d.cts +2 -2
  197. package/dist/internal.d.ts +2 -2
  198. package/dist/internal.js +4 -4
  199. package/dist/listQuery.cjs.map +1 -1
  200. package/dist/panes.cjs.map +1 -1
  201. package/dist/paymentPresentation.cjs.map +1 -1
  202. package/dist/recordCounter.cjs.map +1 -1
  203. package/dist/resources/analytics.cjs.map +1 -1
  204. package/dist/resources/analyticsDashboard.cjs.map +1 -1
  205. package/dist/resources/apiKeys.cjs.map +1 -1
  206. package/dist/resources/audit.cjs.map +1 -1
  207. package/dist/resources/authentication.cjs.map +1 -1
  208. package/dist/resources/availabilityOverrides.cjs.map +1 -1
  209. package/dist/resources/billing.cjs.map +1 -1
  210. package/dist/resources/buyerAccount.cjs.map +1 -1
  211. package/dist/resources/buyerBlocklist.cjs.map +1 -1
  212. package/dist/resources/buyerConversations.cjs.map +1 -1
  213. package/dist/resources/buyerEvidenceReviews.cjs.map +1 -1
  214. package/dist/resources/buyerPortal.cjs.map +1 -1
  215. package/dist/resources/cards.cjs.map +1 -1
  216. package/dist/resources/chargebackPrevention.cjs.map +1 -1
  217. package/dist/resources/checkoutMethods.cjs.map +1 -1
  218. package/dist/resources/checkoutRecovery.cjs.map +1 -1
  219. package/dist/resources/checkoutTemplates.cjs.map +1 -1
  220. package/dist/resources/connectors.cjs.map +1 -1
  221. package/dist/resources/costRules.cjs.map +1 -1
  222. package/dist/resources/customers.cjs.map +1 -1
  223. package/dist/resources/deploymentBranding.cjs.map +1 -1
  224. package/dist/resources/disputes.cjs.map +1 -1
  225. package/dist/resources/ephemeralKeys.cjs.map +1 -1
  226. package/dist/resources/events.cjs.map +1 -1
  227. package/dist/resources/export.cjs.map +1 -1
  228. package/dist/resources/externalRecords.cjs.map +1 -1
  229. package/dist/resources/featureMatrix.cjs.map +1 -1
  230. package/dist/resources/fees.cjs.map +1 -1
  231. package/dist/resources/files.cjs.map +1 -1
  232. package/dist/resources/forex.cjs.map +1 -1
  233. package/dist/resources/identityVerifications.cjs.map +1 -1
  234. package/dist/resources/industries.cjs.map +1 -1
  235. package/dist/resources/invoiceSettings.cjs.map +1 -1
  236. package/dist/resources/invoices.cjs.map +1 -1
  237. package/dist/resources/live.cjs.map +1 -1
  238. package/dist/resources/mandates.cjs.map +1 -1
  239. package/dist/resources/merchantAccounts.cjs.map +1 -1
  240. package/dist/resources/messageTemplates.cjs.map +1 -1
  241. package/dist/resources/operationLimits.cjs.map +1 -1
  242. package/dist/resources/paymentLinks.cjs.map +1 -1
  243. package/dist/resources/paymentMethods.cjs.map +1 -1
  244. package/dist/resources/payments.cjs.map +1 -1
  245. package/dist/resources/payoutDestinations.cjs.map +1 -1
  246. package/dist/resources/payouts.cjs.map +1 -1
  247. package/dist/resources/paypalDisputes.cjs.map +1 -1
  248. package/dist/resources/persons.cjs +2 -2
  249. package/dist/resources/persons.cjs.map +1 -1
  250. package/dist/resources/persons.d.cts +44 -1
  251. package/dist/resources/persons.d.ts +44 -1
  252. package/dist/resources/persons.js +1 -1
  253. package/dist/resources/poll.cjs.map +1 -1
  254. package/dist/resources/processorCosts.cjs.map +1 -1
  255. package/dist/resources/processorImports.cjs.map +1 -1
  256. package/dist/resources/products.cjs.map +1 -1
  257. package/dist/resources/profileAcquirers.cjs.map +1 -1
  258. package/dist/resources/profiles.cjs.map +1 -1
  259. package/dist/resources/projects.cjs.map +1 -1
  260. package/dist/resources/refunds.cjs.map +1 -1
  261. package/dist/resources/regions.cjs.map +1 -1
  262. package/dist/resources/relay.cjs.map +1 -1
  263. package/dist/resources/risk.cjs.map +1 -1
  264. package/dist/resources/routing.cjs.map +1 -1
  265. package/dist/resources/search.cjs.map +1 -1
  266. package/dist/resources/sellToRestrictions.cjs.map +1 -1
  267. package/dist/resources/settings.cjs.map +1 -1
  268. package/dist/resources/settlement.cjs.map +1 -1
  269. package/dist/resources/shopLabels.cjs.map +1 -1
  270. package/dist/resources/shops.cjs.map +1 -1
  271. package/dist/resources/stripeConnect.cjs.map +1 -1
  272. package/dist/resources/subscriptions.cjs.map +1 -1
  273. package/dist/resources/support.cjs.map +1 -1
  274. package/dist/resources/threeDsRules.cjs.map +1 -1
  275. package/dist/resources/users.cjs.map +1 -1
  276. package/dist/resources/vatRates.cjs.map +1 -1
  277. package/dist/resources/verification.cjs.map +1 -1
  278. package/dist/resources/webhooks.cjs.map +1 -1
  279. package/dist/resources/whopResolutionCases.cjs.map +1 -1
  280. package/dist/{types-DB3G038u.d.cts → types-BSkzDB3r.d.cts} +3 -3
  281. package/dist/{types-BzB_uvZ4.d.ts → types-OKCtk7xG.d.ts} +3 -3
  282. package/dist/types.cjs.map +1 -1
  283. package/dist/types.d.cts +200 -2
  284. package/dist/types.d.ts +200 -2
  285. package/package.json +1 -1
  286. package/dist/chunk-5CNBINCX.cjs +0 -54
  287. package/dist/chunk-5CNBINCX.cjs.map +0 -1
  288. package/dist/chunk-A3DALTDS.cjs.map +0 -1
  289. package/dist/chunk-Q347PTXI.js +0 -54
  290. package/dist/chunk-Q347PTXI.js.map +0 -1
  291. package/dist/chunk-QT3HUTWI.cjs.map +0 -1
  292. package/dist/chunk-VCIPI4R2.js.map +0 -1
  293. package/dist/chunk-XAUPBK6A.cjs.map +0 -1
  294. /package/dist/{chunk-ZJRQ2AKS.js.map → chunk-TA5O2MBG.js.map} +0 -0
  295. /package/dist/{chunk-4YCQWMFF.js.map → chunk-X76YC766.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-7ITPMVDB.cjs","../src/resources/checkoutTemplates.ts"],"names":[],"mappings":"AAAA;AC2BO,IAAM,kBAAA,EAAN,MAAwB;AAAA,EAC7B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,MAAM,IAAA,CAAK,UAAA,EAA2D;AACpE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,oBAAA,EAAuB,kBAAA,CAAmB,UAAU,CAAC,CAAA,CAAA;AAClF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUqC,EAAA;AAC8C,IAAA;AACzE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAG0F,EAAA;AAC5E,IAAA;AACV,MAAA;AAC4E,MAAA;AAC9E,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWqC,EAAA;AACvB,IAAA;AACV,MAAA;AAC4E,MAAA;AAC7D,MAAA;AACjB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAMwF,EAAA;AAC1E,IAAA;AACV,MAAA;AAC4E,MAAA;AAC9E,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAa0C,EAAA;AAC5B,IAAA;AACV,MAAA;AAC4E,MAAA;AAC5E,MAAA;AACQ,QAAA;AACR,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAUqC,EAAA;AACvB,IAAA;AACV,MAAA;AAC4E,MAAA;AAC9E,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAW0C,EAAA;AAC5B,IAAA;AACV,MAAA;AAC4E,MAAA;AAC5E,MAAA;AACQ,QAAA;AACR,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAM6F,EAAA;AAC/E,IAAA;AACV,MAAA;AAC+D,MAAA;AACjE,IAAA;AACF,EAAA;AACF;ADnDqF;AACA;AACA;AACA","file":"/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-7ITPMVDB.cjs","sourcesContent":[null,"import type {\n CheckoutTemplateApplyRequest,\n CheckoutTemplateApplyResponse,\n CheckoutTemplateAssignRequest,\n CheckoutTemplateCreateRequest,\n CheckoutTemplateListResponse,\n CheckoutTemplateOfShopResponse,\n CheckoutTemplateResponse,\n CheckoutTemplateUpdateRequest,\n} from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * Checkout templates: a shop's payment methods, behaviour and smart routing,\n * defined once for the merchant and used in many shops.\n *\n * A template is edited where a shop is: its own profile (`template_id`) has a\n * checkout layout, behaviour settings, routing configurations and connector\n * accounts, written with `checkoutMethods`, `shops.updateCheckoutBranding`,\n * `routing` and the connector shop methods. Its changes reach the shops on it\n * when `apply()` runs. While a shop is on a template, its own payment methods,\n * behaviour and routing cannot be changed; its appearance stays its own.\n *\n * Every method but `ofShop()` needs a merchant-level role that sees every\n * connector and payment; `create()`, `assign()` and `apply()` also need\n * routing and connector write.\n */\nexport class CheckoutTemplates {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The merchant's templates, each with the shops on it and whether each\n * runs the template's current settings.\n * `GET /checkout-templates/{merchantId}`\n */\n async list(merchantId: string): Promise<CheckoutTemplateListResponse> {\n return this.request('GET', `/checkout-templates/${encodeURIComponent(merchantId)}`);\n }\n\n /**\n * Create a template, empty or copied from a shop's current settings. The\n * shop copied from is not changed.\n * `POST /checkout-templates/{merchantId}`\n */\n async create(\n merchantId: string,\n params: CheckoutTemplateCreateRequest,\n ): Promise<CheckoutTemplateResponse> {\n return this.request('POST', `/checkout-templates/${encodeURIComponent(merchantId)}`, {\n body: params,\n });\n }\n\n /** `GET /checkout-templates/{merchantId}/{templateId}` */\n async retrieve(merchantId: string, templateId: string): Promise<CheckoutTemplateResponse> {\n return this.request(\n 'GET',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}`,\n );\n }\n\n /**\n * Rename a template. A name another template of the merchant holds is\n * refused.\n * `POST /checkout-templates/{merchantId}/{templateId}`\n */\n async rename(\n merchantId: string,\n templateId: string,\n params: CheckoutTemplateUpdateRequest,\n ): Promise<CheckoutTemplateResponse> {\n return this.request(\n 'POST',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}`,\n { body: params },\n );\n }\n\n /**\n * Delete a template. Refused while a shop is on it.\n * `DELETE /checkout-templates/{merchantId}/{templateId}`\n */\n async delete(merchantId: string, templateId: string): Promise<CheckoutTemplateResponse> {\n return this.request(\n 'DELETE',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}`,\n );\n }\n\n /**\n * Put shops on the template and copy its settings into them; a shop on\n * another template moves. Each shop is reported on its own: one with\n * `blockers` is left unchanged. `dry_run` changes nothing and reports what\n * would change.\n * `POST /checkout-templates/{merchantId}/{templateId}/shops`\n */\n async assign(\n merchantId: string,\n templateId: string,\n params: CheckoutTemplateAssignRequest,\n ): Promise<CheckoutTemplateApplyResponse> {\n return this.request(\n 'POST',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}/shops`,\n {\n body: params,\n },\n );\n }\n\n /**\n * Take a shop off the template. It keeps every setting it has, as its own.\n * `DELETE /checkout-templates/{merchantId}/{templateId}/shops/{profileId}`\n */\n async unassign(\n merchantId: string,\n templateId: string,\n profileId: string,\n ): Promise<CheckoutTemplateResponse> {\n return this.request(\n 'DELETE',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}/shops/${encodeURIComponent(profileId)}`,\n );\n }\n\n /**\n * Copy the template's current settings into its shops, all or the ones\n * named.\n * `POST /checkout-templates/{merchantId}/{templateId}/apply`\n */\n async apply(\n merchantId: string,\n templateId: string,\n params: CheckoutTemplateApplyRequest = {},\n ): Promise<CheckoutTemplateApplyResponse> {\n return this.request(\n 'POST',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}/apply`,\n {\n body: params,\n },\n );\n }\n\n /**\n * The template a shop is on, if any. Readable by the shop's own members.\n * `GET /checkout-templates/{merchantId}/shops/{profileId}`\n */\n async ofShop(merchantId: string, profileId: string): Promise<CheckoutTemplateOfShopResponse> {\n return this.request(\n 'GET',\n `/checkout-templates/${encodeURIComponent(merchantId)}/shops/${encodeURIComponent(profileId)}`,\n );\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk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A;AACjE,IAAA;AACF,EAAA;AACF;ADnDqF;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-7ITPMVDB.cjs","sourcesContent":[null,"import type {\n CheckoutTemplateApplyRequest,\n CheckoutTemplateApplyResponse,\n CheckoutTemplateAssignRequest,\n CheckoutTemplateCreateRequest,\n CheckoutTemplateListResponse,\n CheckoutTemplateOfShopResponse,\n CheckoutTemplateResponse,\n CheckoutTemplateUpdateRequest,\n} from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * Checkout templates: a shop's payment methods, behaviour and smart routing,\n * defined once for the merchant and used in many shops.\n *\n * A template is edited where a shop is: its own profile (`template_id`) has a\n * checkout layout, behaviour settings, routing configurations and connector\n * accounts, written with `checkoutMethods`, `shops.updateCheckoutBranding`,\n * `routing` and the connector shop methods. Its changes reach the shops on it\n * when `apply()` runs. While a shop is on a template, its own payment methods,\n * behaviour and routing cannot be changed; its appearance stays its own.\n *\n * Every method but `ofShop()` needs a merchant-level role that sees every\n * connector and payment; `create()`, `assign()` and `apply()` also need\n * routing and connector write.\n */\nexport class CheckoutTemplates {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The merchant's templates, each with the shops on it and whether each\n * runs the template's current settings.\n * `GET /checkout-templates/{merchantId}`\n */\n async list(merchantId: string): Promise<CheckoutTemplateListResponse> {\n return this.request('GET', `/checkout-templates/${encodeURIComponent(merchantId)}`);\n }\n\n /**\n * Create a template, empty or copied from a shop's current settings. The\n * shop copied from is not changed.\n * `POST /checkout-templates/{merchantId}`\n */\n async create(\n merchantId: string,\n params: CheckoutTemplateCreateRequest,\n ): Promise<CheckoutTemplateResponse> {\n return this.request('POST', `/checkout-templates/${encodeURIComponent(merchantId)}`, {\n body: params,\n });\n }\n\n /** `GET /checkout-templates/{merchantId}/{templateId}` */\n async retrieve(merchantId: string, templateId: string): Promise<CheckoutTemplateResponse> {\n return this.request(\n 'GET',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}`,\n );\n }\n\n /**\n * Rename a template. A name another template of the merchant holds is\n * refused.\n * `POST /checkout-templates/{merchantId}/{templateId}`\n */\n async rename(\n merchantId: string,\n templateId: string,\n params: CheckoutTemplateUpdateRequest,\n ): Promise<CheckoutTemplateResponse> {\n return this.request(\n 'POST',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}`,\n { body: params },\n );\n }\n\n /**\n * Delete a template. Refused while a shop is on it.\n * `DELETE /checkout-templates/{merchantId}/{templateId}`\n */\n async delete(merchantId: string, templateId: string): Promise<CheckoutTemplateResponse> {\n return this.request(\n 'DELETE',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}`,\n );\n }\n\n /**\n * Put shops on the template and copy its settings into them; a shop on\n * another template moves. Each shop is reported on its own: one with\n * `blockers` is left unchanged. `dry_run` changes nothing and reports what\n * would change.\n * `POST /checkout-templates/{merchantId}/{templateId}/shops`\n */\n async assign(\n merchantId: string,\n templateId: string,\n params: CheckoutTemplateAssignRequest,\n ): Promise<CheckoutTemplateApplyResponse> {\n return this.request(\n 'POST',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}/shops`,\n {\n body: params,\n },\n );\n }\n\n /**\n * Take a shop off the template. It keeps every setting it has, as its own.\n * `DELETE /checkout-templates/{merchantId}/{templateId}/shops/{profileId}`\n */\n async unassign(\n merchantId: string,\n templateId: string,\n profileId: string,\n ): Promise<CheckoutTemplateResponse> {\n return this.request(\n 'DELETE',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}/shops/${encodeURIComponent(profileId)}`,\n );\n }\n\n /**\n * Copy the template's current settings into its shops, all or the ones\n * named.\n * `POST /checkout-templates/{merchantId}/{templateId}/apply`\n */\n async apply(\n merchantId: string,\n templateId: string,\n params: CheckoutTemplateApplyRequest = {},\n ): Promise<CheckoutTemplateApplyResponse> {\n return this.request(\n 'POST',\n `/checkout-templates/${encodeURIComponent(merchantId)}/${encodeURIComponent(templateId)}/apply`,\n {\n body: params,\n },\n );\n }\n\n /**\n * The template a shop is on, if any. Readable by the shop's own members.\n * `GET /checkout-templates/{merchantId}/shops/{profileId}`\n */\n async ofShop(merchantId: string, profileId: string): Promise<CheckoutTemplateOfShopResponse> {\n return this.request(\n 'GET',\n `/checkout-templates/${encodeURIComponent(merchantId)}/shops/${encodeURIComponent(profileId)}`,\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-7JV6VVO7.cjs","../src/resources/externalRecords.ts"],"names":[],"mappings":"AAAA;ACqBO,IAAM,gBAAA,EAAN,MAAsB;AAAA,EAC3B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYlD,MAAM,MAAA,CAAO,MAAA,EAAgE;AAC3E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,mBAAA,EAAqB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACnE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBA,MAAM,YAAA,CAAA,EAAoD;AACxD,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,gCAAgC,CAAA;AAAA,EAC7D;AACF,CAAA;ADnBA;AACA;AACE;AACF,0CAAC","file":"/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-7JV6VVO7.cjs","sourcesContent":[null,"import type {\n ExternalRecordCapabilities,\n ExternalRecordRequest,\n ExternalRecordResponse,\n} from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * Out-of-band transitions: what a PSP did that DeloPay never observed.\n *\n * A refund issued in the PSP's own dashboard, a chargeback settled by phone, a\n * payment the rail holds as paid but never sent a usable notification for. The\n * transition is written through the normal path, an outgoing webhook is raised\n * for the shop, and an audit row records who asserted it and why.\n *\n * This asserts a fact about somebody else's money, so it is deliberately\n * expensive to call: the reason is compelled, the PSP's own reference belongs\n * with it, and every record is attributable. It needs a dashboard session with\n * the profile external-record write permission — an API key reaches nothing\n * here.\n */\nexport class ExternalRecords {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Record one out-of-band transition.\n * `POST /external-records`\n *\n * Which kinds a deployment answers for depends on the payment's connector\n * and on which arms are live: an arm that is not served answers `501`, which\n * is a statement about this rail rather than about the request.\n *\n * @param params - What happened, and why it is being recorded.\n */\n async create(params: ExternalRecordRequest): Promise<ExternalRecordResponse> {\n return this.request('POST', '/external-records', { body: params });\n }\n\n /**\n * What this deployment will accept, per kind.\n * `GET /external-records/capabilities`\n *\n * Read it before offering the operator a form. Every kind is listed, so an\n * entry that is not served is distinguishable from a kind this release does\n * not know at all — and `create` says *why* it is not served: a gap\n * (`not_implemented`) or a rule (`not_applicable`). Treating those as the\n * same thing is how a caller ends up waiting for something that will never\n * be built.\n *\n * The answer includes the current merchant's rollout and storage eligibility.\n * Read it for the authenticated merchant when deciding whether to offer an\n * action; do not reuse another merchant's response or a previous session's\n * answer after eligibility may have changed.\n */\n async capabilities(): Promise<ExternalRecordCapabilities> {\n return this.request('GET', '/external-records/capabilities');\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-7JV6VVO7.cjs","../src/resources/externalRecords.ts"],"names":[],"mappings":"AAAA;ACqBO,IAAM,gBAAA,EAAN,MAAsB;AAAA,EAC3B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYlD,MAAM,MAAA,CAAO,MAAA,EAAgE;AAC3E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,mBAAA,EAAqB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACnE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBA,MAAM,YAAA,CAAA,EAAoD;AACxD,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,gCAAgC,CAAA;AAAA,EAC7D;AACF,CAAA;ADnBA;AACA;AACE;AACF,0CAAC","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-7JV6VVO7.cjs","sourcesContent":[null,"import type {\n ExternalRecordCapabilities,\n ExternalRecordRequest,\n ExternalRecordResponse,\n} from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * Out-of-band transitions: what a PSP did that DeloPay never observed.\n *\n * A refund issued in the PSP's own dashboard, a chargeback settled by phone, a\n * payment the rail holds as paid but never sent a usable notification for. The\n * transition is written through the normal path, an outgoing webhook is raised\n * for the shop, and an audit row records who asserted it and why.\n *\n * This asserts a fact about somebody else's money, so it is deliberately\n * expensive to call: the reason is compelled, the PSP's own reference belongs\n * with it, and every record is attributable. It needs a dashboard session with\n * the profile external-record write permission — an API key reaches nothing\n * here.\n */\nexport class ExternalRecords {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Record one out-of-band transition.\n * `POST /external-records`\n *\n * Which kinds a deployment answers for depends on the payment's connector\n * and on which arms are live: an arm that is not served answers `501`, which\n * is a statement about this rail rather than about the request.\n *\n * @param params - What happened, and why it is being recorded.\n */\n async create(params: ExternalRecordRequest): Promise<ExternalRecordResponse> {\n return this.request('POST', '/external-records', { body: params });\n }\n\n /**\n * What this deployment will accept, per kind.\n * `GET /external-records/capabilities`\n *\n * Read it before offering the operator a form. Every kind is listed, so an\n * entry that is not served is distinguishable from a kind this release does\n * not know at all — and `create` says *why* it is not served: a gap\n * (`not_implemented`) or a rule (`not_applicable`). Treating those as the\n * same thing is how a caller ends up waiting for something that will never\n * be built.\n *\n * The answer includes the current merchant's rollout and storage eligibility.\n * Read it for the authenticated merchant when deciding whether to offer an\n * action; do not reuse another merchant's response or a previous session's\n * answer after eligibility may have changed.\n */\n async capabilities(): Promise<ExternalRecordCapabilities> {\n return this.request('GET', '/external-records/capabilities');\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/tmp.Eqhvn5JUmv/sdk/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":"/tmp/tmp.Eqhvn5JUmv/sdk/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"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/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/sdk-publish-0420-clone-w4/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"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/tmp.Eqhvn5JUmv/sdk/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":"/tmp/tmp.Eqhvn5JUmv/sdk/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"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/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/sdk-publish-0420-clone-w4/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"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-ACZ2R47X.cjs","../src/resources/sellToRestrictions.ts"],"names":[],"mappings":"AAAA;ACsBO,IAAM,mBAAA,EAAN,MAAyB;AAAA,EAC9B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,MAAM,QAAA,CAAA,EAAgD;AACpD,IAAA,O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EAAA;AACzB,IAAA;AACV,MAAA;AAC2E,MAAA;AAC3E,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOqE,EAAA;AACJ,IAAA;AACjE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOoF,EAAA;AACtE,IAAA;AACV,MAAA;AAC+D,MAAA;AACjE,IAAA;AACF,EAAA;AACF;ADtD4F;AACA;AACA;AACA","file":"/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-ACZ2R47X.cjs","sourcesContent":[null,"import type {\n ConnectorSellToRestriction,\n ProjectSellToRestriction,\n SellToRestrictionCapabilitiesResponse,\n SellToRestrictionDecisionsResponse,\n SellToRestrictionPolicyRequest,\n SellToRestrictionsResponse,\n ShopSellToRestriction,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * Sell-to restrictions: the buyer countries a merchant refuses to sell to,\n * merchant-wide, per project and per shop. A refused payment fails with error\n * code `DE_10`.\n *\n * Every route needs a dashboard session. Reading needs the `SellToRestrictions`\n * area at `Read`, overriding a shop needs `Edit` (a shop-scoped role may\n * override only its own shop), a project's policy needs `Edit` at merchant\n * level (no shop-scoped role, project members included), and changing the\n * merchant-wide policy needs `Write`.\n */\nexport class SellToRestrictions {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The merchant-wide policy and every shop's effective policy. A caller\n * scoped to one shop receives that shop alone, and no merchant-wide policy.\n * `GET /sell-to-restrictions`\n */\n async retrieve(): Promise<SellToRestrictionsResponse> {\n return this.request('GET', '/sell-to-restrictions');\n }\n\n /**\n * Replace the merchant-wide policy every shop without an override inherits.\n * The change is recorded in the audit log before it is made.\n * `PUT /sell-to-restrictions/merchant`\n */\n async updateMerchantPolicy(\n params: SellToRestrictionPolicyRequest,\n options?: RequestExtras,\n ): Promise<SellToRestrictionsResponse> {\n return this.request('PUT', '/sell-to-restrictions/merchant', { body: params, ...options });\n }\n\n /**\n * Give one shop its own policy, replacing the merchant-wide policy for that\n * shop. An empty `blocked_countries` lifts every restriction for it.\n * `PUT /sell-to-restrictions/shops/{profile_id}`\n */\n async updateShopOverride(\n profileId: string,\n params: SellToRestrictionPolicyRequest,\n options?: RequestExtras,\n ): Promise<ShopSellToRestriction> {\n return this.request('PUT', `/sell-to-restrictions/shops/${encodeURIComponent(profileId)}`, {\n body: params,\n ...options,\n });\n }\n\n /**\n * Remove one shop's override, so it inherits the merchant-wide policy again.\n * Removing an override the shop does not have changes nothing.\n * `DELETE /sell-to-restrictions/shops/{profile_id}`\n */\n async deleteShopOverride(\n profileId: string,\n options?: RequestExtras,\n ): Promise<ShopSellToRestriction> {\n return this.request(\n 'DELETE',\n `/sell-to-restrictions/shops/${encodeURIComponent(profileId)}`,\n options,\n );\n }\n\n /**\n * One project's own policy, if it has one.\n * `GET /sell-to-restrictions/projects/{project_id}`\n */\n async retrieveProject(projectId: string): Promise<ProjectSellToRestriction> {\n return this.request('GET', `/sell-to-restrictions/projects/${encodeURIComponent(projectId)}`);\n }\n\n /**\n * Give one project its own policy. It replaces the merchant-wide policy for\n * every shop of the project's subtree without an override or a nearer\n * project policy, from their next payment on. An empty `blocked_countries`\n * lifts every restriction for them. Recorded in the audit log first.\n * `PUT /sell-to-restrictions/projects/{project_id}`\n */\n async updateProjectPolicy(\n projectId: string,\n params: SellToRestrictionPolicyRequest,\n options?: RequestExtras,\n ): Promise<ProjectSellToRestriction> {\n return this.request('PUT', `/sell-to-restrictions/projects/${encodeURIComponent(projectId)}`, {\n body: params,\n ...options,\n });\n }\n\n /**\n * Remove one project's policy, so its subtree inherits from above again.\n * Removing a policy the project does not have changes nothing.\n * `DELETE /sell-to-restrictions/projects/{project_id}`\n */\n async deleteProjectPolicy(\n projectId: string,\n options?: RequestExtras,\n ): Promise<ProjectSellToRestriction> {\n return this.request(\n 'DELETE',\n `/sell-to-restrictions/projects/${encodeURIComponent(projectId)}`,\n options,\n );\n }\n\n /**\n * One payment connector account's own policy, and which buyer\n * signals its payments can be judged on. Needs the merchant-level `Read`\n * rung; a shop-scoped role is refused.\n * `GET /sell-to-restrictions/connectors/{merchant_connector_id}`\n */\n async retrieveConnectorPolicy(merchantConnectorId: string): Promise<ConnectorSellToRestriction> {\n return this.request(\n 'GET',\n `/sell-to-restrictions/connectors/${encodeURIComponent(merchantConnectorId)}`,\n );\n }\n\n /**\n * Give one payment connector account its own policy. It applies on top of\n * each shop's policy, in every shop the account serves, from the next\n * payment on: a buyer it refuses is routed to another account of the shop.\n * Needs the merchant-wide `Write` rung and write visibility for the\n * processor; recorded in the audit log first.\n * `PUT /sell-to-restrictions/connectors/{merchant_connector_id}`\n */\n async updateConnectorPolicy(\n merchantConnectorId: string,\n params: SellToRestrictionPolicyRequest,\n options?: RequestExtras,\n ): Promise<ConnectorSellToRestriction> {\n return this.request(\n 'PUT',\n `/sell-to-restrictions/connectors/${encodeURIComponent(merchantConnectorId)}`,\n { body: params, ...options },\n );\n }\n\n /**\n * Remove one connector account's own policy; each shop's policy still\n * applies. Removing a policy the account does not have changes nothing.\n * `DELETE /sell-to-restrictions/connectors/{merchant_connector_id}`\n */\n async deleteConnectorPolicy(\n merchantConnectorId: string,\n options?: RequestExtras,\n ): Promise<ConnectorSellToRestriction> {\n return this.request(\n 'DELETE',\n `/sell-to-restrictions/connectors/${encodeURIComponent(merchantConnectorId)}`,\n options,\n );\n }\n\n /**\n * Which checks each payment path performs, and how this deployment resolves\n * a buyer's country — read before relying on a restriction for a path.\n * `GET /sell-to-restrictions/capabilities`\n */\n async capabilities(): Promise<SellToRestrictionCapabilitiesResponse> {\n return this.request('GET', '/sell-to-restrictions/capabilities');\n }\n\n /**\n * Why a payment was refused: where, by which signal, for which country and\n * under which policy. A shop-scoped caller sees only refusals in its shop.\n * `GET /sell-to-restrictions/payments/{payment_id}/decisions`\n */\n async listDecisions(paymentId: string): Promise<SellToRestrictionDecisionsResponse> {\n return this.request(\n 'GET',\n `/sell-to-restrictions/payments/${encodeURIComponent(paymentId)}/decisions`,\n );\n }\n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AAA;AACV,MAAA;AAC+D,MAAA;AAC/D,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQgG,EAAA;AAClF,IAAA;AACV,MAAA;AAC2E,MAAA;AAC7E,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcuC,EAAA;AACzB,IAAA;AACV,MAAA;AAC2E,MAAA;AAChD,MAAA;AAC7B,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUuC,EAAA;AACzB,IAAA;AACV,MAAA;AAC2E,MAAA;AAC3E,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOqE,EAAA;AACJ,IAAA;AACjE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOoF,EAAA;AACtE,IAAA;AACV,MAAA;AAC+D,MAAA;AACjE,IAAA;AACF,EAAA;AACF;ADtD4F;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-ACZ2R47X.cjs","sourcesContent":[null,"import type {\n ConnectorSellToRestriction,\n ProjectSellToRestriction,\n SellToRestrictionCapabilitiesResponse,\n SellToRestrictionDecisionsResponse,\n SellToRestrictionPolicyRequest,\n SellToRestrictionsResponse,\n ShopSellToRestriction,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * Sell-to restrictions: the buyer countries a merchant refuses to sell to,\n * merchant-wide, per project and per shop. A refused payment fails with error\n * code `DE_10`.\n *\n * Every route needs a dashboard session. Reading needs the `SellToRestrictions`\n * area at `Read`, overriding a shop needs `Edit` (a shop-scoped role may\n * override only its own shop), a project's policy needs `Edit` at merchant\n * level (no shop-scoped role, project members included), and changing the\n * merchant-wide policy needs `Write`.\n */\nexport class SellToRestrictions {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The merchant-wide policy and every shop's effective policy. A caller\n * scoped to one shop receives that shop alone, and no merchant-wide policy.\n * `GET /sell-to-restrictions`\n */\n async retrieve(): Promise<SellToRestrictionsResponse> {\n return this.request('GET', '/sell-to-restrictions');\n }\n\n /**\n * Replace the merchant-wide policy every shop without an override inherits.\n * The change is recorded in the audit log before it is made.\n * `PUT /sell-to-restrictions/merchant`\n */\n async updateMerchantPolicy(\n params: SellToRestrictionPolicyRequest,\n options?: RequestExtras,\n ): Promise<SellToRestrictionsResponse> {\n return this.request('PUT', '/sell-to-restrictions/merchant', { body: params, ...options });\n }\n\n /**\n * Give one shop its own policy, replacing the merchant-wide policy for that\n * shop. An empty `blocked_countries` lifts every restriction for it.\n * `PUT /sell-to-restrictions/shops/{profile_id}`\n */\n async updateShopOverride(\n profileId: string,\n params: SellToRestrictionPolicyRequest,\n options?: RequestExtras,\n ): Promise<ShopSellToRestriction> {\n return this.request('PUT', `/sell-to-restrictions/shops/${encodeURIComponent(profileId)}`, {\n body: params,\n ...options,\n });\n }\n\n /**\n * Remove one shop's override, so it inherits the merchant-wide policy again.\n * Removing an override the shop does not have changes nothing.\n * `DELETE /sell-to-restrictions/shops/{profile_id}`\n */\n async deleteShopOverride(\n profileId: string,\n options?: RequestExtras,\n ): Promise<ShopSellToRestriction> {\n return this.request(\n 'DELETE',\n `/sell-to-restrictions/shops/${encodeURIComponent(profileId)}`,\n options,\n );\n }\n\n /**\n * One project's own policy, if it has one.\n * `GET /sell-to-restrictions/projects/{project_id}`\n */\n async retrieveProject(projectId: string): Promise<ProjectSellToRestriction> {\n return this.request('GET', `/sell-to-restrictions/projects/${encodeURIComponent(projectId)}`);\n }\n\n /**\n * Give one project its own policy. It replaces the merchant-wide policy for\n * every shop of the project's subtree without an override or a nearer\n * project policy, from their next payment on. An empty `blocked_countries`\n * lifts every restriction for them. Recorded in the audit log first.\n * `PUT /sell-to-restrictions/projects/{project_id}`\n */\n async updateProjectPolicy(\n projectId: string,\n params: SellToRestrictionPolicyRequest,\n options?: RequestExtras,\n ): Promise<ProjectSellToRestriction> {\n return this.request('PUT', `/sell-to-restrictions/projects/${encodeURIComponent(projectId)}`, {\n body: params,\n ...options,\n });\n }\n\n /**\n * Remove one project's policy, so its subtree inherits from above again.\n * Removing a policy the project does not have changes nothing.\n * `DELETE /sell-to-restrictions/projects/{project_id}`\n */\n async deleteProjectPolicy(\n projectId: string,\n options?: RequestExtras,\n ): Promise<ProjectSellToRestriction> {\n return this.request(\n 'DELETE',\n `/sell-to-restrictions/projects/${encodeURIComponent(projectId)}`,\n options,\n );\n }\n\n /**\n * One payment connector account's own policy, and which buyer\n * signals its payments can be judged on. Needs the merchant-level `Read`\n * rung; a shop-scoped role is refused.\n * `GET /sell-to-restrictions/connectors/{merchant_connector_id}`\n */\n async retrieveConnectorPolicy(merchantConnectorId: string): Promise<ConnectorSellToRestriction> {\n return this.request(\n 'GET',\n `/sell-to-restrictions/connectors/${encodeURIComponent(merchantConnectorId)}`,\n );\n }\n\n /**\n * Give one payment connector account its own policy. It applies on top of\n * each shop's policy, in every shop the account serves, from the next\n * payment on: a buyer it refuses is routed to another account of the shop.\n * Needs the merchant-wide `Write` rung and write visibility for the\n * processor; recorded in the audit log first.\n * `PUT /sell-to-restrictions/connectors/{merchant_connector_id}`\n */\n async updateConnectorPolicy(\n merchantConnectorId: string,\n params: SellToRestrictionPolicyRequest,\n options?: RequestExtras,\n ): Promise<ConnectorSellToRestriction> {\n return this.request(\n 'PUT',\n `/sell-to-restrictions/connectors/${encodeURIComponent(merchantConnectorId)}`,\n { body: params, ...options },\n );\n }\n\n /**\n * Remove one connector account's own policy; each shop's policy still\n * applies. Removing a policy the account does not have changes nothing.\n * `DELETE /sell-to-restrictions/connectors/{merchant_connector_id}`\n */\n async deleteConnectorPolicy(\n merchantConnectorId: string,\n options?: RequestExtras,\n ): Promise<ConnectorSellToRestriction> {\n return this.request(\n 'DELETE',\n `/sell-to-restrictions/connectors/${encodeURIComponent(merchantConnectorId)}`,\n options,\n );\n }\n\n /**\n * Which checks each payment path performs, and how this deployment resolves\n * a buyer's country — read before relying on a restriction for a path.\n * `GET /sell-to-restrictions/capabilities`\n */\n async capabilities(): Promise<SellToRestrictionCapabilitiesResponse> {\n return this.request('GET', '/sell-to-restrictions/capabilities');\n }\n\n /**\n * Why a payment was refused: where, by which signal, for which country and\n * under which policy. A shop-scoped caller sees only refusals in its shop.\n * `GET /sell-to-restrictions/payments/{payment_id}/decisions`\n */\n async listDecisions(paymentId: string): Promise<SellToRestrictionDecisionsResponse> {\n return this.request(\n 'GET',\n `/sell-to-restrictions/payments/${encodeURIComponent(paymentId)}/decisions`,\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-AYUYJO3I.cjs","../src/internal/resources/adminFileScans.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACYO,IAAM,eAAA,EAAN,MAAqB;AAAA,EAC1B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,MAAM,MAAA,CAAA,EAAkC;AACtC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,iCAAiC,CAAA;AAAA,EAC9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,MAAM,IAAA,CAAK,KAAA,EAA+B,CAAC,CAAA,EAA8B;AACvE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,+BAAA,EAAiC,EAAE,KAAK,CAAC,CAAA;AAAA,EACvE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,OAAA,CAAQ,MAAA,EAA0B,CAAC,CAAA,EAA6B;AACpE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,kCAAA,EAAoC;AAAA,MAC7D,KAAA,EAAO,wCAAA,KAAS,EAAO,CAAC,MAAA,EAAQ,MAAM,CAAC;AAAA,IACzC,CAAC,CAAA;AAAA,EACH;AACF,CAAA;ADXA;AACA;AACE;AACF,wCAAC","file":"/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-AYUYJO3I.cjs","sourcesContent":[null,"import type { RequestFn } from '../../client';\nimport type {\n BlockedFileList,\n BlockedFileQuery,\n FileScannerCheck,\n FileScannerTestRequest,\n FileScanStatus,\n} from '../types';\nimport { csvQuery } from '../../listQuery';\n\n/**\n * Malware scanning of uploaded files: buyer evidence, buyer conversation\n * attachments and support attachments. The scanner's status and its test\n * need an operator who may change operations settings; the list of blocked\n * files takes any internal platform-operator role (`403` otherwise).\n */\nexport class AdminFileScans {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The scanner settings in force and where they come from, a check of the\n * scanner made for this answer, when it last finished a file and how many\n * files wait for their scan. `GET /admin-portal/file-scans/status`\n */\n async status(): Promise<FileScanStatus> {\n return this.request('GET', '/admin-portal/file-scans/status');\n }\n\n /**\n * Ask a scanner whether it answers, before it is saved. Only the connection\n * is tested: no file content is sent. A field left out takes the value in\n * force. An address outside the deployment's private network is refused\n * without a connection (`problem: 'public_address'`).\n * `POST /admin-portal/file-scans/test`\n */\n async test(body: FileScannerTestRequest = {}): Promise<FileScannerCheck> {\n return this.request('POST', '/admin-portal/file-scans/test', { body });\n }\n\n /**\n * Uploaded files their scan blocked, of every kind, latest result first\n * unless `sort_by` says otherwise, with what the scanner found. Several\n * `kind` or `side` values match a file with any of them. A blocked file's\n * content is never handed out. `GET /admin-portal/file-scans/blocked`\n */\n async blocked(query: BlockedFileQuery = {}): Promise<BlockedFileList> {\n return this.request('GET', '/admin-portal/file-scans/blocked', {\n query: csvQuery(query, ['kind', 'side']),\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-AYUYJO3I.cjs","../src/internal/resources/adminFileScans.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACYO,IAAM,eAAA,EAAN,MAAqB;AAAA,EAC1B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,MAAM,MAAA,CAAA,EAAkC;AACtC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,iCAAiC,CAAA;AAAA,EAC9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,MAAM,IAAA,CAAK,KAAA,EAA+B,CAAC,CAAA,EAA8B;AACvE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,+BAAA,EAAiC,EAAE,KAAK,CAAC,CAAA;AAAA,EACvE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,OAAA,CAAQ,MAAA,EAA0B,CAAC,CAAA,EAA6B;AACpE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,kCAAA,EAAoC;AAAA,MAC7D,KAAA,EAAO,wCAAA,KAAS,EAAO,CAAC,MAAA,EAAQ,MAAM,CAAC;AAAA,IACzC,CAAC,CAAA;AAAA,EACH;AACF,CAAA;ADXA;AACA;AACE;AACF,wCAAC","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-AYUYJO3I.cjs","sourcesContent":[null,"import type { RequestFn } from '../../client';\nimport type {\n BlockedFileList,\n BlockedFileQuery,\n FileScannerCheck,\n FileScannerTestRequest,\n FileScanStatus,\n} from '../types';\nimport { csvQuery } from '../../listQuery';\n\n/**\n * Malware scanning of uploaded files: buyer evidence, buyer conversation\n * attachments and support attachments. The scanner's status and its test\n * need an operator who may change operations settings; the list of blocked\n * files takes any internal platform-operator role (`403` otherwise).\n */\nexport class AdminFileScans {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The scanner settings in force and where they come from, a check of the\n * scanner made for this answer, when it last finished a file and how many\n * files wait for their scan. `GET /admin-portal/file-scans/status`\n */\n async status(): Promise<FileScanStatus> {\n return this.request('GET', '/admin-portal/file-scans/status');\n }\n\n /**\n * Ask a scanner whether it answers, before it is saved. Only the connection\n * is tested: no file content is sent. A field left out takes the value in\n * force. An address outside the deployment's private network is refused\n * without a connection (`problem: 'public_address'`).\n * `POST /admin-portal/file-scans/test`\n */\n async test(body: FileScannerTestRequest = {}): Promise<FileScannerCheck> {\n return this.request('POST', '/admin-portal/file-scans/test', { body });\n }\n\n /**\n * Uploaded files their scan blocked, of every kind, latest result first\n * unless `sort_by` says otherwise, with what the scanner found. Several\n * `kind` or `side` values match a file with any of them. A blocked file's\n * content is never handed out. `GET /admin-portal/file-scans/blocked`\n */\n async blocked(query: BlockedFileQuery = {}): Promise<BlockedFileList> {\n return this.request('GET', '/admin-portal/file-scans/blocked', {\n query: csvQuery(query, ['kind', 'side']),\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-B2TCNGC2.cjs","../src/resources/settlement.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACqDO,SAAS,kBAAA,CAAmB,MAAA,EAAgE;AACjG,EAAA,OAAO,wCAAA;AAAA,IACL;AAAA,MACE,SAAA,EAAW,MAAA,CAAO,SAAA;AAAA,MAClB,UAAA,EAAY,MAAA,CAAO,UAAA;AAAA,MACnB,KAAA,EAAO,MAAA,CAAO,KAAA;AAAA,MACd,MAAA,EAAQ,MAAA,CAAO,MAAA;AAAA,MACf,aAAA,EAAe,MAAA,CAAO,aAAA;AAAA,MACtB,WAAA,EAAa,MAAA,CAAO,WAAA;AAAA,MACpB,SAAA,EAAW,MAAA,CAAO,SAAA;AAAA,MAClB,OAAA,EAAS,MAAA,CAAO,OAAA;AAAA,MAChB,UAAA,EAAY,MAAA,CAAO;AAAA,IACrB,CAAA;AAAA,IACA,CAA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C,EAAA;AACY,IAAA;AAC1B,MAAA;AAC1B,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYmC,EAAA;AACyB,IAAA;AAClD,MAAA;AACH,MAAA;AACwB,MAAA;AAC5B,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAS+C,EAAA;AACY,IAAA;AAC1B,MAAA;AAC1B,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAM+C,EAAA;AACjB,IAAA;AAC9B,EAAA;AAMiB,EAAA;AAC0C,IAAA;AAChB,MAAA;AACzB,MAAA;AACX,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAGwF,EAAA;AAC1E,IAAA;AACV,MAAA;AAC0D,MAAA;AAC1D,MAAA;AACK,QAAA;AACuC,QAAA;AAC5B,QAAA;AAChB,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAMyC,EAAA;AAC3B,IAAA;AACV,MAAA;AAC0D,MAAA;AAC1D,MAAA;AACK,QAAA;AAC+C,QAAA;AACpD,MAAA;AACF,IAAA;AACF,EAAA;AACF;ADnMgE;AACA;AACA;AACA;AACA","file":"/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-B2TCNGC2.cjs","sourcesContent":[null,"import type {\n NativeSettlementPreviewRequest,\n NativeSettlementPreviewResponse,\n NativeSettlementReportCreateRequest,\n NativeSettlementReport,\n NativeSettlementReportExport,\n NativeSettlementListRequest,\n NativeSettlementReportListResponse,\n NativeSettlementPayoutCreateRequest,\n NativeSettlementPayout,\n NativeSettlementPayoutListResponse,\n NativeSettlementFeeRefreshRequest,\n NativeSettlementFeeRefreshResponse,\n NativeSettlementPdfRequest,\n ProcessorCostEventsRequest,\n ProcessorCostEventsResponse,\n ProcessorCostPeriodRequest,\n ProcessorCostPeriodResponse,\n FeeStatementDetail,\n SettlementBackfillRequest,\n SettlementBackfillResponse,\n SettlementCostParams,\n SettlementCostResponse,\n SettlementCurrentParams,\n SettlementCurrentResponse,\n SettlementLineListParams,\n SettlementLineListResponse,\n SettlementOverviewParams,\n SettlementOverviewResponse,\n SettlementStatementListParams,\n SettlementStatementListResponse,\n ShopFeeConfigParams,\n ShopFeeConfigResponse,\n ShopVisibilityResponse,\n ShopVisibilityUpdateRequest,\n StatementAdjustment,\n StatementAdjustmentCreateRequest,\n StatementAdjustmentListResponse,\n StatementGenerateRequest,\n StatementPayoutUpdateRequest,\n StatementPayoutRecordRequest,\n StatementPayoutListResponse,\n StatementAdvance,\n StatementAdvanceRecordRequest,\n SettlementAdvanceListRequest,\n SettlementAdvanceListResponse,\n SettlementPeriodListParams,\n SettlementPeriodListResponse,\n StatementPdfParams,\n} from '../types';\nimport type { RequestExtras, RequestFn, RequestOptions } from '../client';\nimport { csvQuery } from '../listQuery';\n\n/**\n * The statement list's query: `test_mode` always travels, `false` included,\n * and several payout statuses travel as one comma-separated value.\n */\nexport function statementListQuery(params: SettlementStatementListParams): RequestOptions['query'] {\n return csvQuery(\n {\n test_mode: params.test_mode,\n profile_id: params.profile_id,\n limit: params.limit,\n offset: params.offset,\n payout_status: params.payout_status,\n period_from: params.period_from,\n period_to: params.period_to,\n sort_by: params.sort_by,\n sort_order: params.sort_order,\n },\n ['payout_status'],\n );\n}\n\n/** The query of a native report or payout list. */\nfunction nativeListQuery(params: NativeSettlementListRequest): RequestOptions['query'] {\n return {\n profile_id: params.profile_id,\n currency: params.currency,\n test_mode: params.test_mode,\n limit: params.limit,\n offset: params.offset,\n sort_by: params.sort_by,\n sort_order: params.sort_order,\n };\n}\n\nfunction exportHeaders(options: RequestExtras | undefined, accept: string): Record<string, string> {\n const headers = new Headers(options?.headers);\n headers.set('Accept', accept);\n const output: Record<string, string> = {};\n headers.forEach((value, key) => {\n output[key] = value;\n });\n return output;\n}\n\n/**\n * Hosted-shop settlement: monthly statements, the live current-period\n * rollup, per-line detail, fee schedules and backfills.\n *\n * Every read takes an explicit `test_mode` — test and live figures must\n * never blend, so the environment lives in the signature rather than in a\n * default. `false` is transmitted, not dropped.\n *\n * Shop-owner responses are redacted server-side: absent platform-fee fields\n * are a permission boundary, not a gap — never re-derive them client-side.\n */\nexport class Settlement {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Read signed refund/dispute processor fees and report availability.\n * Merchant scope and connector grants apply. Empty movements confirm zero\n * only when the source is reported and complete.\n * Supply payment_id without year/month for all history. force_sync reads\n * provider reports for this page; it requires payment_id and limit <= 20,\n * and never issues a payment, refund or dispute action.\n * Omit test_mode for every reporting partition of one payment; period\n * queries default to live. Each source states its reporting partition.\n */\n async listProcessorCostEvents(\n params: ProcessorCostEventsRequest,\n options?: RequestExtras,\n ): Promise<ProcessorCostEventsResponse> {\n return this.request('GET', '/settlement/processor-cost-events', {\n query: {\n profile_id: params.profile_id,\n payment_id: params.payment_id,\n year: params.year,\n month: params.month,\n test_mode: params.test_mode,\n limit: params.limit,\n offset: params.offset,\n force_sync: params.force_sync,\n },\n ...options,\n });\n }\n\n /**\n * Per-shop settlement rollup for the host merchant: unpaid totals and the\n * running current period, one row per shop.\n *\n * `GET /settlement/overview`\n */\n async overview(\n params: SettlementOverviewParams,\n options?: RequestExtras,\n ): Promise<SettlementOverviewResponse> {\n return this.request('GET', '/settlement/overview', {\n query: { test_mode: params.test_mode },\n ...options,\n });\n }\n\n /**\n * Live rollup of the current (not yet statemented) period.\n *\n * `GET /settlement/current`\n */\n async current(\n params: SettlementCurrentParams,\n options?: RequestExtras,\n ): Promise<SettlementCurrentResponse> {\n return this.request('GET', '/settlement/current', {\n query: { test_mode: params.test_mode, profile_id: params.profile_id },\n ...options,\n });\n }\n\n /**\n * What a period's payments cost, and what was left over: gross, the\n * platform fee, hosting fees, what the rails took, and the margin, with a\n * per-connector breakdown.\n *\n * Send `year` and `month` together to report one UTC calendar month, or\n * neither for the running month so far.\n *\n * **Host-only.** The response is the host's cost base, which a shop owner\n * must never see, so a profile-scoped caller is refused with a 403 rather\n * than given a redacted shell. Gate the surface on the caller's scope\n * instead of calling it and handling the failure. Connector-restricted\n * roles cannot read this merchant-wide aggregate; fee-event reads retain\n * their connector grants.\n *\n * Two things not to flatten when rendering the result:\n * `margin_usd` is absent — not zero — whenever `margin_quality` is\n * `'unknown'`, and `unlined_captured_attempt_count` (cost definitely\n * missing) means something different from `unlined_unresolved_attempt_count`\n * (mostly ordinary abandonment).\n *\n * `GET /settlement/cost`\n *\n * @example\n * ```typescript\n * const cost = await delopay.settlement.cost({ test_mode: false, year: 2026, month: 7 });\n * if (cost.margin_quality === 'unknown') {\n * // cost.margin_usd is absent — say so, do not render 0.00\n * }\n * ```\n */\n async cost(\n params?: SettlementCostParams,\n options?: RequestExtras,\n ): Promise<SettlementCostResponse> {\n return this.request('GET', '/settlement/cost', {\n query: {\n profile_id: params?.profile_id,\n test_mode: params?.test_mode,\n year: params?.year,\n month: params?.month,\n },\n ...options,\n });\n }\n\n /**\n * What a period's payments cost at the rails, grouped by shop, connector\n * and payment method. Answers for **every** merchant, including one that\n * hosts nobody — it reads the per-attempt settlement record rather than the\n * settlement lines, which exist only where hosting fees are configured.\n *\n * A sibling of {@link Settlement.cost} rather than a widening of it. That\n * endpoint is a profit statement whose revenue term is hosting income, and\n * a merchant who hosts nobody has none. This publishes cost and never\n * margin.\n *\n * Send `year` and `month` together to report one UTC calendar month, or\n * neither for the running month so far.\n *\n * **The response carries no period total, and a caller must not compute\n * one here.** Every figure keeps the unit the rail reported it in, and the\n * unit is part of each bucket's key, so adding two buckets is not addition.\n * Convert caller-side if you need one number, and say which rates you used.\n * The counts are totalled, because a count has no unit.\n *\n * Two distinctions not to flatten when rendering a bucket:\n * `cost_amount` covers `reported_count + estimated_count` attempts out of\n * `attempt_count` and is a lower bound whenever those disagree; and\n * `unavailable_count` (the rail says it has no figure) means something\n * different from `unwritten_count` (a gap in our own recording).\n *\n * **Merchant scope.** A token scoped to a single shop, a role narrowed to\n * specific connector accounts, or a role without the settlement-read\n * permission group is refused `403`: what a rail charged is the merchant's\n * own cost base, and here it is the whole response, so there is nothing\n * coherent to redact down to. Gate the surface on the caller's scope rather\n * than calling it and handling the failure.\n *\n * `GET /settlement/processor-cost`\n *\n * @example\n * ```typescript\n * const period = await delopay.settlement.processorCost({\n * test_mode: false,\n * year: 2026,\n * month: 7,\n * });\n * for (const bucket of period.buckets) {\n * // Each bucket is its own unit — render per bucket, never a sum.\n * console.log(bucket.connector, bucket.cost_amount, bucket.cost_currency);\n * }\n * ```\n */\n async processorCost(\n params?: ProcessorCostPeriodRequest,\n options?: RequestExtras,\n ): Promise<ProcessorCostPeriodResponse> {\n return this.request('GET', '/settlement/processor-cost', {\n query: {\n profile_id: params?.profile_id,\n test_mode: params?.test_mode,\n year: params?.year,\n month: params?.month,\n },\n ...options,\n });\n }\n\n /**\n * List generated settlement statements, the newest period first unless\n * `sort_by` says otherwise. Several `payout_status` values match a\n * statement in any of them.\n *\n * `GET /settlement/statements`\n */\n async listStatements(\n params: SettlementStatementListParams,\n options?: RequestExtras,\n ): Promise<SettlementStatementListResponse> {\n return this.request('GET', '/settlement/statements', {\n query: statementListQuery(params),\n ...options,\n });\n }\n\n /**\n * One statement with its per-connector/currency breakdown.\n *\n * `GET /settlement/statements/{statementId}`\n */\n async retrieveStatement(\n statementId: string,\n options?: RequestExtras,\n ): Promise<FeeStatementDetail> {\n return this.request(\n 'GET',\n `/settlement/statements/${encodeURIComponent(statementId)}`,\n options,\n );\n }\n\n /**\n * Generate (or regenerate) the statement for one shop and period: a\n * calendar month by `year` and `month`, or any period by its `period_start`.\n *\n * `POST /settlement/statements/generate`\n */\n async generateStatement(\n params: StatementGenerateRequest,\n options?: RequestExtras,\n ): Promise<FeeStatementDetail> {\n return this.request('POST', '/settlement/statements/generate', {\n body: params,\n ...options,\n });\n }\n\n /**\n * Record payout progress on a statement (`unpaid` / `partial` / `paid`).\n *\n * Subject to the caller's `settlement_payout` operation limit — a\n * per-operation ceiling, a windowed total, a windowed count, or any\n * combination: an over-limit call fails with `DE_01` and nothing is\n * recorded. There is no approval route out of it — four-eyes needs an\n * executor that can run the operation once somebody says yes, and only\n * refunds have one, so a settlement rule can only block.\n *\n * `POST /settlement/statements/{statementId}/payout`\n */\n async updateStatementPayout(\n statementId: string,\n params: StatementPayoutUpdateRequest,\n options?: RequestExtras,\n ): Promise<FeeStatementDetail> {\n return this.request(\n 'POST',\n `/settlement/statements/${encodeURIComponent(statementId)}/payout`,\n { body: params, ...options },\n );\n }\n\n /** Append one external transfer record. Send a stable idempotency_key for safe retries. */\n async recordStatementPayout(\n statementId: string,\n params: StatementPayoutRecordRequest,\n options?: RequestExtras,\n ): Promise<FeeStatementDetail> {\n return this.request(\n 'POST',\n `/settlement/statements/${encodeURIComponent(statementId)}/payout`,\n {\n body: params,\n ...options,\n bodyIdempotencyKey: params.idempotency_key ?? null,\n },\n );\n }\n\n /** Read individual transfer records, their signed total, and any overpayment. */\n async listStatementPayouts(\n statementId: string,\n options?: RequestExtras,\n ): Promise<StatementPayoutListResponse> {\n return this.request(\n 'GET',\n `/settlement/statements/${encodeURIComponent(statementId)}/payouts`,\n options,\n );\n }\n\n /** Record a transfer against a shop's period before its statement exists. */\n async recordAdvance(\n params: StatementAdvanceRecordRequest,\n options?: RequestExtras,\n ): Promise<StatementAdvance> {\n return this.request('POST', '/settlement/advances', {\n body: params,\n ...options,\n bodyIdempotencyKey: params.idempotency_key ?? null,\n });\n }\n\n async listAdvances(\n params: SettlementAdvanceListRequest,\n options?: RequestExtras,\n ): Promise<SettlementAdvanceListResponse> {\n return this.request('GET', '/settlement/advances', {\n query: {\n profile_id: params.profile_id,\n year: params.year,\n month: params.month,\n period_start: params.period_start,\n test_mode: params.test_mode,\n },\n ...options,\n });\n }\n\n /**\n * A shop's statement periods, newest first: the running one and those that\n * closed in the last twelve months. Each `period_start` names its period to\n * {@link generateStatement}, {@link recordAdvance} and {@link listAdvances}.\n *\n * `GET /settlement/periods`\n */\n async listPeriods(\n params: SettlementPeriodListParams,\n options?: RequestExtras,\n ): Promise<SettlementPeriodListResponse> {\n return this.request('GET', '/settlement/periods', {\n query: { profile_id: params.profile_id },\n ...options,\n });\n }\n\n /**\n * Export a statement as PDF, or with `format` as CSV, JSON\n * (`StatementDocument`) or XLSX. Returns the raw bytes as a `Blob`, with\n * the same auth, retries and error handling as every other call — persist\n * or object-URL it caller-side.\n *\n * `GET /settlement/statements/{statementId}/pdf`\n *\n * @example\n * ```typescript\n * const pdf = await delopay.settlement.downloadStatementPdf('stmt_1', {\n * currency: 'EUR',\n * include_transactions: true,\n * });\n * const url = URL.createObjectURL(pdf);\n * ```\n */\n async downloadStatementPdf(\n statementId: string,\n params?: StatementPdfParams,\n options?: RequestExtras,\n ): Promise<Blob> {\n return this.request('GET', `/settlement/statements/${encodeURIComponent(statementId)}/pdf`, {\n query: {\n currency: params?.currency,\n include_transactions: params?.include_transactions,\n format: params?.format,\n },\n responseType: 'blob',\n ...options,\n });\n }\n\n /**\n * The individual settled attempts of one shop's calendar month.\n *\n * `GET /settlement/lines`\n */\n async listLines(\n params: SettlementLineListParams,\n options?: RequestExtras,\n ): Promise<SettlementLineListResponse> {\n return this.request('GET', '/settlement/lines', {\n query: {\n profile_id: params.profile_id,\n year: params.year,\n month: params.month,\n period_start: params.period_start,\n test_mode: params.test_mode,\n limit: params.limit,\n offset: params.offset,\n },\n ...options,\n });\n }\n\n /**\n * The fee schedules that currently apply to a shop.\n *\n * `GET /settlement/fee-config`\n */\n async feeConfig(\n params: ShopFeeConfigParams,\n options?: RequestExtras,\n ): Promise<ShopFeeConfigResponse> {\n return this.request('GET', '/settlement/fee-config', {\n query: { profile_id: params.profile_id },\n ...options,\n });\n }\n\n /**\n * Enqueue a settlement-line backfill over historical attempts. Attempts\n * already covered by a line are always skipped.\n *\n * `POST /settlement/backfill`\n */\n async backfill(\n params?: SettlementBackfillRequest,\n options?: RequestExtras,\n ): Promise<SettlementBackfillResponse> {\n return this.request('POST', '/settlement/backfill', { body: params, ...options });\n }\n\n /**\n * Toggle whether a shop's owner can see their own settlement figures.\n *\n * `POST /settlement/shops/visibility`\n */\n async setShopVisibility(\n params: ShopVisibilityUpdateRequest,\n options?: RequestExtras,\n ): Promise<ShopVisibilityResponse> {\n return this.request('POST', '/settlement/shops/visibility', {\n body: params,\n ...options,\n });\n }\n\n /**\n * Manual adjustments recorded on a statement.\n *\n * `GET /settlement/statements/{statementId}/adjustments`\n */\n async listStatementAdjustments(\n statementId: string,\n options?: RequestExtras,\n ): Promise<StatementAdjustmentListResponse> {\n return this.request(\n 'GET',\n `/settlement/statements/${encodeURIComponent(statementId)}/adjustments`,\n options,\n );\n }\n\n /**\n * Add a manual adjustment to a statement. Positive `amount_usd` charges\n * the shop (reducing their payout); negative credits them.\n *\n * Subject to the caller's `settlement_adjustment` operation limit: an\n * over-limit call fails with `DE_01` and no adjustment is added. Both\n * windows count every add, and a credit counts at its magnitude. A\n * settlement rule can only block — approval is refund-only, for the reason\n * given on `updateStatementPayout()`. When another add by the same user\n * changes the window while this one is being admitted, the call fails with\n * HTTP 412 and nothing is written; retrying the same request is safe.\n *\n * `POST /settlement/statements/{statementId}/adjustments`\n */\n async createStatementAdjustment(\n statementId: string,\n params: StatementAdjustmentCreateRequest,\n options?: RequestExtras,\n ): Promise<StatementAdjustment> {\n return this.request(\n 'POST',\n `/settlement/statements/${encodeURIComponent(statementId)}/adjustments`,\n { body: params, ...options },\n );\n }\n\n /**\n * Remove a manual adjustment from a statement.\n *\n * The adjustment still counts against the caller's `settlement_adjustment`\n * limit window it was added in: removing it does not give back its count or\n * amount.\n *\n * `DELETE /settlement/statements/{statementId}/adjustments/{adjustmentId}`\n */\n async deleteStatementAdjustment(\n statementId: string,\n adjustmentId: string,\n options?: RequestExtras,\n ): Promise<void> {\n return this.request(\n 'DELETE',\n `/settlement/statements/${encodeURIComponent(statementId)}/adjustments/${encodeURIComponent(adjustmentId)}`,\n options,\n );\n }\n\n /**\n * Calculate a period in its transaction currency. Requires a host-level\n * dashboard JWT and settlement read permission. Profile users and roles\n * restricted to selected connector accounts cannot read this aggregate.\n * Rates apply once to the period total. Unknown or estimated fees keep\n * dependent amounts provisional. Native money values remain integer strings.\n */\n async previewNative(\n params: NativeSettlementPreviewRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementPreviewResponse> {\n return this.request('POST', '/settlement/native/preview', { body: params, ...options });\n }\n\n /**\n * Recalculate and freeze an immutable report version. Requires settlement\n * edit permission. Explicitly allow provisional figures when source fees\n * are incomplete. A report records a calculation and sends no money.\n * Reuse the same idempotency key when retrying the same request.\n */\n async createNativeReport(\n params: NativeSettlementReportCreateRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementReport> {\n return this.request('POST', '/settlement/native/reports', {\n body: params,\n ...options,\n bodyIdempotencyKey: params.idempotency_key,\n });\n }\n\n async retrieveNativeReport(\n reportId: string,\n options?: RequestExtras,\n ): Promise<NativeSettlementReport> {\n return this.request(\n 'GET',\n `/settlement/native/reports/${encodeURIComponent(reportId)}`,\n options,\n );\n }\n\n /**\n * List report summaries without fetching every source row in each saved\n * snapshot, the newest first. `sort_by` takes `period` here; another value\n * is refused.\n */\n async listNativeReports(\n params: NativeSettlementListRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementReportListResponse> {\n return this.request('GET', '/settlement/native/reports', {\n query: nativeListQuery(params),\n ...options,\n });\n }\n\n /**\n * Record a transfer already made, under settlement write permission and\n * the caller's payout limits. This method never sends money. Native minor\n * units remain strings; negative records must name a same-scope reversal.\n * These records belong to the native ledger, separate from monthly USD\n * statement payouts and advances.\n */\n async recordNativePayout(\n params: NativeSettlementPayoutCreateRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementPayout> {\n return this.request('POST', '/settlement/native/payouts', {\n body: params,\n ...options,\n bodyIdempotencyKey: params.idempotency_key,\n });\n }\n\n /**\n * List recorded payouts, the earliest value date first. `sort_by` takes\n * `value_date` or `amount` here; another value is refused.\n */\n async listNativePayouts(\n params: NativeSettlementListRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementPayoutListResponse> {\n return this.request('GET', '/settlement/native/payouts', {\n query: nativeListQuery(params),\n ...options,\n });\n }\n\n /** Refresh a bounded page of provider fee evidence. Follow next_offset while has_more is true. */\n async refreshNativeFees(\n params: NativeSettlementFeeRefreshRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementFeeRefreshResponse> {\n return this.request('POST', '/settlement/native/fees/refresh', { body: params, ...options });\n }\n\n async downloadNativeReportPdf(\n reportId: string,\n params?: NativeSettlementPdfRequest,\n options?: RequestExtras,\n ): Promise<Blob> {\n return this.request('GET', `/settlement/native/reports/${encodeURIComponent(reportId)}/pdf`, {\n query: { include_transactions: params?.include_transactions },\n responseType: 'blob',\n ...options,\n });\n }\n\n /** Download the frozen source rows and calculation as CSV. */\n async downloadNativeReportCsv(reportId: string, options?: RequestExtras): Promise<Blob> {\n return this.request(\n 'GET',\n `/settlement/native/reports/${encodeURIComponent(reportId)}/export`,\n {\n ...options,\n headers: exportHeaders(options, 'text/csv'),\n responseType: 'blob',\n },\n );\n }\n\n /** Export the frozen report as JSON, excluding host account-level costs. */\n async exportNativeReportJson(\n reportId: string,\n options?: RequestExtras,\n ): Promise<NativeSettlementReportExport> {\n return this.request(\n 'GET',\n `/settlement/native/reports/${encodeURIComponent(reportId)}/export`,\n {\n ...options,\n headers: exportHeaders(options, 'application/json'),\n },\n );\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-B2TCNGC2.cjs","../src/resources/settlement.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACqDO,SAAS,kBAAA,CAAmB,MAAA,EAAgE;AACjG,EAAA,OAAO,wCAAA;AAAA,IACL;AAAA,MACE,SAAA,EAAW,MAAA,CAAO,SAAA;AAAA,MAClB,UAAA,EAAY,MAAA,CAAO,UAAA;AAAA,MACnB,KAAA,EAAO,MAAA,CAAO,KAAA;AAAA,MACd,MAAA,EAAQ,MAAA,CAAO,MAAA;AAAA,MACf,aAAA,EAAe,MAA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AAAA;AAWmC,EAAA;AACyB,IAAA;AAClD,MAAA;AACH,MAAA;AACwB,MAAA;AAC5B,IAAA;AACH,EAAA;AAKmC,EAAA;AACrB,IAAA;AACV,MAAA;AAC0D,MAAA;AAC1D,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAU+C,EAAA;AACY,IAAA;AAC1B,MAAA;AAC1B,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYmC,EAAA;AACyB,IAAA;AAClD,MAAA;AACH,MAAA;AACwB,MAAA;AAC5B,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAS+C,EAAA;AACY,IAAA;AAC1B,MAAA;AAC1B,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAM+C,EAAA;AACjB,IAAA;AAC9B,EAAA;AAMiB,EAAA;AAC0C,IAAA;AAChB,MAAA;AACzB,MAAA;AACX,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAGwF,EAAA;AAC1E,IAAA;AACV,MAAA;AAC0D,MAAA;AAC1D,MAAA;AACK,QAAA;AACuC,QAAA;AAC5B,QAAA;AAChB,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAMyC,EAAA;AAC3B,IAAA;AACV,MAAA;AAC0D,MAAA;AAC1D,MAAA;AACK,QAAA;AAC+C,QAAA;AACpD,MAAA;AACF,IAAA;AACF,EAAA;AACF;ADnMgE;AACA;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-B2TCNGC2.cjs","sourcesContent":[null,"import type {\n NativeSettlementPreviewRequest,\n NativeSettlementPreviewResponse,\n NativeSettlementReportCreateRequest,\n NativeSettlementReport,\n NativeSettlementReportExport,\n NativeSettlementListRequest,\n NativeSettlementReportListResponse,\n NativeSettlementPayoutCreateRequest,\n NativeSettlementPayout,\n NativeSettlementPayoutListResponse,\n NativeSettlementFeeRefreshRequest,\n NativeSettlementFeeRefreshResponse,\n NativeSettlementPdfRequest,\n ProcessorCostEventsRequest,\n ProcessorCostEventsResponse,\n ProcessorCostPeriodRequest,\n ProcessorCostPeriodResponse,\n FeeStatementDetail,\n SettlementBackfillRequest,\n SettlementBackfillResponse,\n SettlementCostParams,\n SettlementCostResponse,\n SettlementCurrentParams,\n SettlementCurrentResponse,\n SettlementLineListParams,\n SettlementLineListResponse,\n SettlementOverviewParams,\n SettlementOverviewResponse,\n SettlementStatementListParams,\n SettlementStatementListResponse,\n ShopFeeConfigParams,\n ShopFeeConfigResponse,\n ShopVisibilityResponse,\n ShopVisibilityUpdateRequest,\n StatementAdjustment,\n StatementAdjustmentCreateRequest,\n StatementAdjustmentListResponse,\n StatementGenerateRequest,\n StatementPayoutUpdateRequest,\n StatementPayoutRecordRequest,\n StatementPayoutListResponse,\n StatementAdvance,\n StatementAdvanceRecordRequest,\n SettlementAdvanceListRequest,\n SettlementAdvanceListResponse,\n SettlementPeriodListParams,\n SettlementPeriodListResponse,\n StatementPdfParams,\n} from '../types';\nimport type { RequestExtras, RequestFn, RequestOptions } from '../client';\nimport { csvQuery } from '../listQuery';\n\n/**\n * The statement list's query: `test_mode` always travels, `false` included,\n * and several payout statuses travel as one comma-separated value.\n */\nexport function statementListQuery(params: SettlementStatementListParams): RequestOptions['query'] {\n return csvQuery(\n {\n test_mode: params.test_mode,\n profile_id: params.profile_id,\n limit: params.limit,\n offset: params.offset,\n payout_status: params.payout_status,\n period_from: params.period_from,\n period_to: params.period_to,\n sort_by: params.sort_by,\n sort_order: params.sort_order,\n },\n ['payout_status'],\n );\n}\n\n/** The query of a native report or payout list. */\nfunction nativeListQuery(params: NativeSettlementListRequest): RequestOptions['query'] {\n return {\n profile_id: params.profile_id,\n currency: params.currency,\n test_mode: params.test_mode,\n limit: params.limit,\n offset: params.offset,\n sort_by: params.sort_by,\n sort_order: params.sort_order,\n };\n}\n\nfunction exportHeaders(options: RequestExtras | undefined, accept: string): Record<string, string> {\n const headers = new Headers(options?.headers);\n headers.set('Accept', accept);\n const output: Record<string, string> = {};\n headers.forEach((value, key) => {\n output[key] = value;\n });\n return output;\n}\n\n/**\n * Hosted-shop settlement: monthly statements, the live current-period\n * rollup, per-line detail, fee schedules and backfills.\n *\n * Every read takes an explicit `test_mode` — test and live figures must\n * never blend, so the environment lives in the signature rather than in a\n * default. `false` is transmitted, not dropped.\n *\n * Shop-owner responses are redacted server-side: absent platform-fee fields\n * are a permission boundary, not a gap — never re-derive them client-side.\n */\nexport class Settlement {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Read signed refund/dispute processor fees and report availability.\n * Merchant scope and connector grants apply. Empty movements confirm zero\n * only when the source is reported and complete.\n * Supply payment_id without year/month for all history. force_sync reads\n * provider reports for this page; it requires payment_id and limit <= 20,\n * and never issues a payment, refund or dispute action.\n * Omit test_mode for every reporting partition of one payment; period\n * queries default to live. Each source states its reporting partition.\n */\n async listProcessorCostEvents(\n params: ProcessorCostEventsRequest,\n options?: RequestExtras,\n ): Promise<ProcessorCostEventsResponse> {\n return this.request('GET', '/settlement/processor-cost-events', {\n query: {\n profile_id: params.profile_id,\n payment_id: params.payment_id,\n year: params.year,\n month: params.month,\n test_mode: params.test_mode,\n limit: params.limit,\n offset: params.offset,\n force_sync: params.force_sync,\n },\n ...options,\n });\n }\n\n /**\n * Per-shop settlement rollup for the host merchant: unpaid totals and the\n * running current period, one row per shop.\n *\n * `GET /settlement/overview`\n */\n async overview(\n params: SettlementOverviewParams,\n options?: RequestExtras,\n ): Promise<SettlementOverviewResponse> {\n return this.request('GET', '/settlement/overview', {\n query: { test_mode: params.test_mode },\n ...options,\n });\n }\n\n /**\n * Live rollup of the current (not yet statemented) period.\n *\n * `GET /settlement/current`\n */\n async current(\n params: SettlementCurrentParams,\n options?: RequestExtras,\n ): Promise<SettlementCurrentResponse> {\n return this.request('GET', '/settlement/current', {\n query: { test_mode: params.test_mode, profile_id: params.profile_id },\n ...options,\n });\n }\n\n /**\n * What a period's payments cost, and what was left over: gross, the\n * platform fee, hosting fees, what the rails took, and the margin, with a\n * per-connector breakdown.\n *\n * Send `year` and `month` together to report one UTC calendar month, or\n * neither for the running month so far.\n *\n * **Host-only.** The response is the host's cost base, which a shop owner\n * must never see, so a profile-scoped caller is refused with a 403 rather\n * than given a redacted shell. Gate the surface on the caller's scope\n * instead of calling it and handling the failure. Connector-restricted\n * roles cannot read this merchant-wide aggregate; fee-event reads retain\n * their connector grants.\n *\n * Two things not to flatten when rendering the result:\n * `margin_usd` is absent — not zero — whenever `margin_quality` is\n * `'unknown'`, and `unlined_captured_attempt_count` (cost definitely\n * missing) means something different from `unlined_unresolved_attempt_count`\n * (mostly ordinary abandonment).\n *\n * `GET /settlement/cost`\n *\n * @example\n * ```typescript\n * const cost = await delopay.settlement.cost({ test_mode: false, year: 2026, month: 7 });\n * if (cost.margin_quality === 'unknown') {\n * // cost.margin_usd is absent — say so, do not render 0.00\n * }\n * ```\n */\n async cost(\n params?: SettlementCostParams,\n options?: RequestExtras,\n ): Promise<SettlementCostResponse> {\n return this.request('GET', '/settlement/cost', {\n query: {\n profile_id: params?.profile_id,\n test_mode: params?.test_mode,\n year: params?.year,\n month: params?.month,\n },\n ...options,\n });\n }\n\n /**\n * What a period's payments cost at the rails, grouped by shop, connector\n * and payment method. Answers for **every** merchant, including one that\n * hosts nobody — it reads the per-attempt settlement record rather than the\n * settlement lines, which exist only where hosting fees are configured.\n *\n * A sibling of {@link Settlement.cost} rather than a widening of it. That\n * endpoint is a profit statement whose revenue term is hosting income, and\n * a merchant who hosts nobody has none. This publishes cost and never\n * margin.\n *\n * Send `year` and `month` together to report one UTC calendar month, or\n * neither for the running month so far.\n *\n * **The response carries no period total, and a caller must not compute\n * one here.** Every figure keeps the unit the rail reported it in, and the\n * unit is part of each bucket's key, so adding two buckets is not addition.\n * Convert caller-side if you need one number, and say which rates you used.\n * The counts are totalled, because a count has no unit.\n *\n * Two distinctions not to flatten when rendering a bucket:\n * `cost_amount` covers `reported_count + estimated_count` attempts out of\n * `attempt_count` and is a lower bound whenever those disagree; and\n * `unavailable_count` (the rail says it has no figure) means something\n * different from `unwritten_count` (a gap in our own recording).\n *\n * **Merchant scope.** A token scoped to a single shop, a role narrowed to\n * specific connector accounts, or a role without the settlement-read\n * permission group is refused `403`: what a rail charged is the merchant's\n * own cost base, and here it is the whole response, so there is nothing\n * coherent to redact down to. Gate the surface on the caller's scope rather\n * than calling it and handling the failure.\n *\n * `GET /settlement/processor-cost`\n *\n * @example\n * ```typescript\n * const period = await delopay.settlement.processorCost({\n * test_mode: false,\n * year: 2026,\n * month: 7,\n * });\n * for (const bucket of period.buckets) {\n * // Each bucket is its own unit — render per bucket, never a sum.\n * console.log(bucket.connector, bucket.cost_amount, bucket.cost_currency);\n * }\n * ```\n */\n async processorCost(\n params?: ProcessorCostPeriodRequest,\n options?: RequestExtras,\n ): Promise<ProcessorCostPeriodResponse> {\n return this.request('GET', '/settlement/processor-cost', {\n query: {\n profile_id: params?.profile_id,\n test_mode: params?.test_mode,\n year: params?.year,\n month: params?.month,\n },\n ...options,\n });\n }\n\n /**\n * List generated settlement statements, the newest period first unless\n * `sort_by` says otherwise. Several `payout_status` values match a\n * statement in any of them.\n *\n * `GET /settlement/statements`\n */\n async listStatements(\n params: SettlementStatementListParams,\n options?: RequestExtras,\n ): Promise<SettlementStatementListResponse> {\n return this.request('GET', '/settlement/statements', {\n query: statementListQuery(params),\n ...options,\n });\n }\n\n /**\n * One statement with its per-connector/currency breakdown.\n *\n * `GET /settlement/statements/{statementId}`\n */\n async retrieveStatement(\n statementId: string,\n options?: RequestExtras,\n ): Promise<FeeStatementDetail> {\n return this.request(\n 'GET',\n `/settlement/statements/${encodeURIComponent(statementId)}`,\n options,\n );\n }\n\n /**\n * Generate (or regenerate) the statement for one shop and period: a\n * calendar month by `year` and `month`, or any period by its `period_start`.\n *\n * `POST /settlement/statements/generate`\n */\n async generateStatement(\n params: StatementGenerateRequest,\n options?: RequestExtras,\n ): Promise<FeeStatementDetail> {\n return this.request('POST', '/settlement/statements/generate', {\n body: params,\n ...options,\n });\n }\n\n /**\n * Record payout progress on a statement (`unpaid` / `partial` / `paid`).\n *\n * Subject to the caller's `settlement_payout` operation limit — a\n * per-operation ceiling, a windowed total, a windowed count, or any\n * combination: an over-limit call fails with `DE_01` and nothing is\n * recorded. There is no approval route out of it — four-eyes needs an\n * executor that can run the operation once somebody says yes, and only\n * refunds have one, so a settlement rule can only block.\n *\n * `POST /settlement/statements/{statementId}/payout`\n */\n async updateStatementPayout(\n statementId: string,\n params: StatementPayoutUpdateRequest,\n options?: RequestExtras,\n ): Promise<FeeStatementDetail> {\n return this.request(\n 'POST',\n `/settlement/statements/${encodeURIComponent(statementId)}/payout`,\n { body: params, ...options },\n );\n }\n\n /** Append one external transfer record. Send a stable idempotency_key for safe retries. */\n async recordStatementPayout(\n statementId: string,\n params: StatementPayoutRecordRequest,\n options?: RequestExtras,\n ): Promise<FeeStatementDetail> {\n return this.request(\n 'POST',\n `/settlement/statements/${encodeURIComponent(statementId)}/payout`,\n {\n body: params,\n ...options,\n bodyIdempotencyKey: params.idempotency_key ?? null,\n },\n );\n }\n\n /** Read individual transfer records, their signed total, and any overpayment. */\n async listStatementPayouts(\n statementId: string,\n options?: RequestExtras,\n ): Promise<StatementPayoutListResponse> {\n return this.request(\n 'GET',\n `/settlement/statements/${encodeURIComponent(statementId)}/payouts`,\n options,\n );\n }\n\n /** Record a transfer against a shop's period before its statement exists. */\n async recordAdvance(\n params: StatementAdvanceRecordRequest,\n options?: RequestExtras,\n ): Promise<StatementAdvance> {\n return this.request('POST', '/settlement/advances', {\n body: params,\n ...options,\n bodyIdempotencyKey: params.idempotency_key ?? null,\n });\n }\n\n async listAdvances(\n params: SettlementAdvanceListRequest,\n options?: RequestExtras,\n ): Promise<SettlementAdvanceListResponse> {\n return this.request('GET', '/settlement/advances', {\n query: {\n profile_id: params.profile_id,\n year: params.year,\n month: params.month,\n period_start: params.period_start,\n test_mode: params.test_mode,\n },\n ...options,\n });\n }\n\n /**\n * A shop's statement periods, newest first: the running one and those that\n * closed in the last twelve months. Each `period_start` names its period to\n * {@link generateStatement}, {@link recordAdvance} and {@link listAdvances}.\n *\n * `GET /settlement/periods`\n */\n async listPeriods(\n params: SettlementPeriodListParams,\n options?: RequestExtras,\n ): Promise<SettlementPeriodListResponse> {\n return this.request('GET', '/settlement/periods', {\n query: { profile_id: params.profile_id },\n ...options,\n });\n }\n\n /**\n * Export a statement as PDF, or with `format` as CSV, JSON\n * (`StatementDocument`) or XLSX. Returns the raw bytes as a `Blob`, with\n * the same auth, retries and error handling as every other call — persist\n * or object-URL it caller-side.\n *\n * `GET /settlement/statements/{statementId}/pdf`\n *\n * @example\n * ```typescript\n * const pdf = await delopay.settlement.downloadStatementPdf('stmt_1', {\n * currency: 'EUR',\n * include_transactions: true,\n * });\n * const url = URL.createObjectURL(pdf);\n * ```\n */\n async downloadStatementPdf(\n statementId: string,\n params?: StatementPdfParams,\n options?: RequestExtras,\n ): Promise<Blob> {\n return this.request('GET', `/settlement/statements/${encodeURIComponent(statementId)}/pdf`, {\n query: {\n currency: params?.currency,\n include_transactions: params?.include_transactions,\n format: params?.format,\n },\n responseType: 'blob',\n ...options,\n });\n }\n\n /**\n * The individual settled attempts of one shop's calendar month.\n *\n * `GET /settlement/lines`\n */\n async listLines(\n params: SettlementLineListParams,\n options?: RequestExtras,\n ): Promise<SettlementLineListResponse> {\n return this.request('GET', '/settlement/lines', {\n query: {\n profile_id: params.profile_id,\n year: params.year,\n month: params.month,\n period_start: params.period_start,\n test_mode: params.test_mode,\n limit: params.limit,\n offset: params.offset,\n },\n ...options,\n });\n }\n\n /**\n * The fee schedules that currently apply to a shop.\n *\n * `GET /settlement/fee-config`\n */\n async feeConfig(\n params: ShopFeeConfigParams,\n options?: RequestExtras,\n ): Promise<ShopFeeConfigResponse> {\n return this.request('GET', '/settlement/fee-config', {\n query: { profile_id: params.profile_id },\n ...options,\n });\n }\n\n /**\n * Enqueue a settlement-line backfill over historical attempts. Attempts\n * already covered by a line are always skipped.\n *\n * `POST /settlement/backfill`\n */\n async backfill(\n params?: SettlementBackfillRequest,\n options?: RequestExtras,\n ): Promise<SettlementBackfillResponse> {\n return this.request('POST', '/settlement/backfill', { body: params, ...options });\n }\n\n /**\n * Toggle whether a shop's owner can see their own settlement figures.\n *\n * `POST /settlement/shops/visibility`\n */\n async setShopVisibility(\n params: ShopVisibilityUpdateRequest,\n options?: RequestExtras,\n ): Promise<ShopVisibilityResponse> {\n return this.request('POST', '/settlement/shops/visibility', {\n body: params,\n ...options,\n });\n }\n\n /**\n * Manual adjustments recorded on a statement.\n *\n * `GET /settlement/statements/{statementId}/adjustments`\n */\n async listStatementAdjustments(\n statementId: string,\n options?: RequestExtras,\n ): Promise<StatementAdjustmentListResponse> {\n return this.request(\n 'GET',\n `/settlement/statements/${encodeURIComponent(statementId)}/adjustments`,\n options,\n );\n }\n\n /**\n * Add a manual adjustment to a statement. Positive `amount_usd` charges\n * the shop (reducing their payout); negative credits them.\n *\n * Subject to the caller's `settlement_adjustment` operation limit: an\n * over-limit call fails with `DE_01` and no adjustment is added. Both\n * windows count every add, and a credit counts at its magnitude. A\n * settlement rule can only block — approval is refund-only, for the reason\n * given on `updateStatementPayout()`. When another add by the same user\n * changes the window while this one is being admitted, the call fails with\n * HTTP 412 and nothing is written; retrying the same request is safe.\n *\n * `POST /settlement/statements/{statementId}/adjustments`\n */\n async createStatementAdjustment(\n statementId: string,\n params: StatementAdjustmentCreateRequest,\n options?: RequestExtras,\n ): Promise<StatementAdjustment> {\n return this.request(\n 'POST',\n `/settlement/statements/${encodeURIComponent(statementId)}/adjustments`,\n { body: params, ...options },\n );\n }\n\n /**\n * Remove a manual adjustment from a statement.\n *\n * The adjustment still counts against the caller's `settlement_adjustment`\n * limit window it was added in: removing it does not give back its count or\n * amount.\n *\n * `DELETE /settlement/statements/{statementId}/adjustments/{adjustmentId}`\n */\n async deleteStatementAdjustment(\n statementId: string,\n adjustmentId: string,\n options?: RequestExtras,\n ): Promise<void> {\n return this.request(\n 'DELETE',\n `/settlement/statements/${encodeURIComponent(statementId)}/adjustments/${encodeURIComponent(adjustmentId)}`,\n options,\n );\n }\n\n /**\n * Calculate a period in its transaction currency. Requires a host-level\n * dashboard JWT and settlement read permission. Profile users and roles\n * restricted to selected connector accounts cannot read this aggregate.\n * Rates apply once to the period total. Unknown or estimated fees keep\n * dependent amounts provisional. Native money values remain integer strings.\n */\n async previewNative(\n params: NativeSettlementPreviewRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementPreviewResponse> {\n return this.request('POST', '/settlement/native/preview', { body: params, ...options });\n }\n\n /**\n * Recalculate and freeze an immutable report version. Requires settlement\n * edit permission. Explicitly allow provisional figures when source fees\n * are incomplete. A report records a calculation and sends no money.\n * Reuse the same idempotency key when retrying the same request.\n */\n async createNativeReport(\n params: NativeSettlementReportCreateRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementReport> {\n return this.request('POST', '/settlement/native/reports', {\n body: params,\n ...options,\n bodyIdempotencyKey: params.idempotency_key,\n });\n }\n\n async retrieveNativeReport(\n reportId: string,\n options?: RequestExtras,\n ): Promise<NativeSettlementReport> {\n return this.request(\n 'GET',\n `/settlement/native/reports/${encodeURIComponent(reportId)}`,\n options,\n );\n }\n\n /**\n * List report summaries without fetching every source row in each saved\n * snapshot, the newest first. `sort_by` takes `period` here; another value\n * is refused.\n */\n async listNativeReports(\n params: NativeSettlementListRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementReportListResponse> {\n return this.request('GET', '/settlement/native/reports', {\n query: nativeListQuery(params),\n ...options,\n });\n }\n\n /**\n * Record a transfer already made, under settlement write permission and\n * the caller's payout limits. This method never sends money. Native minor\n * units remain strings; negative records must name a same-scope reversal.\n * These records belong to the native ledger, separate from monthly USD\n * statement payouts and advances.\n */\n async recordNativePayout(\n params: NativeSettlementPayoutCreateRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementPayout> {\n return this.request('POST', '/settlement/native/payouts', {\n body: params,\n ...options,\n bodyIdempotencyKey: params.idempotency_key,\n });\n }\n\n /**\n * List recorded payouts, the earliest value date first. `sort_by` takes\n * `value_date` or `amount` here; another value is refused.\n */\n async listNativePayouts(\n params: NativeSettlementListRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementPayoutListResponse> {\n return this.request('GET', '/settlement/native/payouts', {\n query: nativeListQuery(params),\n ...options,\n });\n }\n\n /** Refresh a bounded page of provider fee evidence. Follow next_offset while has_more is true. */\n async refreshNativeFees(\n params: NativeSettlementFeeRefreshRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementFeeRefreshResponse> {\n return this.request('POST', '/settlement/native/fees/refresh', { body: params, ...options });\n }\n\n async downloadNativeReportPdf(\n reportId: string,\n params?: NativeSettlementPdfRequest,\n options?: RequestExtras,\n ): Promise<Blob> {\n return this.request('GET', `/settlement/native/reports/${encodeURIComponent(reportId)}/pdf`, {\n query: { include_transactions: params?.include_transactions },\n responseType: 'blob',\n ...options,\n });\n }\n\n /** Download the frozen source rows and calculation as CSV. */\n async downloadNativeReportCsv(reportId: string, options?: RequestExtras): Promise<Blob> {\n return this.request(\n 'GET',\n `/settlement/native/reports/${encodeURIComponent(reportId)}/export`,\n {\n ...options,\n headers: exportHeaders(options, 'text/csv'),\n responseType: 'blob',\n },\n );\n }\n\n /** Export the frozen report as JSON, excluding host account-level costs. */\n async exportNativeReportJson(\n reportId: string,\n options?: RequestExtras,\n ): Promise<NativeSettlementReportExport> {\n return this.request(\n 'GET',\n `/settlement/native/reports/${encodeURIComponent(reportId)}/export`,\n {\n ...options,\n headers: exportHeaders(options, 'application/json'),\n },\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-BCA3TCGS.cjs","../src/internal/resources/platformBilling.ts"],"names":[],"mappings":"AAAA;ACuBO,IAAM,gBAAA,EAAN,MAAsB;AAAA,EAC3B,WAAA,CAA6B,OAAA,EAAoB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IAAA;AAClF,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcmC,EAAA;AACwD,IAAA;AACjF,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBmC,EAAA;AACsC,IAAA;AAC/D,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAegG,EAAA;AACR,IAAA;AAC9E,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBqC,EAAA;AACsD,IAAA;AACjF,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBsC,EAAA;AACmD,IAAA;AAC/E,MAAA;AACP,IAAA;AACH,EAAA;AACF;ADvD8F;AACA;AACA;AACA","file":"/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-BCA3TCGS.cjs","sourcesContent":[null,"import type {\n AdminAdjustmentRequest,\n AdminAdjustmentResponse,\n AdminCreateLedgerRequest,\n AdminCreateLedgerResponse,\n AdminResetLedgerRequest,\n AdminResetLedgerResponse,\n AdminSetFreeRequest,\n AdminSetHardFloorRequest,\n AdminSuspendRequest,\n AdminUnsuspendRequest,\n AdminSetTrustedRequest,\n UpdateLedgerEntryRequest,\n} from '../types';\nimport type { BillingProfileResponse } from '../../types';\nimport type { RequestFn } from '../../client';\n\n/**\n * Platform-level ledger adjustments on a merchant's balance. Admin-only\n * routes under `/billing/{merchantId}/admin/credit|debit`. Exposed only\n * via `'@delopay/sdk/internal'` so the public merchant SDK doesn't\n * advertise the admin adjustment path in autocomplete.\n */\nexport class PlatformBilling {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Manually credit a merchant's balance (e.g. promotional credit,\n * dispute reversal, manual correction).\n *\n * @param merchantId - The merchant account ID.\n * @param params - Credit amount and reason.\n */\n async credit(\n merchantId: string,\n params: AdminAdjustmentRequest,\n ): Promise<AdminAdjustmentResponse> {\n return this.request('POST', `/billing/${encodeURIComponent(merchantId)}/admin/credit`, {\n body: params,\n });\n }\n\n /**\n * Manually debit a merchant's balance.\n *\n * @param merchantId - The merchant account ID.\n * @param params - Debit amount and reason.\n */\n async debit(\n merchantId: string,\n params: AdminAdjustmentRequest,\n ): Promise<AdminAdjustmentResponse> {\n return this.request('POST', `/billing/${encodeURIComponent(merchantId)}/admin/debit`, {\n body: params,\n });\n }\n\n /**\n * Edit a single ledger entry (amount and/or description), keeping the\n * merchant balance consistent: when `amount` changes, the balance is\n * atomically adjusted by the difference. Returns the entry id and new\n * balance.\n *\n * @param merchantId - The merchant account ID.\n * @param ledgerId - The ledger entry id to edit.\n * @param params - New amount / description (either optional).\n */\n async editLedgerEntry(\n merchantId: string,\n ledgerId: string,\n params: UpdateLedgerEntryRequest,\n ): Promise<AdminAdjustmentResponse> {\n return this.request(\n 'PATCH',\n `/billing/${encodeURIComponent(merchantId)}/admin/ledger/${encodeURIComponent(ledgerId)}`,\n { body: params },\n );\n }\n\n /**\n * Delete a single ledger entry, reversing its amount from the merchant\n * balance. Returns the deleted entry id and the new balance.\n *\n * @param merchantId - The merchant account ID.\n * @param ledgerId - The ledger entry id to delete.\n */\n async deleteLedgerEntry(merchantId: string, ledgerId: string): Promise<AdminAdjustmentResponse> {\n return this.request(\n 'DELETE',\n `/billing/${encodeURIComponent(merchantId)}/admin/ledger/${encodeURIComponent(ledgerId)}`,\n );\n }\n\n /**\n * Manually suspend a merchant (e.g. confirmed fraud or ToS violation),\n * independent of balance. A `reason` is required for audit. Throws 412 if\n * the merchant is trusted (clear the flag first) or already suspended.\n *\n * @param merchantId - The merchant account ID.\n * @param params - Suspension reason.\n * @returns The updated billing profile.\n */\n async suspend(merchantId: string, params: AdminSuspendRequest): Promise<BillingProfileResponse> {\n return this.request('POST', `/billing/${encodeURIComponent(merchantId)}/admin/suspend`, {\n body: params,\n });\n }\n\n /**\n * Lift a suspension. Restores the merchant to `active` (or `delinquent` if\n * the balance is at/below the hard floor) and resets the recharge-failure\n * counter. Throws 412 if the merchant is not suspended.\n *\n * @param merchantId - The merchant account ID.\n * @param params - Optional audit note.\n * @returns The updated billing profile.\n */\n async unsuspend(\n merchantId: string,\n params: AdminUnsuspendRequest = {},\n ): Promise<BillingProfileResponse> {\n return this.request('POST', `/billing/${encodeURIComponent(merchantId)}/admin/unsuspend`, {\n body: params,\n });\n }\n\n /**\n * Set or clear the trusted (suspension-exempt) flag. Trusted merchants\n * cannot be suspended automatically or manually. Does not lift an existing\n * suspension — use {@link PlatformBilling.unsuspend} for that.\n *\n * @param merchantId - The merchant account ID.\n * @param params - The desired trusted state.\n * @returns The updated billing profile.\n */\n async setTrusted(\n merchantId: string,\n params: AdminSetTrustedRequest,\n ): Promise<BillingProfileResponse> {\n return this.request('PATCH', `/billing/${encodeURIComponent(merchantId)}/admin/trusted`, {\n body: params,\n });\n }\n\n /**\n * Set the merchant's hard floor — the balance at or below which the\n * merchant stops being active. A negative value grants a credit line; zero\n * means no negative balance at all. This moves the suspension line, it does\n * not remove it. The value and the caller are written to the audit log\n * before the floor changes, so the change is always attributable.\n *\n * Refused (412) for a positive amount, for a floor beyond the maximum\n * credit line of 10,000,000 minor units, or for an empty `reason`.\n *\n * Requires a router that serves the hard-floor admin route; older ones\n * answer `404`.\n *\n * @param merchantId - The merchant account ID.\n * @param params - The new floor (zero or negative) and the audit reason.\n * @returns The updated billing profile.\n */\n async setHardFloor(\n merchantId: string,\n params: AdminSetHardFloorRequest,\n ): Promise<BillingProfileResponse> {\n return this.request('PATCH', `/billing/${encodeURIComponent(merchantId)}/admin/hard-floor`, {\n body: params,\n });\n }\n\n /**\n * Mark a merchant free (not billed), or put it back on the prepaid model.\n * While free, no platform fee is deducted, the payment gate never blocks on\n * billing status, top-ups are refused and auto-recharge is inert. Marking\n * free needs a `reason` and is refused (412) while an admin suspension is in\n * force — lift that first.\n *\n * Requires a router that supports the free flag; older ones answer `404`.\n *\n * @param merchantId - The merchant account ID.\n * @param params - The desired free state and, when marking free, the reason.\n * @returns The updated billing profile.\n */\n async setFree(merchantId: string, params: AdminSetFreeRequest): Promise<BillingProfileResponse> {\n return this.request('PATCH', `/billing/${encodeURIComponent(merchantId)}/admin/free`, {\n body: params,\n });\n }\n\n /**\n * Delete a merchant's **entire** ledger. Every live entry is soft-deleted —\n * kept, so a replayed fee deduction or top-up webhook still no-ops — the\n * balance is set to zero and the status re-derived (`active` for a free\n * merchant; an active paying merchant lands in `delinquent`). Refused (412)\n * while the merchant has shop allocations. Audited.\n *\n * Requires a router that serves the ledger admin routes; older ones answer\n * `404`.\n *\n * @param merchantId - The merchant account ID.\n * @param params - The reason, required for audit.\n * @returns What was removed and the post-reset profile.\n */\n async resetLedger(\n merchantId: string,\n params: AdminResetLedgerRequest,\n ): Promise<AdminResetLedgerResponse> {\n return this.request('DELETE', `/billing/${encodeURIComponent(merchantId)}/admin/ledger`, {\n body: params,\n });\n }\n\n /**\n * (Re)create a merchant's ledger, optionally seeded with an opening\n * balance. Ensures the billing profile exists (created without the welcome\n * promo credit) and, when `opening_balance` is set, writes one\n * `opening_balance` entry through the same atomic helper an admin credit\n * uses. Refused (412) while live entries or a non-zero balance remain —\n * reset first. Does not clear the free flag. Audited.\n *\n * Requires a router that serves the ledger admin routes; older ones answer\n * `404`.\n *\n * @param merchantId - The merchant account ID.\n * @param params - Opening balance (minor units), currency for a new profile, and the reason.\n * @returns The opening entry id (if one was written) and the profile.\n */\n async createLedger(\n merchantId: string,\n params: AdminCreateLedgerRequest,\n ): Promise<AdminCreateLedgerResponse> {\n return this.request('POST', `/billing/${encodeURIComponent(merchantId)}/admin/ledger`, {\n body: params,\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-BCA3TCGS.cjs","../src/internal/resources/platformBilling.ts"],"names":[],"mappings":"AAAA;ACuBO,IAAM,gBAAA,EAAN,MAAsB;AAAA,EAC3B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASlD,MAAM,MAAA,CACJ,UAAA,EACA,MAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,CAAA,SAAA,EAAY,kBAAA,CAAmB,UAAU,CAAC,CAAA,aAAA,CAAA,EAAiB;AAAA,MACrF,IAAA,EAAM;AAAA,IACR,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,KAAA,CACJ,UAAA,EACA,MAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,CAAA,SAAA,EAAY,kBAAA,CAAmB,UAAU,CAAC,CAAA,YAAA,CAAA,EAAgB;AAAA,MACpF,IAAA,EAAM;AAAA,IACR,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,MAAM,eAAA,CACJ,UAAA,EACA,QAAA,EACA,MAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,MACV,OAAA;AAAA,MACA,CAAA,SAAA,EAAY,kBAAA,CAAmB,UAAU,CAAC,CAAA,cAAA,EAAiB,kBAAA,CAAmB,QAAQ,CAAC,CAAA,CAAA;AACxE,MAAA;AACjB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASgG,EAAA;AAClF,IAAA;AACV,MAAA;AACuF,MAAA;AACzF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWgG,EAAA;AACN,IAAA;AAChF,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcmC,EAAA;AACyD,IAAA;AAClF,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcmC,EAAA;AACwD,IAAA;AACjF,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBmC,EAAA;AACsC,IAAA;AAC/D,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAegG,EAAA;AACR,IAAA;AAC9E,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBqC,EAAA;AACsD,IAAA;AACjF,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBsC,EAAA;AACmD,IAAA;AAC/E,MAAA;AACP,IAAA;AACH,EAAA;AACF;ADvD8F;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-BCA3TCGS.cjs","sourcesContent":[null,"import type {\n AdminAdjustmentRequest,\n AdminAdjustmentResponse,\n AdminCreateLedgerRequest,\n AdminCreateLedgerResponse,\n AdminResetLedgerRequest,\n AdminResetLedgerResponse,\n AdminSetFreeRequest,\n AdminSetHardFloorRequest,\n AdminSuspendRequest,\n AdminUnsuspendRequest,\n AdminSetTrustedRequest,\n UpdateLedgerEntryRequest,\n} from '../types';\nimport type { BillingProfileResponse } from '../../types';\nimport type { RequestFn } from '../../client';\n\n/**\n * Platform-level ledger adjustments on a merchant's balance. Admin-only\n * routes under `/billing/{merchantId}/admin/credit|debit`. Exposed only\n * via `'@delopay/sdk/internal'` so the public merchant SDK doesn't\n * advertise the admin adjustment path in autocomplete.\n */\nexport class PlatformBilling {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Manually credit a merchant's balance (e.g. promotional credit,\n * dispute reversal, manual correction).\n *\n * @param merchantId - The merchant account ID.\n * @param params - Credit amount and reason.\n */\n async credit(\n merchantId: string,\n params: AdminAdjustmentRequest,\n ): Promise<AdminAdjustmentResponse> {\n return this.request('POST', `/billing/${encodeURIComponent(merchantId)}/admin/credit`, {\n body: params,\n });\n }\n\n /**\n * Manually debit a merchant's balance.\n *\n * @param merchantId - The merchant account ID.\n * @param params - Debit amount and reason.\n */\n async debit(\n merchantId: string,\n params: AdminAdjustmentRequest,\n ): Promise<AdminAdjustmentResponse> {\n return this.request('POST', `/billing/${encodeURIComponent(merchantId)}/admin/debit`, {\n body: params,\n });\n }\n\n /**\n * Edit a single ledger entry (amount and/or description), keeping the\n * merchant balance consistent: when `amount` changes, the balance is\n * atomically adjusted by the difference. Returns the entry id and new\n * balance.\n *\n * @param merchantId - The merchant account ID.\n * @param ledgerId - The ledger entry id to edit.\n * @param params - New amount / description (either optional).\n */\n async editLedgerEntry(\n merchantId: string,\n ledgerId: string,\n params: UpdateLedgerEntryRequest,\n ): Promise<AdminAdjustmentResponse> {\n return this.request(\n 'PATCH',\n `/billing/${encodeURIComponent(merchantId)}/admin/ledger/${encodeURIComponent(ledgerId)}`,\n { body: params },\n );\n }\n\n /**\n * Delete a single ledger entry, reversing its amount from the merchant\n * balance. Returns the deleted entry id and the new balance.\n *\n * @param merchantId - The merchant account ID.\n * @param ledgerId - The ledger entry id to delete.\n */\n async deleteLedgerEntry(merchantId: string, ledgerId: string): Promise<AdminAdjustmentResponse> {\n return this.request(\n 'DELETE',\n `/billing/${encodeURIComponent(merchantId)}/admin/ledger/${encodeURIComponent(ledgerId)}`,\n );\n }\n\n /**\n * Manually suspend a merchant (e.g. confirmed fraud or ToS violation),\n * independent of balance. A `reason` is required for audit. Throws 412 if\n * the merchant is trusted (clear the flag first) or already suspended.\n *\n * @param merchantId - The merchant account ID.\n * @param params - Suspension reason.\n * @returns The updated billing profile.\n */\n async suspend(merchantId: string, params: AdminSuspendRequest): Promise<BillingProfileResponse> {\n return this.request('POST', `/billing/${encodeURIComponent(merchantId)}/admin/suspend`, {\n body: params,\n });\n }\n\n /**\n * Lift a suspension. Restores the merchant to `active` (or `delinquent` if\n * the balance is at/below the hard floor) and resets the recharge-failure\n * counter. Throws 412 if the merchant is not suspended.\n *\n * @param merchantId - The merchant account ID.\n * @param params - Optional audit note.\n * @returns The updated billing profile.\n */\n async unsuspend(\n merchantId: string,\n params: AdminUnsuspendRequest = {},\n ): Promise<BillingProfileResponse> {\n return this.request('POST', `/billing/${encodeURIComponent(merchantId)}/admin/unsuspend`, {\n body: params,\n });\n }\n\n /**\n * Set or clear the trusted (suspension-exempt) flag. Trusted merchants\n * cannot be suspended automatically or manually. Does not lift an existing\n * suspension — use {@link PlatformBilling.unsuspend} for that.\n *\n * @param merchantId - The merchant account ID.\n * @param params - The desired trusted state.\n * @returns The updated billing profile.\n */\n async setTrusted(\n merchantId: string,\n params: AdminSetTrustedRequest,\n ): Promise<BillingProfileResponse> {\n return this.request('PATCH', `/billing/${encodeURIComponent(merchantId)}/admin/trusted`, {\n body: params,\n });\n }\n\n /**\n * Set the merchant's hard floor — the balance at or below which the\n * merchant stops being active. A negative value grants a credit line; zero\n * means no negative balance at all. This moves the suspension line, it does\n * not remove it. The value and the caller are written to the audit log\n * before the floor changes, so the change is always attributable.\n *\n * Refused (412) for a positive amount, for a floor beyond the maximum\n * credit line of 10,000,000 minor units, or for an empty `reason`.\n *\n * Requires a router that serves the hard-floor admin route; older ones\n * answer `404`.\n *\n * @param merchantId - The merchant account ID.\n * @param params - The new floor (zero or negative) and the audit reason.\n * @returns The updated billing profile.\n */\n async setHardFloor(\n merchantId: string,\n params: AdminSetHardFloorRequest,\n ): Promise<BillingProfileResponse> {\n return this.request('PATCH', `/billing/${encodeURIComponent(merchantId)}/admin/hard-floor`, {\n body: params,\n });\n }\n\n /**\n * Mark a merchant free (not billed), or put it back on the prepaid model.\n * While free, no platform fee is deducted, the payment gate never blocks on\n * billing status, top-ups are refused and auto-recharge is inert. Marking\n * free needs a `reason` and is refused (412) while an admin suspension is in\n * force — lift that first.\n *\n * Requires a router that supports the free flag; older ones answer `404`.\n *\n * @param merchantId - The merchant account ID.\n * @param params - The desired free state and, when marking free, the reason.\n * @returns The updated billing profile.\n */\n async setFree(merchantId: string, params: AdminSetFreeRequest): Promise<BillingProfileResponse> {\n return this.request('PATCH', `/billing/${encodeURIComponent(merchantId)}/admin/free`, {\n body: params,\n });\n }\n\n /**\n * Delete a merchant's **entire** ledger. Every live entry is soft-deleted —\n * kept, so a replayed fee deduction or top-up webhook still no-ops — the\n * balance is set to zero and the status re-derived (`active` for a free\n * merchant; an active paying merchant lands in `delinquent`). Refused (412)\n * while the merchant has shop allocations. Audited.\n *\n * Requires a router that serves the ledger admin routes; older ones answer\n * `404`.\n *\n * @param merchantId - The merchant account ID.\n * @param params - The reason, required for audit.\n * @returns What was removed and the post-reset profile.\n */\n async resetLedger(\n merchantId: string,\n params: AdminResetLedgerRequest,\n ): Promise<AdminResetLedgerResponse> {\n return this.request('DELETE', `/billing/${encodeURIComponent(merchantId)}/admin/ledger`, {\n body: params,\n });\n }\n\n /**\n * (Re)create a merchant's ledger, optionally seeded with an opening\n * balance. Ensures the billing profile exists (created without the welcome\n * promo credit) and, when `opening_balance` is set, writes one\n * `opening_balance` entry through the same atomic helper an admin credit\n * uses. Refused (412) while live entries or a non-zero balance remain —\n * reset first. Does not clear the free flag. Audited.\n *\n * Requires a router that serves the ledger admin routes; older ones answer\n * `404`.\n *\n * @param merchantId - The merchant account ID.\n * @param params - Opening balance (minor units), currency for a new profile, and the reason.\n * @returns The opening entry id (if one was written) and the profile.\n */\n async createLedger(\n merchantId: string,\n params: AdminCreateLedgerRequest,\n ): Promise<AdminCreateLedgerResponse> {\n return this.request('POST', `/billing/${encodeURIComponent(merchantId)}/admin/ledger`, {\n body: params,\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-BOU2TQ6U.cjs"],"names":[],"mappings":"AAAA","file":"/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-BOU2TQ6U.cjs"}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-BOU2TQ6U.cjs"],"names":[],"mappings":"AAAA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-BOU2TQ6U.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-BP6KDQ6I.cjs","../src/resources/settings.ts"],"names":[],"mappings":"AAAA;ACqBA,SAAS,YAAA,CAAa,KAAA,EAAsD;AAC1E,EAAA,OAAO,KAAA,CAAM,WAAA,EAAa,EAAE,UAAA,EAAY,KAAA,CAAM,WAAW,EAAA,EAAI,CAAC,CAAA;AAChE;AAEO,IAAM,SAAA,EAAN,MAAe;AAAA,EACpB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,MAAM,gBAAA,CAAiB,MAAA,EAA+B,CAAC,CAAA,EAA8B;AACnF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,oBAAA,EAAsB,EAAE,KAAA,EAAO,YAAA,CAAa,KAAK,EAAE,CAAC,CAAA;AAAA,EACjF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,cAAA,CACJ,MAAA,EACA,MAAA,EAA+B,CAAC,CAAA,EACL;AAC3B,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,OAAA,EAAS,oBAAA,EAAsB;AAAA,MACjD,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,YAAA,CAAa,KAAK;AAAA,IAC3B,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,YAAA,CAAa,SAAA,EAA8C;AAC/D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,SAAS,CAAC,CAAA,CAAA;AAC7E,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAO8F,EAAA;AAChB,IAAA;AACpE,MAAA;AACP,IAAA;AACH,EAAA;AACF;ADzBgF;AACA;AACA;AACA","file":"/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-BP6KDQ6I.cjs","sourcesContent":[null,"import type { MerchantSettingsQuery, SettingsResponse, UpdateSettingsRequest } from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * Settings of the caller's merchant, its projects and its shops.\n *\n * One resource for every setting: each is a key with a JSON value, listed with\n * its default, whether a value is stored, its revision and who changed it last.\n * A merchant changes only its own values; values the platform operator sets at\n * the same scope are listed beside them (`authority: 'operator'`) and are\n * read-only here.\n *\n * Every change is recorded in the audit log with the previous and the new\n * value (`entity_type: 'setting'`), so one setting's history is\n * `audit.list({ entity_type: 'setting', entity_id })`.\n *\n * Dashboard (JWT) routes. Reading the merchant's settings needs\n * `MerchantAccountRead`, a shop's `ProfileAccountRead`; each change needs the\n * permission its setting names.\n */\n/** The query string of a merchant-scope call; a null project is omitted. */\nfunction projectQuery(query: MerchantSettingsQuery): Record<string, string> {\n return query.project_id ? { project_id: query.project_id } : {};\n}\n\nexport class Settings {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The merchant's settings, or one project's.\n *\n * `GET /settings/merchant`\n */\n async retrieveMerchant(query: MerchantSettingsQuery = {}): Promise<SettingsResponse> {\n return this.request('GET', '/settings/merchant', { query: projectQuery(query) });\n }\n\n /**\n * Change the merchant's own settings, or one project's. All changes are\n * applied or none is.\n *\n * `PATCH /settings/merchant`\n */\n async updateMerchant(\n params: UpdateSettingsRequest,\n query: MerchantSettingsQuery = {},\n ): Promise<SettingsResponse> {\n return this.request('PATCH', '/settings/merchant', {\n body: params,\n query: projectQuery(query),\n });\n }\n\n /**\n * One shop's settings.\n *\n * `GET /settings/shops/{profileId}`\n */\n async retrieveShop(profileId: string): Promise<SettingsResponse> {\n return this.request('GET', `/settings/shops/${encodeURIComponent(profileId)}`);\n }\n\n /**\n * Change one shop's own settings.\n *\n * `PATCH /settings/shops/{profileId}`\n */\n async updateShop(profileId: string, params: UpdateSettingsRequest): Promise<SettingsResponse> {\n return this.request('PATCH', `/settings/shops/${encodeURIComponent(profileId)}`, {\n body: params,\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-BP6KDQ6I.cjs","../src/resources/settings.ts"],"names":[],"mappings":"AAAA;ACqBA,SAAS,YAAA,CAAa,KAAA,EAAsD;AAC1E,EAAA,OAAO,KAAA,CAAM,WAAA,EAAa,EAAE,UAAA,EAAY,KAAA,CAAM,WAAW,EAAA,EAAI,CAAC,CAAA;AAChE;AAEO,IAAM,SAAA,EAAN,MAAe;AAAA,EACpB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,MAAM,gBAAA,CAAiB,MAAA,EAA+B,CAAC,CAAA,EAA8B;AACnF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,oBAAA,EAAsB,EAAE,KAAA,EAAO,YAAA,CAAa,KAAK,EAAE,CAAC,CAAA;AAAA,EACjF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,cAAA,CACJ,MAAA,EACA,MAAA,EAA+B,CAAC,CAAA,EACL;AAC3B,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,OAAA,EAAS,oBAAA,EAAsB;AAAA,MACjD,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,YAAA,CAAa,KAAK;AAAA,IAC3B,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,YAAA,CAAa,SAAA,EAA8C;AAC/D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,SAAS,CAAC,CAAA,CAAA;AAC7E,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAO8F,EAAA;AAChB,IAAA;AACpE,MAAA;AACP,IAAA;AACH,EAAA;AACF;ADzBgF;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-BP6KDQ6I.cjs","sourcesContent":[null,"import type { MerchantSettingsQuery, SettingsResponse, UpdateSettingsRequest } from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * Settings of the caller's merchant, its projects and its shops.\n *\n * One resource for every setting: each is a key with a JSON value, listed with\n * its default, whether a value is stored, its revision and who changed it last.\n * A merchant changes only its own values; values the platform operator sets at\n * the same scope are listed beside them (`authority: 'operator'`) and are\n * read-only here.\n *\n * Every change is recorded in the audit log with the previous and the new\n * value (`entity_type: 'setting'`), so one setting's history is\n * `audit.list({ entity_type: 'setting', entity_id })`.\n *\n * Dashboard (JWT) routes. Reading the merchant's settings needs\n * `MerchantAccountRead`, a shop's `ProfileAccountRead`; each change needs the\n * permission its setting names.\n */\n/** The query string of a merchant-scope call; a null project is omitted. */\nfunction projectQuery(query: MerchantSettingsQuery): Record<string, string> {\n return query.project_id ? { project_id: query.project_id } : {};\n}\n\nexport class Settings {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The merchant's settings, or one project's.\n *\n * `GET /settings/merchant`\n */\n async retrieveMerchant(query: MerchantSettingsQuery = {}): Promise<SettingsResponse> {\n return this.request('GET', '/settings/merchant', { query: projectQuery(query) });\n }\n\n /**\n * Change the merchant's own settings, or one project's. All changes are\n * applied or none is.\n *\n * `PATCH /settings/merchant`\n */\n async updateMerchant(\n params: UpdateSettingsRequest,\n query: MerchantSettingsQuery = {},\n ): Promise<SettingsResponse> {\n return this.request('PATCH', '/settings/merchant', {\n body: params,\n query: projectQuery(query),\n });\n }\n\n /**\n * One shop's settings.\n *\n * `GET /settings/shops/{profileId}`\n */\n async retrieveShop(profileId: string): Promise<SettingsResponse> {\n return this.request('GET', `/settings/shops/${encodeURIComponent(profileId)}`);\n }\n\n /**\n * Change one shop's own settings.\n *\n * `PATCH /settings/shops/{profileId}`\n */\n async updateShop(profileId: string, params: UpdateSettingsRequest): Promise<SettingsResponse> {\n return this.request('PATCH', `/settings/shops/${encodeURIComponent(profileId)}`, {\n body: params,\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-BRY3W7N3.cjs","../src/internal/resources/adminLive.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACMO,IAAM,UAAA,EAAN,MAAgB;AAAA,EACrB,WAAA,CACmB,OAAA,EACA,UAAA,EACjB;AAFiB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AACA,IAAA,IAAA,CAAA,WAAA,EAAA,UAAA;AAAA,EAChB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQH,MAAM,MAAA,CAAO,OAAA,EAAuD;AAClE,IAAA,OAAO,8CAAA,IAAe,CAAK,UAAA,EAAY,2BAAA,EAA6B,OAAO,CAAA;AAAA,EAC7E;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,MAAM,QAAA,CACJ,UAAA,EACA,MAAA,EACA,OAAA,EAC+B;AAC/B,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,6BAAA,EAA+B;AAAA,MACxD,KAAA,EAAO;AAAA,QACL,WAAA,EAAa,UAAA;AAAA,QACb,QAAA,EAAU,MAAA,CAAO,QAAA,CAAS,IAAA,CAAK,GAAG,CAAA;AAAA,QAClC,UAAA,EAAY,MAAA,CAAO,UAAA;AAAA,QACnB,SAAA,EAAW,MAAA,CAAO;AAAA,MACpB,CAAA;AAAA,MACA,GAAG;AAAA,IACL,CAAC,CAAA;AAAA,EACH;AACF,CAAA;ADVA;AACA;AACE;AACF,8BAAC","file":"/tmp/tmp.Eqhvn5JUmv/sdk/dist/chunk-BRY3W7N3.cjs","sourcesContent":[null,"import type { LiveStreamOptions, LiveVersionsParams, LiveVersionsResponse } from '../../types';\nimport type { EventStreamFn, RequestExtras, RequestFn } from '../../client';\nimport { openLiveStream } from '../../resources/live';\nimport type { LiveEventStream } from '../../resources/live';\n\n/**\n * Live updates of the admin dashboard: the same events as\n * the merchant dashboard's `live`, for every merchant, and the versions an\n * admin editor names in `If-Match`. Needs an internal platform-operator JWT.\n */\nexport class AdminLive {\n constructor(\n private readonly request: RequestFn,\n private readonly openStream: EventStreamFn,\n ) {}\n\n /**\n * Open the stream of what changed in every merchant. Each change names its\n * `merchant_id`. The SDK does not reconnect — see `LiveEventStream`.\n *\n * `GET /admin-portal/live/stream`\n */\n async stream(options?: LiveStreamOptions): Promise<LiveEventStream> {\n return openLiveStream(this.openStream, '/admin-portal/live/stream', options);\n }\n\n /**\n * The versions an admin editor of `merchantId` names in `If-Match`. A save\n * over a newer version is refused with `IR_16` (400), `error.data` a\n * `LiveChangedElsewhere`.\n *\n * `GET /admin-portal/live/versions`\n */\n async versions(\n merchantId: string,\n params: LiveVersionsParams,\n options?: RequestExtras,\n ): Promise<LiveVersionsResponse> {\n return this.request('GET', '/admin-portal/live/versions', {\n query: {\n merchant_id: merchantId,\n entities: params.entities.join(','),\n profile_id: params.profile_id,\n record_id: params.record_id,\n },\n ...options,\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-BRY3W7N3.cjs","../src/internal/resources/adminLive.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACMO,IAAM,UAAA,EAAN,MAAgB;AAAA,EACrB,WAAA,CACmB,OAAA,EACA,UAAA,EACjB;AAFiB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AACA,IAAA,IAAA,CAAA,WAAA,EAAA,UAAA;AAAA,EAChB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQH,MAAM,MAAA,CAAO,OAAA,EAAuD;AAClE,IAAA,OAAO,8CAAA,IAAe,CAAK,UAAA,EAAY,2BAAA,EAA6B,OAAO,CAAA;AAAA,EAC7E;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,MAAM,QAAA,CACJ,UAAA,EACA,MAAA,EACA,OAAA,EAC+B;AAC/B,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,6BAAA,EAA+B;AAAA,MACxD,KAAA,EAAO;AAAA,QACL,WAAA,EAAa,UAAA;AAAA,QACb,QAAA,EAAU,MAAA,CAAO,QAAA,CAAS,IAAA,CAAK,GAAG,CAAA;AAAA,QAClC,UAAA,EAAY,MAAA,CAAO,UAAA;AAAA,QACnB,SAAA,EAAW,MAAA,CAAO;AAAA,MACpB,CAAA;AAAA,MACA,GAAG;AAAA,IACL,CAAC,CAAA;AAAA,EACH;AACF,CAAA;ADVA;AACA;AACE;AACF,8BAAC","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-BRY3W7N3.cjs","sourcesContent":[null,"import type { LiveStreamOptions, LiveVersionsParams, LiveVersionsResponse } from '../../types';\nimport type { EventStreamFn, RequestExtras, RequestFn } from '../../client';\nimport { openLiveStream } from '../../resources/live';\nimport type { LiveEventStream } from '../../resources/live';\n\n/**\n * Live updates of the admin dashboard: the same events as\n * the merchant dashboard's `live`, for every merchant, and the versions an\n * admin editor names in `If-Match`. Needs an internal platform-operator JWT.\n */\nexport class AdminLive {\n constructor(\n private readonly request: RequestFn,\n private readonly openStream: EventStreamFn,\n ) {}\n\n /**\n * Open the stream of what changed in every merchant. Each change names its\n * `merchant_id`. The SDK does not reconnect — see `LiveEventStream`.\n *\n * `GET /admin-portal/live/stream`\n */\n async stream(options?: LiveStreamOptions): Promise<LiveEventStream> {\n return openLiveStream(this.openStream, '/admin-portal/live/stream', options);\n }\n\n /**\n * The versions an admin editor of `merchantId` names in `If-Match`. A save\n * over a newer version is refused with `IR_16` (400), `error.data` a\n * `LiveChangedElsewhere`.\n *\n * `GET /admin-portal/live/versions`\n */\n async versions(\n merchantId: string,\n params: LiveVersionsParams,\n options?: RequestExtras,\n ): Promise<LiveVersionsResponse> {\n return this.request('GET', '/admin-portal/live/versions', {\n query: {\n merchant_id: merchantId,\n entities: params.entities.join(','),\n profile_id: params.profile_id,\n record_id: params.record_id,\n },\n ...options,\n });\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkQT3HUTWIcjs = require('./chunk-QT3HUTWI.cjs');
3
+ var _chunk5XGAQGYKcjs = require('./chunk-5XGAQGYK.cjs');
4
4
 
5
5
 
6
6
  var _chunkI2W7AO4Bcjs = require('./chunk-I2W7AO4B.cjs');
@@ -69,7 +69,7 @@ var CheckoutSession = class {
69
69
  this.paymentId = options.paymentId;
70
70
  this.publishableKey = options.publishableKey;
71
71
  this.clientSecret = options.clientSecret;
72
- this.client = new (0, _chunkQT3HUTWIcjs.Delopay)("", {
72
+ this.client = new (0, _chunk5XGAQGYKcjs.Delopay)("", {
73
73
  baseUrl: options.baseUrl,
74
74
  sandbox: options.sandbox,
75
75
  timeout: options.timeout,
@@ -1035,4 +1035,4 @@ var CheckoutSession = class {
1035
1035
 
1036
1036
 
1037
1037
  exports.CheckoutSession = CheckoutSession;
1038
- //# sourceMappingURL=chunk-XAUPBK6A.cjs.map
1038
+ //# sourceMappingURL=chunk-BXQLINBN.cjs.map