@delopay/sdk 0.78.0 → 0.79.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
@@ -474,8 +474,17 @@ interface PaymentAttemptsListResponse {
474
474
  /** Every attempt made on this payment, including failed retries across connectors. */
475
475
  data: PaymentAttemptResponse[];
476
476
  }
477
- /** Which entity a status-history event belongs to. */
478
- type PaymentStatusHistoryEntityType = 'payment' | 'attempt' | 'refund' | 'dispute';
477
+ /**
478
+ * Which entity a status-history event belongs to.
479
+ *
480
+ * `risk` and `checkout` are timeline events with no underlying status change:
481
+ * `risk` carries a processor risk signal (early fraud warning, manual review)
482
+ * and `checkout` a buyer-side checkout event (native-pane selection, external
483
+ * tab opened/blocked, abandonment). For both, `status` holds the event name
484
+ * rather than a payment state, and `entity_id` names what it is about (the
485
+ * processor's signal id, or the native-pane method key).
486
+ */
487
+ type PaymentStatusHistoryEntityType = 'payment' | 'attempt' | 'refund' | 'dispute' | 'risk' | 'checkout';
479
488
  /**
480
489
  * One event on a payment's status timeline: the creation of, or a status
481
490
  * transition on, the payment intent or one of its attempts / refunds /
@@ -6196,4 +6205,218 @@ declare function parseImportedBranding(raw: unknown): CheckoutBranding;
6196
6205
  declare function applyBrandingVariables(el: HTMLElement, b: CheckoutBranding): void;
6197
6206
  declare function shadowFor(style: SurfaceStyle): string;
6198
6207
 
6199
- 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, 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 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 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 FeeRuleInput, type FeeRulePreviewRequest, type FeeRulePreviewResponse, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeSpecInput, type FeeType, Files, 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, 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, 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 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, customFieldContextFromMetadata, customFieldIsTextLike, customFieldOperatorTakesValue, customFieldOptionLabel, customFieldText, decodeBadges, decodeBranding, decodeCustomFields, defaultBranding, defaultCustomFieldVisibility, defaultOperatorForSource, encodeBadges, encodeBranding, encodeCustomFields, evaluateCustomFieldCondition, evaluateCustomFieldVisibility, feeProgram, fontStack, fontWeightValue, inputPadValue, isCheckboxChecked, isDarkSurface, isHexColor, leaf, logoDimensions, parseCustomFieldsLoose, parseImportedBranding, programToTree, radiusValue, ruleMatchToTree, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue, visibleCustomFields };
6208
+ /**
6209
+ * How the focused external checkout charges a paned method. Decided
6210
+ * server-side; the browser never picks.
6211
+ *
6212
+ * - `wallet` — the method rides inside Stripe's `card` rail (Apple Pay, Google
6213
+ * Pay, Link). The focused view charges the **same** PaymentIntent the
6214
+ * embedded checkout already holds, so no second intent is ever created.
6215
+ * - `redirect` — the method has its own `payment_method_types[]` entry. The
6216
+ * focused view confirms through the standard `/payments/{id}/confirm` rail
6217
+ * and follows `next_action.redirect_to_url`.
6218
+ */
6219
+ type NativePaneRail = 'wallet' | 'redirect';
6220
+ /**
6221
+ * Where a pane's tile is offered. Wallet rail only — a redirect pane is
6222
+ * suppressed server-side, before any render knows whether it is framed, so
6223
+ * `embedded_only` there would leave the method unpayable at top level and the
6224
+ * router forces it back to `always`.
6225
+ */
6226
+ type NativePaneVisibility = 'always' | 'embedded_only';
6227
+ /**
6228
+ * One native pane exactly as the merchant configures it. Persisted (JSON) under
6229
+ * `metadata.native_panes` on the Stripe merchant connector account.
6230
+ *
6231
+ * Field names are the wire contract — renaming one is a migration. The router
6232
+ * decodes strictly row by row: a row that fails strict decoding (e.g. a
6233
+ * wrong-typed field like `display_order: "3"`) is dropped whole with a server
6234
+ * log, and the remaining rows still render. This SDK's
6235
+ * {@link decodeNativePanes} is additionally per-property tolerant — including
6236
+ * clamping `display_order` into the router's `i32` range — so a decode→encode
6237
+ * round-trip through the SDK repairs a blob the router would partially drop.
6238
+ */
6239
+ interface StripeNativePane {
6240
+ /** Catalog key of the promoted method — see {@link STRIPE_NATIVE_PANE_METHODS}. */
6241
+ method: string;
6242
+ /** Disabled rows keep their tuning but never reach a buyer. */
6243
+ enabled: boolean;
6244
+ /** Default-language tile label. Empty falls back to the catalog name. */
6245
+ label: string;
6246
+ /** Per-locale overrides of `label`, keyed by checkout locale (`de`, `de-AT`). */
6247
+ labelTranslations: Record<string, string>;
6248
+ /**
6249
+ * Secondary line under the label. `null` means "use the catalog default";
6250
+ * an empty string means the merchant deliberately hid the line. That
6251
+ * distinction is the whole reason this is nullable and `label` is not.
6252
+ */
6253
+ sublabel: string | null;
6254
+ /** Per-locale overrides of `sublabel`. */
6255
+ sublabelTranslations: Record<string, string>;
6256
+ /** Section the tile groups under. Empty falls back to the catalog category. */
6257
+ category: string;
6258
+ /** Built-in icon key — see {@link NATIVE_PANE_ICON_KEYS}. */
6259
+ icon: string;
6260
+ /** Custom inline SVG. Sanitized server-side before it reaches a buyer; a
6261
+ * rejected payload falls back to the built-in `icon`. */
6262
+ iconSvg: string;
6263
+ /** Lower renders first; ties break on catalog order. */
6264
+ displayOrder: number;
6265
+ /** `embedded_only` keeps the wallet inside Stripe's form at top level. */
6266
+ visibility: NativePaneVisibility;
6267
+ }
6268
+ /**
6269
+ * One resolved native pane as the buyer-facing checkout receives it on the
6270
+ * payment-link payload (`native_panes`). Labels are already localized for the
6271
+ * render's locale and icons already sanitized — snake_case because this is the
6272
+ * API wire shape, not the editor's.
6273
+ */
6274
+ interface NativePaneView {
6275
+ method: string;
6276
+ rail: NativePaneRail;
6277
+ label: string;
6278
+ sublabel: string;
6279
+ category: string;
6280
+ icon?: string | null;
6281
+ icon_svg?: string | null;
6282
+ display_order: number;
6283
+ /** Redirect rail only — echo verbatim on confirm, never derive. */
6284
+ payment_method?: string | null;
6285
+ /** Redirect rail only — echo verbatim on confirm, never derive. */
6286
+ payment_method_type?: string | null;
6287
+ /** Redirect rail only — echo verbatim on confirm, never derive. */
6288
+ payment_method_data?: Record<string, unknown> | null;
6289
+ /**
6290
+ * The confirm body needs the buyer's country: merged into
6291
+ * `billing.address.country` and echoed into the single `payment_method_data`
6292
+ * variant's `billing_country`.
6293
+ */
6294
+ requires_billing_country?: boolean;
6295
+ /** `true` when the tile is only offered inside an iframe. Wallet rail only. */
6296
+ embedded_only?: boolean;
6297
+ }
6298
+ /**
6299
+ * Methods that may be promoted to a native pane.
6300
+ *
6301
+ * **The router owns this list** — `core::payment_link::native_panes::CATALOG` in
6302
+ * delopay-backend. This is a mirror so SDK consumers can validate or offer the
6303
+ * promotable methods without a round-trip; keep it in sync when the router's
6304
+ * catalog changes (the control-center keeps its own copy in
6305
+ * `native-panes.model.ts`). Drift is safe in one direction only: the backend
6306
+ * silently drops a key it does not know, so a stale entry here produces a row
6307
+ * that never renders rather than a broken checkout.
6308
+ */
6309
+ interface NativePaneMethodInfo {
6310
+ key: string;
6311
+ rail: NativePaneRail;
6312
+ /** Catalog default label, shown as the editor's placeholder. */
6313
+ defaultLabel: string;
6314
+ /** Catalog default sub-text. */
6315
+ defaultSublabel: string;
6316
+ /** Catalog default section. */
6317
+ defaultCategory: string;
6318
+ /** Catalog default icon key. */
6319
+ defaultIcon: string;
6320
+ }
6321
+ declare const STRIPE_NATIVE_PANE_METHODS: readonly NativePaneMethodInfo[];
6322
+ /** Built-in tile icon keys the buyer-facing checkout ships a glyph for. */
6323
+ declare const NATIVE_PANE_ICON_KEYS: readonly string[];
6324
+ /** Section keys the checkout knows a translated header for. */
6325
+ declare const NATIVE_PANE_CATEGORY_KEYS: readonly string[];
6326
+ /**
6327
+ * Mirror of the router's per-connector cap. Counted differently on each side:
6328
+ * {@link decodeNativePanes} stops after 12 *decoded* rows (entries with a
6329
+ * usable, non-duplicate `method` — junk and duplicate entries don't consume a
6330
+ * slot), while the router caps *accepted* panes (enabled, known,
6331
+ * deduplicated) at 12 — so an oversized hand-written blob may render a pane
6332
+ * this decoder drops. Blobs the SDK itself encodes never exceed the cap.
6333
+ */
6334
+ declare const NATIVE_PANES_MAX = 12;
6335
+ declare function nativePaneMethodInfo(method: string): NativePaneMethodInfo | undefined;
6336
+ declare function defaultNativePane(method: string): StripeNativePane;
6337
+ declare function cloneNativePane(pane: StripeNativePane): StripeNativePane;
6338
+ /**
6339
+ * Decode the stored `metadata.native_panes` blob into editor rows.
6340
+ *
6341
+ * Tolerant like the branding codecs: anything malformed falls back per
6342
+ * property, rows without a usable `method` are dropped, duplicates keep the
6343
+ * first occurrence — except that an enabled row wins over an earlier disabled
6344
+ * one for the same method, because that is the row the router renders — and
6345
+ * decoding stops after {@link NATIVE_PANES_MAX} decoded
6346
+ * rows (dropped junk/duplicate entries don't consume a slot). That is more
6347
+ * forgiving than the router, which drops a strict-decode-failing row whole
6348
+ * (keeping the rest) and caps accepted panes rather than decoded rows — see
6349
+ * {@link StripeNativePane} and {@link NATIVE_PANES_MAX}. Returns `null` when
6350
+ * the input is not an array so the caller can distinguish "never configured"
6351
+ * from "cleared".
6352
+ */
6353
+ declare function decodeNativePanes(raw: unknown): StripeNativePane[] | null;
6354
+ /**
6355
+ * Encode editor rows back into the snake_case blob the connector account
6356
+ * stores. Empty optional strings are omitted so the metadata stays small and a
6357
+ * merchant who typed nothing round-trips as "use the catalog default" rather
6358
+ * than as an explicit empty override.
6359
+ *
6360
+ * `sublabel` is the exception: an explicitly-empty value is preserved (as `""`)
6361
+ * because that is how a merchant hides the second line.
6362
+ */
6363
+ declare function encodeNativePanes(panes: StripeNativePane[]): Record<string, unknown>[];
6364
+ interface FocusedCheckoutUrlParams {
6365
+ /** Base URL of the DeloPay hosted checkout, e.g. `https://checkout.delopay.net`. */
6366
+ checkoutBaseUrl: string;
6367
+ merchantId: string;
6368
+ paymentId: string;
6369
+ /** Native-pane method key to focus on (`apple_pay`, `klarna`, …). */
6370
+ method: string;
6371
+ /** Optional buyer locale, forwarded as `?locale=`. */
6372
+ locale?: string;
6373
+ /**
6374
+ * Set when the merchant's checkout-custom-field answers are already
6375
+ * persisted on the payment — forwarded as `cf=1` so the focused view skips
6376
+ * asking a second time. Purely a UI hint: the values live on the intent
6377
+ * either way, and the backend only accepts the merchant's configured field
6378
+ * keys from a client, so a wrongly-set flag can at worst skip an
6379
+ * informational prompt. This is the same hint the embedded pane sets when
6380
+ * it opens the focused view.
6381
+ */
6382
+ customFieldsCollected?: boolean;
6383
+ }
6384
+ /**
6385
+ * Build the link to the **focused single-method checkout**: the DeloPay hosted
6386
+ * checkout rendered with one payment method, one button, no picker.
6387
+ *
6388
+ * Two callers:
6389
+ * - the embedded checkout, which opens this in a new tab when a buyer clicks
6390
+ * a native pane tile, and
6391
+ * - a merchant running their own checkout, who puts it behind their own
6392
+ * button — the same mechanism without an iframe.
6393
+ *
6394
+ * `method` is not limited to configured native panes. A configured Stripe
6395
+ * native pane gets the focused one-button view; `card`, `paypal`,
6396
+ * `crypto_currency` and the local-methods catalogs (by method key or vendor
6397
+ * code) open the checkout pinned to that method. Methods that exist only as a
6398
+ * tab inside Stripe's Payment Element — iDEAL, Bancontact, P24 and the like,
6399
+ * unless promoted to a native pane — cannot be isolated, because Stripe owns
6400
+ * that surface. An unknown or unavailable method is never a dead end: the
6401
+ * checkout shows a notice with a visible "show all payment methods" action.
6402
+ *
6403
+ * Open it **at the top level** (a new tab or a full-page navigation). The whole
6404
+ * point is that the top-level domain is the registered payment method domain;
6405
+ * rendering it in an iframe puts you back where you started.
6406
+ *
6407
+ * If you open it with `window.open`, call that **synchronously inside the click
6408
+ * handler** or the popup blocker will eat it, and make sure any iframe you
6409
+ * render DeloPay in permits popups (`allow-popups`, plus
6410
+ * `allow-popups-to-escape-sandbox` under a restrictive `sandbox`).
6411
+ */
6412
+ declare function focusedCheckoutUrl(params: FocusedCheckoutUrlParams): string;
6413
+ /**
6414
+ * The closed vocabulary of buyer-side checkout events recorded on the payment's
6415
+ * status timeline. Written through
6416
+ * `POST /payment-link/{merchant_id}/{payment_id}/checkout-events`, authorized
6417
+ * with the payment's `client_secret` as a bearer token.
6418
+ */
6419
+ declare const CHECKOUT_EVENT_KINDS: readonly ["native_pane_selected", "native_pane_tab_opened", "native_pane_tab_blocked", "native_pane_abandoned"];
6420
+ type CheckoutEventKind = (typeof CHECKOUT_EVENT_KINDS)[number];
6421
+
6422
+ 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 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 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 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 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 };
package/dist/index.d.ts CHANGED
@@ -474,8 +474,17 @@ interface PaymentAttemptsListResponse {
474
474
  /** Every attempt made on this payment, including failed retries across connectors. */
475
475
  data: PaymentAttemptResponse[];
476
476
  }
