@delopay/sdk 0.46.0 → 0.48.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/{chunk-25GERHCM.js → chunk-SX46W7E4.js} +122 -2
- package/dist/chunk-SX46W7E4.js.map +1 -0
- package/dist/index.cjs +126 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +121 -1
- package/dist/index.d.ts +121 -1
- package/dist/index.js +11 -1
- package/dist/internal.cjs +137 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +9 -3
- package/dist/internal.d.ts +9 -3
- package/dist/internal.js +22 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-25GERHCM.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1142,6 +1142,27 @@ interface PlatformFeeRuleRecord {
|
|
|
1142
1142
|
created_at: number;
|
|
1143
1143
|
modified_at: number;
|
|
1144
1144
|
}
|
|
1145
|
+
/** Sample transaction + candidate program for `POST /admin/fees/rules/preview`. */
|
|
1146
|
+
interface FeeRulePreviewRequest {
|
|
1147
|
+
algorithm: PlatformFeeProgram;
|
|
1148
|
+
/** Amount in minor units. */
|
|
1149
|
+
amount: number;
|
|
1150
|
+
currency: Currency;
|
|
1151
|
+
payment_method?: PaymentMethod | null;
|
|
1152
|
+
connector?: Connector | null;
|
|
1153
|
+
card_network?: string | null;
|
|
1154
|
+
/** USD minor units (previous-month volume snapshot). */
|
|
1155
|
+
merchant_volume?: number | null;
|
|
1156
|
+
}
|
|
1157
|
+
interface FeeRulePreviewResponse {
|
|
1158
|
+
/** Matched rule name, or null when only the default selection matched. */
|
|
1159
|
+
matched_rule: string | null;
|
|
1160
|
+
/** True when the matched branch sets no concrete fee (engine falls through to the legacy schedule/tier chain). */
|
|
1161
|
+
fell_through: boolean;
|
|
1162
|
+
/** Computed fee in minor units, or null when fell_through. */
|
|
1163
|
+
fee_amount: number | null;
|
|
1164
|
+
fee_currency: string | null;
|
|
1165
|
+
}
|
|
1145
1166
|
interface ProjectCreateRequest {
|
|
1146
1167
|
project_name: string;
|
|
1147
1168
|
description?: string | null;
|
|
@@ -2419,6 +2440,29 @@ interface AvailabilityOverrideResponse {
|
|
|
2419
2440
|
region_code?: string | null;
|
|
2420
2441
|
action: OverrideAction;
|
|
2421
2442
|
}
|
|
2443
|
+
/** Query for {@link AvailabilityOverrides.preview}. */
|
|
2444
|
+
interface AvailabilityPreviewParams {
|
|
2445
|
+
merchant_id: string;
|
|
2446
|
+
/** Shop / business profile id to preview. */
|
|
2447
|
+
profile_id: string;
|
|
2448
|
+
/** ISO 3166-1 alpha-2 country to preview for; omit for no country signal. */
|
|
2449
|
+
country?: string;
|
|
2450
|
+
}
|
|
2451
|
+
/** One payment method available in the previewed country, with its types. */
|
|
2452
|
+
interface AvailabilityPreviewMethod {
|
|
2453
|
+
payment_method: PaymentMethod;
|
|
2454
|
+
payment_method_types: PaymentMethodType[];
|
|
2455
|
+
}
|
|
2456
|
+
/**
|
|
2457
|
+
* The methods a customer in the previewed country would be shown — the connector
|
|
2458
|
+
* ceiling narrowed by the curated smart defaults and the merchant overrides
|
|
2459
|
+
* (amount/currency narrowing is not applied, so this is an upper bound).
|
|
2460
|
+
*/
|
|
2461
|
+
interface AvailabilityPreviewResponse {
|
|
2462
|
+
/** The country the preview resolved for (echoes the request). */
|
|
2463
|
+
country?: string | null;
|
|
2464
|
+
payment_methods: AvailabilityPreviewMethod[];
|
|
2465
|
+
}
|
|
2422
2466
|
/**
|
|
2423
2467
|
* Top-level permission group recognized by the Delopay API. The
|
|
2424
2468
|
* dashboard (or any client) uses these to hide UI elements for actions
|
|
@@ -3003,6 +3047,15 @@ declare class FeeRulesManager {
|
|
|
3003
3047
|
* (other shops' programs are left intact).
|
|
3004
3048
|
*/
|
|
3005
3049
|
delete(merchantId: string, profileId?: string): Promise<void>;
|
|
3050
|
+
/**
|
|
3051
|
+
* Dry-run a candidate fee-rule program against a sample transaction.
|
|
3052
|
+
* Returns the matched rule name, whether it fell through, and the computed fee.
|
|
3053
|
+
* Does not persist anything.
|
|
3054
|
+
*
|
|
3055
|
+
* @param input - Candidate program + sample transaction fields.
|
|
3056
|
+
* @param merchantId - The merchant account ID.
|
|
3057
|
+
*/
|
|
3058
|
+
preview(input: FeeRulePreviewRequest, merchantId: string): Promise<FeeRulePreviewResponse>;
|
|
3006
3059
|
}
|
|
3007
3060
|
|
|
3008
3061
|
/** View and revoke recurring payment mandates. */
|
|
@@ -4184,6 +4237,13 @@ declare class AvailabilityOverrides {
|
|
|
4184
4237
|
list(merchantId: string): Promise<AvailabilityOverrideResponse[]>;
|
|
4185
4238
|
/** Delete an availability override by id. `DELETE /availability-overrides/{id}` */
|
|
4186
4239
|
delete(id: string): Promise<boolean>;
|
|
4240
|
+
/**
|
|
4241
|
+
* Preview the methods a customer in `country` would be shown for a shop —
|
|
4242
|
+
* the connector ceiling narrowed by the smart country defaults and the
|
|
4243
|
+
* merchant overrides, without an active payment.
|
|
4244
|
+
* `GET /availability-overrides/preview`
|
|
4245
|
+
*/
|
|
4246
|
+
preview(params: AvailabilityPreviewParams): Promise<AvailabilityPreviewResponse>;
|
|
4187
4247
|
}
|
|
4188
4248
|
|
|
4189
4249
|
/**
|
|
@@ -4561,6 +4621,29 @@ declare const Webhooks: {
|
|
|
4561
4621
|
verify(rawBody: string | Uint8Array, signatureHeader: string, secret: string): Promise<WebhookEvent>;
|
|
4562
4622
|
};
|
|
4563
4623
|
|
|
4624
|
+
/** A single condition leaf in the builder's condition tree. */
|
|
4625
|
+
interface LeafNode {
|
|
4626
|
+
kind: 'leaf';
|
|
4627
|
+
lhs: string;
|
|
4628
|
+
comparison: EuclidComparisonType;
|
|
4629
|
+
value: EuclidValue;
|
|
4630
|
+
}
|
|
4631
|
+
/** An AND (`all`) or OR (`any`) group of condition nodes. */
|
|
4632
|
+
interface GroupNode {
|
|
4633
|
+
kind: 'all' | 'any';
|
|
4634
|
+
children: ConditionNode[];
|
|
4635
|
+
}
|
|
4636
|
+
type ConditionNode = LeafNode | GroupNode;
|
|
4637
|
+
/**
|
|
4638
|
+
* A condition leaf. Numeric values (amount, merchant_volume) tag as `number`;
|
|
4639
|
+
* string values (payment_method, connector, currency, card_network) tag as
|
|
4640
|
+
* `enum_variant`.
|
|
4641
|
+
*/
|
|
4642
|
+
declare function leaf(lhs: string, comparison: EuclidComparisonType, value: string | number): LeafNode;
|
|
4643
|
+
/** AND group — all children must match. */
|
|
4644
|
+
declare function allOf(...children: ConditionNode[]): GroupNode;
|
|
4645
|
+
/** OR group — any child matching is enough. */
|
|
4646
|
+
declare function anyOf(...children: ConditionNode[]): GroupNode;
|
|
4564
4647
|
/**
|
|
4565
4648
|
* How a rule (or the default) prices a transaction. `fee_type` is inferred:
|
|
4566
4649
|
* percentage-only → `percentage`, flat-only → `flat`, both → `combined`.
|
|
@@ -4593,6 +4676,16 @@ interface FeeRuleConditions {
|
|
|
4593
4676
|
amountGreaterThan?: number;
|
|
4594
4677
|
/** `amount < n` (minor units). */
|
|
4595
4678
|
amountLessThan?: number;
|
|
4679
|
+
/**
|
|
4680
|
+
* `merchant_volume == n` — the merchant's previous-month volume snapshot
|
|
4681
|
+
* (USD minor units). Combine with any other condition, e.g.
|
|
4682
|
+
* `{ paymentMethod: 'crypto', merchantVolumeGreaterThan: 1_000_000 }`.
|
|
4683
|
+
*/
|
|
4684
|
+
merchantVolumeEquals?: number;
|
|
4685
|
+
/** `merchant_volume > n` (USD minor units). */
|
|
4686
|
+
merchantVolumeGreaterThan?: number;
|
|
4687
|
+
/** `merchant_volume < n` (USD minor units). */
|
|
4688
|
+
merchantVolumeLessThan?: number;
|
|
4596
4689
|
}
|
|
4597
4690
|
interface FeeRuleInput {
|
|
4598
4691
|
name: string;
|
|
@@ -4600,8 +4693,35 @@ interface FeeRuleInput {
|
|
|
4600
4693
|
when?: FeeRuleConditions;
|
|
4601
4694
|
/** Extra raw conditions ANDed in, for dimensions `when` does not cover. */
|
|
4602
4695
|
rawConditions?: EuclidComparison[];
|
|
4696
|
+
/** Nested AND/OR condition tree. Mutually exclusive with `when`/`rawConditions`. */
|
|
4697
|
+
match?: ConditionNode;
|
|
4603
4698
|
fee: FeeSpecInput;
|
|
4604
4699
|
}
|
|
4700
|
+
/**
|
|
4701
|
+
* Decode a rule's `statements[]` back into a condition tree.
|
|
4702
|
+
*
|
|
4703
|
+
* Returns a tree that is **logically equivalent** to the source. It is
|
|
4704
|
+
* deep-equal to `normalizeNode(input)` only when no `all` group contains two
|
|
4705
|
+
* or more `any` groups; where the encoder distributed AND over OR, the decoded
|
|
4706
|
+
* shape differs (still equivalent).
|
|
4707
|
+
*/
|
|
4708
|
+
declare function ruleMatchToTree(statements: EuclidIfStatement[]): ConditionNode;
|
|
4709
|
+
/**
|
|
4710
|
+
* Decode a stored program into the builder's editable model.
|
|
4711
|
+
*
|
|
4712
|
+
* Returns a tree that is **logically equivalent** to the source. It is
|
|
4713
|
+
* deep-equal to `normalizeNode(input)` only when no `all` group contains two
|
|
4714
|
+
* or more `any` groups; where the encoder distributed AND over OR, the decoded
|
|
4715
|
+
* shape differs (still equivalent).
|
|
4716
|
+
*/
|
|
4717
|
+
declare function programToTree(program: PlatformFeeProgram): {
|
|
4718
|
+
rules: {
|
|
4719
|
+
name: string;
|
|
4720
|
+
match: ConditionNode;
|
|
4721
|
+
fee: PlatformFeeOutput | null;
|
|
4722
|
+
}[];
|
|
4723
|
+
otherwise: PlatformFeeOutput | null;
|
|
4724
|
+
};
|
|
4605
4725
|
/**
|
|
4606
4726
|
* Fluent builder for a platform fee-rule program. Emits the exact Euclid wire
|
|
4607
4727
|
* shape (camelCase tree, tagged values, `metadata: {}` everywhere) so callers
|
|
@@ -4774,4 +4894,4 @@ declare function parseImportedBranding(raw: unknown): CheckoutBranding;
|
|
|
4774
4894
|
declare function applyBrandingVariables(el: HTMLElement, b: CheckoutBranding): void;
|
|
4775
4895
|
declare function shadowFor(style: SurfaceStyle): string;
|
|
4776
4896
|
|
|
4777
|
-
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, type AnalyticsChild, type AnalyticsConnectorDay, type AnalyticsConnectorSeries, AnalyticsDashboard, type AnalyticsDayBucket, type AnalyticsScopeRequest, type AnalyticsScopeResponse, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, type AvailabilityOverrideCreateRequest, type AvailabilityOverrideResponse, AvailabilityOverrides, 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, CUSTOM_CSS_MAX_LENGTH, type CancelSubscriptionRequest, type CancelSubscriptionResponse, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type CheckoutBranding, type ConfirmSubscriptionPaymentDetails, type ConfirmSubscriptionRequest, type ConfirmSubscriptionResponse, type Connector, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, 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 CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, type DeleteAccountRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, 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 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 IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type InvoiceStatus, type LabelStyle, type LayoutStyle, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, 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 NonPillRadius, type OverrideAction, type OverrideScope, type ParentGroup, type ParentGroupInfo, type PauseSubscriptionRequest, type PauseSubscriptionResponse, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, 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 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 ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, 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, Search, type SearchGroupResponse, type SearchIndex, type SearchStatus, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SizeScale, type SpacingScale, type StaticRoutingAlgorithm, 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 UserResponse, type UserSessionEntry, type UserSessionListResponse, type UserSessionRevokeResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, decodeBadges, decodeBranding, defaultBranding, encodeBadges, encodeBranding, feeProgram, fontStack, fontWeightValue, inputPadValue, isDarkSurface, isHexColor, logoDimensions, parseImportedBranding, radiusValue, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue };
|
|
4897
|
+
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, type AnalyticsChild, type AnalyticsConnectorDay, type AnalyticsConnectorSeries, AnalyticsDashboard, type AnalyticsDayBucket, type AnalyticsScopeRequest, type AnalyticsScopeResponse, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, 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, CUSTOM_CSS_MAX_LENGTH, type CancelSubscriptionRequest, type CancelSubscriptionResponse, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type CheckoutBranding, type ConditionNode, type ConfirmSubscriptionPaymentDetails, type ConfirmSubscriptionRequest, type ConfirmSubscriptionResponse, type Connector, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, 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 CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, type DeleteAccountRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, 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 IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type InvoiceStatus, type LabelStyle, type LayoutStyle, type LeafNode, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, 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 NonPillRadius, type OverrideAction, type OverrideScope, type ParentGroup, type ParentGroupInfo, type PauseSubscriptionRequest, type PauseSubscriptionResponse, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, 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 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 ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, 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, Search, type SearchGroupResponse, type SearchIndex, type SearchStatus, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SizeScale, type SpacingScale, type StaticRoutingAlgorithm, 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 UserResponse, type UserSessionEntry, type UserSessionListResponse, type UserSessionRevokeResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks, allOf, anyOf, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, decodeBadges, decodeBranding, defaultBranding, encodeBadges, encodeBranding, feeProgram, fontStack, fontWeightValue, inputPadValue, isDarkSurface, isHexColor, leaf, logoDimensions, parseImportedBranding, programToTree, radiusValue, ruleMatchToTree, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue };
|
package/dist/index.d.ts
CHANGED
|
@@ -1142,6 +1142,27 @@ interface PlatformFeeRuleRecord {
|
|
|
1142
1142
|
created_at: number;
|
|
1143
1143
|
modified_at: number;
|
|
1144
1144
|
}
|
|
1145
|
+
/** Sample transaction + candidate program for `POST /admin/fees/rules/preview`. */
|
|
1146
|
+
interface FeeRulePreviewRequest {
|
|
1147
|
+
algorithm: PlatformFeeProgram;
|
|
1148
|
+
/** Amount in minor units. */
|
|
1149
|
+
amount: number;
|
|
1150
|
+
currency: Currency;
|
|
1151
|
+
payment_method?: PaymentMethod | null;
|
|
1152
|
+
connector?: Connector | null;
|
|
1153
|
+
card_network?: string | null;
|
|
1154
|
+
/** USD minor units (previous-month volume snapshot). */
|
|
1155
|
+
merchant_volume?: number | null;
|
|
1156
|
+
}
|
|
1157
|
+
interface FeeRulePreviewResponse {
|
|
1158
|
+
/** Matched rule name, or null when only the default selection matched. */
|
|
1159
|
+
matched_rule: string | null;
|
|
1160
|
+
/** True when the matched branch sets no concrete fee (engine falls through to the legacy schedule/tier chain). */
|
|
1161
|
+
fell_through: boolean;
|
|
1162
|
+
/** Computed fee in minor units, or null when fell_through. */
|
|
1163
|
+
fee_amount: number | null;
|
|
1164
|
+
fee_currency: string | null;
|
|
1165
|
+
}
|
|
1145
1166
|
interface ProjectCreateRequest {
|
|
1146
1167
|
project_name: string;
|
|
1147
1168
|
description?: string | null;
|
|
@@ -2419,6 +2440,29 @@ interface AvailabilityOverrideResponse {
|
|
|
2419
2440
|
region_code?: string | null;
|
|
2420
2441
|
action: OverrideAction;
|
|
2421
2442
|
}
|
|
2443
|
+
/** Query for {@link AvailabilityOverrides.preview}. */
|
|
2444
|
+
interface AvailabilityPreviewParams {
|
|
2445
|
+
merchant_id: string;
|
|
2446
|
+
/** Shop / business profile id to preview. */
|
|
2447
|
+
profile_id: string;
|
|
2448
|
+
/** ISO 3166-1 alpha-2 country to preview for; omit for no country signal. */
|
|
2449
|
+
country?: string;
|
|
2450
|
+
}
|
|
2451
|
+
/** One payment method available in the previewed country, with its types. */
|
|
2452
|
+
interface AvailabilityPreviewMethod {
|
|
2453
|
+
payment_method: PaymentMethod;
|
|
2454
|
+
payment_method_types: PaymentMethodType[];
|
|
2455
|
+
}
|
|
2456
|
+
/**
|
|
2457
|
+
* The methods a customer in the previewed country would be shown — the connector
|
|
2458
|
+
* ceiling narrowed by the curated smart defaults and the merchant overrides
|
|
2459
|
+
* (amount/currency narrowing is not applied, so this is an upper bound).
|
|
2460
|
+
*/
|
|
2461
|
+
interface AvailabilityPreviewResponse {
|
|
2462
|
+
/** The country the preview resolved for (echoes the request). */
|
|
2463
|
+
country?: string | null;
|
|
2464
|
+
payment_methods: AvailabilityPreviewMethod[];
|
|
2465
|
+
}
|
|
2422
2466
|
/**
|
|
2423
2467
|
* Top-level permission group recognized by the Delopay API. The
|
|
2424
2468
|
* dashboard (or any client) uses these to hide UI elements for actions
|
|
@@ -3003,6 +3047,15 @@ declare class FeeRulesManager {
|
|
|
3003
3047
|
* (other shops' programs are left intact).
|
|
3004
3048
|
*/
|
|
3005
3049
|
delete(merchantId: string, profileId?: string): Promise<void>;
|
|
3050
|
+
/**
|
|
3051
|
+
* Dry-run a candidate fee-rule program against a sample transaction.
|
|
3052
|
+
* Returns the matched rule name, whether it fell through, and the computed fee.
|
|
3053
|
+
* Does not persist anything.
|
|
3054
|
+
*
|
|
3055
|
+
* @param input - Candidate program + sample transaction fields.
|
|
3056
|
+
* @param merchantId - The merchant account ID.
|
|
3057
|
+
*/
|
|
3058
|
+
preview(input: FeeRulePreviewRequest, merchantId: string): Promise<FeeRulePreviewResponse>;
|
|
3006
3059
|
}
|
|
3007
3060
|
|
|
3008
3061
|
/** View and revoke recurring payment mandates. */
|
|
@@ -4184,6 +4237,13 @@ declare class AvailabilityOverrides {
|
|
|
4184
4237
|
list(merchantId: string): Promise<AvailabilityOverrideResponse[]>;
|
|
4185
4238
|
/** Delete an availability override by id. `DELETE /availability-overrides/{id}` */
|
|
4186
4239
|
delete(id: string): Promise<boolean>;
|
|
4240
|
+
/**
|
|
4241
|
+
* Preview the methods a customer in `country` would be shown for a shop —
|
|
4242
|
+
* the connector ceiling narrowed by the smart country defaults and the
|
|
4243
|
+
* merchant overrides, without an active payment.
|
|
4244
|
+
* `GET /availability-overrides/preview`
|
|
4245
|
+
*/
|
|
4246
|
+
preview(params: AvailabilityPreviewParams): Promise<AvailabilityPreviewResponse>;
|
|
4187
4247
|
}
|
|
4188
4248
|
|
|
4189
4249
|
/**
|
|
@@ -4561,6 +4621,29 @@ declare const Webhooks: {
|
|
|
4561
4621
|
verify(rawBody: string | Uint8Array, signatureHeader: string, secret: string): Promise<WebhookEvent>;
|
|
4562
4622
|
};
|
|
4563
4623
|
|
|
4624
|
+
/** A single condition leaf in the builder's condition tree. */
|
|
4625
|
+
interface LeafNode {
|
|
4626
|
+
kind: 'leaf';
|
|
4627
|
+
lhs: string;
|
|
4628
|
+
comparison: EuclidComparisonType;
|
|
4629
|
+
value: EuclidValue;
|
|
4630
|
+
}
|
|
4631
|
+
/** An AND (`all`) or OR (`any`) group of condition nodes. */
|
|
4632
|
+
interface GroupNode {
|
|
4633
|
+
kind: 'all' | 'any';
|
|
4634
|
+
children: ConditionNode[];
|
|
4635
|
+
}
|
|
4636
|
+
type ConditionNode = LeafNode | GroupNode;
|
|
4637
|
+
/**
|
|
4638
|
+
* A condition leaf. Numeric values (amount, merchant_volume) tag as `number`;
|
|
4639
|
+
* string values (payment_method, connector, currency, card_network) tag as
|
|
4640
|
+
* `enum_variant`.
|
|
4641
|
+
*/
|
|
4642
|
+
declare function leaf(lhs: string, comparison: EuclidComparisonType, value: string | number): LeafNode;
|
|
4643
|
+
/** AND group — all children must match. */
|
|
4644
|
+
declare function allOf(...children: ConditionNode[]): GroupNode;
|
|
4645
|
+
/** OR group — any child matching is enough. */
|
|
4646
|
+
declare function anyOf(...children: ConditionNode[]): GroupNode;
|
|
4564
4647
|
/**
|
|
4565
4648
|
* How a rule (or the default) prices a transaction. `fee_type` is inferred:
|
|
4566
4649
|
* percentage-only → `percentage`, flat-only → `flat`, both → `combined`.
|
|
@@ -4593,6 +4676,16 @@ interface FeeRuleConditions {
|
|
|
4593
4676
|
amountGreaterThan?: number;
|
|
4594
4677
|
/** `amount < n` (minor units). */
|
|
4595
4678
|
amountLessThan?: number;
|
|
4679
|
+
/**
|
|
4680
|
+
* `merchant_volume == n` — the merchant's previous-month volume snapshot
|
|
4681
|
+
* (USD minor units). Combine with any other condition, e.g.
|
|
4682
|
+
* `{ paymentMethod: 'crypto', merchantVolumeGreaterThan: 1_000_000 }`.
|
|
4683
|
+
*/
|
|
4684
|
+
merchantVolumeEquals?: number;
|
|
4685
|
+
/** `merchant_volume > n` (USD minor units). */
|
|
4686
|
+
merchantVolumeGreaterThan?: number;
|
|
4687
|
+
/** `merchant_volume < n` (USD minor units). */
|
|
4688
|
+
merchantVolumeLessThan?: number;
|
|
4596
4689
|
}
|
|
4597
4690
|
interface FeeRuleInput {
|
|
4598
4691
|
name: string;
|
|
@@ -4600,8 +4693,35 @@ interface FeeRuleInput {
|
|
|
4600
4693
|
when?: FeeRuleConditions;
|
|
4601
4694
|
/** Extra raw conditions ANDed in, for dimensions `when` does not cover. */
|
|
4602
4695
|
rawConditions?: EuclidComparison[];
|
|
4696
|
+
/** Nested AND/OR condition tree. Mutually exclusive with `when`/`rawConditions`. */
|
|
4697
|
+
match?: ConditionNode;
|
|
4603
4698
|
fee: FeeSpecInput;
|
|
4604
4699
|
}
|
|
4700
|
+
/**
|
|
4701
|
+
* Decode a rule's `statements[]` back into a condition tree.
|
|
4702
|
+
*
|
|
4703
|
+
* Returns a tree that is **logically equivalent** to the source. It is
|
|
4704
|
+
* deep-equal to `normalizeNode(input)` only when no `all` group contains two
|
|
4705
|
+
* or more `any` groups; where the encoder distributed AND over OR, the decoded
|
|
4706
|
+
* shape differs (still equivalent).
|
|
4707
|
+
*/
|
|
4708
|
+
declare function ruleMatchToTree(statements: EuclidIfStatement[]): ConditionNode;
|
|
4709
|
+
/**
|
|
4710
|
+
* Decode a stored program into the builder's editable model.
|
|
4711
|
+
*
|
|
4712
|
+
* Returns a tree that is **logically equivalent** to the source. It is
|
|
4713
|
+
* deep-equal to `normalizeNode(input)` only when no `all` group contains two
|
|
4714
|
+
* or more `any` groups; where the encoder distributed AND over OR, the decoded
|
|
4715
|
+
* shape differs (still equivalent).
|
|
4716
|
+
*/
|
|
4717
|
+
declare function programToTree(program: PlatformFeeProgram): {
|
|
4718
|
+
rules: {
|
|
4719
|
+
name: string;
|
|
4720
|
+
match: ConditionNode;
|
|
4721
|
+
fee: PlatformFeeOutput | null;
|
|
4722
|
+
}[];
|
|
4723
|
+
otherwise: PlatformFeeOutput | null;
|
|
4724
|
+
};
|
|
4605
4725
|
/**
|
|
4606
4726
|
* Fluent builder for a platform fee-rule program. Emits the exact Euclid wire
|
|
4607
4727
|
* shape (camelCase tree, tagged values, `metadata: {}` everywhere) so callers
|
|
@@ -4774,4 +4894,4 @@ declare function parseImportedBranding(raw: unknown): CheckoutBranding;
|
|
|
4774
4894
|
declare function applyBrandingVariables(el: HTMLElement, b: CheckoutBranding): void;
|
|
4775
4895
|
declare function shadowFor(style: SurfaceStyle): string;
|
|
4776
4896
|
|
|
4777
|
-
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, type AnalyticsChild, type AnalyticsConnectorDay, type AnalyticsConnectorSeries, AnalyticsDashboard, type AnalyticsDayBucket, type AnalyticsScopeRequest, type AnalyticsScopeResponse, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, type AvailabilityOverrideCreateRequest, type AvailabilityOverrideResponse, AvailabilityOverrides, 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, CUSTOM_CSS_MAX_LENGTH, type CancelSubscriptionRequest, type CancelSubscriptionResponse, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type CheckoutBranding, type ConfirmSubscriptionPaymentDetails, type ConfirmSubscriptionRequest, type ConfirmSubscriptionResponse, type Connector, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, 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 CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, type DeleteAccountRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, 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 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 IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type InvoiceStatus, type LabelStyle, type LayoutStyle, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, 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 NonPillRadius, type OverrideAction, type OverrideScope, type ParentGroup, type ParentGroupInfo, type PauseSubscriptionRequest, type PauseSubscriptionResponse, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, 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 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 ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, 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, Search, type SearchGroupResponse, type SearchIndex, type SearchStatus, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SizeScale, type SpacingScale, type StaticRoutingAlgorithm, 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 UserResponse, type UserSessionEntry, type UserSessionListResponse, type UserSessionRevokeResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, decodeBadges, decodeBranding, defaultBranding, encodeBadges, encodeBranding, feeProgram, fontStack, fontWeightValue, inputPadValue, isDarkSurface, isHexColor, logoDimensions, parseImportedBranding, radiusValue, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue };
|
|
4897
|
+
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, type AnalyticsChild, type AnalyticsConnectorDay, type AnalyticsConnectorSeries, AnalyticsDashboard, type AnalyticsDayBucket, type AnalyticsScopeRequest, type AnalyticsScopeResponse, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, 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, CUSTOM_CSS_MAX_LENGTH, type CancelSubscriptionRequest, type CancelSubscriptionResponse, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type CheckoutBranding, type ConditionNode, type ConfirmSubscriptionPaymentDetails, type ConfirmSubscriptionRequest, type ConfirmSubscriptionResponse, type Connector, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, 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 CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, type DeleteAccountRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, 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 IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type InvoiceStatus, type LabelStyle, type LayoutStyle, type LeafNode, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, 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 NonPillRadius, type OverrideAction, type OverrideScope, type ParentGroup, type ParentGroupInfo, type PauseSubscriptionRequest, type PauseSubscriptionResponse, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, 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 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 ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, 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, Search, type SearchGroupResponse, type SearchIndex, type SearchStatus, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SizeScale, type SpacingScale, type StaticRoutingAlgorithm, 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 UserResponse, type UserSessionEntry, type UserSessionListResponse, type UserSessionRevokeResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks, allOf, anyOf, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, decodeBadges, decodeBranding, defaultBranding, encodeBadges, encodeBranding, feeProgram, fontStack, fontWeightValue, inputPadValue, isDarkSurface, isHexColor, leaf, logoDimensions, parseImportedBranding, programToTree, radiusValue, ruleMatchToTree, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue };
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,8 @@ import {
|
|
|
22
22
|
Search,
|
|
23
23
|
Subscriptions,
|
|
24
24
|
Webhooks,
|
|
25
|
+
allOf,
|
|
26
|
+
anyOf,
|
|
25
27
|
applyBrandingVariables,
|
|
26
28
|
buildBrandingExport,
|
|
27
29
|
buttonPadValue,
|
|
@@ -37,14 +39,17 @@ import {
|
|
|
37
39
|
inputPadValue,
|
|
38
40
|
isDarkSurface,
|
|
39
41
|
isHexColor,
|
|
42
|
+
leaf,
|
|
40
43
|
logoDimensions,
|
|
41
44
|
parseImportedBranding,
|
|
45
|
+
programToTree,
|
|
42
46
|
radiusValue,
|
|
47
|
+
ruleMatchToTree,
|
|
43
48
|
sanitizeCustomCss,
|
|
44
49
|
shadowFor,
|
|
45
50
|
surfacePadValue,
|
|
46
51
|
verticalGapValue
|
|
47
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-SX46W7E4.js";
|
|
48
53
|
export {
|
|
49
54
|
Analytics,
|
|
50
55
|
AnalyticsDashboard,
|
|
@@ -69,6 +74,8 @@ export {
|
|
|
69
74
|
Search,
|
|
70
75
|
Subscriptions,
|
|
71
76
|
Webhooks,
|
|
77
|
+
allOf,
|
|
78
|
+
anyOf,
|
|
72
79
|
applyBrandingVariables,
|
|
73
80
|
buildBrandingExport,
|
|
74
81
|
buttonPadValue,
|
|
@@ -84,9 +91,12 @@ export {
|
|
|
84
91
|
inputPadValue,
|
|
85
92
|
isDarkSurface,
|
|
86
93
|
isHexColor,
|
|
94
|
+
leaf,
|
|
87
95
|
logoDimensions,
|
|
88
96
|
parseImportedBranding,
|
|
97
|
+
programToTree,
|
|
89
98
|
radiusValue,
|
|
99
|
+
ruleMatchToTree,
|
|
90
100
|
sanitizeCustomCss,
|
|
91
101
|
shadowFor,
|
|
92
102
|
surfacePadValue,
|