@delopay/sdk 0.82.0 → 0.85.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.
@@ -1,5 +1,5 @@
1
- import { ProjectResponse, ShopResponse, PaymentResponse, RequestFn, AuthResponse, SignUpWithMerchantIdRequest, PaymentAttemptsListResponse, PaymentStatusHistoryResponse, RefundListResponse, AnalyticsScopeRequest, AnalyticsScopeResponse, MerchantAccountResponse, MerchantAccountUpdateRequest, ProfileResponse, BillingProfileResponse, PlatformFeeRuleInput, PlatformFeeRuleRecord, FeeRulePreviewRequest, FeeRulePreviewResponse, FeeScheduleCreateRequest, FeeScheduleResponse, FeeScheduleUpdateRequest, Delopay } from './index.js';
2
- export { ALL_CUSTOM_FIELD_CONDITION_SOURCES, ALL_CUSTOM_FIELD_OPERATORS, ALL_CUSTOM_FIELD_TYPES, AddUserRequest, AddUserResponse, Address, AddressDetails, AllocationListResponse, AllocationResponse, AllocationTransferRequest, AllocationTransferResponse, AmountRange, Analytics, AnalyticsChild, AnalyticsConnectorDay, AnalyticsConnectorSeries, AnalyticsDashboard, AnalyticsDayBucket, AnalyticsMethodSlice, ApiKeyCreateRequest, ApiKeyCreateResponse, ApiKeyExpiration, ApiKeyListConstraints, ApiKeyResponse, ApiKeyRevokeResponse, ApiKeyUpdateRequest, ApplePayVerificationRequest, ApplePayVerificationResponse, ApplePayVerifiedDomainsResponse, AttemptStatus, AuthenticationCreateRequest, AuthenticationResponse, AuthenticationStatus, AuthenticationType, AutoRechargeConfig, AutoRechargeUpdateRequest, AvailabilityOverrideCreateRequest, AvailabilityOverrideResponse, AvailabilityOverrides, AvailabilityPreviewMethod, AvailabilityPreviewParams, AvailabilityPreviewResponse, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, BankCodeResponse, BankDebitTypes, BankTransferTypes, BillingCompleteSetupRequest, BillingSetupRequest, BillingSetupResponse, BlockedAttempt, BlockedAttemptListParams, BlockedAttemptListResponse, BlocklistAddRequest, BlocklistDataKind, BlocklistResponse, BrandingExport, BrandingSource, BuiltInRegionGroupResponse, BusinessPaymentLinkConfig, CHECKBOX_CHECKED, CHECKBOX_UNCHECKED, CHECKOUT_EVENT_KINDS, CUSTOM_CSS_MAX_LENGTH, CUSTOM_FIELDS_MAX, CUSTOM_FIELD_CONDITIONS_MAX, CUSTOM_FIELD_KEY_PATTERN, CUSTOM_FIELD_OPERATORS_BY_SOURCE, CUSTOM_FIELD_VALUELESS_OPERATORS, CancelSubscriptionRequest, CancelSubscriptionResponse, CaptureMethod, CardDetail, CardDetailFromLocker, CardNetworkTypes, Cards, ChangePasswordRequest, CheckoutBranding, CheckoutCustomField, CheckoutEventKind, ConditionNode, ConfirmSubscriptionPaymentDetails, ConfirmSubscriptionRequest, ConfirmSubscriptionResponse, Connector, ConnectorCloneRequest, ConnectorCreateRequest, ConnectorListResponse, ConnectorResponse, ConnectorSelection, ConnectorType, ConnectorUpdateRequest, ConnectorVolumeSplit, ConnectorWebhookEntry, ConnectorWebhookEventType, ConnectorWebhookListResponse, ConnectorWebhookRegisterRequest, ConnectorWebhookRegisterResponse, ConnectorWebhookSyncResponse, ConnectorWebhookSyncResult, CornerRadius, CreateAndConfirmSubscriptionRequest, CreateSubscriptionPaymentDetails, CreateSubscriptionRequest, Currency, CurrencyRevenue, CustomFieldCondition, CustomFieldConditionSource, CustomFieldContext, CustomFieldOperator, CustomFieldOption, CustomFieldTranslations, CustomFieldType, CustomFieldVisibility, CustomerCreateRequest, CustomerListParams, CustomerPaymentMethodsListParams, CustomerPaymentMethodsListResponse, CustomerResponse, CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, DeleteAccountRequest, DeleteUserRoleRequest, DelopayAuthenticationError, DelopayError, DelopayLogger, DelopayOptions, DisputeEvidenceBlock, DisputeEvidenceRequest, DisputeEvidenceType, DisputeListParams, DisputeResponse, DisputeStage, DisputeStatus, EncodedBranding, EphemeralKeyCreateRequest, EphemeralKeyCreateResponse, EuclidComparison, EuclidComparisonType, EuclidIfStatement, EuclidValue, EventClass, EventDeliveryAttemptResponse, EventDetailResponse, EventListParams, EventListResponse, EventResponse, EventType, Export, FeatureMatrix, FeeOwner, FeeProgramBuilder, FeeRuleConditions, FeeRuleDefaultPrecedence, FeeRuleInput, FeeSpecInput, FeeType, Files, FocusedCheckoutUrlParams, FontFamily, FontWeight, Forex, ForgotPasswordRequest, FromEmailRequest, FutureUsage, GatewayConnectRequest, GatewayResponse, GetSubscriptionItemsParams, GetSubscriptionItemsResponse, GlobalSearchRequest, GroupNode, ImpersonateEmployeeRequest, IntentStatus, InviteUsersRequest, InviteUsersResponse, InvoiceStatus, LabelStyle, LayoutStyle, LeafNode, LedgerEntry, LedgerListParams, LedgerResponse, LinkedRoutingConfigRetrieveResponse, ListInvitableRolesParams, ListUsersInLineageParams, LoginHistoryEntry, LoginHistoryParams, LoginHistoryResponse, LogoShape, LogoSize, MandateListParams, MandateResponse, MandateRevokedResponse, MandateStatus, MandateType, MerchantAccountCreateRequest, MerchantAccountType, MerchantOverviewResponse, MerchantOverviewStat, MerchantRoutingAlgorithm, MethodSurcharge, MinimalRoleInfo, NATIVE_PANES_MAX, NATIVE_PANE_CATEGORY_KEYS, NATIVE_PANE_ICON_KEYS, NativePaneMethodInfo, NativePaneOpenTarget, NativePaneRail, NativePaneView, NativePaneVisibility, NonPillRadius, OverrideAction, OverrideScope, ParentGroup, ParentGroupInfo, PauseSubscriptionRequest, PauseSubscriptionResponse, PaymentAttemptResponse, PaymentCancelRequest, PaymentCaptureRequest, PaymentConfirmRequest, PaymentCreateRequest, PaymentErrorDetails, PaymentExperience, PaymentExperienceTypes, PaymentIdFormatConfig, PaymentIdStyle, PaymentIntentStateMetadata, PaymentLayout, PaymentLinkBackgroundImageConfig, PaymentLinkConfigRequest, PaymentLinkListParams, PaymentLinkListResponse, PaymentLinkResponse, PaymentLinkTransactionDetails, PaymentListParams, PaymentListResponse, PaymentMethod, PaymentMethodAmountLimits, PaymentMethodCreateRequest, PaymentMethodDeleteResponse, PaymentMethodDisplayInfo, PaymentMethodListInstallmentAmountDetails, PaymentMethodListInstallmentOption, PaymentMethodListInstallmentPlan, PaymentMethodListIntentData, PaymentMethodListParams, PaymentMethodListResponse, PaymentMethodResponse, PaymentMethodType, PaymentMethodUpdateRequest, PaymentRetrieveOptions, PaymentStatusHistoryEntityType, PaymentStatusHistoryEvent, PaymentUpdateRequest, PayoutCreateRequest, PayoutListParams, PayoutListResponse, PayoutResponse, PayoutStatus, PayoutType, PayoutUpdateRequest, PerMethodSurchargeItem, PermissionScope, PhoneDetails, PhoneOtpRequest, PhoneOtpResponse, PhoneOtpVerifyRequest, PhoneOtpVerifyResponse, PlatformFeeKind, PlatformFeeOutput, PlatformFeeProgram, PlatformFeeRule, PlatformFeeRuleOutput, PlatformFeeRuleRequest, PollStatus, PollStatusResponse, ProfileAcquirerCreateRequest, ProfileAcquirerResponse, ProfileAcquirerUpdateRequest, ProfileCreateRequest, ProfileDefaultRoutingConfig, ProfileDeniedConnectorsResponse, ProfileLogoUploadResponse, ProfileUpdateRequest, ProgramConnectorSelection, ProjectCreateRequest, ProjectStats, ProjectStatsResponse, ProjectUpdateRequest, RecoveryCodesResponse, RefundAggregateResponse, RefundCreateRequest, RefundListParams, RefundResponse, RefundStatus, RefundType, RefundUpdateRequest, RegionCountriesResponse, RegionCreateRequest, RegionResponse, RegionSetCountriesRequest, RegionUpdateRequest, Regions, RelayRequest, RelayResponse, RelayStatus, RelayType, RequestExtras, RequestOptions, RequiredFieldInfo, ResetPasswordRequest, ResponsePaymentMethodTypes, ResponsePaymentMethodsEnabled, ResumeSubscriptionRequest, ResumeSubscriptionResponse, RoutableConnectorChoice, RoutingActivatePayload, RoutingConfigCreateRequest, RoutingConfigResponse, RoutingDeactivateRequest, RoutingDictionary, RoutingDictionaryRecord, RuleConnectorSelection, STRIPE_NATIVE_PANE_METHODS, Search, SearchGroupResponse, SearchIndex, SearchStatus, ShopCreateRequest, ShopStats, ShopStatsResponse, ShopUpdateRequest, SignInRequest, SignUpRequest, SignUpWithMerchantRequest, SizeScale, SpacingScale, StaticRoutingAlgorithm, StatsPeriod, StripeConnectAccountRequest, StripeConnectAccountResponse, StripeConnectLinkRequest, StripeConnectLinkResponse, StripeNativePane, StripePaymentMethodDomainResult, StripePaymentMethodDomainStatus, StripePaymentMethodDomainsRegisterRequest, StripePaymentMethodDomainsRegisterResponse, SubscriptionEstimateParams, SubscriptionEstimateResponse, SubscriptionInvoice, SubscriptionItem, SubscriptionItemPrice, SubscriptionItemType, SubscriptionLineItem, SubscriptionListParams, SubscriptionPaymentData, SubscriptionPaymentDetails, SubscriptionPeriodUnit, SubscriptionResponse, SubscriptionStatus, Subscriptions, SummaryPosition, SurchargeDetailsResponse, SurchargeResponse, SurchargeRuleRequest, SurchargeRuleResponse, SurfaceStyle, SwitchMerchantRequest, SwitchProfileRequest, Terminate2faQueryParams, ThreeDSDecision, ThreeDsRuleExecuteRequest, ThreeDsRuleResponse, TierSummary, TokenPurpose, TokenResponse, TopupRequest, TopupResponse, TotpResponse, TransactionType, TrustBadge, UpdateSubscriptionRequest, UpdateUserDetailsRequest, UpdateUserRoleRequest, UserInLineage, UserResponse, UserSessionEntry, UserSessionListResponse, UserSessionRevokeResponse, VerifyTotpRequest, WebhookDeliveryAttempt, WebhookEvent, WebhookRegistrationEnvironment, Webhooks, allOf, anyOf, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, cloneCustomField, cloneNativePane, customFieldContextFromMetadata, customFieldIsTextLike, customFieldOperatorTakesValue, customFieldOptionLabel, customFieldText, decodeBadges, decodeBranding, decodeCustomFields, decodeNativePanes, defaultBranding, defaultCustomFieldVisibility, defaultNativePane, defaultOperatorForSource, encodeBadges, encodeBranding, encodeCustomFields, encodeNativePanes, evaluateCustomFieldCondition, evaluateCustomFieldVisibility, feeProgram, focusedCheckoutUrl, fontStack, fontWeightValue, inputPadValue, isCheckboxChecked, isDarkSurface, isHexColor, leaf, logoDimensions, nativePaneMethodInfo, parseCustomFieldsLoose, parseImportedBranding, programToTree, radiusValue, ruleMatchToTree, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue, visibleCustomFields } from './index.js';
1
+ import { ProjectResponse, ShopResponse, PaymentResponse, RequestFn, AuthResponse, SignUpWithMerchantIdRequest, PaymentAttemptsListResponse, PaymentStatusHistoryResponse, RefundListResponse, AnalyticsScopeRequest, AnalyticsScopeResponse, MerchantAccountResponse, MerchantAccountUpdateRequest, ProfileResponse, PaymentsDeleteResponse, PaymentClientContextListResponse, SettlementStatementListParams, SettlementStatementListResponse, FeeStatementDetail, StatementPdfParams, SettlementOverviewParams, SettlementOverviewResponse, SettlementCurrentParams, SettlementCurrentResponse, BillingProfileResponse, PlatformFeeRuleInput, PlatformFeeRuleRecord, FeeRulePreviewRequest, FeeRulePreviewResponse, FeeScheduleCreateRequest, FeeScheduleResponse, FeeScheduleUpdateRequest, Delopay } from './index.js';
2
+ export { ALL_CUSTOM_FIELD_CONDITION_SOURCES, ALL_CUSTOM_FIELD_OPERATORS, ALL_CUSTOM_FIELD_TYPES, AddUserRequest, AddUserResponse, Address, AddressDetails, AllocationListResponse, AllocationResponse, AllocationTransferRequest, AllocationTransferResponse, AmountFilter, AmountRange, Analytics, AnalyticsChild, AnalyticsConnectorDay, AnalyticsConnectorSeries, AnalyticsDashboard, AnalyticsDayBucket, AnalyticsMethodSlice, ApiKeyCreateRequest, ApiKeyCreateResponse, ApiKeyExpiration, ApiKeyListConstraints, ApiKeyResponse, ApiKeyRevokeResponse, ApiKeyUpdateRequest, ApplePayVerificationRequest, ApplePayVerificationResponse, ApplePayVerifiedDomainsResponse, AttemptStatus, AuthenticationCreateRequest, AuthenticationResponse, AuthenticationStatus, AuthenticationType, AutoRechargeConfig, AutoRechargeUpdateRequest, AvailabilityOverrideCreateRequest, AvailabilityOverrideResponse, AvailabilityOverrides, AvailabilityPreviewMethod, AvailabilityPreviewParams, AvailabilityPreviewResponse, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, BankCodeResponse, BankDebitTypes, BankTransferTypes, BillingCompleteSetupRequest, BillingSetupRequest, BillingSetupResponse, BlockedAttempt, BlockedAttemptListParams, BlockedAttemptListResponse, BlocklistAddRequest, BlocklistDataKind, BlocklistResponse, BrandingExport, BrandingSource, BuiltInRegionGroupResponse, BusinessPaymentLinkConfig, CHECKBOX_CHECKED, CHECKBOX_UNCHECKED, CHECKOUT_EVENT_KINDS, CUSTOM_CSS_MAX_LENGTH, CUSTOM_FIELDS_MAX, CUSTOM_FIELD_CONDITIONS_MAX, CUSTOM_FIELD_KEY_PATTERN, CUSTOM_FIELD_OPERATORS_BY_SOURCE, CUSTOM_FIELD_VALUELESS_OPERATORS, CancelSubscriptionRequest, CancelSubscriptionResponse, CaptureMethod, CardDetail, CardDetailFromLocker, CardNetworkTypes, Cards, ChangePasswordRequest, CheckoutBranding, CheckoutBrandingUpdate, CheckoutCustomField, CheckoutEventKind, CheckoutSession, CheckoutSessionOptions, ConditionNode, ConfirmSubscriptionPaymentDetails, ConfirmSubscriptionRequest, ConfirmSubscriptionResponse, Connector, ConnectorCloneRequest, ConnectorCreateRequest, ConnectorListResponse, ConnectorOwnership, ConnectorResponse, ConnectorSelection, ConnectorType, ConnectorUpdateRequest, ConnectorVolumeSplit, ConnectorWebhookEntry, ConnectorWebhookEventType, ConnectorWebhookListResponse, ConnectorWebhookRegisterRequest, ConnectorWebhookRegisterResponse, ConnectorWebhookSyncResponse, ConnectorWebhookSyncResult, CornerRadius, CreateAndConfirmSubscriptionRequest, CreateSubscriptionPaymentDetails, CreateSubscriptionRequest, Currency, CurrencyRevenue, CustomFieldCondition, CustomFieldConditionSource, CustomFieldContext, CustomFieldOperator, CustomFieldOption, CustomFieldTranslations, CustomFieldType, CustomFieldVisibility, CustomerCreateRequest, CustomerListParams, CustomerPaymentMethodsListParams, CustomerPaymentMethodsListResponse, CustomerResponse, CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, DeleteAccountRequest, DeleteUserRoleRequest, DelopayAuthenticationError, DelopayError, DelopayLogger, DelopayOptions, DisputeEvidenceBlock, DisputeEvidenceRequest, DisputeEvidenceType, DisputeListParams, DisputeResponse, DisputeStage, DisputeStatus, EncodedBranding, EpayoutsMethod, EpayoutsMethodsResponse, EphemeralKeyCreateRequest, EphemeralKeyCreateResponse, EuclidComparison, EuclidComparisonType, EuclidIfStatement, EuclidValue, EventClass, EventDeliveryAttemptResponse, EventDetailResponse, EventListParams, EventListResponse, EventResponse, EventType, Export, FeatureMatrix, FeeOwner, FeeProgramBuilder, FeeRuleConditions, FeeRuleDefaultPrecedence, FeeRuleInput, FeeSpecInput, FeeStatementSummary, FeeType, Files, FocusedCheckoutUrlParams, FontFamily, FontWeight, Forex, ForgotPasswordRequest, FromEmailRequest, FutureUsage, GatewayConnectRequest, GatewayResponse, GetSubscriptionItemsParams, GetSubscriptionItemsResponse, GlobalSearchRequest, GroupNode, ImpersonateEmployeeRequest, IntentStatus, InviteUsersRequest, InviteUsersResponse, InvoiceStatus, LabelStyle, LayoutStyle, LeafNode, LedgerEntry, LedgerListParams, LedgerResponse, LimitedOperation, LinkedRoutingConfigRetrieveResponse, ListInvitableRolesParams, ListUsersInLineageParams, LoginHistoryEntry, LoginHistoryParams, LoginHistoryResponse, LogoShape, LogoSize, MandateListParams, MandateResponse, MandateRevokedResponse, MandateStatus, MandateType, MerchantAccountCreateRequest, MerchantAccountType, MerchantOverviewResponse, MerchantOverviewStat, MerchantRoutingAlgorithm, MethodSurcharge, MinimalRoleInfo, NATIVE_PANES_MAX, NATIVE_PANE_CATEGORY_KEYS, NATIVE_PANE_ICON_KEYS, NativePaneMethodInfo, NativePaneOpenTarget, NativePaneRail, NativePaneView, NativePaneVisibility, NonPillRadius, OperationLimitOnExceeded, OperationLimitRule, OperationLimitRuleDeleteResponse, OperationLimitRuleListParams, OperationLimitScope, OperationLimitSettings, OperationLimitWindowMode, OperationLimits, OverrideAction, OverrideScope, ParentGroup, ParentGroupInfo, PauseSubscriptionRequest, PauseSubscriptionResponse, PaymentAttemptResponse, PaymentCancelRequest, PaymentCaptureRequest, PaymentClientContextEntry, PaymentConfirmRequest, PaymentCreateRequest, PaymentErrorDetails, PaymentExperience, PaymentExperienceTypes, PaymentIdFormatConfig, PaymentIdStyle, PaymentIntentStateMetadata, PaymentLayout, PaymentLinkBackgroundImageConfig, PaymentLinkConfigRequest, PaymentLinkListParams, PaymentLinkListResponse, PaymentLinkResponse, PaymentLinkTransactionDetails, PaymentListFilterConstraints, PaymentListFilteredResponse, PaymentListOrder, PaymentListParams, PaymentListResponse, PaymentMethod, PaymentMethodAmountLimits, PaymentMethodCreateRequest, PaymentMethodDeleteResponse, PaymentMethodDisplayInfo, PaymentMethodListInstallmentAmountDetails, PaymentMethodListInstallmentOption, PaymentMethodListInstallmentPlan, PaymentMethodListIntentData, PaymentMethodListParams, PaymentMethodListResponse, PaymentMethodResponse, PaymentMethodType, PaymentMethodUpdateRequest, PaymentRetrieveOptions, PaymentStatusHistoryEntityType, PaymentStatusHistoryEvent, PaymentUpdateRequest, PaymentsDeletePolicyResponse, PayoutCreateRequest, PayoutListParams, PayoutListResponse, PayoutResponse, PayoutStatus, PayoutType, PayoutUpdateRequest, PayseproMethod, PayseproMethodsResponse, PerMethodSurchargeItem, PermissionScope, PhoneDetails, PhoneOtpRequest, PhoneOtpResponse, PhoneOtpVerifyRequest, PhoneOtpVerifyResponse, PlatformFeeKind, PlatformFeeOutput, PlatformFeeProgram, PlatformFeeRule, PlatformFeeRuleOutput, PlatformFeeRuleRequest, PollStatus, PollStatusResponse, ProfileAcquirerCreateRequest, ProfileAcquirerResponse, ProfileAcquirerUpdateRequest, ProfileCreateRequest, ProfileDefaultRoutingConfig, ProfileDeniedConnectorsResponse, ProfileLogoUploadResponse, ProfileUpdateRequest, ProgramConnectorSelection, ProjectCreateRequest, ProjectStats, ProjectStatsResponse, ProjectUpdateRequest, PublishableKey, RecordCheckoutEventRequest, RecordCheckoutEventResponse, RecoveryCodesResponse, RefundAggregateResponse, RefundCreateRequest, RefundListParams, RefundResponse, RefundStatus, RefundType, RefundUpdateRequest, RegionCountriesResponse, RegionCreateRequest, RegionResponse, RegionSetCountriesRequest, RegionUpdateRequest, Regions, RelayRequest, RelayResponse, RelayStatus, RelayType, RequestExtras, RequestOptions, RequiredFieldInfo, ResetPasswordRequest, ResponsePaymentMethodTypes, ResponsePaymentMethodsEnabled, ResumeSubscriptionRequest, ResumeSubscriptionResponse, RoutableConnectorChoice, RoutingActivatePayload, RoutingConfigCreateRequest, RoutingConfigResponse, RoutingDeactivateRequest, RoutingDictionary, RoutingDictionaryRecord, RuleConnectorSelection, STRIPE_NATIVE_PANE_METHODS, Search, SearchGroupResponse, SearchIndex, SearchStatus, Settlement, SettlementBackfillRequest, SettlementBackfillResponse, SettlementBucket, SettlementLine, SettlementLineListParams, SettlementLineListResponse, SettlementPayoutStatus, ShopCreateRequest, ShopFeeConfigEntry, ShopFeeConfigParams, ShopFeeConfigResponse, ShopSettlementOverview, ShopStats, ShopStatsResponse, ShopUpdateRequest, ShopVisibilityResponse, ShopVisibilityUpdateRequest, SignInRequest, SignUpRequest, SignUpWithMerchantRequest, SizeScale, SpacingScale, StatementAdjustment, StatementAdjustmentCreateRequest, StatementAdjustmentListResponse, StatementGenerateRequest, StatementPayoutUpdateRequest, StaticRoutingAlgorithm, StatsPeriod, StripeConnectAccountRequest, StripeConnectAccountResponse, StripeConnectLinkRequest, StripeConnectLinkResponse, StripeNativePane, StripePaymentMethodDomainResult, StripePaymentMethodDomainStatus, StripePaymentMethodDomainsRegisterRequest, StripePaymentMethodDomainsRegisterResponse, SubscriptionEstimateParams, SubscriptionEstimateResponse, SubscriptionInvoice, SubscriptionItem, SubscriptionItemPrice, SubscriptionItemType, SubscriptionLineItem, SubscriptionListParams, SubscriptionPaymentData, SubscriptionPaymentDetails, SubscriptionPaymentLink, SubscriptionPaymentLookupRequest, SubscriptionPaymentLookupResponse, SubscriptionPeriodUnit, SubscriptionResponse, SubscriptionStatus, Subscriptions, SummaryPosition, SurchargeDetailsResponse, SurchargeResponse, SurchargeRuleRequest, SurchargeRuleResponse, SurfaceStyle, SwitchMerchantRequest, SwitchProfileRequest, Terminate2faQueryParams, ThreeDSDecision, ThreeDsRuleExecuteRequest, ThreeDsRuleResponse, TierSummary, TokenPurpose, TokenResponse, TopupRequest, TopupResponse, TotpResponse, TransactionType, TrustBadge, UpdateOperationLimitSettingsRequest, UpdateSubscriptionRequest, UpdateUserDetailsRequest, UpdateUserRoleRequest, UpsertOperationLimitRuleRequest, UserInLineage, UserResponse, UserSessionEntry, UserSessionListResponse, UserSessionRevokeResponse, VaultCollectSessionResponse, VaultPaymentMethodRequest, VaultPaymentMethodResponse, VerifyTotpRequest, WebhookDeliveryAttempt, WebhookEvent, WebhookRegistrationEnvironment, Webhooks, allOf, anyOf, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, cloneCustomField, cloneNativePane, customFieldContextFromMetadata, customFieldIsTextLike, customFieldOperatorTakesValue, customFieldOptionLabel, customFieldText, decodeBadges, decodeBranding, decodeCustomFields, decodeNativePanes, defaultBranding, defaultCustomFieldVisibility, defaultNativePane, defaultOperatorForSource, encodeBadges, encodeBranding, encodeCustomFields, encodeNativePanes, evaluateCustomFieldCondition, evaluateCustomFieldVisibility, feeProgram, focusedCheckoutUrl, fontStack, fontWeightValue, inputPadValue, isCheckboxChecked, isDarkSurface, isHexColor, leaf, logoDimensions, nativePaneMethodInfo, parseCustomFieldsLoose, parseImportedBranding, programToTree, radiusValue, ruleMatchToTree, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue, visibleCustomFields } from './index.js';
3
3
 