477
- /** Which entity a status-history event belongs to. */
478
- type PaymentStatusHistoryEntityType = 'payment' | 'attempt' | 'refund' | 'dispute';
477
+ /**
478
+ * Which entity a status-history event belongs to.
479
+ *
480
+ * `risk` and `checkout` are timeline events with no underlying status change:
481
+ * `risk` carries a processor risk signal (early fraud warning, manual review)
482
+ * and `checkout` a buyer-side checkout event (native-pane selection, external
483
+ * tab opened/blocked, abandonment). For both, `status` holds the event name
484
+ * rather than a payment state, and `entity_id` names what it is about (the
485
+ * processor's signal id, or the native-pane method key).
486
+ */
487
+ type PaymentStatusHistoryEntityType = 'payment' | 'attempt' | 'refund' | 'dispute' | 'risk' | 'checkout';
479
488
  /**
480
489
  * One event on a payment's status timeline: the creation of, or a status
481
490
  * transition on, the payment intent or one of its attempts / refunds /
@@ -6196,4 +6205,218 @@ declare function parseImportedBranding(raw: unknown): CheckoutBranding;
6196
6205
  declare function applyBrandingVariables(el: HTMLElement, b: CheckoutBranding): void;
6197
6206
  declare function shadowFor(style: SurfaceStyle): string;
6198
6207
 
6199
- 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, 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 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 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 FeeRuleInput, type FeeRulePreviewRequest, type FeeRulePreviewResponse, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeSpecInput, type FeeType, Files, 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, 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, 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 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, customFieldContextFromMetadata, customFieldIsTextLike, customFieldOperatorTakesValue, customFieldOptionLabel, customFieldText, decodeBadges, decodeBranding, decodeCustomFields, defaultBranding, defaultCustomFieldVisibility, defaultOperatorForSource, encodeBadges, encodeBranding, encodeCustomFields, evaluateCustomFieldCondition, evaluateCustomFieldVisibility, feeProgram, fontStack, fontWeightValue, inputPadValue, isCheckboxChecked, isDarkSurface, isHexColor, leaf, logoDimensions, parseCustomFieldsLoose, parseImportedBranding, programToTree, radiusValue, ruleMatchToTree, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue, visibleCustomFields };
6208
+ /**
6209
+ * How the focused external checkout charges a paned method. Decided
6210
+ * server-side; the browser never picks.
6211
+ *
6212
+ * - `wallet` — the method rides inside Stripe's `card` rail (Apple Pay, Google
6213
+ * Pay, Link). The focused view charges the **same** PaymentIntent the
6214
+ * embedded checkout already holds, so no second intent is ever created.
6215
+ * - `redirect` — the method has its own `payment_method_types[]` entry. The
6216
+ * focused view confirms through the standard `/payments/{id}/confirm` rail
6217
+ * and follows `next_action.redirect_to_url`.
6218
+ */
6219
+ type NativePaneRail = 'wallet' | 'redirect';
6220
+ /**
6221
+ * Where a pane's tile is offered. Wallet rail only — a redirect pane is
6222
+ * suppressed server-side, before any render knows whether it is framed, so
6223
+ * `embedded_only` there would leave the method unpayable at top level and the
6224
+ * router forces it back to `always`.
6225
+ */
6226
+ type NativePaneVisibility = 'always' | 'embedded_only';
6227
+ /**
6228
+ * One native pane exactly as the merchant configures it. Persisted (JSON) under
6229
+ * `metadata.native_panes` on the Stripe merchant connector account.
6230
+ *
6231
+ * Field names are the wire contract — renaming one is a migration. The router
6232
+ * decodes strictly row by row: a row that fails strict decoding (e.g. a
6233
+ * wrong-typed field like `display_order: "3"`) is dropped whole with a server
6234
+ * log, and the remaining rows still render. This SDK's
6235
+ * {@link decodeNativePanes} is additionally per-property tolerant — including
6236
+ * clamping `display_order` into the router's `i32` range — so a decode→encode
6237
+ * round-trip through the SDK repairs a blob the router would partially drop.
6238
+ */
6239
+ interface StripeNativePane {
6240
+ /** Catalog key of the promoted method — see {@link STRIPE_NATIVE_PANE_METHODS}. */
6241
+ method: string;
6242
+ /** Disabled rows keep their tuning but never reach a buyer. */
6243
+ enabled: boolean;
6244
+ /** Default-language tile label. Empty falls back to the catalog name. */
6245
+ label: string;
6246
+ /** Per-locale overrides of `label`, keyed by checkout locale (`de`, `de-AT`). */
6247
+ labelTranslations: Record<string, string>;
6248
+ /**
6249
+ * Secondary line under the label. `null` means "use the catalog default";
6250
+ * an empty string means the merchant deliberately hid the line. That
6251
+ * distinction is the whole reason this is nullable and `label` is not.
6252
+ */
6253
+ sublabel: string | null;
6254
+ /** Per-locale overrides of `sublabel`. */
6255
+ sublabelTranslations: Record<string, string>;
6256
+ /** Section the tile groups under. Empty falls back to the catalog category. */
6257
+ category: string;
6258
+ /** Built-in icon key — see {@link NATIVE_PANE_ICON_KEYS}. */
6259
+ icon: string;
6260
+ /** Custom inline SVG. Sanitized server-side before it reaches a buyer; a
6261
+ * rejected payload falls back to the built-in `icon`. */
6262
+ iconSvg: string;
6263
+ /** Lower renders first; ties break on catalog order. */
6264
+ displayOrder: number;
6265
+ /** `embedded_only` keeps the wallet inside Stripe's form at top level. */
6266
+ visibility: NativePaneVisibility;
6267
+ }
6268
+ /**
6269
+ * One resolved native pane as the buyer-facing checkout receives it on the
6270
+ * payment-link payload (`native_panes`). Labels are already localized for the
6271
+ * render's locale and icons already sanitized — snake_case because this is the
6272
+ * API wire shape, not the editor's.
6273
+ */
6274
+ interface NativePaneView {
6275
+ method: string;
6276
+ rail: NativePaneRail;
6277
+ label: string;
6278
+ sublabel: string;
6279
+ category: string;
6280
+ icon?: string | null;
6281
+ icon_svg?: string | null;
6282
+ display_order: number;
6283
+ /** Redirect rail only — echo verbatim on confirm, never derive. */
6284
+ payment_method?: string | null;
6285
+ /** Redirect rail only — echo verbatim on confirm, never derive. */
6286
+ payment_method_type?: string | null;
6287
+ /** Redirect rail only — echo verbatim on confirm, never derive. */
6288
+ payment_method_data?: Record<string, unknown> | null;
6289
+ /**
6290
+ * The confirm body needs the buyer's country: merged into
6291
+ * `billing.address.country` and echoed into the single `payment_method_data`
6292
+ * variant's `billing_country`.
6293
+ */
6294
+ requires_billing_country?: boolean;
6295
+ /** `true` when the tile is only offered inside an iframe. Wallet rail only. */
6296
+ embedded_only?: boolean;
6297
+ }
6298
+ /**
6299
+ * Methods that may be promoted to a native pane.
6300
+ *
6301
+ * **The router owns this list** — `core::payment_link::native_panes::CATALOG` in
6302
+ * delopay-backend. This is a mirror so SDK consumers can validate or offer the
6303
+ * promotable methods without a round-trip; keep it in sync when the router's
6304
+ * catalog changes (the control-center keeps its own copy in
6305
+ * `native-panes.model.ts`). Drift is safe in one direction only: the backend
6306
+ * silently drops a key it does not know, so a stale entry here produces a row
6307
+ * that never renders rather than a broken checkout.
6308
+ */
6309
+ interface NativePaneMethodInfo {
6310
+ key: string;
6311
+ rail: NativePaneRail;
6312
+ /** Catalog default label, shown as the editor's placeholder. */
6313
+ defaultLabel: string;
6314
+ /** Catalog default sub-text. */
6315
+ defaultSublabel: string;
6316
+ /** Catalog default section. */
6317
+ defaultCategory: string;
6318
+ /** Catalog default icon key. */
6319
+ defaultIcon: string;
6320
+ }
6321
+ declare const STRIPE_NATIVE_PANE_METHODS: readonly NativePaneMethodInfo[];
6322
+ /** Built-in tile icon keys the buyer-facing checkout ships a glyph for. */
6323
+ declare const NATIVE_PANE_ICON_KEYS: readonly string[];
6324
+ /** Section keys the checkout knows a translated header for. */
6325
+ declare const NATIVE_PANE_CATEGORY_KEYS: readonly string[];
6326
+ /**
6327
+ * Mirror of the router's per-connector cap. Counted differently on each side:
6328
+ * {@link decodeNativePanes} stops after 12 *decoded* rows (entries with a
6329
+ * usable, non-duplicate `method` — junk and duplicate entries don't consume a
6330
+ * slot), while the router caps *accepted* panes (enabled, known,
6331
+ * deduplicated) at 12 — so an oversized hand-written blob may render a pane
6332
+ * this decoder drops. Blobs the SDK itself encodes never exceed the cap.
6333
+ */
6334
+ declare const NATIVE_PANES_MAX = 12;
6335
+ declare function nativePaneMethodInfo(method: string): NativePaneMethodInfo | undefined;
6336
+ declare function defaultNativePane(method: string): StripeNativePane;
6337
+ declare function cloneNativePane(pane: StripeNativePane): StripeNativePane;
6338
+ /**
6339
+ * Decode the stored `metadata.native_panes` blob into editor rows.
6340
+ *
6341
+ * Tolerant like the branding codecs: anything malformed falls back per
6342
+ * property, rows without a usable `method` are dropped, duplicates keep the
6343
+ * first occurrence — except that an enabled row wins over an earlier disabled
6344
+ * one for the same method, because that is the row the router renders — and
6345
+ * decoding stops after {@link NATIVE_PANES_MAX} decoded
6346
+ * rows (dropped junk/duplicate entries don't consume a slot). That is more
6347
+ * forgiving than the router, which drops a strict-decode-failing row whole
6348
+ * (keeping the rest) and caps accepted panes rather than decoded rows — see
6349
+ * {@link StripeNativePane} and {@link NATIVE_PANES_MAX}. Returns `null` when
6350
+ * the input is not an array so the caller can distinguish "never configured"
6351
+ * from "cleared".
6352
+ */
6353
+ declare function decodeNativePanes(raw: unknown): StripeNativePane[] | null;
6354
+ /**
6355
+ * Encode editor rows back into the snake_case blob the connector account
6356
+ * stores. Empty optional strings are omitted so the metadata stays small and a
6357
+ * merchant who typed nothing round-trips as "use the catalog default" rather
6358
+ * than as an explicit empty override.
6359
+ *
6360
+ * `sublabel` is the exception: an explicitly-empty value is preserved (as `""`)
6361
+ * because that is how a merchant hides the second line.
6362
+ */
6363
+ declare function encodeNativePanes(panes: StripeNativePane[]): Record<string, unknown>[];
6364
+ interface FocusedCheckoutUrlParams {
6365
+ /** Base URL of the DeloPay hosted checkout, e.g. `https://checkout.delopay.net`. */
6366
+ checkoutBaseUrl: string;
6367
+ merchantId: string;
6368
+ paymentId: string;
6369
+ /** Native-pane method key to focus on (`apple_pay`, `klarna`, …). */
6370
+ method: string;
6371
+ /** Optional buyer locale, forwarded as `?locale=`. */
6372
+ locale?: string;
6373
+ /**
6374
+ * Set when the merchant's checkout-custom-field answers are already
6375
+ * persisted on the payment — forwarded as `cf=1` so the focused view skips
6376
+ * asking a second time. Purely a UI hint: the values live on the intent
6377
+ * either way, and the backend only accepts the merchant's configured field
6378
+ * keys from a client, so a wrongly-set flag can at worst skip an
6379
+ * informational prompt. This is the same hint the embedded pane sets when
6380
+ * it opens the focused view.
6381
+ */
6382
+ customFieldsCollected?: boolean;
6383
+ }
6384
+ /**
6385
+ * Build the link to the **focused single-method checkout**: the DeloPay hosted
6386
+ * checkout rendered with one payment method, one button, no picker.
6387
+ *
6388
+ * Two callers:
6389
+ * - the embedded checkout, which opens this in a new tab when a buyer clicks
6390
+ * a native pane tile, and
6391
+ * - a merchant running their own checkout, who puts it behind their own
6392
+ * button — the same mechanism without an iframe.
6393
+ *
6394
+ * `method` is not limited to configured native panes. A configured Stripe
6395
+ * native pane gets the focused one-button view; `card`, `paypal`,
6396
+ * `crypto_currency` and the local-methods catalogs (by method key or vendor
6397
+ * code) open the checkout pinned to that method. Methods that exist only as a
6398
+ * tab inside Stripe's Payment Element — iDEAL, Bancontact, P24 and the like,
6399
+ * unless promoted to a native pane — cannot be isolated, because Stripe owns
6400
+ * that surface. An unknown or unavailable method is never a dead end: the
6401
+ * checkout shows a notice with a visible "show all payment methods" action.
6402
+ *
6403
+ * Open it **at the top level** (a new tab or a full-page navigation). The whole
6404
+ * point is that the top-level domain is the registered payment method domain;
6405
+ * rendering it in an iframe puts you back where you started.
6406
+ *
6407
+ * If you open it with `window.open`, call that **synchronously inside the click
6408
+ * handler** or the popup blocker will eat it, and make sure any iframe you
6409
+ * render DeloPay in permits popups (`allow-popups`, plus
6410
+ * `allow-popups-to-escape-sandbox` under a restrictive `sandbox`).
6411
+ */
6412
+ declare function focusedCheckoutUrl(params: FocusedCheckoutUrlParams): string;
6413
+ /**
6414
+ * The closed vocabulary of buyer-side checkout events recorded on the payment's
6415
+ * status timeline. Written through
6416
+ * `POST /payment-link/{merchant_id}/{payment_id}/checkout-events`, authorized
6417
+ * with the payment's `client_secret` as a bearer token.
6418
+ */
6419
+ declare const CHECKOUT_EVENT_KINDS: readonly ["native_pane_selected", "native_pane_tab_opened", "native_pane_tab_blocked", "native_pane_abandoned"];
6420
+ type CheckoutEventKind = (typeof CHECKOUT_EVENT_KINDS)[number];
6421
+
6422
+ 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 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 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 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 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 };