@delopay/sdk 0.409.0 → 0.413.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/airwallexCard.cjs.map +1 -1
- package/dist/branding.cjs.map +1 -1
- package/dist/cardFormStyles.cjs.map +1 -1
- package/dist/checkoutSession.cjs +2 -2
- package/dist/checkoutSession.cjs.map +1 -1
- package/dist/checkoutSession.js +1 -1
- package/dist/chunk-244VZFFO.cjs.map +1 -1
- package/dist/chunk-2IJRBJXW.cjs.map +1 -1
- package/dist/chunk-34PC72O7.cjs.map +1 -1
- package/dist/chunk-3GBWQWTP.cjs.map +1 -1
- package/dist/chunk-3YBBJT3Y.cjs.map +1 -1
- package/dist/chunk-44QBWVRS.cjs.map +1 -1
- package/dist/chunk-4EKAWNYI.cjs.map +1 -1
- package/dist/chunk-4LN4BR2T.cjs.map +1 -1
- package/dist/chunk-4T4XHPYN.cjs.map +1 -1
- package/dist/{chunk-ZDYRYXY3.js → chunk-4YCQWMFF.js} +3 -3
- package/dist/chunk-5CITBN33.cjs.map +1 -1
- package/dist/chunk-5CNBINCX.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-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-7ITPMVDB.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-ACZ2R47X.cjs.map +1 -1
- package/dist/chunk-AYUYJO3I.cjs.map +1 -1
- package/dist/chunk-B2TCNGC2.cjs.map +1 -1
- package/dist/chunk-BCA3TCGS.cjs.map +1 -1
- package/dist/chunk-BOU2TQ6U.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-NXORFP3R.js → chunk-EGQKVHQB.js} +1 -1
- package/dist/chunk-EGQKVHQB.js.map +1 -0
- 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-F6S3WCCB.cjs.map +1 -1
- package/dist/chunk-FQRC4NJG.cjs.map +1 -1
- package/dist/chunk-FYISDU2Y.cjs.map +1 -1
- package/dist/chunk-GA3KXPIF.cjs.map +1 -1
- package/dist/chunk-GG52SAHA.cjs.map +1 -1
- package/dist/chunk-GGYLU7YO.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-H537KAYC.cjs.map +1 -1
- package/dist/chunk-HLKFUOAQ.cjs.map +1 -1
- package/dist/chunk-HLYGHP6F.cjs.map +1 -1
- package/dist/chunk-I2W7AO4B.cjs.map +1 -1
- package/dist/chunk-I2XGNALG.cjs.map +1 -1
- package/dist/chunk-I65QS3YQ.cjs.map +1 -1
- package/dist/chunk-IKXGA2Z5.cjs.map +1 -1
- package/dist/chunk-IR2LFKKA.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-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-NFB3S2E6.cjs.map +1 -1
- package/dist/{chunk-RBN2H7QR.js → chunk-NPIVFYLK.js} +11 -7
- package/dist/{chunk-RBN2H7QR.js.map → chunk-NPIVFYLK.js.map} +1 -1
- package/dist/chunk-NYL3BNHR.cjs.map +1 -1
- package/dist/chunk-O4AYHLQX.cjs.map +1 -1
- package/dist/chunk-ODPNVNYE.cjs.map +1 -1
- package/dist/chunk-OG2KJAYD.cjs.map +1 -1
- package/dist/chunk-OWP7XBY2.cjs.map +1 -1
- package/dist/chunk-OYZP6NF6.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-AQ5NYBU4.cjs → chunk-PWDY5D5S.cjs} +11 -7
- package/dist/chunk-PWDY5D5S.cjs.map +1 -0
- package/dist/chunk-Q7M7DO7M.cjs.map +1 -1
- package/dist/chunk-QMLU5DST.cjs.map +1 -1
- package/dist/chunk-QRSA72B3.cjs.map +1 -1
- package/dist/{chunk-TIMYWB2C.cjs → chunk-QT3HUTWI.cjs} +5 -5
- package/dist/chunk-QT3HUTWI.cjs.map +1 -0
- package/dist/chunk-QYNRNDIY.cjs.map +1 -1
- package/dist/chunk-R4FE6K43.cjs.map +1 -1
- package/dist/{chunk-X7UAYGQR.cjs → chunk-R4GA6BVP.cjs} +17 -1
- package/dist/chunk-R4GA6BVP.cjs.map +1 -0
- package/dist/chunk-R5VYSZ3Q.cjs.map +1 -1
- package/dist/chunk-RI42IDRR.cjs.map +1 -1
- package/dist/{chunk-DZM3UP7F.cjs → chunk-RSVLVW4L.cjs} +1 -1
- package/dist/chunk-RSVLVW4L.cjs.map +1 -0
- package/dist/chunk-S7SBNOGS.cjs.map +1 -1
- package/dist/chunk-SQELICSX.cjs.map +1 -1
- package/dist/{chunk-JTZ44ZLT.js → chunk-T326ZWR3.js} +55 -1
- package/dist/chunk-T326ZWR3.js.map +1 -0
- package/dist/chunk-TMAJE5P2.cjs.map +1 -1
- package/dist/chunk-TNIJ6OSH.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-VOIELJLZ.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-JSSDNDAG.cjs → chunk-XAUPBK6A.cjs} +3 -3
- package/dist/chunk-XAUPBK6A.cjs.map +1 -0
- package/dist/chunk-XQLRIBVR.cjs.map +1 -1
- package/dist/{chunk-NW37NQZB.cjs → chunk-Y6W2EJ2R.cjs} +55 -1
- package/dist/chunk-Y6W2EJ2R.cjs.map +1 -0
- package/dist/chunk-YJQPKT6W.cjs.map +1 -1
- package/dist/chunk-YK3P5QNZ.cjs.map +1 -1
- package/dist/{chunk-YOFIOZJ5.js → chunk-ZJRQ2AKS.js} +2 -2
- package/dist/chunk-ZKPVUCQV.cjs.map +1 -1
- package/dist/chunk-ZOD4J4XF.cjs.map +1 -1
- package/dist/{chunk-3GMGEP5I.js → chunk-ZTFYSSKD.js} +17 -1
- package/dist/chunk-ZTFYSSKD.js.map +1 -0
- package/dist/client.cjs +2 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/internal/resources/admin.cjs.map +1 -1
- package/dist/internal/resources/admin.d.cts +1 -1
- package/dist/internal/resources/admin.d.ts +1 -1
- package/dist/internal/resources/adminBranding.cjs.map +1 -1
- package/dist/internal/resources/adminBranding.d.cts +1 -1
- package/dist/internal/resources/adminBranding.d.ts +1 -1
- package/dist/internal/resources/adminFileScans.cjs.map +1 -1
- package/dist/internal/resources/adminFileScans.d.cts +1 -1
- package/dist/internal/resources/adminFileScans.d.ts +1 -1
- package/dist/internal/resources/adminIndustries.cjs.map +1 -1
- package/dist/internal/resources/adminIndustries.d.cts +1 -1
- package/dist/internal/resources/adminIndustries.d.ts +1 -1
- package/dist/internal/resources/adminLive.cjs.map +1 -1
- package/dist/internal/resources/adminPortal.cjs +2 -2
- package/dist/internal/resources/adminPortal.cjs.map +1 -1
- package/dist/internal/resources/adminPortal.d.cts +37 -1
- package/dist/internal/resources/adminPortal.d.ts +37 -1
- package/dist/internal/resources/adminPortal.js +1 -1
- package/dist/internal/resources/adminSupport.cjs.map +1 -1
- package/dist/internal/resources/adminSupport.d.cts +1 -1
- package/dist/internal/resources/adminSupport.d.ts +1 -1
- package/dist/internal/resources/auditLogs.cjs +2 -2
- package/dist/internal/resources/auditLogs.cjs.map +1 -1
- package/dist/internal/resources/auditLogs.d.cts +12 -1
- package/dist/internal/resources/auditLogs.d.ts +12 -1
- package/dist/internal/resources/auditLogs.js +1 -1
- package/dist/internal/resources/cache.cjs.map +1 -1
- package/dist/internal/resources/cardIssuers.cjs.map +1 -1
- package/dist/internal/resources/cardIssuers.d.cts +1 -1
- package/dist/internal/resources/cardIssuers.d.ts +1 -1
- package/dist/internal/resources/configs.cjs.map +1 -1
- package/dist/internal/resources/connectorRestrictionRules.cjs.map +1 -1
- package/dist/internal/resources/connectorRestrictionRules.d.cts +1 -1
- package/dist/internal/resources/connectorRestrictionRules.d.ts +1 -1
- package/dist/internal/resources/connectorRestrictions.cjs.map +1 -1
- package/dist/internal/resources/connectorRestrictions.d.cts +1 -1
- package/dist/internal/resources/connectorRestrictions.d.ts +1 -1
- package/dist/internal/resources/diagnostic.cjs.map +1 -1
- package/dist/internal/resources/diagnostic.d.cts +1 -1
- package/dist/internal/resources/diagnostic.d.ts +1 -1
- package/dist/internal/resources/gsm.cjs.map +1 -1
- package/dist/internal/resources/gsm.d.cts +1 -1
- package/dist/internal/resources/gsm.d.ts +1 -1
- package/dist/internal/resources/nativeRenewals.cjs.map +1 -1
- package/dist/internal/resources/nativeRenewals.d.cts +1 -1
- package/dist/internal/resources/nativeRenewals.d.ts +1 -1
- package/dist/internal/resources/platformBilling.cjs.map +1 -1
- package/dist/internal/resources/platformBilling.d.cts +1 -1
- package/dist/internal/resources/platformBilling.d.ts +1 -1
- package/dist/internal/resources/platformFees.cjs.map +1 -1
- package/dist/internal/resources/platformMessageTemplates.cjs.map +1 -1
- package/dist/internal/resources/platformSettings.cjs.map +1 -1
- package/dist/internal.cjs +10 -10
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +6 -6
- 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/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 +2 -2
- package/dist/resources/buyerBlocklist.cjs.map +1 -1
- package/dist/resources/buyerBlocklist.d.cts +1 -1
- package/dist/resources/buyerBlocklist.d.ts +1 -1
- package/dist/resources/buyerBlocklist.js +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/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/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 +2 -2
- package/dist/resources/identityVerifications.cjs.map +1 -1
- package/dist/resources/identityVerifications.d.cts +10 -6
- package/dist/resources/identityVerifications.d.ts +10 -6
- package/dist/resources/identityVerifications.js +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/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/{types-ewLZOLPZ.d.ts → types-By5GGlvR.d.cts} +190 -2
- package/dist/{types-BEuEdvtX.d.cts → types-CZib7kHm.d.ts} +190 -2
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +130 -15
- package/dist/types.d.ts +130 -15
- package/package.json +17 -19
- package/dist/chunk-3GMGEP5I.js.map +0 -1
- package/dist/chunk-AQ5NYBU4.cjs.map +0 -1
- package/dist/chunk-DZM3UP7F.cjs.map +0 -1
- package/dist/chunk-JSSDNDAG.cjs.map +0 -1
- package/dist/chunk-JTZ44ZLT.js.map +0 -1
- package/dist/chunk-NW37NQZB.cjs.map +0 -1
- package/dist/chunk-NXORFP3R.js.map +0 -1
- package/dist/chunk-TIMYWB2C.cjs.map +0 -1
- package/dist/chunk-X7UAYGQR.cjs.map +0 -1
- /package/dist/{chunk-ZDYRYXY3.js.map → chunk-4YCQWMFF.js.map} +0 -0
- /package/dist/{chunk-YOFIOZJ5.js.map → chunk-ZJRQ2AKS.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/internal/resources/adminPortal.ts"],"sourcesContent":["import type {\n BuyerRiskEvaluationsResponse,\n PreventionCaseDetail,\n PreventionCaseList,\n PreventionConnectionList,\n PreventionRefundActionList,\n PreventionRefundRule,\n PreventionRefundRuleList,\n ConnectionChecksResponse,\n RiskAdjustments,\n RiskTuningPreviewResponse,\n RiskTuningResponse,\n RiskTuningTarget,\n RiskTuningUpdateRequest,\n} from '../../types';\nimport { riskTuningPath } from '../../resources/risk';\nimport { preventionCaseQuery } from '../../resources/chargebackPrevention';\nimport { statementListQuery } from '../../resources/settlement';\nimport type {\n BinaryExportOptions,\n CsvExportOptions,\n DynamicLineExportOptions,\n ExportEnvelope,\n ExportOptions,\n JsonExportOptions,\n BulkCreateProcessorCostSchedulesRequest,\n BuyerRefundRequestList,\n BuyerRefundRequestPageQuery,\n CreateProcessorCostScheduleRequest,\n ProcessorCostEventsResponse,\n ProcessorCostScheduleResponse,\n ReplaceProcessorCostScheduleRequest,\n UpdateProcessorCostScheduleRequest,\n FeeStatementDetail,\n MerchantAccountResponse,\n MerchantAccountUpdateRequest,\n PaymentAttemptsListResponse,\n PaymentClientContextListResponse,\n PaymentProductLines,\n InvoiceList,\n InvoicePageQuery,\n PaymentsDeleteResponse,\n PaymentIntegrationTestRequest,\n PaymentIntegrationTestResponse,\n PaymentStatusHistoryResponse,\n PaymentLogsResponse,\n PaymentLogConnectorCallDetail,\n PaymentLogIncomingWebhookDetail,\n PaymentLogOutgoingWebhookDetail,\n ProfileResponse,\n RefundListResponse,\n SellToRestrictionsResponse,\n SettlementCurrentParams,\n SettlementCurrentResponse,\n SettlementOverviewParams,\n SettlementPeriodListParams,\n SettlementPeriodListResponse,\n SettlementOverviewResponse,\n SettlementStatementListParams,\n SettlementStatementListResponse,\n StatementPdfParams,\n SubscriptionAnalyticsRequest,\n SubscriptionAnalyticsResponse,\n SubscriptionDrillRequest,\n ScopeDrillRequest,\n BuyerEvidenceInformationRequest,\n BuyerEvidenceNote,\n BuyerEvidenceQueue,\n BuyerEvidenceQueueQuery,\n BuyerEvidenceReply,\n BuyerEvidenceReviewCreate,\n BuyerEvidenceReviewDetail,\n MemberMethodAccessResponse,\n UpdateMemberMethodAccessRequest,\n MemberPermissionOverridesResponse,\n UpdateMemberPermissionOverridesRequest,\n MerchantRisk,\n AdminAnalyticsExclusionRequest,\n AdminAnalyticsExclusionResponse,\n AdminAnalyticsExclusionsResponse,\n AdminAnalyticsExclusionCopyRequest,\n AdminAnalyticsExclusionCopyResponse,\n MerchantExclusionsForAdminResponse,\n AdminAnalyticsShopsRequest,\n AdminAnalyticsConnectorsRequest,\n AnalyticsConnectorsRequest,\n AnalyticsConnectorsResponse,\n AnalyticsShopsRequest,\n AnalyticsShopsResponse,\n PaymentPersonResponse,\n PersonListParams,\n PersonListResponse,\n AdminRevokeUserSessionsResponse,\n LoginHistoryParams,\n LoginHistoryResponse,\n UserSessionListResponse,\n UserSessionRevokeResponse,\n PersonResponse,\n PersonScopeParams,\n RelatedPersonsResponse,\n VatRateListParams,\n VatRateListResponse,\n VatRateResponse,\n} from '../../types';\nimport type {\n RefundVolumeQuery,\n RefundVolumeResponse,\n UpdateRefundVolumeRequest,\n PlatformFeeReturnListResponse,\n PlatformFeeReturnQuery,\n RiskModelPatch,\n RiskModelResponse,\n RiskModelUpdateOptions,\n PlatformFeeReturnResponse,\n UpdatePlatformFeeReturnRequest,\n ConsolidateRolesRequest,\n ConsolidateRolesResponse,\n ConsolidationCandidatesResponse,\n CreateSharedRoleRequest,\n RetireSharedRolePreviewRequest,\n RetireSharedRolePreviewResponse,\n RetireSharedRoleRequest,\n SharedRoleApplied,\n SharedRoleChange,\n SharedRoleDetailResponse,\n SharedRoleListResponse,\n SharedRolePreviewResponse,\n UpdateSharedRoleRequest,\n AdminAttachVaultRequest,\n AdminAttachVaultResponse,\n AdminAttemptProcessorCost,\n AdminProcessorCostEventsParams,\n AdminVaultStateResponse,\n CardFundingBackfillRequest,\n CardFundingBackfillResponse,\n AdminCustomerListParams,\n AdminCustomerListResponse,\n AdminCustomerDetail,\n AdminTransactionExportParams,\n AdminTransactionExportRecord,\n AdminTransactionLineExportRecord,\n AdminTransactionListParams,\n AdminTransactionListResponse,\n AdminUnresolvedRefundListParams,\n AdminUnresolvedRefundListResponse,\n AdminAnalyticsRequest,\n PlatformAnalyticsResponse,\n OverviewStatsResponse,\n PaymentAnalyticsRequest,\n PaymentAnalyticsResponse,\n AnalyticsScopeRequest,\n ClientAnalyticsRequest,\n DeviceDrillRequest,\n DeviceIntelligencePaymentsParams,\n DeviceIntelligencePaymentsResponse,\n DeviceIntelligenceUsageParams,\n DeviceIntelligenceUsageResponse,\n GeoDrillRequest,\n DrillResponse,\n BuyerRiskAccuracyQuery,\n BuyerRiskAccuracyReport,\n BuyerRiskAccuracyPaymentsRequest,\n DevicesAnalyticsResponse,\n GeoAnalyticsResponse,\n AnalyticsScopeResponse,\n AdminLedgerAnalyticsRequest,\n AdminLedgerAnalyticsResponse,\n AdminOrphanedBillingProfilesResponse,\n AdminCreateUserForMerchantRequest,\n AdminUpdateUserRequest,\n AdminUserResponse,\n AdminUserDetailResponse,\n AdminPersonListParams,\n AdminPersonListResponse,\n AdminTransactionDetail,\n FlaggedElsewhereList,\n FlaggedPersonList,\n FlaggedPersonListParams,\n PersonFlagCreate,\n PersonFlagList,\n PersonFlagStatusList,\n PersonFlagUpdate,\n PersonFlagView,\n BuyerEvidenceAssign,\n BuyerEvidenceDeadlineChange,\n RiskBackfillPreview,\n RiskBackfillRequest,\n RiskBackfillResponse,\n RiskBackfillStatus,\n MerchantRiskActionCatalogEntry,\n MerchantRiskActionConfirmRequest,\n MerchantRiskActionDismissRequest,\n MerchantRiskActionLiftRequest,\n MerchantRiskPaymentsStopRequest,\n MerchantRiskActionResponse,\n MerchantRiskBlockedAttemptList,\n MerchantRiskBlockedAttemptListParams,\n MerchantRiskExemptionCreateRequest,\n MerchantRiskExemptionResponse,\n MerchantRiskExemptionRevokeRequest,\n MerchantRiskPolicyPreviewRequest,\n MerchantRiskPolicyPreviewResponse,\n MerchantRiskStageResponse,\n ConnectionCheckPaymentsParams,\n ConnectionCheckPaymentsResponse,\n ConnectionCheckUsageParams,\n ConnectionCheckUsageResponse,\n AdminPreventionCaseListRequest,\n AdminPreventionConnectionListRequest,\n AdminPreventionRefundActionListRequest,\n AdminPreventionRefundRuleListRequest,\n AdminPreventionRefundRuleStop,\n CreateVatRateRequest,\n UpdateVatRateRequest,\n VatRateDeleteResponse,\n StaffMerchantAccessResponse,\n StaffMerchantAccessUpdateRequest,\n StaffRoleSupportAccess,\n StaffRoleSupportAccessList,\n StaffRoleSupportAccessUpdateRequest,\n} from '../types';\nimport type { RequestExtras, RequestFn, RequestOptions } from '../../client';\nimport { runExport } from '../../exportDownload';\nimport { csvQuery } from '../../listQuery';\n\nexport class AdminPortal {\n /** Read refund treatment and the scope supplying its effective value. */\n async getRefundVolume(\n merchantId: string,\n query: RefundVolumeQuery = {},\n ): Promise<RefundVolumeResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/refund-volume`,\n {\n query: { ...query },\n },\n );\n }\n\n /** Change future monthly tier snapshots; existing snapshots and statement lines retain their prices. */\n async updateRefundVolume(\n merchantId: string,\n body: UpdateRefundVolumeRequest,\n query: RefundVolumeQuery = {},\n ): Promise<RefundVolumeResponse> {\n return this.request(\n 'PUT',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/refund-volume`,\n {\n query: { ...query },\n body,\n },\n );\n }\n\n /** Read whether refunds return their share of the platform fee, and the scope supplying it. */\n async getPlatformFeeReturn(\n merchantId: string,\n query: PlatformFeeReturnQuery = {},\n ): Promise<PlatformFeeReturnResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/platform-fee-return`,\n {\n query: { ...query },\n },\n );\n }\n\n /** Change the fee return for refunds that succeed from now on; earlier refunds keep their decision. */\n async updatePlatformFeeReturn(\n merchantId: string,\n body: UpdatePlatformFeeReturnRequest,\n query: PlatformFeeReturnQuery = {},\n ): Promise<PlatformFeeReturnResponse> {\n return this.request(\n 'PUT',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/platform-fee-return`,\n {\n query: { ...query },\n body,\n },\n );\n }\n\n /** What each successful refund of one payment returned of the platform fee. */\n async listPaymentPlatformFeeReturns(\n merchantId: string,\n paymentId: string,\n ): Promise<PlatformFeeReturnListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/transactions/${encodeURIComponent(paymentId)}/platform-fee-returns`,\n );\n }\n\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The deployment's merchant roles: shared roles, the roles defined in code,\n * and every merchant's own custom roles. `GET /admin-portal/merchant-roles`\n */\n async listSharedRoles(): Promise<SharedRoleListResponse> {\n return this.request('GET', '/admin-portal/merchant-roles');\n }\n\n /** `GET /admin-portal/merchant-roles/{roleId}` */\n async getSharedRole(roleId: string): Promise<SharedRoleDetailResponse> {\n return this.request('GET', `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}`);\n }\n\n /**\n * Define a role once and offer it to every merchant, or to the ones listed.\n * Offering never assigns it. `POST /admin-portal/merchant-roles`\n */\n async createSharedRole(body: CreateSharedRoleRequest): Promise<SharedRoleDetailResponse> {\n return this.request('POST', '/admin-portal/merchant-roles', { body });\n }\n\n /**\n * What a change would do, without writing anything. Apply it with\n * `updateSharedRole` and the `version` this returns.\n * `POST /admin-portal/merchant-roles/{roleId}/preview`\n */\n async previewSharedRole(\n roleId: string,\n change: SharedRoleChange,\n ): Promise<SharedRolePreviewResponse> {\n return this.request(\n 'POST',\n `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}/preview`,\n { body: change },\n );\n }\n\n /**\n * Apply a reviewed change. A change that takes access away needs\n * `acknowledge_sign_out` and signs out every holder.\n * `PUT /admin-portal/merchant-roles/{roleId}`\n */\n async updateSharedRole(\n roleId: string,\n body: UpdateSharedRoleRequest,\n ): Promise<SharedRoleApplied> {\n return this.request('PUT', `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}`, {\n body,\n });\n }\n\n /** `POST /admin-portal/merchant-roles/{roleId}/retire/preview` */\n async previewRetireSharedRole(\n roleId: string,\n body: RetireSharedRolePreviewRequest = {},\n ): Promise<RetireSharedRolePreviewResponse> {\n return this.request(\n 'POST',\n `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}/retire/preview`,\n { body },\n );\n }\n\n /**\n * Retire a shared role, moving its holders to the replacement.\n * `POST /admin-portal/merchant-roles/{roleId}/retire`\n */\n async retireSharedRole(\n roleId: string,\n body: RetireSharedRoleRequest,\n ): Promise<SharedRoleApplied> {\n return this.request(\n 'POST',\n `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}/retire`,\n { body },\n );\n }\n\n /**\n * Merchant-specific roles whose holders could move to this shared role, and\n * what each move would change. `GET /admin-portal/merchant-roles/{roleId}/consolidation`\n */\n async sharedRoleConsolidationCandidates(\n roleId: string,\n ): Promise<ConsolidationCandidatesResponse> {\n return this.request(\n 'GET',\n `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}/consolidation`,\n );\n }\n\n /** `POST /admin-portal/merchant-roles/{roleId}/consolidate` */\n async consolidateIntoSharedRole(\n roleId: string,\n body: ConsolidateRolesRequest,\n ): Promise<ConsolidateRolesResponse> {\n return this.request(\n 'POST',\n `/admin-portal/merchant-roles/${encodeURIComponent(roleId)}/consolidate`,\n { body },\n );\n }\n\n /**\n * One page of merchants. Without `sort_by` the caller's favorite merchants\n * come first; with one, favorites are not moved. Several `billing_status`\n * values match a merchant in any of them. `GET /admin-portal/customers`\n */\n async listCustomers(params?: AdminCustomerListParams): Promise<AdminCustomerListResponse> {\n return this.request('GET', '/admin-portal/customers', {\n query: csvQuery(params, ['billing_status']),\n });\n }\n\n async getCustomer(customerId: string): Promise<AdminCustomerDetail> {\n return this.request('GET', `/admin-portal/customers/${encodeURIComponent(customerId)}`);\n }\n\n async listTransactions(\n params?: AdminTransactionListParams,\n ): Promise<AdminTransactionListResponse> {\n const query = transactionListQuery(params);\n return this.request('GET', '/admin-portal/transactions', {\n query,\n });\n }\n\n /**\n * Persons of every merchant account, connected accounts included, or of the\n * one merchant named in `merchant_id`. Each row is one merchant's person\n * and names that merchant; persons of two merchants are never merged,\n * whatever they share. `search` is matched at every merchant listed.\n *\n * A `limit` outside 1 to 100, a `search` longer than 320 characters, or\n * `sort_by: 'captured'` without a three-letter `captured_currency` is a\n * `400`.\n *\n * `GET /admin-portal/persons`\n */\n async listPersonsAcrossMerchants(\n params?: AdminPersonListParams,\n ): Promise<AdminPersonListResponse> {\n if (params === undefined) {\n return this.request('GET', '/admin-portal/persons');\n }\n return this.request('GET', '/admin-portal/persons', { query: params as PersonQuery });\n }\n\n /**\n * One page of ONE merchant's persons: the same query and response as the\n * merchant-facing `persons.list`, admin-authenticated. A person stays one\n * merchant's; `listPersonsAcrossMerchants` lists several merchants' side by\n * side.\n *\n * `GET /admin-portal/persons/{merchantId}`\n */\n async listPersons(merchantId: string, params?: PersonListParams): Promise<PersonListResponse> {\n return this.request('GET', adminPersons(merchantId), {\n query: params as PersonQuery | undefined,\n });\n }\n\n /**\n * One person of a merchant, as the merchant-facing `persons.retrieve`\n * returns it.\n *\n * `GET /admin-portal/persons/{merchantId}/{personId}`\n */\n async getPerson(\n merchantId: string,\n personId: string,\n params?: PersonScopeParams,\n ): Promise<PersonResponse> {\n return this.request('GET', `${adminPersons(merchantId)}/${encodeURIComponent(personId)}`, {\n query: params as PersonQuery | undefined,\n });\n }\n\n /**\n * The persons of a merchant that may be the same person as this one, as\n * the merchant-facing `persons.related` returns them.\n *\n * `GET /admin-portal/persons/{merchantId}/{personId}/related`\n */\n async listRelatedPersons(\n merchantId: string,\n personId: string,\n params?: PersonScopeParams,\n ): Promise<RelatedPersonsResponse> {\n return this.request(\n 'GET',\n `${adminPersons(merchantId)}/${encodeURIComponent(personId)}/related`,\n { query: params as PersonQuery | undefined },\n );\n }\n\n /**\n * The person of one payment of a merchant, as the merchant-facing\n * `persons.ofPayment` returns it.\n *\n * `GET /admin-portal/persons/{merchantId}/payment/{paymentId}`\n */\n async getPaymentPerson(\n merchantId: string,\n paymentId: string,\n params?: PersonScopeParams,\n ): Promise<PaymentPersonResponse> {\n return this.request(\n 'GET',\n `${adminPersons(merchantId)}/payment/${encodeURIComponent(paymentId)}`,\n { query: params as PersonQuery | undefined },\n );\n }\n\n /**\n * Every staff flag of a person, active and removed, newest first, with\n * those of the persons merged into it. A merged person reads as the person\n * it merged into. Staff only; a flag changes no payment.\n *\n * `GET /admin-portal/persons/{merchantId}/{personId}/flags`\n */\n async listPersonFlags(merchantId: string, personId: string): Promise<PersonFlagList> {\n return this.request('GET', personFlags(merchantId, personId));\n }\n\n /**\n * Flags a person for staff. The flag changes no payment and the merchant\n * never sees it. A merged person's flag goes on the person it merged into.\n * A person already flagged is refused with `IR_38` (400); a staff role that\n * may not flag buyers gets a `403`.\n *\n * `POST /admin-portal/persons/{merchantId}/{personId}/flags`\n */\n async flagPerson(\n merchantId: string,\n personId: string,\n body: PersonFlagCreate,\n ): Promise<PersonFlagView> {\n return this.request('POST', personFlags(merchantId, personId), { body });\n }\n\n /**\n * Replaces an active flag's reason and note at the `version` read. A\n * colleague's newer change, or a removal, since that read is refused with\n * `IR_16` (400) rather than overwritten.\n *\n * `PUT /admin-portal/persons/{merchantId}/{personId}/flags/{flagId}`\n */\n async updatePersonFlag(\n merchantId: string,\n personId: string,\n flagId: string,\n body: PersonFlagUpdate,\n ): Promise<PersonFlagView> {\n return this.request(\n 'PUT',\n `${personFlags(merchantId, personId)}/${encodeURIComponent(flagId)}`,\n { body },\n );\n }\n\n /**\n * Removes a flag at the `version` read: the flag stops and stays in the\n * history with who removed it and when, which is what this answers. A\n * colleague's change since that read is refused with `IR_16` (400).\n *\n * `DELETE /admin-portal/persons/{merchantId}/{personId}/flags/{flagId}?version=`\n */\n async removePersonFlag(\n merchantId: string,\n personId: string,\n flagId: string,\n version: number,\n ): Promise<PersonFlagView> {\n return this.request(\n 'DELETE',\n `${personFlags(merchantId, personId)}/${encodeURIComponent(flagId)}`,\n { query: { version } },\n );\n }\n\n /**\n * One page of a merchant's persons with an active flag, newest flag first.\n * A flag on a merged person is listed under the person it merged into, and\n * a person with two active flags is listed once, with the newer one.\n *\n * `GET /admin-portal/persons/{merchantId}/flagged`\n */\n async listFlaggedPersons(\n merchantId: string,\n params?: FlaggedPersonListParams,\n ): Promise<FlaggedPersonList> {\n if (params === undefined) {\n return this.request('GET', `${adminPersons(merchantId)}/flagged`);\n }\n return this.request('GET', `${adminPersons(merchantId)}/flagged`, {\n query: params as PersonQuery,\n });\n }\n\n /**\n * Whether each of 1 to 100 persons of a merchant is flagged, one answer\n * per asked person in the order asked. A merged person answers for the\n * person it merged into; an unknown person is not flagged. No id, or more\n * than 100, is a `400`.\n *\n * `GET /admin-portal/persons/{merchantId}/flag-status?person_ids=`\n */\n async personFlagStatus(\n merchantId: string,\n personIds: readonly string[],\n ): Promise<PersonFlagStatusList> {\n return this.request('GET', `${adminPersons(merchantId)}/flag-status`, {\n query: { person_ids: personIds.join(',') },\n });\n }\n\n /**\n * Persons flagged by staff at other merchants who share an email address\n * or a device id with this person's 100 most recent payments, each once,\n * newest flag first. A card, an IP address or device traits never match.\n * A hint only: the persons stay separate and nothing is written.\n *\n * `GET /admin-portal/persons/{merchantId}/{personId}/flagged-elsewhere`\n */\n async listFlaggedElsewhere(merchantId: string, personId: string): Promise<FlaggedElsewhereList> {\n return this.request(\n 'GET',\n `${adminPersons(merchantId)}/${encodeURIComponent(personId)}/flagged-elsewhere`,\n );\n }\n\n /**\n * The admin transaction search as a file. `GET /admin-portal/transactions/export`\n *\n * Takes the same filters as {@link AdminPortal.listTransactions}, sent the\n * same way, and returns the whole match set rather than a page — bounded at\n * 25,000 rows (500 for `pdf`) and refused past that with `DE_07` rather than\n * truncated. Every page of it is read inside one database snapshot, so a\n * payment updated while the file downloads is neither repeated nor skipped.\n *\n * `csv` and `json` are streamed and held to their `X-Delopay-Record-Count`;\n * see {@link ExportTransferOptions} for progress, cancellation and the\n * `EXPORT_INCOMPLETE` check. The format is negotiated by `Accept` and\n * defaults to `json`.\n */\n async exportTransactions(\n params?: AdminTransactionExportParams,\n options?: JsonExportOptions,\n ): Promise<ExportEnvelope<AdminTransactionExportRecord>>;\n async exportTransactions(\n params: AdminTransactionExportParams | undefined,\n options: BinaryExportOptions,\n ): Promise<Blob>;\n async exportTransactions(\n params: AdminTransactionExportParams | undefined,\n options: ExportOptions,\n ): Promise<ExportEnvelope<AdminTransactionExportRecord> | Blob>;\n async exportTransactions(\n params?: AdminTransactionExportParams,\n options?: ExportOptions,\n ): Promise<ExportEnvelope<AdminTransactionExportRecord> | Blob> {\n return runExport(\n this.request,\n 'GET',\n '/admin-portal/transactions/export',\n { query: transactionListQuery(params) },\n options,\n );\n }\n\n /**\n * The admin transaction search as a file, one row per product line.\n * `GET /admin-portal/transactions/export/lines`\n *\n * The same filters as {@link AdminPortal.exportTransactions}, sent the same\n * way; one row per product line the matched payments recorded, plus one\n * `row_kind: 'no_lines'` row for each payment that recorded none. `csv` or\n * `json` only: the server refuses a PDF with `422`.\n */\n async exportTransactionLines(\n params?: AdminTransactionExportParams,\n options?: JsonExportOptions,\n ): Promise<ExportEnvelope<AdminTransactionLineExportRecord>>;\n async exportTransactionLines(\n params: AdminTransactionExportParams | undefined,\n options: CsvExportOptions,\n ): Promise<Blob>;\n async exportTransactionLines(\n params: AdminTransactionExportParams | undefined,\n options: DynamicLineExportOptions,\n ): Promise<ExportEnvelope<AdminTransactionLineExportRecord> | Blob>;\n async exportTransactionLines(\n params?: AdminTransactionExportParams,\n options?: JsonExportOptions | CsvExportOptions | DynamicLineExportOptions,\n ): Promise<ExportEnvelope<AdminTransactionLineExportRecord> | Blob> {\n return runExport(\n this.request,\n 'GET',\n '/admin-portal/transactions/export/lines',\n { query: transactionListQuery(params) },\n options,\n );\n }\n\n /**\n * Full detail for a single transaction of ANY merchant — the same\n * `PaymentResponse` the merchant `payments.retrieve` returns, with what only\n * staff see beside it (`person_flagged`, `flagged_elsewhere`). Admin-scoped:\n * the JWT (or admin API key) does not need to belong to the payment's\n * merchant; the backend resolves the owning merchant and reads it read-only\n * (no connector sync).\n */\n async getTransaction(paymentId: string): Promise<AdminTransactionDetail> {\n return this.request('GET', `/admin-portal/transactions/${encodeURIComponent(paymentId)}`);\n }\n\n /**\n * A payment's buyer risk evaluations, newest first, across every merchant:\n * the same answer as the merchant's `payments.buyerRisk()`.\n *\n * `GET /admin-portal/transactions/{paymentId}/buyer-risk`\n */\n async getTransactionBuyerRisk(paymentId: string): Promise<BuyerRiskEvaluationsResponse> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/buyer-risk`,\n );\n }\n\n /**\n * A payment's connection checks, newest first, across every merchant: the\n * same answer as the merchant's `identityVerifications.connectionChecks()`.\n *\n * `GET /admin-portal/transactions/{paymentId}/connection-checks`\n */\n async getTransactionConnectionChecks(paymentId: string): Promise<ConnectionChecksResponse> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/connection-checks`,\n );\n }\n\n /**\n * Every account that rates buyer addresses over the last `days` days: its\n * merchant's and its shop's name, its provider and label, whether it can\n * check at all and which credentials it has, and its checks per environment\n * (counts and error rate, anonymising connections, failures by reason,\n * ratings by risk level, finished checks per day, the provider's answer\n * time, its latest check and latest rating). The flat counts stay the live\n * and test totals.\n *\n * `GET /admin-portal/connection-checks`\n */\n async connectionCheckUsage(\n params: ConnectionCheckUsageParams = {},\n ): Promise<ConnectionCheckUsageResponse> {\n return this.request('GET', '/admin-portal/connection-checks', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The same overview over the last 7 days.\n *\n * @deprecated Use `connectionCheckUsage`, which takes a period.\n * `GET /admin-portal/connection-checks`\n */\n async getConnectionCheckUsage(): Promise<ConnectionCheckUsageResponse> {\n return this.request('GET', '/admin-portal/connection-checks');\n }\n\n /**\n * The checks behind one number of the connection check overview, with their\n * payments, one page at a time. With the same `days` and filters a list's\n * `total` is the count it was opened from. A row carries nothing about the\n * buyer, the checked address included.\n *\n * `GET /admin-portal/connection-checks/payments`\n */\n async connectionCheckPayments(\n params: ConnectionCheckPaymentsParams = {},\n ): Promise<ConnectionCheckPaymentsResponse> {\n return this.request('GET', '/admin-portal/connection-checks/payments', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /** The same frozen purchase lines available on the merchant payment read. */\n async getTransactionProductLines(paymentId: string): Promise<PaymentProductLines> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/product-lines`,\n );\n }\n\n /**\n * Per-attempt history (retries across connectors, decline reasons) for a\n * single transaction of ANY merchant.\n */\n async getTransactionAttempts(paymentId: string): Promise<PaymentAttemptsListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/attempts`,\n );\n }\n\n /**\n * Status timeline (intent / attempt / refund / dispute transitions) for a\n * single transaction of ANY merchant. `complete: false` marks timelines\n * partially reconstructed from current records.\n */\n async getTransactionStatusHistory(paymentId: string): Promise<PaymentStatusHistoryResponse> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/status-history`,\n );\n }\n\n /**\n * The traffic of a transaction of ANY merchant: provider requests, provider\n * webhooks and shop webhooks, oldest first, without payloads. Same shape as\n * `payments.listLogs`.\n */\n async getTransactionLogs(paymentId: string): Promise<PaymentLogsResponse> {\n return this.request('GET', `/admin-portal/transactions/${encodeURIComponent(paymentId)}/logs`);\n }\n\n /** One provider request of a transaction of ANY merchant, with its masked payloads. */\n async getTransactionLogConnectorCall(\n paymentId: string,\n callId: string,\n ): Promise<PaymentLogConnectorCallDetail> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/logs/connector-calls/${encodeURIComponent(callId)}`,\n );\n }\n\n /** One provider webhook of a transaction of ANY merchant, with its masked headers and body. */\n async getTransactionLogIncomingWebhook(\n paymentId: string,\n eventId: string,\n ): Promise<PaymentLogIncomingWebhookDetail> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/logs/incoming-webhooks/${encodeURIComponent(eventId)}`,\n );\n }\n\n /** Every delivery attempt of one shop webhook of a transaction of ANY merchant. */\n async getTransactionLogOutgoingWebhook(\n paymentId: string,\n initialAttemptId: string,\n ): Promise<PaymentLogOutgoingWebhookDetail> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/logs/outgoing-webhooks/${encodeURIComponent(initialAttemptId)}`,\n );\n }\n\n /**\n * The invoices and credit notes issued for a transaction of ANY merchant,\n * each its own row, newest first. At most 100 per page.\n * `GET /admin-portal/transactions/{paymentId}/invoices`\n */\n async getTransactionInvoices(paymentId: string, params?: InvoicePageQuery): Promise<InvoiceList> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/invoices`,\n { query: params === undefined ? undefined : { ...params } },\n );\n }\n\n /**\n * One invoice of ANY merchant as a PDF: the stored copy of an issued\n * document, a live render of a draft, the snapshot under a VOIDED banner for\n * a voided one.\n * `GET /admin-portal/invoices/{invoiceId}/pdf`\n */\n async downloadInvoicePdf(invoiceId: string): Promise<Blob> {\n return this.request('GET', `/admin-portal/invoices/${encodeURIComponent(invoiceId)}/pdf`, {\n responseType: 'blob',\n });\n }\n\n /**\n * Refunds for a single transaction of ANY merchant.\n */\n async getTransactionRefunds(paymentId: string): Promise<RefundListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/refunds`,\n );\n }\n\n /**\n * The refund requests buyers raised from the customer portal about a single\n * transaction of ANY merchant, newest first, one page at a time\n * (`total_count` counts them all). Read-only.\n * `GET /admin-portal/transactions/{paymentId}/refund-requests`\n */\n async getTransactionRefundRequests(\n paymentId: string,\n params?: BuyerRefundRequestPageQuery,\n ): Promise<BuyerRefundRequestList> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/refund-requests`,\n { query: params === undefined ? undefined : { ...params } },\n );\n }\n\n /**\n * Refunds of ANY merchant mirrored from a connector webhook at a\n * non-terminal status that no sync can advance. Newest first unless\n * `sort_by` says otherwise. Several `connector`, `status` or `sync_reason`\n * values match a refund with any of them.\n */\n async listUnresolvedRefunds(\n params?: AdminUnresolvedRefundListParams,\n ): Promise<AdminUnresolvedRefundListResponse> {\n return this.request('GET', '/admin-portal/refunds/unresolved', {\n query: csvQuery(params, ['connector', 'status', 'sync_reason']),\n });\n }\n\n // --- Buyer evidence review --------------------------------------------------\n\n /**\n * DeloPay's review queue of buyers' evidence, the nearest target first\n * unless `sort_by` says otherwise, across merchants unless `merchant_id` or\n * `profile_id` narrows it. Several `state` values match a case in any of\n * them.\n */\n async listBuyerEvidence(params?: BuyerEvidenceQueueQuery): Promise<BuyerEvidenceQueue> {\n return this.request('GET', '/admin-portal/buyer-evidence', {\n query: csvQuery(params, ['state']),\n });\n }\n\n /** Chargeback prevention connections across merchants, or of one merchant. */\n async listChargebackPreventionConnections(\n params?: AdminPreventionConnectionListRequest,\n ): Promise<PreventionConnectionList> {\n return this.request('GET', '/admin-portal/chargeback-prevention/connections', {\n query: params as Record<string, string | number | boolean | null | undefined>,\n });\n }\n\n /** Chargeback prevention cases across merchants, or of one merchant. */\n async listChargebackPreventionCases(\n params?: AdminPreventionCaseListRequest,\n ): Promise<PreventionCaseList> {\n const { merchant_id, ...filters } = params ?? {};\n return this.request('GET', '/admin-portal/chargeback-prevention/cases', {\n query: { ...preventionCaseQuery(filters), ...(merchant_id ? { merchant_id } : {}) },\n });\n }\n\n /** Chargeback prevention refund rules across merchants, or of one merchant. */\n async listChargebackPreventionRefundRules(\n params?: AdminPreventionRefundRuleListRequest,\n ): Promise<PreventionRefundRuleList> {\n return this.request('GET', '/admin-portal/chargeback-prevention/refund-rules', {\n query: params as Record<string, string | number | boolean | null | undefined>,\n });\n }\n\n /**\n * Turn a merchant's refund rule off. Its settings are kept, and what it\n * already did is still settled and reported.\n */\n async stopChargebackPreventionRefundRule(\n body: AdminPreventionRefundRuleStop,\n ): Promise<PreventionRefundRule> {\n return this.request('POST', '/admin-portal/chargeback-prevention/refund-rules/disable', {\n body,\n });\n }\n\n /** What refund rules did, across merchants or for one merchant. */\n async listChargebackPreventionRefundActions(\n params?: AdminPreventionRefundActionListRequest,\n ): Promise<PreventionRefundActionList> {\n return this.request('GET', '/admin-portal/chargeback-prevention/refund-actions', {\n query: params as Record<string, string | number | boolean | null | undefined>,\n });\n }\n\n /** One chargeback prevention case of any merchant, with its history. */\n async getChargebackPreventionCase(caseId: string): Promise<PreventionCaseDetail> {\n return this.request(\n 'GET',\n `/admin-portal/chargeback-prevention/cases/${encodeURIComponent(caseId)}`,\n );\n }\n\n /** One case's evidence with every step and file, internal ones included. */\n async getBuyerEvidence(evidenceId: string): Promise<BuyerEvidenceReviewDetail> {\n return this.request('GET', `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}`);\n }\n\n /** Download a file of a case's evidence. */\n async downloadBuyerEvidenceFile(evidenceId: string, fileId: string): Promise<Blob> {\n return this.request(\n 'GET',\n `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/files/${encodeURIComponent(fileId)}`,\n { responseType: 'blob' },\n );\n }\n\n /**\n * Ask the buyer for more, by a cut-off. Refused once a result has closed\n * the review.\n */\n async requestBuyerEvidenceInformation(\n evidenceId: string,\n params: BuyerEvidenceInformationRequest,\n ): Promise<BuyerEvidenceReviewDetail> {\n return this.request(\n 'POST',\n `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/information-requests`,\n { body: params },\n );\n }\n\n /** An answer the buyer sees. */\n async replyToBuyerEvidence(\n evidenceId: string,\n params: BuyerEvidenceReply,\n ): Promise<BuyerEvidenceReviewDetail> {\n return this.request(\n 'POST',\n `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/replies`,\n { body: params },\n );\n }\n\n /**\n * Record the result, which closes the review. It never refunds a payment\n * and never decides a dispute with the payment provider.\n */\n async reviewBuyerEvidence(\n evidenceId: string,\n params: BuyerEvidenceReviewCreate,\n ): Promise<BuyerEvidenceReviewDetail> {\n return this.request(\n 'POST',\n `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/reviews`,\n { body: params },\n );\n }\n\n /** Move the buyer's cut-off, with a reason the buyer sees. */\n async moveBuyerEvidenceDeadline(\n evidenceId: string,\n params: BuyerEvidenceDeadlineChange,\n ): Promise<BuyerEvidenceReviewDetail> {\n return this.request(\n 'PUT',\n `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/deadline`,\n { body: params },\n );\n }\n\n /** Make a user responsible for the review: an id, `me`, or `null` for nobody. */\n async assignBuyerEvidence(\n evidenceId: string,\n params: BuyerEvidenceAssign,\n ): Promise<BuyerEvidenceReviewDetail> {\n return this.request(\n 'PUT',\n `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/reviewer`,\n { body: params },\n );\n }\n\n /** An internal note, never shown to the buyer. */\n async noteBuyerEvidence(\n evidenceId: string,\n params: BuyerEvidenceNote,\n ): Promise<BuyerEvidenceReviewDetail> {\n return this.request(\n 'POST',\n `/admin-portal/buyer-evidence/${encodeURIComponent(evidenceId)}/notes`,\n { body: params },\n );\n }\n\n async analytics(params: AdminAnalyticsRequest): Promise<PlatformAnalyticsResponse> {\n return this.request('GET', '/admin-portal/analytics', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n async overviewStats(): Promise<OverviewStatsResponse> {\n return this.request('GET', '/admin-portal/overview-stats');\n }\n\n async paymentAnalytics(params: PaymentAnalyticsRequest): Promise<PaymentAnalyticsResponse> {\n return this.request('GET', '/admin-portal/payment-analytics', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * One drill level of the analytics dashboard: the scope's daily series +\n * processor mix and its direct children's series. Range / metric / donut\n * toggles apply client-side; only a drill (passing merchant_id / project_id\n * / shop_id) fetches the next level.\n */\n async analyticsScope(params?: AnalyticsScopeRequest): Promise<AnalyticsScopeResponse> {\n return this.request('GET', '/admin-portal/analytics/scope', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The operators' own analytics exclusions, oldest first, with the payments\n * each one matched in the lookback window. They change the admin's\n * analytics only; a merchant's own rules never change the admin's figures.\n * `GET /admin-portal/analytics/exclusions`\n */\n async listAnalyticsExclusions(): Promise<AdminAnalyticsExclusionsResponse> {\n return this.request('GET', '/admin-portal/analytics/exclusions');\n }\n\n /**\n * Write a new operator rule. Omitting `merchant_id` applies it to every\n * merchant; omitting `surfaces` means **all five**, not none.\n * `POST /admin-portal/analytics/exclusions`\n */\n async createAnalyticsExclusion(\n rule: AdminAnalyticsExclusionRequest,\n ): Promise<AdminAnalyticsExclusionResponse> {\n return this.request('POST', '/admin-portal/analytics/exclusions', { body: rule });\n }\n\n /**\n * Replace an operator rule **completely** — send the whole rule, including\n * an explicit `null` for every optional field you mean to clear.\n * `PUT /admin-portal/analytics/exclusions/{id}`\n */\n async updateAnalyticsExclusion(\n id: string,\n rule: AdminAnalyticsExclusionRequest,\n ): Promise<AdminAnalyticsExclusionResponse> {\n return this.request('PUT', `/admin-portal/analytics/exclusions/${encodeURIComponent(id)}`, {\n body: rule,\n });\n }\n\n /**\n * Delete an operator rule. Returns the rule as it was.\n * `DELETE /admin-portal/analytics/exclusions/{id}`\n */\n async deleteAnalyticsExclusion(id: string): Promise<AdminAnalyticsExclusionResponse> {\n return this.request('DELETE', `/admin-portal/analytics/exclusions/${encodeURIComponent(id)}`);\n }\n\n /**\n * A merchant's own exclusions, read-only, each with the operator rule that\n * already holds it (`admin_rule_id`).\n * `GET /admin-portal/analytics/exclusions/merchant/{merchant_id}`\n */\n async listMerchantAnalyticsExclusions(\n merchantId: string,\n ): Promise<MerchantExclusionsForAdminResponse> {\n return this.request(\n 'GET',\n `/admin-portal/analytics/exclusions/merchant/${encodeURIComponent(merchantId)}`,\n );\n }\n\n /**\n * Copy some of a merchant's rules into the operators' rules, each scoped to\n * that merchant. A copy is independent of its source; a rule an operator\n * rule already holds is skipped with a reason.\n * `POST /admin-portal/analytics/exclusions/copy`\n */\n async copyAnalyticsExclusions(\n body: AdminAnalyticsExclusionCopyRequest,\n ): Promise<AdminAnalyticsExclusionCopyResponse> {\n return this.request('POST', '/admin-portal/analytics/exclusions/copy', { body });\n }\n\n /**\n * Shop comparison: one series per shop over one window, with whole-window\n * and previous-window totals. With `merchant_id`, that merchant's shops;\n * without it, the top `limit` (default 50) shops of every merchant by\n * successful volume, the rest summed into `others`. Same contract as the\n * merchant surface's `analytics.shops`. `GET /admin-portal/analytics/shops`\n */\n async analyticsShops(params: AdminAnalyticsShopsRequest = {}): Promise<AnalyticsShopsResponse> {\n const query: AnalyticsShopsRequest = params;\n return this.request('GET', '/admin-portal/analytics/shops', {\n query: query as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Every shop's device intelligence account, with its merchant's and its own\n * name and its assessments per environment over the last `days` days: counts\n * and error rate, failures by reason, finished assessments per day and\n * provider, the last recorded assessment, browser payments against assessed\n * ones, and the payments held for a missing assessment. The error rate counts\n * finished assessments: one still running and a payment naming no buyer are\n * not errors.\n * `GET /admin-portal/device-intelligence`\n */\n async deviceIntelligenceUsage(\n params: DeviceIntelligenceUsageParams = {},\n ): Promise<DeviceIntelligenceUsageResponse> {\n return this.request('GET', '/admin-portal/device-intelligence', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The payments behind one number of the device intelligence overview, one\n * page at a time: the assessments it counts, the payments held for a missing\n * assessment, or the browser payments without a device signal. With the same\n * `days` a list's `total` is the count it was opened from. A row carries\n * nothing about the buyer.\n * `GET /admin-portal/device-intelligence/payments`\n */\n async deviceIntelligencePayments(\n params: DeviceIntelligencePaymentsParams = {},\n ): Promise<DeviceIntelligencePaymentsResponse> {\n return this.request('GET', '/admin-portal/device-intelligence/payments', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * PSP analytics across merchants: the merchant surface's\n * `analytics.connectors`, with `merchant_id` optional (omitted, every\n * merchant, broken down by merchant) and each account's merchant named.\n * `GET /admin-portal/analytics/connectors`\n */\n async analyticsConnectors(\n params: AdminAnalyticsConnectorsRequest = {},\n ): Promise<AnalyticsConnectorsResponse> {\n const query: AnalyticsConnectorsRequest = params;\n return this.request('GET', '/admin-portal/analytics/connectors', {\n query: query as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Device analytics over the canonical client-context observation per\n * payment, rooted at all merchants and drillable via `merchant_id` /\n * `project_id` / `shop_id` like `analyticsScope`. Answers 200 with\n * `enabled: false` when the client-context optimisation-use switch is off.\n */\n async analyticsDevices(params?: ClientAnalyticsRequest): Promise<DevicesAnalyticsResponse> {\n return this.request('GET', '/admin-portal/analytics/devices', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Geo analytics over the canonical client-context observation per payment,\n * rooted at all merchants. `mode` selects the location claim (`ip` default,\n * `billing`).\n */\n async analyticsGeo(params?: ClientAnalyticsRequest): Promise<GeoAnalyticsResponse> {\n return this.request('GET', '/admin-portal/analytics/geo', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The recent payments behind one clicked geo target (map country/city or\n * local-hours heatmap cell), rooted at all merchants. Capped at 50 rows,\n * newest first, with the full match count alongside.\n */\n async analyticsGeoTransactions(params: GeoDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/admin-portal/analytics/geo/transactions', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The recent payments behind one clicked device target (browser/platform\n * family, device-model label or device class), rooted at all merchants.\n * 50 rows per page (`offset` for the next page), newest first.\n */\n async analyticsDeviceTransactions(params: DeviceDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/admin-portal/analytics/devices/transactions', {\n // A discriminated union carries no index signature, so the widening\n // goes via `unknown` — the union is the point.\n query: params as unknown as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The payments behind one clicked element of the admin payments dashboard\n * (processor / method slice, outcome segment, series bucket or breakdown\n * row), rooted at all merchants. Same contract as the merchant surface's\n * `analytics.scopeTransactions`. `GET /admin-portal/analytics/scope/transactions`\n */\n async analyticsScopeTransactions(params: ScopeDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/admin-portal/analytics/scope/transactions', {\n query: params as unknown as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Subscription analytics over `subscription` and `invoice`, rooted at all\n * merchants and drillable via `merchant_id` / `project_id` / `shop_id` like\n * `analyticsScope`. The `children` block at the root is the merchant\n * breakdown — there is no separate endpoint for it.\n *\n * Half the figures are **stocks** (a snapshot at the window's end, not a sum\n * over it), so `est_monthly_volume_usd` and `active` can match across a\n * 7-day and a 30-day window while `billed_volume_usd` does not. Day\n * granularity only.\n */\n async analyticsSubscriptions(\n params?: SubscriptionAnalyticsRequest,\n ): Promise<SubscriptionAnalyticsResponse> {\n return this.request('GET', '/admin-portal/analytics/subscriptions', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The billing cycles behind one clicked element of the admin subscription\n * dashboard: an invoice outcome, a processor slice on either axis, a plan\n * row, a subscription status, a movement component, a series bucket or a\n * breakdown row. 50 rows per page (`offset` for the next), newest first,\n * with the full match count alongside.\n *\n * A cycle that never reached a payment is listed too — that is what \"still\n * unpaid\" means — and carries its invoice id as `payment_id` with\n * `invoice_id` set to the same value.\n */\n async analyticsSubscriptionsList(params: SubscriptionDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/admin-portal/analytics/subscriptions/list', {\n // A discriminated union carries no index signature, so the widening\n // goes via `unknown` — the union is the point, and the query builder\n // only ever reads own enumerable keys.\n query: params as unknown as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * How accurate buyer risk scores were in a period, against what later\n * happened to the payments: fraud, clean, pending and never charged, how\n * well the flagged bands caught the fraud, each band and signal, and the\n * buyers the score stopped who later paid with no fraud. Stores nothing.\n * `GET /admin-portal/buyer-risk/accuracy`\n */\n async buyerRiskAccuracy(params: BuyerRiskAccuracyQuery = {}): Promise<BuyerRiskAccuracyReport> {\n return this.request('GET', '/admin-portal/buyer-risk/accuracy', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The payments behind one number of {@link AdminPortal.buyerRiskAccuracy}:\n * the payments a signal fired on, those in a band, a flagged × outcome cell,\n * the interventions or the false declines. Paged, sorted and searchable\n * like the analytics drills, and answered in the same shape, with each\n * row's band, score, outcome and applied action.\n * `GET /admin-portal/buyer-risk/accuracy/payments`\n */\n async buyerRiskAccuracyPayments(\n params: BuyerRiskAccuracyPaymentsRequest = {},\n ): Promise<DrillResponse> {\n return this.request('GET', '/admin-portal/buyer-risk/accuracy/payments', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Platform billing dashboard: total balance across all ledger accounts (+\n * the net change), top-ups, fees collected, and the day-by-day ledger flow.\n * All amounts are in USD minor units.\n */\n async ledgerAnalytics(\n params?: AdminLedgerAnalyticsRequest,\n ): Promise<AdminLedgerAnalyticsResponse> {\n return this.request('GET', '/admin-portal/ledger-analytics', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Billing profiles no operator listing can reach, and the accounts that may\n * have taken one over.\n *\n * Deleting a merchant account leaves its billing profile — with its\n * balance, its Stripe customer and its saved card — behind, and the\n * Merchants listing enumerates merchant accounts, so such a profile is\n * absent from every operator surface rather than flagged on one. This reads\n * from the billing side instead, so it finds them.\n *\n * Both lists come back complete rather than paged: the healthy answer is two\n * empty arrays, and a truncated answer to *\"is the set empty\"* would read as\n * a clean bill of health.\n *\n * `adoption_candidates` are candidates, not findings — confirm a row against\n * the audit log before acting on it.\n */\n async orphanedBillingProfiles(): Promise<AdminOrphanedBillingProfilesResponse> {\n return this.request('GET', '/admin-portal/billing/orphaned-profiles');\n }\n\n /**\n * Retrieve a merchant account via the admin portal. Unlike\n * `merchantAccounts.retrieve`, this route accepts an admin JWT (or admin API\n * key) and does not require the JWT to be scoped to the target merchant.\n */\n async retrieveAccount(merchantId: string): Promise<MerchantAccountResponse> {\n return this.request('GET', `/admin-portal/accounts/${encodeURIComponent(merchantId)}`);\n }\n\n /**\n * Update a merchant account via the admin portal. Authenticated via admin JWT\n * or admin API key.\n */\n async updateAccount(\n merchantId: string,\n params: MerchantAccountUpdateRequest,\n ): Promise<MerchantAccountResponse> {\n return this.request('POST', `/admin-portal/accounts/${encodeURIComponent(merchantId)}`, {\n body: params,\n });\n }\n\n /**\n * Delete a merchant account via the admin portal. Authenticated via admin JWT\n * or admin API key.\n */\n async deleteAccount(merchantId: string): Promise<MerchantAccountResponse> {\n return this.request('DELETE', `/admin-portal/accounts/${encodeURIComponent(merchantId)}`);\n }\n\n /**\n * Create a brand-new user attached to the given merchant. The user is\n * marked `is_verified = true` so the admin can hand off credentials\n * immediately — no email round-trip is sent.\n */\n async createUserForMerchant(\n customerId: string,\n body: AdminCreateUserForMerchantRequest,\n ): Promise<AdminUserResponse> {\n return this.request('POST', `/admin-portal/customers/${encodeURIComponent(customerId)}/users`, {\n body,\n });\n }\n\n /**\n * Edit a user record. Any subset of fields may be supplied. `role_id`\n * requires `merchant_id`. `password` triggers a password reset (validated\n * against signup policy + JWT blacklist). `reset_2fa` clears TOTP state\n * so the user re-enrolls on next login. `is_active` supports both\n * directions: false soft-disables, true reactivates a soft-disabled user.\n *\n * Throws a `400` with `code === 'UR_66'` when the change would leave a\n * merchant with no administrator — `is_active: false` or `is_verified:\n * false` on, or a `role_id` demoting, the only active user whose role can\n * manage that merchant's users. Nothing is written. `error.data` carries a\n * {@link LastAdministratorRefusal} naming the merchant and which change was\n * refused; render that rather than the generic message.\n */\n async updateUser(userId: string, body: AdminUpdateUserRequest): Promise<AdminUserResponse> {\n return this.request('PATCH', `/admin-portal/users/${encodeURIComponent(userId)}`, { body });\n }\n\n /**\n * One user's account and its health: whether it is active and verified,\n * whether two-factor authentication is set up, when the password last\n * changed, the linked single sign-on providers, the newest successful and\n * failed sign-in, when the user was last seen and how many sessions are\n * live. Lists every membership the user holds in this tenant, invitations\n * and expired ones included, with its role and status. Never returns a\n * credential. `GET /admin-portal/users/{user_id}`\n *\n * Needs an internal role holding `ProfileUserRead`, or the admin API key.\n * A user with no membership in this tenant is a `404`.\n */\n async getUser(userId: string): Promise<AdminUserDetailResponse> {\n return this.request('GET', `/admin-portal/users/${encodeURIComponent(userId)}`);\n }\n\n /**\n * One user's sign-in history (successes and failures, method, address,\n * location and device), filtered, sorted and paged as\n * `users.listLoginActivity` is. Same access and `404` rule as `getUser`.\n * `GET /admin-portal/users/{user_id}/login-activity`\n */\n async listUserLoginActivity(\n userId: string,\n params?: LoginHistoryParams,\n ): Promise<LoginHistoryResponse> {\n const path = `/admin-portal/users/${encodeURIComponent(userId)}/login-activity`;\n if (params === undefined) {\n return this.request('GET', path);\n }\n return this.request('GET', path, {\n query: csvQuery(params, ['event_type', 'auth_method']),\n });\n }\n\n /**\n * One user's live sessions: neither signed out nor expired. `is_current`\n * marks the caller's own session only, when the caller looks at themselves.\n * Same access and `404` rule as `getUser`.\n * `GET /admin-portal/users/{user_id}/sessions`\n */\n async listUserSessions(userId: string): Promise<UserSessionListResponse> {\n return this.request('GET', `/admin-portal/users/${encodeURIComponent(userId)}/sessions`);\n }\n\n /**\n * End one session of the user: its token is refused on its next request.\n * Needs `UsersManage`. Recorded in the audit log. A session that has\n * already ended answers `revoked: false` and records nothing. A session of\n * another user is a `404`, as an unknown id is.\n * `POST /admin-portal/users/{user_id}/sessions/{session_id}/revoke`\n */\n async revokeUserSession(userId: string, sessionId: string): Promise<UserSessionRevokeResponse> {\n return this.request(\n 'POST',\n `/admin-portal/users/${encodeURIComponent(userId)}/sessions/${encodeURIComponent(sessionId)}/revoke`,\n );\n }\n\n /**\n * Sign the user out of every session and token, wherever they signed in.\n * Needs `UsersManage`. The account stays active and the user can sign in\n * again at once. Answers how many live sessions were ended. Recorded in the\n * audit log. `POST /admin-portal/users/{user_id}/sessions/revoke-all`\n */\n async revokeAllUserSessions(userId: string): Promise<AdminRevokeUserSessionsResponse> {\n return this.request(\n 'POST',\n `/admin-portal/users/${encodeURIComponent(userId)}/sessions/revoke-all`,\n );\n }\n\n /**\n * Which checkout payment methods a member of `merchantId` may change.\n * `GET /admin-portal/accounts/{merchant_id}/members/{user_id}/method-access`\n *\n * Any internal role may read it; `can_edit` is `false` for one without\n * `UsersManage`. A user holding no role in the merchant is a 404 `UR_68`.\n */\n async getMemberMethodAccess(\n merchantId: string,\n userId: string,\n ): Promise<MemberMethodAccessResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/members/${encodeURIComponent(userId)}/method-access`,\n );\n }\n\n /**\n * Limit a member of `merchantId` to some checkout payment methods, or give\n * every method back. Needs `UsersManage`. Recorded in the merchant's audit\n * log. `PUT /admin-portal/accounts/{merchant_id}/members/{user_id}/method-access`\n */\n async updateMemberMethodAccess(\n merchantId: string,\n userId: string,\n body: UpdateMemberMethodAccessRequest,\n ): Promise<MemberMethodAccessResponse> {\n return this.request(\n 'PUT',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/members/${encodeURIComponent(userId)}/method-access`,\n { body },\n );\n }\n\n /**\n * A member of `merchantId`'s permission overrides.\n * `GET /admin-portal/accounts/{merchant_id}/members/{user_id}/permission-overrides`\n *\n * Any internal role may read them; `can_edit` is `false` for one without\n * `UsersManage`. A user holding no role in the merchant is a 404 `UR_68`.\n */\n async getMemberPermissionOverrides(\n merchantId: string,\n userId: string,\n ): Promise<MemberPermissionOverridesResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/members/${encodeURIComponent(userId)}/permission-overrides`,\n );\n }\n\n /**\n * Replace a member of `merchantId`'s permission overrides. Needs\n * `UsersManage`; an operator is not limited by their own access. Recorded\n * in the merchant's audit log and applied to the member's next request.\n * `PUT /admin-portal/accounts/{merchant_id}/members/{user_id}/permission-overrides`\n */\n async updateMemberPermissionOverrides(\n merchantId: string,\n userId: string,\n body: UpdateMemberPermissionOverridesRequest,\n ): Promise<MemberPermissionOverridesResponse> {\n return this.request(\n 'PUT',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/members/${encodeURIComponent(userId)}/permission-overrides`,\n { body },\n );\n }\n\n /**\n * The caller's own merchant access: every merchant, or only the merchants\n * listed. Every employee reads their own.\n * `GET /admin-portal/staff/me/merchant-access`\n */\n async getOwnStaffMerchantAccess(): Promise<StaffMerchantAccessResponse> {\n return this.request('GET', '/admin-portal/staff/me/merchant-access');\n }\n\n /**\n * Which merchants one employee may reach in the admin dashboard and open\n * through the support switch. `can_edit` is `false` without user\n * management and for the caller's own access. A user who is not an\n * employee is a 404 `UR_73`.\n * `GET /admin-portal/staff/{user_id}/merchant-access`\n */\n async getStaffMerchantAccess(userId: string): Promise<StaffMerchantAccessResponse> {\n return this.request('GET', `/admin-portal/staff/${encodeURIComponent(userId)}/merchant-access`);\n }\n\n /**\n * Let one employee reach every merchant or only the merchants listed. Needs\n * `UsersManage`; nobody changes their own. Recorded in the audit log and\n * applied to the employee's next request, an open support session included.\n * Refusals are `UR_73` with a {@link StaffAccessRefusal}.\n * `PUT /admin-portal/staff/{user_id}/merchant-access`\n */\n async updateStaffMerchantAccess(\n userId: string,\n body: StaffMerchantAccessUpdateRequest,\n ): Promise<StaffMerchantAccessResponse> {\n return this.request(\n 'PUT',\n `/admin-portal/staff/${encodeURIComponent(userId)}/merchant-access`,\n { body },\n );\n }\n\n /**\n * What holders of each staff role may do inside a merchant's dashboard\n * during a support session.\n * `GET /admin-portal/staff-roles/support-access`\n */\n async listStaffSupportAccess(): Promise<StaffRoleSupportAccessList> {\n return this.request('GET', '/admin-portal/staff-roles/support-access');\n }\n\n /**\n * Cap what holders of one staff role may do inside a merchant's dashboard,\n * or put the role back to the support switch's own decision. Needs\n * `UsersManage`. Recorded in the audit log and applied to open support\n * sessions from their next request.\n * `PUT /admin-portal/staff-roles/{role_id}/support-access`\n */\n async updateStaffSupportAccess(\n roleId: string,\n body: StaffRoleSupportAccessUpdateRequest,\n ): Promise<StaffRoleSupportAccess> {\n return this.request(\n 'PUT',\n `/admin-portal/staff-roles/${encodeURIComponent(roleId)}/support-access`,\n { body },\n );\n }\n\n /**\n * Soft-delete a user globally: deactivates the row, blacklists existing\n * JWTs, and wipes credentials. Distinct from `deleteUserRole`, which\n * removes a single role binding while leaving the user signed-in elsewhere.\n *\n * Throws the same `UR_66` as {@link updateUser} when the user is the last\n * administrator of any merchant they belong to, with `route: 'delete'`.\n */\n async deleteUser(userId: string): Promise<void> {\n return this.request('DELETE', `/admin-portal/users/${encodeURIComponent(userId)}`);\n }\n\n /**\n * Set a target merchant's shop iframe-allowed origins. Internal-admin\n * route — accepts an admin JWT or admin API key without requiring the\n * caller to be scoped to the target merchant. Pass `null` (or an empty\n * array) to clear the allowlist back to same-origin only.\n *\n * Server validates each origin: full origin (scheme + host[:port]),\n * no path/query/fragment, no wildcards.\n *\n * `POST /admin-portal/accounts/{merchantId}/business-profile/{profileId}/iframe-origins`\n */\n async updateShopIframeOrigins(\n merchantId: string,\n profileId: string,\n origins: string[] | null,\n ): Promise<ProfileResponse> {\n return this.request(\n 'POST',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/business-profile/${encodeURIComponent(profileId)}/iframe-origins`,\n { body: { iframe_allowed_origins: origins } },\n );\n }\n\n /**\n * Set (or clear) a target merchant shop's home country — the geo\n * dashboard's cross-border baseline. Internal-admin route. Pass `null` to\n * clear back to \"international / no home country\" (the default).\n *\n * `POST /admin-portal/accounts/{merchantId}/business-profile/{profileId}/home-country`\n */\n async updateShopHomeCountry(\n merchantId: string,\n profileId: string,\n homeCountry: string | null,\n ): Promise<ProfileResponse> {\n return this.request(\n 'POST',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/business-profile/${encodeURIComponent(profileId)}/home-country`,\n { body: { home_country: homeCountry } },\n );\n }\n\n /**\n * One merchant's sell-to restrictions — the merchant-wide policy and every\n * shop's effective policy. Read-only; staff change a policy through the\n * merchant routes.\n *\n * `GET /admin-portal/accounts/{merchantId}/sell-to-restrictions`\n */\n async getSellToRestrictions(merchantId: string): Promise<SellToRestrictionsResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/sell-to-restrictions`,\n );\n }\n\n /**\n * Soft-delete a transaction of ANY merchant. Only payments whose status\n * is in the admin delete policy can be deleted; the action is audited.\n *\n * `DELETE /admin-portal/transactions/{paymentId}`\n */\n async deleteTransaction(paymentId: string): Promise<PaymentsDeleteResponse> {\n return this.request('DELETE', `/admin-portal/transactions/${encodeURIComponent(paymentId)}`);\n }\n\n /**\n * Recover (undelete) a soft-deleted transaction. Audited.\n *\n * `POST /admin-portal/transactions/{paymentId}/recover`\n */\n async recoverTransaction(paymentId: string): Promise<PaymentsDeleteResponse> {\n return this.request(\n 'POST',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/recover`,\n );\n }\n\n /**\n * Mark a transaction of ANY merchant as an integration test, or remove the\n * mark. Recorded in the payment's status history as an operator's change.\n *\n * `POST /admin-portal/transactions/{paymentId}/integration-test`\n */\n async setTransactionIntegrationTest(\n paymentId: string,\n params: PaymentIntegrationTestRequest,\n ): Promise<PaymentIntegrationTestResponse> {\n return this.request(\n 'POST',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/integration-test`,\n { body: params },\n );\n }\n\n /**\n * Client/device observations captured while the buyer interacted with a\n * transaction of ANY merchant, oldest first.\n *\n * `GET /admin-portal/transactions/{paymentId}/client-context`\n */\n async getTransactionClientContext(paymentId: string): Promise<PaymentClientContextListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/client-context`,\n );\n }\n\n /**\n * What the rail charged for one attempt of a transaction of ANY merchant,\n * off the attempt's settlement line. `line_recorded: false` means\n * no line exists for the attempt; an absent amount is \"no figure\", never\n * zero.\n *\n * `GET /admin-portal/transactions/{paymentId}/attempts/{attemptId}/processor-cost`\n */\n async getTransactionAttemptProcessorCost(\n paymentId: string,\n attemptId: string,\n ): Promise<AdminAttemptProcessorCost> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/attempts/${encodeURIComponent(attemptId)}/processor-cost`,\n );\n }\n\n /** Read or refresh signed processor fees for a payment. Internal admin access required. */\n async getTransactionProcessorCostEvents(\n paymentId: string,\n params: AdminProcessorCostEventsParams = {},\n ): Promise<ProcessorCostEventsResponse> {\n return this.request(\n 'GET',\n `/admin-portal/transactions/${encodeURIComponent(paymentId)}/processor-cost-events`,\n {\n query: {\n test_mode: params.test_mode,\n year: params.year,\n month: params.month,\n limit: params.limit,\n offset: params.offset,\n force_sync: params.force_sync,\n },\n },\n );\n }\n\n /**\n * DeloPay's own processor cost schedules — our acquirer contract, which\n * prices every merchant that has no schedule of its own, except an account\n * a shop owner brought (that rate is in their contract, not ours, and lives\n * on the merchant surface).\n *\n * Never returned on the merchant surface: these rates are DeloPay's cost\n * base. The rows carry no merchant.\n *\n * `GET /admin-portal/processor-costs`\n */\n async listProcessorCostSchedules(): Promise<ProcessorCostScheduleResponse[]> {\n return this.request('GET', '/admin-portal/processor-costs');\n }\n\n /**\n * Record a DeloPay-wide cost schedule — what a rail charges DeloPay, for\n * rails that report no fee on the payment itself. A cost derived from one\n * of these is marked `estimated` on the settlement line, never `reported`.\n *\n * `POST /admin-portal/processor-costs`\n */\n async createProcessorCostSchedule(\n params: CreateProcessorCostScheduleRequest,\n ): Promise<ProcessorCostScheduleResponse> {\n return this.request('POST', '/admin-portal/processor-costs', { body: params });\n }\n\n /**\n * Record several DeloPay-wide schedules at once, all or none — copy a price\n * list across methods. 1 to 200 entries; an invalid entry is answered `422`\n * naming its index and nothing is stored. The answer lists them in request\n * order.\n *\n * `POST /admin-portal/processor-costs/bulk`\n */\n async bulkCreateProcessorCostSchedules(\n params: BulkCreateProcessorCostSchedulesRequest,\n ): Promise<ProcessorCostScheduleResponse[]> {\n return this.request('POST', '/admin-portal/processor-costs/bulk', { body: params });\n }\n\n /**\n * Close a window, deactivate a DeloPay-wide schedule or annotate it. The\n * rate itself is not editable: it priced transactions that already\n * happened, and a new rate is a new row.\n *\n * `PUT /admin-portal/processor-costs/{scheduleId}`\n */\n async updateProcessorCostSchedule(\n scheduleId: string,\n params: UpdateProcessorCostScheduleRequest,\n ): Promise<ProcessorCostScheduleResponse> {\n return this.request('PUT', `/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}`, {\n body: params,\n });\n }\n\n /**\n * Close a DeloPay-wide schedule at `effective_from` and open its successor\n * with the same scope and the same end, in one step: no transaction is\n * priced by both rates, and none falls between them. Answers the successor.\n *\n * `POST /admin-portal/processor-costs/{scheduleId}/replace`\n */\n async replaceProcessorCostSchedule(\n scheduleId: string,\n params: ReplaceProcessorCostScheduleRequest,\n ): Promise<ProcessorCostScheduleResponse> {\n return this.request(\n 'POST',\n `/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}/replace`,\n { body: params },\n );\n }\n\n /**\n * Delete a DeloPay-wide schedule. Restates nothing: every figure it derived\n * is already stamped on the settlement lines it priced.\n *\n * `DELETE /admin-portal/processor-costs/{scheduleId}`\n */\n async deleteProcessorCostSchedule(scheduleId: string): Promise<void> {\n return this.request(\n 'DELETE',\n `/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}`,\n );\n }\n\n /**\n * The platform VAT rate table, every row past and future. With `on`, only\n * the row in force on that date for each country and category.\n *\n * `GET /admin-portal/vat-rates`\n */\n async listVatRates(params?: VatRateListParams): Promise<VatRateListResponse> {\n return this.request('GET', '/admin-portal/vat-rates', {\n query: { country: params?.country, on: params?.on },\n });\n }\n\n /**\n * Add a rate for a country and category from `valid_from` on. A rate change\n * is a new row with a later `valid_from`; the earlier row keeps pricing the\n * days before it. A second row for the same country, category and date is\n * refused with `IR_38`.\n *\n * `POST /admin-portal/vat-rates`\n */\n async createVatRate(params: CreateVatRateRequest): Promise<VatRateResponse> {\n return this.request('POST', '/admin-portal/vat-rates', { body: params });\n }\n\n /**\n * Change a rate's label, or the rate of a row that has not started yet. A\n * row in force (`valid_from` on or before today, UTC) keeps its rate:\n * payments were determined on it, and a new `rate_bp` is refused with\n * `DE_29` (409).\n *\n * `PUT /admin-portal/vat-rates/{rateId}`\n */\n async updateVatRate(rateId: string, params: UpdateVatRateRequest): Promise<VatRateResponse> {\n return this.request('PUT', `/admin-portal/vat-rates/${encodeURIComponent(rateId)}`, {\n body: params,\n });\n }\n\n /**\n * Delete a rate that has not started yet. A row in force is refused with\n * `DE_29` (409); add a row with a later `valid_from` instead.\n *\n * `DELETE /admin-portal/vat-rates/{rateId}`\n */\n async deleteVatRate(rateId: string): Promise<VatRateDeleteResponse> {\n return this.request('DELETE', `/admin-portal/vat-rates/${encodeURIComponent(rateId)}`);\n }\n\n /**\n * One shop's statement periods, newest first. Same shape as the\n * merchant-facing `settlement.listPeriods`, admin-authenticated.\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/periods`\n */\n async listSettlementPeriods(\n merchantId: string,\n params: SettlementPeriodListParams,\n ): Promise<SettlementPeriodListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/periods`,\n { query: { profile_id: params.profile_id } },\n );\n }\n\n /**\n * A merchant's settlement statements. Same shapes as the merchant-facing\n * `settlement` resource, admin-authenticated.\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/statements`\n */\n async listSettlementStatements(\n merchantId: string,\n params: SettlementStatementListParams,\n ): Promise<SettlementStatementListResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/statements`,\n { query: statementListQuery(params) },\n );\n }\n\n /**\n * One settlement statement with its breakdown.\n * `GET /admin-portal/accounts/{merchantId}/settlement/statements/{statementId}`\n */\n async getSettlementStatement(\n merchantId: string,\n statementId: string,\n ): Promise<FeeStatementDetail> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/statements/${encodeURIComponent(statementId)}`,\n );\n }\n\n /**\n * Export a settlement statement as PDF. Returns the raw bytes as a `Blob`\n * with the same auth and error handling as every other call. `options`\n * takes a signal, a timeout and an `onDownloadProgress` listener for the\n * download's bytes (the PDF carries a `Content-Length`, so `total` is set).\n *\n * `GET /admin-portal/accounts/{merchantId}/settlement/statements/{statementId}/pdf`\n */\n async downloadSettlementStatementPdf(\n merchantId: string,\n statementId: string,\n params?: StatementPdfParams,\n options?: RequestExtras,\n ): Promise<Blob> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/statements/${encodeURIComponent(statementId)}/pdf`,\n {\n query: {\n currency: params?.currency,\n include_transactions: params?.include_transactions,\n format: params?.format,\n },\n responseType: 'blob',\n ...options,\n },\n );\n }\n\n /**\n * A merchant's per-shop settlement overview.\n * `GET /admin-portal/accounts/{merchantId}/settlement/overview`\n */\n async settlementOverview(\n merchantId: string,\n params: SettlementOverviewParams,\n ): Promise<SettlementOverviewResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/overview`,\n { query: { test_mode: params.test_mode } },\n );\n }\n\n /**\n * A merchant's live current-period settlement rollup.\n * `GET /admin-portal/accounts/{merchantId}/settlement/current`\n */\n async settlementCurrent(\n merchantId: string,\n params: SettlementCurrentParams,\n ): Promise<SettlementCurrentResponse> {\n return this.request(\n 'GET',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/current`,\n { query: { test_mode: params.test_mode, profile_id: params.profile_id } },\n );\n }\n\n /**\n * A merchant's vault state: the attach entitlement, and the vault\n * configuration of every shop.\n *\n * `GET /admin-portal/accounts/{merchantId}/vault`\n */\n async getVaultState(merchantId: string): Promise<AdminVaultStateResponse> {\n return this.request('GET', `/admin-portal/accounts/${encodeURIComponent(merchantId)}/vault`);\n }\n\n /**\n * Attach a vault to one of a merchant's shops — creates the vault\n * connector account and points the profile at it in one request. The\n * Collect credentials are verified write-only before anything is stored.\n *\n * `POST /admin-portal/accounts/{merchantId}/vault/attach`\n */\n async attachVault(\n merchantId: string,\n params: AdminAttachVaultRequest,\n ): Promise<AdminAttachVaultResponse> {\n return this.request(\n 'POST',\n `/admin-portal/accounts/${encodeURIComponent(merchantId)}/vault/attach`,\n { body: params },\n );\n }\n\n /**\n * Correct the funding type, issuing bank and issuing country recorded on\n * past card payments from the BIN table, across every merchant, oldest\n * first, one bounded page per call. Resume with the returned `next_after`\n * until it is `null`. A dry run, the default, reports without writing; a\n * payment that changed while the page ran is left alone and counted as a\n * conflict. Payments of merchants whose attempts are stored in Redis are\n * not corrected.\n *\n * `POST /admin-portal/card-funding/backfill`\n */\n async backfillCardFunding(\n params: CardFundingBackfillRequest = {},\n ): Promise<CardFundingBackfillResponse> {\n return this.request('POST', '/admin-portal/card-funding/backfill', { body: params });\n }\n\n /**\n * Every live shop of a merchant, worst first, with DeloPay's reference\n * assessment and, where a merchant adjustment applied, the adjusted one\n * beside it. Not narrowed to one shop: operators see the whole merchant.\n *\n * `GET /admin-portal/accounts/{merchant_id}/risk`\n */\n async getMerchantRisk(merchantId: string): Promise<MerchantRisk> {\n return this.request('GET', `/admin-portal/accounts/${encodeURIComponent(merchantId)}/risk`);\n }\n\n /**\n * A merchant's tuning of its own risk assessment at one scope, as the\n * merchant sees it, for operators.\n *\n * `GET /admin-portal/accounts/{merchant_id}/risk/tuning[/{projects|shops}/{id}]`\n */\n async getMerchantRiskTuning(\n merchantId: string,\n target: RiskTuningTarget = { scope: 'merchant' },\n ): Promise<RiskTuningResponse> {\n return this.request('GET', riskTuningPath(target, adminAccount(merchantId)));\n }\n\n /**\n * Replace a merchant's tuning at one scope on its behalf. Needs\n * `AccountManage`; the merchant sees the change as `platform_operator`, the\n * audit names the operator. Validated and revision-checked as the\n * merchant's own save is.\n *\n * `PUT /admin-portal/accounts/{merchant_id}/risk/tuning[/{projects|shops}/{id}]`\n */\n async updateMerchantRiskTuning(\n merchantId: string,\n target: RiskTuningTarget,\n params: RiskTuningUpdateRequest,\n ): Promise<RiskTuningResponse> {\n return this.request('PUT', riskTuningPath(target, adminAccount(merchantId)), {\n body: params,\n });\n }\n\n /**\n * Reset a merchant's tuning at one scope on its behalf.\n *\n * `DELETE /admin-portal/accounts/{merchant_id}/risk/tuning[/{projects|shops}/{id}]`\n */\n async resetMerchantRiskTuning(\n merchantId: string,\n target: RiskTuningTarget,\n expectedRevision: number,\n ): Promise<RiskTuningResponse> {\n return this.request('DELETE', riskTuningPath(target, adminAccount(merchantId)), {\n query: { expected_revision: expectedRevision },\n });\n }\n\n /**\n * Estimate a change to a merchant's tuning. Stores, scores and sends nothing.\n *\n * `POST /admin-portal/accounts/{merchant_id}/risk/tuning[/{projects|shops}/{id}]/preview`\n */\n async previewMerchantRiskTuning(\n merchantId: string,\n target: RiskTuningTarget,\n adjustments: RiskAdjustments,\n ): Promise<RiskTuningPreviewResponse> {\n return this.request('POST', `${riskTuningPath(target, adminAccount(merchantId))}/preview`, {\n body: { adjustments },\n });\n }\n\n /**\n * The shop risk model the daily scoring pass uses, where it comes from and\n * the `revision` to name when changing it. When no model can be used,\n * `model` is absent and `problem` says why.\n *\n * `GET /admin-portal/risk-model`\n */\n async getRiskModel(): Promise<RiskModelResponse> {\n return this.request('GET', '/admin-portal/risk-model');\n }\n\n /**\n * Change the shop risk model; the answer is the model stored. Name the\n * `revision` the change was made against so a save over a change made in\n * between is refused (`IR_16`) instead of overwriting it. An invalid\n * result, or a scoring change without a higher `model_version`, is refused\n * with the reason in `error.message`.\n *\n * `PUT /admin-portal/risk-model`\n */\n async updateRiskModel(\n patch: RiskModelPatch,\n options: RiskModelUpdateOptions = {},\n ): Promise<RiskModelResponse> {\n return this.request('PUT', '/admin-portal/risk-model', {\n body: patch,\n query: { revision: options.revision },\n });\n }\n\n /**\n * What recalculating the shop risk history over `range` would do, without\n * queuing it: its days, the first day whose counters are rebuilt, the model\n * it would score with now, and the run of the same range already recorded.\n * Refused exactly where `startRiskBackfill()` would be.\n *\n * `POST /admin-portal/risk-engine/backfill/preview`\n */\n async previewRiskBackfill(range: RiskBackfillRequest): Promise<RiskBackfillPreview> {\n return this.request('POST', '/admin-portal/risk-engine/backfill/preview', { body: range });\n }\n\n /**\n * Queue a recalculation of `range`. Days that already have a risk score keep\n * it, and recalculated days never alert. While the same range is queued or\n * running, nothing new is started and `enqueued` is `false`.\n *\n * `POST /admin-portal/risk-engine/backfill`\n */\n async startRiskBackfill(range: RiskBackfillRequest): Promise<RiskBackfillResponse> {\n return this.request('POST', '/admin-portal/risk-engine/backfill', { body: range });\n }\n\n /**\n * One recalculation by the `job_id` a preview or start returned.\n *\n * `GET /admin-portal/risk-engine/backfill/{job_id}`\n */\n async getRiskBackfill(jobId: string): Promise<RiskBackfillStatus> {\n return this.request('GET', `/admin-portal/risk-engine/backfill/${encodeURIComponent(jobId)}`);\n }\n\n /**\n * Where a merchant stands in the risk policy (`merchant_risk.policy`): the\n * policy in force, the stage, the conditions of the last evaluation with\n * their evidence, pending and past actions, exemptions and stage changes.\n *\n * `GET /admin-portal/accounts/{merchant_id}/risk/stage`\n */\n async getMerchantRiskStage(merchantId: string): Promise<MerchantRiskStageResponse> {\n return this.request('GET', `${adminAccount(merchantId)}/risk/stage`);\n }\n\n /**\n * Evaluate a merchant against its risk policy now, as the scoring pass\n * does, and answer where it stands afterwards. Needs `AccountManage`.\n *\n * `POST /admin-portal/accounts/{merchant_id}/risk/stage/evaluate`\n */\n async evaluateMerchantRiskStage(merchantId: string): Promise<MerchantRiskStageResponse> {\n return this.request('POST', `${adminAccount(merchantId)}/risk/stage/evaluate`, { body: {} });\n }\n\n /**\n * Apply a pending action that waits for an operator. An action already\n * decided, suppressed or expired is refused with `DE_19` (HTTP 409).\n *\n * `POST /admin-portal/accounts/{merchant_id}/risk/actions/{action_id}/confirm`\n */\n async confirmMerchantRiskAction(\n merchantId: string,\n actionId: string,\n params: MerchantRiskActionConfirmRequest = {},\n ): Promise<MerchantRiskActionResponse> {\n return this.request(\n 'POST',\n `${adminAccount(merchantId)}/risk/actions/${encodeURIComponent(actionId)}/confirm`,\n { body: params },\n );\n }\n\n /**\n * Dismiss a pending action with a reason; it never applies. An action\n * already decided is refused with `DE_19` (HTTP 409).\n *\n * `POST /admin-portal/accounts/{merchant_id}/risk/actions/{action_id}/dismiss`\n */\n async dismissMerchantRiskAction(\n merchantId: string,\n actionId: string,\n params: MerchantRiskActionDismissRequest,\n ): Promise<MerchantRiskActionResponse> {\n return this.request(\n 'POST',\n `${adminAccount(merchantId)}/risk/actions/${encodeURIComponent(actionId)}/dismiss`,\n { body: params },\n );\n }\n\n /**\n * Exempt a merchant from one action for one risk dimension, until\n * `expires_at` or for good. An exempted action is recorded as `suppressed`\n * with the exemption's id; the stage itself is still entered.\n *\n * `POST /admin-portal/accounts/{merchant_id}/risk/exemptions`\n */\n async createMerchantRiskExemption(\n merchantId: string,\n params: MerchantRiskExemptionCreateRequest,\n ): Promise<MerchantRiskExemptionResponse> {\n return this.request('POST', `${adminAccount(merchantId)}/risk/exemptions`, { body: params });\n }\n\n /**\n * End an exemption now, with a reason. It no longer suppresses anything\n * from the next evaluation on.\n *\n * `POST /admin-portal/accounts/{merchant_id}/risk/exemptions/{exemption_id}/revoke`\n */\n async revokeMerchantRiskExemption(\n merchantId: string,\n exemptionId: string,\n params: MerchantRiskExemptionRevokeRequest,\n ): Promise<MerchantRiskExemptionResponse> {\n return this.request(\n 'POST',\n `${adminAccount(merchantId)}/risk/exemptions/${encodeURIComponent(exemptionId)}/revoke`,\n { body: params },\n );\n }\n\n /**\n * Lift an applied `restrict_payments`, `hold_payouts` or `suspend` action\n * with a reason: what it blocked is allowed again, and nothing else\n * changes. The merchant stays in its stage and the action stays lifted for\n * the rest of that stage entry. An action that is not applied, not one of\n * those kinds, or already lifted is refused with `DE_19` (HTTP 409).\n *\n * `POST /admin-portal/accounts/{merchant_id}/risk/actions/{action_id}/lift`\n */\n async liftMerchantRiskAction(\n merchantId: string,\n actionId: string,\n params: MerchantRiskActionLiftRequest,\n ): Promise<MerchantRiskActionResponse> {\n return this.request(\n 'POST',\n `${adminAccount(merchantId)}/risk/actions/${encodeURIComponent(actionId)}/lift`,\n { body: params },\n );\n }\n\n /**\n * Stop new payments of one shop (`profile_id`), or of every shop of the\n * merchant, with a required reason. The stop is an\n * applied `restrict_payments` action of mode `operator`: payment create,\n * every confirm, the hosted checkout and its provider routes are refused\n * with `DE_22` before any provider is called. No template, connector\n * account, visibility, routing or stage change ends it; only\n * `liftMerchantRiskAction`, with a reason, does. A blank reason is\n * refused (HTTP 400), a shop of another merchant is not found (404), and a\n * scope an applied stop already covers is refused with `DE_19` (409).\n *\n * `POST /admin-portal/accounts/{merchant_id}/risk/stops`\n */\n async stopMerchantPayments(\n merchantId: string,\n params: MerchantRiskPaymentsStopRequest,\n ): Promise<MerchantRiskActionResponse> {\n return this.request('POST', `${adminAccount(merchantId)}/risk/stops`, { body: params });\n }\n\n /**\n * The payments and payouts a merchant's applied risk actions refused,\n * newest first; 50 unless `limit` (at most 200) says otherwise.\n *\n * `GET /admin-portal/accounts/{merchant_id}/risk/blocked-attempts`\n */\n async listMerchantRiskBlockedAttempts(\n merchantId: string,\n params?: MerchantRiskBlockedAttemptListParams,\n ): Promise<MerchantRiskBlockedAttemptList> {\n return this.request('GET', `${adminAccount(merchantId)}/risk/blocked-attempts`, {\n query: params === undefined ? undefined : { ...params },\n });\n }\n\n /**\n * Every merchant risk action kind and whether this platform can use it,\n * with its default mode, its scopes and what it blocks.\n *\n * `GET /admin-portal/risk/actions/catalog`\n */\n async getMerchantRiskActionCatalog(): Promise<MerchantRiskActionCatalogEntry[]> {\n return this.request('GET', '/admin-portal/risk/actions/catalog');\n }\n\n /**\n * Which merchants a risk policy, saved or not, would put in each stage now,\n * from their stored signals, and what each action would block there.\n * Writes nothing. A policy a settings write would refuse is refused the\n * same way (HTTP 422).\n *\n * `POST /admin-portal/risk/policy/preview`\n */\n async previewMerchantRiskPolicy(\n params: MerchantRiskPolicyPreviewRequest,\n ): Promise<MerchantRiskPolicyPreviewResponse> {\n return this.request('POST', '/admin-portal/risk/policy/preview', { body: params });\n }\n}\n\nfunction transactionListQuery(params?: AdminTransactionListParams): RequestOptions['query'] {\n if (!params) return undefined;\n const {\n statuses,\n connectors,\n payment_methods,\n payment_method_types,\n currencies,\n merchant_connector_ids,\n connector_settlement_statuses,\n routing_approaches,\n failure_substatuses,\n product_ids,\n buyer_risk_band,\n merchant_ids,\n ...query\n } = params;\n return {\n ...query,\n ...(statuses?.length ? { statuses: statuses.join(',') } : {}),\n ...(connectors?.length ? { connectors: connectors.join(',') } : {}),\n ...(payment_methods?.length ? { payment_methods: payment_methods.join(',') } : {}),\n ...(payment_method_types?.length\n ? { payment_method_types: payment_method_types.join(',') }\n : {}),\n ...(currencies?.length ? { currencies: currencies.join(',') } : {}),\n ...(merchant_connector_ids?.length\n ? { merchant_connector_ids: merchant_connector_ids.join(',') }\n : {}),\n ...(connector_settlement_statuses?.length\n ? { connector_settlement_statuses: connector_settlement_statuses.join(',') }\n : {}),\n ...(routing_approaches?.length ? { routing_approaches: routing_approaches.join(',') } : {}),\n ...(failure_substatuses?.length ? { failure_substatuses: failure_substatuses.join(',') } : {}),\n ...(product_ids?.length ? { product_ids: product_ids.join(',') } : {}),\n ...(buyer_risk_band?.length ? { buyer_risk_band: buyer_risk_band.join(',') } : {}),\n ...(merchant_ids?.length ? { merchant_ids: merchant_ids.join(',') } : {}),\n };\n}\n\ntype PersonQuery = Record<string, string | number | null | undefined>;\n\n/** The admin-portal prefix of one merchant's person routes. */\nfunction adminPersons(merchantId: string): string {\n return `/admin-portal/persons/${encodeURIComponent(merchantId)}`;\n}\n\n/** The admin-portal path of one person's staff flags. */\nfunction personFlags(merchantId: string, personId: string): string {\n return `${adminPersons(merchantId)}/${encodeURIComponent(personId)}/flags`;\n}\n\n/** The admin-portal prefix of one merchant's account routes. */\nfunction adminAccount(merchantId: string): string {\n return `/admin-portal/accounts/${encodeURIComponent(merchantId)}`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAiOO,IAAM,cAAN,MAAkB;AAAA,EAwEvB,YAA6B,SAAoB;AAApB;AAAA,EAAqB;AAAA;AAAA,EAtElD,MAAM,gBACJ,YACA,QAA2B,CAAC,GACG;AAC/B,WAAO,KAAK;AAAA,MACV;AAAA,MACA,0BAA0B,mBAAmB,UAAU,CAAC;AAAA,MACxD;AAAA,QACE,OAAO,EAAE,GAAG,MAAM;AAAA,MACpB;AAAA,IACF;AAAA,EACF;AAAA;AAAA,EAGA,MAAM,mBACJ,YACA,MACA,QAA2B,CAAC,GACG;AAC/B,WAAO,KAAK;AAAA,MACV;AAAA,MACA,0BAA0B,mBAAmB,UAAU,CAAC;AAAA,MACxD;AAAA,QACE,OAAO,EAAE,GAAG,MAAM;AAAA,Q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AAM,KAAA,EAAN,MAAW;AAAA,EAChB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlD,MAAM,QAAA,CAAS,OAAA,EAAgD;AAC7D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,OAAA,EAAS,OAAO,CAAA;AAAA,EAC7C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,YAAA,CAAa,SAAA,EAAmB,OAAA,EAA4C;AAChF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,YAAA,EAAe,kBAAA,CAAmB,SAAS,CAAC,CAAA,CAAA;AACzE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAY+B,EAAA;AAC6B,IAAA;AAC5D,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAc+B,EAAA;AAC0C,IAAA;AACzE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAW+B,EAAA;AACyB,IAAA;AACjD,MAAA;AAC0C,MAAA;AAC9C,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAasC,EAAA;AAC6B,IAAA;AAC5D,MAAA;AACiB,MAAA;AACrB,IAAA;AACH,EAAA;AACF;AAG8E;AACtD,EAAA;AACf,IAAA;AACa,MAAA;AACb,IAAA;AACmE,MAAA;AACnE,IAAA;AACgE,MAAA;AACvE,EAAA;AACF;ADxC4E;AACA;AACA;AACA;AACA","file":"/tmp/delopay-sdk-publish/dist/chunk-TMAJE5P2.cjs","sourcesContent":[null,"import type {\n MerchantRisk,\n RiskAdjustments,\n RiskTuningPreviewResponse,\n RiskTuningResponse,\n RiskTuningTarget,\n RiskTuningUpdateRequest,\n ShopRisk,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * Stored shop risk indexes, per connector.\n *\n * Both reads return snapshots and never score on demand, so `computed_at` is\n * the age of the answer rather than the time of the call.\n *\n * The caller's own scope is what bounds the answer, and it is enforced\n * server-side: a profile-scoped role, or an API key pinned to one shop, gets\n * that shop from both endpoints and cannot read or enumerate a sibling's.\n */\nexport class Risk {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Every shop's stored risk for the caller's merchant, with the worst band\n * across them.\n *\n * `GET /risk`\n */\n async retrieve(options?: RequestExtras): Promise<MerchantRisk> {\n return this.request('GET', '/risk', options);\n }\n\n /**\n * One shop's stored risk index per connector.\n *\n * `GET /risk/shops/{profileId}`\n */\n async retrieveShop(profileId: string, options?: RequestExtras): Promise<ShopRisk> {\n return this.request('GET', `/risk/shops/${encodeURIComponent(profileId)}`, options);\n }\n\n /**\n * One scope's tuning of the merchant's own, adjusted risk assessment: what\n * it sets, what applies there and where each part comes from, and DeloPay's\n * reference beside it. Needs the `RiskTuning` area's `Read` at that scope.\n *\n * `GET /risk/tuning`, `GET /risk/tuning/{projects|shops}/{id}`\n */\n async retrieveTuning(\n target: RiskTuningTarget = { scope: 'merchant' },\n options?: RequestExtras,\n ): Promise<RiskTuningResponse> {\n return this.request('GET', riskTuningPath(target), options);\n }\n\n /**\n * Replace one scope's tuning. A shop or project needs the area's `Edit`, the\n * merchant-wide tuning its `Write`. A save on top of a newer revision is\n * refused with `IR_16`; a tuning that would leave a reached shop with\n * nothing to score with is refused with `IR_06`.\n *\n * `PUT /risk/tuning`, `PUT /risk/tuning/{projects|shops}/{id}`\n */\n async updateTuning(\n target: RiskTuningTarget,\n params: RiskTuningUpdateRequest,\n options?: RequestExtras,\n ): Promise<RiskTuningResponse> {\n return this.request('PUT', riskTuningPath(target), { ...options, body: params });\n }\n\n /**\n * Hand every part of one scope's tuning back to what it inherits.\n *\n * `DELETE /risk/tuning?expected_revision=…`\n */\n async resetTuning(\n target: RiskTuningTarget,\n expectedRevision: number,\n options?: RequestExtras,\n ): Promise<RiskTuningResponse> {\n return this.request('DELETE', riskTuningPath(target), {\n ...options,\n query: { expected_revision: expectedRevision },\n });\n }\n\n /**\n * Estimate what a change would do to every shop it reaches, from the\n * evidence stored up to today. Stores, scores and sends nothing; a pair\n * with no usable evidence says why rather than showing a band.\n *\n * `POST /risk/tuning/preview`, `POST /risk/tuning/{projects|shops}/{id}/preview`\n */\n async previewTuning(\n target: RiskTuningTarget,\n adjustments: RiskAdjustments,\n options?: RequestExtras,\n ): Promise<RiskTuningPreviewResponse> {\n return this.request('POST', `${riskTuningPath(target)}/preview`, {\n ...options,\n body: { adjustments },\n });\n }\n}\n\n/** The tuning path below `prefix` that `target` names. */\nexport function riskTuningPath(target: RiskTuningTarget, prefix = ''): string {\n switch (target.scope) {\n case 'merchant':\n return `${prefix}/risk/tuning`;\n case 'project':\n return `${prefix}/risk/tuning/projects/${encodeURIComponent(target.id)}`;\n case 'shop':\n return `${prefix}/risk/tuning/shops/${encodeURIComponent(target.id)}`;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/tmp/delopay-sdk-publish/dist/chunk-TNIJ6OSH.cjs","../src/resources/projects.ts"],"names":[],"mappings":"AAAA;ACiBO,IAAM,SAAA,EAAN,MAAe;AAAA,EACpB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAoBlD,MAAM,MAAA,CAAO,MAAA,EAA8B,UAAA,EAA8C;AACvF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,WAAA,EAAa;AAAA,MACvC,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,EAAE,WAAA,EAAa,WAAW;AAAA,IACnC,CA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\n ProjectCreateRequest,\n ProjectResponse,\n ProjectUpdateRequest,\n ProjectStatsResponse,\n ProjectLimitsResponse,\n MerchantOverviewResponse,\n StatsPeriod,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * Create and manage projects — optional grouping layers that contain one or\n * more shops. Projects can be nested up to the merchant's maximum depth\n * ({@link Projects.limits}); a project filter anywhere in the API includes the\n * shops of the project's sub-projects.\n */\nexport class Projects {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Create a new project under a merchant account. Pass `parent_id` to create\n * it as a sub-project; past the merchant's maximum depth it is refused with\n * `400` and code `PR_01` (`project_depth_exceeded`).\n *\n * @param params - Project creation parameters (name, description, parent).\n * @param merchantId - The merchant account ID that owns this project.\n * @returns The created project.\n *\n * @example\n * ```typescript\n * const eu = await delopay.projects.create({ project_name: 'EU Stores' }, 'merch_123');\n * const de = await delopay.projects.create(\n * { project_name: 'Germany', parent_id: eu.id },\n * 'merch_123',\n * );\n * ```\n */\n async create(params: ProjectCreateRequest, merchantId: string): Promise<ProjectResponse> {\n return this.request('POST', '/projects', {\n body: params,\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Retrieve a project by its ID.\n *\n * @param projectId - The unique project ID.\n * @param merchantId - Optional merchant scope. When provided, sent as\n * `?merchant_id=…` — required by dashboards that authenticate with a JWT\n * spanning multiple merchants and need to disambiguate which one this\n * call applies to. API-key callers can omit it.\n * @returns The project.\n */\n async retrieve(projectId: string, merchantId?: string): Promise<ProjectResponse> {\n const path = `/projects/${encodeURIComponent(projectId)}`;\n if (merchantId === undefined) return this.request('GET', path);\n return this.request('GET', path, { query: { merchant_id: merchantId } });\n }\n\n /**\n * Update a project's details, or move it with `parent_id` (omitted keeps the\n * parent, `null` makes it a top-level project, an id moves it under that\n * project). A move is refused with `PR_01` when the moved subtree would\n * exceed the maximum depth and with `PR_02` (`project_cycle`) when the target\n * is the project itself or one of its sub-projects. When the merchant's\n * project tree changed while the move was being checked, it is refused with\n * `409` and code `PR_05` (`project_tree_changed`): read the tree again and\n * retry.\n *\n * @param projectId - The project ID to update.\n * @param params - Fields to update.\n * @param merchantId - Optional merchant scope. See {@link Projects.retrieve}.\n * @returns The updated project.\n */\n async update(\n projectId: string,\n params: ProjectUpdateRequest,\n merchantId?: string,\n options?: RequestExtras,\n ): Promise<ProjectResponse> {\n const path = `/projects/${encodeURIComponent(projectId)}`;\n if (merchantId === undefined) return this.request('PUT', path, { body: params, ...options });\n return this.request('PUT', path, {\n body: params,\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * Delete a project.\n *\n * @param projectId - The project ID to delete.\n * Refused with `409` and code `PR_03` (`project_not_empty`) while the\n * project still has sub-projects or shops; move or delete those first.\n *\n * @param merchantId - Optional merchant scope. See {@link Projects.retrieve}.\n * @returns The deleted project object.\n */\n async delete(projectId: string, merchantId?: string): Promise<ProjectResponse> {\n const path = `/projects/${encodeURIComponent(projectId)}`;\n if (merchantId === undefined) return this.request('DELETE', path);\n return this.request('DELETE', path, { query: { merchant_id: merchantId } });\n }\n\n /**\n * List all projects for a merchant, at every level, as a flat array. Rebuild\n * the tree from each project's `parent_id`; `level`, `path`,\n * `child_project_count` and `direct_shop_count` are filled in for each one.\n *\n * @param merchantId - The merchant account ID.\n * @returns Array of projects.\n */\n async list(merchantId: string): Promise<ProjectResponse[]> {\n return this.request('GET', '/projects/list', {\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Get aggregate payment statistics across all projects for a merchant.\n *\n * Each project's figures cover its whole subtree (its own shops and the\n * shops of its sub-projects); `projects[].direct` holds the figures for the\n * project's own shops only, and `projects[].shops[]` lists only those. The\n * merchant totals count each shop once.\n *\n * The response's flat `shops[]` array holds every shop, including shops that\n * belong to no project — those are absent from `projects[].shops[]`, so look\n * a single shop up in `shops[]`. Requires `MerchantAccountRead`; a\n * shop-scoped user should call {@link Shops.stats} instead.\n *\n * @param merchantId - The merchant account ID.\n * @param period - Window in days, or `'all'` for an all-time total.\n * Omitted means the server default of 30 days.\n * @returns Project statistics.\n *\n * @example\n * ```typescript\n * const stats = await delopay.projects.stats('merch_123', 'all');\n * const shop = stats.shops.find((s) => s.shop_id === 'pro_1');\n * ```\n */\n async stats(merchantId: string, period?: StatsPeriod): Promise<ProjectStatsResponse> {\n const query: Record<string, string> = { merchant_id: merchantId };\n if (period !== undefined) query['period'] = String(period);\n return this.request('GET', '/projects/stats', { query });\n }\n\n /**\n * Get the project-depth limit that applies to a merchant: the maximum number\n * of project levels, where that limit comes from, and how deep the\n * merchant's tree currently is. Use it to tell whether a project can take a\n * sub-project (`project.level < max_depth`) before offering the action.\n *\n * @param merchantId - The merchant account ID.\n * @returns The merchant's project limits.\n *\n * @example\n * ```typescript\n * const { max_depth } = await delopay.projects.limits('merch_123');\n * const canNest = project.level < max_depth;\n * ```\n */\n async limits(merchantId: string): Promise<ProjectLimitsResponse> {\n return this.request('GET', '/projects/limits', {\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Get a high-level overview (volume, counts, top connectors) for a merchant.\n *\n * @param merchantId - The merchant account ID.\n * @returns Merchant overview data.\n */\n async overview(merchantId: string): Promise<MerchantOverviewResponse> {\n return this.request('GET', '/projects/overview', {\n query: { merchant_id: merchantId },\n });\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/tmp/delopay-sdk-publish/dist/chunk-UGSM7RJ2.cjs","../src/resources/stripeConnect.ts"],"names":[],"mappings":"AAAA;ACQO,IAAM,cAAA,EAAN,MAAoB;AAAA,EACzB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,aAAA,CAAc,MAAA,EAA4E;AAC9F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,uCAAA,EAAyC,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACvF;AAAA,EAEA,MAAM,iBAAA,CAAkB,MAAA,EAAsE;AAC5F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,4CAAA,EAA8C,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC5F;AAAA;AAAA;AAAA,EAKA,MAAM,YAAA,CAAa,MAAA,EAAmE;AACpF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,kCAAA,EAAoC,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAClF;AAAA;AAAA,EAGA,MAAM,cAAA,CAAe,MAAA,EAAmE;AACtF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,4BAAA,EAA8B,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC5E;AAAA;AAAA,EAGA,MAAM,eAAA,CAAgB,MAAA,EAAmE;AACvF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,yCAAA,EAA2C,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACzF;AACF,CAAA;ADVA;AACA;AACE;AACF,sCAAC","file":"/tmp/delopay-sdk-publish/dist/chunk-UGSM7RJ2.cjs","sourcesContent":[null,"import type {\n StripeConnectAccountRequest,\n StripeConnectAccountResponse,\n StripeConnectLinkRequest,\n StripeConnectLinkResponse,\n} from '../types';\nimport type { RequestFn } from '../client';\n\nexport class StripeConnect {\n constructor(private readonly request: RequestFn) {}\n\n async createAccount(params: StripeConnectAccountRequest): Promise<StripeConnectAccountResponse> {\n return this.request('POST', '/connector-onboarding/stripe/accounts', { body: params });\n }\n\n async createAccountLink(params: StripeConnectLinkRequest): Promise<StripeConnectLinkResponse> {\n return this.request('POST', '/connector-onboarding/stripe/account-links', { body: params });\n }\n\n // --- Generic connector onboarding (Task 4.11) ---\n\n /** Get onboarding action URL. `POST /connector-onboarding/action-url` */\n async getActionUrl(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/connector-onboarding/action-url', { body: params });\n }\n\n /** Sync onboarding status. `POST /connector-onboarding/sync` */\n async syncOnboarding(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/connector-onboarding/sync', { body: params });\n }\n\n /** Reset tracking ID. `POST /connector-onboarding/reset-tracking-id` */\n async resetTrackingId(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/connector-onboarding/reset-tracking-id', { body: params });\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/anes/delo-payment/_worktrees/ts-publish-w3/dist/chunk-UKLZAOLW.cjs","../src/resources/checkoutMethods.ts"],"names":[],"mappings":"AAAA;AC8BO,IAAM,gBAAA,EAAN,MAAsB;AAAA,EAC3B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASlD,MAAM,QAAA,CACJ,UAAA,EACA,SAAA,EACA,OAAA,EAA2C,CAAC,CAAA,EAC5C,OAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,WAAA,CAAY,SAAA,EAAW,MAAA,CAAO,WAAW,CAAA,EAAG;AAAA,MACrE,KAAA,EAAO,EAAE,WAAA,EAAa,WAAW,CAAA;AAAA,MACjC,GAAG;AAAA,IACL,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,OAAA,CACJ,UAAA,EACA,SAAA,EACA,OAAA,EAA2C,CAAC,CAAA,EAC5C,OAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,EAAA;AACH,MAAA;AACnB,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYE,E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A;AAAA;AAAA;AAUE,EAAA;AAK2B,IAAA;AACH,MAAA;AACtB,MAAA;AACD,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQE,EAAA;AAIoB,IAAA;AACI,MAAA;AACvB,IAAA;AACH,EAAA;AACF;AAEwC;AACzB,EAAA;AACU,EAAA;AACzB;AAEwC;AACzB,EAAA;AACU,EAAA;AACzB;ADpGgC;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/ts-publish-w3/dist/chunk-UKLZAOLW.cjs","sourcesContent":[null,"import type {\n CheckoutAccountVisibilityRequest,\n CheckoutAccountVisibilityResponse,\n CheckoutEntriesResponse,\n CheckoutEntriesUpdateRequest,\n CheckoutMethodsAvailabilityParams,\n CheckoutMethodsAvailabilityResponse,\n CheckoutMethodsChildrenParams,\n CheckoutMethodsChildrenResponse,\n CheckoutMethodsEnvironmentParams,\n CheckoutMethodsResetResponse,\n CheckoutMethodsResponse,\n CheckoutMethodsUpdateRequest,\n ConnectorCoverageResponse,\n CheckoutPaymentMethodOptionsResponse,\n CheckoutRedirectRulesTestRequest,\n CheckoutRedirectRulesTestResponse,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * A shop's payment-method layout for the hosted checkout: the express strip,\n * the main list, the \"other payment methods\" list, and each item's overrides\n * (text, translations, icon, look, open target, visibility). One document per\n * shop (business profile), owned by the shop rather than by each connector\n * account. Until a shop saves one, the router derives a layout from the\n * shop's connector accounts and reports `source: 'derived'`.\n *\n * Dashboard JWT (`CheckoutMethods` read / write) or an admin key.\n */\nexport class CheckoutMethods {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The shop's layout (stored, or derived from its accounts) and every item\n * it may place. Live's by default; `environment: 'test'` reads the Test\n * checkout's, used by payments with `test_mode: true`, which follows Live's\n * (`follows_live`) until its first save.\n * `GET /checkout-methods/{profile_id}` (`/test`)\n */\n async retrieve(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('GET', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * The same document as {@link retrieve}, on the route that stays open to a\n * reader of the checkout's appearance while the role's payment-data\n * visibility is restricted.\n * `GET /checkout-methods/{profile_id}/preview` (`/test/preview`)\n */\n async preview(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('GET', `${methodsPath(profileId, params.environment)}/preview`, {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * Replace the layout of one environment. The router refuses an express\n * item that does not draw its own button, more than two rows of two in the\n * express strip, a title without text, or an item no account of the shop\n * offers. Pass `options.headers` with the `If-Match` of the version read to\n * have a save over a newer change refused.\n * `PUT /checkout-methods/{profile_id}` (`/test`)\n */\n async update(\n merchantId: string,\n profileId: string,\n body: CheckoutMethodsUpdateRequest,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('PUT', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n body,\n ...options,\n });\n }\n\n /**\n * For a buyer in `country` paying `amount` `currency`: which placeable\n * items they are offered and every reason they are not, asked the way the\n * hosted checkout asks; and how each smart block of the layout evaluates\n * for them (`smart_blocks`). `test_mode` asks the Test environment.\n * `GET /checkout-methods/{profile_id}/availability`\n */\n async availability(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsAvailabilityParams,\n ): Promise<CheckoutMethodsAvailabilityResponse> {\n const { test_mode, ...order } = params;\n const query = { merchant_id: merchantId, ...order };\n if (test_mode) {\n return this.request(\n 'GET',\n `/checkout-methods/${encodeURIComponent(profileId)}/test/availability`,\n { query },\n );\n }\n return this.request('GET', `/checkout-methods/${encodeURIComponent(profileId)}/availability`, {\n query,\n });\n }\n\n /**\n * What DeloPay's connector information says about a country, for any shop:\n * each provider's method, and whether the provider's list of countries names\n * it. A method with no list is `unknown`, which is no statement either way.\n * Nothing here comes from a merchant's accounts, and it is no promise about\n * what a shop's checkout offers. A role that may not read provider names gets\n * none. `GET /checkout-methods/coverage`\n *\n * @param country The buyer's country, ISO 3166-1 alpha-2.\n */\n async coverage(country: string): Promise<ConnectorCoverageResponse> {\n return this.request('GET', '/checkout-methods/coverage', { query: { country } });\n }\n\n /**\n * What DeloPay confirms beneath each item the shop can place: the card\n * networks the card form's accounts accept, and the methods or coins a\n * provider's page offers, per account, with source and freshness. A\n * provider that answers only per order reports `context_required` until\n * `currency` and `amount` are given. A layout item's `children` narrows\n * these lists and never adds to them.\n * `GET /checkout-methods/{profile_id}/children` (`/test/children` for Test)\n */\n async children(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsChildrenParams = {},\n ): Promise<CheckoutMethodsChildrenResponse> {\n const { environment, ...order } = params;\n const query = { merchant_id: merchantId, ...order };\n if (environment === 'test') {\n return this.request(\n 'GET',\n `/checkout-methods/${encodeURIComponent(profileId)}/test/children`,\n {\n query,\n },\n );\n }\n return this.request('GET', `/checkout-methods/${encodeURIComponent(profileId)}/children`, {\n query,\n });\n }\n\n /**\n * Delete the stored layout of one environment; Live is back on the derived\n * layout, Test follows Live again.\n * `DELETE /checkout-methods/{profile_id}` (`/test`)\n */\n async reset(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResetResponse> {\n return this.request('DELETE', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * The methods a payment of the shop can be limited to through\n * `allowed_payment_method_types`, in the order its checkout places them, for\n * one environment. Names methods only, never a processor or account.\n * `GET /checkout-methods/{profile_id}/payment-method-options` (`/test/…`)\n */\n async paymentMethodOptions(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutPaymentMethodOptionsResponse> {\n return this.request(\n 'GET',\n `${methodsPath(profileId, params.environment)}/payment-method-options`,\n { query: { merchant_id: merchantId }, ...options },\n );\n }\n\n /**\n * What the given redirect rules, saved or not, decide for the buyer the\n * body describes, and how each rule fared. The buyer's options are the\n * shop's layout after its availability rules and the cap states; nothing is\n * stored. Live's checkout by default, `environment: 'test'` for the Test\n * checkout's. Refused with 422 when the rules are malformed or name an\n * account that is not the shop's, and with 403 when they name one the\n * caller may not read.\n * `POST /checkout-methods/{profile_id}/redirect-rules/test` (`/test/…`)\n */\n async testRedirectRules(\n merchantId: string,\n profileId: string,\n body: CheckoutRedirectRulesTestRequest,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutRedirectRulesTestResponse> {\n return this.request(\n 'POST',\n `${methodsPath(profileId, params.environment)}/redirect-rules/test`,\n { query: { merchant_id: merchantId }, body, ...options },\n );\n }\n\n /**\n * Hide a connector account from the checkout of the named environments, or\n * show it again. Its items stay in the layout, listed with\n * `account_enabled: false`; routing and credentials are not changed.\n * `PUT /checkout-methods/{profile_id}/accounts/{merchant_connector_id}/visibility`\n */\n async setAccountVisibility(\n merchantId: string,\n profileId: string,\n merchantConnectorId: string,\n body: CheckoutAccountVisibilityRequest,\n options?: RequestExtras,\n ): Promise<CheckoutAccountVisibilityResponse> {\n return this.request(\n 'PUT',\n `/checkout-methods/${encodeURIComponent(profileId)}/accounts/${encodeURIComponent(merchantConnectorId)}/visibility`,\n { query: { merchant_id: merchantId }, body, ...options },\n );\n }\n\n /**\n * The shop's checkout entries: separate ways into the hosted checkout of\n * one payment (`?entry=<key>`), such as a card form embedded in the shop's\n * page, a \"Pay with crypto\" checkout and an \"Other payment methods\"\n * checkout, each in its own named look. Live's by default; `environment:\n * 'test'` reads the Test checkout's, used by payments with `test_mode: true`.\n * Refused (403) to a caller that may not see or change every method.\n * `GET /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async entries(\n merchantId: string,\n profileId: string,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('GET', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Replace the shop's entries of one environment. Refused when a key is\n * malformed or used twice, when an entry lists a method, group or card form\n * that environment's layout does not place, or when a card entry's\n * `other_entry` is not another `methods` entry.\n * `PUT /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async updateEntries(\n merchantId: string,\n profileId: string,\n body: CheckoutEntriesUpdateRequest,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('PUT', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n body,\n });\n }\n\n /**\n * Delete every entry of one environment. A link that still names an entry\n * then offers nothing.\n * `DELETE /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async clearEntries(\n merchantId: string,\n profileId: string,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('DELETE', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n });\n }\n}\n\nfunction methodsPath(profileId: string, environment: 'live' | 'test' | undefined): string {\n const shop = `/checkout-methods/${encodeURIComponent(profileId)}`;\n return environment === 'test' ? `${shop}/test` : shop;\n}\n\nfunction entriesPath(profileId: string, environment: 'live' | 'test' | undefined): string {\n const shop = `/checkout-methods/${encodeURIComponent(profileId)}`;\n return environment === 'test' ? `${shop}/test/entries` : `${shop}/entries`;\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["/tmp/delopay-sdk-publish/dist/chunk-UKLZAOLW.cjs","../src/resources/checkoutMethods.ts"],"names":[],"mappings":"AAAA;AC8BO,IAAM,gBAAA,EAAN,MAAsB;AAAA,EAC3B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASlD,MA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AA;AAAA;AASE,EAAA;AAIoB,IAAA;AACI,MAAA;AACnB,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASE,EAAA;AAKY,IAAA;AACV,MAAA;AAC0B,MAAA;AACF,MAAA;AAC1B,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaE,EAAA;AAMY,IAAA;AACV,MAAA;AAC0B,MAAA;AACF,MAAA;AAC1B,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASE,EAAA;AAMY,IAAA;AACV,MAAA;AACqB,MAAA;AACG,MAAA;AAC1B,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaE,EAAA;AAG2B,IAAA;AACH,MAAA;AACvB,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUE,EAAA;AAK2B,IAAA;AACH,MAAA;AACtB,MAAA;AACD,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQE,EAAA;AAIoB,IAAA;AACI,MAAA;AACvB,IAAA;AACH,EAAA;AACF;AAEwC;AACzB,EAAA;AACU,EAAA;AACzB;AAEwC;AACzB,EAAA;AACU,EAAA;AACzB;ADpGgC;AACA;AACA;AACA","file":"/tmp/delopay-sdk-publish/dist/chunk-UKLZAOLW.cjs","sourcesContent":[null,"import type {\n CheckoutAccountVisibilityRequest,\n CheckoutAccountVisibilityResponse,\n CheckoutEntriesResponse,\n CheckoutEntriesUpdateRequest,\n CheckoutMethodsAvailabilityParams,\n CheckoutMethodsAvailabilityResponse,\n CheckoutMethodsChildrenParams,\n CheckoutMethodsChildrenResponse,\n CheckoutMethodsEnvironmentParams,\n CheckoutMethodsResetResponse,\n CheckoutMethodsResponse,\n CheckoutMethodsUpdateRequest,\n ConnectorCoverageResponse,\n CheckoutPaymentMethodOptionsResponse,\n CheckoutRedirectRulesTestRequest,\n CheckoutRedirectRulesTestResponse,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * A shop's payment-method layout for the hosted checkout: the express strip,\n * the main list, the \"other payment methods\" list, and each item's overrides\n * (text, translations, icon, look, open target, visibility). One document per\n * shop (business profile), owned by the shop rather than by each connector\n * account. Until a shop saves one, the router derives a layout from the\n * shop's connector accounts and reports `source: 'derived'`.\n *\n * Dashboard JWT (`CheckoutMethods` read / write) or an admin key.\n */\nexport class CheckoutMethods {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The shop's layout (stored, or derived from its accounts) and every item\n * it may place. Live's by default; `environment: 'test'` reads the Test\n * checkout's, used by payments with `test_mode: true`, which follows Live's\n * (`follows_live`) until its first save.\n * `GET /checkout-methods/{profile_id}` (`/test`)\n */\n async retrieve(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('GET', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * The same document as {@link retrieve}, on the route that stays open to a\n * reader of the checkout's appearance while the role's payment-data\n * visibility is restricted.\n * `GET /checkout-methods/{profile_id}/preview` (`/test/preview`)\n */\n async preview(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('GET', `${methodsPath(profileId, params.environment)}/preview`, {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * Replace the layout of one environment. The router refuses an express\n * item that does not draw its own button, more than two rows of two in the\n * express strip, a title without text, or an item no account of the shop\n * offers. Pass `options.headers` with the `If-Match` of the version read to\n * have a save over a newer change refused.\n * `PUT /checkout-methods/{profile_id}` (`/test`)\n */\n async update(\n merchantId: string,\n profileId: string,\n body: CheckoutMethodsUpdateRequest,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('PUT', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n body,\n ...options,\n });\n }\n\n /**\n * For a buyer in `country` paying `amount` `currency`: which placeable\n * items they are offered and every reason they are not, asked the way the\n * hosted checkout asks; and how each smart block of the layout evaluates\n * for them (`smart_blocks`). `test_mode` asks the Test environment.\n * `GET /checkout-methods/{profile_id}/availability`\n */\n async availability(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsAvailabilityParams,\n ): Promise<CheckoutMethodsAvailabilityResponse> {\n const { test_mode, ...order } = params;\n const query = { merchant_id: merchantId, ...order };\n if (test_mode) {\n return this.request(\n 'GET',\n `/checkout-methods/${encodeURIComponent(profileId)}/test/availability`,\n { query },\n );\n }\n return this.request('GET', `/checkout-methods/${encodeURIComponent(profileId)}/availability`, {\n query,\n });\n }\n\n /**\n * What DeloPay's connector information says about a country, for any shop:\n * each provider's method, and whether the provider's list of countries names\n * it. A method with no list is `unknown`, which is no statement either way.\n * Nothing here comes from a merchant's accounts, and it is no promise about\n * what a shop's checkout offers. A role that may not read provider names gets\n * none. `GET /checkout-methods/coverage`\n *\n * @param country The buyer's country, ISO 3166-1 alpha-2.\n */\n async coverage(country: string): Promise<ConnectorCoverageResponse> {\n return this.request('GET', '/checkout-methods/coverage', { query: { country } });\n }\n\n /**\n * What DeloPay confirms beneath each item the shop can place: the card\n * networks the card form's accounts accept, and the methods or coins a\n * provider's page offers, per account, with source and freshness. A\n * provider that answers only per order reports `context_required` until\n * `currency` and `amount` are given. A layout item's `children` narrows\n * these lists and never adds to them.\n * `GET /checkout-methods/{profile_id}/children` (`/test/children` for Test)\n */\n async children(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsChildrenParams = {},\n ): Promise<CheckoutMethodsChildrenResponse> {\n const { environment, ...order } = params;\n const query = { merchant_id: merchantId, ...order };\n if (environment === 'test') {\n return this.request(\n 'GET',\n `/checkout-methods/${encodeURIComponent(profileId)}/test/children`,\n {\n query,\n },\n );\n }\n return this.request('GET', `/checkout-methods/${encodeURIComponent(profileId)}/children`, {\n query,\n });\n }\n\n /**\n * Delete the stored layout of one environment; Live is back on the derived\n * layout, Test follows Live again.\n * `DELETE /checkout-methods/{profile_id}` (`/test`)\n */\n async reset(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResetResponse> {\n return this.request('DELETE', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * The methods a payment of the shop can be limited to through\n * `allowed_payment_method_types`, in the order its checkout places them, for\n * one environment. Names methods only, never a processor or account.\n * `GET /checkout-methods/{profile_id}/payment-method-options` (`/test/…`)\n */\n async paymentMethodOptions(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutPaymentMethodOptionsResponse> {\n return this.request(\n 'GET',\n `${methodsPath(profileId, params.environment)}/payment-method-options`,\n { query: { merchant_id: merchantId }, ...options },\n );\n }\n\n /**\n * What the given redirect rules, saved or not, decide for the buyer the\n * body describes, and how each rule fared. The buyer's options are the\n * shop's layout after its availability rules and the cap states; nothing is\n * stored. Live's checkout by default, `environment: 'test'` for the Test\n * checkout's. Refused with 422 when the rules are malformed or name an\n * account that is not the shop's, and with 403 when they name one the\n * caller may not read.\n * `POST /checkout-methods/{profile_id}/redirect-rules/test` (`/test/…`)\n */\n async testRedirectRules(\n merchantId: string,\n profileId: string,\n body: CheckoutRedirectRulesTestRequest,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutRedirectRulesTestResponse> {\n return this.request(\n 'POST',\n `${methodsPath(profileId, params.environment)}/redirect-rules/test`,\n { query: { merchant_id: merchantId }, body, ...options },\n );\n }\n\n /**\n * Hide a connector account from the checkout of the named environments, or\n * show it again. Its items stay in the layout, listed with\n * `account_enabled: false`; routing and credentials are not changed.\n * `PUT /checkout-methods/{profile_id}/accounts/{merchant_connector_id}/visibility`\n */\n async setAccountVisibility(\n merchantId: string,\n profileId: string,\n merchantConnectorId: string,\n body: CheckoutAccountVisibilityRequest,\n options?: RequestExtras,\n ): Promise<CheckoutAccountVisibilityResponse> {\n return this.request(\n 'PUT',\n `/checkout-methods/${encodeURIComponent(profileId)}/accounts/${encodeURIComponent(merchantConnectorId)}/visibility`,\n { query: { merchant_id: merchantId }, body, ...options },\n );\n }\n\n /**\n * The shop's checkout entries: separate ways into the hosted checkout of\n * one payment (`?entry=<key>`), such as a card form embedded in the shop's\n * page, a \"Pay with crypto\" checkout and an \"Other payment methods\"\n * checkout, each in its own named look. Live's by default; `environment:\n * 'test'` reads the Test checkout's, used by payments with `test_mode: true`.\n * Refused (403) to a caller that may not see or change every method.\n * `GET /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async entries(\n merchantId: string,\n profileId: string,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('GET', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Replace the shop's entries of one environment. Refused when a key is\n * malformed or used twice, when an entry lists a method, group or card form\n * that environment's layout does not place, or when a card entry's\n * `other_entry` is not another `methods` entry.\n * `PUT /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async updateEntries(\n merchantId: string,\n profileId: string,\n body: CheckoutEntriesUpdateRequest,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('PUT', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n body,\n });\n }\n\n /**\n * Delete every entry of one environment. A link that still names an entry\n * then offers nothing.\n * `DELETE /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async clearEntries(\n merchantId: string,\n profileId: string,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('DELETE', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n });\n }\n}\n\nfunction methodsPath(profileId: string, environment: 'live' | 'test' | undefined): string {\n const shop = `/checkout-methods/${encodeURIComponent(profileId)}`;\n return environment === 'test' ? `${shop}/test` : shop;\n}\n\nfunction entriesPath(profileId: string, environment: 'live' | 'test' | undefined): string {\n const shop = `/checkout-methods/${encodeURIComponent(profileId)}`;\n return environment === 'test' ? `${shop}/test/entries` : `${shop}/entries`;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/tmp/delopay-sdk-publish/dist/chunk-V47G7P6L.cjs","../src/listQuery.ts"],"names":[],"mappings":"AAAA;ACSO,SAAS,QAAA,CACd,MAAA,EACA,OAAA,EACyB;AACzB,EAAA,GAAA,CAAI,CAAC,MAAA,EAAQ,OAAO,KAAA,CAAA;AACpB,EAAA,MAAM,OAAA,EAA4B,OAAA;AAClC,EAAA,MAAM,MAAA,EAAiC,CAAC,CAAA;AACxC,EAAA,IAAA,CAAA,MAAW,CAAC,GAAA,EAAK,KAAK,EAAA,GAAK,MAAA,CAAO,OAAA,CAAQ,MAAM,CAAA,EAAG;AACjD,IAAA,GAAA,CAAI,CAAC,MAAA,CAAO,QAAA,CAAS,GAAG,EAAA,GAAK,CAAC,KAAA,CAAM,OAAA,CAAQ,KAAK,CAAA,EAAG;AAClD,MAAA,KAAA,CAAM,GAAG,EAAA,EAAI,KAAA;AAAA,IACf,EAAA,KAAA,GAAA,CAAW,KAAA,CAAM,OAAA,EAAS,CAAA,EAAG;AAC3B,MAAA,KAAA,CAAM,GAAG,EAAA,EAAI,KAAA,CAAM,IAAA,CAAK,GAAG,CAAA;AAAA,IAC7B;AAAA,EACF;AACA,EAAA,OAAO,KAAA;AACT;ADVA;AACA;AACE;AACF,4BAAC","file":"/tmp/delopay-sdk-publish/dist/chunk-V47G7P6L.cjs","sourcesContent":[null,"import type { RequestOptions } from './client';\n\n/**\n * The query of a list whose multi-value filters travel as one comma-separated\n * value (`status=open,closed`), not as the transport's repeated keys. Each key\n * in `csvKeys` that holds an array is joined with `,`; an empty array is\n * dropped, so it filters nothing. A single value passes through unchanged, and\n * every other key is copied as it is.\n */\nexport function csvQuery<T extends object>(\n params: T | undefined,\n csvKeys: readonly (keyof T & string)[],\n): RequestOptions['query'] {\n if (!params) return undefined;\n const joined: readonly string[] = csvKeys;\n const query: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(params)) {\n if (!joined.includes(key) || !Array.isArray(value)) {\n query[key] = value;\n } else if (value.length > 0) {\n query[key] = value.join(',');\n }\n }\n return query as RequestOptions['query'];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/tmp/delopay-sdk-publish/dist/chunk-VH5A6SMU.cjs","../src/resources/paypalDisputes.ts"],"names":[],"mappings":"AAAA;ACiBO,IAAM,eAAA,EAAN,MAAqB;AAAA,EAC1B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAClD,OAAA,CAAQ,MAAA,EAAgB,OAAA,EAAS,CAAA,EAAyC;AACxE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,uBAAA,EAA0B,kBAAA,CAAmB,MAAM,CAAC,CAAA,QAAA,CAAA,EAAY;AAAA,MACzF,KAAA,EAAO,EAAE,OAAO;AAAA,IAClB,CAAC,CAAA;AAAA,EACH;AAAA,EACA,QAAA,CAAS,MAAA,EAAgB,WAAA,EAAqD;AAC5E,IAAA,MAAM,KAAA,EAAqC,EAAE,YAAA,EAAc,YAAY,CAAA;AACvE,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,MACV,MAAA;AAAA,MACA,CAAA,uBAAA,EAA0B,kBAAA,CAAmB,MAAM,CAAC,CAAA,mBAAA,CAAA;AAAA,MACpD,EAAE,KAAK;AAAA,IACT,CAAA;AAAA,EACF;AAAA,EACA,IAAA,CAAK,MAAA,EAAiE;AACpE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,wBAAA,EAA0B;AAAA,MACnD,KAAA,EAAO;AAAA,IACT,CAAC,CAAA;AAAA,EACH;AAAA,EACA,QAAA,CAAS,MAAA,EAAgB,UAAA,EAAY,KAAA,EAAmC;AACtE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,uBAAA,EAA0B,kBAAA,CAAmB,MAAM,CAAC,CAAA,CAAA;AAC9C,MAAA;AAChC,IAAA;AACH,EAAA;AACkE,EAAA;AACe,IAAA;AAC7D,MAAA;AACjB,IAAA;AACH,EAAA;AACiF,EAAA;AACR,IAAA;AACzE,EAAA;AAAA;AAAA;AAAA;AAI8F,EAAA;AACZ,IAAA;AACxE,MAAA;AACP,IAAA;AACH,EAAA;AACF;ADboF;AACA;AACA;AACA","file":"/tmp/delopay-sdk-publish/dist/chunk-VH5A6SMU.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\nimport type {\n PaypalDisputeCase,\n PaypalDisputeListRequest,\n PaypalDisputeImportRequest,\n PaypalDisputeImportResponse,\n PaypalDisputeActionRequest,\n PaypalDisputeActionResponse,\n PaypalDisputeActionRecord,\n PaypalDisputeDocument,\n PaypalDisputeDownloadRequest,\n} from '../types';\n\n/**\n * PayPal seller cases, including external and subscription sales.\n * Every operation honors the caller's connector-account grants.\n */\nexport class PaypalDisputes {\n constructor(private readonly request: RequestFn) {}\n actions(caseId: string, offset = 0): Promise<PaypalDisputeActionRecord[]> {\n return this.request('GET', `/disputes/paypal/cases/${encodeURIComponent(caseId)}/actions`, {\n query: { offset },\n });\n }\n download(caseId: string, documentUrl: string): Promise<PaypalDisputeDocument> {\n const body: PaypalDisputeDownloadRequest = { document_url: documentUrl };\n return this.request(\n 'POST',\n `/disputes/paypal/cases/${encodeURIComponent(caseId)}/documents/download`,\n { body },\n );\n }\n list(params?: PaypalDisputeListRequest): Promise<PaypalDisputeCase[]> {\n return this.request('GET', '/disputes/paypal/cases', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n retrieve(caseId: string, forceSync = false): Promise<PaypalDisputeCase> {\n return this.request('GET', `/disputes/paypal/cases/${encodeURIComponent(caseId)}`, {\n query: { force_sync: forceSync },\n });\n }\n history(caseId: string, offset = 0): Promise<PaypalDisputeCase[]> {\n return this.request('GET', `/disputes/paypal/cases/${encodeURIComponent(caseId)}/history`, {\n query: { offset },\n });\n }\n import(params: PaypalDisputeImportRequest): Promise<PaypalDisputeImportResponse> {\n return this.request('POST', '/disputes/paypal/import', { body: params });\n }\n /** The backend checks current provider permissions and deduplicates request_id.\n * An unknown result requires reconciliation, not a new request ID.\n */\n act(caseId: string, params: PaypalDisputeActionRequest): Promise<PaypalDisputeActionResponse> {\n return this.request('POST', `/disputes/paypal/cases/${encodeURIComponent(caseId)}/actions`, {\n body: params,\n });\n }\n}\n"]}
|