@delopay/sdk 0.76.0 → 0.78.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
@@ -187,6 +187,26 @@ interface PaymentCreateRequest {
187
187
  browser_info?: Record<string, unknown> | null;
188
188
  /** Set to `true` to generate a hosted payment link for this payment. */
189
189
  payment_link?: boolean | null;
190
+ /**
191
+ * Whether this is a test payment. The environment belongs to the payment, not to
192
+ * the processor.
193
+ *
194
+ * - `true` — run against the processor's sandbox and record the transaction as a
195
+ * test, keeping it out of live transaction lists and analytics. A processor with
196
+ * no sandbox credentials stored is called with the only credentials it has, so a
197
+ * live-only processor will charge for real.
198
+ * - `false` — run live, even if the processor still carries the deprecated
199
+ * account-level test-mode toggle.
200
+ * - omit — the processor's toggle decides, as it did before this field existed.
201
+ *
202
+ * Create-only: `confirm` and `update` can be called from the browser with a client
203
+ * secret, so the environment is fixed when you create the payment on your server.
204
+ *
205
+ * Requires a DeloPay backend that knows this field. The payments API rejects
206
+ * unknown fields, so sending it to an older deployment fails the whole create
207
+ * with `IR_06` rather than ignoring it.
208
+ */
209
+ test_mode?: boolean | null;
190
210
  }
