@delopay/sdk 0.428.0 → 0.437.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 (364) hide show
  1. package/README.md +5 -5
  2. package/dist/airwallexCard.cjs.map +1 -1
  3. package/dist/branding.cjs.map +1 -1
  4. package/dist/cardFormStyles.cjs.map +1 -1
  5. package/dist/checkoutSession.cjs +2 -2
  6. package/dist/checkoutSession.cjs.map +1 -1
  7. package/dist/checkoutSession.js +1 -1
  8. package/dist/chunk-244VZFFO.cjs.map +1 -1
  9. package/dist/chunk-2IJRBJXW.cjs.map +1 -1
  10. package/dist/{chunk-5JJ65Z7J.cjs → chunk-2QULWFRR.cjs} +33 -25
  11. package/dist/chunk-2QULWFRR.cjs.map +1 -0
  12. package/dist/chunk-34PC72O7.cjs.map +1 -1
  13. package/dist/chunk-3GBWQWTP.cjs.map +1 -1
  14. package/dist/chunk-3MS2HPSJ.js +25 -0
  15. package/dist/chunk-3MS2HPSJ.js.map +1 -0
  16. package/dist/chunk-3YBBJT3Y.cjs.map +1 -1
  17. package/dist/chunk-44QBWVRS.cjs.map +1 -1
  18. package/dist/chunk-4EKAWNYI.cjs.map +1 -1
  19. package/dist/chunk-4FOFD2A3.js +63 -0
  20. package/dist/chunk-4FOFD2A3.js.map +1 -0
  21. package/dist/chunk-4LN4BR2T.cjs.map +1 -1
  22. package/dist/chunk-4T4XHPYN.cjs.map +1 -1
  23. package/dist/{chunk-MFZ5FBS7.cjs → chunk-4XURI7WM.cjs} +3 -3
  24. package/dist/chunk-4XURI7WM.cjs.map +1 -0
  25. package/dist/{chunk-BEND2MZX.js → chunk-4Y3NBXOF.js} +11 -3
  26. package/dist/chunk-4Y3NBXOF.js.map +1 -0
  27. package/dist/chunk-5CITBN33.cjs.map +1 -1
  28. package/dist/chunk-5HCKC4HF.cjs.map +1 -1
  29. package/dist/chunk-5O2JSQYA.cjs.map +1 -1
  30. package/dist/chunk-6EBY2KKL.cjs.map +1 -1
  31. package/dist/{chunk-7ITPMVDB.cjs → chunk-6LFOM6HV.cjs} +11 -3
  32. package/dist/chunk-6LFOM6HV.cjs.map +1 -0
  33. package/dist/chunk-6LOWE2YI.cjs.map +1 -1
  34. package/dist/chunk-6LSG5Z4T.cjs.map +1 -1
  35. package/dist/chunk-6SU2MTN2.cjs.map +1 -1
  36. package/dist/chunk-6YCDLSIU.cjs.map +1 -1
  37. package/dist/chunk-75E5WNJG.cjs.map +1 -1
  38. package/dist/chunk-7JV6VVO7.cjs.map +1 -1
  39. package/dist/{chunk-UZ5V4N7M.js → chunk-7M32LYPT.js} +38 -30
  40. package/dist/chunk-7M32LYPT.js.map +1 -0
  41. package/dist/chunk-7QZCUXWB.cjs.map +1 -1
  42. package/dist/chunk-7VXF5D67.cjs.map +1 -1
  43. package/dist/chunk-ACZ2R47X.cjs.map +1 -1
  44. package/dist/chunk-AYUYJO3I.cjs.map +1 -1
  45. package/dist/chunk-BCA3TCGS.cjs.map +1 -1
  46. package/dist/chunk-BP6KDQ6I.cjs.map +1 -1
  47. package/dist/chunk-BRY3W7N3.cjs.map +1 -1
  48. package/dist/chunk-CAMALM35.cjs.map +1 -1
  49. package/dist/chunk-CCN44NZJ.cjs.map +1 -1
  50. package/dist/chunk-CKKNFFKP.cjs.map +1 -1
  51. package/dist/chunk-CR3JBTP3.cjs.map +1 -1
  52. package/dist/chunk-DJASVBOJ.cjs.map +1 -1
  53. package/dist/chunk-EEB2HDYL.cjs.map +1 -1
  54. package/dist/chunk-ENPSUWTS.cjs.map +1 -1
  55. package/dist/chunk-EQ6P6ZND.cjs.map +1 -1
  56. package/dist/chunk-EXPWQBI3.cjs.map +1 -1
  57. package/dist/chunk-F3I5DOWV.cjs.map +1 -1
  58. package/dist/chunk-F46K5H3U.cjs +63 -0
  59. package/dist/chunk-F46K5H3U.cjs.map +1 -0
  60. package/dist/chunk-F6S3WCCB.cjs.map +1 -1
  61. package/dist/chunk-FQRC4NJG.cjs.map +1 -1
  62. package/dist/chunk-FYISDU2Y.cjs.map +1 -1
  63. package/dist/chunk-GA3KXPIF.cjs.map +1 -1
  64. package/dist/chunk-GG52SAHA.cjs.map +1 -1
  65. package/dist/chunk-GK5FWN4H.cjs.map +1 -1
  66. package/dist/{chunk-FELTF5FF.js → chunk-GQYWT7BY.js} +2 -2
  67. package/dist/chunk-GSQN5EOO.cjs.map +1 -1
  68. package/dist/chunk-GW7IHYXR.cjs.map +1 -1
  69. package/dist/chunk-GWJ33GOK.cjs +63 -0
  70. package/dist/chunk-GWJ33GOK.cjs.map +1 -0
  71. package/dist/chunk-HBBEQWDU.cjs +1 -0
  72. package/dist/chunk-HBBEQWDU.cjs.map +1 -0
  73. package/dist/chunk-HLHML5ES.cjs.map +1 -1
  74. package/dist/chunk-HLKFUOAQ.cjs.map +1 -1
  75. package/dist/chunk-HLYGHP6F.cjs.map +1 -1
  76. package/dist/{chunk-GU3VNMQ5.js → chunk-I23IC3T4.js} +20 -2
  77. package/dist/chunk-I23IC3T4.js.map +1 -0
  78. package/dist/chunk-I2W7AO4B.cjs.map +1 -1
  79. package/dist/chunk-I2XGNALG.cjs.map +1 -1
  80. package/dist/chunk-I65QS3YQ.cjs.map +1 -1
  81. package/dist/{chunk-QMLU5DST.cjs → chunk-IH4OVCKM.cjs} +2 -2
  82. package/dist/chunk-IH4OVCKM.cjs.map +1 -0
  83. package/dist/chunk-IKXGA2Z5.cjs.map +1 -1
  84. package/dist/chunk-IR2LFKKA.cjs.map +1 -1
  85. package/dist/chunk-J4ZB7MU4.cjs.map +1 -1
  86. package/dist/{chunk-424542L2.cjs → chunk-K36XUB3A.cjs} +31 -5
  87. package/dist/chunk-K36XUB3A.cjs.map +1 -0
  88. package/dist/chunk-K5Q2H3VD.cjs.map +1 -1
  89. package/dist/chunk-KD5Y2YWK.cjs.map +1 -1
  90. package/dist/chunk-KJDMNF2T.cjs.map +1 -1
  91. package/dist/chunk-KLONGJCL.cjs.map +1 -1
  92. package/dist/chunk-KOB6MOAV.cjs.map +1 -1
  93. package/dist/chunk-KSJ7JLR3.cjs.map +1 -1
  94. package/dist/chunk-LJ2EG6JK.cjs.map +1 -1
  95. package/dist/chunk-LLYY4TCZ.cjs.map +1 -1
  96. package/dist/chunk-LYIBTVK6.cjs.map +1 -1
  97. package/dist/chunk-M3HWE7KT.cjs.map +1 -1
  98. package/dist/chunk-M3SJHFT4.cjs.map +1 -1
  99. package/dist/chunk-MCNDMK7F.cjs.map +1 -1
  100. package/dist/chunk-MLG6NXI6.cjs.map +1 -1
  101. package/dist/chunk-NFB3S2E6.cjs.map +1 -1
  102. package/dist/chunk-NYL3BNHR.cjs.map +1 -1
  103. package/dist/chunk-O4AYHLQX.cjs.map +1 -1
  104. package/dist/chunk-ODPNVNYE.cjs.map +1 -1
  105. package/dist/chunk-OG2KJAYD.cjs.map +1 -1
  106. package/dist/chunk-OWP7XBY2.cjs.map +1 -1
  107. package/dist/chunk-OYZP6NF6.cjs.map +1 -1
  108. package/dist/chunk-P6JLNQ6L.cjs.map +1 -1
  109. package/dist/chunk-P7DYLUUI.cjs.map +1 -1
  110. package/dist/chunk-PKAE6AQT.cjs.map +1 -1
  111. package/dist/chunk-PWDY5D5S.cjs.map +1 -1
  112. package/dist/chunk-Q7M7DO7M.cjs.map +1 -1
  113. package/dist/chunk-QKJZY32F.js +63 -0
  114. package/dist/chunk-QKJZY32F.js.map +1 -0
  115. package/dist/chunk-QKUWFMZP.cjs +69 -0
  116. package/dist/chunk-QKUWFMZP.cjs.map +1 -0
  117. package/dist/chunk-QRSA72B3.cjs.map +1 -1
  118. package/dist/{chunk-WR6Z4I52.cjs → chunk-QXVMSF3D.cjs} +21 -3
  119. package/dist/chunk-QXVMSF3D.cjs.map +1 -0
  120. package/dist/chunk-QYNRNDIY.cjs.map +1 -1
  121. package/dist/chunk-R4FE6K43.cjs.map +1 -1
  122. package/dist/chunk-R4GA6BVP.cjs.map +1 -1
  123. package/dist/chunk-R5VYSZ3Q.cjs.map +1 -1
  124. package/dist/chunk-RHFUXHQN.cjs.map +1 -1
  125. package/dist/chunk-RI42IDRR.cjs.map +1 -1
  126. package/dist/chunk-RSVLVW4L.cjs.map +1 -1
  127. package/dist/chunk-S77LQWYC.cjs.map +1 -1
  128. package/dist/chunk-S7SBNOGS.cjs.map +1 -1
  129. package/dist/chunk-SQELICSX.cjs.map +1 -1
  130. package/dist/chunk-TMAJE5P2.cjs.map +1 -1
  131. package/dist/chunk-TNIJ6OSH.cjs.map +1 -1
  132. package/dist/chunk-UGSM7RJ2.cjs.map +1 -1
  133. package/dist/chunk-UKLZAOLW.cjs.map +1 -1
  134. package/dist/{chunk-K74UMEU4.js → chunk-UQDXXLLT.js} +27 -1
  135. package/dist/chunk-UQDXXLLT.js.map +1 -0
  136. package/dist/{chunk-H2NGR5JG.js → chunk-UUZ5TSEX.js} +2 -2
  137. package/dist/chunk-UUZ5TSEX.js.map +1 -0
  138. package/dist/chunk-V47G7P6L.cjs.map +1 -1
  139. package/dist/chunk-VFPQUIEP.js +69 -0
  140. package/dist/chunk-VFPQUIEP.js.map +1 -0
  141. package/dist/chunk-VH5A6SMU.cjs.map +1 -1
  142. package/dist/chunk-VYC7WUM5.cjs.map +1 -1
  143. package/dist/chunk-W457XUA6.cjs.map +1 -1
  144. package/dist/chunk-WHDI3TMP.cjs.map +1 -1
  145. package/dist/chunk-WITCPKNL.cjs.map +1 -1
  146. package/dist/chunk-WX6NP7UU.cjs.map +1 -1
  147. package/dist/chunk-XQLRIBVR.cjs.map +1 -1
  148. package/dist/chunk-XW7LMBMD.js +1 -0
  149. package/dist/chunk-YJQPKT6W.cjs.map +1 -1
  150. package/dist/chunk-YK3P5QNZ.cjs.map +1 -1
  151. package/dist/chunk-ZKPVUCQV.cjs.map +1 -1
  152. package/dist/chunk-ZUULK36E.cjs +25 -0
  153. package/dist/chunk-ZUULK36E.cjs.map +1 -0
  154. package/dist/client.cjs +3 -3
  155. package/dist/client.cjs.map +1 -1
  156. package/dist/client.d.cts +9 -0
  157. package/dist/client.d.ts +9 -0
  158. package/dist/client.js +2 -2
  159. package/dist/core.cjs +2 -2
  160. package/dist/core.cjs.map +1 -1
  161. package/dist/core.d.cts +5 -1
  162. package/dist/core.d.ts +5 -1
  163. package/dist/core.js +1 -1
  164. package/dist/currencies.cjs.map +1 -1
  165. package/dist/enigmaCardForm.cjs.map +1 -1
  166. package/dist/error.cjs.map +1 -1
  167. package/dist/eventStream.cjs.map +1 -1
  168. package/dist/exportDownload.cjs.map +1 -1
  169. package/dist/feeProgram.cjs.map +1 -1
  170. package/dist/index.cjs +33 -25
  171. package/dist/index.cjs.map +1 -1
  172. package/dist/index.d.cts +3 -1
  173. package/dist/index.d.ts +3 -1
  174. package/dist/index.js +40 -32
  175. package/dist/internal/resources/admin.cjs.map +1 -1
  176. package/dist/internal/resources/admin.d.cts +1 -1
  177. package/dist/internal/resources/admin.d.ts +1 -1
  178. package/dist/internal/resources/adminBranding.cjs.map +1 -1
  179. package/dist/internal/resources/adminBranding.d.cts +1 -1
  180. package/dist/internal/resources/adminBranding.d.ts +1 -1
  181. package/dist/internal/resources/adminFeePlans.cjs +7 -0
  182. package/dist/internal/resources/adminFeePlans.cjs.map +1 -0
  183. package/dist/internal/resources/adminFeePlans.d.cts +39 -0
  184. package/dist/internal/resources/adminFeePlans.d.ts +39 -0
  185. package/dist/internal/resources/adminFeePlans.js +7 -0
  186. package/dist/internal/resources/adminFeePlans.js.map +1 -0
  187. package/dist/internal/resources/adminFileScans.cjs.map +1 -1
  188. package/dist/internal/resources/adminFileScans.d.cts +1 -1
  189. package/dist/internal/resources/adminFileScans.d.ts +1 -1
  190. package/dist/internal/resources/adminIndustries.cjs.map +1 -1
  191. package/dist/internal/resources/adminIndustries.d.cts +1 -1
  192. package/dist/internal/resources/adminIndustries.d.ts +1 -1
  193. package/dist/internal/resources/adminLive.cjs.map +1 -1
  194. package/dist/internal/resources/adminNotices.cjs +7 -0
  195. package/dist/internal/resources/adminNotices.cjs.map +1 -0
  196. package/dist/internal/resources/adminNotices.d.cts +43 -0
  197. package/dist/internal/resources/adminNotices.d.ts +43 -0
  198. package/dist/internal/resources/adminNotices.js +7 -0
  199. package/dist/internal/resources/adminNotices.js.map +1 -0
  200. package/dist/internal/resources/adminPortal.cjs +2 -2
  201. package/dist/internal/resources/adminPortal.cjs.map +1 -1
  202. package/dist/internal/resources/adminPortal.d.cts +18 -2
  203. package/dist/internal/resources/adminPortal.d.ts +18 -2
  204. package/dist/internal/resources/adminPortal.js +1 -1
  205. package/dist/internal/resources/adminSupport.cjs.map +1 -1
  206. package/dist/internal/resources/adminSupport.d.cts +1 -1
  207. package/dist/internal/resources/adminSupport.d.ts +1 -1
  208. package/dist/internal/resources/auditLogs.cjs.map +1 -1
  209. package/dist/internal/resources/auditLogs.d.cts +1 -1
  210. package/dist/internal/resources/auditLogs.d.ts +1 -1
  211. package/dist/internal/resources/cache.cjs.map +1 -1
  212. package/dist/internal/resources/cardIssuers.cjs.map +1 -1
  213. package/dist/internal/resources/cardIssuers.d.cts +1 -1
  214. package/dist/internal/resources/cardIssuers.d.ts +1 -1
  215. package/dist/internal/resources/configs.cjs.map +1 -1
  216. package/dist/internal/resources/connectorRestrictionRules.cjs.map +1 -1
  217. package/dist/internal/resources/connectorRestrictionRules.d.cts +1 -1
  218. package/dist/internal/resources/connectorRestrictionRules.d.ts +1 -1
  219. package/dist/internal/resources/connectorRestrictions.cjs.map +1 -1
  220. package/dist/internal/resources/connectorRestrictions.d.cts +1 -1
  221. package/dist/internal/resources/connectorRestrictions.d.ts +1 -1
  222. package/dist/internal/resources/diagnostic.cjs.map +1 -1
  223. package/dist/internal/resources/diagnostic.d.cts +1 -1
  224. package/dist/internal/resources/diagnostic.d.ts +1 -1
  225. package/dist/internal/resources/gsm.cjs.map +1 -1
  226. package/dist/internal/resources/gsm.d.cts +1 -1
  227. package/dist/internal/resources/gsm.d.ts +1 -1
  228. package/dist/internal/resources/nativeRenewals.cjs.map +1 -1
  229. package/dist/internal/resources/nativeRenewals.d.cts +1 -1
  230. package/dist/internal/resources/nativeRenewals.d.ts +1 -1
  231. package/dist/internal/resources/platformBilling.cjs.map +1 -1
  232. package/dist/internal/resources/platformBilling.d.cts +1 -1
  233. package/dist/internal/resources/platformBilling.d.ts +1 -1
  234. package/dist/internal/resources/platformFees.cjs.map +1 -1
  235. package/dist/internal/resources/platformMessageTemplates.cjs.map +1 -1
  236. package/dist/internal/resources/platformSettings.cjs.map +1 -1
  237. package/dist/internal/resources/platformSettings.d.cts +1 -1
  238. package/dist/internal/resources/platformSettings.d.ts +1 -1
  239. package/dist/internal.cjs +64 -46
  240. package/dist/internal.cjs.map +1 -1
  241. package/dist/internal.d.cts +10 -3
  242. package/dist/internal.d.ts +10 -3
  243. package/dist/internal.js +78 -60
  244. package/dist/internal.js.map +1 -1
  245. package/dist/listQuery.cjs.map +1 -1
  246. package/dist/panes.cjs.map +1 -1
  247. package/dist/paymentPresentation.cjs.map +1 -1
  248. package/dist/recordCounter.cjs.map +1 -1
  249. package/dist/resources/aiTools.cjs.map +1 -1
  250. package/dist/resources/analytics.cjs.map +1 -1
  251. package/dist/resources/analyticsDashboard.cjs.map +1 -1
  252. package/dist/resources/apiKeys.cjs.map +1 -1
  253. package/dist/resources/audit.cjs.map +1 -1
  254. package/dist/resources/authentication.cjs.map +1 -1
  255. package/dist/resources/availabilityOverrides.cjs.map +1 -1
  256. package/dist/resources/billing.cjs.map +1 -1
  257. package/dist/resources/buyerAccount.cjs.map +1 -1
  258. package/dist/resources/buyerBlocklist.cjs.map +1 -1
  259. package/dist/resources/buyerConversations.cjs.map +1 -1
  260. package/dist/resources/buyerEvidenceReviews.cjs.map +1 -1
  261. package/dist/resources/buyerPortal.cjs.map +1 -1
  262. package/dist/resources/cards.cjs.map +1 -1
  263. package/dist/resources/chargebackPrevention.cjs.map +1 -1
  264. package/dist/resources/checkoutMethods.cjs.map +1 -1
  265. package/dist/resources/checkoutRecovery.cjs.map +1 -1
  266. package/dist/resources/checkoutTemplates.cjs +2 -2
  267. package/dist/resources/checkoutTemplates.cjs.map +1 -1
  268. package/dist/resources/checkoutTemplates.d.cts +8 -2
  269. package/dist/resources/checkoutTemplates.d.ts +8 -2
  270. package/dist/resources/checkoutTemplates.js +1 -1
  271. package/dist/resources/connectors.cjs.map +1 -1
  272. package/dist/resources/contentEncryption.cjs +7 -0
  273. package/dist/resources/contentEncryption.cjs.map +1 -0
  274. package/dist/resources/contentEncryption.d.cts +31 -0
  275. package/dist/resources/contentEncryption.d.ts +31 -0
  276. package/dist/resources/contentEncryption.js +7 -0
  277. package/dist/resources/contentEncryption.js.map +1 -0
  278. package/dist/resources/costRules.cjs.map +1 -1
  279. package/dist/resources/customers.cjs.map +1 -1
  280. package/dist/resources/deploymentBranding.cjs.map +1 -1
  281. package/dist/resources/disputes.cjs.map +1 -1
  282. package/dist/resources/ephemeralKeys.cjs.map +1 -1
  283. package/dist/resources/events.cjs.map +1 -1
  284. package/dist/resources/export.cjs.map +1 -1
  285. package/dist/resources/externalRecords.cjs.map +1 -1
  286. package/dist/resources/featureMatrix.cjs.map +1 -1
  287. package/dist/resources/fees.cjs.map +1 -1
  288. package/dist/resources/files.cjs.map +1 -1
  289. package/dist/resources/forex.cjs.map +1 -1
  290. package/dist/resources/identityVerifications.cjs.map +1 -1
  291. package/dist/resources/industries.cjs.map +1 -1
  292. package/dist/resources/invoiceSettings.cjs.map +1 -1
  293. package/dist/resources/invoices.cjs.map +1 -1
  294. package/dist/resources/live.cjs.map +1 -1
  295. package/dist/resources/mandates.cjs.map +1 -1
  296. package/dist/resources/merchantAccounts.cjs.map +1 -1
  297. package/dist/resources/messageTemplates.cjs.map +1 -1
  298. package/dist/resources/notices.cjs +7 -0
  299. package/dist/resources/notices.cjs.map +1 -0
  300. package/dist/resources/notices.d.cts +56 -0
  301. package/dist/resources/notices.d.ts +56 -0
  302. package/dist/resources/notices.js +7 -0
  303. package/dist/resources/notices.js.map +1 -0
  304. package/dist/resources/operationLimits.cjs.map +1 -1
  305. package/dist/resources/paymentLinks.cjs.map +1 -1
  306. package/dist/resources/paymentMethods.cjs.map +1 -1
  307. package/dist/resources/payments.cjs.map +1 -1
  308. package/dist/resources/payoutDestinations.cjs.map +1 -1
  309. package/dist/resources/payouts.cjs.map +1 -1
  310. package/dist/resources/paypalDisputes.cjs.map +1 -1
  311. package/dist/resources/persons.cjs.map +1 -1
  312. package/dist/resources/poll.cjs.map +1 -1
  313. package/dist/resources/processorCosts.cjs.map +1 -1
  314. package/dist/resources/processorImports.cjs.map +1 -1
  315. package/dist/resources/products.cjs.map +1 -1
  316. package/dist/resources/profileAcquirers.cjs.map +1 -1
  317. package/dist/resources/profiles.cjs.map +1 -1
  318. package/dist/resources/projects.cjs.map +1 -1
  319. package/dist/resources/refunds.cjs.map +1 -1
  320. package/dist/resources/regions.cjs.map +1 -1
  321. package/dist/resources/relay.cjs.map +1 -1
  322. package/dist/resources/risk.cjs.map +1 -1
  323. package/dist/resources/routing.cjs.map +1 -1
  324. package/dist/resources/search.cjs.map +1 -1
  325. package/dist/resources/sellToRestrictions.cjs.map +1 -1
  326. package/dist/resources/settings.cjs.map +1 -1
  327. package/dist/resources/settlement.cjs +2 -2
  328. package/dist/resources/settlement.cjs.map +1 -1
  329. package/dist/resources/settlement.d.cts +17 -1
  330. package/dist/resources/settlement.d.ts +17 -1
  331. package/dist/resources/settlement.js +1 -1
  332. package/dist/resources/shopLabels.cjs.map +1 -1
  333. package/dist/resources/shops.cjs.map +1 -1
  334. package/dist/resources/stripeConnect.cjs.map +1 -1
  335. package/dist/resources/subscriptions.cjs.map +1 -1
  336. package/dist/resources/support.cjs.map +1 -1
  337. package/dist/resources/threeDsRules.cjs.map +1 -1
  338. package/dist/resources/users.cjs.map +1 -1
  339. package/dist/resources/vatRates.cjs.map +1 -1
  340. package/dist/resources/verification.cjs.map +1 -1
  341. package/dist/resources/webhooks.cjs.map +1 -1
  342. package/dist/resources/whopResolutionCases.cjs.map +1 -1
  343. package/dist/{types-CAF6Fg1O.d.ts → types-B82KRgid.d.cts} +267 -3
  344. package/dist/{types-gi0y0Jy7.d.cts → types-CVKMSviB.d.ts} +267 -3
  345. package/dist/types.cjs.map +1 -1
  346. package/dist/types.d.cts +462 -5
  347. package/dist/types.d.ts +462 -5
  348. package/package.json +1 -1
  349. package/dist/chunk-424542L2.cjs.map +0 -1
  350. package/dist/chunk-5JJ65Z7J.cjs.map +0 -1
  351. package/dist/chunk-7ITPMVDB.cjs.map +0 -1
  352. package/dist/chunk-A4UPU5UE.js +0 -1
  353. package/dist/chunk-BEND2MZX.js.map +0 -1
  354. package/dist/chunk-GU3VNMQ5.js.map +0 -1
  355. package/dist/chunk-H2NGR5JG.js.map +0 -1
  356. package/dist/chunk-K74UMEU4.js.map +0 -1
  357. package/dist/chunk-MFZ5FBS7.cjs.map +0 -1
  358. package/dist/chunk-QMLU5DST.cjs.map +0 -1
  359. package/dist/chunk-UZ5V4N7M.js.map +0 -1
  360. package/dist/chunk-VHHQX52U.cjs +0 -1
  361. package/dist/chunk-VHHQX52U.cjs.map +0 -1
  362. package/dist/chunk-WR6Z4I52.cjs.map +0 -1
  363. /package/dist/{chunk-FELTF5FF.js.map → chunk-GQYWT7BY.js.map} +0 -0
  364. /package/dist/{chunk-A4UPU5UE.js.map → chunk-XW7LMBMD.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-S77LQWYC.cjs","../src/internal/resources/platformSettings.ts"],"names":[],"mappings":"AAAA;ACoBO,IAAM,iBAAA,EAAN,MAAuB;AAAA,EAC5B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,MAAM,6BAAA,CAAA,EAAwE;AAC5E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,gDAAgD,CAAA;AAAA,EAC7E;AAAA;AAAA,EAGA,MAAM,0BAAA,CACJ,SAAA,EACA,gBAAA,E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MAAM,qBAAA,CAAsB,UAAA,EAAuD;AACjF,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,MACV,KAAA;AAAA,MACA,CAAA,uBAAA,EAA0B,kBAAA,CAAmB,UAAU,CAAC,CAAA,mBAAA;AAAA,IAC1D,CAAA;AAAA,EACF;AAAA;AAAA,EAGA,MAAM,YAAA,CAAa,UAAA,EAAoB,SAAA,EAA8C;AACnF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,QAAA,CAAS,UAAA,EAAY,SAAS,CAAC,CAAA;AAAA,EAC5D;AAAA;AAAA,EAGA,MAAM,UAAA,CACJ,UAAA,EACA,SAAA,EACA,MAAA,EAC2B;AAC3B,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,OAAA,EAAS,QAAA,CAAS,UAAA,EAAY,SAAS,CAAA,EAAG,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAChF;AACF,CAAA;AAEA,SAAS,QAAA,CAAS,UAAA,EAAoB,SAAA,EAA2B;AAC/D,EAAA,OAAO,CAAA,uBAAA,EAA0B,kBAAA,CAAmB,UAAU,CAAC,CAAA,OAAA,EAAU,kBAAA,CAAmB,SAAS,CAAC,CAAA,SAAA,CAAA;AACxG;AAGA,SAAS,YAAA,CAAa,KAAA,EAAsD;AAC1E,EAAA,OAAO,KAAA,CAAM,WAAA,EAAa,EAAE,UAAA,EAAY,KAAA,CAAM,WAAW,EAAA,EAAI,CAAC,CAAA;AAChE;AD1CA;AACA;AACE;AACF,4CAAC","file":"/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-S77LQWYC.cjs","sourcesContent":[null,"import type { RequestFn } from '../../client';\nimport type { SettingOverridesResponse } from '../types';\nimport type {\n ApplePayVerificationCatalogue,\n ApplePayVerificationSelection,\n MerchantSettingsQuery,\n SettingsResponse,\n UpdateSettingsRequest,\n} from '../../types';\n\n/**\n * Settings as the platform operator sees them: the platform's own, and the\n * operator's values at any merchant, project or shop.\n *\n * Each setting names the admin permission group needed to change it. Every\n * change is recorded in the audit log with the previous and the new value\n * (`entity_type: 'setting'`); `auditLogs.list({ entity_type: 'setting',\n * entity_id })` is one setting's history. A merchant's own values are listed\n * (`authority: 'merchant'`) but can only be changed by the merchant.\n */\nexport class PlatformSettings {\n constructor(private readonly request: RequestFn) {}\n\n /** Provider-issued presets for this backend environment. */\n async applePayVerificationCatalogue(): Promise<ApplePayVerificationCatalogue> {\n return this.request('GET', '/payment-link/apple-pay-verification/catalogue');\n }\n\n /** Atomic, audited update. A stale revision leaves the current file unchanged. */\n async updateApplePayVerification(\n selection: ApplePayVerificationSelection,\n expectedRevision: number,\n ): Promise<SettingsResponse> {\n return this.update({\n changes: [\n {\n key: 'checkout.apple_pay_verification',\n value: selection,\n expected_revision: expectedRevision,\n },\n ],\n });\n }\n\n /** `GET /admin-portal/settings` */\n async retrieve(): Promise<SettingsResponse> {\n return this.request('GET', '/admin-portal/settings');\n }\n\n /**\n * Change platform settings. All changes are applied or none is.\n *\n * `PATCH /admin-portal/settings`\n */\n async update(params: UpdateSettingsRequest): Promise<SettingsResponse> {\n return this.request('PATCH', '/admin-portal/settings', { body: params });\n }\n\n /** `GET /admin-portal/accounts/{merchantId}/settings` */\n async retrieveMerchant(\n merchantId: string,\n query: MerchantSettingsQuery = {},\n ): Promise<SettingsResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settings`,\n {\n query: projectQuery(query),\n },\n );\n }\n\n /** `PATCH /admin-portal/accounts/{merchantId}/settings` */\n async updateMerchant(\n merchantId: string,\n params: UpdateSettingsRequest,\n query: MerchantSettingsQuery = {},\n ): Promise<SettingsResponse> {\n return this.request(\n 'PATCH',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settings`,\n { body: params, query: projectQuery(query) },\n );\n }\n\n /**\n * `GET /admin-portal/accounts/{merchantId}/settings/overrides`\n *\n * Which of the merchant's projects and shops carry an operator setting of\n * their own, in one call instead of one settings read per project and shop.\n * A store named in `not_read` could not be read: treat its settings as\n * unknown, not as unset.\n */\n async listMerchantOverrides(merchantId: string): Promise<SettingOverridesResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settings/overrides`,\n );\n }\n\n /** `GET /admin-portal/accounts/{merchantId}/shops/{profileId}/settings` */\n async retrieveShop(merchantId: string, profileId: string): Promise<SettingsResponse> {\n return this.request('GET', shopPath(merchantId, profileId));\n }\n\n /** `PATCH /admin-portal/accounts/{merchantId}/shops/{profileId}/settings` */\n async updateShop(\n merchantId: string,\n profileId: string,\n params: UpdateSettingsRequest,\n ): Promise<SettingsResponse> {\n return this.request('PATCH', shopPath(merchantId, profileId), { body: params });\n }\n}\n\nfunction shopPath(merchantId: string, profileId: string): string {\n return `/admin-portal/accounts/${encodeURIComponent(merchantId)}/shops/${encodeURIComponent(profileId)}/settings`;\n}\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"]}
1
+ {"version":3,"sources":["/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-S77LQWYC.cjs","../src/internal/resources/platformSettings.ts"],"names":[],"mappings":"AAAA;ACoBO,IAAM,iBAAA,EAAN,MAAuB;AAAA,EAC5B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,MAAM,6BAAA,CAAA,EAAwE;AAC5E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,gDAAgD,CAAA;AAAA,EAC7E;AAAA;AAAA,EAGA,MAAM,0BAAA,CACJ,SAAA,EACA,gBAAA,EAC2B;AAC3B,IAAA,OAAO,IAAA,CAAK,MAAA,CAAO;AAAA,MACjB,OAAA,EAAS;AAAA,QACP;AAAA,UACE,GAAA,EAAK,iCAAA;AAAA,UACL,KAAA,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,UAAU,CAAC,CAAA,mBAAA;AAAA,IAC1D,CAAA;AAAA,EACF;AAAA;AAAA,EAGA,MAAM,YAAA,CAAa,UAAA,EAAoB,SAAA,EAA8C;AACnF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,QAAA,CAAS,UAAA,EAAY,SAAS,CAAC,CAAA;AAAA,EAC5D;AAAA;AAAA,EAGA,MAAM,UAAA,CACJ,UAAA,EACA,SAAA,EACA,MAAA,EAC2B;AAC3B,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,OAAA,EAAS,QAAA,CAAS,UAAA,EAAY,SAAS,CAAA,EAAG,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAChF;AACF,CAAA;AAEA,SAAS,QAAA,CAAS,UAAA,EAAoB,SAAA,EAA2B;AAC/D,EAAA,OAAO,CAAA,uBAAA,EAA0B,kBAAA,CAAmB,UAAU,CAAC,CAAA,OAAA,EAAU,kBAAA,CAAmB,SAAS,CAAC,CAAA,SAAA,CAAA;AACxG;AAGA,SAAS,YAAA,CAAa,KAAA,EAAsD;AAC1E,EAAA,OAAO,KAAA,CAAM,WAAA,EAAa,EAAE,UAAA,EAAY,KAAA,CAAM,WAAW,EAAA,EAAI,CAAC,CAAA;AAChE;AD1CA;AACA;AACE;AACF,4CAAC","file":"/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-S77LQWYC.cjs","sourcesContent":[null,"import type { RequestFn } from '../../client';\nimport type { SettingOverridesResponse } from '../types';\nimport type {\n ApplePayVerificationCatalogue,\n ApplePayVerificationSelection,\n MerchantSettingsQuery,\n SettingsResponse,\n UpdateSettingsRequest,\n} from '../../types';\n\n/**\n * Settings as the platform operator sees them: the platform's own, and the\n * operator's values at any merchant, project or shop.\n *\n * Each setting names the admin permission group needed to change it. Every\n * change is recorded in the audit log with the previous and the new value\n * (`entity_type: 'setting'`); `auditLogs.list({ entity_type: 'setting',\n * entity_id })` is one setting's history. A merchant's own values are listed\n * (`authority: 'merchant'`) but can only be changed by the merchant.\n */\nexport class PlatformSettings {\n constructor(private readonly request: RequestFn) {}\n\n /** Provider-issued presets for this backend environment. */\n async applePayVerificationCatalogue(): Promise<ApplePayVerificationCatalogue> {\n return this.request('GET', '/payment-link/apple-pay-verification/catalogue');\n }\n\n /** Atomic, audited update. A stale revision leaves the current file unchanged. */\n async updateApplePayVerification(\n selection: ApplePayVerificationSelection,\n expectedRevision: number,\n ): Promise<SettingsResponse> {\n return this.update({\n changes: [\n {\n key: 'checkout.apple_pay_verification',\n value: selection,\n expected_revision: expectedRevision,\n },\n ],\n });\n }\n\n /** `GET /admin-portal/settings` */\n async retrieve(): Promise<SettingsResponse> {\n return this.request('GET', '/admin-portal/settings');\n }\n\n /**\n * Change platform settings. All changes are applied or none is.\n *\n * `PATCH /admin-portal/settings`\n */\n async update(params: UpdateSettingsRequest): Promise<SettingsResponse> {\n return this.request('PATCH', '/admin-portal/settings', { body: params });\n }\n\n /** `GET /admin-portal/accounts/{merchantId}/settings` */\n async retrieveMerchant(\n merchantId: string,\n query: MerchantSettingsQuery = {},\n ): Promise<SettingsResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settings`,\n {\n query: projectQuery(query),\n },\n );\n }\n\n /** `PATCH /admin-portal/accounts/{merchantId}/settings` */\n async updateMerchant(\n merchantId: string,\n params: UpdateSettingsRequest,\n query: MerchantSettingsQuery = {},\n ): Promise<SettingsResponse> {\n return this.request(\n 'PATCH',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settings`,\n { body: params, query: projectQuery(query) },\n );\n }\n\n /**\n * `GET /admin-portal/accounts/{merchantId}/settings/overrides`\n *\n * Which of the merchant's projects and shops carry an operator setting of\n * their own, in one call instead of one settings read per project and shop.\n * A store named in `not_read` could not be read: treat its settings as\n * unknown, not as unset.\n */\n async listMerchantOverrides(merchantId: string): Promise<SettingOverridesResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settings/overrides`,\n );\n }\n\n /** `GET /admin-portal/accounts/{merchantId}/shops/{profileId}/settings` */\n async retrieveShop(merchantId: string, profileId: string): Promise<SettingsResponse> {\n return this.request('GET', shopPath(merchantId, profileId));\n }\n\n /** `PATCH /admin-portal/accounts/{merchantId}/shops/{profileId}/settings` */\n async updateShop(\n merchantId: string,\n profileId: string,\n params: UpdateSettingsRequest,\n ): Promise<SettingsResponse> {\n return this.request('PATCH', shopPath(merchantId, profileId), { body: params });\n }\n}\n\nfunction shopPath(merchantId: string, profileId: string): string {\n return `/admin-portal/accounts/${encodeURIComponent(merchantId)}/shops/${encodeURIComponent(profileId)}/settings`;\n}\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"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-S7SBNOGS.cjs","../src/resources/operationLimits.ts"],"names":[],"mappings":"AAAA;ACsCO,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,EAOlD,MAAM,SAAA,CACJ,MAAA,EACA,OAAA,EAC+B;AAC/B,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,yBAAA,EAA2B;AAAA,MACpD,KAAA,EAAO,EAAE,SAAA,kBAAW,MAAA,2BAAQ,YAAU,CAAA;AAAA,MACtC,GAAG;AAAA,IACL,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,UAAA,CACJ,MAAA,EACA,OAAA,EAC6B;AAC7B,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,yBAAA,EAA2B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S.cjs","sourcesContent":[null,"import type {\n DecidePendingOperationRequest,\n OperationLimitHistoryParams,\n OperationLimitHistoryResponse,\n OperationLimitRule,\n OperationLimitRuleDeleteResponse,\n OperationLimitRuleListParams,\n OperationLimitSettings,\n OperationLimitUsage,\n OperationLimitUsageParams,\n PendingOperation,\n PendingOperationListParams,\n PendingOperationListResponse,\n UpdateOperationLimitSettingsRequest,\n UpsertOperationLimitRuleRequest,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * Per-operation spending limits: rules scoped to the merchant, a role, a\n * user or an API key, on the entire account or one shop, the merchant-level\n * enforcement settings, the version history and the approvals inbox.\n * Enforcement resolves the most specific rule: api_key > user > role >\n * merchant, a shop rule before the account rule at each level, and a\n * switched-off rule at any applicable level wins.\n *\n * A rule set to `require_approval` does not refuse an over-limit operation —\n * it parks it. The original call fails with HTTP 409 `DE_06` carrying\n * `PendingApprovalErrorDetails`, and the operation runs only once a second\n * person approves the request through this inbox.\n *\n * **Refunds only.** Approval needs an executor that can run the operation\n * after the decision, and only refunds have one; every other operation takes\n * `block` alone, which the request type enforces. So every request in this\n * inbox is a refund, and `DE_06` never comes back from any other call — an\n * over-limit settlement adjustment, payout or subscription change fails with\n * `DE_01`.\n */\nexport class OperationLimits {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * List the merchant's limit rules, optionally for one operation.\n *\n * `GET /operation-limits/rules`\n */\n async listRules(\n params?: OperationLimitRuleListParams,\n options?: RequestExtras,\n ): Promise<OperationLimitRule[]> {\n return this.request('GET', '/operation-limits/rules', {\n query: { operation: params?.operation },\n ...options,\n });\n }\n\n /**\n * Create or replace the limit rule for one target. Full-replace upsert:\n * absent limit fields clear that dimension.\n *\n * `PUT /operation-limits/rules`\n */\n async upsertRule(\n params: UpsertOperationLimitRuleRequest,\n options?: RequestExtras,\n ): Promise<OperationLimitRule> {\n return this.request('PUT', '/operation-limits/rules', { body: params, ...options });\n }\n\n /**\n * Delete a limit rule.\n *\n * `DELETE /operation-limits/rules/{ruleId}`\n */\n async deleteRule(\n ruleId: string,\n options?: RequestExtras,\n ): Promise<OperationLimitRuleDeleteResponse> {\n return this.request('DELETE', `/operation-limits/rules/${encodeURIComponent(ruleId)}`, options);\n }\n\n /**\n * The merchant-level enforcement settings. An untouched merchant gets the\n * defaults: rolling window, admins not exempt.\n *\n * `GET /operation-limits/settings`\n */\n async retrieveSettings(options?: RequestExtras): Promise<OperationLimitSettings> {\n return this.request('GET', '/operation-limits/settings', options);\n }\n\n /**\n * The caller's own usage against the limit on one operation: the rule that\n * applies to them, what they have used in the current window and what\n * remains.\n *\n * Refund usage needs merchant-wide refund read and is refused to a role\n * restricted to some connectors: the totals span every shop and connector,\n * as the budget does. Settlement usage needs merchant settlement read.\n *\n * `GET /operation-limits/usage`\n */\n async retrieveUsage(\n params: OperationLimitUsageParams,\n options?: RequestExtras,\n ): Promise<OperationLimitUsage> {\n return this.request('GET', '/operation-limits/usage', {\n query: { operation: params.operation, profile_id: params.profile_id },\n ...options,\n });\n }\n\n /**\n * The version history of the merchant's limit settings, newest first: every\n * rule created, changed (switched off or on included) or deleted, and every\n * settings change, with who made it (and who really did, under act-as) and\n * the values before and after.\n *\n * `GET /operation-limits/history`\n */\n async listHistory(\n params?: OperationLimitHistoryParams,\n options?: RequestExtras,\n ): Promise<OperationLimitHistoryResponse> {\n return this.request('GET', '/operation-limits/history', {\n query: { limit: params?.limit, before: params?.before },\n ...options,\n });\n }\n\n /**\n * Update the enforcement settings. Only provided fields change.\n *\n * `PUT /operation-limits/settings`\n */\n async updateSettings(\n params: UpdateOperationLimitSettingsRequest,\n options?: RequestExtras,\n ): Promise<OperationLimitSettings> {\n return this.request('PUT', '/operation-limits/settings', { body: params, ...options });\n }\n\n /**\n * The approvals inbox: over-limit operations waiting on a second person.\n *\n * Both filters default rather than widen. With no `status` the list holds\n * **pending requests only** — approved, rejected and expired ones are\n * reachable only by asking for that status, so a history view must pass one\n * per status. With no `operation` it lists **refunds only**; the list is one\n * operation at a time. `limit` defaults to 100 and is clamped to 1–500.\n *\n * Requests past their `expires_at` are expired before the list is read, so\n * nothing here is shown as actionable when it is not.\n *\n * `GET /operation-limits/approvals`\n */\n async listApprovals(\n params?: PendingOperationListParams,\n options?: RequestExtras,\n ): Promise<PendingOperationListResponse> {\n return this.request('GET', '/operation-limits/approvals', {\n query: {\n operation: params?.operation,\n status: params?.status,\n limit: params?.limit,\n },\n ...options,\n });\n }\n\n /**\n * Approve a parked operation and execute it.\n *\n * Refused for the user who requested it, and for an approver whose own\n * limit would not have covered the operation — the permission is necessary\n * and not sufficient. The requester stays refused while signed in as\n * another team member: that is a `DE_12` error (`approval_decision_refused`)\n * whose `data.reason` is `requester_acting_as_another_member`, and\n * {@link reject} refuses the same way.\n *\n * Approval and execution are two facts. A request that was approved but\n * whose operation then failed comes back `approved` with `execution_error`\n * set and no `result_entity_id`; that is a real outcome, not a partial read.\n *\n * `POST /operation-limits/approvals/{id}/approve`\n */\n async approve(\n id: string,\n params: DecidePendingOperationRequest = {},\n options?: RequestExtras,\n ): Promise<PendingOperation> {\n return this.request('POST', `/operation-limits/approvals/${encodeURIComponent(id)}/approve`, {\n body: params,\n ...options,\n });\n }\n\n /**\n * Reject a parked operation. Nothing is executed and the request is closed.\n *\n * `POST /operation-limits/approvals/{id}/reject`\n */\n async reject(\n id: string,\n params: DecidePendingOperationRequest = {},\n options?: RequestExtras,\n ): Promise<PendingOperation> {\n return this.request('POST', `/operation-limits/approvals/${encodeURIComponent(id)}/reject`, {\n body: params,\n ...options,\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-S7SBNOGS.cjs","../src/resources/operationLimits.ts"],"names":[],"mappings":"AAAA;ACsCO,IAAM,gBAAA,EAAN,MAAsB;AAAA,EAC3B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;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AAA;AACD,QAAA;AACjB,MAAA;AACG,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsB6B,EAAA;AACsD,IAAA;AACzE,MAAA;AACH,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAW6B,EAAA;AACsD,IAAA;AACzE,MAAA;AACH,MAAA;AACJ,IAAA;AACH,EAAA;AACF;ADzEwF;AACA;AACA;AACA","file":"/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-S7SBNOGS.cjs","sourcesContent":[null,"import type {\n DecidePendingOperationRequest,\n OperationLimitHistoryParams,\n OperationLimitHistoryResponse,\n OperationLimitRule,\n OperationLimitRuleDeleteResponse,\n OperationLimitRuleListParams,\n OperationLimitSettings,\n OperationLimitUsage,\n OperationLimitUsageParams,\n PendingOperation,\n PendingOperationListParams,\n PendingOperationListResponse,\n UpdateOperationLimitSettingsRequest,\n UpsertOperationLimitRuleRequest,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * Per-operation spending limits: rules scoped to the merchant, a role, a\n * user or an API key, on the entire account or one shop, the merchant-level\n * enforcement settings, the version history and the approvals inbox.\n * Enforcement resolves the most specific rule: api_key > user > role >\n * merchant, a shop rule before the account rule at each level, and a\n * switched-off rule at any applicable level wins.\n *\n * A rule set to `require_approval` does not refuse an over-limit operation —\n * it parks it. The original call fails with HTTP 409 `DE_06` carrying\n * `PendingApprovalErrorDetails`, and the operation runs only once a second\n * person approves the request through this inbox.\n *\n * **Refunds only.** Approval needs an executor that can run the operation\n * after the decision, and only refunds have one; every other operation takes\n * `block` alone, which the request type enforces. So every request in this\n * inbox is a refund, and `DE_06` never comes back from any other call — an\n * over-limit settlement adjustment, payout or subscription change fails with\n * `DE_01`.\n */\nexport class OperationLimits {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * List the merchant's limit rules, optionally for one operation.\n *\n * `GET /operation-limits/rules`\n */\n async listRules(\n params?: OperationLimitRuleListParams,\n options?: RequestExtras,\n ): Promise<OperationLimitRule[]> {\n return this.request('GET', '/operation-limits/rules', {\n query: { operation: params?.operation },\n ...options,\n });\n }\n\n /**\n * Create or replace the limit rule for one target. Full-replace upsert:\n * absent limit fields clear that dimension.\n *\n * `PUT /operation-limits/rules`\n */\n async upsertRule(\n params: UpsertOperationLimitRuleRequest,\n options?: RequestExtras,\n ): Promise<OperationLimitRule> {\n return this.request('PUT', '/operation-limits/rules', { body: params, ...options });\n }\n\n /**\n * Delete a limit rule.\n *\n * `DELETE /operation-limits/rules/{ruleId}`\n */\n async deleteRule(\n ruleId: string,\n options?: RequestExtras,\n ): Promise<OperationLimitRuleDeleteResponse> {\n return this.request('DELETE', `/operation-limits/rules/${encodeURIComponent(ruleId)}`, options);\n }\n\n /**\n * The merchant-level enforcement settings. An untouched merchant gets the\n * defaults: rolling window, admins not exempt.\n *\n * `GET /operation-limits/settings`\n */\n async retrieveSettings(options?: RequestExtras): Promise<OperationLimitSettings> {\n return this.request('GET', '/operation-limits/settings', options);\n }\n\n /**\n * The caller's own usage against the limit on one operation: the rule that\n * applies to them, what they have used in the current window and what\n * remains.\n *\n * Refund usage needs merchant-wide refund read and is refused to a role\n * restricted to some connectors: the totals span every shop and connector,\n * as the budget does. Settlement usage needs merchant settlement read.\n *\n * `GET /operation-limits/usage`\n */\n async retrieveUsage(\n params: OperationLimitUsageParams,\n options?: RequestExtras,\n ): Promise<OperationLimitUsage> {\n return this.request('GET', '/operation-limits/usage', {\n query: { operation: params.operation, profile_id: params.profile_id },\n ...options,\n });\n }\n\n /**\n * The version history of the merchant's limit settings, newest first: every\n * rule created, changed (switched off or on included) or deleted, and every\n * settings change, with who made it (and who really did, under act-as) and\n * the values before and after.\n *\n * `GET /operation-limits/history`\n */\n async listHistory(\n params?: OperationLimitHistoryParams,\n options?: RequestExtras,\n ): Promise<OperationLimitHistoryResponse> {\n return this.request('GET', '/operation-limits/history', {\n query: { limit: params?.limit, before: params?.before },\n ...options,\n });\n }\n\n /**\n * Update the enforcement settings. Only provided fields change.\n *\n * `PUT /operation-limits/settings`\n */\n async updateSettings(\n params: UpdateOperationLimitSettingsRequest,\n options?: RequestExtras,\n ): Promise<OperationLimitSettings> {\n return this.request('PUT', '/operation-limits/settings', { body: params, ...options });\n }\n\n /**\n * The approvals inbox: over-limit operations waiting on a second person.\n *\n * Both filters default rather than widen. With no `status` the list holds\n * **pending requests only** — approved, rejected and expired ones are\n * reachable only by asking for that status, so a history view must pass one\n * per status. With no `operation` it lists **refunds only**; the list is one\n * operation at a time. `limit` defaults to 100 and is clamped to 1–500.\n *\n * Requests past their `expires_at` are expired before the list is read, so\n * nothing here is shown as actionable when it is not.\n *\n * `GET /operation-limits/approvals`\n */\n async listApprovals(\n params?: PendingOperationListParams,\n options?: RequestExtras,\n ): Promise<PendingOperationListResponse> {\n return this.request('GET', '/operation-limits/approvals', {\n query: {\n operation: params?.operation,\n status: params?.status,\n limit: params?.limit,\n },\n ...options,\n });\n }\n\n /**\n * Approve a parked operation and execute it.\n *\n * Refused for the user who requested it, and for an approver whose own\n * limit would not have covered the operation — the permission is necessary\n * and not sufficient. The requester stays refused while signed in as\n * another team member: that is a `DE_12` error (`approval_decision_refused`)\n * whose `data.reason` is `requester_acting_as_another_member`, and\n * {@link reject} refuses the same way.\n *\n * Approval and execution are two facts. A request that was approved but\n * whose operation then failed comes back `approved` with `execution_error`\n * set and no `result_entity_id`; that is a real outcome, not a partial read.\n *\n * `POST /operation-limits/approvals/{id}/approve`\n */\n async approve(\n id: string,\n params: DecidePendingOperationRequest = {},\n options?: RequestExtras,\n ): Promise<PendingOperation> {\n return this.request('POST', `/operation-limits/approvals/${encodeURIComponent(id)}/approve`, {\n body: params,\n ...options,\n });\n }\n\n /**\n * Reject a parked operation. Nothing is executed and the request is closed.\n *\n * `POST /operation-limits/approvals/{id}/reject`\n */\n async reject(\n id: string,\n params: DecidePendingOperationRequest = {},\n options?: RequestExtras,\n ): Promise<PendingOperation> {\n return this.request('POST', `/operation-limits/approvals/${encodeURIComponent(id)}/reject`, {\n body: params,\n ...options,\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-SQELICSX.cjs","../src/resources/payoutDestinations.ts"],"names":[],"mappings":"AAAA;ACkCO,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,EAA0C;AAC9C,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,yBAAyB,CAAA;AAAA,EACtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,UAAA,CAAW,MAAA,EAAmE;AAClF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,yBAAA,EAA2B,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACzE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,UAAA,CACJ,aAAA,EACA,MAAA,EAC4B;AAC5B,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,wBAAA,EAA2B,kBAAA,CAAmB,aAAa,CAAC,CAAA,CAAA;AAC/E,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOqF,EAAA;AACvE,IAAA;AACV,MAAA;AAC4D,MAAA;AACxC,MAAA;AACtB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQwE,EAAA;AACkB,IAAA;AACrE,MAAA;AAClB,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAO4E,EAAA;AAC9D,IAAA;AACV,MAAA;AAC4D,MAAA;AAC9D,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOsD,EAAA;AACK,IAAA;AAC3D,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUmC,EAAA;AACmC,IAAA;AAC3D,MAAA;AACR,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOiG,EAAA;AACX,IAAA;AACtF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASuF,EAAA;AACI,IAAA;AAC3F,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ4E,EAAA;AACW,IAAA;AACvF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAO8F,EAAA;AAChF,IAAA;AACV,MAAA;AACyD,MAAA;AACrC,MAAA;AACtB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAW+B,EAAA;AACqD,IAAA;AACxD,MAAA;AACzB,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQiF,EAAA;AACzB,IAAA;AACnB,MAAA;AAClC,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOsD,EAAA;AACH,IAAA;AACnD,EAAA;AACF;ADrD4F;AACA;AACA;AACA","file":"/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-SQELICSX.cjs","sourcesContent":[null,"import type {\n MyPayoutDestinations,\n MyRevenueShares,\n OfferedMethodsSettings,\n OfferedMethodsSettingsParams,\n OfferedMethodsUpdateParams,\n OfferedPayoutMethods,\n PayoutDestination,\n PayoutDestinationCreateParams,\n PayoutDestinationUpdateParams,\n RevealedPayoutDestination,\n RevenueShareHolder,\n TeamPayoutDestination,\n TeamPayoutDestinations,\n TeamPayoutDestinationsParams,\n} from '../types';\nimport type { RequestFn } from '../client';\n\ntype Query = Record<string, string | number | boolean | null | undefined>;\n\n/**\n * Payouts: how a merchant's team members want to be paid, and which methods\n * the merchant offers them. Nothing here moves money.\n *\n * Dashboard (JWT) routes only; no API key reaches them. The merchant, the\n * member and the shop come from the token. Keeping one's own details needs\n * the Payouts view permission (`ProfilePayoutDestinationRead`); the team's\n * details and the offered methods need Payouts manage\n * (`ProfilePayoutDestinationWrite`, `MerchantPayoutDestinationWrite` for the\n * merchant's list). A session acting as someone else (act-as, a support\n * switch) may read and may not change or reveal anything (403, `IR_22`). A\n * stale `version` or `expected_revision` answers 400 `IR_16` with\n * `details.reason: 'changed_elsewhere'`.\n */\nexport class PayoutDestinations {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The caller's own destinations, masked, and the methods offered to them.\n *\n * `GET /payout-destinations/me`\n */\n async listMine(): Promise<MyPayoutDestinations> {\n return this.request('GET', '/payout-destinations/me');\n }\n\n /**\n * Save a destination. The method must be offered; at most 20 per member.\n *\n * `POST /payout-destinations/me`\n */\n async createMine(params: PayoutDestinationCreateParams): Promise<PayoutDestination> {\n return this.request('POST', '/payout-destinations/me', { body: params });\n }\n\n /**\n * Replace a destination's details at the version read.\n *\n * `PUT /payout-destinations/me/{destinationId}`\n */\n async updateMine(\n destinationId: string,\n params: PayoutDestinationUpdateParams,\n ): Promise<PayoutDestination> {\n return this.request('PUT', `/payout-destinations/me/${encodeURIComponent(destinationId)}`, {\n body: params,\n });\n }\n\n /**\n * Make a destination the preferred one; the others lose it.\n *\n * `POST /payout-destinations/me/{destinationId}/preferred`\n */\n async preferMine(destinationId: string, version: number): Promise<PayoutDestination> {\n return this.request(\n 'POST',\n `/payout-destinations/me/${encodeURIComponent(destinationId)}/preferred`,\n { body: { version } },\n );\n }\n\n /**\n * Delete a destination. Final: the history keeps who, when and which\n * fields, never a value.\n *\n * `DELETE /payout-destinations/me/{destinationId}?version=`\n */\n async deleteMine(destinationId: string, version: number): Promise<void> {\n await this.request('DELETE', `/payout-destinations/me/${encodeURIComponent(destinationId)}`, {\n query: { version },\n });\n }\n\n /**\n * One's own destination in plain text. Recorded in the history first.\n *\n * `POST /payout-destinations/me/{destinationId}/reveal`\n */\n async revealMine(destinationId: string): Promise<RevealedPayoutDestination> {\n return this.request(\n 'POST',\n `/payout-destinations/me/${encodeURIComponent(destinationId)}/reveal`,\n );\n }\n\n /**\n * The methods offered to the caller.\n *\n * `GET /payout-destinations/methods`\n */\n async offeredMethods(): Promise<OfferedPayoutMethods> {\n return this.request('GET', '/payout-destinations/methods');\n }\n\n /**\n * The merchant's list and, with `shop_id`, one shop's. A shop role reads\n * its own shop only.\n *\n * `GET /payout-destinations/methods/settings`\n */\n async retrieveMethodsSettings(\n params?: OfferedMethodsSettingsParams,\n ): Promise<OfferedMethodsSettings> {\n return this.request('GET', '/payout-destinations/methods/settings', {\n query: params as Query | undefined,\n });\n }\n\n /**\n * Set the methods offered at the merchant or at one shop.\n *\n * `PUT /payout-destinations/methods/settings`\n */\n async updateMethodsSettings(params: OfferedMethodsUpdateParams): Promise<OfferedMethodsSettings> {\n return this.request('PUT', '/payout-destinations/methods/settings', { body: params });\n }\n\n /**\n * The team's destinations the caller manages, masked: every member for a\n * merchant-level role, the members reaching the caller's shop for a shop\n * role.\n *\n * `GET /payout-destinations`\n */\n async listTeam(params?: TeamPayoutDestinationsParams): Promise<TeamPayoutDestinations> {\n return this.request('GET', '/payout-destinations', { query: params as Query | undefined });\n }\n\n /**\n * A managed member's destination in plain text. Recorded in the history\n * first.\n *\n * `POST /payout-destinations/{destinationId}/reveal`\n */\n async revealTeam(destinationId: string): Promise<RevealedPayoutDestination> {\n return this.request('POST', `/payout-destinations/${encodeURIComponent(destinationId)}/reveal`);\n }\n\n /**\n * Confirm a changed destination was seen, at the version read.\n *\n * `POST /payout-destinations/{destinationId}/acknowledge`\n */\n async acknowledgeTeam(destinationId: string, version: number): Promise<TeamPayoutDestination> {\n return this.request(\n 'POST',\n `/payout-destinations/${encodeURIComponent(destinationId)}/acknowledge`,\n { body: { version } },\n );\n }\n\n /**\n * Link a revenue-share holder to a team member, or unlink it (`null`). The\n * member must be an active member of the merchant whose role reads Payouts.\n *\n * `PUT /revenue-shares/holders/{holderId}/member`\n */\n async linkRevenueShareHolder(\n holderId: string,\n userId: string | null,\n ): Promise<RevenueShareHolder> {\n return this.request('PUT', `/revenue-shares/holders/${encodeURIComponent(holderId)}/member`, {\n body: { user_id: userId },\n });\n }\n\n /**\n * The merchant's revenue-share holders, each with the team member it is\n * linked to, if any.\n *\n * `GET /revenue-shares/holders?merchant_id={merchantId}`\n */\n async listRevenueShareHolders(merchantId: string): Promise<RevenueShareHolder[]> {\n return this.request('GET', '/revenue-shares/holders', {\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * The share terms of the holders linked to the caller. Read-only.\n *\n * `GET /revenue-shares/mine`\n */\n async listMyRevenueShares(): Promise<MyRevenueShares> {\n return this.request('GET', '/revenue-shares/mine');\n }\n}\n"]}
1
+ {"version":3,"sources":["/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-SQELICSX.cjs","../src/resources/payoutDestinations.ts"],"names":[],"mappings":"AAAA;ACkCO,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,EAA0C;AAC9C,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,yBAAyB,CAAA;AAAA,EACtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,UAAA,CAAW,MAAA,EAAmE;AAClF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,yBAAA,EAA2B,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACzE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,UAAA,CACJ,aAAA,EACA,MAAA,EAC4B;AAC5B,IAAA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A","file":"/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-SQELICSX.cjs","sourcesContent":[null,"import type {\n MyPayoutDestinations,\n MyRevenueShares,\n OfferedMethodsSettings,\n OfferedMethodsSettingsParams,\n OfferedMethodsUpdateParams,\n OfferedPayoutMethods,\n PayoutDestination,\n PayoutDestinationCreateParams,\n PayoutDestinationUpdateParams,\n RevealedPayoutDestination,\n RevenueShareHolder,\n TeamPayoutDestination,\n TeamPayoutDestinations,\n TeamPayoutDestinationsParams,\n} from '../types';\nimport type { RequestFn } from '../client';\n\ntype Query = Record<string, string | number | boolean | null | undefined>;\n\n/**\n * Payouts: how a merchant's team members want to be paid, and which methods\n * the merchant offers them. Nothing here moves money.\n *\n * Dashboard (JWT) routes only; no API key reaches them. The merchant, the\n * member and the shop come from the token. Keeping one's own details needs\n * the Payouts view permission (`ProfilePayoutDestinationRead`); the team's\n * details and the offered methods need Payouts manage\n * (`ProfilePayoutDestinationWrite`, `MerchantPayoutDestinationWrite` for the\n * merchant's list). A session acting as someone else (act-as, a support\n * switch) may read and may not change or reveal anything (403, `IR_22`). A\n * stale `version` or `expected_revision` answers 400 `IR_16` with\n * `details.reason: 'changed_elsewhere'`.\n */\nexport class PayoutDestinations {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The caller's own destinations, masked, and the methods offered to them.\n *\n * `GET /payout-destinations/me`\n */\n async listMine(): Promise<MyPayoutDestinations> {\n return this.request('GET', '/payout-destinations/me');\n }\n\n /**\n * Save a destination. The method must be offered; at most 20 per member.\n *\n * `POST /payout-destinations/me`\n */\n async createMine(params: PayoutDestinationCreateParams): Promise<PayoutDestination> {\n return this.request('POST', '/payout-destinations/me', { body: params });\n }\n\n /**\n * Replace a destination's details at the version read.\n *\n * `PUT /payout-destinations/me/{destinationId}`\n */\n async updateMine(\n destinationId: string,\n params: PayoutDestinationUpdateParams,\n ): Promise<PayoutDestination> {\n return this.request('PUT', `/payout-destinations/me/${encodeURIComponent(destinationId)}`, {\n body: params,\n });\n }\n\n /**\n * Make a destination the preferred one; the others lose it.\n *\n * `POST /payout-destinations/me/{destinationId}/preferred`\n */\n async preferMine(destinationId: string, version: number): Promise<PayoutDestination> {\n return this.request(\n 'POST',\n `/payout-destinations/me/${encodeURIComponent(destinationId)}/preferred`,\n { body: { version } },\n );\n }\n\n /**\n * Delete a destination. Final: the history keeps who, when and which\n * fields, never a value.\n *\n * `DELETE /payout-destinations/me/{destinationId}?version=`\n */\n async deleteMine(destinationId: string, version: number): Promise<void> {\n await this.request('DELETE', `/payout-destinations/me/${encodeURIComponent(destinationId)}`, {\n query: { version },\n });\n }\n\n /**\n * One's own destination in plain text. Recorded in the history first.\n *\n * `POST /payout-destinations/me/{destinationId}/reveal`\n */\n async revealMine(destinationId: string): Promise<RevealedPayoutDestination> {\n return this.request(\n 'POST',\n `/payout-destinations/me/${encodeURIComponent(destinationId)}/reveal`,\n );\n }\n\n /**\n * The methods offered to the caller.\n *\n * `GET /payout-destinations/methods`\n */\n async offeredMethods(): Promise<OfferedPayoutMethods> {\n return this.request('GET', '/payout-destinations/methods');\n }\n\n /**\n * The merchant's list and, with `shop_id`, one shop's. A shop role reads\n * its own shop only.\n *\n * `GET /payout-destinations/methods/settings`\n */\n async retrieveMethodsSettings(\n params?: OfferedMethodsSettingsParams,\n ): Promise<OfferedMethodsSettings> {\n return this.request('GET', '/payout-destinations/methods/settings', {\n query: params as Query | undefined,\n });\n }\n\n /**\n * Set the methods offered at the merchant or at one shop.\n *\n * `PUT /payout-destinations/methods/settings`\n */\n async updateMethodsSettings(params: OfferedMethodsUpdateParams): Promise<OfferedMethodsSettings> {\n return this.request('PUT', '/payout-destinations/methods/settings', { body: params });\n }\n\n /**\n * The team's destinations the caller manages, masked: every member for a\n * merchant-level role, the members reaching the caller's shop for a shop\n * role.\n *\n * `GET /payout-destinations`\n */\n async listTeam(params?: TeamPayoutDestinationsParams): Promise<TeamPayoutDestinations> {\n return this.request('GET', '/payout-destinations', { query: params as Query | undefined });\n }\n\n /**\n * A managed member's destination in plain text. Recorded in the history\n * first.\n *\n * `POST /payout-destinations/{destinationId}/reveal`\n */\n async revealTeam(destinationId: string): Promise<RevealedPayoutDestination> {\n return this.request('POST', `/payout-destinations/${encodeURIComponent(destinationId)}/reveal`);\n }\n\n /**\n * Confirm a changed destination was seen, at the version read.\n *\n * `POST /payout-destinations/{destinationId}/acknowledge`\n */\n async acknowledgeTeam(destinationId: string, version: number): Promise<TeamPayoutDestination> {\n return this.request(\n 'POST',\n `/payout-destinations/${encodeURIComponent(destinationId)}/acknowledge`,\n { body: { version } },\n );\n }\n\n /**\n * Link a revenue-share holder to a team member, or unlink it (`null`). The\n * member must be an active member of the merchant whose role reads Payouts.\n *\n * `PUT /revenue-shares/holders/{holderId}/member`\n */\n async linkRevenueShareHolder(\n holderId: string,\n userId: string | null,\n ): Promise<RevenueShareHolder> {\n return this.request('PUT', `/revenue-shares/holders/${encodeURIComponent(holderId)}/member`, {\n body: { user_id: userId },\n });\n }\n\n /**\n * The merchant's revenue-share holders, each with the team member it is\n * linked to, if any.\n *\n * `GET /revenue-shares/holders?merchant_id={merchantId}`\n */\n async listRevenueShareHolders(merchantId: string): Promise<RevenueShareHolder[]> {\n return this.request('GET', '/revenue-shares/holders', {\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * The share terms of the holders linked to the caller. Read-only.\n *\n * `GET /revenue-shares/mine`\n */\n async listMyRevenueShares(): Promise<MyRevenueShares> {\n return this.request('GET', '/revenue-shares/mine');\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-TMAJE5P2.cjs","../src/resources/risk.ts"],"names":[],"mappings":"AAAA;ACqBO,IAAM,KAAA,EAAN,MAAW;AAAA,EAChB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlD,MAAM,QAAA,CAAS,OAAA,EAAgD;AAC7D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,OAAA,EAAS,OAAO,CAAA;AAAA,EAC7C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,YAAA,CAAa,SAAA,EAAmB,OAAA,EAA4C;AAChF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,YAAA,EAAe,kBAAA,CAAmB,SAAS,CAAC,CAAA,CAAA;AACzE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAY+B,EAAA;AAC6B,IAAA;AAC5D,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAc+B,EAAA;AAC0C,IAAA;AACzE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAW+B,EAAA;AACyB,IAAA;AACjD,MAAA;AAC0C,MAAA;AAC9C,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAasC,EAAA;AAC6B,IAAA;AAC5D,MAAA;AACiB,MAAA;AACrB,IAAA;AACH,EAAA;AACF;AAG8E;AACtD,EAAA;AACf,IAAA;AACa,MAAA;AACb,IAAA;AACmE,MAAA;AACnE,IAAA;AACgE,MAAA;AACvE,EAAA;AACF;ADxC4E;AACA;AACA;AACA;AACA","file":"/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-TMAJE5P2.cjs","sourcesContent":[null,"import type {\n MerchantRisk,\n RiskAdjustments,\n RiskTuningPreviewResponse,\n RiskTuningResponse,\n RiskTuningTarget,\n RiskTuningUpdateRequest,\n ShopRisk,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * Stored shop risk indexes, per connector.\n *\n * Both reads return snapshots and never score on demand, so `computed_at` is\n * the age of the answer rather than the time of the call.\n *\n * The caller's own scope is what bounds the answer, and it is enforced\n * server-side: a profile-scoped role, or an API key pinned to one shop, gets\n * that shop from both endpoints and cannot read or enumerate a sibling's.\n */\nexport class Risk {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Every shop's stored risk for the caller's merchant, with the worst band\n * across them.\n *\n * `GET /risk`\n */\n async retrieve(options?: RequestExtras): Promise<MerchantRisk> {\n return this.request('GET', '/risk', options);\n }\n\n /**\n * One shop's stored risk index per connector.\n *\n * `GET /risk/shops/{profileId}`\n */\n async retrieveShop(profileId: string, options?: RequestExtras): Promise<ShopRisk> {\n return this.request('GET', `/risk/shops/${encodeURIComponent(profileId)}`, options);\n }\n\n /**\n * One scope's tuning of the merchant's own, adjusted risk assessment: what\n * it sets, what applies there and where each part comes from, and DeloPay's\n * reference beside it. Needs the `RiskTuning` area's `Read` at that scope.\n *\n * `GET /risk/tuning`, `GET /risk/tuning/{projects|shops}/{id}`\n */\n async retrieveTuning(\n target: RiskTuningTarget = { scope: 'merchant' },\n options?: RequestExtras,\n ): Promise<RiskTuningResponse> {\n return this.request('GET', riskTuningPath(target), options);\n }\n\n /**\n * Replace one scope's tuning. A shop or project needs the area's `Edit`, the\n * merchant-wide tuning its `Write`. A save on top of a newer revision is\n * refused with `IR_16`; a tuning that would leave a reached shop with\n * nothing to score with is refused with `IR_06`.\n *\n * `PUT /risk/tuning`, `PUT /risk/tuning/{projects|shops}/{id}`\n */\n async updateTuning(\n target: RiskTuningTarget,\n params: RiskTuningUpdateRequest,\n options?: RequestExtras,\n ): Promise<RiskTuningResponse> {\n return this.request('PUT', riskTuningPath(target), { ...options, body: params });\n }\n\n /**\n * Hand every part of one scope's tuning back to what it inherits.\n *\n * `DELETE /risk/tuning?expected_revision=…`\n */\n async resetTuning(\n target: RiskTuningTarget,\n expectedRevision: number,\n options?: RequestExtras,\n ): Promise<RiskTuningResponse> {\n return this.request('DELETE', riskTuningPath(target), {\n ...options,\n query: { expected_revision: expectedRevision },\n });\n }\n\n /**\n * Estimate what a change would do to every shop it reaches, from the\n * evidence stored up to today. Stores, scores and sends nothing; a pair\n * with no usable evidence says why rather than showing a band.\n *\n * `POST /risk/tuning/preview`, `POST /risk/tuning/{projects|shops}/{id}/preview`\n */\n async previewTuning(\n target: RiskTuningTarget,\n adjustments: RiskAdjustments,\n options?: RequestExtras,\n ): Promise<RiskTuningPreviewResponse> {\n return this.request('POST', `${riskTuningPath(target)}/preview`, {\n ...options,\n body: { adjustments },\n });\n }\n}\n\n/** The tuning path below `prefix` that `target` names. */\nexport function riskTuningPath(target: RiskTuningTarget, prefix = ''): string {\n switch (target.scope) {\n case 'merchant':\n return `${prefix}/risk/tuning`;\n case 'project':\n return `${prefix}/risk/tuning/projects/${encodeURIComponent(target.id)}`;\n case 'shop':\n return `${prefix}/risk/tuning/shops/${encodeURIComponent(target.id)}`;\n }\n}\n"]}
1
+ {"version":3,"sources":["/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-TMAJE5P2.cjs","../src/resources/risk.ts"],"names":[],"mappings":"AAAA;ACqBO,IAAM,KAAA,EAAN,MAAW;AAAA,EAChB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlD,MAAM,QAAA,CAAS,OAAA,EAAgD;AAC7D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,OAAA,EAAS,OAAO,CAAA;AAAA,EAC7C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,YAAA,CAAa,SAAA,EAAmB,OAAA,EAA4C;AAChF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,YAAA,EAAe,kBAAA,CAAmB,SAAS,CAAC,CAAA,CAAA;AACzE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAY+B,EAAA;AAC6B,IAAA;AAC5D,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAc+B,EAAA;AAC0C,IAAA;AACzE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAW+B,EAAA;AACyB,IAAA;AACjD,MAAA;AAC0C,MAAA;AAC9C,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAasC,EAAA;AAC6B,IAAA;AAC5D,MAAA;AACiB,MAAA;AACrB,IAAA;AACH,EAAA;AACF;AAG8E;AACtD,EAAA;AACf,IAAA;AACa,MAAA;AACb,IAAA;AACmE,MAAA;AACnE,IAAA;AACgE,MAAA;AACvE,EAAA;AACF;ADxC4E;AACA;AACA;AACA;AACA","file":"/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-TMAJE5P2.cjs","sourcesContent":[null,"import type {\n MerchantRisk,\n RiskAdjustments,\n RiskTuningPreviewResponse,\n RiskTuningResponse,\n RiskTuningTarget,\n RiskTuningUpdateRequest,\n ShopRisk,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * Stored shop risk indexes, per connector.\n *\n * Both reads return snapshots and never score on demand, so `computed_at` is\n * the age of the answer rather than the time of the call.\n *\n * The caller's own scope is what bounds the answer, and it is enforced\n * server-side: a profile-scoped role, or an API key pinned to one shop, gets\n * that shop from both endpoints and cannot read or enumerate a sibling's.\n */\nexport class Risk {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Every shop's stored risk for the caller's merchant, with the worst band\n * across them.\n *\n * `GET /risk`\n */\n async retrieve(options?: RequestExtras): Promise<MerchantRisk> {\n return this.request('GET', '/risk', options);\n }\n\n /**\n * One shop's stored risk index per connector.\n *\n * `GET /risk/shops/{profileId}`\n */\n async retrieveShop(profileId: string, options?: RequestExtras): Promise<ShopRisk> {\n return this.request('GET', `/risk/shops/${encodeURIComponent(profileId)}`, options);\n }\n\n /**\n * One scope's tuning of the merchant's own, adjusted risk assessment: what\n * it sets, what applies there and where each part comes from, and DeloPay's\n * reference beside it. Needs the `RiskTuning` area's `Read` at that scope.\n *\n * `GET /risk/tuning`, `GET /risk/tuning/{projects|shops}/{id}`\n */\n async retrieveTuning(\n target: RiskTuningTarget = { scope: 'merchant' },\n options?: RequestExtras,\n ): Promise<RiskTuningResponse> {\n return this.request('GET', riskTuningPath(target), options);\n }\n\n /**\n * Replace one scope's tuning. A shop or project needs the area's `Edit`, the\n * merchant-wide tuning its `Write`. A save on top of a newer revision is\n * refused with `IR_16`; a tuning that would leave a reached shop with\n * nothing to score with is refused with `IR_06`.\n *\n * `PUT /risk/tuning`, `PUT /risk/tuning/{projects|shops}/{id}`\n */\n async updateTuning(\n target: RiskTuningTarget,\n params: RiskTuningUpdateRequest,\n options?: RequestExtras,\n ): Promise<RiskTuningResponse> {\n return this.request('PUT', riskTuningPath(target), { ...options, body: params });\n }\n\n /**\n * Hand every part of one scope's tuning back to what it inherits.\n *\n * `DELETE /risk/tuning?expected_revision=…`\n */\n async resetTuning(\n target: RiskTuningTarget,\n expectedRevision: number,\n options?: RequestExtras,\n ): Promise<RiskTuningResponse> {\n return this.request('DELETE', riskTuningPath(target), {\n ...options,\n query: { expected_revision: expectedRevision },\n });\n }\n\n /**\n * Estimate what a change would do to every shop it reaches, from the\n * evidence stored up to today. Stores, scores and sends nothing; a pair\n * with no usable evidence says why rather than showing a band.\n *\n * `POST /risk/tuning/preview`, `POST /risk/tuning/{projects|shops}/{id}/preview`\n */\n async previewTuning(\n target: RiskTuningTarget,\n adjustments: RiskAdjustments,\n options?: RequestExtras,\n ): Promise<RiskTuningPreviewResponse> {\n return this.request('POST', `${riskTuningPath(target)}/preview`, {\n ...options,\n body: { adjustments },\n });\n }\n}\n\n/** The tuning path below `prefix` that `target` names. */\nexport function riskTuningPath(target: RiskTuningTarget, prefix = ''): string {\n switch (target.scope) {\n case 'merchant':\n return `${prefix}/risk/tuning`;\n case 'project':\n return `${prefix}/risk/tuning/projects/${encodeURIComponent(target.id)}`;\n case 'shop':\n return `${prefix}/risk/tuning/shops/${encodeURIComponent(target.id)}`;\n }\n}\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,IAAA;AACV,MAAA;AAClC,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA0BqF,EAAA;AACnB,IAAA;AACP,IAAA;AACF,IAAA;AACzD,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBiE,EAAA;AAChB,IAAA;AACZ,MAAA;AAClC,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQsE,EAAA;AACnB,IAAA;AACd,MAAA;AAClC,IAAA;AACH,EAAA;AACF;AD1B4D;AACA;AACA;AACA","file":"/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-TNIJ6OSH.cjs","sourcesContent":[null,"import type {\n ProjectCreateRequest,\n ProjectResponse,\n ProjectUpdateRequest,\n ProjectStatsResponse,\n ProjectLimitsResponse,\n MerchantOverviewResponse,\n StatsPeriod,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * Create and manage projects — optional grouping layers that contain one or\n * more shops. Projects can be nested up to the merchant's maximum depth\n * ({@link Projects.limits}); a project filter anywhere in the API includes the\n * shops of the project's sub-projects.\n */\nexport class Projects {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Create a new project under a merchant account. Pass `parent_id` to create\n * it as a sub-project; past the merchant's maximum depth it is refused with\n * `400` and code `PR_01` (`project_depth_exceeded`).\n *\n * @param params - Project creation parameters (name, description, parent).\n * @param merchantId - The merchant account ID that owns this project.\n * @returns The created project.\n *\n * @example\n * ```typescript\n * const eu = await delopay.projects.create({ project_name: 'EU Stores' }, 'merch_123');\n * const de = await delopay.projects.create(\n * { project_name: 'Germany', parent_id: eu.id },\n * 'merch_123',\n * );\n * ```\n */\n async create(params: ProjectCreateRequest, merchantId: string): Promise<ProjectResponse> {\n return this.request('POST', '/projects', {\n body: params,\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Retrieve a project by its ID.\n *\n * @param projectId - The unique project ID.\n * @param merchantId - Optional merchant scope. When provided, sent as\n * `?merchant_id=…` — required by dashboards that authenticate with a JWT\n * spanning multiple merchants and need to disambiguate which one this\n * call applies to. API-key callers can omit it.\n * @returns The project.\n */\n async retrieve(projectId: string, merchantId?: string): Promise<ProjectResponse> {\n const path = `/projects/${encodeURIComponent(projectId)}`;\n if (merchantId === undefined) return this.request('GET', path);\n return this.request('GET', path, { query: { merchant_id: merchantId } });\n }\n\n /**\n * Update a project's details, or move it with `parent_id` (omitted keeps the\n * parent, `null` makes it a top-level project, an id moves it under that\n * project). A move is refused with `PR_01` when the moved subtree would\n * exceed the maximum depth and with `PR_02` (`project_cycle`) when the target\n * is the project itself or one of its sub-projects. When the merchant's\n * project tree changed while the move was being checked, it is refused with\n * `409` and code `PR_05` (`project_tree_changed`): read the tree again and\n * retry.\n *\n * @param projectId - The project ID to update.\n * @param params - Fields to update.\n * @param merchantId - Optional merchant scope. See {@link Projects.retrieve}.\n * @returns The updated project.\n */\n async update(\n projectId: string,\n params: ProjectUpdateRequest,\n merchantId?: string,\n options?: RequestExtras,\n ): Promise<ProjectResponse> {\n const path = `/projects/${encodeURIComponent(projectId)}`;\n if (merchantId === undefined) return this.request('PUT', path, { body: params, ...options });\n return this.request('PUT', path, {\n body: params,\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * Delete a project.\n *\n * @param projectId - The project ID to delete.\n * Refused with `409` and code `PR_03` (`project_not_empty`) while the\n * project still has sub-projects or shops; move or delete those first.\n *\n * @param merchantId - Optional merchant scope. See {@link Projects.retrieve}.\n * @returns The deleted project object.\n */\n async delete(projectId: string, merchantId?: string): Promise<ProjectResponse> {\n const path = `/projects/${encodeURIComponent(projectId)}`;\n if (merchantId === undefined) return this.request('DELETE', path);\n return this.request('DELETE', path, { query: { merchant_id: merchantId } });\n }\n\n /**\n * List all projects for a merchant, at every level, as a flat array. Rebuild\n * the tree from each project's `parent_id`; `level`, `path`,\n * `child_project_count` and `direct_shop_count` are filled in for each one.\n *\n * @param merchantId - The merchant account ID.\n * @returns Array of projects.\n */\n async list(merchantId: string): Promise<ProjectResponse[]> {\n return this.request('GET', '/projects/list', {\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Get aggregate payment statistics across all projects for a merchant.\n *\n * Each project's figures cover its whole subtree (its own shops and the\n * shops of its sub-projects); `projects[].direct` holds the figures for the\n * project's own shops only, and `projects[].shops[]` lists only those. The\n * merchant totals count each shop once.\n *\n * The response's flat `shops[]` array holds every shop, including shops that\n * belong to no project — those are absent from `projects[].shops[]`, so look\n * a single shop up in `shops[]`. Requires `MerchantAccountRead`; a\n * shop-scoped user should call {@link Shops.stats} instead.\n *\n * @param merchantId - The merchant account ID.\n * @param period - Window in days, or `'all'` for an all-time total.\n * Omitted means the server default of 30 days.\n * @returns Project statistics.\n *\n * @example\n * ```typescript\n * const stats = await delopay.projects.stats('merch_123', 'all');\n * const shop = stats.shops.find((s) => s.shop_id === 'pro_1');\n * ```\n */\n async stats(merchantId: string, period?: StatsPeriod): Promise<ProjectStatsResponse> {\n const query: Record<string, string> = { merchant_id: merchantId };\n if (period !== undefined) query['period'] = String(period);\n return this.request('GET', '/projects/stats', { query });\n }\n\n /**\n * Get the project-depth limit that applies to a merchant: the maximum number\n * of project levels, where that limit comes from, and how deep the\n * merchant's tree currently is. Use it to tell whether a project can take a\n * sub-project (`project.level < max_depth`) before offering the action.\n *\n * @param merchantId - The merchant account ID.\n * @returns The merchant's project limits.\n *\n * @example\n * ```typescript\n * const { max_depth } = await delopay.projects.limits('merch_123');\n * const canNest = project.level < max_depth;\n * ```\n */\n async limits(merchantId: string): Promise<ProjectLimitsResponse> {\n return this.request('GET', '/projects/limits', {\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Get a high-level overview (volume, counts, top connectors) for a merchant.\n *\n * @param merchantId - The merchant account ID.\n * @returns Merchant overview data.\n */\n async overview(merchantId: string): Promise<MerchantOverviewResponse> {\n return this.request('GET', '/projects/overview', {\n query: { merchant_id: merchantId },\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-TNIJ6OSH.cjs","../src/resources/projects.ts"],"names":[],"mappings":"AAAA;ACiBO,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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAoBlD,MAAM,MAAA,CAAO,MAAA,EAA8B,UAAA,EAA8C;AACvF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,WAAA,EAAa;AAAA,MACvC,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,EAAE,WAAA,EAAa,WAAW;AAAA,IACnC,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,MAAM,QAAA,CAAS,SAAA,EAAmB,UAAA,EAA+C;AAC/E,IAAA,MAAM,KAAA,EAAO,CAAA,UAAA,EAAa,kBAAA,CAAmB,SAAS,CAAC,CAAA,CAAA;AACE,IAAA;AACb,IAAA;AAC9C,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsB4B,EAAA;AAC6B,IAAA;AACE,IAAA;AACxB,IAAA;AACzB,MAAA;AAC2B,MAAA;AAC9B,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAY+E,EAAA;AACtB,IAAA;AACL,IAAA;AACH,IAAA;AACjD,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAU2D,EAAA;AACZ,IAAA;AACV,MAAA;AAClC,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA0BqF,EAAA;AACnB,IAAA;AACP,IAAA;AACF,IAAA;AACzD,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBiE,EAAA;AAChB,IAAA;AACZ,MAAA;AAClC,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQsE,EAAA;AACnB,IAAA;AACd,MAAA;AAClC,IAAA;AACH,EAAA;AACF;AD1B4D;AACA;AACA;AACA","file":"/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-TNIJ6OSH.cjs","sourcesContent":[null,"import type {\n ProjectCreateRequest,\n ProjectResponse,\n ProjectUpdateRequest,\n ProjectStatsResponse,\n ProjectLimitsResponse,\n MerchantOverviewResponse,\n StatsPeriod,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * Create and manage projects — optional grouping layers that contain one or\n * more shops. Projects can be nested up to the merchant's maximum depth\n * ({@link Projects.limits}); a project filter anywhere in the API includes the\n * shops of the project's sub-projects.\n */\nexport class Projects {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Create a new project under a merchant account. Pass `parent_id` to create\n * it as a sub-project; past the merchant's maximum depth it is refused with\n * `400` and code `PR_01` (`project_depth_exceeded`).\n *\n * @param params - Project creation parameters (name, description, parent).\n * @param merchantId - The merchant account ID that owns this project.\n * @returns The created project.\n *\n * @example\n * ```typescript\n * const eu = await delopay.projects.create({ project_name: 'EU Stores' }, 'merch_123');\n * const de = await delopay.projects.create(\n * { project_name: 'Germany', parent_id: eu.id },\n * 'merch_123',\n * );\n * ```\n */\n async create(params: ProjectCreateRequest, merchantId: string): Promise<ProjectResponse> {\n return this.request('POST', '/projects', {\n body: params,\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Retrieve a project by its ID.\n *\n * @param projectId - The unique project ID.\n * @param merchantId - Optional merchant scope. When provided, sent as\n * `?merchant_id=…` — required by dashboards that authenticate with a JWT\n * spanning multiple merchants and need to disambiguate which one this\n * call applies to. API-key callers can omit it.\n * @returns The project.\n */\n async retrieve(projectId: string, merchantId?: string): Promise<ProjectResponse> {\n const path = `/projects/${encodeURIComponent(projectId)}`;\n if (merchantId === undefined) return this.request('GET', path);\n return this.request('GET', path, { query: { merchant_id: merchantId } });\n }\n\n /**\n * Update a project's details, or move it with `parent_id` (omitted keeps the\n * parent, `null` makes it a top-level project, an id moves it under that\n * project). A move is refused with `PR_01` when the moved subtree would\n * exceed the maximum depth and with `PR_02` (`project_cycle`) when the target\n * is the project itself or one of its sub-projects. When the merchant's\n * project tree changed while the move was being checked, it is refused with\n * `409` and code `PR_05` (`project_tree_changed`): read the tree again and\n * retry.\n *\n * @param projectId - The project ID to update.\n * @param params - Fields to update.\n * @param merchantId - Optional merchant scope. See {@link Projects.retrieve}.\n * @returns The updated project.\n */\n async update(\n projectId: string,\n params: ProjectUpdateRequest,\n merchantId?: string,\n options?: RequestExtras,\n ): Promise<ProjectResponse> {\n const path = `/projects/${encodeURIComponent(projectId)}`;\n if (merchantId === undefined) return this.request('PUT', path, { body: params, ...options });\n return this.request('PUT', path, {\n body: params,\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * Delete a project.\n *\n * @param projectId - The project ID to delete.\n * Refused with `409` and code `PR_03` (`project_not_empty`) while the\n * project still has sub-projects or shops; move or delete those first.\n *\n * @param merchantId - Optional merchant scope. See {@link Projects.retrieve}.\n * @returns The deleted project object.\n */\n async delete(projectId: string, merchantId?: string): Promise<ProjectResponse> {\n const path = `/projects/${encodeURIComponent(projectId)}`;\n if (merchantId === undefined) return this.request('DELETE', path);\n return this.request('DELETE', path, { query: { merchant_id: merchantId } });\n }\n\n /**\n * List all projects for a merchant, at every level, as a flat array. Rebuild\n * the tree from each project's `parent_id`; `level`, `path`,\n * `child_project_count` and `direct_shop_count` are filled in for each one.\n *\n * @param merchantId - The merchant account ID.\n * @returns Array of projects.\n */\n async list(merchantId: string): Promise<ProjectResponse[]> {\n return this.request('GET', '/projects/list', {\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Get aggregate payment statistics across all projects for a merchant.\n *\n * Each project's figures cover its whole subtree (its own shops and the\n * shops of its sub-projects); `projects[].direct` holds the figures for the\n * project's own shops only, and `projects[].shops[]` lists only those. The\n * merchant totals count each shop once.\n *\n * The response's flat `shops[]` array holds every shop, including shops that\n * belong to no project — those are absent from `projects[].shops[]`, so look\n * a single shop up in `shops[]`. Requires `MerchantAccountRead`; a\n * shop-scoped user should call {@link Shops.stats} instead.\n *\n * @param merchantId - The merchant account ID.\n * @param period - Window in days, or `'all'` for an all-time total.\n * Omitted means the server default of 30 days.\n * @returns Project statistics.\n *\n * @example\n * ```typescript\n * const stats = await delopay.projects.stats('merch_123', 'all');\n * const shop = stats.shops.find((s) => s.shop_id === 'pro_1');\n * ```\n */\n async stats(merchantId: string, period?: StatsPeriod): Promise<ProjectStatsResponse> {\n const query: Record<string, string> = { merchant_id: merchantId };\n if (period !== undefined) query['period'] = String(period);\n return this.request('GET', '/projects/stats', { query });\n }\n\n /**\n * Get the project-depth limit that applies to a merchant: the maximum number\n * of project levels, where that limit comes from, and how deep the\n * merchant's tree currently is. Use it to tell whether a project can take a\n * sub-project (`project.level < max_depth`) before offering the action.\n *\n * @param merchantId - The merchant account ID.\n * @returns The merchant's project limits.\n *\n * @example\n * ```typescript\n * const { max_depth } = await delopay.projects.limits('merch_123');\n * const canNest = project.level < max_depth;\n * ```\n */\n async limits(merchantId: string): Promise<ProjectLimitsResponse> {\n return this.request('GET', '/projects/limits', {\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Get a high-level overview (volume, counts, top connectors) for a merchant.\n *\n * @param merchantId - The merchant account ID.\n * @returns Merchant overview data.\n */\n async overview(merchantId: string): Promise<MerchantOverviewResponse> {\n return this.request('GET', '/projects/overview', {\n query: { merchant_id: merchantId },\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-UGSM7RJ2.cjs","../src/resources/stripeConnect.ts"],"names":[],"mappings":"AAAA;ACQO,IAAM,cAAA,EAAN,MAAoB;AAAA,EACzB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,aAAA,CAAc,MAAA,EAA4E;AAC9F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,uCAAA,EAAyC,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACvF;AAAA,EAEA,MAAM,iBAAA,CAAkB,MAAA,EAAsE;AAC5F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,4CAAA,EAA8C,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC5F;AAAA;AAAA;AAAA,EAKA,MAAM,YAAA,CAAa,MAAA,EAAmE;AACpF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,kCAAA,EAAoC,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAClF;AAAA;AAAA,EAGA,MAAM,cAAA,CAAe,MAAA,EAAmE;AACtF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,4BAAA,EAA8B,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC5E;AAAA;AAAA,EAGA,MAAM,eAAA,CAAgB,MAAA,EAAmE;AACvF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,yCAAA,EAA2C,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACzF;AACF,CAAA;ADVA;AACA;AACE;AACF,sCAAC","file":"/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-UGSM7RJ2.cjs","sourcesContent":[null,"import type {\n StripeConnectAccountRequest,\n StripeConnectAccountResponse,\n StripeConnectLinkRequest,\n StripeConnectLinkResponse,\n} from '../types';\nimport type { RequestFn } from '../client';\n\nexport class StripeConnect {\n constructor(private readonly request: RequestFn) {}\n\n async createAccount(params: StripeConnectAccountRequest): Promise<StripeConnectAccountResponse> {\n return this.request('POST', '/connector-onboarding/stripe/accounts', { body: params });\n }\n\n async createAccountLink(params: StripeConnectLinkRequest): Promise<StripeConnectLinkResponse> {\n return this.request('POST', '/connector-onboarding/stripe/account-links', { body: params });\n }\n\n // --- Generic connector onboarding (Task 4.11) ---\n\n /** Get onboarding action URL. `POST /connector-onboarding/action-url` */\n async getActionUrl(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/connector-onboarding/action-url', { body: params });\n }\n\n /** Sync onboarding status. `POST /connector-onboarding/sync` */\n async syncOnboarding(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/connector-onboarding/sync', { body: params });\n }\n\n /** Reset tracking ID. `POST /connector-onboarding/reset-tracking-id` */\n async resetTrackingId(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/connector-onboarding/reset-tracking-id', { body: params });\n }\n}\n"]}
1
+ {"version":3,"sources":["/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-UGSM7RJ2.cjs","../src/resources/stripeConnect.ts"],"names":[],"mappings":"AAAA;ACQO,IAAM,cAAA,EAAN,MAAoB;AAAA,EACzB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,aAAA,CAAc,MAAA,EAA4E;AAC9F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,uCAAA,EAAyC,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACvF;AAAA,EAEA,MAAM,iBAAA,CAAkB,MAAA,EAAsE;AAC5F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,4CAAA,EAA8C,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC5F;AAAA;AAAA;AAAA,EAKA,MAAM,YAAA,CAAa,MAAA,EAAmE;AACpF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,kCAAA,EAAoC,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAClF;AAAA;AAAA,EAGA,MAAM,cAAA,CAAe,MAAA,EAAmE;AACtF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,4BAAA,EAA8B,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC5E;AAAA;AAAA,EAGA,MAAM,eAAA,CAAgB,MAAA,EAAmE;AACvF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,yCAAA,EAA2C,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACzF;AACF,CAAA;ADVA;AACA;AACE;AACF,sCAAC","file":"/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-UGSM7RJ2.cjs","sourcesContent":[null,"import type {\n StripeConnectAccountRequest,\n StripeConnectAccountResponse,\n StripeConnectLinkRequest,\n StripeConnectLinkResponse,\n} from '../types';\nimport type { RequestFn } from '../client';\n\nexport class StripeConnect {\n constructor(private readonly request: RequestFn) {}\n\n async createAccount(params: StripeConnectAccountRequest): Promise<StripeConnectAccountResponse> {\n return this.request('POST', '/connector-onboarding/stripe/accounts', { body: params });\n }\n\n async createAccountLink(params: StripeConnectLinkRequest): Promise<StripeConnectLinkResponse> {\n return this.request('POST', '/connector-onboarding/stripe/account-links', { body: params });\n }\n\n // --- Generic connector onboarding (Task 4.11) ---\n\n /** Get onboarding action URL. `POST /connector-onboarding/action-url` */\n async getActionUrl(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/connector-onboarding/action-url', { body: params });\n }\n\n /** Sync onboarding status. `POST /connector-onboarding/sync` */\n async syncOnboarding(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/connector-onboarding/sync', { body: params });\n }\n\n /** Reset tracking ID. `POST /connector-onboarding/reset-tracking-id` */\n async resetTrackingId(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/connector-onboarding/reset-tracking-id', { body: params });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-UKLZAOLW.cjs","../src/resources/checkoutMethods.ts"],"names":[],"mappings":"AAAA;AC8BO,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,QAAA,CACJ,UAAA,EACA,SAAA,EACA,OAAA,EAA2C,CAAC,CAAA,EAC5C,OAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,WAAA,CAAY,SAAA,EAAW,MAAA,CAAO,WAAW,CAAA,EAAG;AAAA,MACrE,KAAA,EAAO,EAAE,WAAA,EAAa,WAAW,CAAA;AAAA,MACjC,GAAG;AAAA,IACL,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,OAAA,CACJ,UAAA,EACA,SAAA,EACA,OAAA,EAA2C,C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AACV,MAAA;AACqB,MAAA;AACG,MAAA;AAC1B,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaE,EAAA;AAG2B,IAAA;AACH,MAAA;AACvB,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUE,EAAA;AAK2B,IAAA;AACH,MAAA;AACtB,MAAA;AACD,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQE,EAAA;AAIoB,IAAA;AACI,MAAA;AACvB,IAAA;AACH,EAAA;AACF;AAEwC;AACzB,EAAA;AACU,EAAA;AACzB;AAEwC;AACzB,EAAA;AACU,EAAA;AACzB;ADpGgC;AACA;AACA;AACA","file":"/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-UKLZAOLW.cjs","sourcesContent":[null,"import type {\n CheckoutAccountVisibilityRequest,\n CheckoutAccountVisibilityResponse,\n CheckoutEntriesResponse,\n CheckoutEntriesUpdateRequest,\n CheckoutMethodsAvailabilityParams,\n CheckoutMethodsAvailabilityResponse,\n CheckoutMethodsChildrenParams,\n CheckoutMethodsChildrenResponse,\n CheckoutMethodsEnvironmentParams,\n CheckoutMethodsResetResponse,\n CheckoutMethodsResponse,\n CheckoutMethodsUpdateRequest,\n ConnectorCoverageResponse,\n CheckoutPaymentMethodOptionsResponse,\n CheckoutRedirectRulesTestRequest,\n CheckoutRedirectRulesTestResponse,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * A shop's payment-method layout for the hosted checkout: the express strip,\n * the main list, the \"other payment methods\" list, and each item's overrides\n * (text, translations, icon, look, open target, visibility). One document per\n * shop (business profile), owned by the shop rather than by each connector\n * account. Until a shop saves one, the router derives a layout from the\n * shop's connector accounts and reports `source: 'derived'`.\n *\n * Dashboard JWT (`CheckoutMethods` read / write) or an admin key.\n */\nexport class CheckoutMethods {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The shop's layout (stored, or derived from its accounts) and every item\n * it may place. Live's by default; `environment: 'test'` reads the Test\n * checkout's, used by payments with `test_mode: true`, which follows Live's\n * (`follows_live`) until its first save.\n * `GET /checkout-methods/{profile_id}` (`/test`)\n */\n async retrieve(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('GET', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * The same document as {@link retrieve}, on the route that stays open to a\n * reader of the checkout's appearance while the role's payment-data\n * visibility is restricted.\n * `GET /checkout-methods/{profile_id}/preview` (`/test/preview`)\n */\n async preview(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('GET', `${methodsPath(profileId, params.environment)}/preview`, {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * Replace the layout of one environment. The router refuses an express\n * item that does not draw its own button, more than two rows of two in the\n * express strip, a title without text, or an item no account of the shop\n * offers. Pass `options.headers` with the `If-Match` of the version read to\n * have a save over a newer change refused.\n * `PUT /checkout-methods/{profile_id}` (`/test`)\n */\n async update(\n merchantId: string,\n profileId: string,\n body: CheckoutMethodsUpdateRequest,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('PUT', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n body,\n ...options,\n });\n }\n\n /**\n * For a buyer in `country` paying `amount` `currency`: which placeable\n * items they are offered and every reason they are not, asked the way the\n * hosted checkout asks; and how each smart block of the layout evaluates\n * for them (`smart_blocks`). `test_mode` asks the Test environment.\n * `GET /checkout-methods/{profile_id}/availability`\n */\n async availability(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsAvailabilityParams,\n ): Promise<CheckoutMethodsAvailabilityResponse> {\n const { test_mode, ...order } = params;\n const query = { merchant_id: merchantId, ...order };\n if (test_mode) {\n return this.request(\n 'GET',\n `/checkout-methods/${encodeURIComponent(profileId)}/test/availability`,\n { query },\n );\n }\n return this.request('GET', `/checkout-methods/${encodeURIComponent(profileId)}/availability`, {\n query,\n });\n }\n\n /**\n * What DeloPay's connector information says about a country, for any shop:\n * each provider's method, and whether the provider's list of countries names\n * it. A method with no list is `unknown`, which is no statement either way.\n * Nothing here comes from a merchant's accounts, and it is no promise about\n * what a shop's checkout offers. A role that may not read provider names gets\n * none. `GET /checkout-methods/coverage`\n *\n * @param country The buyer's country, ISO 3166-1 alpha-2.\n */\n async coverage(country: string): Promise<ConnectorCoverageResponse> {\n return this.request('GET', '/checkout-methods/coverage', { query: { country } });\n }\n\n /**\n * What DeloPay confirms beneath each item the shop can place: the card\n * networks the card form's accounts accept, and the methods or coins a\n * provider's page offers, per account, with source and freshness. A\n * provider that answers only per order reports `context_required` until\n * `currency` and `amount` are given. A layout item's `children` narrows\n * these lists and never adds to them.\n * `GET /checkout-methods/{profile_id}/children` (`/test/children` for Test)\n */\n async children(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsChildrenParams = {},\n ): Promise<CheckoutMethodsChildrenResponse> {\n const { environment, ...order } = params;\n const query = { merchant_id: merchantId, ...order };\n if (environment === 'test') {\n return this.request(\n 'GET',\n `/checkout-methods/${encodeURIComponent(profileId)}/test/children`,\n {\n query,\n },\n );\n }\n return this.request('GET', `/checkout-methods/${encodeURIComponent(profileId)}/children`, {\n query,\n });\n }\n\n /**\n * Delete the stored layout of one environment; Live is back on the derived\n * layout, Test follows Live again.\n * `DELETE /checkout-methods/{profile_id}` (`/test`)\n */\n async reset(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResetResponse> {\n return this.request('DELETE', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * The methods a payment of the shop can be limited to through\n * `allowed_payment_method_types`, in the order its checkout places them, for\n * one environment. Names methods only, never a processor or account.\n * `GET /checkout-methods/{profile_id}/payment-method-options` (`/test/…`)\n */\n async paymentMethodOptions(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutPaymentMethodOptionsResponse> {\n return this.request(\n 'GET',\n `${methodsPath(profileId, params.environment)}/payment-method-options`,\n { query: { merchant_id: merchantId }, ...options },\n );\n }\n\n /**\n * What the given redirect rules, saved or not, decide for the buyer the\n * body describes, and how each rule fared. The buyer's options are the\n * shop's layout after its availability rules and the cap states; nothing is\n * stored. Live's checkout by default, `environment: 'test'` for the Test\n * checkout's. Refused with 422 when the rules are malformed or name an\n * account that is not the shop's, and with 403 when they name one the\n * caller may not read.\n * `POST /checkout-methods/{profile_id}/redirect-rules/test` (`/test/…`)\n */\n async testRedirectRules(\n merchantId: string,\n profileId: string,\n body: CheckoutRedirectRulesTestRequest,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutRedirectRulesTestResponse> {\n return this.request(\n 'POST',\n `${methodsPath(profileId, params.environment)}/redirect-rules/test`,\n { query: { merchant_id: merchantId }, body, ...options },\n );\n }\n\n /**\n * Hide a connector account from the checkout of the named environments, or\n * show it again. Its items stay in the layout, listed with\n * `account_enabled: false`; routing and credentials are not changed.\n * `PUT /checkout-methods/{profile_id}/accounts/{merchant_connector_id}/visibility`\n */\n async setAccountVisibility(\n merchantId: string,\n profileId: string,\n merchantConnectorId: string,\n body: CheckoutAccountVisibilityRequest,\n options?: RequestExtras,\n ): Promise<CheckoutAccountVisibilityResponse> {\n return this.request(\n 'PUT',\n `/checkout-methods/${encodeURIComponent(profileId)}/accounts/${encodeURIComponent(merchantConnectorId)}/visibility`,\n { query: { merchant_id: merchantId }, body, ...options },\n );\n }\n\n /**\n * The shop's checkout entries: separate ways into the hosted checkout of\n * one payment (`?entry=<key>`), such as a card form embedded in the shop's\n * page, a \"Pay with crypto\" checkout and an \"Other payment methods\"\n * checkout, each in its own named look. Live's by default; `environment:\n * 'test'` reads the Test checkout's, used by payments with `test_mode: true`.\n * Refused (403) to a caller that may not see or change every method.\n * `GET /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async entries(\n merchantId: string,\n profileId: string,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('GET', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Replace the shop's entries of one environment. Refused when a key is\n * malformed or used twice, when an entry lists a method, group or card form\n * that environment's layout does not place, or when a card entry's\n * `other_entry` is not another `methods` entry.\n * `PUT /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async updateEntries(\n merchantId: string,\n profileId: string,\n body: CheckoutEntriesUpdateRequest,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('PUT', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n body,\n });\n }\n\n /**\n * Delete every entry of one environment. A link that still names an entry\n * then offers nothing.\n * `DELETE /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async clearEntries(\n merchantId: string,\n profileId: string,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('DELETE', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n });\n }\n}\n\nfunction methodsPath(profileId: string, environment: 'live' | 'test' | undefined): string {\n const shop = `/checkout-methods/${encodeURIComponent(profileId)}`;\n return environment === 'test' ? `${shop}/test` : shop;\n}\n\nfunction entriesPath(profileId: string, environment: 'live' | 'test' | undefined): string {\n const shop = `/checkout-methods/${encodeURIComponent(profileId)}`;\n return environment === 'test' ? `${shop}/test/entries` : `${shop}/entries`;\n}\n"]}
1
+ {"version":3,"sources":["/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-UKLZAOLW.cjs","../src/resources/checkoutMethods.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AAA;AAaE,EAAA;AAGwB,IAAA;AACR,IAAA;AACY,IAAA;AACd,MAAA;AACV,QAAA;AACqB,QAAA;AACrB,QAAA;AACE,UAAA;AACF,QAAA;AACF,MAAA;AACF,IAAA;AAC2B,IAAA;AACzB,MAAA;AACD,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASE,EAAA;AAIoB,IAAA;AACI,MAAA;AACnB,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASE,EAAA;AAKY,IAAA;AACV,MAAA;AAC0B,MAAA;AACF,MAAA;AAC1B,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaE,EAAA;AAMY,IAAA;AACV,MAAA;AAC0B,MAAA;AACF,MAAA;AAC1B,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASE,EAAA;AAMY,IAAA;AACV,MAAA;AACqB,MAAA;AACG,MAAA;AAC1B,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaE,EAAA;AAG2B,IAAA;AACH,MAAA;AACvB,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUE,EAAA;AAK2B,IAAA;AACH,MAAA;AACtB,MAAA;AACD,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQE,EAAA;AAIoB,IAAA;AACI,MAAA;AACvB,IAAA;AACH,EAAA;AACF;AAEwC;AACzB,EAAA;AACU,EAAA;AACzB;AAEwC;AACzB,EAAA;AACU,EAAA;AACzB;ADpGgC;AACA;AACA;AACA","file":"/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-UKLZAOLW.cjs","sourcesContent":[null,"import type {\n CheckoutAccountVisibilityRequest,\n CheckoutAccountVisibilityResponse,\n CheckoutEntriesResponse,\n CheckoutEntriesUpdateRequest,\n CheckoutMethodsAvailabilityParams,\n CheckoutMethodsAvailabilityResponse,\n CheckoutMethodsChildrenParams,\n CheckoutMethodsChildrenResponse,\n CheckoutMethodsEnvironmentParams,\n CheckoutMethodsResetResponse,\n CheckoutMethodsResponse,\n CheckoutMethodsUpdateRequest,\n ConnectorCoverageResponse,\n CheckoutPaymentMethodOptionsResponse,\n CheckoutRedirectRulesTestRequest,\n CheckoutRedirectRulesTestResponse,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * A shop's payment-method layout for the hosted checkout: the express strip,\n * the main list, the \"other payment methods\" list, and each item's overrides\n * (text, translations, icon, look, open target, visibility). One document per\n * shop (business profile), owned by the shop rather than by each connector\n * account. Until a shop saves one, the router derives a layout from the\n * shop's connector accounts and reports `source: 'derived'`.\n *\n * Dashboard JWT (`CheckoutMethods` read / write) or an admin key.\n */\nexport class CheckoutMethods {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The shop's layout (stored, or derived from its accounts) and every item\n * it may place. Live's by default; `environment: 'test'` reads the Test\n * checkout's, used by payments with `test_mode: true`, which follows Live's\n * (`follows_live`) until its first save.\n * `GET /checkout-methods/{profile_id}` (`/test`)\n */\n async retrieve(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('GET', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * The same document as {@link retrieve}, on the route that stays open to a\n * reader of the checkout's appearance while the role's payment-data\n * visibility is restricted.\n * `GET /checkout-methods/{profile_id}/preview` (`/test/preview`)\n */\n async preview(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('GET', `${methodsPath(profileId, params.environment)}/preview`, {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * Replace the layout of one environment. The router refuses an express\n * item that does not draw its own button, more than two rows of two in the\n * express strip, a title without text, or an item no account of the shop\n * offers. Pass `options.headers` with the `If-Match` of the version read to\n * have a save over a newer change refused.\n * `PUT /checkout-methods/{profile_id}` (`/test`)\n */\n async update(\n merchantId: string,\n profileId: string,\n body: CheckoutMethodsUpdateRequest,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('PUT', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n body,\n ...options,\n });\n }\n\n /**\n * For a buyer in `country` paying `amount` `currency`: which placeable\n * items they are offered and every reason they are not, asked the way the\n * hosted checkout asks; and how each smart block of the layout evaluates\n * for them (`smart_blocks`). `test_mode` asks the Test environment.\n * `GET /checkout-methods/{profile_id}/availability`\n */\n async availability(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsAvailabilityParams,\n ): Promise<CheckoutMethodsAvailabilityResponse> {\n const { test_mode, ...order } = params;\n const query = { merchant_id: merchantId, ...order };\n if (test_mode) {\n return this.request(\n 'GET',\n `/checkout-methods/${encodeURIComponent(profileId)}/test/availability`,\n { query },\n );\n }\n return this.request('GET', `/checkout-methods/${encodeURIComponent(profileId)}/availability`, {\n query,\n });\n }\n\n /**\n * What DeloPay's connector information says about a country, for any shop:\n * each provider's method, and whether the provider's list of countries names\n * it. A method with no list is `unknown`, which is no statement either way.\n * Nothing here comes from a merchant's accounts, and it is no promise about\n * what a shop's checkout offers. A role that may not read provider names gets\n * none. `GET /checkout-methods/coverage`\n *\n * @param country The buyer's country, ISO 3166-1 alpha-2.\n */\n async coverage(country: string): Promise<ConnectorCoverageResponse> {\n return this.request('GET', '/checkout-methods/coverage', { query: { country } });\n }\n\n /**\n * What DeloPay confirms beneath each item the shop can place: the card\n * networks the card form's accounts accept, and the methods or coins a\n * provider's page offers, per account, with source and freshness. A\n * provider that answers only per order reports `context_required` until\n * `currency` and `amount` are given. A layout item's `children` narrows\n * these lists and never adds to them.\n * `GET /checkout-methods/{profile_id}/children` (`/test/children` for Test)\n */\n async children(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsChildrenParams = {},\n ): Promise<CheckoutMethodsChildrenResponse> {\n const { environment, ...order } = params;\n const query = { merchant_id: merchantId, ...order };\n if (environment === 'test') {\n return this.request(\n 'GET',\n `/checkout-methods/${encodeURIComponent(profileId)}/test/children`,\n {\n query,\n },\n );\n }\n return this.request('GET', `/checkout-methods/${encodeURIComponent(profileId)}/children`, {\n query,\n });\n }\n\n /**\n * Delete the stored layout of one environment; Live is back on the derived\n * layout, Test follows Live again.\n * `DELETE /checkout-methods/{profile_id}` (`/test`)\n */\n async reset(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResetResponse> {\n return this.request('DELETE', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * The methods a payment of the shop can be limited to through\n * `allowed_payment_method_types`, in the order its checkout places them, for\n * one environment. Names methods only, never a processor or account.\n * `GET /checkout-methods/{profile_id}/payment-method-options` (`/test/…`)\n */\n async paymentMethodOptions(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutPaymentMethodOptionsResponse> {\n return this.request(\n 'GET',\n `${methodsPath(profileId, params.environment)}/payment-method-options`,\n { query: { merchant_id: merchantId }, ...options },\n );\n }\n\n /**\n * What the given redirect rules, saved or not, decide for the buyer the\n * body describes, and how each rule fared. The buyer's options are the\n * shop's layout after its availability rules and the cap states; nothing is\n * stored. Live's checkout by default, `environment: 'test'` for the Test\n * checkout's. Refused with 422 when the rules are malformed or name an\n * account that is not the shop's, and with 403 when they name one the\n * caller may not read.\n * `POST /checkout-methods/{profile_id}/redirect-rules/test` (`/test/…`)\n */\n async testRedirectRules(\n merchantId: string,\n profileId: string,\n body: CheckoutRedirectRulesTestRequest,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutRedirectRulesTestResponse> {\n return this.request(\n 'POST',\n `${methodsPath(profileId, params.environment)}/redirect-rules/test`,\n { query: { merchant_id: merchantId }, body, ...options },\n );\n }\n\n /**\n * Hide a connector account from the checkout of the named environments, or\n * show it again. Its items stay in the layout, listed with\n * `account_enabled: false`; routing and credentials are not changed.\n * `PUT /checkout-methods/{profile_id}/accounts/{merchant_connector_id}/visibility`\n */\n async setAccountVisibility(\n merchantId: string,\n profileId: string,\n merchantConnectorId: string,\n body: CheckoutAccountVisibilityRequest,\n options?: RequestExtras,\n ): Promise<CheckoutAccountVisibilityResponse> {\n return this.request(\n 'PUT',\n `/checkout-methods/${encodeURIComponent(profileId)}/accounts/${encodeURIComponent(merchantConnectorId)}/visibility`,\n { query: { merchant_id: merchantId }, body, ...options },\n );\n }\n\n /**\n * The shop's checkout entries: separate ways into the hosted checkout of\n * one payment (`?entry=<key>`), such as a card form embedded in the shop's\n * page, a \"Pay with crypto\" checkout and an \"Other payment methods\"\n * checkout, each in its own named look. Live's by default; `environment:\n * 'test'` reads the Test checkout's, used by payments with `test_mode: true`.\n * Refused (403) to a caller that may not see or change every method.\n * `GET /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async entries(\n merchantId: string,\n profileId: string,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('GET', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Replace the shop's entries of one environment. Refused when a key is\n * malformed or used twice, when an entry lists a method, group or card form\n * that environment's layout does not place, or when a card entry's\n * `other_entry` is not another `methods` entry.\n * `PUT /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async updateEntries(\n merchantId: string,\n profileId: string,\n body: CheckoutEntriesUpdateRequest,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('PUT', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n body,\n });\n }\n\n /**\n * Delete every entry of one environment. A link that still names an entry\n * then offers nothing.\n * `DELETE /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async clearEntries(\n merchantId: string,\n profileId: string,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('DELETE', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n });\n }\n}\n\nfunction methodsPath(profileId: string, environment: 'live' | 'test' | undefined): string {\n const shop = `/checkout-methods/${encodeURIComponent(profileId)}`;\n return environment === 'test' ? `${shop}/test` : shop;\n}\n\nfunction entriesPath(profileId: string, environment: 'live' | 'test' | undefined): string {\n const shop = `/checkout-methods/${encodeURIComponent(profileId)}`;\n return environment === 'test' ? `${shop}/test/entries` : `${shop}/entries`;\n}\n"]}
@@ -192,6 +192,32 @@ var Settlement = class {
192
192
  ...options
193
193
  });
194
194
  }
