@delopay/sdk 0.501.0 → 0.503.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.
- package/dist/airwallexCard.cjs.map +1 -1
- package/dist/branding.cjs.map +1 -1
- package/dist/cardFormStyles.cjs.map +1 -1
- package/dist/checkoutSession.cjs +2 -2
- package/dist/checkoutSession.cjs.map +1 -1
- package/dist/checkoutSession.js +1 -1
- package/dist/chunk-244VZFFO.cjs.map +1 -1
- package/dist/chunk-2IJRBJXW.cjs.map +1 -1
- package/dist/chunk-34PC72O7.cjs.map +1 -1
- package/dist/chunk-3GBWQWTP.cjs.map +1 -1
- package/dist/chunk-3YBBJT3Y.cjs.map +1 -1
- package/dist/chunk-44QBWVRS.cjs.map +1 -1
- package/dist/chunk-4EKAWNYI.cjs.map +1 -1
- package/dist/chunk-4LN4BR2T.cjs.map +1 -1
- package/dist/chunk-4T4XHPYN.cjs.map +1 -1
- package/dist/chunk-575SNLIT.cjs.map +1 -1
- package/dist/chunk-5CITBN33.cjs.map +1 -1
- package/dist/chunk-5HCKC4HF.cjs.map +1 -1
- package/dist/chunk-5O2JSQYA.cjs.map +1 -1
- package/dist/chunk-5QS67SBO.cjs.map +1 -1
- package/dist/chunk-6EBY2KKL.cjs.map +1 -1
- package/dist/chunk-6LFOM6HV.cjs.map +1 -1
- package/dist/chunk-6LOWE2YI.cjs.map +1 -1
- package/dist/chunk-6LSG5Z4T.cjs.map +1 -1
- package/dist/chunk-6SU2MTN2.cjs.map +1 -1
- package/dist/chunk-6YCDLSIU.cjs.map +1 -1
- package/dist/chunk-75E5WNJG.cjs.map +1 -1
- package/dist/chunk-7JV6VVO7.cjs.map +1 -1
- package/dist/{chunk-TDCB2FQI.js → chunk-7N4OLAWY.js} +32 -1
- package/dist/chunk-7N4OLAWY.js.map +1 -0
- package/dist/chunk-7NKJD5ST.cjs.map +1 -1
- package/dist/chunk-7QZCUXWB.cjs.map +1 -1
- package/dist/chunk-7VXF5D67.cjs.map +1 -1
- package/dist/chunk-ABWAYMN5.cjs.map +1 -1
- package/dist/chunk-ACZ2R47X.cjs.map +1 -1
- package/dist/chunk-AYUYJO3I.cjs.map +1 -1
- package/dist/chunk-BCA3TCGS.cjs.map +1 -1
- package/dist/{chunk-FLQ3K6Y6.js → chunk-BN5SIRFO.js} +2 -2
- package/dist/chunk-BN5SIRFO.js.map +1 -0
- package/dist/chunk-BP6KDQ6I.cjs.map +1 -1
- package/dist/chunk-BRY3W7N3.cjs.map +1 -1
- package/dist/chunk-BT3UAUEV.cjs.map +1 -1
- package/dist/chunk-CCN44NZJ.cjs.map +1 -1
- package/dist/chunk-CR3JBTP3.cjs.map +1 -1
- package/dist/chunk-DJASVBOJ.cjs.map +1 -1
- package/dist/chunk-EEB2HDYL.cjs.map +1 -1
- package/dist/chunk-ENPSUWTS.cjs.map +1 -1
- package/dist/chunk-EQ6P6ZND.cjs.map +1 -1
- package/dist/chunk-EXPWQBI3.cjs.map +1 -1
- package/dist/chunk-EYHSXJMJ.cjs.map +1 -1
- package/dist/chunk-F3I5DOWV.cjs.map +1 -1
- package/dist/chunk-F46K5H3U.cjs.map +1 -1
- package/dist/chunk-F6QJB4XP.cjs.map +1 -1
- package/dist/chunk-F6S3WCCB.cjs.map +1 -1
- package/dist/chunk-FQRC4NJG.cjs.map +1 -1
- package/dist/chunk-FTWGI7UZ.cjs.map +1 -1
- package/dist/chunk-FYISDU2Y.cjs.map +1 -1
- package/dist/chunk-GG52SAHA.cjs.map +1 -1
- package/dist/chunk-GK5FWN4H.cjs.map +1 -1
- package/dist/chunk-GSQN5EOO.cjs.map +1 -1
- package/dist/chunk-GW7IHYXR.cjs.map +1 -1
- package/dist/chunk-GWSVQXEY.cjs.map +1 -1
- package/dist/chunk-HLKFUOAQ.cjs.map +1 -1
- package/dist/chunk-HLYGHP6F.cjs.map +1 -1
- package/dist/chunk-I2W7AO4B.cjs.map +1 -1
- package/dist/chunk-I2XGNALG.cjs.map +1 -1
- package/dist/chunk-IKXGA2Z5.cjs.map +1 -1
- package/dist/chunk-IR2LFKKA.cjs.map +1 -1
- package/dist/{chunk-BX2CT7FR.js → chunk-J3Y6EVBP.js} +84 -1
- package/dist/chunk-J3Y6EVBP.js.map +1 -0
- package/dist/chunk-J4ZB7MU4.cjs.map +1 -1
- package/dist/chunk-J5RPSRBQ.cjs.map +1 -1
- package/dist/chunk-JPPRDMTJ.cjs.map +1 -1
- package/dist/chunk-K5Q2H3VD.cjs.map +1 -1
- package/dist/chunk-KD5Y2YWK.cjs.map +1 -1
- package/dist/chunk-KJDMNF2T.cjs.map +1 -1
- package/dist/chunk-KLONGJCL.cjs.map +1 -1
- package/dist/chunk-LJ2EG6JK.cjs.map +1 -1
- package/dist/chunk-LLYY4TCZ.cjs.map +1 -1
- package/dist/chunk-LYIBTVK6.cjs.map +1 -1
- package/dist/chunk-M3HWE7KT.cjs.map +1 -1
- package/dist/chunk-M3SJHFT4.cjs.map +1 -1
- package/dist/chunk-MLG6NXI6.cjs.map +1 -1
- package/dist/chunk-MYAXAWBQ.cjs.map +1 -1
- package/dist/chunk-NFB3S2E6.cjs.map +1 -1
- package/dist/chunk-NX36HDXE.cjs.map +1 -1
- package/dist/chunk-NYL3BNHR.cjs.map +1 -1
- package/dist/chunk-O4AYHLQX.cjs.map +1 -1
- package/dist/{chunk-HSJABE7X.cjs → chunk-O7SQCN44.cjs} +13 -13
- package/dist/chunk-O7SQCN44.cjs.map +1 -0
- package/dist/chunk-OAEKP665.cjs.map +1 -1
- package/dist/chunk-ODPNVNYE.cjs.map +1 -1
- package/dist/chunk-OG2KJAYD.cjs.map +1 -1
- package/dist/chunk-OYZP6NF6.cjs.map +1 -1
- package/dist/chunk-P4UILJVU.cjs.map +1 -1
- package/dist/chunk-P7DYLUUI.cjs.map +1 -1
- package/dist/chunk-PKAE6AQT.cjs.map +1 -1
- package/dist/chunk-Q7M7DO7M.cjs.map +1 -1
- package/dist/chunk-QKUWFMZP.cjs.map +1 -1
- package/dist/{chunk-IPN7D5PP.js → chunk-QMZWH4LG.js} +3 -3
- package/dist/chunk-QRSA72B3.cjs.map +1 -1
- package/dist/chunk-QYNRNDIY.cjs.map +1 -1
- package/dist/chunk-R4GA6BVP.cjs.map +1 -1
- package/dist/chunk-R5VYSZ3Q.cjs.map +1 -1
- package/dist/{chunk-NULOAF7W.cjs → chunk-RBZZEW2H.cjs} +84 -1
- package/dist/chunk-RBZZEW2H.cjs.map +1 -0
- package/dist/chunk-RHFUXHQN.cjs.map +1 -1
- package/dist/chunk-RHT27R27.cjs.map +1 -1
- package/dist/chunk-RI42IDRR.cjs.map +1 -1
- package/dist/chunk-S77LQWYC.cjs.map +1 -1
- package/dist/chunk-S7SBNOGS.cjs.map +1 -1
- package/dist/chunk-TMAJE5P2.cjs.map +1 -1
- package/dist/chunk-TNIJ6OSH.cjs.map +1 -1
- package/dist/{chunk-IUXCU3DW.cjs → chunk-TZXY7QJB.cjs} +5 -5
- package/dist/chunk-TZXY7QJB.cjs.map +1 -0
- package/dist/chunk-U3JK7NBG.cjs.map +1 -1
- package/dist/chunk-UGSM7RJ2.cjs.map +1 -1
- package/dist/chunk-UKLZAOLW.cjs.map +1 -1
- package/dist/chunk-UTCXNBID.cjs.map +1 -1
- package/dist/chunk-V47G7P6L.cjs.map +1 -1
- package/dist/chunk-VH5A6SMU.cjs.map +1 -1
- package/dist/chunk-VHMH4QMY.cjs.map +1 -1
- package/dist/chunk-VYC7WUM5.cjs.map +1 -1
- package/dist/{chunk-IDY2LP4Q.cjs → chunk-W3HFS5KT.cjs} +3 -3
- package/dist/chunk-W3HFS5KT.cjs.map +1 -0
- package/dist/chunk-W457XUA6.cjs.map +1 -1
- package/dist/{chunk-SAXTZZQL.js → chunk-W4AW52WT.js} +2 -2
- package/dist/chunk-WHDI3TMP.cjs.map +1 -1
- package/dist/chunk-WITCPKNL.cjs.map +1 -1
- package/dist/chunk-WX6NP7UU.cjs.map +1 -1
- package/dist/chunk-XQLRIBVR.cjs.map +1 -1
- package/dist/chunk-Y7LSSRNJ.cjs.map +1 -1
- package/dist/chunk-YK3P5QNZ.cjs.map +1 -1
- package/dist/{chunk-O53VOQK7.cjs → chunk-YRGIXGGW.cjs} +32 -1
- package/dist/chunk-YRGIXGGW.cjs.map +1 -0
- package/dist/chunk-YW4DVKNT.cjs.map +1 -1
- package/dist/chunk-Z7AVB6VI.cjs.map +1 -1
- package/dist/chunk-ZGMIHHGL.cjs.map +1 -1
- package/dist/chunk-ZKPVUCQV.cjs.map +1 -1
- package/dist/chunk-ZUULK36E.cjs.map +1 -1
- package/dist/client.cjs +3 -3
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +2 -2
- package/dist/core.cjs +2 -2
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +8 -0
- package/dist/core.d.ts +8 -0
- package/dist/core.js +1 -1
- package/dist/currencies.cjs.map +1 -1
- package/dist/enigmaCardForm.cjs.map +1 -1
- package/dist/error.cjs.map +1 -1
- package/dist/eventStream.cjs.map +1 -1
- package/dist/exportDownload.cjs.map +1 -1
- package/dist/feeProgram.cjs.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/internal/resources/admin.cjs.map +1 -1
- package/dist/internal/resources/admin.d.cts +1 -1
- package/dist/internal/resources/admin.d.ts +1 -1
- package/dist/internal/resources/adminBranding.cjs.map +1 -1
- package/dist/internal/resources/adminBranding.d.cts +1 -1
- package/dist/internal/resources/adminBranding.d.ts +1 -1
- package/dist/internal/resources/adminCheckoutDomains.cjs.map +1 -1
- package/dist/internal/resources/adminCheckoutDomains.d.cts +1 -1
- package/dist/internal/resources/adminCheckoutDomains.d.ts +1 -1
- package/dist/internal/resources/adminFeePlans.cjs.map +1 -1
- package/dist/internal/resources/adminFeePlans.d.cts +1 -1
- package/dist/internal/resources/adminFeePlans.d.ts +1 -1
- package/dist/internal/resources/adminFileScans.cjs.map +1 -1
- package/dist/internal/resources/adminFileScans.d.cts +1 -1
- package/dist/internal/resources/adminFileScans.d.ts +1 -1
- package/dist/internal/resources/adminIndustries.cjs.map +1 -1
- package/dist/internal/resources/adminIndustries.d.cts +1 -1
- package/dist/internal/resources/adminIndustries.d.ts +1 -1
- package/dist/internal/resources/adminLive.cjs.map +1 -1
- package/dist/internal/resources/adminNotices.cjs.map +1 -1
- package/dist/internal/resources/adminNotices.d.cts +1 -1
- package/dist/internal/resources/adminNotices.d.ts +1 -1
- package/dist/internal/resources/adminPortal.cjs +2 -2
- package/dist/internal/resources/adminPortal.cjs.map +1 -1
- package/dist/internal/resources/adminPortal.d.cts +64 -1
- package/dist/internal/resources/adminPortal.d.ts +64 -1
- package/dist/internal/resources/adminPortal.js +1 -1
- package/dist/internal/resources/adminPricing.cjs.map +1 -1
- package/dist/internal/resources/adminPricing.d.cts +1 -1
- package/dist/internal/resources/adminPricing.d.ts +1 -1
- package/dist/internal/resources/adminSupport.cjs.map +1 -1
- package/dist/internal/resources/adminSupport.d.cts +1 -1
- package/dist/internal/resources/adminSupport.d.ts +1 -1
- package/dist/internal/resources/auditLogs.cjs.map +1 -1
- package/dist/internal/resources/auditLogs.d.cts +1 -1
- package/dist/internal/resources/auditLogs.d.ts +1 -1
- package/dist/internal/resources/cache.cjs.map +1 -1
- package/dist/internal/resources/cardIssuers.cjs.map +1 -1
- package/dist/internal/resources/cardIssuers.d.cts +1 -1
- package/dist/internal/resources/cardIssuers.d.ts +1 -1
- package/dist/internal/resources/configs.cjs.map +1 -1
- package/dist/internal/resources/connectorRestrictionRules.cjs.map +1 -1
- package/dist/internal/resources/connectorRestrictionRules.d.cts +1 -1
- package/dist/internal/resources/connectorRestrictionRules.d.ts +1 -1
- package/dist/internal/resources/connectorRestrictions.cjs.map +1 -1
- package/dist/internal/resources/connectorRestrictions.d.cts +1 -1
- package/dist/internal/resources/connectorRestrictions.d.ts +1 -1
- package/dist/internal/resources/diagnostic.cjs.map +1 -1
- package/dist/internal/resources/diagnostic.d.cts +1 -1
- package/dist/internal/resources/diagnostic.d.ts +1 -1
- package/dist/internal/resources/gsm.cjs.map +1 -1
- package/dist/internal/resources/gsm.d.cts +1 -1
- package/dist/internal/resources/gsm.d.ts +1 -1
- package/dist/internal/resources/nativeRenewals.cjs.map +1 -1
- package/dist/internal/resources/nativeRenewals.d.cts +1 -1
- package/dist/internal/resources/nativeRenewals.d.ts +1 -1
- package/dist/internal/resources/platformBilling.cjs.map +1 -1
- package/dist/internal/resources/platformBilling.d.cts +1 -1
- package/dist/internal/resources/platformBilling.d.ts +1 -1
- package/dist/internal/resources/platformFees.cjs.map +1 -1
- package/dist/internal/resources/platformMessageTemplates.cjs.map +1 -1
- package/dist/internal/resources/platformSettings.cjs.map +1 -1
- package/dist/internal/resources/platformSettings.d.cts +1 -1
- package/dist/internal/resources/platformSettings.d.ts +1 -1
- package/dist/internal.cjs +8 -8
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +5 -5
- package/dist/listQuery.cjs.map +1 -1
- package/dist/panes.cjs.map +1 -1
- package/dist/paymentPresentation.cjs.map +1 -1
- package/dist/recordCounter.cjs.map +1 -1
- package/dist/resources/aiTools.cjs.map +1 -1
- package/dist/resources/analytics.cjs.map +1 -1
- package/dist/resources/analyticsDashboard.cjs.map +1 -1
- package/dist/resources/apiKeys.cjs.map +1 -1
- package/dist/resources/audit.cjs.map +1 -1
- package/dist/resources/authentication.cjs.map +1 -1
- package/dist/resources/availabilityOverrides.cjs.map +1 -1
- package/dist/resources/billing.cjs.map +1 -1
- package/dist/resources/buyerAccount.cjs.map +1 -1
- package/dist/resources/buyerBlocklist.cjs.map +1 -1
- package/dist/resources/buyerConversations.cjs.map +1 -1
- package/dist/resources/buyerEvidenceReviews.cjs.map +1 -1
- package/dist/resources/buyerPortal.cjs.map +1 -1
- package/dist/resources/cards.cjs.map +1 -1
- package/dist/resources/chargebackPrevention.cjs.map +1 -1
- package/dist/resources/checkoutDomains.cjs.map +1 -1
- package/dist/resources/checkoutMethods.cjs.map +1 -1
- package/dist/resources/checkoutRecovery.cjs.map +1 -1
- package/dist/resources/checkoutTemplates.cjs.map +1 -1
- package/dist/resources/connectors.cjs.map +1 -1
- package/dist/resources/contentEncryption.cjs.map +1 -1
- package/dist/resources/costRules.cjs.map +1 -1
- package/dist/resources/customers.cjs.map +1 -1
- package/dist/resources/deploymentBranding.cjs.map +1 -1
- package/dist/resources/disputes.cjs.map +1 -1
- package/dist/resources/ephemeralKeys.cjs.map +1 -1
- package/dist/resources/events.cjs.map +1 -1
- package/dist/resources/export.cjs.map +1 -1
- package/dist/resources/externalRecords.cjs.map +1 -1
- package/dist/resources/featureMatrix.cjs.map +1 -1
- package/dist/resources/fees.cjs.map +1 -1
- package/dist/resources/files.cjs.map +1 -1
- package/dist/resources/forex.cjs.map +1 -1
- package/dist/resources/identityVerifications.cjs.map +1 -1
- package/dist/resources/industries.cjs.map +1 -1
- package/dist/resources/invoiceSettings.cjs.map +1 -1
- package/dist/resources/invoices.cjs.map +1 -1
- package/dist/resources/live.cjs.map +1 -1
- package/dist/resources/mandates.cjs.map +1 -1
- package/dist/resources/merchantAccounts.cjs.map +1 -1
- package/dist/resources/messageTemplates.cjs.map +1 -1
- package/dist/resources/notices.cjs.map +1 -1
- package/dist/resources/operationLimits.cjs.map +1 -1
- package/dist/resources/paymentLinks.cjs.map +1 -1
- package/dist/resources/paymentMethods.cjs.map +1 -1
- package/dist/resources/payments.cjs.map +1 -1
- package/dist/resources/payoutDestinations.cjs.map +1 -1
- package/dist/resources/payouts.cjs.map +1 -1
- package/dist/resources/paypalDisputes.cjs.map +1 -1
- package/dist/resources/persons.cjs.map +1 -1
- package/dist/resources/poll.cjs.map +1 -1
- package/dist/resources/processorCosts.cjs.map +1 -1
- package/dist/resources/processorImports.cjs.map +1 -1
- package/dist/resources/products.cjs.map +1 -1
- package/dist/resources/profileAcquirers.cjs.map +1 -1
- package/dist/resources/profiles.cjs.map +1 -1
- package/dist/resources/projects.cjs.map +1 -1
- package/dist/resources/refunds.cjs.map +1 -1
- package/dist/resources/regions.cjs.map +1 -1
- package/dist/resources/relay.cjs.map +1 -1
- package/dist/resources/risk.cjs.map +1 -1
- package/dist/resources/routing.cjs.map +1 -1
- package/dist/resources/search.cjs.map +1 -1
- package/dist/resources/sellToRestrictions.cjs.map +1 -1
- package/dist/resources/settings.cjs.map +1 -1
- package/dist/resources/settlement.cjs.map +1 -1
- package/dist/resources/shareLinks.cjs.map +1 -1
- package/dist/resources/shopLabels.cjs.map +1 -1
- package/dist/resources/shopify.cjs +2 -2
- package/dist/resources/shopify.cjs.map +1 -1
- package/dist/resources/shopify.d.cts +26 -1
- package/dist/resources/shopify.d.ts +26 -1
- package/dist/resources/shopify.js +1 -1
- package/dist/resources/shops.cjs.map +1 -1
- package/dist/resources/stripeConnect.cjs.map +1 -1
- package/dist/resources/subscriptions.cjs.map +1 -1
- package/dist/resources/support.cjs.map +1 -1
- package/dist/resources/threeDsRules.cjs.map +1 -1
- package/dist/resources/users.cjs.map +1 -1
- package/dist/resources/vatRates.cjs.map +1 -1
- package/dist/resources/verification.cjs.map +1 -1
- package/dist/resources/webhooks.cjs.map +1 -1
- package/dist/resources/whopResolutionCases.cjs.map +1 -1
- package/dist/trustedOrigins.cjs.map +1 -1
- package/dist/{types-SEJjet2B.d.ts → types-DWl8-llD.d.cts} +201 -2
- package/dist/{types-FHqOLCyI.d.cts → types-m2Cm6l0z.d.ts} +201 -2
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +111 -1
- package/dist/types.d.ts +111 -1
- package/package.json +1 -1
- package/dist/chunk-BX2CT7FR.js.map +0 -1
- package/dist/chunk-FLQ3K6Y6.js.map +0 -1
- package/dist/chunk-HSJABE7X.cjs.map +0 -1
- package/dist/chunk-IDY2LP4Q.cjs.map +0 -1
- package/dist/chunk-IUXCU3DW.cjs.map +0 -1
- package/dist/chunk-NULOAF7W.cjs.map +0 -1
- package/dist/chunk-O53VOQK7.cjs.map +0 -1
- package/dist/chunk-TDCB2FQI.js.map +0 -1
- /package/dist/{chunk-IPN7D5PP.js.map → chunk-QMZWH4LG.js.map} +0 -0
- /package/dist/{chunk-SAXTZZQL.js.map → chunk-W4AW52WT.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-GSQN5EOO.cjs","../src/cardFormStyles.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC0BO,IAAM,mBAAA,EAAqB,yCAAA;AAI3B,IAAM,sBAAA,EAAwB,4CAAA;AAI9B,IAAM,mBAAA,EAAqB,yCAAA;AAI3B,IAAM,iBAAA,EAAmB,uCAAA;AAIzB,SAAS,eAAA,CAAgB,IAAA,EAAiC;AAC/D,EAAA,OAAO,KAAA,IAAS,KAAA,EAAO,GAAA,EAAK,KAAA,IAAS,KAAA,EAAO,GAAA,EAAK,EAAA;AACnD;AAGO,SAAS,oBAAA,CAAqB,MAAA,EAAiC;AACpE,EAAA,OAAO,OAAA,IAAW,UAAA,EAAY,IAAA,EAAM,OAAA,IAAW,WAAA,EAAa,IAAA,EAAM,GAAA;AACpE;AASO,IAAM,cAAA,EAAgB,CAAC,MAAA,EAAQ,QAAA,EAAU,MAAA,EAAQ,OAAO,CAAA;AAIxD,SAAS,kBAAA,CAAmB,KAAA,EAAoB,IAAA,EAA4C;AACjG,EAAA,GAAA,CAAI,MAAA,IAAU,MAAA,EAAQ,OAAO,KAAA,EAAO,QAAA,EAAU,QAAA;AAC9C,EAAA,OAAO,KAAA;AACT;AAGO,IAAM,oBAAA,EAAsB,CAAC,QAAA,EAAU,WAAW,CAAA;AAOlD,IAAM,wBAAA,EAA0B,CAAC,OAAA,EAAS,UAAU,CAAA;AAIpD,IAAM,gBAAA,EAAkB,CAAC,SAAA,EAAW,aAAA,EAAe,UAAU,C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O.cjs","sourcesContent":[null,"// How the card forms that are not Airwallex's can be styled: Stripe's Payment\n// Element, PayPal Card Fields and NomuPay's COPYandPAY widget.\n//\n// Each processor draws the card inside its own iframes and exposes a\n// different, narrow styling surface, so each gets only the controls that\n// surface actually reaches:\n//\n// - Stripe takes an Appearance object (`theme`, `inputs`, `labels`,\n// `variables`, `rules`, `disableAnimations`) and paints everything inside\n// one iframe itself.\n// - PayPal takes CSS for the text inside each field iframe (`input`, `.valid`,\n// `.invalid`, `:focus`); the box around it is the checkout's own DOM.\n// - COPYandPAY takes `wpwlOptions` (`style`, `showLabels`, `showPlaceholders`,\n// `showCVVHint`, `iframeStyles` for the two placeholders) and renders its\n// `.wpwl-*` classes into the page, where the checkout's CSS styles the box.\n//\n// Every value here is presentation. Nothing narrows the cards a buyer may pay\n// with, and nothing reaches a confirm path. COPYandPAY's `brandDetection` is\n// deliberately absent for that reason: it picks the scheme a co-badged card is\n// charged on, which is the buyer's choice to make, not a style.\n//\n// The box vocabularies (chrome, type size, weight, focus ring) are the\n// Airwallex section's, re-exported under neutral names, so a merchant styling\n// two rails meets the same words and the checkout draws them the same way.\n\nimport {\n AIRWALLEX_FIELD_CHROMES,\n AIRWALLEX_FIELD_FONT_SIZES,\n AIRWALLEX_FIELD_WEIGHTS,\n AIRWALLEX_FOCUS_RINGS,\n} from './airwallexCard';\n\n/** How the box around a field is drawn: `outlined`, `filled` or `underline`. */\nexport const CARD_FIELD_CHROMES = AIRWALLEX_FIELD_CHROMES;\nexport type CardFieldChrome = (typeof CARD_FIELD_CHROMES)[number];\n\n/** Field type size: `sm` 14px, `md` 16px, `lg` 18px. */\nexport const CARD_FIELD_FONT_SIZES = AIRWALLEX_FIELD_FONT_SIZES;\nexport type CardFieldFontSize = (typeof CARD_FIELD_FONT_SIZES)[number];\n\n/** Field type weight: `regular` 400, `medium` 500, `semibold` 600. */\nexport const CARD_FIELD_WEIGHTS = AIRWALLEX_FIELD_WEIGHTS;\nexport type CardFieldWeight = (typeof CARD_FIELD_WEIGHTS)[number];\n\n/** The ring around the focused field: `none`, `subtle` (neutral) or `strong` (brand colour). */\nexport const CARD_FOCUS_RINGS = AIRWALLEX_FOCUS_RINGS;\nexport type CardFocusRing = (typeof CARD_FOCUS_RINGS)[number];\n\n/** A field type size in px. */\nexport function cardFieldFontPx(size: CardFieldFontSize): number {\n return size === 'sm' ? 14 : size === 'lg' ? 18 : 16;\n}\n\n/** A field type weight as a CSS numeric weight. */\nexport function cardFieldWeightValue(weight: CardFieldWeight): number {\n return weight === 'regular' ? 400 : weight === 'semibold' ? 600 : 500;\n}\n\n// --- Stripe Payment Element ---------------------------------------------\n\n/**\n * Stripe's base theme. `auto` is `night` on a dark checkout and `stripe` on a\n * light one, which is what the pane chose before this setting existed. The\n * merchant's colours, font and radius are applied over whichever is picked.\n */\nexport const STRIPE_THEMES = ['auto', 'stripe', 'flat', 'night'] as const;\nexport type StripeTheme = (typeof STRIPE_THEMES)[number];\n\n/** The theme Stripe is actually given. */\nexport function resolveStripeTheme(theme: StripeTheme, dark: boolean): 'stripe' | 'flat' | 'night' {\n if (theme === 'auto') return dark ? 'night' : 'stripe';\n return theme;\n}\n\n/** Stripe's `appearance.inputs`: separate boxes, or one condensed block. */\nexport const STRIPE_INPUT_STYLES = ['spaced', 'condensed'] as const;\nexport type StripeInputStyle = (typeof STRIPE_INPUT_STYLES)[number];\n\n/**\n * Stripe's `appearance.labels`. The checkout-wide `labelStyle: 'hidden'` still\n * wins over either, because hiding is a decision about every form.\n */\nexport const STRIPE_LABEL_PLACEMENTS = ['above', 'floating'] as const;\nexport type StripeLabelPlacement = (typeof STRIPE_LABEL_PLACEMENTS)[number];\n\n/** The space between Stripe's fields and rows. */\nexport const STRIPE_SPACINGS = ['compact', 'comfortable', 'spacious'] as const;\nexport type StripeSpacing = (typeof STRIPE_SPACINGS)[number];\n\n/**\n * Stripe's `spacingUnit` and `gridRowSpacing` for a spacing choice.\n * `comfortable` is the 4px / 12px the pane always sent.\n */\nexport function stripeSpacingValues(spacing: StripeSpacing): {\n spacingUnit: string;\n gridRowSpacing: string;\n} {\n if (spacing === 'compact') return { spacingUnit: '3px', gridRowSpacing: '8px' };\n if (spacing === 'spacious') return { spacingUnit: '5px', gridRowSpacing: '16px' };\n return { spacingUnit: '4px', gridRowSpacing: '12px' };\n}\n\n// --- PayPal Card Fields -------------------------------------------------\n\n/** The PayPal card form's rows: expiry and CVC side by side, or every field full width. */\nexport const PAYPAL_CARD_LAYOUTS = ['split', 'stacked'] as const;\nexport type PaypalCardLayout = (typeof PAYPAL_CARD_LAYOUTS)[number];\n\n/**\n * Captions over PayPal's fields. Visual only: a `<label for>` cannot reach an\n * input inside PayPal's iframe, and the field keeps the name PayPal gives it.\n */\nexport const PAYPAL_LABEL_STYLES = ['above', 'none'] as const;\nexport type PaypalLabelStyle = (typeof PAYPAL_LABEL_STYLES)[number];\n\n// --- NomuPay COPYandPAY -------------------------------------------------\n\n/**\n * COPYandPAY's `style`. `plain` is bare labelled fields; `card` is the\n * widget's card-shaped presentation. `logos` and `none` are not offered:\n * `logos` makes the buyer pick a brand before the fields appear, and `none`\n * drops the widget's own CSS the checkout's field styling builds on.\n */\nexport const NOMUPAY_FORM_STYLES = ['plain', 'card'] as const;\nexport type NomupayFormStyle = (typeof NOMUPAY_FORM_STYLES)[number];\n\n/**\n * Apple Pay's `buttonStyle`. `auto` is `white` on a dark checkout and `black`\n * on a light one, as the widget was configured before this setting existed.\n */\nexport const APPLE_PAY_BUTTON_STYLES = ['auto', 'black', 'white', 'white-outline'] as const;\nexport type ApplePayButtonStyle = (typeof APPLE_PAY_BUTTON_STYLES)[number];\n\nexport function resolveApplePayButtonStyle(\n style: ApplePayButtonStyle,\n dark: boolean,\n): 'black' | 'white' | 'white-outline' {\n if (style === 'auto') return dark ? 'white' : 'black';\n return style;\n}\n\n/** Apple Pay's `buttonType`: the word on the button. Apple's own list. */\nexport const APPLE_PAY_BUTTON_TYPES = [\n 'pay',\n 'plain',\n 'buy',\n 'check-out',\n 'continue',\n 'book',\n 'order',\n 'subscribe',\n 'donate',\n 'contribute',\n 'support',\n 'tip',\n 'add-money',\n 'top-up',\n 'reload',\n 'rent',\n] as const;\nexport type ApplePayButtonType = (typeof APPLE_PAY_BUTTON_TYPES)[number];\n\n/**\n * Google Pay's `buttonColor`. `auto` is `white` on a dark checkout and `black`\n * on a light one; `default` lets Google choose for the buyer's browser.\n */\nexport const GOOGLE_PAY_BUTTON_COLORS = ['auto', 'default', 'black', 'white'] as const;\nexport type GooglePayButtonColor = (typeof GOOGLE_PAY_BUTTON_COLORS)[number];\n\nexport function resolveGooglePayButtonColor(\n color: GooglePayButtonColor,\n dark: boolean,\n): 'default' | 'black' | 'white' {\n if (color === 'auto') return dark ? 'white' : 'black';\n return color;\n}\n\n/** Google Pay's `buttonType`: the word on the button. Google's own list. */\nexport const GOOGLE_PAY_BUTTON_TYPES = [\n 'pay',\n 'plain',\n 'buy',\n 'checkout',\n 'book',\n 'order',\n 'subscribe',\n 'donate',\n] as const;\nexport type GooglePayButtonType = (typeof GOOGLE_PAY_BUTTON_TYPES)[number];\n\n// --- Whop Payment Elements ----------------------------------------------\n//\n// Whop draws its form inside its own frames and takes one `appearance`\n// object: a `theme` of named palettes (no hex), radius `variables`, and\n// per-part `classes` it sanitises against an allowlist. The element itself\n// is chosen by the preset: Whop's Payment Element (every method the account\n// offers, as an accordion or as tiles) or its Card Element (cards only, in\n// two shapes).\n\n/**\n * The Whop card form's shape.\n *\n * - `accordion`: the Payment Element, methods stacked; what the form always was.\n * - `tiles`: the Payment Element with `layout: 'horizontal'`, equal-width tiles.\n * - `card_stacked`: the Card Element, number above expiry and CVC. Cards only.\n * - `card_compact`: the Card Element on one row. Cards only.\n *\n * The two card presets offer no wallet inside the form: Apple Pay and Google\n * Pay are then the shop's own wallet buttons, or absent.\n */\nexport const WHOP_CARD_PRESETS = ['accordion', 'tiles', 'card_stacked', 'card_compact'] as const;\nexport type WhopCardPreset = (typeof WHOP_CARD_PRESETS)[number];\n\n/** The Whop element and layout a preset mounts. */\nexport type WhopCardElement =\n | { element: 'payment'; layout: 'accordion' | 'horizontal' }\n | { element: 'card'; layout: 'stacked' | 'compact' };\n\nexport function whopCardElement(preset: WhopCardPreset): WhopCardElement {\n switch (preset) {\n case 'tiles':\n return { element: 'payment', layout: 'horizontal' };\n case 'card_stacked':\n return { element: 'card', layout: 'stacked' };\n case 'card_compact':\n return { element: 'card', layout: 'compact' };\n default:\n return { element: 'payment', layout: 'accordion' };\n }\n}\n\n/**\n * Whop's `theme.accentColor`: the palette its radios, selected rows and\n * buttons are drawn in. Whop takes a palette name only, never a colour, so\n * `auto` picks the palette nearest the checkout's primary colour\n * (`nearestWhopAccent`).\n */\nexport const WHOP_ACCENT_COLORS = [\n 'auto',\n 'gray',\n 'blue',\n 'indigo',\n 'iris',\n 'violet',\n 'purple',\n 'plum',\n 'pink',\n 'crimson',\n 'ruby',\n 'red',\n 'tomato',\n 'orange',\n 'amber',\n 'yellow',\n 'lime',\n 'grass',\n 'green',\n 'jade',\n 'teal',\n 'cyan',\n 'sky',\n 'mint',\n 'brown',\n 'bronze',\n 'gold',\n] as const;\nexport type WhopAccentColor = (typeof WHOP_ACCENT_COLORS)[number];\n\n/** Each palette's solid step (Radix colour scale step 9, light). */\nconst WHOP_ACCENT_SWATCHES: Readonly<Record<Exclude<WhopAccentColor, 'auto' | 'gray'>, string>> = {\n blue: '#0090ff',\n indigo: '#3e63dd',\n iris: '#5b5bd6',\n violet: '#6e56cf',\n purple: '#8e4ec6',\n plum: '#ab4aba',\n pink: '#d6409f',\n crimson: '#e93d82',\n ruby: '#e54666',\n red: '#e5484d',\n tomato: '#e54d2e',\n orange: '#f76b15',\n amber: '#ffc53d',\n yellow: '#ffe629',\n lime: '#bdee63',\n grass: '#46a758',\n green: '#30a46c',\n jade: '#29a383',\n teal: '#12a594',\n cyan: '#00a2c7',\n sky: '#7ce2fe',\n mint: '#86ead4',\n brown: '#ad7f58',\n bronze: '#a18072',\n gold: '#978365',\n};\n\n/** A palette's solid swatch, for the dashboard's picker. `gray` is neutral. */\nexport function whopAccentSwatch(accent: Exclude<WhopAccentColor, 'auto'>): string {\n return accent === 'gray' ? '#8d8d8d' : WHOP_ACCENT_SWATCHES[accent];\n}\n\nfunction hexRgb(hex: string): [number, number, number] | null {\n const raw = hex.trim().replace(/^#/, '');\n const full = raw.length === 3 ? raw.replace(/./g, (c) => c + c) : raw;\n if (!/^[0-9a-f]{6}$/i.test(full)) return null;\n const n = Number.parseInt(full, 16);\n return [(n >> 16) & 255, (n >> 8) & 255, n & 255];\n}\n\n/** OKLab, so \"nearest\" means nearest to the eye rather than in RGB. */\nfunction oklab([r, g, b]: [number, number, number]): [number, number, number] {\n const lin = (c: number) => {\n const v = c / 255;\n return v <= 0.04045 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4;\n };\n const [lr, lg, lb] = [lin(r), lin(g), lin(b)];\n const l = Math.cbrt(0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb);\n const m = Math.cbrt(0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb);\n const s = Math.cbrt(0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb);\n return [\n 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,\n 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,\n 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s,\n ];\n}\n\n/**\n * The Whop palette nearest a colour. A colour with almost no chroma (black,\n * white, greys) is `gray`; an unreadable one is `blue`, Whop's own default.\n */\nexport function nearestWhopAccent(hex: string): Exclude<WhopAccentColor, 'auto'> {\n const rgb = hexRgb(hex);\n if (!rgb) return 'blue';\n const [L, a, b] = oklab(rgb);\n if (Math.hypot(a, b) < 0.04) return 'gray';\n let best: Exclude<WhopAccentColor, 'auto' | 'gray'> = 'blue';\n let bestDistance = Number.POSITIVE_INFINITY;\n for (const [name, swatch] of Object.entries(WHOP_ACCENT_SWATCHES) as [\n Exclude<WhopAccentColor, 'auto' | 'gray'>,\n string,\n ][]) {\n const swatchRgb = hexRgb(swatch);\n if (!swatchRgb) continue;\n const [sL, sa, sb] = oklab(swatchRgb);\n // Hue and chroma decide the palette; lightness counts for less, since\n // Whop draws each palette in several steps.\n const distance = Math.hypot((L - sL) * 0.5, a - sa, b - sb);\n if (distance < bestDistance) {\n bestDistance = distance;\n best = name;\n }\n }\n return best;\n}\n\n/** The accent Whop is actually given. */\nexport function resolveWhopAccent(\n accent: WhopAccentColor,\n primaryHex: string,\n): Exclude<WhopAccentColor, 'auto'> {\n return accent === 'auto' ? nearestWhopAccent(primaryHex) : accent;\n}\n\n/** Whop's email field `labelMode`: a caption above the box, or inside it until typed. */\nexport const WHOP_EMAIL_LABELS = ['above', 'floating'] as const;\nexport type WhopEmailLabel = (typeof WHOP_EMAIL_LABELS)[number];\n\n/**\n * Whop's `theme.grayColor`: the neutral scale its borders, muted text and\n * backgrounds are drawn in. `auto` lets Whop match it to the accent.\n */\nexport const WHOP_GRAY_COLORS = [\n 'auto',\n 'gray',\n 'mauve',\n 'slate',\n 'sage',\n 'olive',\n 'sand',\n] as const;\nexport type WhopGrayColor = (typeof WHOP_GRAY_COLORS)[number];\n\n/**\n * How much billing address Whop asks a card for. `minimal` is Whop's\n * minimum for a card: name, country and postal code. `full` asks the\n * complete address in the country's own format, for address checks.\n */\nexport const WHOP_BILLING_DETAILS = ['minimal', 'full'] as const;\nexport type WhopBillingDetails = (typeof WHOP_BILLING_DETAILS)[number];\n\n/**\n * The corners of Whop's form: its fields, the joined card and address groups,\n * the method list and the tiles. `checkout` follows the checkout's own input\n * radius (`radiusInput`); the rest name a radius of the same scale.\n */\nexport const WHOP_RADII = ['checkout', 'square', 'small', 'medium', 'large'] as const;\nexport type WhopRadius = (typeof WHOP_RADII)[number];\n\n/**\n * Whether Whop's fields, groups and method list keep the soft drop shadow\n * Whop draws under them, or lie flat like the checkout's own fields.\n */\nexport const WHOP_SHADOWS = ['none', 'soft'] as const;\nexport type WhopShadow = (typeof WHOP_SHADOWS)[number];\n\n/**\n * How the method list marks the chosen method: Whop's radio dots, the dots\n * with the chosen method tinted in the brand colour, or the tint alone.\n * Tiles always ring the chosen tile.\n */\nexport const WHOP_SELECTIONS = ['radio_tint', 'radio', 'tint'] as const;\nexport type WhopSelection = (typeof WHOP_SELECTIONS)[number];\n\n/** The Whop settings a look sets together. Colours stay the shop's. */\nexport interface WhopLookSettings {\n whopCardPreset: WhopCardPreset;\n // Every look asks Whop's card minimum: a look is a design, and the full\n // address is a separate choice that names no look.\n whopBillingDetails: WhopBillingDetails;\n whopSeparated: boolean;\n whopFieldChrome: CardFieldChrome;\n whopEmailLabel: WhopEmailLabel;\n whopRadius: WhopRadius;\n whopShadow: WhopShadow;\n whopMethodIcons: boolean;\n whopSelection: WhopSelection;\n}\n\n/**\n * Curated looks for the Whop form: each sets the form, the chrome, the\n * captions, the corners, the shadow and how the chosen method is marked, as\n * one choice the dashboard offers before the single settings. `standard` is\n * the default branding's own look.\n */\nexport const WHOP_LOOKS = [\n 'standard',\n 'clean',\n 'whop',\n 'cards',\n 'tiles',\n 'soft',\n 'minimal',\n] as const;\nexport type WhopLook = (typeof WHOP_LOOKS)[number];\n\nexport const WHOP_LOOK_SETTINGS: Readonly<Record<WhopLook, Readonly<WhopLookSettings>>> = {\n // The fewest fields Whop takes a card with, laid out as Stripe's card\n // form: the email, the number above expiry and code, then one group of\n // name, country (preselected) and postal code. Whop refuses a card without\n // any of them. The wallets are the shop's own express buttons.\n standard: {\n whopCardPreset: 'card_stacked',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'checkout',\n whopShadow: 'soft',\n whopMethodIcons: true,\n whopSelection: 'radio_tint',\n },\n // Flat fields like the checkout's own, the method list with the chosen\n // method tinted beside its radio.\n clean: {\n whopCardPreset: 'accordion',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'checkout',\n whopShadow: 'none',\n whopMethodIcons: true,\n whopSelection: 'radio_tint',\n },\n // Whop's own form: its corners, its soft shadow, its radio dots.\n whop: {\n whopCardPreset: 'accordion',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'small',\n whopShadow: 'soft',\n whopMethodIcons: true,\n whopSelection: 'radio',\n },\n // Each method its own raised card, the chosen one tinted, no dots.\n cards: {\n whopCardPreset: 'accordion',\n whopBillingDetails: 'minimal',\n whopSeparated: true,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'medium',\n whopShadow: 'soft',\n whopMethodIcons: true,\n whopSelection: 'tint',\n },\n // The methods as tiles above the card's fields.\n tiles: {\n whopCardPreset: 'tiles',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'checkout',\n whopShadow: 'none',\n whopMethodIcons: true,\n whopSelection: 'radio_tint',\n },\n // Filled fields with the captions inside, round corners.\n soft: {\n whopCardPreset: 'accordion',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'filled',\n whopEmailLabel: 'floating',\n whopRadius: 'large',\n whopShadow: 'none',\n whopMethodIcons: false,\n whopSelection: 'radio_tint',\n },\n // The card alone on one line, underlined, captions inside.\n minimal: {\n whopCardPreset: 'card_compact',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'underline',\n whopEmailLabel: 'floating',\n whopRadius: 'square',\n whopShadow: 'none',\n whopMethodIcons: true,\n whopSelection: 'radio_tint',\n },\n};\n\n/** The look a branding's Whop settings match exactly, or `null` for a custom mix. */\nexport function matchWhopLook(settings: WhopLookSettings): WhopLook | null {\n const keys = Object.keys(WHOP_LOOK_SETTINGS.clean) as (keyof WhopLookSettings)[];\n return (\n WHOP_LOOKS.find((look) =>\n keys.every((key) => WHOP_LOOK_SETTINGS[look][key] === settings[key]),\n ) ?? null\n );\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["/home/anes/delo-payment/delopay-typescript-sdk/dist/chunk-GSQN5EOO.cjs","../src/cardFormStyles.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC0BO,IAAM,mBAAA,EAAqB,yCAAA;AAI3B,IAAM,sBAAA,EAAwB,4CAAA;AAI9B,IAAM,mBAAA,EAAqB,yCAAA;AAI3B,IAAM,iBAAA,EAAmB,uCAAA;AAIzB,SAAS,eAAA,CAAgB,IAAA,EAAiC;AAC/D,EAAA,OAAO,KAAA,IAAS,KAAA,EAAO,GAAA,EAAK,KAAA,IAAS,KAAA,EAAO,GAAA,EAAK,EAAA;AACnD;AAGO,SAAS,oBAAA,CAAqB,MAAA,EAAiC;AACpE,EAAA,OAAO,OAAA,IAAW,UAAA,EAAY,IAAA,EAAM,OAAA,IAAW,WAAA,EAAa,IAAA,EAAM,GAAA;AACpE;AASO,IAAM,cAAA,EAAgB,CAAC,MAAA,EAAQ,QAAA,EAAU,MAAA,EAAQ,OAAO,CAAA;AAIxD,SAAS,kBAAA,CAAmB,KAAA,EAAoB,IAAA,EAA4C;AACjG,EAAA,GAAA,CAAI,MAAA,IAAU,MAAA,EAAQ,OAAO,KAAA,EAAO,QAAA,EAAU,QAAA;AAC9C,EAAA,OAAO,KAAA;AACT;AAGO,IAAM,oBAAA,EAAsB,CAAC,QAAA,EAAU,WAAW,CAAA;AAOlD,IAAM,wBAAA,EAA0B,CAAC,OAAA,EAAS,UAAU,CAAA;AAIpD,IAAM,gBAAA,EAAkB,CAAC,SAAA,EAAW,aAAA,EAAe,UAAU,CAAA;AAO7D,SAAS,mBAAA,CAAoB,OAAA,EAGlC;AACA,EAAA,GAAA,CAAI,QAAA,IAAY,SAAA,EAAW,OAAO,EAAE,WAAA,EAAa,KAAA,EAAO,cAAA,EAAgB,MAAM,CAAA;AAC9E,EAAA,GA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AAA;AAAA,IAChB,UAAA,EAAY,OAAA;AAAA,IACZ,UAAA,EAAY,MAAA;AAAA,IACZ,eAAA,EAAiB,KAAA;AAAA,IACjB,aAAA,EAAe;AAAA,EACjB,CAAA;AAAA;AAAA,EAEA,OAAA,EAAS;AAAA,IACP,cAAA,EAAgB,cAAA;AAAA,IAChB,kBAAA,EAAoB,SAAA;AAAA,IACpB,aAAA,EAAe,KAAA;AAAA,IACf,eAAA,EAAiB,WAAA;AAAA,IACjB,cAAA,EAAgB,UAAA;AAAA,IAChB,UAAA,EAAY,QAAA;AAAA,IACZ,UAAA,EAAY,MAAA;AAAA,IACZ,eAAA,EAAiB,IAAA;AAAA,IACjB,aAAA,EAAe;AAAA,EACjB;AACF,CAAA;AAGO,SAAS,aAAA,CAAc,QAAA,EAA6C;AACzE,EAAA,MAAM,KAAA,EAAO,MAAA,CAAO,IAAA,CAAK,kBAAA,CAAmB,KAAK,CAAA;AACjD,EAAA,wBACE,UAAA,CAAW,IAAA;AAAA,IAAK,CAAC,IAAA,EAAA,GACf,IAAA,CAAK,KAAA,CAAM,CAAC,GAAA,EAAA,GAAQ,kBAAA,CAAmB,IAAI,CAAA,CAAE,GAAG,EAAA,IAAM,QAAA,CAAS,GAAG,CAAC;AAAA,EACrE,CAAA,UAAK,MAAA;AAET;AD9OA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,muDAAC","file":"/home/anes/delo-payment/delopay-typescript-sdk/dist/chunk-GSQN5EOO.cjs","sourcesContent":[null,"// How the card forms that are not Airwallex's can be styled: Stripe's Payment\n// Element, PayPal Card Fields and NomuPay's COPYandPAY widget.\n//\n// Each processor draws the card inside its own iframes and exposes a\n// different, narrow styling surface, so each gets only the controls that\n// surface actually reaches:\n//\n// - Stripe takes an Appearance object (`theme`, `inputs`, `labels`,\n// `variables`, `rules`, `disableAnimations`) and paints everything inside\n// one iframe itself.\n// - PayPal takes CSS for the text inside each field iframe (`input`, `.valid`,\n// `.invalid`, `:focus`); the box around it is the checkout's own DOM.\n// - COPYandPAY takes `wpwlOptions` (`style`, `showLabels`, `showPlaceholders`,\n// `showCVVHint`, `iframeStyles` for the two placeholders) and renders its\n// `.wpwl-*` classes into the page, where the checkout's CSS styles the box.\n//\n// Every value here is presentation. Nothing narrows the cards a buyer may pay\n// with, and nothing reaches a confirm path. COPYandPAY's `brandDetection` is\n// deliberately absent for that reason: it picks the scheme a co-badged card is\n// charged on, which is the buyer's choice to make, not a style.\n//\n// The box vocabularies (chrome, type size, weight, focus ring) are the\n// Airwallex section's, re-exported under neutral names, so a merchant styling\n// two rails meets the same words and the checkout draws them the same way.\n\nimport {\n AIRWALLEX_FIELD_CHROMES,\n AIRWALLEX_FIELD_FONT_SIZES,\n AIRWALLEX_FIELD_WEIGHTS,\n AIRWALLEX_FOCUS_RINGS,\n} from './airwallexCard';\n\n/** How the box around a field is drawn: `outlined`, `filled` or `underline`. */\nexport const CARD_FIELD_CHROMES = AIRWALLEX_FIELD_CHROMES;\nexport type CardFieldChrome = (typeof CARD_FIELD_CHROMES)[number];\n\n/** Field type size: `sm` 14px, `md` 16px, `lg` 18px. */\nexport const CARD_FIELD_FONT_SIZES = AIRWALLEX_FIELD_FONT_SIZES;\nexport type CardFieldFontSize = (typeof CARD_FIELD_FONT_SIZES)[number];\n\n/** Field type weight: `regular` 400, `medium` 500, `semibold` 600. */\nexport const CARD_FIELD_WEIGHTS = AIRWALLEX_FIELD_WEIGHTS;\nexport type CardFieldWeight = (typeof CARD_FIELD_WEIGHTS)[number];\n\n/** The ring around the focused field: `none`, `subtle` (neutral) or `strong` (brand colour). */\nexport const CARD_FOCUS_RINGS = AIRWALLEX_FOCUS_RINGS;\nexport type CardFocusRing = (typeof CARD_FOCUS_RINGS)[number];\n\n/** A field type size in px. */\nexport function cardFieldFontPx(size: CardFieldFontSize): number {\n return size === 'sm' ? 14 : size === 'lg' ? 18 : 16;\n}\n\n/** A field type weight as a CSS numeric weight. */\nexport function cardFieldWeightValue(weight: CardFieldWeight): number {\n return weight === 'regular' ? 400 : weight === 'semibold' ? 600 : 500;\n}\n\n// --- Stripe Payment Element ---------------------------------------------\n\n/**\n * Stripe's base theme. `auto` is `night` on a dark checkout and `stripe` on a\n * light one, which is what the pane chose before this setting existed. The\n * merchant's colours, font and radius are applied over whichever is picked.\n */\nexport const STRIPE_THEMES = ['auto', 'stripe', 'flat', 'night'] as const;\nexport type StripeTheme = (typeof STRIPE_THEMES)[number];\n\n/** The theme Stripe is actually given. */\nexport function resolveStripeTheme(theme: StripeTheme, dark: boolean): 'stripe' | 'flat' | 'night' {\n if (theme === 'auto') return dark ? 'night' : 'stripe';\n return theme;\n}\n\n/** Stripe's `appearance.inputs`: separate boxes, or one condensed block. */\nexport const STRIPE_INPUT_STYLES = ['spaced', 'condensed'] as const;\nexport type StripeInputStyle = (typeof STRIPE_INPUT_STYLES)[number];\n\n/**\n * Stripe's `appearance.labels`. The checkout-wide `labelStyle: 'hidden'` still\n * wins over either, because hiding is a decision about every form.\n */\nexport const STRIPE_LABEL_PLACEMENTS = ['above', 'floating'] as const;\nexport type StripeLabelPlacement = (typeof STRIPE_LABEL_PLACEMENTS)[number];\n\n/** The space between Stripe's fields and rows. */\nexport const STRIPE_SPACINGS = ['compact', 'comfortable', 'spacious'] as const;\nexport type StripeSpacing = (typeof STRIPE_SPACINGS)[number];\n\n/**\n * Stripe's `spacingUnit` and `gridRowSpacing` for a spacing choice.\n * `comfortable` is the 4px / 12px the pane always sent.\n */\nexport function stripeSpacingValues(spacing: StripeSpacing): {\n spacingUnit: string;\n gridRowSpacing: string;\n} {\n if (spacing === 'compact') return { spacingUnit: '3px', gridRowSpacing: '8px' };\n if (spacing === 'spacious') return { spacingUnit: '5px', gridRowSpacing: '16px' };\n return { spacingUnit: '4px', gridRowSpacing: '12px' };\n}\n\n// --- PayPal Card Fields -------------------------------------------------\n\n/** The PayPal card form's rows: expiry and CVC side by side, or every field full width. */\nexport const PAYPAL_CARD_LAYOUTS = ['split', 'stacked'] as const;\nexport type PaypalCardLayout = (typeof PAYPAL_CARD_LAYOUTS)[number];\n\n/**\n * Captions over PayPal's fields. Visual only: a `<label for>` cannot reach an\n * input inside PayPal's iframe, and the field keeps the name PayPal gives it.\n */\nexport const PAYPAL_LABEL_STYLES = ['above', 'none'] as const;\nexport type PaypalLabelStyle = (typeof PAYPAL_LABEL_STYLES)[number];\n\n// --- NomuPay COPYandPAY -------------------------------------------------\n\n/**\n * COPYandPAY's `style`. `plain` is bare labelled fields; `card` is the\n * widget's card-shaped presentation. `logos` and `none` are not offered:\n * `logos` makes the buyer pick a brand before the fields appear, and `none`\n * drops the widget's own CSS the checkout's field styling builds on.\n */\nexport const NOMUPAY_FORM_STYLES = ['plain', 'card'] as const;\nexport type NomupayFormStyle = (typeof NOMUPAY_FORM_STYLES)[number];\n\n/**\n * Apple Pay's `buttonStyle`. `auto` is `white` on a dark checkout and `black`\n * on a light one, as the widget was configured before this setting existed.\n */\nexport const APPLE_PAY_BUTTON_STYLES = ['auto', 'black', 'white', 'white-outline'] as const;\nexport type ApplePayButtonStyle = (typeof APPLE_PAY_BUTTON_STYLES)[number];\n\nexport function resolveApplePayButtonStyle(\n style: ApplePayButtonStyle,\n dark: boolean,\n): 'black' | 'white' | 'white-outline' {\n if (style === 'auto') return dark ? 'white' : 'black';\n return style;\n}\n\n/** Apple Pay's `buttonType`: the word on the button. Apple's own list. */\nexport const APPLE_PAY_BUTTON_TYPES = [\n 'pay',\n 'plain',\n 'buy',\n 'check-out',\n 'continue',\n 'book',\n 'order',\n 'subscribe',\n 'donate',\n 'contribute',\n 'support',\n 'tip',\n 'add-money',\n 'top-up',\n 'reload',\n 'rent',\n] as const;\nexport type ApplePayButtonType = (typeof APPLE_PAY_BUTTON_TYPES)[number];\n\n/**\n * Google Pay's `buttonColor`. `auto` is `white` on a dark checkout and `black`\n * on a light one; `default` lets Google choose for the buyer's browser.\n */\nexport const GOOGLE_PAY_BUTTON_COLORS = ['auto', 'default', 'black', 'white'] as const;\nexport type GooglePayButtonColor = (typeof GOOGLE_PAY_BUTTON_COLORS)[number];\n\nexport function resolveGooglePayButtonColor(\n color: GooglePayButtonColor,\n dark: boolean,\n): 'default' | 'black' | 'white' {\n if (color === 'auto') return dark ? 'white' : 'black';\n return color;\n}\n\n/** Google Pay's `buttonType`: the word on the button. Google's own list. */\nexport const GOOGLE_PAY_BUTTON_TYPES = [\n 'pay',\n 'plain',\n 'buy',\n 'checkout',\n 'book',\n 'order',\n 'subscribe',\n 'donate',\n] as const;\nexport type GooglePayButtonType = (typeof GOOGLE_PAY_BUTTON_TYPES)[number];\n\n// --- Whop Payment Elements ----------------------------------------------\n//\n// Whop draws its form inside its own frames and takes one `appearance`\n// object: a `theme` of named palettes (no hex), radius `variables`, and\n// per-part `classes` it sanitises against an allowlist. The element itself\n// is chosen by the preset: Whop's Payment Element (every method the account\n// offers, as an accordion or as tiles) or its Card Element (cards only, in\n// two shapes).\n\n/**\n * The Whop card form's shape.\n *\n * - `accordion`: the Payment Element, methods stacked; what the form always was.\n * - `tiles`: the Payment Element with `layout: 'horizontal'`, equal-width tiles.\n * - `card_stacked`: the Card Element, number above expiry and CVC. Cards only.\n * - `card_compact`: the Card Element on one row. Cards only.\n *\n * The two card presets offer no wallet inside the form: Apple Pay and Google\n * Pay are then the shop's own wallet buttons, or absent.\n */\nexport const WHOP_CARD_PRESETS = ['accordion', 'tiles', 'card_stacked', 'card_compact'] as const;\nexport type WhopCardPreset = (typeof WHOP_CARD_PRESETS)[number];\n\n/** The Whop element and layout a preset mounts. */\nexport type WhopCardElement =\n | { element: 'payment'; layout: 'accordion' | 'horizontal' }\n | { element: 'card'; layout: 'stacked' | 'compact' };\n\nexport function whopCardElement(preset: WhopCardPreset): WhopCardElement {\n switch (preset) {\n case 'tiles':\n return { element: 'payment', layout: 'horizontal' };\n case 'card_stacked':\n return { element: 'card', layout: 'stacked' };\n case 'card_compact':\n return { element: 'card', layout: 'compact' };\n default:\n return { element: 'payment', layout: 'accordion' };\n }\n}\n\n/**\n * Whop's `theme.accentColor`: the palette its radios, selected rows and\n * buttons are drawn in. Whop takes a palette name only, never a colour, so\n * `auto` picks the palette nearest the checkout's primary colour\n * (`nearestWhopAccent`).\n */\nexport const WHOP_ACCENT_COLORS = [\n 'auto',\n 'gray',\n 'blue',\n 'indigo',\n 'iris',\n 'violet',\n 'purple',\n 'plum',\n 'pink',\n 'crimson',\n 'ruby',\n 'red',\n 'tomato',\n 'orange',\n 'amber',\n 'yellow',\n 'lime',\n 'grass',\n 'green',\n 'jade',\n 'teal',\n 'cyan',\n 'sky',\n 'mint',\n 'brown',\n 'bronze',\n 'gold',\n] as const;\nexport type WhopAccentColor = (typeof WHOP_ACCENT_COLORS)[number];\n\n/** Each palette's solid step (Radix colour scale step 9, light). */\nconst WHOP_ACCENT_SWATCHES: Readonly<Record<Exclude<WhopAccentColor, 'auto' | 'gray'>, string>> = {\n blue: '#0090ff',\n indigo: '#3e63dd',\n iris: '#5b5bd6',\n violet: '#6e56cf',\n purple: '#8e4ec6',\n plum: '#ab4aba',\n pink: '#d6409f',\n crimson: '#e93d82',\n ruby: '#e54666',\n red: '#e5484d',\n tomato: '#e54d2e',\n orange: '#f76b15',\n amber: '#ffc53d',\n yellow: '#ffe629',\n lime: '#bdee63',\n grass: '#46a758',\n green: '#30a46c',\n jade: '#29a383',\n teal: '#12a594',\n cyan: '#00a2c7',\n sky: '#7ce2fe',\n mint: '#86ead4',\n brown: '#ad7f58',\n bronze: '#a18072',\n gold: '#978365',\n};\n\n/** A palette's solid swatch, for the dashboard's picker. `gray` is neutral. */\nexport function whopAccentSwatch(accent: Exclude<WhopAccentColor, 'auto'>): string {\n return accent === 'gray' ? '#8d8d8d' : WHOP_ACCENT_SWATCHES[accent];\n}\n\nfunction hexRgb(hex: string): [number, number, number] | null {\n const raw = hex.trim().replace(/^#/, '');\n const full = raw.length === 3 ? raw.replace(/./g, (c) => c + c) : raw;\n if (!/^[0-9a-f]{6}$/i.test(full)) return null;\n const n = Number.parseInt(full, 16);\n return [(n >> 16) & 255, (n >> 8) & 255, n & 255];\n}\n\n/** OKLab, so \"nearest\" means nearest to the eye rather than in RGB. */\nfunction oklab([r, g, b]: [number, number, number]): [number, number, number] {\n const lin = (c: number) => {\n const v = c / 255;\n return v <= 0.04045 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4;\n };\n const [lr, lg, lb] = [lin(r), lin(g), lin(b)];\n const l = Math.cbrt(0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb);\n const m = Math.cbrt(0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb);\n const s = Math.cbrt(0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb);\n return [\n 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,\n 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,\n 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s,\n ];\n}\n\n/**\n * The Whop palette nearest a colour. A colour with almost no chroma (black,\n * white, greys) is `gray`; an unreadable one is `blue`, Whop's own default.\n */\nexport function nearestWhopAccent(hex: string): Exclude<WhopAccentColor, 'auto'> {\n const rgb = hexRgb(hex);\n if (!rgb) return 'blue';\n const [L, a, b] = oklab(rgb);\n if (Math.hypot(a, b) < 0.04) return 'gray';\n let best: Exclude<WhopAccentColor, 'auto' | 'gray'> = 'blue';\n let bestDistance = Number.POSITIVE_INFINITY;\n for (const [name, swatch] of Object.entries(WHOP_ACCENT_SWATCHES) as [\n Exclude<WhopAccentColor, 'auto' | 'gray'>,\n string,\n ][]) {\n const swatchRgb = hexRgb(swatch);\n if (!swatchRgb) continue;\n const [sL, sa, sb] = oklab(swatchRgb);\n // Hue and chroma decide the palette; lightness counts for less, since\n // Whop draws each palette in several steps.\n const distance = Math.hypot((L - sL) * 0.5, a - sa, b - sb);\n if (distance < bestDistance) {\n bestDistance = distance;\n best = name;\n }\n }\n return best;\n}\n\n/** The accent Whop is actually given. */\nexport function resolveWhopAccent(\n accent: WhopAccentColor,\n primaryHex: string,\n): Exclude<WhopAccentColor, 'auto'> {\n return accent === 'auto' ? nearestWhopAccent(primaryHex) : accent;\n}\n\n/** Whop's email field `labelMode`: a caption above the box, or inside it until typed. */\nexport const WHOP_EMAIL_LABELS = ['above', 'floating'] as const;\nexport type WhopEmailLabel = (typeof WHOP_EMAIL_LABELS)[number];\n\n/**\n * Whop's `theme.grayColor`: the neutral scale its borders, muted text and\n * backgrounds are drawn in. `auto` lets Whop match it to the accent.\n */\nexport const WHOP_GRAY_COLORS = [\n 'auto',\n 'gray',\n 'mauve',\n 'slate',\n 'sage',\n 'olive',\n 'sand',\n] as const;\nexport type WhopGrayColor = (typeof WHOP_GRAY_COLORS)[number];\n\n/**\n * How much billing address Whop asks a card for. `minimal` is Whop's\n * minimum for a card: name, country and postal code. `full` asks the\n * complete address in the country's own format, for address checks.\n */\nexport const WHOP_BILLING_DETAILS = ['minimal', 'full'] as const;\nexport type WhopBillingDetails = (typeof WHOP_BILLING_DETAILS)[number];\n\n/**\n * The corners of Whop's form: its fields, the joined card and address groups,\n * the method list and the tiles. `checkout` follows the checkout's own input\n * radius (`radiusInput`); the rest name a radius of the same scale.\n */\nexport const WHOP_RADII = ['checkout', 'square', 'small', 'medium', 'large'] as const;\nexport type WhopRadius = (typeof WHOP_RADII)[number];\n\n/**\n * Whether Whop's fields, groups and method list keep the soft drop shadow\n * Whop draws under them, or lie flat like the checkout's own fields.\n */\nexport const WHOP_SHADOWS = ['none', 'soft'] as const;\nexport type WhopShadow = (typeof WHOP_SHADOWS)[number];\n\n/**\n * How the method list marks the chosen method: Whop's radio dots, the dots\n * with the chosen method tinted in the brand colour, or the tint alone.\n * Tiles always ring the chosen tile.\n */\nexport const WHOP_SELECTIONS = ['radio_tint', 'radio', 'tint'] as const;\nexport type WhopSelection = (typeof WHOP_SELECTIONS)[number];\n\n/** The Whop settings a look sets together. Colours stay the shop's. */\nexport interface WhopLookSettings {\n whopCardPreset: WhopCardPreset;\n // Every look asks Whop's card minimum: a look is a design, and the full\n // address is a separate choice that names no look.\n whopBillingDetails: WhopBillingDetails;\n whopSeparated: boolean;\n whopFieldChrome: CardFieldChrome;\n whopEmailLabel: WhopEmailLabel;\n whopRadius: WhopRadius;\n whopShadow: WhopShadow;\n whopMethodIcons: boolean;\n whopSelection: WhopSelection;\n}\n\n/**\n * Curated looks for the Whop form: each sets the form, the chrome, the\n * captions, the corners, the shadow and how the chosen method is marked, as\n * one choice the dashboard offers before the single settings. `standard` is\n * the default branding's own look.\n */\nexport const WHOP_LOOKS = [\n 'standard',\n 'clean',\n 'whop',\n 'cards',\n 'tiles',\n 'soft',\n 'minimal',\n] as const;\nexport type WhopLook = (typeof WHOP_LOOKS)[number];\n\nexport const WHOP_LOOK_SETTINGS: Readonly<Record<WhopLook, Readonly<WhopLookSettings>>> = {\n // The fewest fields Whop takes a card with, laid out as Stripe's card\n // form: the email, the number above expiry and code, then one group of\n // name, country (preselected) and postal code. Whop refuses a card without\n // any of them. The wallets are the shop's own express buttons.\n standard: {\n whopCardPreset: 'card_stacked',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'checkout',\n whopShadow: 'soft',\n whopMethodIcons: true,\n whopSelection: 'radio_tint',\n },\n // Flat fields like the checkout's own, the method list with the chosen\n // method tinted beside its radio.\n clean: {\n whopCardPreset: 'accordion',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'checkout',\n whopShadow: 'none',\n whopMethodIcons: true,\n whopSelection: 'radio_tint',\n },\n // Whop's own form: its corners, its soft shadow, its radio dots.\n whop: {\n whopCardPreset: 'accordion',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'small',\n whopShadow: 'soft',\n whopMethodIcons: true,\n whopSelection: 'radio',\n },\n // Each method its own raised card, the chosen one tinted, no dots.\n cards: {\n whopCardPreset: 'accordion',\n whopBillingDetails: 'minimal',\n whopSeparated: true,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'medium',\n whopShadow: 'soft',\n whopMethodIcons: true,\n whopSelection: 'tint',\n },\n // The methods as tiles above the card's fields.\n tiles: {\n whopCardPreset: 'tiles',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'outlined',\n whopEmailLabel: 'above',\n whopRadius: 'checkout',\n whopShadow: 'none',\n whopMethodIcons: true,\n whopSelection: 'radio_tint',\n },\n // Filled fields with the captions inside, round corners.\n soft: {\n whopCardPreset: 'accordion',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'filled',\n whopEmailLabel: 'floating',\n whopRadius: 'large',\n whopShadow: 'none',\n whopMethodIcons: false,\n whopSelection: 'radio_tint',\n },\n // The card alone on one line, underlined, captions inside.\n minimal: {\n whopCardPreset: 'card_compact',\n whopBillingDetails: 'minimal',\n whopSeparated: false,\n whopFieldChrome: 'underline',\n whopEmailLabel: 'floating',\n whopRadius: 'square',\n whopShadow: 'none',\n whopMethodIcons: true,\n whopSelection: 'radio_tint',\n },\n};\n\n/** The look a branding's Whop settings match exactly, or `null` for a custom mix. */\nexport function matchWhopLook(settings: WhopLookSettings): WhopLook | null {\n const keys = Object.keys(WHOP_LOOK_SETTINGS.clean) as (keyof WhopLookSettings)[];\n return (\n WHOP_LOOKS.find((look) =>\n keys.every((key) => WHOP_LOOK_SETTINGS[look][key] === settings[key]),\n ) ?? null\n );\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/home/anes/delo-payment/delopay-typescript-sdk/dist/chunk-GW7IHYXR.cjs","../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;AACV,MAAA;AACuD,MAAA;AAChC,MAAA;AACzB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAM4D,EAAA;AAC9C,IAAA;AACV,MAAA;AACuD,MAAA;AACzD,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAM8D,EAAA;AACc,IAAA;AAC5E,EAAA;AAAA;AAAA;AAAA;AAAA;AAM6F,EAAA;AACjB,IAAA;AAClE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUqC,EAAA;AACuC,IAAA;AAClE,MAAA;AACP,IAAA;AACH,EAAA;AACF;AD9C8E;AACA;AACA;AACA","file":"/home/anes/delo-payment/delopay-typescript-sdk/dist/chunk-GW7IHYXR.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\nimport type {\n BuyerConversationAssign,\n BuyerConversationAttachment,\n BuyerConversationDetail,\n BuyerConversationList,\n BuyerConversationListQuery,\n BuyerConversationMessage,\n BuyerConversationMessageCreate,\n BuyerConversationMessagesQuery,\n BuyerConversationNote,\n BuyerConversationNoteCreate,\n BuyerConversationStart,\n BuyerConversationStatusUpdate,\n BuyerConversationSummary,\n} from '../types';\nimport { csvQuery } from '../listQuery';\n\n/**\n * Conversations between buyers and the shop's team. A buyer writes from the\n * buyer account or a shop's portal; the team reads and answers here. There is\n * one conversation per buyer, shop and mode, whoever on the team answers.\n *\n * Every route needs a dashboard session. The `BuyerConversations` area at\n * `Read` lists and opens conversations, `Edit` answers, starts one and adds\n * internal notes and uploads files for an answer, and `Write` assigns, closes and reopens. A caller scoped to one shop reaches\n * that shop's conversations only. Answers carry the team member's first name\n * to the buyer, never more of their name.\n */\nexport class BuyerConversations {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * One page of the inbox, the latest message first unless `sort_by` says\n * otherwise, filtered by shop, status (one or several), assignee, mode or\n * buyer. `GET /buyer-conversations`\n */\n async list(params?: BuyerConversationListQuery): Promise<BuyerConversationList> {\n return this.request('GET', '/buyer-conversations', {\n query: csvQuery(params, ['status']),\n });\n }\n\n /**\n * Starts the conversation with a buyer at one shop, or adds to the one that\n * exists, with a first message. `POST /buyer-conversations`\n */\n async start(params: BuyerConversationStart): Promise<BuyerConversationDetail> {\n return this.request('POST', '/buyer-conversations', { body: params });\n }\n\n /**\n * One conversation and its newest messages, oldest first; `before` pages\n * back. `GET /buyer-conversations/{id}`\n */\n async retrieve(\n id: string,\n params?: BuyerConversationMessagesQuery,\n ): Promise<BuyerConversationDetail> {\n return this.request('GET', `/buyer-conversations/${encodeURIComponent(id)}`, {\n query: params as Record<string, string | number | null | undefined>,\n });\n }\n\n /**\n * A team member's answer. A closed conversation refuses it.\n * `POST /buyer-conversations/{id}/messages`\n */\n async reply(\n id: string,\n params: BuyerConversationMessageCreate,\n ): Promise<BuyerConversationMessage> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/messages`, {\n body: params,\n });\n }\n\n /**\n * A team member's internal note. Only the team reads it: the buyer never\n * sees a note, and a note does not move the conversation or mark it unread.\n * A closed conversation takes notes as well.\n * `POST /buyer-conversations/{id}/notes`\n */\n async addNote(id: string, params: BuyerConversationNoteCreate): Promise<BuyerConversationNote> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/notes`, {\n body: params,\n });\n }\n\n /**\n * Upload a file for the caller's next answer, under the shop's attachment\n * rules (`attachment_rules` on the conversation). It belongs to the caller\n * until an answer names it in `attachments`; one no answer took within a\n * day is cleared. Uploading again with the same `clientUploadId` returns\n * the file the first upload stored.\n * `POST /buyer-conversation-files/{conversation}`\n */\n async uploadFile(\n id: string,\n file: Blob,\n clientUploadId: string,\n fileName?: string,\n ): Promise<BuyerConversationAttachment> {\n const form = new FormData();\n form.append('client_upload_id', clientUploadId);\n if (fileName === undefined) form.append('file', file);\n else form.append('file', file, fileName);\n return this.request('POST', `/buyer-conversation-files/${encodeURIComponent(id)}`, {\n body: form,\n });\n }\n\n /**\n * Download a file a message of the conversation carries.\n * `GET /buyer-conversation-files/{conversation}/{file}`\n */\n async downloadFile(id: string, fileId: string): Promise<Blob> {\n return this.request(\n 'GET',\n `/buyer-conversation-files/${encodeURIComponent(id)}/${encodeURIComponent(fileId)}`,\n { responseType: 'blob' },\n );\n }\n\n /**\n * Remove a file the caller uploaded that no answer took.\n * `DELETE /buyer-conversation-files/{conversation}/{file}`\n */\n async removeFile(id: string, fileId: string): Promise<void> {\n return this.request(\n 'DELETE',\n `/buyer-conversation-files/${encodeURIComponent(id)}/${encodeURIComponent(fileId)}`,\n );\n }\n\n /**\n * The team has read the conversation up to its last accepted message.\n * `POST /buyer-conversations/{id}/read`\n */\n async markRead(id: string): Promise<BuyerConversationSummary> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/read`);\n }\n\n /**\n * Hands the conversation to a team member, to the caller with `me`, or to\n * nobody with `null`. `POST /buyer-conversations/{id}/assign`\n */\n async assign(id: string, params: BuyerConversationAssign): Promise<BuyerConversationSummary> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/assign`, {\n body: params,\n });\n }\n\n /**\n * Closes or reopens the conversation. Closing moves no money and decides\n * no case; it stops new messages until reopened.\n * `POST /buyer-conversations/{id}/status`\n */\n async setStatus(\n id: string,\n params: BuyerConversationStatusUpdate,\n ): Promise<BuyerConversationSummary> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/status`, {\n body: params,\n });\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-GWSVQXEY.cjs","../src/resources/settlement.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACiGO,SAAS,kBAAA,CAAmB,MAAA,EAAgE;AACjG,EAAA,OAAO,wCAAA;AAAA,IACL;AAAA,MACE,SAAA,EAAW,MAAA,CAAO,SAAA;AAAA,MAClB,UAAA,EAAY,MAAA,CAAO,UAAA;AAAA,MACnB,KAA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AA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAe6B,EAAA;AACC,IAAA;AACpB,MAAA;AACH,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWyC,EAAA;AACZ,IAAA;AACgC,MAAA;AACtD,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAc6B,EAAA;AACf,IAAA;AACV,MAAA;AACwD,MAAA;AACvB,MAAA;AACnC,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAW6B,EAAA;AACf,IAAA;AACV,MAAA;AACwD,MAAA;AACvB,MAAA;AACnC,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAW6C,EAAA;AAChB,IAAA;AAC+B,MAAA;AACrD,MAAA;AACJ,IAAA;AACH,EAAA;AACF;ADhXgE;AACA;AACA;AACA;AACA;AACA;AACA","file":"/tmp/w3-sdk-publish-0501/delopay-typescript-sdk/dist/chunk-GWSVQXEY.cjs","sourcesContent":[null,"import type {\n NativeReserve,\n NativeReserveCreateRequest,\n NativeReserveListResponse,\n NativeReserveMovement,\n NativeReserveOverview,\n NativeReserveOverviewRequest,\n NativeReserveReleaseRequest,\n NativeReserveUpdateRequest,\n NativeSettlementPreviewRequest,\n NativeSettlementPreviewResponse,\n NativeSettlementReportCreateRequest,\n NativeSettlementPeriodReportRequest,\n NativeSettlementCombinedRequest,\n NativeSettlementCombinedResponse,\n NativeSettlementReport,\n NativeSettlementReportExport,\n NativeSettlementListRequest,\n NativeReportViewListRequest,\n NativeSettlementReportListResponse,\n NativeSettlementImportDetail,\n NativeSettlementImportList,\n NativeSettlementImportListParams,\n NativeSettlementImportRequest,\n NativeSettlementLateEntry,\n NativeSettlementLateEntryCreateRequest,\n NativeSettlementLateEntryList,\n NativeSettlementLateEntryListParams,\n NativeSettlementPayoutCreateRequest,\n NativeSettlementPayout,\n NativeSettlementPayoutListResponse,\n NativeSettlementFeeRefreshRequest,\n NativeSettlementFeeRefreshResponse,\n NativeSettlementPdfRequest,\n NativeShopReport,\n NativeShopReportListRequest,\n NativeShopReportListResponse,\n NativeShopReserveListRequest,\n NativeShopPayoutListRequest,\n NativeShopReserveListResponse,\n ProcessorCostEventsRequest,\n ProcessorCostEventsResponse,\n ProcessorCostPeriodRequest,\n ProcessorCostPeriodResponse,\n ProviderHoldsRequest,\n ProviderHoldsResponse,\n ProviderPayoutsRequest,\n ProviderPayoutsResponse,\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 ShopTermConsentUpdateRequest,\n ShopTermConsentResponse,\n ShopTermProposalRequest,\n ShopTermFeeChange,\n ShopTermSettlementChange,\n ShopTermBuilderChange,\n ShopTermProposal,\n ShopTermProposalListRequest,\n ShopTermProposalListResponse,\n ShopTermProposalDecisionRequest,\n ShopTermConsentEventListRequest,\n ShopTermConsentEventListResponse,\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. */\nexport function 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\nexport function exportHeaders(\n options: RequestExtras | undefined,\n accept: string,\n): 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 * Earned, received, not-received, returned and unmatched money per payment\n * provider account and currency for one period, with the reported bank payout\n * batches listed.\n *\n * Give both `from` and `to`, or neither for the running calendar month.\n *\n * `GET /settlement/provider-payouts`\n */\n async providerPayouts(\n params?: ProviderPayoutsRequest,\n options?: RequestExtras,\n ): Promise<ProviderPayoutsResponse> {\n return this.request('GET', '/settlement/provider-payouts', {\n query: {\n profile_id: params?.profile_id,\n currency: params?.currency,\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 /**\n * Freeze a report for exactly one ended statement period of a shop, under\n * its saved settlement structure. Requires settlement edit permission. A\n * period that is not in the shop's plan or has not ended yet is refused.\n * Reuse the same idempotency key when retrying the same request.\n *\n * `POST /settlement/native/reports/period`\n */\n async createNativePeriodReport(\n params: NativeSettlementPeriodReportRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementReport> {\n return this.request('POST', '/settlement/native/reports/period', {\n body: params,\n ...options,\n bodyIdempotencyKey: params.idempotency_key,\n });\n }\n\n /**\n * Add up the shops' period reports for one window and currency. Reads\n * only. A shop whose period crosses the window or lacks a report is listed\n * with that status and left out of the totals.\n *\n * `POST /settlement/native/reports/combined`\n */\n async combineNativeReports(\n params: NativeSettlementCombinedRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementCombinedResponse> {\n return this.request('POST', '/settlement/native/reports/combined', {\n body: params,\n ...options,\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 * Check an import of past periods and opening balances: the same checks as\n * the import, nothing written. Requires settlement manage permission.\n */\n async previewNativeImport(\n params: NativeSettlementImportRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementImportDetail> {\n return this.request('POST', '/settlement/native/imports/preview', {\n body: params,\n ...options,\n });\n }\n\n /**\n * Import past periods and the balances that carry into DeloPay. Imported\n * figures are kept apart from what DeloPay recorded; the first report of\n * each shop carries the opening balances forward. The same idempotency key\n * with the same request answers the import already made; with another\n * request it is refused. A period that overlaps an import, statement or\n * report already made is refused with a 412.\n */\n async createNativeImport(\n params: NativeSettlementImportRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementImportDetail> {\n return this.request('POST', '/settlement/native/imports', {\n body: params,\n ...options,\n bodyIdempotencyKey: params.idempotency_key,\n });\n }\n\n /** The merchant's imports of one mode, newest first. */\n async listNativeImports(\n params: NativeSettlementImportListParams,\n options?: RequestExtras,\n ): Promise<NativeSettlementImportList> {\n return this.request('GET', '/settlement/native/imports', {\n query: { test_mode: params.test_mode, limit: params.limit, offset: params.offset },\n ...options,\n });\n }\n\n /** One import and what it holds. An undone import holds nothing any more. */\n async retrieveNativeImport(\n importId: string,\n options?: RequestExtras,\n ): Promise<NativeSettlementImportDetail> {\n return this.request(\n 'GET',\n `/settlement/native/imports/${encodeURIComponent(importId)}`,\n options,\n );\n }\n\n /**\n * Undo an import as a whole. Refused with a 412 once a stored report built\n * on it; undoing an undone import answers it unchanged.\n */\n async undoNativeImport(\n importId: string,\n options?: RequestExtras,\n ): Promise<NativeSettlementImportDetail> {\n return this.request(\n 'POST',\n `/settlement/native/imports/${encodeURIComponent(importId)}/undo`,\n options,\n );\n }\n\n /**\n * Record a cost or income of a settled period. The next report of the shop,\n * currency and mode starting at or after the period's end closes with it,\n * moving only the amount payable; reports already made never change. A shop\n * without a statement structure has its next report refused until the\n * entry is settled or removed.\n *\n * Never retried, and a caller's `Idempotency-Key` is refused: the API does\n * not deduplicate late entries, so a replayed request would book a second\n * one.\n */\n async createNativeLateEntry(\n params: NativeSettlementLateEntryCreateRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementLateEntry> {\n return this.request('POST', '/settlement/native/late-entries', {\n body: params,\n ...options,\n bodyIdempotencyKey: null,\n });\n }\n\n /** The merchant's late entries of one mode, newest first. */\n async listNativeLateEntries(\n params: NativeSettlementLateEntryListParams,\n options?: RequestExtras,\n ): Promise<NativeSettlementLateEntryList> {\n return this.request('GET', '/settlement/native/late-entries', {\n query: {\n test_mode: params.test_mode,\n profile_id: params.profile_id,\n open: params.open,\n limit: params.limit,\n offset: params.offset,\n },\n ...options,\n });\n }\n\n /** Remove a late entry no report took yet; a taken one is refused with a 412. */\n async deleteNativeLateEntry(\n entryId: string,\n options?: RequestExtras,\n ): Promise<NativeSettlementLateEntry> {\n return this.request(\n 'DELETE',\n `/settlement/native/late-entries/${encodeURIComponent(entryId)}`,\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 * The period reports of the shop a shop reader's role is bound to, newest\n * first, without any figure. A merchant-level reader is refused (403) and\n * reads the full reports with `listNativeReports`; so is a shop whose\n * merchant does not share settlement with it.\n *\n * `GET /settlement/native/shop/reports`\n */\n async listShopNativeReports(\n params: NativeShopReportListRequest,\n options?: RequestExtras,\n ): Promise<NativeShopReportListResponse> {\n return this.request('GET', '/settlement/native/shop/reports', {\n query: {\n currency: params.currency,\n test_mode: params.test_mode,\n ...(params.limit != null ? { limit: params.limit } : {}),\n ...(params.offset != null ? { offset: params.offset } : {}),\n },\n ...options,\n });\n }\n\n /**\n * One of the shop's period reports as a shop reader sees it: the items the\n * merchant hides are withheld, as frozen with the report.\n *\n * `GET /settlement/native/shop/reports/{id}`\n */\n async retrieveShopNativeReport(id: string, options?: RequestExtras): Promise<NativeShopReport> {\n return this.request('GET', `/settlement/native/shop/reports/${encodeURIComponent(id)}`, {\n ...options,\n });\n }\n\n /**\n * The period reports a role limited to some settlement figures may open,\n * newest first, without any figure. Needs the settlement totals permission;\n * a role that reads every figure uses `listNativeReports` instead.\n *\n * `GET /settlement/native/views`\n */\n async listNativeReportViews(\n params: NativeReportViewListRequest,\n options?: RequestExtras,\n ): Promise<NativeShopReportListResponse> {\n return this.request('GET', '/settlement/native/views', {\n query: nativeListQuery(params),\n ...options,\n });\n }\n\n /**\n * One period report as the caller's role sees it: an item the role may not\n * see keeps its place as withheld, no subtotal or rate is shown once\n * anything is withheld, and the amount payable is always the real one.\n *\n * `GET /settlement/native/reports/{id}/view`\n */\n async retrieveNativeReportView(id: string, options?: RequestExtras): Promise<NativeShopReport> {\n return this.request('GET', `/settlement/native/reports/${encodeURIComponent(id)}/view`, {\n ...options,\n });\n }\n\n /**\n * The PDF of the report as the caller's role sees it, rendered from that\n * view alone. Needs the download permission as well.\n *\n * `GET /settlement/native/reports/{id}/view/pdf`\n */\n async downloadNativeReportViewPdf(id: string, options?: RequestExtras): Promise<Blob> {\n return this.request('GET', `/settlement/native/reports/${encodeURIComponent(id)}/view/pdf`, {\n responseType: 'blob',\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. `balance` is the\n * shop's transfer balance in this currency and mode, whatever the page.\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 /**\n * The merchant's stored reserves: what a statement structure's reserve item\n * holds, for how long and when it is released.\n *\n * `GET /settlement/native/reserves`\n */\n async listNativeReserves(options?: RequestExtras): Promise<NativeReserveListResponse> {\n return this.request('GET', '/settlement/native/reserves', { ...options });\n }\n\n /**\n * The transfers recorded to the reader's own shop, for a reader whose role\n * is bound to one shop. Earliest value date first. A transfer may name the\n * period report it pays. Carries no `balance`: the merchant's shop view of\n * a report may hide what it made payable.\n *\n * `GET /settlement/native/shop/payouts`\n */\n async listShopNativePayouts(\n params: NativeShopPayoutListRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementPayoutListResponse> {\n return this.request('GET', '/settlement/native/shop/payouts', {\n query: {\n currency: params.currency,\n test_mode: params.test_mode,\n limit: params.limit,\n offset: params.offset,\n },\n ...options,\n });\n }\n\n /**\n * What the shop's reserves hold for it, for a reader whose role is bound to\n * one shop: only reserves the merchant shows to shop readers, and only this\n * shop's held amounts and releases.\n *\n * `GET /settlement/native/shop/reserves`\n */\n async listShopNativeReserves(\n params: NativeShopReserveListRequest,\n options?: RequestExtras,\n ): Promise<NativeShopReserveListResponse> {\n return this.request('GET', '/settlement/native/shop/reserves', {\n query: { currency: params.currency, test_mode: params.test_mode },\n ...options,\n });\n }\n\n /**\n * Store a reserve for a statement structure's reserve item, at the merchant,\n * one of its projects or one of its shops. Requires settlement edit\n * permission. One reserve per item and level; a second is refused with 412.\n *\n * `POST /settlement/native/reserves`\n */\n async createNativeReserve(\n params: NativeReserveCreateRequest,\n options?: RequestExtras,\n ): Promise<NativeReserve> {\n return this.request('POST', '/settlement/native/reserves', { body: params, ...options });\n }\n\n /**\n * Change a stored reserve. Amounts already held keep the rule they were held\n * under. Send the `modified_at` you read; an edit of an older version is\n * refused with 412.\n *\n * `PUT /settlement/native/reserves/{id}`\n */\n async updateNativeReserve(\n reserveId: string,\n params: NativeReserveUpdateRequest,\n options?: RequestExtras,\n ): Promise<NativeReserve> {\n return this.request('PUT', `/settlement/native/reserves/${encodeURIComponent(reserveId)}`, {\n body: params,\n ...options,\n });\n }\n\n /**\n * What a reserve holds in one currency and mode: its balance, each held\n * amount with the rule it keeps, and every release.\n *\n * `GET /settlement/native/reserves/{id}/overview`\n */\n async nativeReserveOverview(\n reserveId: string,\n params: NativeReserveOverviewRequest,\n options?: RequestExtras,\n ): Promise<NativeReserveOverview> {\n return this.request(\n 'GET',\n `/settlement/native/reserves/${encodeURIComponent(reserveId)}/overview`,\n {\n query: { currency: params.currency, test_mode: params.test_mode },\n ...options,\n },\n );\n }\n\n /**\n * Release part of a held amount by hand, before it is due. Requires\n * settlement write permission. Reuse the same `release_key` when retrying:\n * the same key and amount answer with the release already made.\n *\n * `POST /settlement/native/reserves/{id}/lots/{lot_id}/release`\n */\n async releaseNativeReserveEarly(\n reserveId: string,\n lotId: string,\n params: NativeReserveReleaseRequest,\n options?: RequestExtras,\n ): Promise<NativeReserveMovement> {\n return this.request(\n 'POST',\n `/settlement/native/reserves/${encodeURIComponent(reserveId)}/lots/${encodeURIComponent(lotId)}/release`,\n { body: params, ...options },\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 /**\n * Bind one shop's money terms to the shop party's consent. From then on the\n * host changes them only by proposal. Releasing the requirement is itself a\n * proposal (`consent_release`).\n *\n * `POST /settlement/shops/terms/consent`\n */\n async bindShopTermConsent(\n params: ShopTermConsentUpdateRequest,\n options?: RequestExtras,\n ): Promise<ShopTermConsentResponse> {\n return this.request('POST', '/settlement/shops/terms/consent', { body: params, ...options });\n }\n\n /**\n * Propose a change to a bound shop's hosting fees: a schedule created,\n * updated or deleted, or the fee rule program set or removed.\n *\n * `POST /settlement/shops/terms/fee-proposals`\n */\n async proposeShopFeeChange(\n params: ShopTermProposalRequest<ShopTermFeeChange>,\n options?: RequestExtras,\n ): Promise<ShopTermProposal> {\n return this.request('POST', '/settlement/shops/terms/fee-proposals', {\n body: params,\n ...options,\n });\n }\n\n /**\n * Propose a change to a bound shop's settlement terms: whether it carries the\n * processor's fee (`cost_passthrough`), or releasing the consent requirement\n * (`consent_release`).\n *\n * `POST /settlement/shops/terms/settlement-proposals`\n */\n async proposeShopSettlementChange(\n params: ShopTermProposalRequest<ShopTermSettlementChange>,\n options?: RequestExtras,\n ): Promise<ShopTermProposal> {\n return this.request('POST', '/settlement/shops/terms/settlement-proposals', {\n body: params,\n ...options,\n });\n }\n\n /**\n * Propose a change to a bound shop's statement builder: its statement\n * structure, a stored reserve, or one report with recorded accrued shares\n * replaced. When the shop party accepts, the server tries to apply it; an\n * accepted proposal whose change could not be applied says so in\n * `execution_error`. Refused while the deployment does not cover the\n * builder by consent.\n *\n * `POST /settlement/shops/terms/builder-proposals`\n */\n async proposeShopBuilderChange(\n params: ShopTermProposalRequest<ShopTermBuilderChange>,\n options?: RequestExtras,\n ): Promise<ShopTermProposal> {\n return this.request('POST', '/settlement/shops/terms/builder-proposals', {\n body: params,\n ...options,\n });\n }\n\n /**\n * The proposals on this merchant's shops, read by both parties. A caller\n * bound to one shop sees only that shop's.\n *\n * `GET /settlement/shops/terms/proposals`\n */\n async listShopTermProposals(\n params?: ShopTermProposalListRequest,\n options?: RequestExtras,\n ): Promise<ShopTermProposalListResponse> {\n return this.request('GET', '/settlement/shops/terms/proposals', {\n query: { profile_id: params?.profile_id, status: params?.status, limit: params?.limit },\n ...options,\n });\n }\n\n /**\n * The shop party accepts a proposal, and the change is applied. Needs the\n * settlement consent permission in the shop party's own session. If applying\n * fails, the acceptance is still recorded and this rejects; the change may\n * or may not have landed, so re-read the proposal and the shop's terms.\n *\n * `POST /settlement/shops/terms/proposals/{proposalId}/accept`\n */\n async acceptShopTermProposal(\n proposalId: string,\n params?: ShopTermProposalDecisionRequest,\n options?: RequestExtras,\n ): Promise<ShopTermProposal> {\n return this.request(\n 'POST',\n `/settlement/shops/terms/proposals/${encodeURIComponent(proposalId)}/accept`,\n { body: params ?? {}, ...options },\n );\n }\n\n /**\n * The shop party declines a proposal. Final; nothing changes.\n *\n * `POST /settlement/shops/terms/proposals/{proposalId}/decline`\n */\n async declineShopTermProposal(\n proposalId: string,\n params?: ShopTermProposalDecisionRequest,\n options?: RequestExtras,\n ): Promise<ShopTermProposal> {\n return this.request(\n 'POST',\n `/settlement/shops/terms/proposals/${encodeURIComponent(proposalId)}/decline`,\n { body: params ?? {}, ...options },\n );\n }\n\n /**\n * A shop's consent record, newest first: binding, releases and each\n * proposal's way to being applied, each with the side that acted.\n *\n * `GET /settlement/shops/terms/consent-events`\n */\n async listShopTermConsentEvents(\n params?: ShopTermConsentEventListRequest,\n options?: RequestExtras,\n ): Promise<ShopTermConsentEventListResponse> {\n return this.request('GET', '/settlement/shops/terms/consent-events', {\n query: { profile_id: params?.profile_id, limit: params?.limit, cursor: params?.cursor },\n ...options,\n });\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["/home/anes/delo-payment/delopay-typescript-sdk/dist/chunk-GWSVQXEY.cjs","../src/resources/settlement.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACiGO,SAAS,kBAAA,CAAmB,MAAA,EAAgE;AACjG,EAAA,OAAO,wCAAA;AAAA,IACL;AAAA,MACE,SAAA,EAAW,MAAA,CAAO,SAAA;AAAA,MAClB,UAAA,EAAY,MAAA,CAAO,UAAA;AAAA,MACnB,KAAA,EAAO,MAAA,CAAO,KAAA;AAAA,MACd,MAAA,EAAQ,MAAA,CAAO,MAAA;AAAA,MACf,aAAA,EAAe,MAAA,CAAO,aAAA;AAAA,MACtB,WAAA,EAAa,MAAA,CAAO,WAAA;AAAA,MACpB,SAAA,EAAW,MAAA,CAAO,SAAA;AAAA,MAClB,OAAA,EAAS,MAAA,CAAO,OAAA;AAAA,MAChB,UAAA,EAAY,MAAA,CAAO;AAAA,IACrB,CAAA;AAAA,IACA,CAAC,eAAe;AAAA,EAClB,CAAA;AACF;AAGO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,MAAA;AACvB,MAAA;AACnC,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAW6B,EAAA;AACf,IAAA;AACV,MAAA;AACwD,MAAA;AACvB,MAAA;AACnC,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAW6C,EAAA;AAChB,IAAA;AAC+B,MAAA;AACrD,MAAA;AACJ,IAAA;AACH,EAAA;AACF;ADhXgE;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/anes/delo-payment/delopay-typescript-sdk/dist/chunk-GWSVQXEY.cjs","sourcesContent":[null,"import type {\n NativeReserve,\n NativeReserveCreateRequest,\n NativeReserveListResponse,\n NativeReserveMovement,\n NativeReserveOverview,\n NativeReserveOverviewRequest,\n NativeReserveReleaseRequest,\n NativeReserveUpdateRequest,\n NativeSettlementPreviewRequest,\n NativeSettlementPreviewResponse,\n NativeSettlementReportCreateRequest,\n NativeSettlementPeriodReportRequest,\n NativeSettlementCombinedRequest,\n NativeSettlementCombinedResponse,\n NativeSettlementReport,\n NativeSettlementReportExport,\n NativeSettlementListRequest,\n NativeReportViewListRequest,\n NativeSettlementReportListResponse,\n NativeSettlementImportDetail,\n NativeSettlementImportList,\n NativeSettlementImportListParams,\n NativeSettlementImportRequest,\n NativeSettlementLateEntry,\n NativeSettlementLateEntryCreateRequest,\n NativeSettlementLateEntryList,\n NativeSettlementLateEntryListParams,\n NativeSettlementPayoutCreateRequest,\n NativeSettlementPayout,\n NativeSettlementPayoutListResponse,\n NativeSettlementFeeRefreshRequest,\n NativeSettlementFeeRefreshResponse,\n NativeSettlementPdfRequest,\n NativeShopReport,\n NativeShopReportListRequest,\n NativeShopReportListResponse,\n NativeShopReserveListRequest,\n NativeShopPayoutListRequest,\n NativeShopReserveListResponse,\n ProcessorCostEventsRequest,\n ProcessorCostEventsResponse,\n ProcessorCostPeriodRequest,\n ProcessorCostPeriodResponse,\n ProviderHoldsRequest,\n ProviderHoldsResponse,\n ProviderPayoutsRequest,\n ProviderPayoutsResponse,\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 ShopTermConsentUpdateRequest,\n ShopTermConsentResponse,\n ShopTermProposalRequest,\n ShopTermFeeChange,\n ShopTermSettlementChange,\n ShopTermBuilderChange,\n ShopTermProposal,\n ShopTermProposalListRequest,\n ShopTermProposalListResponse,\n ShopTermProposalDecisionRequest,\n ShopTermConsentEventListRequest,\n ShopTermConsentEventListResponse,\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. */\nexport function 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\nexport function exportHeaders(\n options: RequestExtras | undefined,\n accept: string,\n): 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 * Earned, received, not-received, returned and unmatched money per payment\n * provider account and currency for one period, with the reported bank payout\n * batches listed.\n *\n * Give both `from` and `to`, or neither for the running calendar month.\n *\n * `GET /settlement/provider-payouts`\n */\n async providerPayouts(\n params?: ProviderPayoutsRequest,\n options?: RequestExtras,\n ): Promise<ProviderPayoutsResponse> {\n return this.request('GET', '/settlement/provider-payouts', {\n query: {\n profile_id: params?.profile_id,\n currency: params?.currency,\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 /**\n * Freeze a report for exactly one ended statement period of a shop, under\n * its saved settlement structure. Requires settlement edit permission. A\n * period that is not in the shop's plan or has not ended yet is refused.\n * Reuse the same idempotency key when retrying the same request.\n *\n * `POST /settlement/native/reports/period`\n */\n async createNativePeriodReport(\n params: NativeSettlementPeriodReportRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementReport> {\n return this.request('POST', '/settlement/native/reports/period', {\n body: params,\n ...options,\n bodyIdempotencyKey: params.idempotency_key,\n });\n }\n\n /**\n * Add up the shops' period reports for one window and currency. Reads\n * only. A shop whose period crosses the window or lacks a report is listed\n * with that status and left out of the totals.\n *\n * `POST /settlement/native/reports/combined`\n */\n async combineNativeReports(\n params: NativeSettlementCombinedRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementCombinedResponse> {\n return this.request('POST', '/settlement/native/reports/combined', {\n body: params,\n ...options,\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 * Check an import of past periods and opening balances: the same checks as\n * the import, nothing written. Requires settlement manage permission.\n */\n async previewNativeImport(\n params: NativeSettlementImportRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementImportDetail> {\n return this.request('POST', '/settlement/native/imports/preview', {\n body: params,\n ...options,\n });\n }\n\n /**\n * Import past periods and the balances that carry into DeloPay. Imported\n * figures are kept apart from what DeloPay recorded; the first report of\n * each shop carries the opening balances forward. The same idempotency key\n * with the same request answers the import already made; with another\n * request it is refused. A period that overlaps an import, statement or\n * report already made is refused with a 412.\n */\n async createNativeImport(\n params: NativeSettlementImportRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementImportDetail> {\n return this.request('POST', '/settlement/native/imports', {\n body: params,\n ...options,\n bodyIdempotencyKey: params.idempotency_key,\n });\n }\n\n /** The merchant's imports of one mode, newest first. */\n async listNativeImports(\n params: NativeSettlementImportListParams,\n options?: RequestExtras,\n ): Promise<NativeSettlementImportList> {\n return this.request('GET', '/settlement/native/imports', {\n query: { test_mode: params.test_mode, limit: params.limit, offset: params.offset },\n ...options,\n });\n }\n\n /** One import and what it holds. An undone import holds nothing any more. */\n async retrieveNativeImport(\n importId: string,\n options?: RequestExtras,\n ): Promise<NativeSettlementImportDetail> {\n return this.request(\n 'GET',\n `/settlement/native/imports/${encodeURIComponent(importId)}`,\n options,\n );\n }\n\n /**\n * Undo an import as a whole. Refused with a 412 once a stored report built\n * on it; undoing an undone import answers it unchanged.\n */\n async undoNativeImport(\n importId: string,\n options?: RequestExtras,\n ): Promise<NativeSettlementImportDetail> {\n return this.request(\n 'POST',\n `/settlement/native/imports/${encodeURIComponent(importId)}/undo`,\n options,\n );\n }\n\n /**\n * Record a cost or income of a settled period. The next report of the shop,\n * currency and mode starting at or after the period's end closes with it,\n * moving only the amount payable; reports already made never change. A shop\n * without a statement structure has its next report refused until the\n * entry is settled or removed.\n *\n * Never retried, and a caller's `Idempotency-Key` is refused: the API does\n * not deduplicate late entries, so a replayed request would book a second\n * one.\n */\n async createNativeLateEntry(\n params: NativeSettlementLateEntryCreateRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementLateEntry> {\n return this.request('POST', '/settlement/native/late-entries', {\n body: params,\n ...options,\n bodyIdempotencyKey: null,\n });\n }\n\n /** The merchant's late entries of one mode, newest first. */\n async listNativeLateEntries(\n params: NativeSettlementLateEntryListParams,\n options?: RequestExtras,\n ): Promise<NativeSettlementLateEntryList> {\n return this.request('GET', '/settlement/native/late-entries', {\n query: {\n test_mode: params.test_mode,\n profile_id: params.profile_id,\n open: params.open,\n limit: params.limit,\n offset: params.offset,\n },\n ...options,\n });\n }\n\n /** Remove a late entry no report took yet; a taken one is refused with a 412. */\n async deleteNativeLateEntry(\n entryId: string,\n options?: RequestExtras,\n ): Promise<NativeSettlementLateEntry> {\n return this.request(\n 'DELETE',\n `/settlement/native/late-entries/${encodeURIComponent(entryId)}`,\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 * The period reports of the shop a shop reader's role is bound to, newest\n * first, without any figure. A merchant-level reader is refused (403) and\n * reads the full reports with `listNativeReports`; so is a shop whose\n * merchant does not share settlement with it.\n *\n * `GET /settlement/native/shop/reports`\n */\n async listShopNativeReports(\n params: NativeShopReportListRequest,\n options?: RequestExtras,\n ): Promise<NativeShopReportListResponse> {\n return this.request('GET', '/settlement/native/shop/reports', {\n query: {\n currency: params.currency,\n test_mode: params.test_mode,\n ...(params.limit != null ? { limit: params.limit } : {}),\n ...(params.offset != null ? { offset: params.offset } : {}),\n },\n ...options,\n });\n }\n\n /**\n * One of the shop's period reports as a shop reader sees it: the items the\n * merchant hides are withheld, as frozen with the report.\n *\n * `GET /settlement/native/shop/reports/{id}`\n */\n async retrieveShopNativeReport(id: string, options?: RequestExtras): Promise<NativeShopReport> {\n return this.request('GET', `/settlement/native/shop/reports/${encodeURIComponent(id)}`, {\n ...options,\n });\n }\n\n /**\n * The period reports a role limited to some settlement figures may open,\n * newest first, without any figure. Needs the settlement totals permission;\n * a role that reads every figure uses `listNativeReports` instead.\n *\n * `GET /settlement/native/views`\n */\n async listNativeReportViews(\n params: NativeReportViewListRequest,\n options?: RequestExtras,\n ): Promise<NativeShopReportListResponse> {\n return this.request('GET', '/settlement/native/views', {\n query: nativeListQuery(params),\n ...options,\n });\n }\n\n /**\n * One period report as the caller's role sees it: an item the role may not\n * see keeps its place as withheld, no subtotal or rate is shown once\n * anything is withheld, and the amount payable is always the real one.\n *\n * `GET /settlement/native/reports/{id}/view`\n */\n async retrieveNativeReportView(id: string, options?: RequestExtras): Promise<NativeShopReport> {\n return this.request('GET', `/settlement/native/reports/${encodeURIComponent(id)}/view`, {\n ...options,\n });\n }\n\n /**\n * The PDF of the report as the caller's role sees it, rendered from that\n * view alone. Needs the download permission as well.\n *\n * `GET /settlement/native/reports/{id}/view/pdf`\n */\n async downloadNativeReportViewPdf(id: string, options?: RequestExtras): Promise<Blob> {\n return this.request('GET', `/settlement/native/reports/${encodeURIComponent(id)}/view/pdf`, {\n responseType: 'blob',\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. `balance` is the\n * shop's transfer balance in this currency and mode, whatever the page.\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 /**\n * The merchant's stored reserves: what a statement structure's reserve item\n * holds, for how long and when it is released.\n *\n * `GET /settlement/native/reserves`\n */\n async listNativeReserves(options?: RequestExtras): Promise<NativeReserveListResponse> {\n return this.request('GET', '/settlement/native/reserves', { ...options });\n }\n\n /**\n * The transfers recorded to the reader's own shop, for a reader whose role\n * is bound to one shop. Earliest value date first. A transfer may name the\n * period report it pays. Carries no `balance`: the merchant's shop view of\n * a report may hide what it made payable.\n *\n * `GET /settlement/native/shop/payouts`\n */\n async listShopNativePayouts(\n params: NativeShopPayoutListRequest,\n options?: RequestExtras,\n ): Promise<NativeSettlementPayoutListResponse> {\n return this.request('GET', '/settlement/native/shop/payouts', {\n query: {\n currency: params.currency,\n test_mode: params.test_mode,\n limit: params.limit,\n offset: params.offset,\n },\n ...options,\n });\n }\n\n /**\n * What the shop's reserves hold for it, for a reader whose role is bound to\n * one shop: only reserves the merchant shows to shop readers, and only this\n * shop's held amounts and releases.\n *\n * `GET /settlement/native/shop/reserves`\n */\n async listShopNativeReserves(\n params: NativeShopReserveListRequest,\n options?: RequestExtras,\n ): Promise<NativeShopReserveListResponse> {\n return this.request('GET', '/settlement/native/shop/reserves', {\n query: { currency: params.currency, test_mode: params.test_mode },\n ...options,\n });\n }\n\n /**\n * Store a reserve for a statement structure's reserve item, at the merchant,\n * one of its projects or one of its shops. Requires settlement edit\n * permission. One reserve per item and level; a second is refused with 412.\n *\n * `POST /settlement/native/reserves`\n */\n async createNativeReserve(\n params: NativeReserveCreateRequest,\n options?: RequestExtras,\n ): Promise<NativeReserve> {\n return this.request('POST', '/settlement/native/reserves', { body: params, ...options });\n }\n\n /**\n * Change a stored reserve. Amounts already held keep the rule they were held\n * under. Send the `modified_at` you read; an edit of an older version is\n * refused with 412.\n *\n * `PUT /settlement/native/reserves/{id}`\n */\n async updateNativeReserve(\n reserveId: string,\n params: NativeReserveUpdateRequest,\n options?: RequestExtras,\n ): Promise<NativeReserve> {\n return this.request('PUT', `/settlement/native/reserves/${encodeURIComponent(reserveId)}`, {\n body: params,\n ...options,\n });\n }\n\n /**\n * What a reserve holds in one currency and mode: its balance, each held\n * amount with the rule it keeps, and every release.\n *\n * `GET /settlement/native/reserves/{id}/overview`\n */\n async nativeReserveOverview(\n reserveId: string,\n params: NativeReserveOverviewRequest,\n options?: RequestExtras,\n ): Promise<NativeReserveOverview> {\n return this.request(\n 'GET',\n `/settlement/native/reserves/${encodeURIComponent(reserveId)}/overview`,\n {\n query: { currency: params.currency, test_mode: params.test_mode },\n ...options,\n },\n );\n }\n\n /**\n * Release part of a held amount by hand, before it is due. Requires\n * settlement write permission. Reuse the same `release_key` when retrying:\n * the same key and amount answer with the release already made.\n *\n * `POST /settlement/native/reserves/{id}/lots/{lot_id}/release`\n */\n async releaseNativeReserveEarly(\n reserveId: string,\n lotId: string,\n params: NativeReserveReleaseRequest,\n options?: RequestExtras,\n ): Promise<NativeReserveMovement> {\n return this.request(\n 'POST',\n `/settlement/native/reserves/${encodeURIComponent(reserveId)}/lots/${encodeURIComponent(lotId)}/release`,\n { body: params, ...options },\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 /**\n * Bind one shop's money terms to the shop party's consent. From then on the\n * host changes them only by proposal. Releasing the requirement is itself a\n * proposal (`consent_release`).\n *\n * `POST /settlement/shops/terms/consent`\n */\n async bindShopTermConsent(\n params: ShopTermConsentUpdateRequest,\n options?: RequestExtras,\n ): Promise<ShopTermConsentResponse> {\n return this.request('POST', '/settlement/shops/terms/consent', { body: params, ...options });\n }\n\n /**\n * Propose a change to a bound shop's hosting fees: a schedule created,\n * updated or deleted, or the fee rule program set or removed.\n *\n * `POST /settlement/shops/terms/fee-proposals`\n */\n async proposeShopFeeChange(\n params: ShopTermProposalRequest<ShopTermFeeChange>,\n options?: RequestExtras,\n ): Promise<ShopTermProposal> {\n return this.request('POST', '/settlement/shops/terms/fee-proposals', {\n body: params,\n ...options,\n });\n }\n\n /**\n * Propose a change to a bound shop's settlement terms: whether it carries the\n * processor's fee (`cost_passthrough`), or releasing the consent requirement\n * (`consent_release`).\n *\n * `POST /settlement/shops/terms/settlement-proposals`\n */\n async proposeShopSettlementChange(\n params: ShopTermProposalRequest<ShopTermSettlementChange>,\n options?: RequestExtras,\n ): Promise<ShopTermProposal> {\n return this.request('POST', '/settlement/shops/terms/settlement-proposals', {\n body: params,\n ...options,\n });\n }\n\n /**\n * Propose a change to a bound shop's statement builder: its statement\n * structure, a stored reserve, or one report with recorded accrued shares\n * replaced. When the shop party accepts, the server tries to apply it; an\n * accepted proposal whose change could not be applied says so in\n * `execution_error`. Refused while the deployment does not cover the\n * builder by consent.\n *\n * `POST /settlement/shops/terms/builder-proposals`\n */\n async proposeShopBuilderChange(\n params: ShopTermProposalRequest<ShopTermBuilderChange>,\n options?: RequestExtras,\n ): Promise<ShopTermProposal> {\n return this.request('POST', '/settlement/shops/terms/builder-proposals', {\n body: params,\n ...options,\n });\n }\n\n /**\n * The proposals on this merchant's shops, read by both parties. A caller\n * bound to one shop sees only that shop's.\n *\n * `GET /settlement/shops/terms/proposals`\n */\n async listShopTermProposals(\n params?: ShopTermProposalListRequest,\n options?: RequestExtras,\n ): Promise<ShopTermProposalListResponse> {\n return this.request('GET', '/settlement/shops/terms/proposals', {\n query: { profile_id: params?.profile_id, status: params?.status, limit: params?.limit },\n ...options,\n });\n }\n\n /**\n * The shop party accepts a proposal, and the change is applied. Needs the\n * settlement consent permission in the shop party's own session. If applying\n * fails, the acceptance is still recorded and this rejects; the change may\n * or may not have landed, so re-read the proposal and the shop's terms.\n *\n * `POST /settlement/shops/terms/proposals/{proposalId}/accept`\n */\n async acceptShopTermProposal(\n proposalId: string,\n params?: ShopTermProposalDecisionRequest,\n options?: RequestExtras,\n ): Promise<ShopTermProposal> {\n return this.request(\n 'POST',\n `/settlement/shops/terms/proposals/${encodeURIComponent(proposalId)}/accept`,\n { body: params ?? {}, ...options },\n );\n }\n\n /**\n * The shop party declines a proposal. Final; nothing changes.\n *\n * `POST /settlement/shops/terms/proposals/{proposalId}/decline`\n */\n async declineShopTermProposal(\n proposalId: string,\n params?: ShopTermProposalDecisionRequest,\n options?: RequestExtras,\n ): Promise<ShopTermProposal> {\n return this.request(\n 'POST',\n `/settlement/shops/terms/proposals/${encodeURIComponent(proposalId)}/decline`,\n { body: params ?? {}, ...options },\n );\n }\n\n /**\n * A shop's consent record, newest first: binding, releases and each\n * proposal's way to being applied, each with the side that acted.\n *\n * `GET /settlement/shops/terms/consent-events`\n */\n async listShopTermConsentEvents(\n params?: ShopTermConsentEventListRequest,\n options?: RequestExtras,\n ): Promise<ShopTermConsentEventListResponse> {\n return this.request('GET', '/settlement/shops/terms/consent-events', {\n query: { profile_id: params?.profile_id, limit: params?.limit, cursor: params?.cursor },\n ...options,\n });\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/home/anes/delo-payment/delopay-typescript-sdk/dist/chunk-HLKFUOAQ.cjs","../src/internal/resources/configs.ts"],"names":[],"mappings":"AAAA;ACEO,IAAM,QAAA,EAAN,MAAc;AAAA,EACnB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,MAAM,MAAA,CAAO,MAAA,EAAmE;AAC9E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,UAAA,EAAY,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC1D;AAAA;AAAA,EAGA,MAAM,QAAA,CAAS,GAAA,EAA+C;AAC5D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,SAAA,EAAY,kBAAA,CAAmB,GAAG,CAAC,CAAA,CAAA;AAChE,EAAA;AAAA;AAG6F,EAAA;AAC7B,IAAA;AAChE,EAAA;AAAA;AAG4D,EAAA;AACG,IAAA;AAC/D,EAAA;AACF;ADFmE;AACA;AACA;AACA","file":"/home/anes/delo-payment/delopay-typescript-sdk/dist/chunk-HLKFUOAQ.cjs","sourcesContent":[null,"import type { RequestFn } from '../../client';\n\nexport class Configs {\n constructor(private readonly request: RequestFn) {}\n\n /** Create a config. `POST /configs` */\n async create(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/configs', { body: params });\n }\n\n /** Retrieve a config by key. `GET /configs/{key}` */\n async retrieve(key: string): Promise<Record<string, unknown>> {\n return this.request('GET', `/configs/${encodeURIComponent(key)}`);\n }\n\n /** Update a config. `PUT /configs/{key}` */\n async update(key: string, params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('PUT', `/configs/${encodeURIComponent(key)}`, { body: params });\n }\n\n /** Delete a config. `DELETE /configs/{key}` */\n async delete(key: string): Promise<Record<string, unknown>> {\n return this.request('DELETE', `/configs/${encodeURIComponent(key)}`);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/home/anes/delo-payment/delopay-typescript-sdk/dist/chunk-HLYGHP6F.cjs","../src/internal/resources/platformFees.ts"],"names":[],"mappings":"AAAA;ACoBO,IAAM,aAAA,EAAN,MAAmB;AAAA,EAIxB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAC3B,IAAA,IAAA,CAAK,MAAA,EAAQ,IAAI,uBAAA,CAAwB,OAAO,CAAA;AAAA,EAClD;AAAA;AAAA,EAGA,MAAM,MAAA,CAAO,MAAA,EAAkC,UAAA,EAAkD;AAC/F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,aAAA,EAAe;AAAA,MACzC,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,EAAE,WAAA,EAAa,WAAW;AAAA,IACnC,CAAC,CAAA;AAAA,EACH;AAAA;AAAA,EAGA,MAAM,IAAA,CAAK,UAAA,EAAoD;AAC7D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,kBAAA,EAAoB;AAAA,MAC7C,KAAA,EAAO,EAAE,WAAA,EAAa,WAAW;AAAA,IACnC,CAAC,CAAA;AAAA,EACH;AAAA;AAAA,EAGA,MAAM,QAAA,CAAS,KAAA,EAA6C;AAC1D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,YAAA,EAAe,kBAAA,CAAmB,KAAK,CAAC,CAAA,CAAA;AACrE,EAAA;AAAA;AAG4F,EAAA;AACvB,IAAA;AACrE,EAAA;AAAA;AAG0D,EAAA;AACQ,IAAA;AAClE,EAAA;AACF;AASqC;AACc,EAAA;AAApB,IAAA;AAAqB,EAAA;AAAA;AAG+C,EAAA;AACvB,IAAA;AACxB,IAAA;AAC9C,MAAA;AACiC,MAAA;AAClC,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAMgG,EAAA;AAC9C,IAAA;AACU,MAAA;AACzD,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAMoE,EAAA;AAChB,IAAA;AACQ,MAAA;AACzD,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOiG,EAAA;AACtC,IAAA;AACjD,MAAA;AAC2B,MAAA;AAClC,IAAA;AACH,EAAA;AACF;ADnCwE;AACA;AACA;AACA;AACA","file":"/home/anes/delo-payment/delopay-typescript-sdk/dist/chunk-HLYGHP6F.cjs","sourcesContent":[null,"import type {\n FeeRulePreviewRequest,\n FeeRulePreviewResponse,\n FeeScheduleCreateRequest,\n FeeScheduleResponse,\n FeeScheduleUpdateRequest,\n PlatformFeeRuleInput,\n PlatformFeeRuleResponse,\n PlatformFeeRuleRequest,\n} from '../../types';\nimport type { RequestFn } from '../../client';\n\n/**\n * Platform-wide fee schedule management. Admin-only routes under\n * `/admin/fees/*`. Exposed only via `'@delopay/sdk/internal'`.\n *\n * `platformFees.rules` manages the platform-owned Euclid fee-rule program per\n * merchant, which takes precedence over the flat platform schedules. Build the\n * program with `feeProgram()`.\n */\nexport class PlatformFees {\n /** Platform-owned Euclid fee-rule program (`/admin/fees/rules`). */\n readonly rules: PlatformFeeRulesManager;\n\n constructor(private readonly request: RequestFn) {\n this.rules = new PlatformFeeRulesManager(request);\n }\n\n /** Create a platform fee schedule for a specific merchant. */\n async create(params: FeeScheduleCreateRequest, merchantId: string): Promise<FeeScheduleResponse> {\n return this.request('POST', '/admin/fees', {\n body: params,\n query: { merchant_id: merchantId },\n });\n }\n\n /** List every platform fee schedule assigned to a merchant. */\n async list(merchantId: string): Promise<FeeScheduleResponse[]> {\n return this.request('GET', '/admin/fees/list', {\n query: { merchant_id: merchantId },\n });\n }\n\n /** Retrieve a single platform fee schedule by ID. */\n async retrieve(feeId: string): Promise<FeeScheduleResponse> {\n return this.request('GET', `/admin/fees/${encodeURIComponent(feeId)}`);\n }\n\n /** Update a platform fee schedule. */\n async update(feeId: string, params: FeeScheduleUpdateRequest): Promise<FeeScheduleResponse> {\n return this.request('PUT', `/admin/fees/${encodeURIComponent(feeId)}`, { body: params });\n }\n\n /** Delete a platform fee schedule. */\n async delete(feeId: string): Promise<FeeScheduleResponse> {\n return this.request('DELETE', `/admin/fees/${encodeURIComponent(feeId)}`);\n }\n}\n\n/**\n * Manages a merchant's platform-owned Euclid fee-rule programs (admin surface),\n * merchant-wide or per-shop (one active program per scope; a shop-scoped\n * program wins for its shop, else the merchant-wide one applies). Build the\n * `algorithm` with `feeProgram()`. The SDK injects `fee_owner: 'platform'`; set\n * `profile_id` on the input to scope a program to a shop.\n */\nexport class PlatformFeeRulesManager {\n constructor(private readonly request: RequestFn) {}\n\n /** Create or replace the platform fee-rule program for a merchant. */\n async upsert(params: PlatformFeeRuleInput, merchantId: string): Promise<PlatformFeeRuleResponse> {\n const body: PlatformFeeRuleRequest = { ...params, fee_owner: 'platform' };\n return this.request('PUT', '/admin/fees/rules', {\n body,\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Retrieve the active platform fee-rule program for a scope, or `null`.\n * `profileId` omitted = merchant-wide program; set = that shop's program.\n */\n async retrieve(merchantId: string, profileId?: string): Promise<PlatformFeeRuleResponse | null> {\n return this.request('GET', '/admin/fees/rules', {\n query: { merchant_id: merchantId, profile_id: profileId },\n });\n }\n\n /**\n * Deactivate a platform fee-rule program. Idempotent. `profileId` omitted\n * targets the merchant-wide program; set targets only that shop's program.\n */\n async delete(merchantId: string, profileId?: string): Promise<void> {\n await this.request('DELETE', '/admin/fees/rules', {\n query: { merchant_id: merchantId, profile_id: profileId },\n });\n }\n\n /**\n * Dry-run a candidate fee-rule program against a sample transaction.\n * Returns the matched rule name, whether it fell through, and the computed fee.\n * Does not persist anything.\n */\n async preview(input: FeeRulePreviewRequest, merchantId: string): Promise<FeeRulePreviewResponse> {\n return this.request('POST', '/admin/fees/rules/preview', {\n body: input,\n query: { merchant_id: merchantId },\n });\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/home/anes/delo-payment/delopay-typescript-sdk/dist/chunk-I2W7AO4B.cjs","../src/error.ts"],"names":[],"mappings":"AAAA;ACeO,IAAM,aAAA,EAAN,MAAA,QAA2B,MAAM;AAAA,EAsBtC,WAAA,CACE,OAAA,EACA,OAAA,EAQA;AACA,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAA,MAAA,CAAO,cAAA,CAAe,IAAA,EAAM,GAAA,CAAA,MAAA,CAAW,SAAS,CAAA;AAChD,IAAA,IAAA,CAAK,KAAA,EAAO,cAAA;AACZ,IAAA,IAAA,CAAK,OAAA,EAAS,OAAA,CAAQ,MAAA;AACtB,IAAA,IAAA,CAAK,KAAA,EAAO,OAAA,CAAQ,IAAA;AACpB,IAAA,IAAA,CAAK,KAAA,EAAO,OAAA,CAAQ,IAAA;AACpB,IAAA,GAAA,CAAI,OAAA,CAAQ,UAAA,IAAc,KAAA,CAAA,EAAW,IAAA,CAAK,UAAA,EAAY,OAAA,CAAQ,SAAA;AAC9D,IAAA,GAAA,CAAI,OAAA,CAAQ,QAAA,IAAY,KAAA,CAAA,EAAW,IAAA,CAAK,QAAA,EAAU,OAAA,CAAQ,OAAA;AAC1D,IAAA,GAAA,CAAI,OAAA,CAAQ,KAAA,IAAS,KAAA,CAAA,EAAW,IAAA,CAAK,KAAA,EAAO,OAAA,CAAQ,IAAA;AAAA,EACtD;AACF,CAAA;AAYO,IAAM,2BAAA,EAAN,MAAA,QAAyC,aAAa;AAAA,EAC3D,WAAA,CACE,QAAA,EAAU,iBAAA,EACV,OAAA,EAOA;AACA,IAAA,KAAA,CAAM,OAAA,EAAS;AAAA,MACb,MAAA,EAAQ,GAAA;AAAA;AAAA;AAAA;AAAA,MAIR,IAAA,kBAAM,OAAA,2BAAS,OAAA,GAAQ,SAAA;AAAA,MACvB,IAAA,kBAAM,OAAA,6BAAS,OAAA,GAAQ,sBAAA;AAAA,MACvB,SAAA,kBAAW,OAAA,6BAAS,WAAA;AAAA,MACpB,OAAA,kBAAS,OAAA,6BAAS,SAAA;AAAA,MAClB,IAAA,kBAAM,OAAA,6BAAS;AAAA,IACjB,CAAC,CAAA;AACD,IAAA,MAAA,CAAO,cAAA,CAAe,IAAA,EAAM,GAAA,CAAA,MAAA,CAAW,SAAS,CAAA;AAChD,IAAA,IAAA,CAAK,KAAA,EAAO,4BAAA;AAAA,EACd;AACF,CAAA;ADhEA;AACA;AACE;AACA;AACF,qGAAC","file":"/home/anes/delo-payment/delopay-typescript-sdk/dist/chunk-I2W7AO4B.cjs","sourcesContent":[null,"/**\n * Error thrown when the Delopay API returns a non-2xx response, or when a\n * timeout or network error occurs.\n *\n * @example\n * ```typescript\n * try {\n * await delopay.payments.create({ amount: 5000, currency: 'EUR' });\n * } catch (e) {\n * if (e instanceof DelopayError) {\n * console.error(e.status, e.code, e.requestId, e.message);\n * }\n * }\n * ```\n */\nexport class DelopayError extends Error {\n /** HTTP status code returned by the API, or `0` for timeout/network errors. */\n readonly status: number;\n /** Machine-readable error code returned by the API (e.g. `'HE_00'`). */\n readonly code: string;\n /** Error category (e.g. `'invalid_request'`, `'timeout_error'`). */\n readonly type: string;\n /** Value of the `x-request-id` response header, when present. Include this when contacting support. */\n readonly requestId?: string;\n /**\n * Raw response body (truncated to ~2 KB). Populated when the server returns a\n * non-JSON error body (e.g. an HTML 502 from an upstream proxy) so debugging\n * still has something to go on.\n */\n readonly rawBody?: string;\n /**\n * Structured error context the API attaches under `error.data` for select\n * codes — e.g. `{ retry_after_secs: 248 }` on rate-limit / max-attempt\n * lockouts. Schema is per-code; consult the API reference for the shape.\n */\n readonly data?: Record<string, unknown>;\n\n constructor(\n message: string,\n options: {\n status: number;\n code: string;\n type: string;\n requestId?: string;\n rawBody?: string;\n data?: Record<string, unknown>;\n },\n ) {\n super(message);\n Object.setPrototypeOf(this, new.target.prototype);\n this.name = 'DelopayError';\n this.status = options.status;\n this.code = options.code;\n this.type = options.type;\n if (options.requestId !== undefined) this.requestId = options.requestId;\n if (options.rawBody !== undefined) this.rawBody = options.rawBody;\n if (options.data !== undefined) this.data = options.data;\n }\n}\n\n/**\n * Thrown when the API key is missing, invalid, or revoked (HTTP 401).\n *\n * @example\n * ```typescript\n * if (e instanceof DelopayAuthenticationError) {\n * // Prompt user to re-enter their API key.\n * }\n * ```\n */\nexport class DelopayAuthenticationError extends DelopayError {\n constructor(\n message = 'Invalid API key',\n options?: {\n code?: string;\n type?: string;\n requestId?: string;\n rawBody?: string;\n data?: Record<string, unknown>;\n },\n ) {\n super(message, {\n status: 401,\n // Default to the generic \"invalid API key\" code, but let callers pass\n // through the server-reported code (e.g. `UR_05` for unverified-email\n // 401s) so they can differentiate between auth failure reasons.\n code: options?.code || 'AUTH_01',\n type: options?.type || 'authentication_error',\n requestId: options?.requestId,\n rawBody: options?.rawBody,\n data: options?.data,\n });\n Object.setPrototypeOf(this, new.target.prototype);\n this.name = 'DelopayAuthenticationError';\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/home/anes/delo-payment/delopay-typescript-sdk/dist/chunk-I2XGNALG.cjs","../src/resources/forex.ts"],"names":[],"mappings":"AAAA;ACEO,IAAM,MAAA,EAAN,MAAY;AAAA,EACjB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,MAAM,QAAA,CACJ,MAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,cAAA,EAAgB,EAAE,KAAA,EAAO,OAAO,CAAC,CAAA;AAAA,EAC9D;AAAA;AAAA,EAGA,MAAM,gBAAA,CACJ,MAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,2BAAA,EAA6B,EAAE,KAAA,EAAO,OAAO,CAAC,CAAA;AAAA,EAC3E;AACF,CAAA;ADJA;AACA;AACE;AACF,sBAAC","file":"/home/anes/delo-payment/delopay-typescript-sdk/dist/chunk-I2XGNALG.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\n\nexport class Forex {\n constructor(private readonly request: RequestFn) {}\n\n /** Retrieve forex rates. `GET /forex/rates` */\n async getRates(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/forex/rates', { query: params });\n }\n\n /** Convert from minor currency. `GET /forex/convert-from-minor` */\n async convertFromMinor(\n params: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/forex/convert-from-minor', { query: params });\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/home/anes/delo-payment/delopay-typescript-sdk/dist/chunk-IKXGA2Z5.cjs","../src/resources/featureMatrix.ts"],"names":[],"mappings":"AAAA;ACOO,IAAM,cAAA,EAAN,MAAoB;AAAA,EACzB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,MAAM,QAAA,CAAA,EAA2C;AAC/C,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,iBAAiB,CAAA;AAAA,EAC9C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,mBAAA,CAAoB,UAAA,EAAoD;AAC5E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,UAAU,CAAC,CAAA,CAAA;AAC9E,EAAA;AACF;ADLiF;AACA;AACA;AACA","file":"/home/anes/delo-payment/delopay-typescript-sdk/dist/chunk-IKXGA2Z5.cjs","sourcesContent":[null,"import type { FeatureMatrixResponse } from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * What each connector can do: payment methods, capture methods, webhook\n * flows, and whether an unverified webhook is acted on.\n */\nexport class FeatureMatrix {\n constructor(private readonly request: RequestFn) {}\n\n /** Retrieve the feature matrix. `GET /feature-matrix` */\n async retrieve(): Promise<FeatureMatrixResponse> {\n return this.request('GET', '/feature-matrix');\n }\n\n /**\n * Retrieve the feature matrix scoped to a merchant. Beta connectors\n * are filtered against the merchant's allowlist so the dashboard only\n * surfaces connectors the merchant can actually attach.\n * `GET /feature-matrix/{merchantId}`\n */\n async retrieveForMerchant(merchantId: string): Promise<FeatureMatrixResponse> {\n return this.request('GET', `/feature-matrix/${encodeURIComponent(merchantId)}`);\n }\n}\n"]}
|