@delopay/sdk 0.463.0 → 0.464.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.map +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-5CITBN33.cjs.map +1 -1
- package/dist/chunk-5HCKC4HF.cjs.map +1 -1
- package/dist/chunk-5O2JSQYA.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-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-BP6KDQ6I.cjs.map +1 -1
- package/dist/chunk-BRY3W7N3.cjs.map +1 -1
- package/dist/chunk-CAMALM35.cjs.map +1 -1
- package/dist/chunk-CCN44NZJ.cjs.map +1 -1
- package/dist/chunk-CKKNFFKP.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-F3I5DOWV.cjs.map +1 -1
- package/dist/chunk-F46K5H3U.cjs.map +1 -1
- package/dist/chunk-F6S3WCCB.cjs.map +1 -1
- package/dist/chunk-FG7YBXJQ.cjs.map +1 -1
- package/dist/chunk-FQRC4NJG.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-HLHML5ES.cjs.map +1 -1
- package/dist/chunk-HLKFUOAQ.cjs.map +1 -1
- package/dist/chunk-HLYGHP6F.cjs.map +1 -1
- package/dist/chunk-HSJABE7X.cjs.map +1 -1
- package/dist/chunk-I2W7AO4B.cjs.map +1 -1
- package/dist/chunk-I2XGNALG.cjs.map +1 -1
- package/dist/chunk-IKLYLBTY.cjs.map +1 -1
- package/dist/chunk-IKXGA2Z5.cjs.map +1 -1
- package/dist/chunk-IR2LFKKA.cjs.map +1 -1
- package/dist/chunk-J4ZB7MU4.cjs.map +1 -1
- package/dist/chunk-JPRSNCYP.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-KOB6MOAV.cjs.map +1 -1
- package/dist/chunk-KSJ7JLR3.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-MCNDMK7F.cjs.map +1 -1
- package/dist/chunk-MLG6NXI6.cjs.map +1 -1
- package/dist/chunk-MMBX2T4H.cjs.map +1 -1
- package/dist/chunk-NFB3S2E6.cjs.map +1 -1
- package/dist/chunk-NYL3BNHR.cjs.map +1 -1
- package/dist/chunk-O4AYHLQX.cjs.map +1 -1
- package/dist/chunk-OAEKP665.cjs.map +1 -1
- package/dist/chunk-ODPNVNYE.cjs.map +1 -1
- package/dist/chunk-OEXXMVCI.cjs.map +1 -1
- package/dist/chunk-OG2KJAYD.cjs.map +1 -1
- package/dist/chunk-ORCK5GQ3.cjs.map +1 -1
- package/dist/chunk-OWP7XBY2.cjs.map +1 -1
- package/dist/chunk-OYZP6NF6.cjs.map +1 -1
- package/dist/chunk-P4UILJVU.cjs.map +1 -1
- package/dist/chunk-P6JLNQ6L.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-QRSA72B3.cjs.map +1 -1
- package/dist/chunk-QTKJIW3T.cjs.map +1 -1
- package/dist/chunk-QYNRNDIY.cjs.map +1 -1
- package/dist/chunk-R4FE6K43.cjs.map +1 -1
- package/dist/chunk-R4GA6BVP.cjs.map +1 -1
- package/dist/chunk-R5VYSZ3Q.cjs.map +1 -1
- package/dist/chunk-RHFUXHQN.cjs.map +1 -1
- package/dist/chunk-RI42IDRR.cjs.map +1 -1
- package/dist/chunk-RSVLVW4L.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-TMMTDTCP.cjs.map +1 -1
- package/dist/chunk-TNIJ6OSH.cjs.map +1 -1
- 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-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-W457XUA6.cjs.map +1 -1
- 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-ZKPVUCQV.cjs.map +1 -1
- package/dist/chunk-ZUULK36E.cjs.map +1 -1
- package/dist/client.cjs.map +1 -1
- package/dist/core.cjs.map +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.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/internal/resources/admin.cjs.map +1 -1
- package/dist/internal/resources/adminBranding.cjs.map +1 -1
- package/dist/internal/resources/adminCheckoutDomains.cjs.map +1 -1
- package/dist/internal/resources/adminFeePlans.cjs.map +1 -1
- package/dist/internal/resources/adminFileScans.cjs.map +1 -1
- package/dist/internal/resources/adminIndustries.cjs.map +1 -1
- package/dist/internal/resources/adminLive.cjs.map +1 -1
- package/dist/internal/resources/adminNotices.cjs.map +1 -1
- package/dist/internal/resources/adminPortal.cjs.map +1 -1
- package/dist/internal/resources/adminSupport.cjs.map +1 -1
- package/dist/internal/resources/auditLogs.cjs.map +1 -1
- package/dist/internal/resources/cache.cjs.map +1 -1
- package/dist/internal/resources/cardIssuers.cjs.map +1 -1
- package/dist/internal/resources/configs.cjs.map +1 -1
- package/dist/internal/resources/connectorRestrictionRules.cjs.map +1 -1
- package/dist/internal/resources/connectorRestrictions.cjs.map +1 -1
- package/dist/internal/resources/diagnostic.cjs.map +1 -1
- package/dist/internal/resources/gsm.cjs.map +1 -1
- package/dist/internal/resources/nativeRenewals.cjs.map +1 -1
- package/dist/internal/resources/platformBilling.cjs.map +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.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- 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/shopLabels.cjs.map +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.cjs.map +1 -1
- package/dist/types.d.cts +255 -2
- package/dist/types.d.ts +255 -2
- package/package.json +17 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-M3HWE7KT.cjs","../src/resources/audit.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACKA,IAAM,wBAAA,EAA0B,CAAC,YAAA,EAAc,QAAA,EAAU,aAAa,CAAA;AAc/D,IAAM,MAAA,EAAN,MAAY;AAAA,EACjB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,MAAM,IAAA,CAAK,MAAA,EAA4E;AACrF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,QAAA,EAAU;AAAA,MACnC,KAAA,EAAO,wCAAA,MAAS,EAAQ,uBAAuB;AAAA,IACjD,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAM,QAAA,CAAS,KAAA,EAA+C;AAC5D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,OAAA,EAAU,kBAAA,CAAmB,KAAK,CAAC,CAAA,CAAA;AAChE,EAAA;AACF;ADhBmE;AACA;AACA;AACA","file":"/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-M3HWE7KT.cjs","sourcesContent":[null,"import type {\n MerchantAuditLogListParams,\n MerchantAuditLogListResponse,\n MerchantAuditLogEntry,\n} from '../types';\nimport type { RequestFn } from '../client';\nimport { csvQuery } from '../listQuery';\n\n/** The audit log filters that take several values. */\nconst MERCHANT_AUDIT_CSV_KEYS = ['profile_id', 'action', 'entity_type'] as const;\n\n/**\n * A merchant's own audit log — everything changed on their account and their\n * shops, grouped by the sign-in it happened in.\n *\n * Requires a dashboard JWT (`setJwtToken`) whose role holds the `AuditLog`\n * permission; an API key cannot read it. This is deliberate: the log names\n * people, and an API key names no one.\n *\n * There is no `merchant_id` parameter. The scope comes from the token, so this\n * resource cannot be pointed at another merchant — see\n * {@link MerchantAuditLogListParams}.\n */\nexport class Audit {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * One page of the merchant's audit log, the newest entry first unless\n * `sort_by` says otherwise. Several `profile_id`, `action` or `entity_type`\n * values match an entry with any of them. `GET /audit`\n */\n async list(params?: MerchantAuditLogListParams): Promise<MerchantAuditLogListResponse> {\n return this.request('GET', '/audit', {\n query: csvQuery(params, MERCHANT_AUDIT_CSV_KEYS),\n });\n }\n\n /**\n * One entry. An id belonging to another merchant answers 404, not 403 — the\n * endpoint does not confirm that an entry it will not serve exists.\n */\n async retrieve(logId: string): Promise<MerchantAuditLogEntry> {\n return this.request('GET', `/audit/${encodeURIComponent(logId)}`);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-M3SJHFT4.cjs","../src/internal/resources/nativeRenewals.ts"],"names":[],"mappings":"AAAA;ACIO,IAAM,eAAA,EAAN,MAAqB;AAAA,EAC1B,WAAA,CACmB,OAAA,EACA,UAAA,EACjB;AAFiB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AACA,IAAA,IAAA,CAAA,WAAA,EAAA,UAAA;AAAA,EAChB;AAAA;AAAA,EAGH,MAAM,KAAA,CACJ,SAAA,EACA,MAAA,EACA,OAAA,EACqC;AACrC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,CAAA,UAAA,EAAa,kBAAA,CAAmB,SAAS,CAAC,CAAA,qBAAA,CAAA,EAAyB;AAAA,MAC7F,GAAG,OAAA;AAAA,MACH,OAAA,EAAS;AAAA,QACP,mBAAG,OAAA,2BAAS,SAAA;AAAA,QACZ,oBAAA,EAAsB,IAAA,CAAK,UAAA;AAAA,QAC3B,eAAA,EAAiB,MAAA,CAAO,WAAA;AAAA,QACxB,cAAA,EAAgB,MAAA,CAAO;AAAA,MACzB;AAAA,IACF,CAAC,CAAA;AAAA,EACH;AACF,CAAA;ADPA;AACA;AACE;AACF,wCAAC","file":"/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-M3SJHFT4.cjs","sourcesContent":[null,"import type { RequestExtras, RequestFn } from '../../client';\nimport type { NativeRenewalCloseResponse, NativeRenewalCloseTarget } from '../types';\n\n/** Service-authenticated renewal reconciliation. */\nexport class NativeRenewals {\n constructor(\n private readonly request: RequestFn,\n private readonly serviceKey: string,\n ) {}\n\n /** Close the previous renewal payment using the internal service key and its owner context. */\n async close(\n paymentId: string,\n target: NativeRenewalCloseTarget,\n options?: RequestExtras,\n ): Promise<NativeRenewalCloseResponse> {\n return this.request('POST', `/payments/${encodeURIComponent(paymentId)}/native-renewal-close`, {\n ...options,\n headers: {\n ...options?.headers,\n 'X-Internal-API-Key': this.serviceKey,\n 'X-Merchant-Id': target.merchant_id,\n 'X-Profile-Id': target.profile_id,\n },\n });\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-MCNDMK7F.cjs","../src/resources/billing.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACiBA,IAAM,mBAAA,EAAN,MAAyB;AAAA,EACvB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASlD,MAAM,UAAA,CACJ,UAAA,EACA,MAAA,EACqC;AACrC,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,MACV,MAAA;AAAA,MACA,CAAA,SAAA,EAAY,kBAAA,CAAmB,UAAU,CAAC,CAAA,wBAAA,CAAA;AAAA,MAC1C,EAAE,IAAA,EAAM,OAAO;AAAA,IACjB,CAAA;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,MAAM,WAAA,CACJ,UAAA,EACA,MAAA,EACqC;AACrC,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,MACV,MAAA;AAAA,MACA,CAAA,SAAA,EAAY,kBAAA,CAAmB,UAAU,CAAC,CAAA,yBAAA,CAAA;AAAA,MAC1C;AAAA,QACE,IAAA,EAAM;AAAA,MACR;AAAA,IACF,CAAA;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,IAAA,CAAK,UAAA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AAA;AACH,IAAA;AACJ,EAAA;AAEL;ADjDA;AACA;AACA;AACA","file":"/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-MCNDMK7F.cjs","sourcesContent":[null,"import type {\n BillingProfileResponse,\n BillingSetupRequest,\n BillingSetupResponse,\n BillingCompleteSetupRequest,\n TopupRequest,\n TopupResponse,\n LedgerResponse,\n LedgerListParams,\n BlockedAttemptListResponse,\n BlockedAttemptListParams,\n AutoRechargeUpdateRequest,\n AllocationTransferRequest,\n AllocationTransferResponse,\n AllocationListResponse,\n AllocationResponse,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\nimport { csvQuery } from '../listQuery';\n\n/** Manage per-shop prepaid balance allocations transferred from the host merchant treasury. */\nclass BillingAllocations {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Transfer funds from the host merchant treasury into a shop's allocation.\n *\n * @param merchantId - The host merchant account ID.\n * @param params - Transfer details (amount, target profile/shop ID).\n * @returns The allocation transfer result.\n */\n async transferIn(\n merchantId: string,\n params: AllocationTransferRequest,\n ): Promise<AllocationTransferResponse> {\n return this.request(\n 'POST',\n `/billing/${encodeURIComponent(merchantId)}/allocations/transfer-in`,\n { body: params },\n );\n }\n\n /**\n * Transfer funds from a shop's allocation back to the host merchant treasury.\n *\n * @param merchantId - The host merchant account ID.\n * @param params - Transfer details (amount, source profile/shop ID).\n * @returns The allocation transfer result.\n */\n async transferOut(\n merchantId: string,\n params: AllocationTransferRequest,\n ): Promise<AllocationTransferResponse> {\n return this.request(\n 'POST',\n `/billing/${encodeURIComponent(merchantId)}/allocations/transfer-out`,\n {\n body: params,\n },\n );\n }\n\n /**\n * List all shop balance allocations for a merchant.\n *\n * @param merchantId - The merchant account ID.\n * @returns List of shop allocations.\n */\n async list(merchantId: string): Promise<AllocationListResponse> {\n return this.request('GET', `/billing/${encodeURIComponent(merchantId)}/allocations`);\n }\n\n /**\n * Get the balance allocation for a specific shop.\n *\n * @param merchantId - The merchant account ID.\n * @param profileId - The shop (business profile) ID.\n * @returns The shop's balance allocation.\n */\n async get(merchantId: string, profileId: string): Promise<AllocationResponse> {\n return this.request(\n 'GET',\n `/billing/${encodeURIComponent(merchantId)}/allocations/${encodeURIComponent(profileId)}`,\n );\n }\n}\n\n/**\n * Manage prepaid billing balances — top-ups, card setup, auto-recharge, and the balance ledger.\n *\n * Delopay deducts a platform fee from the merchant's prepaid balance on every successful payment.\n * Use these endpoints to fund and monitor that balance.\n */\nexport class Billing {\n /** Per-shop balance allocation management for host merchants. */\n readonly allocations: BillingAllocations;\n\n constructor(private readonly request: RequestFn) {\n this.allocations = new BillingAllocations(request);\n }\n\n /**\n * Retrieve a merchant's billing profile (balance, status, auto-recharge config).\n *\n * @param merchantId - The merchant account ID.\n * @returns The billing profile.\n *\n * @example\n * ```typescript\n * const profile = await delopay.billing.getProfile('merch_123');\n * console.log(profile.balance, profile.status);\n * ```\n */\n async getProfile(merchantId: string): Promise<BillingProfileResponse> {\n return this.request('GET', `/billing/${encodeURIComponent(merchantId)}`);\n }\n\n /**\n * Start a Stripe SetupIntent flow to collect a payment card for auto-recharge.\n *\n * @param merchantId - The merchant account ID.\n * @param params - Optional setup parameters.\n * @returns The Stripe client secret needed to render the card element.\n */\n async setup(merchantId: string, params?: BillingSetupRequest): Promise<BillingSetupResponse> {\n return this.request('POST', `/billing/${encodeURIComponent(merchantId)}/setup`, {\n body: params,\n });\n }\n\n /**\n * Confirm card setup after the Stripe SetupIntent completes on the frontend.\n *\n * @param merchantId - The merchant account ID.\n * @param params - The Stripe SetupIntent ID to confirm.\n * @returns The updated billing profile.\n */\n async completeSetup(\n merchantId: string,\n params: BillingCompleteSetupRequest,\n ): Promise<BillingProfileResponse> {\n return this.request('POST', `/billing/${encodeURIComponent(merchantId)}/setup/complete`, {\n body: params,\n });\n }\n\n /**\n * Manually top up a merchant's prepaid balance by charging their saved card.\n *\n * @param merchantId - The merchant account ID.\n * @param params - Top-up amount and currency.\n * @returns The top-up result.\n */\n async topup(merchantId: string, params: TopupRequest): Promise<TopupResponse> {\n return this.request('POST', `/billing/${encodeURIComponent(merchantId)}/topup`, {\n body: params,\n });\n }\n\n /**\n * List the balance ledger (credits and debits) for a merchant, the newest\n * entry first unless `sort_by` says otherwise.\n *\n * @param merchantId - The merchant account ID.\n * @param params - Optional pagination, filters (entry types, a creation\n * window) and sort.\n * @returns The ledger entries.\n */\n async listLedger(merchantId: string, params?: LedgerListParams): Promise<LedgerResponse> {\n return this.request('GET', `/billing/${encodeURIComponent(merchantId)}/ledger`, {\n query: csvQuery(params, ['entry_type']),\n });\n }\n\n /**\n * List payment attempts that were blocked by the billing suspension gate\n * (account suspended, setup incomplete, or shop allocation suspended).\n *\n * These attempts never created a payment, so they do not appear in the\n * payments list — this is the only way to retrieve them.\n *\n * @param merchantId - The merchant account ID.\n * @param params - Optional filters (profile, reason, date range) and pagination.\n * @returns The blocked-attempt entries with a total count.\n */\n async listBlockedAttempts(\n merchantId: string,\n params?: BlockedAttemptListParams,\n ): Promise<BlockedAttemptListResponse> {\n return this.request('GET', `/billing/${encodeURIComponent(merchantId)}/blocked-attempts`, {\n query: params as Record<string, string | number | undefined>,\n });\n }\n\n /**\n * Update auto-recharge configuration (threshold, top-up amount, enabled flag).\n *\n * @param merchantId - The merchant account ID.\n * @param params - Auto-recharge settings to update.\n * @returns The updated billing profile.\n */\n async updateAutoRecharge(\n merchantId: string,\n params: AutoRechargeUpdateRequest,\n options?: RequestExtras,\n ): Promise<BillingProfileResponse> {\n return this.request('PATCH', `/billing/${encodeURIComponent(merchantId)}/auto-recharge`, {\n body: params,\n ...options,\n });\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-MLG6NXI6.cjs","../src/resources/analyticsDashboard.ts"],"names":[],"mappings":"AAAA;ACEO,IAAM,mBAAA,EAAN,MAAyB;AAAA,EAC9B,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,sBAAA,EAAwB,EAAE,KAAA,EAAO,OAAO,CAAC,CAAA;AAAA,EACtE;AAAA;AAAA,EAGA,MAAM,QAAA,CAAS,MAAA,EAAmE;AAChF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,sBAAA,EAAwB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACtE;AACF,CAAA;ADFA;AACA;AACE;AACF,gDAAC","file":"/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-MLG6NXI6.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\n\nexport class AnalyticsDashboard {\n constructor(private readonly request: RequestFn) {}\n\n /** Get analytics dashboard data. `GET /analytics-dashboard` */\n async retrieve(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics-dashboard', { query: params });\n }\n\n /** Generate analytics dashboard report. `POST /analytics-dashboard` */\n async generate(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/analytics-dashboard', { body: params });\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/anes/delo-payment/sdk-publish-w2/dist/chunk-MMBX2T4H.cjs","../src/client.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA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ment/sdk-publish-w2/dist/chunk-MMBX2T4H.cjs","sourcesContent":[null,"import { DelopayCore } from './core';\nimport type { DelopayOptions } from './core';\nimport { ApiKeys } from './resources/apiKeys';\nimport { Authentication } from './resources/authentication';\nimport { Billing } from './resources/billing';\nimport { Connectors } from './resources/connectors';\nimport { Customers } from './resources/customers';\nimport { Disputes } from './resources/disputes';\nimport { ChargebackPrevention } from './resources/chargebackPrevention';\nimport { PaypalDisputes } from './resources/paypalDisputes';\nimport { WhopResolutionCases } from './resources/whopResolutionCases';\nimport { EphemeralKeys } from './resources/ephemeralKeys';\nimport { Events } from './resources/events';\nimport { Fees } from './resources/fees';\nimport { Mandates } from './resources/mandates';\nimport { MerchantAccounts } from './resources/merchantAccounts';\nimport { PaymentLinks } from './resources/paymentLinks';\nimport { PaymentMethods } from './resources/paymentMethods';\nimport { Payments } from './resources/payments';\nimport { Payouts } from './resources/payouts';\nimport { Poll } from './resources/poll';\nimport { ProfileAcquirers } from './resources/profileAcquirers';\nimport { Profiles } from './resources/profiles';\nimport { Projects } from './resources/projects';\nimport { Refunds } from './resources/refunds';\nimport { Relay } from './resources/relay';\nimport { Routing } from './resources/routing';\nimport { Search } from './resources/search';\nimport { AiTools } from './resources/aiTools';\nimport { Shops } from './resources/shops';\nimport { StripeConnect } from './resources/stripeConnect';\nimport { ThreeDsRules } from './resources/threeDsRules';\nimport { Users } from './resources/users';\nimport { Verification } from './resources/verification';\nimport { IdentityVerifications } from './resources/identityVerifications';\nimport { Webhooks } from './resources/webhooks';\nimport { Analytics } from './resources/analytics';\nimport { AnalyticsDashboard } from './resources/analyticsDashboard';\nimport { Cards } from './resources/cards';\nimport { Export } from './resources/export';\nimport { FeatureMatrix } from './resources/featureMatrix';\nimport { Files } from './resources/files';\nimport { Forex } from './resources/forex';\nimport { Regions } from './resources/regions';\nimport { AvailabilityOverrides } from './resources/availabilityOverrides';\nimport { SellToRestrictions } from './resources/sellToRestrictions';\nimport { VatRates } from './resources/vatRates';\nimport { BuyerBlocklist } from './resources/buyerBlocklist';\nimport { CheckoutDomains } from './resources/checkoutDomains';\nimport { Persons } from './resources/persons';\nimport { ShopLabels } from './resources/shopLabels';\nimport { Industries } from './resources/industries';\nimport { PayoutDestinations } from './resources/payoutDestinations';\nimport { Notices } from './resources/notices';\nimport { CheckoutTemplates } from './resources/checkoutTemplates';\nimport { BuyerConversations } from './resources/buyerConversations';\nimport { BuyerEvidenceReviews } from './resources/buyerEvidenceReviews';\nimport { CheckoutRecovery } from './resources/checkoutRecovery';\nimport { CostRules } from './resources/costRules';\nimport { ExternalRecords } from './resources/externalRecords';\nimport { Products } from './resources/products';\nimport { Support } from './resources/support';\nimport { Invoices } from './resources/invoices';\nimport { InvoiceSettingsResource } from './resources/invoiceSettings';\nimport { ProcessorCosts } from './resources/processorCosts';\nimport { CheckoutMethods } from './resources/checkoutMethods';\nimport { Subscriptions } from './resources/subscriptions';\nimport { BuyerAccount } from './resources/buyerAccount';\nimport { BuyerPortal } from './resources/buyerPortal';\nimport { Audit } from './resources/audit';\nimport { Settlement } from './resources/settlement';\nimport { OperationLimits } from './resources/operationLimits';\nimport { Settings } from './resources/settings';\nimport { MessageTemplates } from './resources/messageTemplates';\nimport { Risk } from './resources/risk';\nimport { Live } from './resources/live';\nimport { ProcessorImports } from './resources/processorImports';\nimport { Branding } from './resources/deploymentBranding';\nimport { ContentEncryption } from './resources/contentEncryption';\n\nexport * from './core';\n\n/**\n * Delopay API client.\n *\n * Instantiate once with your API key and reuse across your application.\n * All resource sub-clients (payments, refunds, customers, …) are exposed\n * as properties on the instance.\n *\n * Every resource is in the bundle of an application that uses this class. A\n * browser application that wants only the resources it calls uses\n * {@link DelopayCore} instead.\n *\n * @example\n * ```typescript\n * const delopay = new Delopay('prd_...', { sandbox: false });\n * const payment = await delopay.payments.create({ amount: 5000, currency: 'EUR' });\n * ```\n */\nexport class Delopay extends DelopayCore {\n /** Utility for verifying incoming webhook signatures (static, no instance needed). */\n static webhooks = Webhooks;\n\n // Merchant-facing\n readonly payments: Payments;\n readonly refunds: Refunds;\n readonly customers: Customers;\n readonly paymentMethods: PaymentMethods;\n readonly paymentLinks: PaymentLinks;\n readonly mandates: Mandates;\n readonly disputes: Disputes;\n readonly chargebackPrevention: ChargebackPrevention;\n readonly paypalDisputes: PaypalDisputes;\n readonly whopResolutionCases: WhopResolutionCases;\n /** Import refunds and disputes from connected processor accounts. */\n readonly processorImports: ProcessorImports;\n readonly payouts: Payouts;\n readonly ephemeralKeys: EphemeralKeys;\n readonly events: Events;\n readonly poll: Poll;\n\n // Connector / routing\n readonly connectors: Connectors;\n readonly routing: Routing;\n readonly profiles: Profiles;\n readonly shops: Shops;\n readonly profileAcquirers: ProfileAcquirers;\n\n // Authentication & verification\n readonly authentication: Authentication;\n readonly verification: Verification;\n readonly identityVerifications: IdentityVerifications;\n\n // Dashboard / internal\n readonly users: Users;\n readonly apiKeys: ApiKeys;\n readonly billing: Billing;\n readonly fees: Fees;\n readonly merchantAccounts: MerchantAccounts;\n readonly projects: Projects;\n readonly relay: Relay;\n readonly stripeConnect: StripeConnect;\n readonly threeDsRules: ThreeDsRules;\n /**\n * A merchant's own audit log. Needs a dashboard JWT, not an API key —\n * see {@link Audit}.\n */\n readonly audit: Audit;\n readonly settlement: Settlement;\n readonly operationLimits: OperationLimits;\n /** Every setting of the merchant, its projects and its shops, audited per change. */\n readonly settings: Settings;\n /** A shop's own texts of the emails it sends its buyers. */\n readonly messageTemplates: MessageTemplates;\n readonly risk: Risk;\n /**\n * Live updates of the dashboard: the stream of what changed and the\n * versions a save names in `If-Match`. Needs a dashboard JWT — see\n * {@link Live}.\n */\n readonly live: Live;\n /**\n * The deployment's branding (name, logos, favicon, default checkout\n * colours) as the operator saved it. Public: no credential is needed.\n */\n readonly branding: Branding;\n /**\n * Whether the deployment stores new messages and uploaded files encrypted\n * with its own key. Public: no credential is needed.\n */\n readonly contentEncryption: ContentEncryption;\n\n // New resources (Phases 3-4)\n readonly subscriptions: Subscriptions;\n /** Buyer portal grant access. Construct a separate client with the portal token. */\n readonly buyerPortal: BuyerPortal;\n /**\n * The buyer account: email sign-in, and purchases across merchants.\n * Construct a separate client with the buyer account session token for\n * everything after the sign-in.\n */\n readonly buyerAccount: BuyerAccount;\n readonly files: Files;\n readonly export: Export;\n readonly forex: Forex;\n readonly regions: Regions;\n readonly availabilityOverrides: AvailabilityOverrides;\n readonly sellToRestrictions: SellToRestrictions;\n /** The platform VAT rate table buyer tax charges from, read-only. */\n readonly vatRates: VatRates;\n /** Buyers the merchant refuses to sell to again (email, IP, customer, device, card, BIN), with Stripe Radar sync. */\n readonly buyerBlocklist: BuyerBlocklist;\n /** The merchant's own checkout addresses: subdomains and own domains, their setup, shops and Apple Pay file. */\n readonly checkoutDomains: CheckoutDomains;\n /** The merchant's payments grouped by the person behind them. */\n readonly persons: Persons;\n /** The merchant's labels for grouping shops, several per shop. */\n readonly shopLabels: ShopLabels;\n /** The industry of the merchant, its projects and its shops, with what each inherits. */\n readonly industries: Industries;\n /** Payouts: how team members want to be paid. Moves no money. */\n readonly payoutDestinations: PayoutDestinations;\n /** Notices a merchant's people send each other. */\n readonly notices: Notices;\n /** Payment methods, behaviour and smart routing defined once and used in many shops. */\n readonly checkoutTemplates: CheckoutTemplates;\n /** Conversations between buyers and the shop's team: the team inbox. */\n readonly buyerConversations: BuyerConversations;\n /** The evidence buyers hand in for the shop's cases, as the shop's team reviews it. */\n readonly buyerEvidence: BuyerEvidenceReviews;\n readonly checkoutRecovery: CheckoutRecovery;\n readonly costRules: CostRules;\n\n /** Out-of-band transitions a PSP made that DeloPay never observed. */\n readonly externalRecords: ExternalRecords;\n\n /** A shop's product catalogue: what it sells, and at which prices. */\n readonly products: Products;\n /** Conversations with DeloPay's support team. */\n readonly support: Support;\n /** The invoices and credit notes the merchant issues to its buyers. */\n readonly invoices: Invoices;\n /** How those invoices look and are taxed: the merchant default and each shop's override. */\n readonly invoiceSettings: InvoiceSettingsResource;\n /** What the merchant's own processor charges it — see {@link ProcessorCosts}. */\n readonly processorCosts: ProcessorCosts;\n readonly checkoutMethods: CheckoutMethods;\n readonly analytics: Analytics;\n readonly analyticsDashboard: AnalyticsDashboard;\n readonly featureMatrix: FeatureMatrix;\n readonly cards: Cards;\n readonly search: Search;\n /** AI tools working in the account through the MCP server: their confirmations and connections. */\n readonly aiTools: AiTools;\n\n /**\n * Create a new Delopay client.\n *\n * @param apiKey - Your Delopay API key (e.g. `prd_...` or `snd_...`).\n * Pass an empty string or omit for JWT-only usage (e.g. dashboard apps).\n * @param options - Optional configuration (sandbox mode, base URL override, timeout).\n */\n constructor(apiKey?: string, options?: DelopayOptions) {\n super(apiKey, options);\n const { request, openStream } = this.transport;\n\n // Merchant-facing\n this.payments = new Payments(request);\n this.refunds = new Refunds(request);\n this.customers = new Customers(request);\n this.paymentMethods = new PaymentMethods(request);\n this.paymentLinks = new PaymentLinks(request);\n this.mandates = new Mandates(request);\n this.disputes = new Disputes(request);\n this.chargebackPrevention = new ChargebackPrevention(request);\n this.paypalDisputes = new PaypalDisputes(request);\n this.whopResolutionCases = new WhopResolutionCases(request);\n this.payouts = new Payouts(request);\n this.ephemeralKeys = new EphemeralKeys(request);\n this.events = new Events(request);\n this.poll = new Poll(request);\n\n // Connector / routing\n this.connectors = new Connectors(request);\n this.routing = new Routing(request);\n this.profiles = new Profiles(request);\n this.shops = new Shops(request);\n this.profileAcquirers = new ProfileAcquirers(request);\n\n // Authentication & verification\n this.authentication = new Authentication(request);\n this.verification = new Verification(request);\n this.identityVerifications = new IdentityVerifications(request);\n\n // Dashboard / internal\n this.users = new Users(request);\n this.apiKeys = new ApiKeys(request);\n this.billing = new Billing(request);\n this.fees = new Fees(request);\n this.merchantAccounts = new MerchantAccounts(request);\n this.projects = new Projects(request);\n this.relay = new Relay(request);\n this.stripeConnect = new StripeConnect(request);\n this.threeDsRules = new ThreeDsRules(request);\n this.audit = new Audit(request);\n this.settlement = new Settlement(request);\n this.operationLimits = new OperationLimits(request);\n this.settings = new Settings(request);\n this.messageTemplates = new MessageTemplates(request);\n this.risk = new Risk(request);\n this.live = new Live(request, openStream);\n this.processorImports = new ProcessorImports(request, openStream);\n this.branding = new Branding(request, this.baseUrl);\n this.contentEncryption = new ContentEncryption(request);\n\n // New resources (Phases 3-4)\n this.subscriptions = new Subscriptions(request);\n this.buyerPortal = new BuyerPortal(request);\n this.buyerAccount = new BuyerAccount(request);\n this.files = new Files(request);\n this.export = new Export(request);\n this.forex = new Forex(request);\n this.regions = new Regions(request);\n this.availabilityOverrides = new AvailabilityOverrides(request);\n this.sellToRestrictions = new SellToRestrictions(request);\n this.vatRates = new VatRates(request);\n this.buyerBlocklist = new BuyerBlocklist(request);\n this.checkoutDomains = new CheckoutDomains(request);\n this.persons = new Persons(request);\n this.shopLabels = new ShopLabels(request);\n this.industries = new Industries(request);\n this.payoutDestinations = new PayoutDestinations(request);\n this.notices = new Notices(request);\n this.checkoutTemplates = new CheckoutTemplates(request);\n this.buyerConversations = new BuyerConversations(request);\n this.buyerEvidence = new BuyerEvidenceReviews(request);\n this.checkoutRecovery = new CheckoutRecovery(request);\n this.costRules = new CostRules(request);\n this.externalRecords = new ExternalRecords(request);\n this.products = new Products(request);\n this.support = new Support(request);\n this.invoices = new Invoices(request);\n this.invoiceSettings = new InvoiceSettingsResource(request);\n this.processorCosts = new ProcessorCosts(request);\n this.checkoutMethods = new CheckoutMethods(request);\n this.analytics = new Analytics(request);\n this.analyticsDashboard = new AnalyticsDashboard(request);\n this.featureMatrix = new FeatureMatrix(request);\n this.cards = new Cards(request);\n this.search = new Search(request);\n this.aiTools = new AiTools(request);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-MMBX2T4H.cjs","../src/client.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;A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BAAA,CAAQ,OAAO,CAAA;AAAA,EACpC;AACF,CAAA;AAAA;AAzOa,OAAA,CAEJ,SAAA,EAAW,0BAAA;ADkOpB;AACA;AACE;AACF,0BAAC","file":"/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-MMBX2T4H.cjs","sourcesContent":[null,"import { DelopayCore } from './core';\nimport type { DelopayOptions } from './core';\nimport { ApiKeys } from './resources/apiKeys';\nimport { Authentication } from './resources/authentication';\nimport { Billing } from './resources/billing';\nimport { Connectors } from './resources/connectors';\nimport { Customers } from './resources/customers';\nimport { Disputes } from './resources/disputes';\nimport { ChargebackPrevention } from './resources/chargebackPrevention';\nimport { PaypalDisputes } from './resources/paypalDisputes';\nimport { WhopResolutionCases } from './resources/whopResolutionCases';\nimport { EphemeralKeys } from './resources/ephemeralKeys';\nimport { Events } from './resources/events';\nimport { Fees } from './resources/fees';\nimport { Mandates } from './resources/mandates';\nimport { MerchantAccounts } from './resources/merchantAccounts';\nimport { PaymentLinks } from './resources/paymentLinks';\nimport { PaymentMethods } from './resources/paymentMethods';\nimport { Payments } from './resources/payments';\nimport { Payouts } from './resources/payouts';\nimport { Poll } from './resources/poll';\nimport { ProfileAcquirers } from './resources/profileAcquirers';\nimport { Profiles } from './resources/profiles';\nimport { Projects } from './resources/projects';\nimport { Refunds } from './resources/refunds';\nimport { Relay } from './resources/relay';\nimport { Routing } from './resources/routing';\nimport { Search } from './resources/search';\nimport { AiTools } from './resources/aiTools';\nimport { Shops } from './resources/shops';\nimport { StripeConnect } from './resources/stripeConnect';\nimport { ThreeDsRules } from './resources/threeDsRules';\nimport { Users } from './resources/users';\nimport { Verification } from './resources/verification';\nimport { IdentityVerifications } from './resources/identityVerifications';\nimport { Webhooks } from './resources/webhooks';\nimport { Analytics } from './resources/analytics';\nimport { AnalyticsDashboard } from './resources/analyticsDashboard';\nimport { Cards } from './resources/cards';\nimport { Export } from './resources/export';\nimport { FeatureMatrix } from './resources/featureMatrix';\nimport { Files } from './resources/files';\nimport { Forex } from './resources/forex';\nimport { Regions } from './resources/regions';\nimport { AvailabilityOverrides } from './resources/availabilityOverrides';\nimport { SellToRestrictions } from './resources/sellToRestrictions';\nimport { VatRates } from './resources/vatRates';\nimport { BuyerBlocklist } from './resources/buyerBlocklist';\nimport { CheckoutDomains } from './resources/checkoutDomains';\nimport { Persons } from './resources/persons';\nimport { ShopLabels } from './resources/shopLabels';\nimport { Industries } from './resources/industries';\nimport { PayoutDestinations } from './resources/payoutDestinations';\nimport { Notices } from './resources/notices';\nimport { CheckoutTemplates } from './resources/checkoutTemplates';\nimport { BuyerConversations } from './resources/buyerConversations';\nimport { BuyerEvidenceReviews } from './resources/buyerEvidenceReviews';\nimport { CheckoutRecovery } from './resources/checkoutRecovery';\nimport { CostRules } from './resources/costRules';\nimport { ExternalRecords } from './resources/externalRecords';\nimport { Products } from './resources/products';\nimport { Support } from './resources/support';\nimport { Invoices } from './resources/invoices';\nimport { InvoiceSettingsResource } from './resources/invoiceSettings';\nimport { ProcessorCosts } from './resources/processorCosts';\nimport { CheckoutMethods } from './resources/checkoutMethods';\nimport { Subscriptions } from './resources/subscriptions';\nimport { BuyerAccount } from './resources/buyerAccount';\nimport { BuyerPortal } from './resources/buyerPortal';\nimport { Audit } from './resources/audit';\nimport { Settlement } from './resources/settlement';\nimport { OperationLimits } from './resources/operationLimits';\nimport { Settings } from './resources/settings';\nimport { MessageTemplates } from './resources/messageTemplates';\nimport { Risk } from './resources/risk';\nimport { Live } from './resources/live';\nimport { ProcessorImports } from './resources/processorImports';\nimport { Branding } from './resources/deploymentBranding';\nimport { ContentEncryption } from './resources/contentEncryption';\n\nexport * from './core';\n\n/**\n * Delopay API client.\n *\n * Instantiate once with your API key and reuse across your application.\n * All resource sub-clients (payments, refunds, customers, …) are exposed\n * as properties on the instance.\n *\n * Every resource is in the bundle of an application that uses this class. A\n * browser application that wants only the resources it calls uses\n * {@link DelopayCore} instead.\n *\n * @example\n * ```typescript\n * const delopay = new Delopay('prd_...', { sandbox: false });\n * const payment = await delopay.payments.create({ amount: 5000, currency: 'EUR' });\n * ```\n */\nexport class Delopay extends DelopayCore {\n /** Utility for verifying incoming webhook signatures (static, no instance needed). */\n static webhooks = Webhooks;\n\n // Merchant-facing\n readonly payments: Payments;\n readonly refunds: Refunds;\n readonly customers: Customers;\n readonly paymentMethods: PaymentMethods;\n readonly paymentLinks: PaymentLinks;\n readonly mandates: Mandates;\n readonly disputes: Disputes;\n readonly chargebackPrevention: ChargebackPrevention;\n readonly paypalDisputes: PaypalDisputes;\n readonly whopResolutionCases: WhopResolutionCases;\n /** Import refunds and disputes from connected processor accounts. */\n readonly processorImports: ProcessorImports;\n readonly payouts: Payouts;\n readonly ephemeralKeys: EphemeralKeys;\n readonly events: Events;\n readonly poll: Poll;\n\n // Connector / routing\n readonly connectors: Connectors;\n readonly routing: Routing;\n readonly profiles: Profiles;\n readonly shops: Shops;\n readonly profileAcquirers: ProfileAcquirers;\n\n // Authentication & verification\n readonly authentication: Authentication;\n readonly verification: Verification;\n readonly identityVerifications: IdentityVerifications;\n\n // Dashboard / internal\n readonly users: Users;\n readonly apiKeys: ApiKeys;\n readonly billing: Billing;\n readonly fees: Fees;\n readonly merchantAccounts: MerchantAccounts;\n readonly projects: Projects;\n readonly relay: Relay;\n readonly stripeConnect: StripeConnect;\n readonly threeDsRules: ThreeDsRules;\n /**\n * A merchant's own audit log. Needs a dashboard JWT, not an API key —\n * see {@link Audit}.\n */\n readonly audit: Audit;\n readonly settlement: Settlement;\n readonly operationLimits: OperationLimits;\n /** Every setting of the merchant, its projects and its shops, audited per change. */\n readonly settings: Settings;\n /** A shop's own texts of the emails it sends its buyers. */\n readonly messageTemplates: MessageTemplates;\n readonly risk: Risk;\n /**\n * Live updates of the dashboard: the stream of what changed and the\n * versions a save names in `If-Match`. Needs a dashboard JWT — see\n * {@link Live}.\n */\n readonly live: Live;\n /**\n * The deployment's branding (name, logos, favicon, default checkout\n * colours) as the operator saved it. Public: no credential is needed.\n */\n readonly branding: Branding;\n /**\n * Whether the deployment stores new messages and uploaded files encrypted\n * with its own key. Public: no credential is needed.\n */\n readonly contentEncryption: ContentEncryption;\n\n // New resources (Phases 3-4)\n readonly subscriptions: Subscriptions;\n /** Buyer portal grant access. Construct a separate client with the portal token. */\n readonly buyerPortal: BuyerPortal;\n /**\n * The buyer account: email sign-in, and purchases across merchants.\n * Construct a separate client with the buyer account session token for\n * everything after the sign-in.\n */\n readonly buyerAccount: BuyerAccount;\n readonly files: Files;\n readonly export: Export;\n readonly forex: Forex;\n readonly regions: Regions;\n readonly availabilityOverrides: AvailabilityOverrides;\n readonly sellToRestrictions: SellToRestrictions;\n /** The platform VAT rate table buyer tax charges from, read-only. */\n readonly vatRates: VatRates;\n /** Buyers the merchant refuses to sell to again (email, IP, customer, device, card, BIN), with Stripe Radar sync. */\n readonly buyerBlocklist: BuyerBlocklist;\n /** The merchant's own checkout addresses: subdomains and own domains, their setup, shops and Apple Pay file. */\n readonly checkoutDomains: CheckoutDomains;\n /** The merchant's payments grouped by the person behind them. */\n readonly persons: Persons;\n /** The merchant's labels for grouping shops, several per shop. */\n readonly shopLabels: ShopLabels;\n /** The industry of the merchant, its projects and its shops, with what each inherits. */\n readonly industries: Industries;\n /** Payouts: how team members want to be paid. Moves no money. */\n readonly payoutDestinations: PayoutDestinations;\n /** Notices a merchant's people send each other. */\n readonly notices: Notices;\n /** Payment methods, behaviour and smart routing defined once and used in many shops. */\n readonly checkoutTemplates: CheckoutTemplates;\n /** Conversations between buyers and the shop's team: the team inbox. */\n readonly buyerConversations: BuyerConversations;\n /** The evidence buyers hand in for the shop's cases, as the shop's team reviews it. */\n readonly buyerEvidence: BuyerEvidenceReviews;\n readonly checkoutRecovery: CheckoutRecovery;\n readonly costRules: CostRules;\n\n /** Out-of-band transitions a PSP made that DeloPay never observed. */\n readonly externalRecords: ExternalRecords;\n\n /** A shop's product catalogue: what it sells, and at which prices. */\n readonly products: Products;\n /** Conversations with DeloPay's support team. */\n readonly support: Support;\n /** The invoices and credit notes the merchant issues to its buyers. */\n readonly invoices: Invoices;\n /** How those invoices look and are taxed: the merchant default and each shop's override. */\n readonly invoiceSettings: InvoiceSettingsResource;\n /** What the merchant's own processor charges it — see {@link ProcessorCosts}. */\n readonly processorCosts: ProcessorCosts;\n readonly checkoutMethods: CheckoutMethods;\n readonly analytics: Analytics;\n readonly analyticsDashboard: AnalyticsDashboard;\n readonly featureMatrix: FeatureMatrix;\n readonly cards: Cards;\n readonly search: Search;\n /** AI tools working in the account through the MCP server: their confirmations and connections. */\n readonly aiTools: AiTools;\n\n /**\n * Create a new Delopay client.\n *\n * @param apiKey - Your Delopay API key (e.g. `prd_...` or `snd_...`).\n * Pass an empty string or omit for JWT-only usage (e.g. dashboard apps).\n * @param options - Optional configuration (sandbox mode, base URL override, timeout).\n */\n constructor(apiKey?: string, options?: DelopayOptions) {\n super(apiKey, options);\n const { request, openStream } = this.transport;\n\n // Merchant-facing\n this.payments = new Payments(request);\n this.refunds = new Refunds(request);\n this.customers = new Customers(request);\n this.paymentMethods = new PaymentMethods(request);\n this.paymentLinks = new PaymentLinks(request);\n this.mandates = new Mandates(request);\n this.disputes = new Disputes(request);\n this.chargebackPrevention = new ChargebackPrevention(request);\n this.paypalDisputes = new PaypalDisputes(request);\n this.whopResolutionCases = new WhopResolutionCases(request);\n this.payouts = new Payouts(request);\n this.ephemeralKeys = new EphemeralKeys(request);\n this.events = new Events(request);\n this.poll = new Poll(request);\n\n // Connector / routing\n this.connectors = new Connectors(request);\n this.routing = new Routing(request);\n this.profiles = new Profiles(request);\n this.shops = new Shops(request);\n this.profileAcquirers = new ProfileAcquirers(request);\n\n // Authentication & verification\n this.authentication = new Authentication(request);\n this.verification = new Verification(request);\n this.identityVerifications = new IdentityVerifications(request);\n\n // Dashboard / internal\n this.users = new Users(request);\n this.apiKeys = new ApiKeys(request);\n this.billing = new Billing(request);\n this.fees = new Fees(request);\n this.merchantAccounts = new MerchantAccounts(request);\n this.projects = new Projects(request);\n this.relay = new Relay(request);\n this.stripeConnect = new StripeConnect(request);\n this.threeDsRules = new ThreeDsRules(request);\n this.audit = new Audit(request);\n this.settlement = new Settlement(request);\n this.operationLimits = new OperationLimits(request);\n this.settings = new Settings(request);\n this.messageTemplates = new MessageTemplates(request);\n this.risk = new Risk(request);\n this.live = new Live(request, openStream);\n this.processorImports = new ProcessorImports(request, openStream);\n this.branding = new Branding(request, this.baseUrl);\n this.contentEncryption = new ContentEncryption(request);\n\n // New resources (Phases 3-4)\n this.subscriptions = new Subscriptions(request);\n this.buyerPortal = new BuyerPortal(request);\n this.buyerAccount = new BuyerAccount(request);\n this.files = new Files(request);\n this.export = new Export(request);\n this.forex = new Forex(request);\n this.regions = new Regions(request);\n this.availabilityOverrides = new AvailabilityOverrides(request);\n this.sellToRestrictions = new SellToRestrictions(request);\n this.vatRates = new VatRates(request);\n this.buyerBlocklist = new BuyerBlocklist(request);\n this.checkoutDomains = new CheckoutDomains(request);\n this.persons = new Persons(request);\n this.shopLabels = new ShopLabels(request);\n this.industries = new Industries(request);\n this.payoutDestinations = new PayoutDestinations(request);\n this.notices = new Notices(request);\n this.checkoutTemplates = new CheckoutTemplates(request);\n this.buyerConversations = new BuyerConversations(request);\n this.buyerEvidence = new BuyerEvidenceReviews(request);\n this.checkoutRecovery = new CheckoutRecovery(request);\n this.costRules = new CostRules(request);\n this.externalRecords = new ExternalRecords(request);\n this.products = new Products(request);\n this.support = new Support(request);\n this.invoices = new Invoices(request);\n this.invoiceSettings = new InvoiceSettingsResource(request);\n this.processorCosts = new ProcessorCosts(request);\n this.checkoutMethods = new CheckoutMethods(request);\n this.analytics = new Analytics(request);\n this.analyticsDashboard = new AnalyticsDashboard(request);\n this.featureMatrix = new FeatureMatrix(request);\n this.cards = new Cards(request);\n this.search = new Search(request);\n this.aiTools = new AiTools(request);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-NFB3S2E6.cjs","../src/resources/vatRates.ts"],"names":[],"mappings":"AAAA;ACSO,IAAM,SAAA,EAAN,MAAe;AAAA,EACpB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlD,MAAM,IAAA,CAAK,MAAA,EAA0D;AACnE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,YAAA,EAAc;AAAA,MACvC,KAAA,EAAO,EAAE,OAAA,kBAAS,MAAA,2BAAQ,SAAA,EAAS,EAAA,kBAAI,MAAA,6BAAQ,KAAG;AAAA,IACpD,CAAC,CAAA;AAAA,EACH;AACF,CAAA;ADNA;AACA;AACE;AACF,4BAAC","file":"/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-NFB3S2E6.cjs","sourcesContent":[null,"import type { VatRateListParams, VatRateListResponse } from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * The platform VAT rate table: the rate charged for a country and tax\n * category from a date on, used when a shop has buyer tax on and no tax rule\n * of the merchant's own decides the line. Read-only. A rate change is a new\n * row with a later `valid_from`; a row in force never changes its rate.\n */\nexport class VatRates {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * List the rates, by country, category and `valid_from`. With `on`, only\n * the row in force on that date for each country and category.\n *\n * `GET /vat-rates`\n */\n async list(params?: VatRateListParams): Promise<VatRateListResponse> {\n return this.request('GET', '/vat-rates', {\n query: { country: params?.country, on: params?.on },\n });\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-NYL3BNHR.cjs","../src/resources/paymentLinks.ts"],"names":[],"mappings":"AAAA;ACSO,IAAM,aAAA,EAAN,MAAmB;AAAA,EACxB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlD,MAAM,QAAA,CAAS,MAAA,EAA8C;AAC3D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,cAAA,EAAiB,kBAAA,CAAmB,MAAM,CAAC,CAAA,CAAA;AACxE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAa2E,EAAA;AACF,IAAA;AACzE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ6E,EAAA;AACT,IAAA;AACpE,EAAA;AAAA;AAGwF,EAAA;AAC1E,IAAA;AACV,MAAA;AACmD,MAAA;AACrD,IAAA;AACF,EAAA;AAAA;AAGsF,EAAA;AACxE,IAAA;AACV,MAAA;AAC0D,MAAA;AAC5D,IAAA;AACF,EAAA;AACF;ADV2E;AACA;AACA;AACA","file":"/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-NYL3BNHR.cjs","sourcesContent":[null,"import type {\n CheckoutLinkResolveResponse,\n PaymentLinkResponse,\n PaymentLinkListParams,\n PaymentLinkListResponse,\n} from '../types';\nimport type { RequestFn } from '../client';\n\n/** Retrieve and list hosted payment links. */\nexport class PaymentLinks {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Retrieve a payment link by its ID.\n *\n * @param linkId - The unique payment link ID.\n * @returns The payment link details.\n */\n async retrieve(linkId: string): Promise<PaymentLinkResponse> {\n return this.request('GET', `/payment-link/${encodeURIComponent(linkId)}`);\n }\n\n /**\n * The merchant and payment an opaque checkout link opens.\n *\n * A link the API issues today is `/pay/{payment_link_id}`, so it names\n * neither the merchant nor the payment. This answers which ones it means.\n * Unauthenticated, like the checkout render it precedes: no credential is\n * needed or sent beyond what the client already carries. An unknown id is a\n * 404.\n *\n * `GET /payment-link/resolve/{payment_link_id}`\n */\n async resolve(paymentLinkId: string): Promise<CheckoutLinkResolveResponse> {\n return this.request('GET', `/payment-link/resolve/${encodeURIComponent(paymentLinkId)}`);\n }\n\n /**\n * List payment links, optionally filtered by status or date range.\n *\n * @param params - Optional filter and pagination parameters.\n * @returns Paginated list of payment links.\n */\n async list(params?: PaymentLinkListParams): Promise<PaymentLinkListResponse> {\n return this.request('POST', '/payment-link/list', { body: params });\n }\n\n /** Initiate (render) a payment link page. `GET /payment-link/{merchantId}/{paymentId}` */\n async initiate(merchantId: string, paymentId: string): Promise<Record<string, unknown>> {\n return this.request(\n 'GET',\n `/payment-link/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`,\n );\n }\n\n /** Get payment link status. `GET /payment-link/status/{merchantId}/{paymentId}` */\n async status(merchantId: string, paymentId: string): Promise<Record<string, unknown>> {\n return this.request(\n 'GET',\n `/payment-link/status/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`,\n );\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-O4AYHLQX.cjs","../src/resources/processorImports.ts"],"names":[],"mappings":"AAAA;ACeO,SAAS,sBAAA,CAAuB,KAAA,EAGP;AAC9B,EAAA,OAAA,CAAQ,KAAA,CAAM,IAAA,EAAM;AAAA,IAClB,KAAK,UAAA,EAAY;AACf,MAAA,IAAI,GAAA;AACJ,MAAA,IAAI;AACF,QAAA,IAAA,EAAM,IAAA,CAAK,KAAA,CAAM,KAAA,CAAM,IAAI,CAAA;AAAA,MAC7B,EAAA,UAAQ;AACN,QAAA,OAAO,IAAA;AAAA,MACT;AACA,MAAA,GAAA,CAAI,IAAA,IAAQ,KAAA,GAAQ,OAAO,IAAA,IAAQ,SAAA,GAAY,KAAA,CAAM,OAAA,CAAQ,GAAG,CAAA,EAAG,OAAO,IAAA;AAC1E,MAAA,OAAO,EAA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ript-sdk/dist/chunk-O4AYHLQX.cjs","sourcesContent":[null,"import type {\n PspImportCreateRequest,\n PspImportIssuesRequest,\n PspImportIssuesResponse,\n PspImportLatestRequest,\n PspImportLatestResponse,\n PspImportRunResponse,\n PspImportSourcesRequest,\n PspImportSourcesResponse,\n PspImportStreamEvent,\n PspImportStreamOptions,\n} from '../types';\nimport type { EventStreamConnection, EventStreamFn, RequestFn } from '../client';\n\n/** The typed event a dispatch carries, or `null` for one the SDK does not know. */\nexport function toPspImportStreamEvent(event: {\n type: string;\n data: string;\n}): PspImportStreamEvent | null {\n switch (event.type) {\n case 'progress': {\n let run: unknown;\n try {\n run = JSON.parse(event.data);\n } catch {\n return null;\n }\n if (run === null || typeof run !== 'object' || Array.isArray(run)) return null;\n return { type: 'progress', run: run as PspImportRunResponse };\n }\n case 'done':\n return { type: 'done' };\n default:\n return null;\n }\n}\n\n/**\n * An open progress stream of one import: iterate it with `for await`.\n *\n * Each `progress` event carries the whole run, so a missed one loses nothing.\n * The iteration ends after `done`, when the server ends the stream (the\n * session ended, or the stream reached its lifetime), and when it is aborted\n * or closed. The SDK does not reconnect: read the run again with\n * `processorImports.retrieve()` and open a new stream while it is running. It\n * throws a `DelopayError` with code `TIMEOUT` when the stream stays silent too\n * long and `NETWORK` when the connection fails.\n */\nexport class PspImportEventStream implements AsyncIterable<PspImportStreamEvent> {\n private iterator?: AsyncGenerator<PspImportStreamEvent, void, undefined>;\n\n constructor(private readonly connection: EventStreamConnection) {}\n\n /** Close the stream; the iteration ends without an error. */\n close(): void {\n this.connection.close();\n }\n\n [Symbol.asyncIterator](): AsyncGenerator<PspImportStreamEvent, void, undefined> {\n this.iterator ??= this.events();\n return this.iterator;\n }\n\n private async *events(): AsyncGenerator<PspImportStreamEvent, void, undefined> {\n for await (const dispatch of this.connection.dispatches) {\n if (!dispatch.event) continue;\n const event = toPspImportStreamEvent(dispatch.event);\n if (event) yield event;\n }\n }\n}\n\n/**\n * Import refunds and disputes from the merchant's connected processor\n * accounts, in the background. An import only reads from the processor and\n * records what it already holds: it never answers a dispute, moves money or\n * changes a payment. A record DeloPay already holds is counted as already\n * present. Every method needs a dashboard JWT (`setJwtToken`).\n */\nexport class ProcessorImports {\n constructor(\n private readonly request: RequestFn,\n private readonly openStream: EventStreamFn,\n ) {}\n\n /**\n * Every connected processor account the caller may see, with what each can\n * provide in the environment: listed, read payment by payment, or\n * unavailable with a reason.\n *\n * `GET /refunds-disputes/imports/sources`\n */\n async sources(params: PspImportSourcesRequest): Promise<PspImportSourcesResponse> {\n return this.request('GET', '/refunds-disputes/imports/sources', {\n query: { test_mode: params.test_mode },\n });\n }\n\n /**\n * Start an import. A source a processor cannot provide is stored as\n * `unavailable` with its reason. Refused while another import of the\n * merchant runs in the same environment.\n *\n * `POST /refunds-disputes/imports`\n */\n async create(request: PspImportCreateRequest): Promise<PspImportRunResponse> {\n return this.request('POST', '/refunds-disputes/imports', { body: request });\n }\n\n /**\n * The newest import in the environment, running or finished.\n *\n * `GET /refunds-disputes/imports/latest`\n */\n async latest(params: PspImportLatestRequest): Promise<PspImportLatestResponse> {\n return this.request('GET', '/refunds-disputes/imports/latest', {\n query: { test_mode: params.test_mode },\n });\n }\n\n /** `GET /refunds-disputes/imports/{id}` */\n async retrieve(id: string): Promise<PspImportRunResponse> {\n return this.request('GET', `/refunds-disputes/imports/${encodeURIComponent(id)}`);\n }\n\n /**\n * The records an import left out or could not record, each with its reason.\n *\n * `GET /refunds-disputes/imports/{id}/issues`\n */\n async issues(id: string, params?: PspImportIssuesRequest): Promise<PspImportIssuesResponse> {\n return this.request('GET', `/refunds-disputes/imports/${encodeURIComponent(id)}/issues`, {\n query: { limit: params?.limit, offset: params?.offset },\n });\n }\n\n /**\n * Ask a running import to stop. It stops after the page it is reading;\n * what it recorded stays recorded.\n *\n * `POST /refunds-disputes/imports/{id}/cancel`\n */\n async cancel(id: string): Promise<PspImportRunResponse> {\n return this.request('POST', `/refunds-disputes/imports/${encodeURIComponent(id)}/cancel`);\n }\n\n /**\n * Open the progress stream of an import. Resolves once the server answered;\n * a `401` rejects with `DelopayAuthenticationError`.\n *\n * `GET /refunds-disputes/imports/{id}/stream`\n *\n * @example\n * ```typescript\n * const stream = await delopay.processorImports.stream(run.id, { signal });\n * for await (const event of stream) {\n * if (event.type === 'progress') render(event.run);\n * }\n * ```\n */\n async stream(id: string, options: PspImportStreamOptions = {}): Promise<PspImportEventStream> {\n const connection = await this.openStream(\n `/refunds-disputes/imports/${encodeURIComponent(id)}/stream`,\n {\n ...(options.signal ? { signal: options.signal } : {}),\n ...(options.idleTimeoutMs !== undefined ? { idleTimeoutMs: options.idleTimeoutMs } : {}),\n ...(options.headers ? { headers: options.headers } : {}),\n },\n );\n return new PspImportEventStream(connection);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/anes/delo-payment/sdk-publish-w2/dist/chunk-OAEKP665.cjs","../src/resources/checkoutDomains.ts"],"names":[],"mappings":"AAAA;ACsBA,SAAS,QAAA,CAAS,MAAA,EAAgB,KAAA,EAAO,EAAA,EAAY;AACnD,EAAA,OAAO,CAAA,kBAAA,EAAqB,kBAAA,CAAmB,MAAM,CAAC,CAAA,EAAA;AACxD;AAe6B;AACsB,EAAA;AAApB,IAAA;AAAqB,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQH,EAAA;AACC,IAAA;AAChD,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAU+C,EAAA;AAClB,IAAA;AAC7B,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOgF,EAAA;AAC3B,IAAA;AACrD,EAAA;AAAA;AAG8D,EAAA;AACjB,IAAA;AAC7C,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ+F,EAAA;AAC5C,IAAA;AACnD,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgB2D,EAAA;A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;AACA","file":"/home/anes/delo-payment/sdk-publish-w2/dist/chunk-OAEKP665.cjs","sourcesContent":[null,"import type {\n CheckoutDomainAlerts,\n CheckoutDomainAvailabilityQuery,\n CheckoutDomainAvailabilityResponse,\n CheckoutHostPauseRequest,\n CheckoutHostPreview,\n CheckoutHostUpdateRequest,\n CheckoutHostVerification,\n CloudflareOAuthCallback,\n CloudflareOAuthStart,\n MerchantApplePayFiles,\n MerchantCheckoutDomains,\n MerchantCheckoutHost,\n MerchantCheckoutHostCreate,\n MerchantCloudflareConnect,\n MerchantHostHealth,\n MerchantHostShopsRequest,\n RemovedCheckoutHost,\n ShopCheckoutHost,\n} from '../types';\nimport type { RequestFn } from '../client';\n\nfunction hostPath(hostId: string, rest = ''): string {\n return `/checkout-domains/${encodeURIComponent(hostId)}${rest}`;\n}\n\n/**\n * Checkout domains: the addresses a merchant's hosted checkout answers on\n * besides the platform's default one. An address is a name on the platform's\n * domain (`checkout-yourshop.example.net`) or a subdomain of the merchant's\n * own domain (`checkout.yourshop.com`, set up with DNS records or a\n * Cloudflare token). Shops are assigned to an address; their new payment\n * links open there once it is ready.\n *\n * Every route needs a dashboard session. Reading needs the checkout domains\n * area at `Read`; adding, changing and removing need `Write`, which only a\n * merchant-level role holds. DeloPay turns the feature on per merchant, with\n * a limit (`entitlement` on `list()`).\n */\nexport class CheckoutDomains {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The entitlement, every address with its setup and health, how new\n * subdomains are spelled, where own domains point, the default origin, and\n * the merchant's Cloudflare connections.\n * `GET /checkout-domains`\n */\n async list(): Promise<MerchantCheckoutDomains> {\n return this.request('GET', '/checkout-domains');\n }\n\n /**\n * Whether an address can be added. Reserves nothing; the answer also names\n * a free platform name like the one asked for, and the DNS provider read\n * from an own domain's nameservers.\n * `GET /checkout-domains/availability`\n */\n async availability(\n query: CheckoutDomainAvailabilityQuery,\n ): Promise<CheckoutDomainAvailabilityResponse> {\n return this.request('GET', '/checkout-domains/availability', { query });\n }\n\n /**\n * Add an address. It starts `setting_up`; a repeat for an address the\n * merchant already has answers with that address.\n * `POST /checkout-domains`\n */\n async create(params: MerchantCheckoutHostCreate): Promise<MerchantCheckoutHost> {\n return this.request('POST', '/checkout-domains', { body: params });\n }\n\n /** One address. Another merchant's id answers 404. `GET /checkout-domains/{hostId}` */\n async retrieve(hostId: string): Promise<MerchantCheckoutHost> {\n return this.request('GET', hostPath(hostId));\n }\n\n /**\n * Change an address: the Apple Pay file it serves (`null` serves none) and\n * whether new links fall back to the default address while it is down.\n * What is left out stays as it is. Refusal: `file_unknown`.\n * `PATCH /checkout-domains/{hostId}`\n */\n async update(hostId: string, params: CheckoutHostUpdateRequest): Promise<MerchantCheckoutHost> {\n return this.request('PATCH', hostPath(hostId), { body: params });\n }\n\n /**\n * Remove an address; its shops go back to the default address for new\n * links. A platform subdomain becomes `retiring`: it takes no new links,\n * keeps serving links already sent until `retire_after`, then frees its\n * name. An own domain is removed in two steps: it must stop taking traffic\n * first (pause it; `removable_after` on the address says when the drain is\n * over), and links already sent stop working once its DNS points elsewhere.\n * Refusals (`code` `IR_16`, `data.reason`): `host_takes_traffic` (still takes new\n * traffic; pause it first), `host_draining` (stopped moments ago;\n * `retry_after_seconds`), `host_in_use` (`payment_ids` of open payments that\n * can still come back to it) and `host_changed` (it changed while being\n * removed; read it again).\n * `DELETE /checkout-domains/{hostId}`\n */\n async remove(hostId: string): Promise<RemovedCheckoutHost> {\n return this.request('DELETE', hostPath(hostId));\n }\n\n /**\n * The address's health page: uptime, days, incidents, the latest\n * transitions, usage, and who was told about its events.\n * `GET /checkout-domains/{hostId}/health`\n */\n async health(hostId: string): Promise<MerchantHostHealth> {\n return this.request('GET', hostPath(hostId, '/health'));\n }\n\n /**\n * A signed link that renders a sample checkout on the address, without a\n * payment. Valid for ten minutes.\n * `POST /checkout-domains/{hostId}/preview`\n */\n async preview(hostId: string): Promise<CheckoutHostPreview> {\n return this.request('POST', hostPath(hostId, '/preview'));\n }\n\n /**\n * Pause the address: new links fall back to the default address, open\n * payments keep loading, and no alerts are sent. It resumes at `resume_at`,\n * or when resumed. Refusals: `pause_note_invalid`, `resume_at_past`.\n * `POST /checkout-domains/{hostId}/pause`\n */\n async pause(\n hostId: string,\n params: CheckoutHostPauseRequest = {},\n ): Promise<MerchantCheckoutHost> {\n return this.request('POST', hostPath(hostId, '/pause'), { body: params });\n }\n\n /**\n * Resume a paused address.\n * `DELETE /checkout-domains/{hostId}/pause`\n */\n async resume(hostId: string): Promise<MerchantCheckoutHost> {\n return this.request('DELETE', hostPath(hostId, '/pause'));\n }\n\n /**\n * The DNS records an own domain needs (where it points, and the TXT record\n * proving the domain), whether each was found, and what the hostname\n * resolves to today.\n * `GET /checkout-domains/{hostId}/verification`\n */\n async verification(hostId: string): Promise<CheckoutHostVerification> {\n return this.request('GET', hostPath(hostId, '/verification'));\n }\n\n /**\n * Run the address's check now instead of waiting for the next one.\n * Rate-limited per address.\n * `POST /checkout-domains/{hostId}/check`\n */\n async check(hostId: string): Promise<MerchantCheckoutHost> {\n return this.request('POST', hostPath(hostId, '/check'));\n }\n\n /**\n * The whole list of shops whose new links use the address. A shop uses one\n * address at a time, so a listed shop moves off any other address of the\n * merchant. An address still setting up may take shops; their links switch\n * once it is ready.\n * `PUT /checkout-domains/{hostId}/shops`\n */\n async setShops(hostId: string, params: MerchantHostShopsRequest): Promise<MerchantCheckoutHost> {\n return this.request('PUT', hostPath(hostId, '/shops'), { body: params });\n }\n\n /**\n * Which address one shop's new links use; `host_id: null` puts the shop\n * back on the default address. Links switch once the address is ready.\n * `PUT /checkout-domains/shops/{profileId}`\n */\n async setShopHost(profileId: string, params: ShopCheckoutHost): Promise<ShopCheckoutHost> {\n return this.request('PUT', `/checkout-domains/shops/${encodeURIComponent(profileId)}`, {\n body: params,\n });\n }\n\n /**\n * How checkout address events are told: each event with bell and email,\n * the recipients (members who may manage checkout domains, or chosen\n * members) and the addresses (all or chosen). Suspensions are always told.\n * `GET /checkout-domains/alerts`\n */\n async alerts(): Promise<CheckoutDomainAlerts> {\n return this.request('GET', '/checkout-domains/alerts');\n }\n\n /**\n * Save how checkout address events are told.\n * `PUT /checkout-domains/alerts`\n */\n async updateAlerts(params: CheckoutDomainAlerts): Promise<CheckoutDomainAlerts> {\n return this.request('PUT', '/checkout-domains/alerts', { body: params });\n }\n\n /**\n * The Apple Pay verification files an address may serve: the built-in ones\n * and the platform's uploads.\n * `GET /checkout-domains/apple-pay-files`\n */\n async applePayFiles(): Promise<MerchantApplePayFiles> {\n return this.request('GET', '/checkout-domains/apple-pay-files');\n }\n\n /**\n * Connect the merchant's Cloudflare to an own domain: the token must reach\n * exactly that domain's zone, with DNS edit. The records are created\n * through it; the token is stored encrypted and never returned.\n * `POST /checkout-domains/{hostId}/cloudflare`\n */\n async connectCloudflare(\n hostId: string,\n params: MerchantCloudflareConnect,\n ): Promise<MerchantCheckoutHost> {\n return this.request('POST', hostPath(hostId, '/cloudflare'), { body: params });\n }\n\n /**\n * Start \"Connect with Cloudflare\" (OAuth) for an own domain, instead of\n * pasting a token. Send the person to `authorize_url`; Cloudflare sends\n * them back to the deployment's redirect URI with `code` and `state`,\n * which go to {@link finishCloudflareOAuth} before `expires_at`. Offered\n * only while `list()` says `cloudflare_oauth_available`; otherwise refused\n * with `cloudflare_oauth_unavailable`. Also how a connection in `needs_reconnect`, or\n * a pending cleanup that needs one, is authorized again.\n * `POST /checkout-domains/{hostId}/cloudflare/oauth/start`\n */\n async startCloudflareOAuth(hostId: string): Promise<CloudflareOAuthStart> {\n return this.request('POST', hostPath(hostId, '/cloudflare/oauth/start'));\n }\n\n /**\n * Finish \"Connect with Cloudflare\": pass the `code` and `state` from the\n * redirect unchanged. The grant is checked and the records are made in\n * the granted zone that holds the address; the answer is that address.\n * The same person who started it must finish it, and a `state` works\n * once.\n *\n * A refusal throws a `DelopayError` with `code` `IR_16` and the\n * reason in `data.reason` (`error.data?.reason`), among them\n * `cloudflare_oauth_state_invalid` (unknown, used, expired or another\n * person's: start again), `cloudflare_oauth_rejected`,\n * `cloudflare_oauth_misconfigured`, `cloudflare_scopes_missing`\n * (`data.missing` lists them), `cloudflare_zone_mismatch` and\n * `cloudflare_connect_in_progress`.\n * `POST /checkout-domains/cloudflare/oauth/callback`\n */\n async finishCloudflareOAuth(params: CloudflareOAuthCallback): Promise<MerchantCheckoutHost> {\n return this.request('POST', '/checkout-domains/cloudflare/oauth/callback', { body: params });\n }\n\n /**\n * Forget a Cloudflare connection. The records it made stay in the zone.\n * `DELETE /checkout-domains/cloudflare/{connectionId}`\n */\n async disconnectCloudflare(connectionId: string): Promise<void> {\n return this.request(\n 'DELETE',\n `/checkout-domains/cloudflare/${encodeURIComponent(connectionId)}`,\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-OAEKP665.cjs","../src/resources/checkoutDomains.ts"],"names":[],"mappings":"AAAA;ACsBA,SAAS,QAAA,CAAS,MAAA,EAAgB,KAAA,EAAO,EAAA,EAAY;AACnD,EAAA,OAAO,CAAA,kBAAA,EAAqB,kBAAA,CAAmB,MAAM,CAAC,CAAA,EAAA;AACxD;AAe6B;AACsB,EAAA;AAApB,IAAA;AAAqB,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQH,EAAA;AACC,IAAA;AAChD,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAU+C,EAAA;AAClB,IAAA;AAC7B,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOgF,EAAA;AAC3B,IAAA;AACrD,EAAA;AAAA;AAG8D,EAAA;AACjB,IAAA;AAC7C,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ+F,EAAA;AAC5C,IAAA;AACnD,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgB2D,EAAA;AACX,IAAA;AAChD,EAAA;AAAA;AAAA;AAAA;A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dk/dist/chunk-OAEKP665.cjs","sourcesContent":[null,"import type {\n CheckoutDomainAlerts,\n CheckoutDomainAvailabilityQuery,\n CheckoutDomainAvailabilityResponse,\n CheckoutHostPauseRequest,\n CheckoutHostPreview,\n CheckoutHostUpdateRequest,\n CheckoutHostVerification,\n CloudflareOAuthCallback,\n CloudflareOAuthStart,\n MerchantApplePayFiles,\n MerchantCheckoutDomains,\n MerchantCheckoutHost,\n MerchantCheckoutHostCreate,\n MerchantCloudflareConnect,\n MerchantHostHealth,\n MerchantHostShopsRequest,\n RemovedCheckoutHost,\n ShopCheckoutHost,\n} from '../types';\nimport type { RequestFn } from '../client';\n\nfunction hostPath(hostId: string, rest = ''): string {\n return `/checkout-domains/${encodeURIComponent(hostId)}${rest}`;\n}\n\n/**\n * Checkout domains: the addresses a merchant's hosted checkout answers on\n * besides the platform's default one. An address is a name on the platform's\n * domain (`checkout-yourshop.example.net`) or a subdomain of the merchant's\n * own domain (`checkout.yourshop.com`, set up with DNS records or a\n * Cloudflare token). Shops are assigned to an address; their new payment\n * links open there once it is ready.\n *\n * Every route needs a dashboard session. Reading needs the checkout domains\n * area at `Read`; adding, changing and removing need `Write`, which only a\n * merchant-level role holds. DeloPay turns the feature on per merchant, with\n * a limit (`entitlement` on `list()`).\n */\nexport class CheckoutDomains {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The entitlement, every address with its setup and health, how new\n * subdomains are spelled, where own domains point, the default origin, and\n * the merchant's Cloudflare connections.\n * `GET /checkout-domains`\n */\n async list(): Promise<MerchantCheckoutDomains> {\n return this.request('GET', '/checkout-domains');\n }\n\n /**\n * Whether an address can be added. Reserves nothing; the answer also names\n * a free platform name like the one asked for, and the DNS provider read\n * from an own domain's nameservers.\n * `GET /checkout-domains/availability`\n */\n async availability(\n query: CheckoutDomainAvailabilityQuery,\n ): Promise<CheckoutDomainAvailabilityResponse> {\n return this.request('GET', '/checkout-domains/availability', { query });\n }\n\n /**\n * Add an address. It starts `setting_up`; a repeat for an address the\n * merchant already has answers with that address.\n * `POST /checkout-domains`\n */\n async create(params: MerchantCheckoutHostCreate): Promise<MerchantCheckoutHost> {\n return this.request('POST', '/checkout-domains', { body: params });\n }\n\n /** One address. Another merchant's id answers 404. `GET /checkout-domains/{hostId}` */\n async retrieve(hostId: string): Promise<MerchantCheckoutHost> {\n return this.request('GET', hostPath(hostId));\n }\n\n /**\n * Change an address: the Apple Pay file it serves (`null` serves none) and\n * whether new links fall back to the default address while it is down.\n * What is left out stays as it is. Refusal: `file_unknown`.\n * `PATCH /checkout-domains/{hostId}`\n */\n async update(hostId: string, params: CheckoutHostUpdateRequest): Promise<MerchantCheckoutHost> {\n return this.request('PATCH', hostPath(hostId), { body: params });\n }\n\n /**\n * Remove an address; its shops go back to the default address for new\n * links. A platform subdomain becomes `retiring`: it takes no new links,\n * keeps serving links already sent until `retire_after`, then frees its\n * name. An own domain is removed in two steps: it must stop taking traffic\n * first (pause it; `removable_after` on the address says when the drain is\n * over), and links already sent stop working once its DNS points elsewhere.\n * Refusals (`code` `IR_16`, `data.reason`): `host_takes_traffic` (still takes new\n * traffic; pause it first), `host_draining` (stopped moments ago;\n * `retry_after_seconds`), `host_in_use` (`payment_ids` of open payments that\n * can still come back to it) and `host_changed` (it changed while being\n * removed; read it again).\n * `DELETE /checkout-domains/{hostId}`\n */\n async remove(hostId: string): Promise<RemovedCheckoutHost> {\n return this.request('DELETE', hostPath(hostId));\n }\n\n /**\n * The address's health page: uptime, days, incidents, the latest\n * transitions, usage, and who was told about its events.\n * `GET /checkout-domains/{hostId}/health`\n */\n async health(hostId: string): Promise<MerchantHostHealth> {\n return this.request('GET', hostPath(hostId, '/health'));\n }\n\n /**\n * A signed link that renders a sample checkout on the address, without a\n * payment. Valid for ten minutes.\n * `POST /checkout-domains/{hostId}/preview`\n */\n async preview(hostId: string): Promise<CheckoutHostPreview> {\n return this.request('POST', hostPath(hostId, '/preview'));\n }\n\n /**\n * Pause the address: new links fall back to the default address, open\n * payments keep loading, and no alerts are sent. It resumes at `resume_at`,\n * or when resumed. Refusals: `pause_note_invalid`, `resume_at_past`.\n * `POST /checkout-domains/{hostId}/pause`\n */\n async pause(\n hostId: string,\n params: CheckoutHostPauseRequest = {},\n ): Promise<MerchantCheckoutHost> {\n return this.request('POST', hostPath(hostId, '/pause'), { body: params });\n }\n\n /**\n * Resume a paused address.\n * `DELETE /checkout-domains/{hostId}/pause`\n */\n async resume(hostId: string): Promise<MerchantCheckoutHost> {\n return this.request('DELETE', hostPath(hostId, '/pause'));\n }\n\n /**\n * The DNS records an own domain needs (where it points, and the TXT record\n * proving the domain), whether each was found, and what the hostname\n * resolves to today.\n * `GET /checkout-domains/{hostId}/verification`\n */\n async verification(hostId: string): Promise<CheckoutHostVerification> {\n return this.request('GET', hostPath(hostId, '/verification'));\n }\n\n /**\n * Run the address's check now instead of waiting for the next one.\n * Rate-limited per address.\n * `POST /checkout-domains/{hostId}/check`\n */\n async check(hostId: string): Promise<MerchantCheckoutHost> {\n return this.request('POST', hostPath(hostId, '/check'));\n }\n\n /**\n * The whole list of shops whose new links use the address. A shop uses one\n * address at a time, so a listed shop moves off any other address of the\n * merchant. An address still setting up may take shops; their links switch\n * once it is ready.\n * `PUT /checkout-domains/{hostId}/shops`\n */\n async setShops(hostId: string, params: MerchantHostShopsRequest): Promise<MerchantCheckoutHost> {\n return this.request('PUT', hostPath(hostId, '/shops'), { body: params });\n }\n\n /**\n * Which address one shop's new links use; `host_id: null` puts the shop\n * back on the default address. Links switch once the address is ready.\n * `PUT /checkout-domains/shops/{profileId}`\n */\n async setShopHost(profileId: string, params: ShopCheckoutHost): Promise<ShopCheckoutHost> {\n return this.request('PUT', `/checkout-domains/shops/${encodeURIComponent(profileId)}`, {\n body: params,\n });\n }\n\n /**\n * How checkout address events are told: each event with bell and email,\n * the recipients (members who may manage checkout domains, or chosen\n * members) and the addresses (all or chosen). Suspensions are always told.\n * `GET /checkout-domains/alerts`\n */\n async alerts(): Promise<CheckoutDomainAlerts> {\n return this.request('GET', '/checkout-domains/alerts');\n }\n\n /**\n * Save how checkout address events are told.\n * `PUT /checkout-domains/alerts`\n */\n async updateAlerts(params: CheckoutDomainAlerts): Promise<CheckoutDomainAlerts> {\n return this.request('PUT', '/checkout-domains/alerts', { body: params });\n }\n\n /**\n * The Apple Pay verification files an address may serve: the built-in ones\n * and the platform's uploads.\n * `GET /checkout-domains/apple-pay-files`\n */\n async applePayFiles(): Promise<MerchantApplePayFiles> {\n return this.request('GET', '/checkout-domains/apple-pay-files');\n }\n\n /**\n * Connect the merchant's Cloudflare to an own domain: the token must reach\n * exactly that domain's zone, with DNS edit. The records are created\n * through it; the token is stored encrypted and never returned.\n * `POST /checkout-domains/{hostId}/cloudflare`\n */\n async connectCloudflare(\n hostId: string,\n params: MerchantCloudflareConnect,\n ): Promise<MerchantCheckoutHost> {\n return this.request('POST', hostPath(hostId, '/cloudflare'), { body: params });\n }\n\n /**\n * Start \"Connect with Cloudflare\" (OAuth) for an own domain, instead of\n * pasting a token. Send the person to `authorize_url`; Cloudflare sends\n * them back to the deployment's redirect URI with `code` and `state`,\n * which go to {@link finishCloudflareOAuth} before `expires_at`. Offered\n * only while `list()` says `cloudflare_oauth_available`; otherwise refused\n * with `cloudflare_oauth_unavailable`. Also how a connection in `needs_reconnect`, or\n * a pending cleanup that needs one, is authorized again.\n * `POST /checkout-domains/{hostId}/cloudflare/oauth/start`\n */\n async startCloudflareOAuth(hostId: string): Promise<CloudflareOAuthStart> {\n return this.request('POST', hostPath(hostId, '/cloudflare/oauth/start'));\n }\n\n /**\n * Finish \"Connect with Cloudflare\": pass the `code` and `state` from the\n * redirect unchanged. The grant is checked and the records are made in\n * the granted zone that holds the address; the answer is that address.\n * The same person who started it must finish it, and a `state` works\n * once.\n *\n * A refusal throws a `DelopayError` with `code` `IR_16` and the\n * reason in `data.reason` (`error.data?.reason`), among them\n * `cloudflare_oauth_state_invalid` (unknown, used, expired or another\n * person's: start again), `cloudflare_oauth_rejected`,\n * `cloudflare_oauth_misconfigured`, `cloudflare_scopes_missing`\n * (`data.missing` lists them), `cloudflare_zone_mismatch` and\n * `cloudflare_connect_in_progress`.\n * `POST /checkout-domains/cloudflare/oauth/callback`\n */\n async finishCloudflareOAuth(params: CloudflareOAuthCallback): Promise<MerchantCheckoutHost> {\n return this.request('POST', '/checkout-domains/cloudflare/oauth/callback', { body: params });\n }\n\n /**\n * Forget a Cloudflare connection. The records it made stay in the zone.\n * `DELETE /checkout-domains/cloudflare/{connectionId}`\n */\n async disconnectCloudflare(connectionId: string): Promise<void> {\n return this.request(\n 'DELETE',\n `/checkout-domains/cloudflare/${encodeURIComponent(connectionId)}`,\n );\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-ODPNVNYE.cjs","../src/resources/support.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACUA,IAAM,KAAA,EAAO,CAAC,EAAA,EAAA,GAAuB,CAAA,uBAAA,EAA0B,kBAAA,CAAmB,EAAE,CAAC,CAAA,CAAA;AAShE;AAC8B,EAAA;AAApB,IAAA;AAAqB,EAAA;AAAA;AAG8B,EAAA;AAChB,IAAA;AAChE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOuE,EAAA;AAChB,IAAA;AACE,MAAA;AACtD,IAAA;AACH,EAAA;AAAA;AAG6D,EAAA;AACxB,IAAA;AACrC,EAAA;AAAA;AAGsF,EAAA;AACjC,IAAA;AACG,MAAA;AACrD,IAAA;AACH,EAAA;AAAA;AAGiF,EAAA;AACnB,IAAA;AAC9D,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAakC,EAAA;AACN,IAAA;AACoB,IAAA;AACM,IAAA;AACb,IAAA;AACwB,IAAA;AACjE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOoE,EAAA;AACZ,IAAA;AACtC,MAAA;AACf,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAO6D,EAAA;AACb,IAAA;AAChD,EAAA;AACF;AD3BoE;AACA;AACA;AACA","file":"/tmp/sdkpub-w4-0464/delopay-typescript-sdk/dist/chunk-ODPNVNYE.cjs","sourcesContent":[null,"import type {\n SupportAttachmentView,\n SupportConversationCreate,\n SupportConversationList,\n SupportConversationView,\n SupportListQuery,\n SupportMessageCreate,\n SupportMessageList,\n SupportMessagesQuery,\n SupportMessageView,\n} from '../types';\nimport type { RequestFn } from '../client';\nimport { csvQuery } from '../listQuery';\n\nconst path = (id: string): string => `/support/conversations/${encodeURIComponent(id)}`;\n\n/**\n * Conversations between a merchant and DeloPay's support team.\n *\n * Every route answers 404 while support is not available on the deployment, so\n * a 404 on {@link Support.list} means there is nothing to show. A member of a\n * shop reads the conversations they started and those linked to their shop.\n */\nexport class Support {\n constructor(private readonly request: RequestFn) {}\n\n /** Start a conversation with its first message. `POST /support/conversations` */\n async create(body: SupportConversationCreate): Promise<SupportConversationView> {\n return this.request('POST', '/support/conversations', { body });\n }\n\n /**\n * The conversations the caller may read, the latest message first unless\n * `sort_by` says otherwise. Several `kind`, `category` or `status` values\n * match a conversation with any of them. `GET /support/conversations`\n */\n async list(query?: SupportListQuery): Promise<SupportConversationList> {\n return this.request('GET', '/support/conversations', {\n query: csvQuery(query, ['kind', 'category', 'status']),\n });\n }\n\n /** One conversation. `GET /support/conversations/{id}` */\n async retrieve(id: string): Promise<SupportConversationView> {\n return this.request('GET', path(id));\n }\n\n /** A conversation's messages. `GET /support/conversations/{id}/messages` */\n async messages(id: string, query?: SupportMessagesQuery): Promise<SupportMessageList> {\n return this.request('GET', `${path(id)}/messages`, {\n query: query === undefined ? undefined : { ...query },\n });\n }\n\n /** Answer in a conversation. `POST /support/conversations/{id}/messages` */\n async reply(id: string, body: SupportMessageCreate): Promise<SupportMessageView> {\n return this.request('POST', `${path(id)}/messages`, { body });\n }\n\n /**\n * Upload a file for a message. PNG, JPEG, WebP, PDF, text, MP4 or WebM, read from the\n * content; 10 MB, a video 25 MB. It belongs to the caller until a message names it in\n * `attachments`. Uploading again with the same `clientUploadId` returns the same file.\n * `POST /support/conversations/{id}/attachments`\n */\n async uploadAttachment(\n id: string,\n file: Blob,\n clientUploadId: string,\n fileName?: string,\n ): Promise<SupportAttachmentView> {\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', `${path(id)}/attachments`, { body: form });\n }\n\n /**\n * Fetch a file once its scan is clean. Refused with `support_attachment_checking` while\n * the scan runs, and `support_attachment_blocked` after a block.\n * `GET /support/conversations/{id}/attachments/{fileId}`\n */\n async downloadAttachment(id: string, fileId: string): Promise<Blob> {\n return this.request('GET', `${path(id)}/attachments/${encodeURIComponent(fileId)}`, {\n responseType: 'blob',\n });\n }\n\n /**\n * Clear the merchant's unread mark and read the conversation as it is now.\n * Someone acting as somebody else leaves the mark in place.\n * `POST /support/conversations/{id}/read`\n */\n async markRead(id: string): Promise<SupportConversationView> {\n return this.request('POST', `${path(id)}/read`);\n }\n}\n"]}
|