195
+ /**
196
+ * What the payment providers say about one period's money, per connector
197
+ * account and currency: of the payments made in the period, how much the
198
+ * provider still holds, has released into its balance, has paid out to a
199
+ * bank, or says nothing about.
200
+ *
201
+ * Amounts are the payments' gross in their own currency, never converted,
202
+ * so render per bucket and never sum across currencies. A provider that
203
+ * reports no settlement is `unknown`, never available. An amount is `null`
204
+ * where no payment of the bucket carried one, never `0`.
205
+ *
206
+ * Give both `from` and `to`, or neither for the running calendar month.
207
+ *
208
+ * `GET /settlement/provider-holds`
209
+ */
210
+ async providerHolds(params, options) {
211
+ return this.request("GET", "/settlement/provider-holds", {
212
+ query: {
213
+ profile_id: params?.profile_id,
214
+ test_mode: params?.test_mode,
215
+ from: params?.from,
216
+ to: params?.to
217
+ },
218
+ ...options
219
+ });
220
+ }
195
221
  /**
196
222
  * List generated settlement statements, the newest period first unless
197
223
  * `sort_by` says otherwise. Several `payout_status` values match a
@@ -548,4 +574,4 @@ export {
548
574
  statementListQuery,
549
575
  Settlement
550
576
  };
551
- //# sourceMappingURL=chunk-K74UMEU4.js.map
577
+ //# sourceMappingURL=chunk-UQDXXLLT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/settlement.ts"],"sourcesContent":["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 ProviderHoldsRequest,\n ProviderHoldsResponse,\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 SettlementPeriodPreviewParams,\n SettlementPeriodPreviewResponse,\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 * What the payment providers say about one period's money, per connector\n * account and currency: of the payments made in the period, how much the\n * provider still holds, has released into its balance, has paid out to a\n * bank, or says nothing about.\n *\n * Amounts are the payments' gross in their own currency, never converted,\n * so render per bucket and never sum across currencies. A provider that\n * reports no settlement is `unknown`, never available. An amount is `null`\n * where no payment of the bucket carried one, never `0`.\n *\n * Give both `from` and `to`, or neither for the running calendar month.\n *\n * `GET /settlement/provider-holds`\n */\n async providerHolds(\n params?: ProviderHoldsRequest,\n options?: RequestExtras,\n ): Promise<ProviderHoldsResponse> {\n return this.request('GET', '/settlement/provider-holds', {\n query: {\n profile_id: params?.profile_id,\n test_mode: params?.test_mode,\n from: params?.from,\n to: params?.to,\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 * The next six statement periods a value of the `settlement.statement_period`\n * setting would make, before it is saved: for a shop, the rest of its running\n * period and the change at its next boundary. The value is judged as a save\n * would judge it, so a value the account cannot save is refused here too.\n * Writes nothing.\n *\n * `POST /settlement/periods/preview`\n */\n async previewPeriods(\n params: SettlementPeriodPreviewParams,\n options?: RequestExtras,\n ): Promise<SettlementPeriodPreviewResponse> {\n return this.request('POST', '/settlement/periods/preview', {\n body: params,\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"],"mappings":";;;;;AA6DO,SAAS,mBAAmB,QAAgE;AACjG,SAAO;AAAA,IACL;AAAA,MACE,WAAW,OAAO;AAAA,MAClB,YAAY,OAAO;AAAA,MACnB,OAAO,OAAO;AAAA,MACd,QAAQ,OAAO;AAAA,MACf,eAAe,OAAO;AAAA,MACtB,aAAa,OAAO;AAAA,MACpB,WAAW,OAAO;AAAA,MAClB,SAAS,OAAO;AAAA,MAChB,YAAY,OAAO;AAAA,IACrB;AAAA,IACA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andbox.delopay.net";
11
+ var SANDBOX_URL = "https://dashboard.delopay.dev/api";
12
12
  var MAX_RAW_BODY_BYTES = 2048;
13
13
  var MAX_RETRY_AFTER_MS = 3e4;
14
14
  function parseRetryAfter(header) {
@@ -783,4 +783,4 @@ var DelopayCore = class {
783
783
  export {
784
784
  DelopayCore
785
785
  };
786
- //# sourceMappingURL=chunk-H2NGR5JG.js.map
786
+ //# sourceMappingURL=chunk-UUZ5TSEX.js.map