4
4
  /**
5
5
  * Internal-only type surface. Exposed via `'@delopay/sdk/internal'` only.
@@ -587,6 +587,203 @@ interface ConnectorRestrictionRuleResponse {
587
587
  /** ISO 8601 datetime. */
588
588
  modified_at: string;
589
589
  }
590
+ /**
591
+ * The global auto-close policy for payments stuck awaiting buyer action
592
+ * (`requires_payment_method`, `requires_confirmation`,
593
+ * `requires_customer_action`). When enabled, a background sweep expires
594
+ * such payments once they are older than `hours`.
595
+ */
596
+ interface PaymentAutoCloseConfigResponse {
597
+ enabled: boolean;
598
+ /** Age in hours after which an awaiting payment is expired (1..=720). */
599
+ hours: number;
600
+ }
601
+ /**
602
+ * Update the global auto-close policy. PATCH semantics: omitted fields are
603
+ * left unchanged, each field applies independently.
604
+ */
605
+ interface UpdatePaymentAutoCloseConfigRequest {
606
+ enabled?: boolean;
607
+ hours?: number;
608
+ }
609
+ /**
610
+ * One merchant's auto-close override plus the values that actually apply
611
+ * to it (override field if set, else the global config).
612
+ */
613
+ interface PaymentAutoCloseOverrideResponse {
614
+ /** Per-merchant `enabled` override; `null` = inherit the global value. */
615
+ enabled: boolean | null;
616
+ /** Per-merchant window override in hours; `null` = inherit the global value. */
617
+ hours: number | null;
618
+ /** The values effectively applied to this merchant after layering. */
619
+ effective: PaymentAutoCloseConfigResponse;
620
+ }
621
+ /**
622
+ * Replace a merchant's auto-close override. REPLACE semantics — the stored
623
+ * override becomes exactly these two fields, and sending both as `null`
624
+ * removes the override entirely (falling back to the global config).
625
+ */
626
+ interface UpdatePaymentAutoCloseOverrideRequest {
627
+ enabled?: boolean | null;
628
+ hours?: number | null;
629
+ }
630
+ /**
631
+ * The admin-facing global deletable-status policy: `statuses` is what
632
+ * admins may currently delete (and what merchants inherit); `env_allowed`
633
+ * is the deploy-time ceiling the UI may offer as options.
634
+ */
635
+ interface TransactionDeleteConfigResponse {
636
+ env_allowed: string[];
637
+ statuses: string[];
638
+ }
639
+ /**
640
+ * Replace the global deletable-status set. Must be a subset of the
641
+ * deployment's env ceiling.
642
+ */
643
+ interface UpdateTransactionDeleteConfigRequest {
644
+ statuses: string[];
645
+ }
646
+ /**
647
+ * One merchant's deletable-status override. `statuses = null` means the
648
+ * merchant inherits the global set; `effective` is what actually applies;
649
+ * `admin_allowed` is the ceiling the admin may grant from.
650
+ */
651
+ interface TransactionDeleteOverrideResponse {
652
+ statuses: string[] | null;
653
+ effective: string[];
654
+ admin_allowed: string[];
655
+ }
656
+ /**
657
+ * Replace one merchant's override. `statuses: null` removes the override
658
+ * (inherit global); an empty list means "this merchant may delete nothing".
659
+ */
660
+ interface UpdateTransactionDeleteOverrideRequest {
661
+ statuses: string[] | null;
662
+ }
663
+ /** A VGS vault environment. */
664
+ type VaultEnvironment = 'sandbox' | 'live';
665
+ /**
666
+ * Whether a merchant may attach the vault connector, reported as the three
667
+ * independent facts the gate is built from rather than as one flag. A deny
668
+ * overrides `public` visibility and overrides a `beta` allowlist entry.
669
+ */
670
+ interface AdminVaultEntitlementState {
671
+ /** Always `vgs` today; named so a second vendor cannot reuse the meaning. */
672
+ connector_name: string;
673
+ /**
674
+ * The resolved verdict. **`null` means the state could not be read**, not
675
+ * "no" — render it as unknown, never as "not granted".
676
+ */
677
+ granted: boolean | null;
678
+ /** `public` / `beta` / `disabled`, or `null` when there is no restriction row. */
679
+ visibility: string | null;
680
+ /** Whether this merchant is allowlisted (only decides under `beta`). */
681
+ allowlisted: boolean | null;
682
+ /** Whether this merchant is denied. Beats everything else. */
683
+ denied: boolean | null;
684
+ /** The operator-authored note stored on the restriction row, if any. */
685
+ reason: string | null;
686
+ /** Set when, and only when, the entitlement could not be determined. */
687
+ unknown_reason: string | null;
688
+ }
689
+ /** One VGS environment a shop's vault account holds credentials for. */
690
+ interface AdminVaultEnvironmentState {
691
+ environment: VaultEnvironment;
692
+ /** The VGS tenant id (`tnt…`). Addressing, not a credential. */
693
+ vault_id: string | null;
694
+ /**
695
+ * Whether the vault *cloaks* in this environment (an outbound proxy URL in
696
+ * this environment's credentials) rather than merely storing cards.
697
+ */
698
+ cloaks: boolean;
699
+ }
700
+ /** What one shop's vault configuration looks like from the operator's side. */
701
+ interface AdminShopVaultState {
702
+ profile_id: string;
703
+ profile_name: string;
704
+ /** The shop's `is_external_vault_enabled` switch (not the whole answer). */
705
+ is_external_vault_enabled: boolean;
706
+ /**
707
+ * Whether a vault account is provisioned for this shop at all.
708
+ * **`null` means it could not be determined** — see `unknown_reason`.
709
+ */
710
+ vault_provisioned: boolean | null;
711
+ vault_connector_id: string | null;
712
+ /** The vault vendor actually attached — not assumed to be `vgs`. */
713
+ vault_connector_name: string | null;
714
+ /** Environments with credentials. Empty when nothing could be read. */
715
+ environments: AdminVaultEnvironmentState[];
716
+ /** Inbound (Collect) route id, needed only for browser-side capture. */
717
+ collect_route_id: string | null;
718
+ vault_sdk: string | null;
719
+ /** Connectors this shop vaults cards for. Absent or empty = every connector. */
720
+ enabled_for_connectors: string[] | null;
721
+ /**
722
+ * Whether the vault cloaks **in any environment**; `null` when unreadable.
723
+ * `environments[].cloaks` is the per-environment truth.
724
+ */
725
+ cloaking_enabled: boolean | null;
726
+ /** Set when part of this shop's vault state could not be read. */
727
+ unknown_reason: string | null;
728
+ }
729
+ /** Vault state for one merchant: the entitlement, and every shop. */
730
+ interface AdminVaultStateResponse {
731
+ merchant_id: string;
732
+ entitlement: AdminVaultEntitlementState;
733
+ shops: AdminShopVaultState[];
734
+ }
735
+ /**
736
+ * Attach a vault to one of a merchant's shops: creates the vault connector
737
+ * account and points the profile at it in one request.
738
+ */
739
+ interface AdminAttachVaultRequest {
740
+ /** The shop to attach the vault to. Must belong to the merchant in the path. */
741
+ profile_id: string;
742
+ /** VGS Collect service-account client id. */
743
+ service_account_id: string;
744
+ /**
745
+ * VGS Collect service-account secret. Must be write-only
746
+ * (`aliases:write`) — the attach verifies this and refuses otherwise.
747
+ */
748
+ service_account_secret: string;
749
+ /** VGS vault (tenant) id, `tnt…`. */
750
+ vault_id: string;
751
+ /**
752
+ * Outbound forward-proxy URL including credentials. Its presence is what
753
+ * makes the vault *cloak* rather than merely store.
754
+ */
755
+ proxy_url?: string | null;
756
+ /**
757
+ * VGS **management** service-account client id for a merchant-owned
758
+ * vault. A second, separate account — never the Collect account above.
759
+ * Only valid as a pair with `mgmt_client_secret`.
760
+ */
761
+ mgmt_client_id?: string | null;
762
+ /** VGS management service-account secret. Required with `mgmt_client_id`. */
763
+ mgmt_client_secret?: string | null;
764
+ /** Inbound (Collect) route id, needed for browser-side card capture. */
765
+ collect_route_id?: string | null;
766
+ /** Connectors this shop should vault cards for. Absent or empty = all. */
767
+ enabled_for_connectors?: string[] | null;
768
+ /** Label for the connector account. Defaults to `vgs_{profile_id}`. */
769
+ connector_label?: string | null;
770
+ /**
771
+ * `true` stores the credentials in the account's **sandbox** slot and
772
+ * marks the account test-mode; absent or `false` uses the live slot.
773
+ * Deliberately explicit rather than derived from the vault id.
774
+ */
775
+ test_mode?: boolean | null;
776
+ }
777
+ /** The result of an attach, plus non-fatal findings. */
778
+ interface AdminAttachVaultResponse {
779
+ merchant_connector_id: string;
780
+ profile_id: string;
781
+ is_external_vault_enabled: boolean;
782
+ collect_route_id: string | null;
783
+ vault_sdk: string | null;
784
+ /** Configurations that will work now and bite later. Empty on a clean attach. */
785
+ warnings: string[];
786
+ }
590
787
 