191
211
  interface PaymentUpdateRequest {
192
212
  amount?: number | null;
@@ -349,9 +369,10 @@ interface PaymentResponse {
349
369
  /** Bank statement descriptor (suffix portion). */
350
370
  statement_descriptor_suffix?: string | null;
351
371
  /**
352
- * Whether this payment ran in test mode (against a sandbox/test connector).
353
- * Set at confirm from the connector account's test mode; `null` for payments
354
- * created but never confirmed against a connector.
372
+ * Which environment this payment ran in. Reflects the `test_mode` you sent at
373
+ * create; when you sent nothing it is filled in from the processor's own toggle
374
+ * once a processor is picked, and stays `null` for a payment that never reached
375
+ * one. `null` counts as live everywhere it is filtered on.
355
376
  */
356
377
  test_mode?: boolean | null;
357
378
  [key: string]: unknown;
@@ -730,6 +751,207 @@ interface PaymentMethodListParams {
730
751
  * so the returned set reflects what a customer in that country would see.
731
752
  */
732
753
  country?: string | null;
754
+ /**
755
+ * Order value in minor units. Filters out methods the connector does not
756
+ * accept at that amount, and applies the merchant's own order-value rules —
757
+ * so the returned set is what a customer with this cart would actually see.
758
+ */
759
+ amount?: number | null;
760
+ /** Only return methods that can be used for recurring payments. */
761
+ recurring_enabled?: boolean | null;
762
+ /** Only return methods that support installments. */
763
+ installment_payment_enabled?: boolean | null;
764
+ /** Maximum number of methods to return. */
765
+ limit?: number | null;
766
+ /** Only return card methods supporting all of these networks. */
767
+ card_networks?: string[] | null;
768
+ }
769
+ /**
770
+ * Human-facing name and icon for a payment method type, so you can render your
771
+ * own checkout without maintaining a parallel name/logo table.
772
+ */
773
+ interface PaymentMethodDisplayInfo {
774
+ /** Canonical name, e.g. `"Credit Card"`, `"PayPal"`. English only for now. */
775
+ display_name: string;
776
+ /**
777
+ * Stable lowercase icon identifier, e.g. `"card"`, `"paypal"`. Same value as
778
+ * `payment_method_type`, except that `credit` and `debit` share the `card`
779
+ * slug. Safe to map 1:1 onto your own icon set.
780
+ */
781
+ icon_slug: string;
782
+ /**
783
+ * Absolute URL to a DeloPay-hosted icon, when icon hosting is configured for
784
+ * the deployment. Always `null` today — map `icon_slug` against your own
785
+ * assets.
786
+ */
787
+ icon_url?: string | null;
788
+ }
789
+ /** A closed, inclusive band of order values in minor units. */
790
+ interface AmountRange {
791
+ min_amount: number;
792
+ max_amount: number;
793
+ }
794
+ /**
795
+ * The order values a payment method is available for, so you can re-evaluate
796
+ * your own tiles as the cart total changes instead of re-listing on every
797
+ * keystroke.
798
+ *
799
+ * A method is available when `min_amount <= amount <= max_amount` and the amount
800
+ * falls in none of `excluded_ranges`. Bounds are inclusive minor units in
801
+ * `currency`; `null` means unbounded on that side.
802
+ *
803
+ * Folds together the connector's own configured limits and the merchant's
804
+ * order-value availability rules. Stated in the payment's currency and never
805
+ * converted, which is how the merchant rules are evaluated — so the field is
806
+ * absent when the call resolves no currency.
807
+ */
808
+ interface PaymentMethodAmountLimits {
809
+ currency: Currency;
810
+ min_amount?: number | null;
811
+ max_amount?: number | null;
812
+ /**
813
+ * Bands *inside* `[min_amount, max_amount]` where the method is nevertheless
814
+ * unavailable, produced by a merchant rule hiding it for a closed range.
815
+ * Almost always empty — but the backend enforces these rules on
816
+ * `payments.create`, so a cart total inside one of these bands is refused,
817
+ * not merely untiled.
818
+ */
819
+ excluded_ranges: AmountRange[];
820
+ }
821
+ interface PaymentExperienceTypes {
822
+ payment_experience_type?: PaymentExperience | null;
823
+ /** Merchant-internal: omitted for publishable-key callers. */
824
+ eligible_connectors?: string[];
825
+ }
826
+ interface CardNetworkTypes {
827
+ card_network?: string | null;
828
+ surcharge_details?: SurchargeDetailsResponse | null;
829
+ /** Merchant-internal: omitted for publishable-key callers. */
830
+ eligible_connectors?: string[];
831
+ }
832
+ interface BankCodeResponse {
833
+ bank_name: string[];
834
+ /** Merchant-internal: omitted for publishable-key callers. */
835
+ eligible_connectors?: string[];
836
+ }
837
+ interface BankDebitTypes {
838
+ /** Merchant-internal: omitted for publishable-key callers. */
839
+ eligible_connectors?: string[];
840
+ }
841
+ interface BankTransferTypes {
842
+ /** Merchant-internal: omitted for publishable-key callers. */
843
+ eligible_connectors?: string[];
844
+ }
845
+ interface RequiredFieldInfo {
846
+ required_field: string;
847
+ display_name: string;
848
+ field_type: string;
849
+ value?: string | null;
850
+ }
851
+ type SurchargeResponse = {
852
+ type: 'fixed';
853
+ value: number;
854
+ } | {
855
+ type: 'rate';
856
+ value: {
857
+ percentage: number;
858
+ };
859
+ };
860
+ interface SurchargeDetailsResponse {
861
+ surcharge: SurchargeResponse;
862
+ tax_on_surcharge?: {
863
+ percentage: number;
864
+ } | null;
865
+ display_surcharge_amount: number;
866
+ display_tax_on_surcharge_amount: number;
867
+ display_total_surcharge_amount: number;
868
+ }
869
+ /** One payment method type offered for a payment, with everything needed to render it. */
870
+ interface ResponsePaymentMethodTypes {
871
+ payment_method_type: PaymentMethodType;
872
+ payment_experience?: PaymentExperienceTypes[] | null;
873
+ card_networks?: CardNetworkTypes[] | null;
874
+ /** @deprecated Use the bank list from `required_fields` instead. */
875
+ bank_names?: BankCodeResponse[] | null;
876
+ bank_debits?: BankDebitTypes | null;
877
+ bank_transfers?: BankTransferTypes | null;
878
+ /** Fields the customer must supply for this method, keyed by field path. */
879
+ required_fields?: Record<string, RequiredFieldInfo> | null;
880
+ surcharge_details?: SurchargeDetailsResponse | null;
881
+ /** Merchant-internal: omitted for publishable-key callers. */
882
+ pm_auth_connector?: string | null;
883
+ display?: PaymentMethodDisplayInfo | null;
884
+ amount_limits?: PaymentMethodAmountLimits | null;
885
+ }
886
+ /** The method types offered under one broad payment method (`card`, `wallet`, …). */
887
+ interface ResponsePaymentMethodsEnabled {
888
+ payment_method: PaymentMethod;
889
+ payment_method_types: ResponsePaymentMethodTypes[];
890
+ }
891
+ /**
892
+ * What `paymentMethods.list()` returns: the methods available for a payment,
893
+ * already filtered by country, order value and the merchant's availability
894
+ * rules.
895
+ */
896
+ interface PaymentMethodListResponse {
897
+ redirect_url?: string | null;
898
+ currency: Currency;
899
+ payment_methods: ResponsePaymentMethodsEnabled[];
900
+ mandate_payment: MandateType;
901
+ merchant_name?: string | null;
902
+ show_surcharge_breakup_screen: boolean;
903
+ payment_type?: string | null;
904
+ request_external_three_ds_authentication: boolean;
905
+ collect_shipping_details_from_wallets?: boolean | null;
906
+ collect_billing_details_from_wallets?: boolean | null;
907
+ is_tax_calculation_enabled: boolean;
908
+ sdk_next_action: {
909
+ next_action: string;
910
+ };
911
+ is_guest_customer: boolean;
912
+ /** Payment intent details, present when the call was made with a client secret. */
913
+ intent_data?: PaymentMethodListIntentData | null;
914
+ }
915
+ /** Intent details echoed back with the method list, so a checkout can render without a second call. */
916
+ interface PaymentMethodListIntentData {
917
+ payment_id: string;
918
+ status: IntentStatus;
919
+ amount: number;
920
+ currency?: Currency | null;
921
+ client_secret?: string | null;
922
+ description?: string | null;
923
+ customer_id?: string | null;
924
+ return_url?: string | null;
925
+ setup_future_usage?: FutureUsage | null;
926
+ billing?: Address | null;
927
+ shipping?: Address | null;
928
+ metadata?: Record<string, unknown> | null;
929
+ order_details?: Record<string, unknown>[] | null;
930
+ created?: string | null;
931
+ expires_on?: string | null;
932
+ profile_id?: string | null;
933
+ merchant_order_reference_id?: string | null;
934
+ attempt_count: number;
935
+ installment_options?: PaymentMethodListInstallmentOption[] | null;
936
+ }
937
+ interface PaymentMethodListInstallmentOption {
938
+ payment_method: PaymentMethod;
939
+ available_plans: PaymentMethodListInstallmentPlan[];
940
+ }
941
+ interface PaymentMethodListInstallmentPlan {
942
+ number_of_installments: number;
943
+ billing_frequency: string;
944
+ interest_rate: number;
945
+ amount_details: PaymentMethodListInstallmentAmountDetails;
946
+ }
947
+ interface PaymentMethodListInstallmentAmountDetails {
948
+ /** Amount charged per installment, in major units. */
949
+ amount_per_installment: number;
950
+ /**
951
+ * Total across all installments, in major units. May differ slightly from the
952
+ * order amount because per-installment amounts are rounded up.
953
+ */
954
+ total_amount: number;
733
955
  }
734
956
  interface CustomerPaymentMethodsListParams {
735
957
  client_secret?: string | null;
@@ -3883,12 +4105,47 @@ declare class PaymentMethods {
3883
4105
  */
3884
4106
  delete(methodId: string): Promise<PaymentMethodDeleteResponse>;
3885
4107
  /**
3886
- * List payment methods using a client secret.
4108
+ * List the payment methods available for a payment — the discovery endpoint a
4109
+ * custom checkout renders its tiles from.
3887
4110
  *
3888
- * @param params - Filter by `client_secret`.
3889
- * @returns Array of payment methods.
4111
+ * Callable with a publishable key plus the payment's `client_secret`, so it
4112
+ * runs from the browser. The returned set is already filtered by country,
4113
+ * order value and the merchant's availability rules, and each entry carries
4114
+ * `display` (name + icon slug) and `amount_limits` (the order values it stays
4115
+ * available for) so you do not have to maintain either alongside.
4116
+ *
4117
+ * This is *not* the customer's saved methods — see {@link listForCustomer}.
4118
+ *
4119
+ * @param params - `client_secret`, plus optional `country`, `amount` and filters.
4120
+ * @returns The methods available for the payment, grouped by payment method.
4121
+ *
4122
+ * @example
4123
+ * ```typescript
4124
+ * const { payment_methods } = await delopay.paymentMethods.list({
4125
+ * client_secret: 'pay_abc_secret_xyz',
4126
+ * country: 'DE',
4127
+ * amount: 25000,
4128
+ * });
4129
+ *
4130
+ * for (const group of payment_methods) {
4131
+ * for (const method of group.payment_method_types) {
4132
+ * // Re-check availability yourself as the cart total changes, instead of
4133
+ * // re-listing on every keystroke.
4134
+ * const limits = method.amount_limits;
4135
+ * const available =
4136
+ * !limits ||
4137
+ * ((limits.min_amount == null || cartTotal >= limits.min_amount) &&
4138
+ * (limits.max_amount == null || cartTotal <= limits.max_amount) &&
4139
+ * !limits.excluded_ranges.some(
4140
+ * (band) => cartTotal >= band.min_amount && cartTotal <= band.max_amount,
4141
+ * ));
4142
+ *
4143
+ * if (available) render(method.display?.display_name, method.display?.icon_slug);
4144
+ * }
4145
+ * }
4146
+ * ```
3890
4147
  */
3891
- list(params?: PaymentMethodListParams): Promise<PaymentMethodResponse[]>;
4148
+ list(params?: PaymentMethodListParams): Promise<PaymentMethodListResponse>;
3892
4149
  /**
3893
4150
  * List all saved payment methods for a customer, optionally filtered.
3894
4151
  *
@@ -3958,6 +4215,17 @@ declare class Payments {
3958
4215
  * { headers: { 'Idempotency-Key': 'order_1001' } },
3959
4216
  * );
3960
4217
  * ```
4218
+ *
4219
+ * @example Send `test_mode` to pick the environment per payment, so a staging
4220
+ * deploy cannot charge real cards and a forgotten processor toggle cannot
4221
+ * swallow production traffic:
4222
+ * ```typescript
4223
+ * const payment = await delopay.payments.create({
4224
+ * amount: 5000,
4225
+ * currency: 'EUR',
4226
+ * test_mode: process.env.NODE_ENV !== 'production',
4227
+ * });
4228
+ * ```
3961
4229
  */
3962
4230
  create(params: PaymentCreateRequest, options?: RequestExtras): Promise<PaymentResponse>;
3963
4231
  /**
@@ -5928,4 +6196,4 @@ declare function parseImportedBranding(raw: unknown): CheckoutBranding;
5928
6196
  declare function applyBrandingVariables(el: HTMLElement, b: CheckoutBranding): void;
5929
6197
  declare function shadowFor(style: SurfaceStyle): string;
5930
6198
 
5931
- 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, 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 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, 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 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 PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, 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 ResetPasswordRequest, 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 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 };
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 };