@delopay/sdk 0.83.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.
package/dist/index.d.cts CHANGED
@@ -1203,15 +1203,22 @@ interface ShopResponse {
1203
1203
  */
1204
1204
  payment_id_format?: PaymentIdFormatConfig | null;
1205
1205
  }
1206
- /** Branding and behavior overrides for a shop's hosted checkout. */
1207
- interface BusinessPaymentLinkConfig {
1208
- /** Default config applied to every payment link under this shop. */
1209
- default_config?: PaymentLinkConfigRequest | null;
1206
+ /**
1207
+ * Branding and behavior overrides for a shop's hosted checkout.
1208
+ *
1209
+ * On the wire the {@link PaymentLinkConfigRequest} fields sit at the TOP
1210
+ * LEVEL of `payment_link_config` (the backend flattens them), with the
1211
+ * fields declared below alongside them.
1212
+ */
1213
+ interface BusinessPaymentLinkConfig extends PaymentLinkConfigRequest {
1214
+ /** Custom domain name used to host the link on the merchant's own domain. */
1215
+ domain_name?: string | null;
1210
1216
  /** Per-sub-business overrides, keyed by a merchant-defined identifier. */
1211
1217
  business_specific_configs?: Record<string, PaymentLinkConfigRequest> | null;
1212
- /** Host domains the payment link may be served from. */
1218
+ /** Host domains (glob patterns) the payment link may be embedded / opened from. */
1213
1219
  allowed_domains?: string[] | null;
1214
- branding_visibility?: 'auto' | 'show' | 'hide' | null;
1220
+ /** Toggle for DeloPay branding visibility. */
1221
+ branding_visibility?: boolean | null;
1215
1222
  }
1216
1223
  /** Appearance and behavior customization for the hosted checkout. */
1217
1224
  interface PaymentLinkConfigRequest {
@@ -2972,6 +2979,44 @@ interface SubscriptionPaymentData {
2972
2979
  payment_type?: string | null;
2973
2980
  payment_token?: string | null;
2974
2981
  }
2982
+ /**
2983
+ * Ask which of these payments were raised by a subscription.
2984
+ *
2985
+ * The linkage exists in one direction only: an invoice points at the payment it
2986
+ * settled, and nothing is stamped on the payment itself. So a caller holding a
2987
+ * page of payments — a transactions list, a reconciliation export — cannot tell
2988
+ * subscription charges from one-off ones without asking.
2989
+ *
2990
+ * Do **not** infer it from `off_session` or the presence of a mandate. A saved
2991
+ * card charged in the background looks identical there, and would be mislabelled
2992
+ * as a subscription.
2993
+ *
2994
+ * Batched on purpose: resolve a whole page in one call. The backend accepts at
2995
+ * most **200** ids per request.
2996
+ */
2997
+ interface SubscriptionPaymentLookupRequest {
2998
+ payment_ids: string[];
2999
+ }
3000
+ /** One resolved payment → subscription link. */
3001
+ interface SubscriptionPaymentLink {
3002
+ /** The payment that was asked about. */
3003
+ payment_id: string;
3004
+ /** The subscription that raised it. */
3005
+ subscription_id: string;
3006
+ /** The invoice (billing cycle) the payment settles. */
3007
+ invoice_id: string;
3008
+ invoice_status: InvoiceStatus;
3009
+ }
3010
+ interface SubscriptionPaymentLookupResponse {
3011
+ /**
3012
+ * Only the payments that resolved to a subscription, in no guaranteed order.
3013
+ *
3014
+ * An id that is absent is not an error — it means "not a subscription
3015
+ * payment". A page mixing the two is the normal case, so match on presence
3016
+ * rather than expecting one entry per id.
3017
+ */
3018
+ links: SubscriptionPaymentLink[];
3019
+ }
2975
3020
  /** A single invoice raised for one billing cycle of a subscription. */
2976
3021
  interface SubscriptionInvoice {
2977
3022
  id: string;
@@ -3533,6 +3578,536 @@ interface AnalyticsScopeResponse {
3533
3578
  */
3534
3579
  methods?: AnalyticsMethodSlice[];
3535
3580
  }
3581
+ /** Payout progress of a settlement statement. */
3582
+ type SettlementPayoutStatus = 'unpaid' | 'partial' | 'paid';
3583
+ /**
3584
+ * Who owns the connector a settlement line ran through. `unknown` marks
3585
+ * lines frozen before ownership tracking existed.
3586
+ */
3587
+ type ConnectorOwnership = 'host' | 'shop' | 'unknown';
3588
+ /**
3589
+ * Per-connector/currency rollup inside a statement or current-period view.
3590
+ * Amounts are native minor units of `currency`.
3591
+ */
3592
+ interface SettlementBucket {
3593
+ connector?: string | null;
3594
+ ownership: ConnectorOwnership;
3595
+ currency: string;
3596
+ gross_amount: number;
3597
+ platform_fee_amount: number;
3598
+ /**
3599
+ * `true` when at least one line in this bucket is still awaiting its
3600
+ * platform-fee figure. Absent platform-fee fields on shop-owner reads are
3601
+ * a server-side permission boundary, not a gap — never re-derive them.
3602
+ */
3603
+ platform_fee_incomplete: boolean;
3604
+ merchant_fee_amount: number;
3605
+ refund_amount: number;
3606
+ net_to_shop: number;
3607
+ line_count: number;
3608
+ refund_count: number;
3609
+ /** Fee schedule applied, e.g. `"2.9"` percent. Absent when mixed. */
3610
+ fee_percentage?: string | null;
3611
+ fee_flat_amount?: number | null;
3612
+ }
3613
+ /** One generated monthly settlement statement. All `*_usd` amounts are USD minor units. */
3614
+ interface FeeStatementSummary {
3615
+ id: string;
3616
+ merchant_id: string;
3617
+ profile_id: string;
3618
+ /** ISO-8601 period start (UTC). */
3619
+ period_start: string;
3620
+ /** ISO-8601 period end (UTC). */
3621
+ period_end: string;
3622
+ test_mode: boolean;
3623
+ gross_usd: number;
3624
+ platform_fee_usd: number;
3625
+ merchant_fee_usd: number;
3626
+ refund_usd: number;
3627
+ net_to_shop_usd: number;
3628
+ line_count: number;
3629
+ refund_count: number;
3630
+ fx_incomplete: boolean;
3631
+ platform_fee_incomplete: boolean;
3632
+ includes_backfill: boolean;
3633
+ payout_status: SettlementPayoutStatus;
3634
+ paid_amount_usd: number;
3635
+ paid_at?: string | null;
3636
+ payout_note?: string | null;
3637
+ generated_at: string;
3638
+ /**
3639
+ * Signed sum of manual adjustments, USD minor units. Positive means the
3640
+ * shop owner owes more (their payout shrinks).
3641
+ */
3642
+ adjustments_usd: number;
3643
+ /**
3644
+ * `net_to_shop_usd - adjustments_usd`: what the shop owner is actually
3645
+ * paid once the host's positions are applied. **This is the payable
3646
+ * figure** — `net_to_shop_usd` is the computed sub-total before them.
3647
+ */
3648
+ net_after_adjustments_usd: number;
3649
+ }
3650
+ /** A statement with its per-connector/currency breakdown. */
3651
+ interface FeeStatementDetail extends FeeStatementSummary {
3652
+ breakdown: SettlementBucket[];
3653
+ }
3654
+ interface SettlementStatementListParams {
3655
+ /**
3656
+ * Statement environment. Required so test and live figures can never
3657
+ * blend by accident: `false` is transmitted, not dropped.
3658
+ */
3659
+ test_mode: boolean;
3660
+ /** Restrict to one shop. Enforced from the token for shop-owner callers. */
3661
+ profile_id?: string;
3662
+ limit?: number;
3663
+ offset?: number;
3664
+ }
3665
+ interface SettlementStatementListResponse {
3666
+ statements: FeeStatementSummary[];
3667
+ total_count: number;
3668
+ }
3669
+ interface SettlementOverviewParams {
3670
+ /** Environment switch — see {@link SettlementStatementListParams.test_mode}. */
3671
+ test_mode: boolean;
3672
+ }
3673
+ /** Per-shop settlement rollup for the host merchant's overview. */
3674
+ interface ShopSettlementOverview {
3675
+ profile_id: string;
3676
+ profile_name?: string | null;
3677
+ unpaid_net_usd: number;
3678
+ unpaid_statement_count: number;
3679
+ current_period_net_usd: number;
3680
+ current_period_merchant_fee_usd: number;
3681
+ current_period_gross_usd: number;
3682
+ fx_incomplete: boolean;
3683
+ has_fee_config: boolean;
3684
+ visible_to_shop: boolean;
3685
+ }
3686
+ interface SettlementOverviewResponse {
3687
+ shops: ShopSettlementOverview[];
3688
+ }
3689
+ interface SettlementCurrentParams {
3690
+ /** Environment switch — see {@link SettlementStatementListParams.test_mode}. */
3691
+ test_mode: boolean;
3692
+ profile_id?: string;
3693
+ }
3694
+ /** Live rollup of the current (not yet statemented) period. */
3695
+ interface SettlementCurrentResponse {
3696
+ period_start: string;
3697
+ period_end: string;
3698
+ test_mode: boolean;
3699
+ gross_usd: number;
3700
+ platform_fee_usd: number;
3701
+ merchant_fee_usd: number;
3702
+ refund_usd: number;
3703
+ net_to_shop_usd: number;
3704
+ line_count: number;
3705
+ refund_count: number;
3706
+ fx_incomplete: boolean;
3707
+ platform_fee_incomplete: boolean;
3708
+ breakdown: SettlementBucket[];
3709
+ }
3710
+ interface StatementGenerateRequest {
3711
+ profile_id: string;
3712
+ /** Calendar year (UTC). */
3713
+ year: number;
3714
+ /** Calendar month 1..=12 (UTC). */
3715
+ month: number;
3716
+ /** Environment switch — see {@link SettlementStatementListParams.test_mode}. */
3717
+ test_mode: boolean;
3718
+ }
3719
+ interface StatementPayoutUpdateRequest {
3720
+ payout_status: SettlementPayoutStatus;
3721
+ /**
3722
+ * Amount handed over so far, USD minor units — makes `partial` a real
3723
+ * figure. Omitted it defaults to the full net for `paid` and zero for
3724
+ * `unpaid`.
3725
+ */
3726
+ paid_amount_usd?: number;
3727
+ /** ISO-8601. Defaults to now (UTC) when marking `paid` without a date. */
3728
+ paid_at?: string;
3729
+ note?: string;
3730
+ }
3731
+ interface StatementPdfParams {
3732
+ /** ISO currency the PDF totals are converted to. Default USD. */
3733
+ currency?: string;
3734
+ /** Append a per-transaction table. Off by default. */
3735
+ include_transactions?: boolean;
3736
+ }
3737
+ /** One manual statement adjustment. Positive charges the shop, negative credits them. */
3738
+ interface StatementAdjustment {
3739
+ id: string;
3740
+ label: string;
3741
+ /** Signed USD minor units. */
3742
+ amount_usd: number;
3743
+ created_at: string;
3744
+ }
3745
+ interface StatementAdjustmentListResponse {
3746
+ adjustments: StatementAdjustment[];
3747
+ }
3748
+ interface StatementAdjustmentCreateRequest {
3749
+ label: string;
3750
+ /** Signed USD minor units. Positive charges the shop; negative credits them. */
3751
+ amount_usd: number;
3752
+ }
3753
+ interface SettlementLineListParams {
3754
+ profile_id: string;
3755
+ /** Calendar year (UTC) of the period to list. */
3756
+ year: number;
3757
+ /** Calendar month 1..=12 (UTC). */
3758
+ month: number;
3759
+ /** Environment switch — see {@link SettlementStatementListParams.test_mode}. */
3760
+ test_mode: boolean;
3761
+ limit?: number;
3762
+ offset?: number;
3763
+ }
3764
+ /** One settled payment attempt. Amounts are native minor units of `currency`. */
3765
+ interface SettlementLine {
3766
+ payment_id: string;
3767
+ attempt_id: string;
3768
+ connector?: string | null;
3769
+ connector_ownership: ConnectorOwnership;
3770
+ payment_method?: string | null;
3771
+ payment_method_type?: string | null;
3772
+ currency: string;
3773
+ gross_amount: number;
3774
+ platform_fee_amount: number;
3775
+ merchant_fee_amount: number;
3776
+ net_to_shop: number;
3777
+ merchant_fee_source: string;
3778
+ /** Absent on shop-owner reads — server-side redaction, never re-derive. */
3779
+ platform_fee_source?: string | null;
3780
+ merchant_ledger_outcome: string;
3781
+ test_mode: boolean;
3782
+ backfilled: boolean;
3783
+ transaction_at: string;
3784
+ }
3785
+ interface SettlementLineListResponse {
3786
+ lines: SettlementLine[];
3787
+ total_count: number;
3788
+ }
3789
+ interface ShopFeeConfigParams {
3790
+ profile_id: string;
3791
+ }
3792
+ /** One fee schedule that applies to a shop. */
3793
+ interface ShopFeeConfigEntry {
3794
+ schedule_id: string;
3795
+ connector?: string | null;
3796
+ profile_specific: boolean;
3797
+ fee_type: string;
3798
+ percentage_fee?: number | null;
3799
+ flat_fee_amount?: number | null;
3800
+ flat_fee_currency?: string | null;
3801
+ min_fee_amount?: number | null;
3802
+ max_fee_amount?: number | null;
3803
+ }
3804
+ interface ShopFeeConfigResponse {
3805
+ profile_id: string;
3806
+ schedules: ShopFeeConfigEntry[];
3807
+ }
3808
+ interface SettlementBackfillRequest {
3809
+ /** Restrict to one shop; omitted = all shops of the merchant. */
3810
+ profile_id?: string;
3811
+ /** ISO-8601 inclusive start (UTC). Omitted = beginning of time. */
3812
+ from?: string;
3813
+ /** ISO-8601 exclusive end (UTC). Omitted = now. */
3814
+ to?: string;
3815
+ }
3816
+ interface SettlementBackfillResponse {
3817
+ enqueued: boolean;
3818
+ job_id: string;
3819
+ }
3820
+ interface ShopVisibilityUpdateRequest {
3821
+ profile_id: string;
3822
+ visible_to_shop: boolean;
3823
+ }
3824
+ interface ShopVisibilityResponse {
3825
+ profile_id: string;
3826
+ visible_to_shop: boolean;
3827
+ }
3828
+ /** Operations that can carry limit rules. Only refunds today. */
3829
+ type LimitedOperation = 'refund';
3830
+ /** Rule target: the merchant default, one role, or one user. */
3831
+ type OperationLimitScope = 'merchant' | 'role' | 'user';
3832
+ /**
3833
+ * What happens when an operation would exceed its limit. v1 ships `block`
3834
+ * only; `require_approval` (four-eyes) arrives with backend#342 phase 2.
3835
+ */
3836
+ type OperationLimitOnExceeded = 'block';
3837
+ /** How the usage window is anchored. Rolling is the default. */
3838
+ type OperationLimitWindowMode = 'rolling' | 'calendar';
3839
+ /**
3840
+ * One persisted operation-limit rule. Enforcement resolves the most
3841
+ * specific rule: user > role > merchant. Amounts are minor units in
3842
+ * `currency`.
3843
+ */
3844
+ interface OperationLimitRule {
3845
+ id: string;
3846
+ merchant_id: string;
3847
+ operation: LimitedOperation;
3848
+ scope: OperationLimitScope;
3849
+ scope_id?: string | null;
3850
+ max_amount_per_operation?: number | null;
3851
+ max_total_amount_per_window?: number | null;
3852
+ max_count_per_window?: number | null;
3853
+ max_payment_age_days?: number | null;
3854
+ window_hours: number;
3855
+ /** ISO currency code of the amount fields. */
3856
+ currency: string;
3857
+ on_exceeded: OperationLimitOnExceeded;
3858
+ created_at: string;
3859
+ modified_at: string;
3860
+ }
3861
+ /**
3862
+ * Body for `PUT /operation-limits/rules` — a full-replace upsert for one
3863
+ * target. Absent limit fields mean "this rule does not constrain that
3864
+ * dimension"; a request with no limit at all is rejected (delete the rule
3865
+ * instead). Amounts are minor units in `currency`.
3866
+ */
3867
+ interface UpsertOperationLimitRuleRequest {
3868
+ operation: LimitedOperation;
3869
+ scope: OperationLimitScope;
3870
+ /** Required for `role`/`user` scopes; must be absent for `merchant`. */
3871
+ scope_id?: string;
3872
+ max_amount_per_operation?: number;
3873
+ max_total_amount_per_window?: number;
3874
+ max_count_per_window?: number;
3875
+ max_payment_age_days?: number;
3876
+ /** Window length in hours (rolling mode). Defaults to 24; 1–720. */
3877
+ window_hours?: number;
3878
+ /** Currency of the amount fields. Defaults to USD. */
3879
+ currency?: Currency;
3880
+ }
3881
+ interface OperationLimitRuleListParams {
3882
+ /** Without `operation`, every rule of the caller's merchant is returned. */
3883
+ operation?: LimitedOperation;
3884
+ }
3885
+ interface OperationLimitRuleDeleteResponse {
3886
+ id: string;
3887
+ deleted: boolean;
3888
+ }
3889
+ /**
3890
+ * Merchant-level enforcement settings. Both fields have safe defaults, so
3891
+ * an untouched merchant behaves as: rolling window, admins not exempt.
3892
+ */
3893
+ interface OperationLimitSettings {
3894
+ window_mode: OperationLimitWindowMode;
3895
+ /** Whether merchant/organization admins bypass limit rules. */
3896
+ admins_exempt: boolean;
3897
+ }
3898
+ /** Body for `PUT /operation-limits/settings`. Only provided fields change. */
3899
+ interface UpdateOperationLimitSettingsRequest {
3900
+ window_mode?: OperationLimitWindowMode;
3901
+ admins_exempt?: boolean;
3902
+ }
3903
+ /** Half-open amount range filter; minor units. `null` bounds are open. */
3904
+ interface AmountFilter {
3905
+ start_amount?: number | null;
3906
+ end_amount?: number | null;
3907
+ }
3908
+ /** Sort order for filtered payment lists. */
3909
+ interface PaymentListOrder {
3910
+ /** Column to sort on, e.g. `"created"` or `"amount"`. */
3911
+ on: string;
3912
+ by: 'asc' | 'desc';
3913
+ }
3914
+ /**
3915
+ * Body for `POST /payments/list` and `POST /payments/profile/list`.
3916
+ * `start_time` / `end_time` are top-level (the backend flattens the time
3917
+ * range), not nested. `test_mode`: `true` = test only, `false` = live only,
3918
+ * omitted = both.
3919
+ */
3920
+ interface PaymentListFilterConstraints {
3921
+ payment_id?: string | null;
3922
+ profile_id?: string | null;
3923
+ /** Filters to the business profiles assigned to this project. */
3924
+ project_id?: string | null;
3925
+ customer_id?: string | null;
3926
+ customer_email?: string | null;
3927
+ /** Default 10, max 20 (server-enforced defaults; dashboards send their own). */
3928
+ limit?: number;
3929
+ offset?: number | null;
3930
+ amount_filter?: AmountFilter | null;
3931
+ connector?: string[] | null;
3932
+ currency?: Currency[] | null;
3933
+ status?: IntentStatus[] | null;
3934
+ payment_method?: PaymentMethod[] | null;
3935
+ payment_method_type?: string[] | null;
3936
+ authentication_type?: AuthenticationType[] | null;
3937
+ merchant_connector_id?: string[] | null;
3938
+ card_network?: string[] | null;
3939
+ merchant_order_reference_id?: string | null;
3940
+ card_discovery?: string[] | null;
3941
+ /** ISO-8601 range start (flattened, top-level on the wire). */
3942
+ start_time?: string | null;
3943
+ /** ISO-8601 range end. */
3944
+ end_time?: string | null;
3945
+ /** `true` = test only, `false` = live only, omitted = both environments. */
3946
+ test_mode?: boolean | null;
3947
+ /** Omitted = backend default (`created`, descending). */
3948
+ order?: PaymentListOrder | null;
3949
+ }
3950
+ /** Response of the filtered payment list endpoints (`count` = page size). */
3951
+ interface PaymentListFilteredResponse {
3952
+ count: number;
3953
+ total_count: number;
3954
+ data: PaymentResponse[];
3955
+ }
3956
+ /** Response of `DELETE /payments/{payment_id}` (soft delete). */
3957
+ interface PaymentsDeleteResponse {
3958
+ payment_id: string;
3959
+ merchant_id: string;
3960
+ /** Always `true` on success — the endpoint errors otherwise. */
3961
+ deleted: boolean;
3962
+ }
3963
+ /**
3964
+ * The effective deletable-status set for the calling merchant — lets a
3965
+ * dashboard show the delete action only where allowed.
3966
+ */
3967
+ interface PaymentsDeletePolicyResponse {
3968
+ statuses: IntentStatus[];
3969
+ }
3970
+ /**
3971
+ * One client/device observation captured while the buyer interacted with a
3972
+ * payment: a checkout open, a confirm, a redirect leg or buyer-reported
3973
+ * client signals.
3974
+ */
3975
+ interface PaymentClientContextEntry {
3976
+ /** Capture point, e.g. `checkout_open`, `confirm`, `redirect_return`, `client_signals`. */
3977
+ source: string;
3978
+ device_id?: string | null;
3979
+ /** Partitioned (CHIPS) twin of `device_id`, scoped to the embedding site. */
3980
+ partitioned_device_id?: string | null;
3981
+ ip_address?: string | null;
3982
+ ip_country?: string | null;
3983
+ user_agent?: string | null;
3984
+ accept_language?: string | null;
3985
+ /**
3986
+ * Best-effort hardware-model guess derived server-side. Display/analytics
3987
+ * only; never make decisions on it.
3988
+ */
3989
+ device_model?: string | null;
3990
+ /** Capture-point-specific extras (client hints, screen size, referrer …). */
3991
+ extra?: Record<string, unknown> | null;
3992
+ created_at: string;
3993
+ }
3994
+ interface PaymentClientContextListResponse {
3995
+ payment_id: string;
3996
+ count: number;
3997
+ /** All captured observations, oldest first. */
3998
+ data: PaymentClientContextEntry[];
3999
+ }
4000
+ /**
4001
+ * One Paysepro rail the buyer can pick. `payment_method`,
4002
+ * `payment_method_type` and `payment_method_data` are echoed verbatim on the
4003
+ * confirm call — never derive them client-side from `category`, the mapping
4004
+ * is not 1:1.
4005
+ */
4006
+ interface PayseproMethod {
4007
+ /** Paysepro vendor code (wire name `type`), passed back verbatim. */
4008
+ type: string;
4009
+ display_name: string;
4010
+ /**
4011
+ * One of: card_redirect | wallet | bank_transfer | bank_redirect |
4012
+ * voucher | gift_card | reward | cash. Groups tiles into sections.
4013
+ */
4014
+ category: string;
4015
+ payment_method: string;
4016
+ payment_method_type: string;
4017
+ /** Pre-built `payment_method_data` body to echo on confirm (merge `billing` in). */
4018
+ payment_method_data: Record<string, unknown>;
4019
+ pmin?: number;
4020
+ pmax?: number;
4021
+ /**
4022
+ * Country to forward for country-pinned vendors. Absent for universal
4023
+ * rails, where the buyer's billing country is the right value.
4024
+ */
4025
+ pinned_country?: string;
4026
+ }
4027
+ interface PayseproMethodsResponse {
4028
+ country: string;
4029
+ currency: string;
4030
+ methods: PayseproMethod[];
4031
+ }
4032
+ /** One e-Payouts rail. Same contract as {@link PayseproMethod}. */
4033
+ interface EpayoutsMethod {
4034
+ /** e-Payouts vendor code (wire name `type`), passed back verbatim. */
4035
+ type: string;
4036
+ display_name: string;
4037
+ category: string;
4038
+ payment_method: string;
4039
+ payment_method_type: string;
4040
+ payment_method_data: Record<string, unknown>;
4041
+ pmin?: number;
4042
+ pmax?: number;
4043
+ pinned_country?: string;
4044
+ /** Sanitised inline SVG for the tile icon, when the merchant set one. */
4045
+ icon_svg?: string;
4046
+ }
4047
+ interface EpayoutsMethodsResponse {
4048
+ country: string;
4049
+ currency: string;
4050
+ methods: EpayoutsMethod[];
4051
+ /**
4052
+ * Lowercase ISO 3166-1 alpha-2 codes of every country the catalog can
4053
+ * mint some method for — drives the pane's country picker.
4054
+ */
4055
+ supported_countries: string[];
4056
+ }
4057
+ /** The closed set of buyer-side checkout events. */
4058
+ type CheckoutEventKind$1 = 'native_pane_selected' | 'native_pane_tab_opened' | 'native_pane_tab_blocked' | 'native_pane_abandoned' | 'native_pane_returned';
4059
+ interface RecordCheckoutEventRequest {
4060
+ event: CheckoutEventKind$1;
4061
+ /** Native-pane catalog key the event is about (`apple_pay`, `klarna`, …). */
4062
+ method: string;
4063
+ }
4064
+ interface RecordCheckoutEventResponse {
4065
+ /**
4066
+ * `false` when the event was deduplicated or the per-payment cap was
4067
+ * reached. Informational — checkouts do not branch on it.
4068
+ */
4069
+ recorded: boolean;
4070
+ }
4071
+ /** What a checkout page needs to stand up a VGS Collect form. */
4072
+ interface VaultCollectSessionResponse {
4073
+ /** VGS tenant id (`tnt...`), first argument to `VGSCollect.create`. */
4074
+ vault_id: string;
4075
+ /** `sandbox` or `live` — second argument to `VGSCollect.create`. */
4076
+ environment: string;
4077
+ /** Inbound route the Collect form posts through, when one is configured. */
4078
+ route_id?: string | null;
4079
+ /** Write-only bearer token for `form.createAliases({ access_token })`. */
4080
+ access_token: string;
4081
+ /** Remaining lifetime in seconds. */
4082
+ expires_in: number;
4083
+ }
4084
+ interface VaultPaymentMethodRequest {
4085
+ /** The card-number alias from `createAliases` (must be card-shaped). */
4086
+ card_number_alias: string;
4087
+ /** Expiry in the clear by necessity — VGS never hands raw values back. */
4088
+ card_exp_month: string;
4089
+ card_exp_year: string;
4090
+ card_holder_name?: string;
4091
+ nick_name?: string;
4092
+ card_network?: string;
4093
+ }
4094
+ interface VaultPaymentMethodResponse {
4095
+ /** Absent for a guest checkout, which stores no payment method. */
4096
+ payment_method_id?: string;
4097
+ /** Last four of the format-preserving alias — the real card's last four. */
4098
+ last4: string;
4099
+ card_network?: string | null;
4100
+ /**
4101
+ * One-shot spendable token: put on the confirm call as `payment_token`
4102
+ * alongside `payment_method: "card"`.
4103
+ */
4104
+ payment_token: string;
4105
+ }
4106
+ /** Narrow payload of `POST /shops/{merchant_id}/{shop_id}/checkout-branding`. */
4107
+ interface CheckoutBrandingUpdate {
4108
+ /** Applied as a whole-object replace of `payment_link_config`. */
4109
+ payment_link_config?: BusinessPaymentLinkConfig | null;
4110
+ }
3536
4111
 
3537
4112
  /** Create and manage API keys for a merchant account. */
3538
4113
  declare class ApiKeys {
@@ -4514,6 +5089,29 @@ declare class Payments {
4514
5089
  * ```
4515
5090
  */
4516
5091
  list(params?: PaymentListParams, options?: RequestExtras): Promise<PaymentListResponse>;
5092
+ /**
5093
+ * The status timeline of client/device observations captured while the
5094
+ * buyer interacted with the payment (checkout opens, confirms, redirect
5095
+ * legs, reported client signals), oldest first.
5096
+ *
5097
+ * `GET /payments/{paymentId}/client-context`
5098
+ */
5099
+ listClientContext(paymentId: string, options?: RequestExtras): Promise<PaymentClientContextListResponse>;
5100
+ /**
5101
+ * Soft-delete a payment. Only payments whose status is in the merchant's
5102
+ * delete policy (see {@link Payments.getDeletePolicy}) can be deleted;
5103
+ * anything else fails with a precondition error.
5104
+ *
5105
+ * `DELETE /payments/{paymentId}`
5106
+ */
5107
+ delete(paymentId: string, options?: RequestExtras): Promise<PaymentsDeleteResponse>;
5108
+ /**
5109
+ * The effective deletable-status set for the calling merchant — lets a
5110
+ * dashboard show the delete action only where it is allowed.
5111
+ *
5112
+ * `GET /payments/delete-policy`
5113
+ */
5114
+ getDeletePolicy(options?: RequestExtras): Promise<PaymentsDeletePolicyResponse>;
4517
5115
  /** Generate session tokens. `POST /payments/session-tokens` */
4518
5116
  sessionTokens(params: Record<string, unknown>): Promise<Record<string, unknown>>;
4519
5117
  /** Retrieve payment with gateway credentials. `POST /payments/sync` */
@@ -4538,8 +5136,24 @@ declare class Payments {
4538
5136
  listAllShops(params?: PaymentListParams): Promise<PaymentListResponse>;
4539
5137
  /** List payments by filter (POST body). `POST /payments/list` */
4540
5138
  listByFilter(params: Record<string, unknown>): Promise<PaymentListResponse>;
5139
+ /**
5140
+ * List payments by filter, scoped to the caller's profile (the shop-user
5141
+ * twin of `listByFilter`). The backend narrows to the profile from the
5142
+ * auth context, so `profile_id` / `project_id` must not be sent.
5143
+ *
5144
+ * Not to be confused with {@link Payments.listByProfile}, which is the GET
5145
+ * cursor variant and rejects this body.
5146
+ *
5147
+ * `POST /payments/profile/list`
5148
+ */
5149
+ listByProfileFilter(params: PaymentListFilterConstraints, options?: RequestExtras): Promise<PaymentListFilteredResponse>;
4541
5150
  /** Get payment filter options. `GET /payments/filter` */
4542
5151
  getFilters(params?: Record<string, string | number | undefined>): Promise<Record<string, unknown>>;
5152
+ /**
5153
+ * Get payment filter options, scoped to the caller's profile.
5154
+ * `GET /payments/profile/filter`
5155
+ */
5156
+ getFiltersByProfile(params?: Record<string, string | number | undefined>): Promise<Record<string, unknown>>;
4543
5157
  /** Get payment aggregates. `GET /payments/aggregate` */
4544
5158
  aggregate(params?: Record<string, string | number | undefined>): Promise<Record<string, unknown>>;
4545
5159
  /** Get payment aggregates (profile-scoped). `GET /payments/profile/aggregate` */
@@ -4653,6 +5267,14 @@ declare class Profiles {
4653
5267
  create(accountId: string, params: ProfileCreateRequest): Promise<ProfileResponse>;
4654
5268
  retrieve(accountId: string, profileId: string): Promise<ProfileResponse>;
4655
5269
  list(accountId: string): Promise<ProfileResponse[]>;
5270
+ /**
5271
+ * List the business profiles the caller can see at profile scope — the
5272
+ * `ProfileAccountRead` twin of `list()` (which needs merchant-level read).
5273
+ * A shop-scoped user gets exactly their own shop back.
5274
+ *
5275
+ * `GET /account/{accountId}/profile`
5276
+ */
5277
+ listByProfile(accountId: string): Promise<ProfileResponse[]>;
4656
5278
  update(accountId: string, profileId: string, params: ProfileUpdateRequest): Promise<ProfileResponse>;
4657
5279
  delete(accountId: string, profileId: string): Promise<ProfileResponse>;
4658
5280
  /** Toggle extended card info for a profile. `POST /account/{accountId}/business-profile/{profileId}/toggle-extended-card-info` */
@@ -5146,7 +5768,7 @@ declare class Shops {
5146
5768
  /**
5147
5769
  * Upload a logo file for a shop. The file is stored in Delopay's configured
5148
5770
  * object store and a public HTTPS URL is returned. This method does NOT write
5149
- * the URL into the shop's `payment_link_config.default_config.logo` — call
5771
+ * the URL into the shop's `payment_link_config.logo` — call
5150
5772
  * `shops.update` afterwards with the returned `logo_url` to persist the change.
5151
5773
  *
5152
5774
  * Accepts PNG, JPEG, WebP or SVG. The file must be ≤ 1 MiB.
@@ -5160,11 +5782,28 @@ declare class Shops {
5160
5782
  * ```typescript
5161
5783
  * const { logo_url } = await delopay.shops.uploadLogo('merch_1', 'pro_1', file);
5162
5784
  * await delopay.shops.update('merch_1', 'pro_1', {
5163
- * payment_link_config: { default_config: { logo: logo_url } },
5785
+ * payment_link_config: { logo: logo_url },
5164
5786
  * });
5165
5787
  * ```
5166
5788
  */
5167
5789
  uploadLogo(merchantId: string, shopId: string, file: Blob): Promise<ProfileLogoUploadResponse>;
5790
+ /**
5791
+ * Update only the checkout appearance (the `payment_link_config` blob:
5792
+ * theme, logo, colours, seller name, SDK layout/rules, DeloPay-branding
5793
+ * toggle) of a shop. Applied as a whole-object replace of
5794
+ * `payment_link_config`, mirroring the shop-update semantics.
5795
+ *
5796
+ * Gated on the dedicated `CheckoutBranding` permission, so "may restyle
5797
+ * the checkout" can be granted without full account/shop write.
5798
+ *
5799
+ * `POST /shops/{merchantId}/{shopId}/checkout-branding`
5800
+ *
5801
+ * @param merchantId - The merchant account ID.
5802
+ * @param shopId - The shop (business profile) ID to restyle.
5803
+ * @param params - The new `payment_link_config` blob (full replacement).
5804
+ * @returns The updated business profile.
5805
+ */
5806
+ updateCheckoutBranding(merchantId: string, shopId: string, params: CheckoutBrandingUpdate, options?: RequestExtras): Promise<ProfileResponse>;
5168
5807
  }
5169
5808
 
5170
5809
  declare class StripeConnect {
@@ -5629,6 +6268,192 @@ declare class Subscriptions {
5629
6268
  resume(subscriptionId: string, params?: ResumeSubscriptionRequest, options?: RequestExtras): Promise<ResumeSubscriptionResponse>;
5630
6269
  /** Cancel a subscription. `POST /subscriptions/{subscriptionId}/cancel` */
5631
6270
  cancel(subscriptionId: string, params?: CancelSubscriptionRequest, options?: RequestExtras): Promise<CancelSubscriptionResponse>;
6271
+ /**
6272
+ * Resolve which of the given payments were raised by a subscription.
6273
+ * `POST /subscriptions/payments/lookup`
6274
+ *
6275
+ * The linkage exists in one direction only — an invoice points at the payment
6276
+ * it settled, and nothing is stamped on the payment — so this is the only way
6277
+ * to tell a subscription charge from a one-off one when you are holding a
6278
+ * page of payments. In particular, do not use `off_session` or the presence
6279
+ * of a mandate: an ordinary saved-card charge sets those identically.
6280
+ *
6281
+ * Ids that belong to no subscription are **absent** from `links` rather than
6282
+ * returned as an error, so match on presence:
6283
+ *
6284
+ * ```ts
6285
+ * const { links } = await subscriptions.lookupPayments(
6286
+ * { payment_ids: page.map((p) => p.payment_id) },
6287
+ * { headers: { 'X-Profile-Id': profileId } },
6288
+ * );
6289
+ * const bySubscription = new Map(links.map((l) => [l.payment_id, l]));
6290
+ * ```
6291
+ *
6292
+ * Profile-scoped like every other subscription route, and that matters more
6293
+ * here than elsewhere: a `payment_id` is merchant-supplied and only unique
6294
+ * within a merchant, so the shop is part of the question, not an
6295
+ * optimisation. Pass the profile that owns **the payments** — for a list
6296
+ * spanning several shops, group the ids by shop and call once per group.
6297
+ *
6298
+ * At most 200 ids per call.
6299
+ */
6300
+ lookupPayments(params: SubscriptionPaymentLookupRequest, options?: RequestExtras): Promise<SubscriptionPaymentLookupResponse>;
6301
+ }
6302
+
6303
+ /**
6304
+ * Hosted-shop settlement: monthly statements, the live current-period
6305
+ * rollup, per-line detail, fee schedules and backfills.
6306
+ *
6307
+ * Every read takes an explicit `test_mode` — test and live figures must
6308
+ * never blend, so the environment lives in the signature rather than in a
6309
+ * default. `false` is transmitted, not dropped.
6310
+ *
6311
+ * Shop-owner responses are redacted server-side: absent platform-fee fields
6312
+ * are a permission boundary, not a gap — never re-derive them client-side.
6313
+ */
6314
+ declare class Settlement {
6315
+ private readonly request;
6316
+ constructor(request: RequestFn);
6317
+ /**
6318
+ * Per-shop settlement rollup for the host merchant: unpaid totals and the
6319
+ * running current period, one row per shop.
6320
+ *
6321
+ * `GET /settlement/overview`
6322
+ */
6323
+ overview(params: SettlementOverviewParams, options?: RequestExtras): Promise<SettlementOverviewResponse>;
6324
+ /**
6325
+ * Live rollup of the current (not yet statemented) period.
6326
+ *
6327
+ * `GET /settlement/current`
6328
+ */
6329
+ current(params: SettlementCurrentParams, options?: RequestExtras): Promise<SettlementCurrentResponse>;
6330
+ /**
6331
+ * List generated settlement statements, newest first.
6332
+ *
6333
+ * `GET /settlement/statements`
6334
+ */
6335
+ listStatements(params: SettlementStatementListParams, options?: RequestExtras): Promise<SettlementStatementListResponse>;
6336
+ /**
6337
+ * One statement with its per-connector/currency breakdown.
6338
+ *
6339
+ * `GET /settlement/statements/{statementId}`
6340
+ */
6341
+ retrieveStatement(statementId: string, options?: RequestExtras): Promise<FeeStatementDetail>;
6342
+ /**
6343
+ * Generate (or regenerate) the statement for one shop and calendar month.
6344
+ *
6345
+ * `POST /settlement/statements/generate`
6346
+ */
6347
+ generateStatement(params: StatementGenerateRequest, options?: RequestExtras): Promise<FeeStatementDetail>;
6348
+ /**
6349
+ * Record payout progress on a statement (`unpaid` / `partial` / `paid`).
6350
+ *
6351
+ * `POST /settlement/statements/{statementId}/payout`
6352
+ */
6353
+ updateStatementPayout(statementId: string, params: StatementPayoutUpdateRequest, options?: RequestExtras): Promise<FeeStatementDetail>;
6354
+ /**
6355
+ * Export a statement as PDF. Returns the raw PDF bytes as a `Blob`, with
6356
+ * the same auth, retries and error handling as every other call — persist
6357
+ * or object-URL it caller-side.
6358
+ *
6359
+ * `GET /settlement/statements/{statementId}/pdf`
6360
+ *
6361
+ * @example
6362
+ * ```typescript
6363
+ * const pdf = await delopay.settlement.downloadStatementPdf('stmt_1', {
6364
+ * currency: 'EUR',
6365
+ * include_transactions: true,
6366
+ * });
6367
+ * const url = URL.createObjectURL(pdf);
6368
+ * ```
6369
+ */
6370
+ downloadStatementPdf(statementId: string, params?: StatementPdfParams, options?: RequestExtras): Promise<Blob>;
6371
+ /**
6372
+ * The individual settled attempts of one shop's calendar month.
6373
+ *
6374
+ * `GET /settlement/lines`
6375
+ */
6376
+ listLines(params: SettlementLineListParams, options?: RequestExtras): Promise<SettlementLineListResponse>;
6377
+ /**
6378
+ * The fee schedules that currently apply to a shop.
6379
+ *
6380
+ * `GET /settlement/fee-config`
6381
+ */
6382
+ feeConfig(params: ShopFeeConfigParams, options?: RequestExtras): Promise<ShopFeeConfigResponse>;
6383
+ /**
6384
+ * Enqueue a settlement-line backfill over historical attempts. Attempts
6385
+ * already covered by a line are always skipped.
6386
+ *
6387
+ * `POST /settlement/backfill`
6388
+ */
6389
+ backfill(params?: SettlementBackfillRequest, options?: RequestExtras): Promise<SettlementBackfillResponse>;
6390
+ /**
6391
+ * Toggle whether a shop's owner can see their own settlement figures.
6392
+ *
6393
+ * `POST /settlement/shops/visibility`
6394
+ */
6395
+ setShopVisibility(params: ShopVisibilityUpdateRequest, options?: RequestExtras): Promise<ShopVisibilityResponse>;
6396
+ /**
6397
+ * Manual adjustments recorded on a statement.
6398
+ *
6399
+ * `GET /settlement/statements/{statementId}/adjustments`
6400
+ */
6401
+ listStatementAdjustments(statementId: string, options?: RequestExtras): Promise<StatementAdjustmentListResponse>;
6402
+ /**
6403
+ * Add a manual adjustment to a statement. Positive `amount_usd` charges
6404
+ * the shop (reducing their payout); negative credits them.
6405
+ *
6406
+ * `POST /settlement/statements/{statementId}/adjustments`
6407
+ */
6408
+ createStatementAdjustment(statementId: string, params: StatementAdjustmentCreateRequest, options?: RequestExtras): Promise<StatementAdjustment>;
6409
+ /**
6410
+ * Remove a manual adjustment from a statement.
6411
+ *
6412
+ * `DELETE /settlement/statements/{statementId}/adjustments/{adjustmentId}`
6413
+ */
6414
+ deleteStatementAdjustment(statementId: string, adjustmentId: string, options?: RequestExtras): Promise<void>;
6415
+ }
6416
+
6417
+ /**
6418
+ * Per-operation spending limits (refunds today): rules scoped to the
6419
+ * merchant, a role or a user, plus the merchant-level enforcement settings.
6420
+ * Enforcement resolves the most specific rule: user > role > merchant.
6421
+ */
6422
+ declare class OperationLimits {
6423
+ private readonly request;
6424
+ constructor(request: RequestFn);
6425
+ /**
6426
+ * List the merchant's limit rules, optionally for one operation.
6427
+ *
6428
+ * `GET /operation-limits/rules`
6429
+ */
6430
+ listRules(params?: OperationLimitRuleListParams, options?: RequestExtras): Promise<OperationLimitRule[]>;
6431
+ /**
6432
+ * Create or replace the limit rule for one target. Full-replace upsert:
6433
+ * absent limit fields clear that dimension.
6434
+ *
6435
+ * `PUT /operation-limits/rules`
6436
+ */
6437
+ upsertRule(params: UpsertOperationLimitRuleRequest, options?: RequestExtras): Promise<OperationLimitRule>;
6438
+ /**
6439
+ * Delete a limit rule.
6440
+ *
6441
+ * `DELETE /operation-limits/rules/{ruleId}`
6442
+ */
6443
+ deleteRule(ruleId: string, options?: RequestExtras): Promise<OperationLimitRuleDeleteResponse>;
6444
+ /**
6445
+ * The merchant-level enforcement settings. An untouched merchant gets the
6446
+ * defaults: rolling window, admins not exempt.
6447
+ *
6448
+ * `GET /operation-limits/settings`
6449
+ */
6450
+ retrieveSettings(options?: RequestExtras): Promise<OperationLimitSettings>;
6451
+ /**
6452
+ * Update the enforcement settings. Only provided fields change.
6453
+ *
6454
+ * `PUT /operation-limits/settings`
6455
+ */
6456
+ updateSettings(params: UpdateOperationLimitSettingsRequest, options?: RequestExtras): Promise<OperationLimitSettings>;
5632
6457
  }
5633
6458
 
5634
6459
  /**
@@ -5683,6 +6508,19 @@ interface RequestOptions {
5683
6508
  * with a `DelopayError` carrying code `'ABORTED'`. Combined with the per-request timeout.
5684
6509
  */
5685
6510
  signal?: AbortSignal;
6511
+ /**
6512
+ * How to decode a 2xx response body. `'json'` (the default) parses JSON;
6513
+ * `'blob'` / `'arraybuffer'` return the raw bytes for binary endpoints
6514
+ * such as PDF exports. Error responses are always decoded as JSON and
6515
+ * thrown as `DelopayError` regardless of this setting.
6516
+ */
6517
+ responseType?: 'json' | 'blob' | 'arraybuffer';
6518
+ /**
6519
+ * Pass `keepalive: true` to let the request outlive its page — e.g.
6520
+ * telemetry sent while the document is navigating away. Browsers cap
6521
+ * keepalive request bodies at ~64 KiB and reject larger ones.
6522
+ */
6523
+ keepalive?: boolean;
5686
6524
  }
5687
6525
  type RequestFn = <T>(method: string, path: string, options?: RequestOptions) => Promise<T>;
5688
6526
  /**
@@ -5745,6 +6583,8 @@ declare class Delopay {
5745
6583
  readonly relay: Relay;
5746
6584
  readonly stripeConnect: StripeConnect;
5747
6585
  readonly threeDsRules: ThreeDsRules;
6586
+ readonly settlement: Settlement;
6587
+ readonly operationLimits: OperationLimits;
5748
6588
  readonly subscriptions: Subscriptions;
5749
6589
  readonly files: Files;
5750
6590
  readonly export: Export;
@@ -6371,6 +7211,166 @@ declare function parseImportedBranding(raw: unknown): CheckoutBranding;
6371
7211
  declare function applyBrandingVariables(el: HTMLElement, b: CheckoutBranding): void;
6372
7212
  declare function shadowFor(style: SurfaceStyle): string;
6373
7213
 
7214
+ /**
7215
+ * A publishable (browser-safe) API key. The template type rejects secret
7216
+ * keys (`prd_…` / `snd_…`) at compile time, so a checkout cannot be handed
7217
+ * a credential that would reach secret-key routes.
7218
+ */
7219
+ type PublishableKey = `pk_${string}`;
7220
+ /** Configuration for a {@link CheckoutSession}. */
7221
+ interface CheckoutSessionOptions {
7222
+ /** The merchant the payment belongs to. */
7223
+ merchantId: string;
7224
+ /** The payment this session is about. */
7225
+ paymentId: string;
7226
+ /**
7227
+ * The merchant's publishable key (`pk_prd_…` / `pk_snd_…`), from the
7228
+ * checkout payload's `pub_key`. Required for the `/payments/*` and
7229
+ * `/payment-methods` calls.
7230
+ */
7231
+ publishableKey?: PublishableKey;
7232
+ /**
7233
+ * The payment's client secret, from the checkout payload. Required for
7234
+ * every `/payment-link/*` call, and rides along on the payment calls.
7235
+ */
7236
+ clientSecret?: string;
7237
+ /** Override the API base URL (e.g. `/api` behind a same-origin proxy). */
7238
+ baseUrl?: string;
7239
+ /** Use the sandbox environment. Ignored when `baseUrl` is set. */
7240
+ sandbox?: boolean;
7241
+ /** Per-request timeout in milliseconds. */
7242
+ timeout?: number;
7243
+ /** Maximum automatic retries for retryable requests. */
7244
+ maxRetries?: number;
7245
+ debug?: boolean;
7246
+ logger?: DelopayLogger;
7247
+ }
7248
+ /**
7249
+ * Buyer-side client for a single hosted-checkout payment.
7250
+ *
7251
+ * Binds the two browser-safe credentials once — the merchant's publishable
7252
+ * key and the payment's client secret — and sends each request with exactly
7253
+ * the credential its route expects:
7254
+ *
7255
+ * - `/payment-link/*` side-channel routes authenticate with
7256
+ * `Authorization: Bearer <client_secret>`.
7257
+ * - `/payments/*` and `/payment-methods` authenticate with the publishable
7258
+ * key in the `api-key` header, with the client secret as query parameter
7259
+ * or body field.
7260
+ *
7261
+ * Neither credential can reach a secret-key route: the publishable key is
7262
+ * typed to the `pk_` prefix and the client secret only ever leaves as a
7263
+ * bearer token / parameter, never as an `api-key`.
7264
+ *
7265
+ * @example
7266
+ * ```typescript
7267
+ * const session = new CheckoutSession({
7268
+ * merchantId: checkout.merchant_id,
7269
+ * paymentId: checkout.payment_id,
7270
+ * publishableKey: checkout.pub_key,
7271
+ * clientSecret: checkout.client_secret,
7272
+ * });
7273
+ * const catalog = await session.payseproMethods('de');
7274
+ * ```
7275
+ */
7276
+ declare class CheckoutSession {
7277
+ private readonly client;
7278
+ private readonly merchantId;
7279
+ private readonly paymentId;
7280
+ private readonly publishableKey?;
7281
+ private readonly clientSecret?;
7282
+ constructor(options: CheckoutSessionOptions);
7283
+ private get linkBase();
7284
+ /** Headers for the client-secret bearer routes (`/payment-link/*`). */
7285
+ private bearerHeaders;
7286
+ /** Headers for the publishable-key routes (`/payments/*`, `/payment-methods`). */
7287
+ private pkHeaders;
7288
+ private requireClientSecret;
7289
+ /**
7290
+ * The Paysepro rail catalog for the buyer's country.
7291
+ *
7292
+ * `GET /payment-link/{merchantId}/{paymentId}/paysepro/methods`
7293
+ *
7294
+ * @param country - Lowercase ISO 3166-1 alpha-2 country code.
7295
+ */
7296
+ payseproMethods(country: string, options?: RequestExtras): Promise<PayseproMethodsResponse>;
7297
+ /**
7298
+ * The e-Payouts rail catalog for the buyer's country, plus the set of
7299
+ * countries that have at least one vendor.
7300
+ *
7301
+ * `GET /payment-link/{merchantId}/{paymentId}/epayouts/methods`
7302
+ *
7303
+ * @param country - Lowercase ISO 3166-1 alpha-2 country code.
7304
+ */
7305
+ epayoutsMethods(country: string, options?: RequestExtras): Promise<EpayoutsMethodsResponse>;
7306
+ /**
7307
+ * Record a buyer-side checkout event on the payment's status timeline.
7308
+ *
7309
+ * Telemetry semantics, built in so callers can genuinely fire-and-forget:
7310
+ * the request is sent with `keepalive: true` (it survives the document
7311
+ * navigating away, e.g. right before a `window.open`), and transport or
7312
+ * server failures resolve to `undefined` instead of rejecting — telemetry
7313
+ * must never break a checkout or surface an unhandled rejection. Do not
7314
+ * `await` this in a click handler that must stay synchronous.
7315
+ *
7316
+ * A missing client secret still throws `MISSING_CREDENTIAL`: that is a
7317
+ * wiring bug, not a telemetry failure.
7318
+ *
7319
+ * `POST /payment-link/{merchantId}/{paymentId}/checkout-events`
7320
+ */
7321
+ recordEvent(params: RecordCheckoutEventRequest, options?: RequestExtras): Promise<RecordCheckoutEventResponse | undefined>;
7322
+ /**
7323
+ * A short-lived VGS Collect session for browser-side card capture.
7324
+ *
7325
+ * A 404 — or a 400 carrying the "shop has no vault" code — means the shop
7326
+ * has no vault configured; other errors must NOT be treated that way (a
7327
+ * refused vault falling back to an unprotected card pane is exactly the
7328
+ * bug this endpoint's error contract exists to prevent).
7329
+ *
7330
+ * `GET /payment-link/{merchantId}/{paymentId}/vault/collect-session`
7331
+ */
7332
+ vaultCollectSession(options?: RequestExtras): Promise<VaultCollectSessionResponse>;
7333
+ /**
7334
+ * Register the aliased card as a payment method and mint the one-shot
7335
+ * `payment_token` the confirm call spends.
7336
+ *
7337
+ * `POST /payment-link/{merchantId}/{paymentId}/vault/payment-method`
7338
+ */
7339
+ registerVaultPaymentMethod(params: VaultPaymentMethodRequest, options?: RequestExtras): Promise<VaultPaymentMethodResponse>;
7340
+ /**
7341
+ * The payment's current state — status polling for redirect/popup rails.
7342
+ *
7343
+ * `GET /payments/{paymentId}` (publishable key + client secret)
7344
+ */
7345
+ retrievePayment(options?: RequestExtras): Promise<PaymentResponse>;
7346
+ /**
7347
+ * Update the payment before confirmation (e.g. persist custom-field
7348
+ * answers as `metadata` on rails that never hit `/confirm`). The client
7349
+ * secret is attached automatically.
7350
+ *
7351
+ * `POST /payments/{paymentId}` (publishable key)
7352
+ */
7353
+ updatePayment(params: PaymentUpdateRequest, options?: RequestExtras): Promise<PaymentResponse>;
7354
+ /**
7355
+ * Confirm the payment. The client secret is attached automatically; pass
7356
+ * an `Idempotency-Key` header via `options` to make retries safe.
7357
+ *
7358
+ * `POST /payments/{paymentId}/confirm` (publishable key)
7359
+ */
7360
+ confirmPayment(params: PaymentConfirmRequest, options?: RequestExtras): Promise<PaymentResponse>;
7361
+ /**
7362
+ * Payment methods available for this payment.
7363
+ *
7364
+ * `GET /payment-methods` (publishable key + client secret)
7365
+ *
7366
+ * @param params - Optional filters; `country` is the highest-precedence
7367
+ * geo hint, ahead of billing address and IP geolocation.
7368
+ */
7369
+ listPaymentMethods(params?: {
7370
+ country?: string;
7371
+ }, options?: RequestExtras): Promise<PaymentMethodListResponse>;
7372
+ }
7373
+
6374
7374
  /**
6375
7375
  * How the focused external checkout charges a paned method. Decided
6376
7376
  * server-side; the browser never picks.
@@ -6600,4 +7600,4 @@ declare function focusedCheckoutUrl(params: FocusedCheckoutUrlParams): string;
6600
7600
  declare const CHECKOUT_EVENT_KINDS: readonly ["native_pane_selected", "native_pane_tab_opened", "native_pane_tab_blocked", "native_pane_abandoned", "native_pane_returned"];
6601
7601
  type CheckoutEventKind = (typeof CHECKOUT_EVENT_KINDS)[number];
6602
7602
 
6603
- export { ALL_CUSTOM_FIELD_CONDITION_SOURCES, ALL_CUSTOM_FIELD_OPERATORS, ALL_CUSTOM_FIELD_TYPES, type AddUserRequest, type AddUserResponse, type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, type AmountRange, Analytics, type AnalyticsChild, type AnalyticsConnectorDay, type AnalyticsConnectorSeries, AnalyticsDashboard, type AnalyticsDayBucket, type AnalyticsMethodSlice, type AnalyticsScopeRequest, type AnalyticsScopeResponse, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyListConstraints, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AttemptStatus, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, type AvailabilityOverrideCreateRequest, type AvailabilityOverrideResponse, AvailabilityOverrides, type AvailabilityPreviewMethod, type AvailabilityPreviewParams, type AvailabilityPreviewResponse, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, type BankCodeResponse, type BankDebitTypes, type BankTransferTypes, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlockedAttempt, type BlockedAttemptListParams, type BlockedAttemptListResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BrandingExport, type BrandingSource, type BuiltInRegionGroupResponse, type 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, type CancelSubscriptionRequest, type CancelSubscriptionResponse, type CaptureMethod, type CardDetail, type CardDetailFromLocker, type CardNetworkTypes, Cards, type ChangePasswordRequest, type CheckoutBranding, type CheckoutCustomField, type CheckoutEventKind, type ConditionNode, type ConfirmSubscriptionPaymentDetails, type ConfirmSubscriptionRequest, type ConfirmSubscriptionResponse, type Connector, type ConnectorCloneRequest, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorSelection, type ConnectorType, type ConnectorUpdateRequest, type ConnectorVolumeSplit, type ConnectorWebhookEntry, type ConnectorWebhookEventType, type ConnectorWebhookListResponse, type ConnectorWebhookRegisterRequest, type ConnectorWebhookRegisterResponse, type ConnectorWebhookSyncResponse, type ConnectorWebhookSyncResult, type CornerRadius, type CreateAndConfirmSubscriptionRequest, type CreateSubscriptionPaymentDetails, type CreateSubscriptionRequest, type Currency, type CurrencyRevenue, type CustomFieldCondition, type CustomFieldConditionSource, type CustomFieldContext, type CustomFieldOperator, type CustomFieldOption, type CustomFieldTranslations, type CustomFieldType, type CustomFieldVisibility, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, type DeleteAccountRequest, type DeleteUserRoleRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceBlock, type DisputeEvidenceRequest, type DisputeEvidenceType, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EncodedBranding, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EuclidComparison, type EuclidComparisonType, type EuclidIfStatement, type EuclidValue, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, FeeProgramBuilder, type FeeRuleConditions, type FeeRuleDefaultPrecedence, type FeeRuleInput, type FeeRulePreviewRequest, type FeeRulePreviewResponse, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeSpecInput, type FeeType, Files, type FocusedCheckoutUrlParams, type FontFamily, type FontWeight, Forex, type ForgotPasswordRequest, type FromEmailRequest, type FutureUsage, type GatewayConnectRequest, type GatewayResponse, type GetSubscriptionItemsParams, type GetSubscriptionItemsResponse, type GlobalSearchRequest, type GroupNode, type ImpersonateEmployeeRequest, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type InvoiceStatus, type LabelStyle, type LayoutStyle, type LeafNode, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, type ListUsersInLineageParams, type LoginHistoryEntry, type LoginHistoryParams, type LoginHistoryResponse, type LogoShape, type LogoSize, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type MerchantRoutingAlgorithm, type MethodSurcharge, type MinimalRoleInfo, NATIVE_PANES_MAX, NATIVE_PANE_CATEGORY_KEYS, NATIVE_PANE_ICON_KEYS, type NativePaneMethodInfo, type NativePaneOpenTarget, type NativePaneRail, type NativePaneView, type NativePaneVisibility, type NonPillRadius, type OverrideAction, type OverrideScope, type ParentGroup, type ParentGroupInfo, type PauseSubscriptionRequest, type PauseSubscriptionResponse, type PaymentAttemptResponse, type PaymentAttemptsListResponse, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentErrorDetails, type PaymentExperience, type PaymentExperienceTypes, type PaymentIdFormatConfig, type PaymentIdStyle, type PaymentIntentStateMetadata, type PaymentLayout, type PaymentLinkBackgroundImageConfig, type PaymentLinkConfigRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentLinkTransactionDetails, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodAmountLimits, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodDisplayInfo, type PaymentMethodListInstallmentAmountDetails, type PaymentMethodListInstallmentOption, type PaymentMethodListInstallmentPlan, type PaymentMethodListIntentData, type PaymentMethodListParams, type PaymentMethodListResponse, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentRetrieveOptions, type PaymentStatusHistoryEntityType, type PaymentStatusHistoryEvent, type PaymentStatusHistoryResponse, type PaymentUpdateRequest, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PerMethodSurchargeItem, type PermissionScope, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PlatformFeeKind, type PlatformFeeOutput, type PlatformFeeProgram, type PlatformFeeRule, type PlatformFeeRuleInput, type PlatformFeeRuleOutput, type PlatformFeeRuleRecord, type PlatformFeeRuleRequest, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileDefaultRoutingConfig, type ProfileDeniedConnectorsResponse, type ProfileLogoUploadResponse, type ProfileResponse, type ProfileUpdateRequest, type ProgramConnectorSelection, type ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, type RefundAggregateResponse, type RefundCreateRequest, type RefundListParams, type RefundListResponse, type RefundResponse, type RefundStatus, type RefundType, type RefundUpdateRequest, type RegionCountriesResponse, type RegionCreateRequest, type RegionResponse, type RegionSetCountriesRequest, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestExtras, type RequestFn, type RequestOptions, type RequiredFieldInfo, type ResetPasswordRequest, type ResponsePaymentMethodTypes, type ResponsePaymentMethodsEnabled, type ResumeSubscriptionRequest, type ResumeSubscriptionResponse, type RoutableConnectorChoice, type RoutingActivatePayload, type RoutingConfigCreateRequest, type RoutingConfigResponse, type RoutingDeactivateRequest, type RoutingDictionary, type RoutingDictionaryRecord, type RuleConnectorSelection, STRIPE_NATIVE_PANE_METHODS, Search, type SearchGroupResponse, type SearchIndex, type SearchStatus, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopStatsResponse, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SizeScale, type SpacingScale, type StaticRoutingAlgorithm, type StatsPeriod, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type StripeNativePane, type StripePaymentMethodDomainResult, type StripePaymentMethodDomainStatus, type StripePaymentMethodDomainsRegisterRequest, type StripePaymentMethodDomainsRegisterResponse, type SubscriptionEstimateParams, type SubscriptionEstimateResponse, type SubscriptionInvoice, type SubscriptionItem, type SubscriptionItemPrice, type SubscriptionItemType, type SubscriptionLineItem, type SubscriptionListParams, type SubscriptionPaymentData, type SubscriptionPaymentDetails, type SubscriptionPeriodUnit, type SubscriptionResponse, type SubscriptionStatus, Subscriptions, type SummaryPosition, type SurchargeDetailsResponse, type SurchargeResponse, type SurchargeRuleRequest, type SurchargeRuleResponse, type SurfaceStyle, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TierSummary, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type TrustBadge, type UpdateSubscriptionRequest, type UpdateUserDetailsRequest, type UpdateUserRoleRequest, type UserInLineage, type UserResponse, type UserSessionEntry, type UserSessionListResponse, type UserSessionRevokeResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, type 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 };
7603
+ export { ALL_CUSTOM_FIELD_CONDITION_SOURCES, ALL_CUSTOM_FIELD_OPERATORS, ALL_CUSTOM_FIELD_TYPES, type AddUserRequest, type AddUserResponse, type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, type AmountFilter, type AmountRange, Analytics, type AnalyticsChild, type AnalyticsConnectorDay, type AnalyticsConnectorSeries, AnalyticsDashboard, type AnalyticsDayBucket, type AnalyticsMethodSlice, type AnalyticsScopeRequest, type AnalyticsScopeResponse, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyListConstraints, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AttemptStatus, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, type AvailabilityOverrideCreateRequest, type AvailabilityOverrideResponse, AvailabilityOverrides, type AvailabilityPreviewMethod, type AvailabilityPreviewParams, type AvailabilityPreviewResponse, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, type BankCodeResponse, type BankDebitTypes, type BankTransferTypes, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlockedAttempt, type BlockedAttemptListParams, type BlockedAttemptListResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BrandingExport, type BrandingSource, type BuiltInRegionGroupResponse, type 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, type CancelSubscriptionRequest, type CancelSubscriptionResponse, type CaptureMethod, type CardDetail, type CardDetailFromLocker, type CardNetworkTypes, Cards, type ChangePasswordRequest, type CheckoutBranding, type CheckoutBrandingUpdate, type CheckoutCustomField, type CheckoutEventKind, CheckoutSession, type CheckoutSessionOptions, type ConditionNode, type ConfirmSubscriptionPaymentDetails, type ConfirmSubscriptionRequest, type ConfirmSubscriptionResponse, type Connector, type ConnectorCloneRequest, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorOwnership, type ConnectorResponse, type ConnectorSelection, type ConnectorType, type ConnectorUpdateRequest, type ConnectorVolumeSplit, type ConnectorWebhookEntry, type ConnectorWebhookEventType, type ConnectorWebhookListResponse, type ConnectorWebhookRegisterRequest, type ConnectorWebhookRegisterResponse, type ConnectorWebhookSyncResponse, type ConnectorWebhookSyncResult, type CornerRadius, type CreateAndConfirmSubscriptionRequest, type CreateSubscriptionPaymentDetails, type CreateSubscriptionRequest, type Currency, type CurrencyRevenue, type CustomFieldCondition, type CustomFieldConditionSource, type CustomFieldContext, type CustomFieldOperator, type CustomFieldOption, type CustomFieldTranslations, type CustomFieldType, type CustomFieldVisibility, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, type DeleteAccountRequest, type DeleteUserRoleRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceBlock, type DisputeEvidenceRequest, type DisputeEvidenceType, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EncodedBranding, type EpayoutsMethod, type EpayoutsMethodsResponse, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EuclidComparison, type EuclidComparisonType, type EuclidIfStatement, type EuclidValue, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, FeeProgramBuilder, type FeeRuleConditions, type FeeRuleDefaultPrecedence, type FeeRuleInput, type FeeRulePreviewRequest, type FeeRulePreviewResponse, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeSpecInput, type FeeStatementDetail, type FeeStatementSummary, type FeeType, Files, type FocusedCheckoutUrlParams, type FontFamily, type FontWeight, Forex, type ForgotPasswordRequest, type FromEmailRequest, type FutureUsage, type GatewayConnectRequest, type GatewayResponse, type GetSubscriptionItemsParams, type GetSubscriptionItemsResponse, type GlobalSearchRequest, type GroupNode, type ImpersonateEmployeeRequest, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type InvoiceStatus, type LabelStyle, type LayoutStyle, type LeafNode, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LimitedOperation, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, type ListUsersInLineageParams, type LoginHistoryEntry, type LoginHistoryParams, type LoginHistoryResponse, type LogoShape, type LogoSize, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type MerchantRoutingAlgorithm, type MethodSurcharge, type MinimalRoleInfo, NATIVE_PANES_MAX, NATIVE_PANE_CATEGORY_KEYS, NATIVE_PANE_ICON_KEYS, type NativePaneMethodInfo, type NativePaneOpenTarget, type NativePaneRail, type NativePaneView, type NativePaneVisibility, type NonPillRadius, type OperationLimitOnExceeded, type OperationLimitRule, type OperationLimitRuleDeleteResponse, type OperationLimitRuleListParams, type OperationLimitScope, type OperationLimitSettings, type OperationLimitWindowMode, OperationLimits, type OverrideAction, type OverrideScope, type ParentGroup, type ParentGroupInfo, type PauseSubscriptionRequest, type PauseSubscriptionResponse, type PaymentAttemptResponse, type PaymentAttemptsListResponse, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentClientContextEntry, type PaymentClientContextListResponse, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentErrorDetails, type PaymentExperience, type PaymentExperienceTypes, type PaymentIdFormatConfig, type PaymentIdStyle, type PaymentIntentStateMetadata, type PaymentLayout, type PaymentLinkBackgroundImageConfig, type PaymentLinkConfigRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentLinkTransactionDetails, type PaymentListFilterConstraints, type PaymentListFilteredResponse, type PaymentListOrder, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodAmountLimits, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodDisplayInfo, type PaymentMethodListInstallmentAmountDetails, type PaymentMethodListInstallmentOption, type PaymentMethodListInstallmentPlan, type PaymentMethodListIntentData, type PaymentMethodListParams, type PaymentMethodListResponse, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentRetrieveOptions, type PaymentStatusHistoryEntityType, type PaymentStatusHistoryEvent, type PaymentStatusHistoryResponse, type PaymentUpdateRequest, type PaymentsDeletePolicyResponse, type PaymentsDeleteResponse, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PayseproMethod, type PayseproMethodsResponse, type PerMethodSurchargeItem, type PermissionScope, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PlatformFeeKind, type PlatformFeeOutput, type PlatformFeeProgram, type PlatformFeeRule, type PlatformFeeRuleInput, type PlatformFeeRuleOutput, type PlatformFeeRuleRecord, type PlatformFeeRuleRequest, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileDefaultRoutingConfig, type ProfileDeniedConnectorsResponse, type ProfileLogoUploadResponse, type ProfileResponse, type ProfileUpdateRequest, type ProgramConnectorSelection, type ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type PublishableKey, type RecordCheckoutEventRequest, type RecordCheckoutEventResponse, type RecoveryCodesResponse, type RefundAggregateResponse, type RefundCreateRequest, type RefundListParams, type RefundListResponse, type RefundResponse, type RefundStatus, type RefundType, type RefundUpdateRequest, type RegionCountriesResponse, type RegionCreateRequest, type RegionResponse, type RegionSetCountriesRequest, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestExtras, type RequestFn, type RequestOptions, type RequiredFieldInfo, type ResetPasswordRequest, type ResponsePaymentMethodTypes, type ResponsePaymentMethodsEnabled, type ResumeSubscriptionRequest, type ResumeSubscriptionResponse, type RoutableConnectorChoice, type RoutingActivatePayload, type RoutingConfigCreateRequest, type RoutingConfigResponse, type RoutingDeactivateRequest, type RoutingDictionary, type RoutingDictionaryRecord, type RuleConnectorSelection, STRIPE_NATIVE_PANE_METHODS, Search, type SearchGroupResponse, type SearchIndex, type SearchStatus, Settlement, type SettlementBackfillRequest, type SettlementBackfillResponse, type SettlementBucket, type SettlementCurrentParams, type SettlementCurrentResponse, type SettlementLine, type SettlementLineListParams, type SettlementLineListResponse, type SettlementOverviewParams, type SettlementOverviewResponse, type SettlementPayoutStatus, type SettlementStatementListParams, type SettlementStatementListResponse, type ShopCreateRequest, type ShopFeeConfigEntry, type ShopFeeConfigParams, type ShopFeeConfigResponse, type ShopResponse, type ShopSettlementOverview, type ShopStats, type ShopStatsResponse, type ShopUpdateRequest, type ShopVisibilityResponse, type ShopVisibilityUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SizeScale, type SpacingScale, type StatementAdjustment, type StatementAdjustmentCreateRequest, type StatementAdjustmentListResponse, type StatementGenerateRequest, type StatementPayoutUpdateRequest, type StatementPdfParams, type StaticRoutingAlgorithm, type StatsPeriod, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type StripeNativePane, type StripePaymentMethodDomainResult, type StripePaymentMethodDomainStatus, type StripePaymentMethodDomainsRegisterRequest, type StripePaymentMethodDomainsRegisterResponse, type SubscriptionEstimateParams, type SubscriptionEstimateResponse, type SubscriptionInvoice, type SubscriptionItem, type SubscriptionItemPrice, type SubscriptionItemType, type SubscriptionLineItem, type SubscriptionListParams, type SubscriptionPaymentData, type SubscriptionPaymentDetails, type SubscriptionPaymentLink, type SubscriptionPaymentLookupRequest, type SubscriptionPaymentLookupResponse, type SubscriptionPeriodUnit, type SubscriptionResponse, type SubscriptionStatus, Subscriptions, type SummaryPosition, type SurchargeDetailsResponse, type SurchargeResponse, type SurchargeRuleRequest, type SurchargeRuleResponse, type SurfaceStyle, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TierSummary, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type TrustBadge, type UpdateOperationLimitSettingsRequest, type UpdateSubscriptionRequest, type UpdateUserDetailsRequest, type UpdateUserRoleRequest, type UpsertOperationLimitRuleRequest, type UserInLineage, type UserResponse, type UserSessionEntry, type UserSessionListResponse, type UserSessionRevokeResponse, type VaultCollectSessionResponse, type VaultPaymentMethodRequest, type VaultPaymentMethodResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, type 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 };