591
788
  declare class Admin {
592
789
  private readonly request;
@@ -703,6 +900,120 @@ declare class AdminPortal {
703
900
  * no path/query/fragment, no wildcards.
704
901
  */
705
902
  updateShopIframeOrigins(merchantId: string, profileId: string, origins: string[] | null): Promise<ProfileResponse>;
903
+ /**
904
+ * Soft-delete a transaction of ANY merchant. Only payments whose status
905
+ * is in the admin delete policy can be deleted; the action is audited.
906
+ *
907
+ * `DELETE /admin-portal/transactions/{paymentId}`
908
+ */
909
+ deleteTransaction(paymentId: string): Promise<PaymentsDeleteResponse>;
910
+ /**
911
+ * Recover (undelete) a soft-deleted transaction. Audited.
912
+ *
913
+ * `POST /admin-portal/transactions/{paymentId}/recover`
914
+ */
915
+ recoverTransaction(paymentId: string): Promise<PaymentsDeleteResponse>;
916
+ /**
917
+ * Client/device observations captured while the buyer interacted with a
918
+ * transaction of ANY merchant, oldest first.
919
+ *
920
+ * `GET /admin-portal/transactions/{paymentId}/client-context`
921
+ */
922
+ getTransactionClientContext(paymentId: string): Promise<PaymentClientContextListResponse>;
923
+ /**
924
+ * The global payment auto-close policy.
925
+ * `GET /admin-portal/auto-close-config`
926
+ */
927
+ getAutoCloseConfig(): Promise<PaymentAutoCloseConfigResponse>;
928
+ /**
929
+ * Update the global payment auto-close policy. PATCH semantics — omitted
930
+ * fields are left unchanged.
931
+ *
932
+ * `PUT /admin-portal/auto-close-config`
933
+ */
934
+ updateAutoCloseConfig(params: UpdatePaymentAutoCloseConfigRequest): Promise<PaymentAutoCloseConfigResponse>;
935
+ /**
936
+ * One merchant's auto-close override plus the effective values.
937
+ * `GET /admin-portal/accounts/{merchantId}/auto-close-config`
938
+ */
939
+ getMerchantAutoCloseConfig(merchantId: string): Promise<PaymentAutoCloseOverrideResponse>;
940
+ /**
941
+ * Replace one merchant's auto-close override. REPLACE semantics — sending
942
+ * both fields as `null` removes the override entirely.
943
+ *
944
+ * `PUT /admin-portal/accounts/{merchantId}/auto-close-config`
945
+ */
946
+ updateMerchantAutoCloseConfig(merchantId: string, params: UpdatePaymentAutoCloseOverrideRequest): Promise<PaymentAutoCloseOverrideResponse>;
947
+ /**
948
+ * The global transaction soft-delete policy (statuses admins may delete,
949
+ * plus the deploy-time env ceiling).
950
+ *
951
+ * `GET /admin-portal/transaction-delete-config`
952
+ */
953
+ getTransactionDeleteConfig(): Promise<TransactionDeleteConfigResponse>;
954
+ /**
955
+ * Replace the global deletable-status set. Must be a subset of the env
956
+ * ceiling.
957
+ *
958
+ * `PUT /admin-portal/transaction-delete-config`
959
+ */
960
+ updateTransactionDeleteConfig(params: UpdateTransactionDeleteConfigRequest): Promise<TransactionDeleteConfigResponse>;
961
+ /**
962
+ * One merchant's deletable-status override plus the effective set.
963
+ * `GET /admin-portal/accounts/{merchantId}/transaction-delete-config`
964
+ */
965
+ getMerchantTransactionDeleteConfig(merchantId: string): Promise<TransactionDeleteOverrideResponse>;
966
+ /**
967
+ * Replace one merchant's deletable-status override. `statuses: null`
968
+ * removes the override; an empty list forbids deletion entirely.
969
+ *
970
+ * `PUT /admin-portal/accounts/{merchantId}/transaction-delete-config`
971
+ */
972
+ updateMerchantTransactionDeleteConfig(merchantId: string, params: UpdateTransactionDeleteOverrideRequest): Promise<TransactionDeleteOverrideResponse>;
973
+ /**
974
+ * A merchant's settlement statements. Same shapes as the merchant-facing
975
+ * `settlement` resource, admin-authenticated.
976
+ *
977
+ * `GET /admin-portal/accounts/{merchantId}/settlement/statements`
978
+ */
979
+ listSettlementStatements(merchantId: string, params: SettlementStatementListParams): Promise<SettlementStatementListResponse>;
980
+ /**
981
+ * One settlement statement with its breakdown.
982
+ * `GET /admin-portal/accounts/{merchantId}/settlement/statements/{statementId}`
983
+ */
984
+ getSettlementStatement(merchantId: string, statementId: string): Promise<FeeStatementDetail>;
985
+ /**
986
+ * Export a settlement statement as PDF. Returns the raw bytes as a `Blob`
987
+ * with the same auth and error handling as every other call.
988
+ *
989
+ * `GET /admin-portal/accounts/{merchantId}/settlement/statements/{statementId}/pdf`
990
+ */
991
+ downloadSettlementStatementPdf(merchantId: string, statementId: string, params?: StatementPdfParams): Promise<Blob>;
992
+ /**
993
+ * A merchant's per-shop settlement overview.
994
+ * `GET /admin-portal/accounts/{merchantId}/settlement/overview`
995
+ */
996
+ settlementOverview(merchantId: string, params: SettlementOverviewParams): Promise<SettlementOverviewResponse>;
997
+ /**
998
+ * A merchant's live current-period settlement rollup.
999
+ * `GET /admin-portal/accounts/{merchantId}/settlement/current`
1000
+ */
1001
+ settlementCurrent(merchantId: string, params: SettlementCurrentParams): Promise<SettlementCurrentResponse>;
1002
+ /**
1003
+ * A merchant's vault state: the attach entitlement, and the vault
1004
+ * configuration of every shop.
1005
+ *
1006
+ * `GET /admin-portal/accounts/{merchantId}/vault`
1007
+ */
1008
+ getVaultState(merchantId: string): Promise<AdminVaultStateResponse>;
1009
+ /**
1010
+ * Attach a vault to one of a merchant's shops — creates the vault
1011
+ * connector account and points the profile at it in one request. The
1012
+ * Collect credentials are verified write-only before anything is stored.
1013
+ *
1014
+ * `POST /admin-portal/accounts/{merchantId}/vault/attach`
1015
+ */
1016
+ attachVault(merchantId: string, params: AdminAttachVaultRequest): Promise<AdminAttachVaultResponse>;
706
1017
  /**
707
1018
  * Fetch the global welcome promotional-credit config (amount + message)
708
1019
  * granted to newly created billing profiles. Internal-admin route.
@@ -987,4 +1298,4 @@ declare class DelopayInternal extends Delopay {
987
1298
  constructor(...args: ConstructorParameters<typeof Delopay>);
988
1299
  }
989
1300
 
990
- export { Admin, type AdminAdjustmentRequest, type AdminAdjustmentResponse, type AdminAnalyticsRequest, type AdminCreateUserForMerchantRequest, type AdminCustomerDetail, type AdminCustomerListParams, type AdminCustomerListResponse, type AdminLedgerAnalyticsRequest, type AdminLedgerAnalyticsResponse, AdminPortal, type AdminSetTrustedRequest, type AdminSignInRequest, type AdminSuspendRequest, type AdminTransactionListParams, type AdminTransactionListResponse, type AdminUnsuspendRequest, type AdminUpdateUserRequest, type AdminUserResponse, AnalyticsScopeRequest, AnalyticsScopeResponse, type AuditLogListParams, type AuditLogListResponse, type AuditLogResponse, AuditLogs, AuthResponse, type AuthorizeResponse, BillingProfileResponse, Cache, type CardIssuerCreateRequest, type CardIssuerListResponse, type CardIssuerResponse, type CardIssuerUpdateRequest, CardIssuers, Configs, type ConnectorRestrictionResponse, type ConnectorRestrictionRuleAction, type ConnectorRestrictionRuleResponse, ConnectorRestrictionRules, type ConnectorRestrictionScope, ConnectorRestrictions, type ConnectorVisibility, type CreateConnectorRestrictionRuleRequest, type CreateInternalUserRequest, type CreateTenantUserRequest, type CustomerSummary, type CustomerUser, Delopay, DelopayInternal, FeeRulePreviewRequest, FeeRulePreviewResponse, FeeScheduleCreateRequest, FeeScheduleResponse, FeeScheduleUpdateRequest, Gsm, type GsmDecision, type GsmRuleCreateRequest, type GsmRuleResponse, type GsmRuleUpdateRequest, type LedgerDayBucket, type LedgerMerchant, type ListConnectorRestrictionRulesQuery, MerchantAccountResponse, MerchantAccountUpdateRequest, type OnboardMerchantRequest, type OnboardMerchantResponse, type OverviewStat, type OverviewStatsResponse, type PaymentAnalyticsRequest, type PaymentAnalyticsResponse, PaymentAttemptsListResponse, type PaymentPeriodStats, PaymentResponse, PaymentStatusHistoryResponse, type PlatformAnalyticsResponse, PlatformBilling, PlatformFeeRuleInput, PlatformFeeRuleRecord, PlatformFees, ProfileResponse, ProjectResponse, type PromoConfigResponse, RefundListResponse, RequestFn, ShopResponse, SignUpWithMerchantIdRequest, type SignupToggleRequest, type SignupToggleResponse, type UpdateConnectorRestrictionRuleRequest, type UpdateLedgerEntryRequest, type UpdatePromoConfigRequest, type UpsertConnectorRestrictionRequest };
1301
+ export { Admin, type AdminAdjustmentRequest, type AdminAdjustmentResponse, type AdminAnalyticsRequest, type AdminAttachVaultRequest, type AdminAttachVaultResponse, type AdminCreateUserForMerchantRequest, type AdminCustomerDetail, type AdminCustomerListParams, type AdminCustomerListResponse, type AdminLedgerAnalyticsRequest, type AdminLedgerAnalyticsResponse, AdminPortal, type AdminSetTrustedRequest, type AdminShopVaultState, type AdminSignInRequest, type AdminSuspendRequest, type AdminTransactionListParams, type AdminTransactionListResponse, type AdminUnsuspendRequest, type AdminUpdateUserRequest, type AdminUserResponse, type AdminVaultEntitlementState, type AdminVaultEnvironmentState, type AdminVaultStateResponse, AnalyticsScopeRequest, AnalyticsScopeResponse, type AuditLogListParams, type AuditLogListResponse, type AuditLogResponse, AuditLogs, AuthResponse, type AuthorizeResponse, BillingProfileResponse, Cache, type CardIssuerCreateRequest, type CardIssuerListResponse, type CardIssuerResponse, type CardIssuerUpdateRequest, CardIssuers, Configs, type ConnectorRestrictionResponse, type ConnectorRestrictionRuleAction, type ConnectorRestrictionRuleResponse, ConnectorRestrictionRules, type ConnectorRestrictionScope, ConnectorRestrictions, type ConnectorVisibility, type CreateConnectorRestrictionRuleRequest, type CreateInternalUserRequest, type CreateTenantUserRequest, type CustomerSummary, type CustomerUser, Delopay, DelopayInternal, FeeRulePreviewRequest, FeeRulePreviewResponse, FeeScheduleCreateRequest, FeeScheduleResponse, FeeScheduleUpdateRequest, FeeStatementDetail, Gsm, type GsmDecision, type GsmRuleCreateRequest, type GsmRuleResponse, type GsmRuleUpdateRequest, type LedgerDayBucket, type LedgerMerchant, type ListConnectorRestrictionRulesQuery, MerchantAccountResponse, MerchantAccountUpdateRequest, type OnboardMerchantRequest, type OnboardMerchantResponse, type OverviewStat, type OverviewStatsResponse, type PaymentAnalyticsRequest, type PaymentAnalyticsResponse, PaymentAttemptsListResponse, type PaymentAutoCloseConfigResponse, type PaymentAutoCloseOverrideResponse, PaymentClientContextListResponse, type PaymentPeriodStats, PaymentResponse, PaymentStatusHistoryResponse, PaymentsDeleteResponse, type PlatformAnalyticsResponse, PlatformBilling, PlatformFeeRuleInput, PlatformFeeRuleRecord, PlatformFees, ProfileResponse, ProjectResponse, type PromoConfigResponse, RefundListResponse, RequestFn, SettlementCurrentParams, SettlementCurrentResponse, SettlementOverviewParams, SettlementOverviewResponse, SettlementStatementListParams, SettlementStatementListResponse, ShopResponse, SignUpWithMerchantIdRequest, type SignupToggleRequest, type SignupToggleResponse, StatementPdfParams, type TransactionDeleteConfigResponse, type TransactionDeleteOverrideResponse, type UpdateConnectorRestrictionRuleRequest, type UpdateLedgerEntryRequest, type UpdatePaymentAutoCloseConfigRequest, type UpdatePaymentAutoCloseOverrideRequest, type UpdatePromoConfigRequest, type UpdateTransactionDeleteConfigRequest, type UpdateTransactionDeleteOverrideRequest, type UpsertConnectorRestrictionRequest, type VaultEnvironment };
package/dist/internal.js CHANGED
@@ -17,6 +17,7 @@ import {
17
17
  CUSTOM_FIELD_OPERATORS_BY_SOURCE,
18
18
  CUSTOM_FIELD_VALUELESS_OPERATORS,
19
19
  Cards,
20
+ CheckoutSession,
20
21
  DEFAULT_BADGES,
21
22
  DEFAULT_BADGES_DARK,
22
23
  DEFAULT_BRANDING,
@@ -32,9 +33,11 @@ import {
32
33
  NATIVE_PANES_MAX,
33
34
  NATIVE_PANE_CATEGORY_KEYS,
34
35
  NATIVE_PANE_ICON_KEYS,
36
+ OperationLimits,
35
37
  Regions,
36
38
  STRIPE_NATIVE_PANE_METHODS,
37
39
  Search,
40
+ Settlement,
38
41
  Subscriptions,
39
42
  Webhooks,
40
43
  allOf,
@@ -85,7 +88,7 @@ import {
85
88
  surfacePadValue,
86
89
  verticalGapValue,
87
90
  visibleCustomFields
88
- } from "./chunk-G44EQT6Q.js";
91
+ } from "./chunk-HSUVEFKO.js";
89
92
 
90
93
  // src/internal/resources/admin.ts
91
94
  var Admin = class {
@@ -287,6 +290,212 @@ var AdminPortal = class {
287
290
  { body: { iframe_allowed_origins: origins } }
288
291
  );
289
292
  }
293
+ /**
294
+ * Soft-delete a transaction of ANY merchant. Only payments whose status
295
+ * is in the admin delete policy can be deleted; the action is audited.
296
+ *
297
+ * `DELETE /admin-portal/transactions/{paymentId}`
298
+ */
299
+ async deleteTransaction(paymentId) {
300
+ return this.request("DELETE", `/admin-portal/transactions/${encodeURIComponent(paymentId)}`);
301
+ }
302
+ /**
303
+ * Recover (undelete) a soft-deleted transaction. Audited.
304
+ *
305
+ * `POST /admin-portal/transactions/{paymentId}/recover`
306
+ */
307
+ async recoverTransaction(paymentId) {
308
+ return this.request(
309
+ "POST",
310
+ `/admin-portal/transactions/${encodeURIComponent(paymentId)}/recover`
311
+ );
312
+ }
313
+ /**
314
+ * Client/device observations captured while the buyer interacted with a
315
+ * transaction of ANY merchant, oldest first.
316
+ *
317
+ * `GET /admin-portal/transactions/{paymentId}/client-context`
318
+ */
319
+ async getTransactionClientContext(paymentId) {
320
+ return this.request(
321
+ "GET",
322
+ `/admin-portal/transactions/${encodeURIComponent(paymentId)}/client-context`
323
+ );
324
+ }
325
+ /**
326
+ * The global payment auto-close policy.
327
+ * `GET /admin-portal/auto-close-config`
328
+ */
329
+ async getAutoCloseConfig() {
330
+ return this.request("GET", "/admin-portal/auto-close-config");
331
+ }
332
+ /**
333
+ * Update the global payment auto-close policy. PATCH semantics — omitted
334
+ * fields are left unchanged.
335
+ *
336
+ * `PUT /admin-portal/auto-close-config`
337
+ */
338
+ async updateAutoCloseConfig(params) {
339
+ return this.request("PUT", "/admin-portal/auto-close-config", { body: params });
340
+ }
341
+ /**
342
+ * One merchant's auto-close override plus the effective values.
343
+ * `GET /admin-portal/accounts/{merchantId}/auto-close-config`
344
+ */
345
+ async getMerchantAutoCloseConfig(merchantId) {
346
+ return this.request(
347
+ "GET",
348
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/auto-close-config`
349
+ );
350
+ }
351
+ /**
352
+ * Replace one merchant's auto-close override. REPLACE semantics — sending
353
+ * both fields as `null` removes the override entirely.
354
+ *
355
+ * `PUT /admin-portal/accounts/{merchantId}/auto-close-config`
356
+ */
357
+ async updateMerchantAutoCloseConfig(merchantId, params) {
358
+ return this.request(
359
+ "PUT",
360
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/auto-close-config`,
361
+ { body: params }
362
+ );
363
+ }
364
+ /**
365
+ * The global transaction soft-delete policy (statuses admins may delete,
366
+ * plus the deploy-time env ceiling).
367
+ *
368
+ * `GET /admin-portal/transaction-delete-config`
369
+ */
370
+ async getTransactionDeleteConfig() {
371
+ return this.request("GET", "/admin-portal/transaction-delete-config");
372
+ }
373
+ /**
374
+ * Replace the global deletable-status set. Must be a subset of the env
375
+ * ceiling.
376
+ *
377
+ * `PUT /admin-portal/transaction-delete-config`
378
+ */
379
+ async updateTransactionDeleteConfig(params) {
380
+ return this.request("PUT", "/admin-portal/transaction-delete-config", { body: params });
381
+ }
382
+ /**
383
+ * One merchant's deletable-status override plus the effective set.
384
+ * `GET /admin-portal/accounts/{merchantId}/transaction-delete-config`
385
+ */
386
+ async getMerchantTransactionDeleteConfig(merchantId) {
387
+ return this.request(
388
+ "GET",
389
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/transaction-delete-config`
390
+ );
391
+ }
392
+ /**
393
+ * Replace one merchant's deletable-status override. `statuses: null`
394
+ * removes the override; an empty list forbids deletion entirely.
395
+ *
396
+ * `PUT /admin-portal/accounts/{merchantId}/transaction-delete-config`
397
+ */
398
+ async updateMerchantTransactionDeleteConfig(merchantId, params) {
399
+ return this.request(
400
+ "PUT",
401
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/transaction-delete-config`,
402
+ { body: params }
403
+ );
404
+ }
405
+ /**
406
+ * A merchant's settlement statements. Same shapes as the merchant-facing
407
+ * `settlement` resource, admin-authenticated.
408
+ *
409
+ * `GET /admin-portal/accounts/{merchantId}/settlement/statements`
410
+ */
411
+ async listSettlementStatements(merchantId, params) {
412
+ return this.request(
413
+ "GET",
414
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/statements`,
415
+ {
416
+ query: {
417
+ test_mode: params.test_mode,
418
+ profile_id: params.profile_id,
419
+ limit: params.limit,
420
+ offset: params.offset
421
+ }
422
+ }
423
+ );
424
+ }
425
+ /**
426
+ * One settlement statement with its breakdown.
427
+ * `GET /admin-portal/accounts/{merchantId}/settlement/statements/{statementId}`
428
+ */
429
+ async getSettlementStatement(merchantId, statementId) {
430
+ return this.request(
431
+ "GET",
432
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/statements/${encodeURIComponent(statementId)}`
433
+ );
434
+ }
435
+ /**
436
+ * Export a settlement statement as PDF. Returns the raw bytes as a `Blob`
437
+ * with the same auth and error handling as every other call.
438
+ *
439
+ * `GET /admin-portal/accounts/{merchantId}/settlement/statements/{statementId}/pdf`
440
+ */
441
+ async downloadSettlementStatementPdf(merchantId, statementId, params) {
442
+ return this.request(
443
+ "GET",
444
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/statements/${encodeURIComponent(statementId)}/pdf`,
445
+ {
446
+ query: {
447
+ currency: params?.currency,
448
+ include_transactions: params?.include_transactions
449
+ },
450
+ responseType: "blob"
451
+ }
452
+ );
453
+ }
454
+ /**
455
+ * A merchant's per-shop settlement overview.
456
+ * `GET /admin-portal/accounts/{merchantId}/settlement/overview`
457
+ */
458
+ async settlementOverview(merchantId, params) {
459
+ return this.request(
460
+ "GET",
461
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/overview`,
462
+ { query: { test_mode: params.test_mode } }
463
+ );
464
+ }
465
+ /**
466
+ * A merchant's live current-period settlement rollup.
467
+ * `GET /admin-portal/accounts/{merchantId}/settlement/current`
468
+ */
469
+ async settlementCurrent(merchantId, params) {
470
+ return this.request(
471
+ "GET",
472
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/settlement/current`,
473
+ { query: { test_mode: params.test_mode, profile_id: params.profile_id } }
474
+ );
475
+ }
476
+ /**
477
+ * A merchant's vault state: the attach entitlement, and the vault
478
+ * configuration of every shop.
479
+ *
480
+ * `GET /admin-portal/accounts/{merchantId}/vault`
481
+ */
482
+ async getVaultState(merchantId) {
483
+ return this.request("GET", `/admin-portal/accounts/${encodeURIComponent(merchantId)}/vault`);
484
+ }
485
+ /**
486
+ * Attach a vault to one of a merchant's shops — creates the vault
487
+ * connector account and points the profile at it in one request. The
488
+ * Collect credentials are verified write-only before anything is stored.
489
+ *
490
+ * `POST /admin-portal/accounts/{merchantId}/vault/attach`
491
+ */
492
+ async attachVault(merchantId, params) {
493
+ return this.request(
494
+ "POST",
495
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/vault/attach`,
496
+ { body: params }
497
+ );
498
+ }
290
499
  /**
291
500
  * Fetch the global welcome promotional-credit config (amount + message)
292
501
  * granted to newly created billing profiles. Internal-admin route.
@@ -673,6 +882,7 @@ export {
673
882
  Cache,
674
883
  CardIssuers,
675
884
  Cards,
885
+ CheckoutSession,
676
886
  Configs,
677
887
  ConnectorRestrictionRules,
678
888
  ConnectorRestrictions,
@@ -693,11 +903,13 @@ export {
693
903
  NATIVE_PANES_MAX,
694
904
  NATIVE_PANE_CATEGORY_KEYS,
695
905
  NATIVE_PANE_ICON_KEYS,
906
+ OperationLimits,
696
907
  PlatformBilling,
697
908
  PlatformFees,
698
909
  Regions,
699
910
  STRIPE_NATIVE_PANE_METHODS,
700
911
  Search,
912
+ Settlement,
701
913
  Subscriptions,
702
914
  Webhooks,
703
915
  allOf,