@delopay/sdk 0.18.3 → 0.19.1
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-CFM23H56.js → chunk-QGQR2OBR.js} +661 -2
- package/dist/chunk-QGQR2OBR.js.map +1 -0
- package/dist/index.cjs +689 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +139 -1
- package/dist/index.d.ts +139 -1
- package/dist/index.js +59 -3
- package/dist/internal.cjs +689 -2
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +59 -3
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-CFM23H56.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -3537,4 +3537,142 @@ declare const Webhooks: {
|
|
|
3537
3537
|
verify(rawBody: string | Uint8Array, signatureHeader: string, secret: string): Promise<WebhookEvent>;
|
|
3538
3538
|
};
|
|
3539
3539
|
|
|
3540
|
-
|
|
3540
|
+
type CornerRadius = 'square' | 'small' | 'medium' | 'large' | 'pill';
|
|
3541
|
+
type NonPillRadius = Exclude<CornerRadius, 'pill'>;
|
|
3542
|
+
type SpacingScale = 'compact' | 'comfortable' | 'spacious';
|
|
3543
|
+
type SizeScale = 'sm' | 'md' | 'lg';
|
|
3544
|
+
type SurfaceStyle = 'flat' | 'outlined' | 'elevated';
|
|
3545
|
+
type FontFamily = 'inter' | 'system' | 'serif' | 'mono' | 'roboto' | 'poppins' | 'manrope' | 'dm-sans' | 'space-grotesk' | 'plex-sans' | 'work-sans' | 'open-sans' | 'lora' | 'playfair' | 'plex-mono' | 'jetbrains-mono';
|
|
3546
|
+
type FontWeight = 'regular' | 'medium' | 'semibold' | 'bold';
|
|
3547
|
+
type LayoutStyle = 'compact' | 'split';
|
|
3548
|
+
type SummaryPosition = 'left' | 'right';
|
|
3549
|
+
type LabelStyle = 'above' | 'hidden';
|
|
3550
|
+
type PaymentLayout = 'tabs' | 'accordion' | 'spaced_accordion';
|
|
3551
|
+
type LogoShape = 'square' | 'rounded' | 'circle';
|
|
3552
|
+
type LogoSize = 'sm' | 'md' | 'lg';
|
|
3553
|
+
interface TrustBadge {
|
|
3554
|
+
id: string;
|
|
3555
|
+
label: string;
|
|
3556
|
+
textColor: string;
|
|
3557
|
+
backgroundColor: string;
|
|
3558
|
+
borderColor: string | null;
|
|
3559
|
+
}
|
|
3560
|
+
interface CheckoutBranding {
|
|
3561
|
+
displayName: string;
|
|
3562
|
+
logoUrl: string;
|
|
3563
|
+
tagline: string;
|
|
3564
|
+
showLogo: boolean;
|
|
3565
|
+
logoShape: LogoShape;
|
|
3566
|
+
logoSize: LogoSize;
|
|
3567
|
+
primary: string;
|
|
3568
|
+
background: string;
|
|
3569
|
+
surface: string;
|
|
3570
|
+
text: string;
|
|
3571
|
+
heading: string;
|
|
3572
|
+
muted: string;
|
|
3573
|
+
border: string;
|
|
3574
|
+
accentText: string;
|
|
3575
|
+
buttonBackground: string;
|
|
3576
|
+
buttonText: string;
|
|
3577
|
+
fontFamily: FontFamily;
|
|
3578
|
+
headingWeight: FontWeight;
|
|
3579
|
+
radiusSurface: NonPillRadius;
|
|
3580
|
+
radiusInput: NonPillRadius;
|
|
3581
|
+
radiusButton: CornerRadius;
|
|
3582
|
+
radiusBadge: CornerRadius;
|
|
3583
|
+
surfaceStyle: SurfaceStyle;
|
|
3584
|
+
surfacePadding: SpacingScale;
|
|
3585
|
+
verticalGap: SpacingScale;
|
|
3586
|
+
inputSize: SizeScale;
|
|
3587
|
+
buttonSize: SizeScale;
|
|
3588
|
+
layout: LayoutStyle;
|
|
3589
|
+
summaryPosition: SummaryPosition;
|
|
3590
|
+
showOrderSummary: boolean;
|
|
3591
|
+
summaryGradient: boolean;
|
|
3592
|
+
showTotal: boolean;
|
|
3593
|
+
totalLabel: string;
|
|
3594
|
+
showCurrencyCode: boolean;
|
|
3595
|
+
showOrderItems: boolean;
|
|
3596
|
+
trustBadges: TrustBadge[];
|
|
3597
|
+
headerText: string;
|
|
3598
|
+
payButtonLabel: string;
|
|
3599
|
+
cardTermsMessage: string;
|
|
3600
|
+
footerText: string;
|
|
3601
|
+
supportEmail: string;
|
|
3602
|
+
paymentLayout: PaymentLayout;
|
|
3603
|
+
labelStyle: LabelStyle;
|
|
3604
|
+
showPoweredBy: boolean;
|
|
3605
|
+
customCss: string;
|
|
3606
|
+
}
|
|
3607
|
+
declare function fontStack(family: FontFamily): string;
|
|
3608
|
+
declare function radiusValue(radius: CornerRadius): string;
|
|
3609
|
+
declare function fontWeightValue(weight: FontWeight): string;
|
|
3610
|
+
declare function surfacePadValue(scale: SpacingScale): string;
|
|
3611
|
+
declare function verticalGapValue(scale: SpacingScale): string;
|
|
3612
|
+
declare function inputPadValue(size: SizeScale): string;
|
|
3613
|
+
declare function buttonPadValue(size: SizeScale): string;
|
|
3614
|
+
declare function logoDimensions(size: LogoSize): {
|
|
3615
|
+
px: number;
|
|
3616
|
+
radius: number;
|
|
3617
|
+
};
|
|
3618
|
+
declare function isHexColor(value: string): boolean;
|
|
3619
|
+
declare function isDarkSurface(color: string): boolean;
|
|
3620
|
+
declare const DEFAULT_BADGES: TrustBadge[];
|
|
3621
|
+
declare const DEFAULT_BADGES_DARK: TrustBadge[];
|
|
3622
|
+
declare const DEFAULT_BRANDING: CheckoutBranding;
|
|
3623
|
+
declare const DEFAULT_BRANDING_DARK: CheckoutBranding;
|
|
3624
|
+
declare function defaultBranding(): CheckoutBranding;
|
|
3625
|
+
declare function cloneBranding(b: CheckoutBranding): CheckoutBranding;
|
|
3626
|
+
declare const CUSTOM_CSS_MAX_LENGTH = 50000;
|
|
3627
|
+
declare function sanitizeCustomCss(raw: string | null | undefined): string | null;
|
|
3628
|
+
interface BrandingSource {
|
|
3629
|
+
merchant_name?: string | null;
|
|
3630
|
+
seller_name?: string | null;
|
|
3631
|
+
merchant_logo?: string | null;
|
|
3632
|
+
logo?: string | null;
|
|
3633
|
+
merchant_description?: string | null;
|
|
3634
|
+
theme?: string | null;
|
|
3635
|
+
background_colour?: string | null;
|
|
3636
|
+
payment_button_colour?: string | null;
|
|
3637
|
+
payment_button_text_colour?: string | null;
|
|
3638
|
+
payment_form_header_text?: string | null;
|
|
3639
|
+
payment_button_text?: string | null;
|
|
3640
|
+
custom_message_for_card_terms?: string | null;
|
|
3641
|
+
branding_visibility?: boolean | null;
|
|
3642
|
+
sdk_layout?: string | null;
|
|
3643
|
+
payment_form_label_type?: string | null;
|
|
3644
|
+
sdk_ui_rules?: Record<string, Record<string, string> | null | undefined> | null;
|
|
3645
|
+
}
|
|
3646
|
+
declare function decodeBadges(raw: string | undefined): TrustBadge[] | null;
|
|
3647
|
+
declare function encodeBadges(badges: TrustBadge[]): string;
|
|
3648
|
+
declare function decodeBranding(source: BrandingSource | null | undefined): CheckoutBranding;
|
|
3649
|
+
interface EncodedBranding {
|
|
3650
|
+
theme: string;
|
|
3651
|
+
logo: string | null;
|
|
3652
|
+
seller_name: string | null;
|
|
3653
|
+
sdk_layout: PaymentLayout;
|
|
3654
|
+
payment_button_text: string | null;
|
|
3655
|
+
payment_button_colour: string;
|
|
3656
|
+
payment_button_text_colour: string;
|
|
3657
|
+
background_colour: string;
|
|
3658
|
+
payment_form_header_text: string | null;
|
|
3659
|
+
payment_form_label_type: 'above' | 'never';
|
|
3660
|
+
custom_message_for_card_terms: string | null;
|
|
3661
|
+
sdk_ui_rules: Record<string, Record<string, string>>;
|
|
3662
|
+
branding_visibility: boolean;
|
|
3663
|
+
}
|
|
3664
|
+
declare function encodeBranding<TBase extends object | null | undefined>(branding: CheckoutBranding, base?: TBase): EncodedBranding & (TBase extends object ? TBase : Record<string, never>);
|
|
3665
|
+
declare const BRANDING_EXPORT_FORMAT = "delopay-checkout-branding";
|
|
3666
|
+
declare const BRANDING_EXPORT_VERSION = 1;
|
|
3667
|
+
interface BrandingExport {
|
|
3668
|
+
format: typeof BRANDING_EXPORT_FORMAT;
|
|
3669
|
+
version: number;
|
|
3670
|
+
exported_at: string;
|
|
3671
|
+
branding: CheckoutBranding;
|
|
3672
|
+
}
|
|
3673
|
+
declare function buildBrandingExport(branding: CheckoutBranding): BrandingExport;
|
|
3674
|
+
declare function parseImportedBranding(raw: unknown): CheckoutBranding;
|
|
3675
|
+
declare function applyBrandingVariables(el: HTMLElement, b: CheckoutBranding): void;
|
|
3676
|
+
declare function shadowFor(style: SurfaceStyle): string;
|
|
3677
|
+
|
|
3678
|
+
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, AnalyticsDashboard, 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, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BrandingExport, type BrandingSource, type BusinessPaymentLinkConfig, CUSTOM_CSS_MAX_LENGTH, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type CheckoutBranding, 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 Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EncodedBranding, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeType, Files, type FontFamily, type FontWeight, Forex, type ForgotPasswordRequest, type FromEmailRequest, type GatewayConnectRequest, type GatewayResponse, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type LabelStyle, type LayoutStyle, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, 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 NonPillRadius, 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 PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileDefaultRoutingConfig, 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 RegionCreateRequest, type RegionResponse, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestFn, type RequestOptions, type ResetPasswordRequest, type RoutableConnectorChoice, type RoutingActivatePayload, type RoutingConfigCreateRequest, type RoutingConfigResponse, type RoutingDeactivateRequest, type RoutingDictionary, type RoutingDictionaryRecord, 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 SubscriptionCreateRequest, type SubscriptionListParams, type SubscriptionListResponse, type SubscriptionResponse, type SubscriptionUpdateRequest, Subscriptions, type SummaryPosition, 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 UpdateUserDetailsRequest, type UserResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, decodeBadges, decodeBranding, defaultBranding, encodeBadges, encodeBranding, fontStack, fontWeightValue, inputPadValue, isDarkSurface, isHexColor, logoDimensions, parseImportedBranding, radiusValue, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue };
|
package/dist/index.d.ts
CHANGED
|
@@ -3537,4 +3537,142 @@ declare const Webhooks: {
|
|
|
3537
3537
|
verify(rawBody: string | Uint8Array, signatureHeader: string, secret: string): Promise<WebhookEvent>;
|
|
3538
3538
|
};
|
|
3539
3539
|
|
|
3540
|
-
|
|
3540
|
+
type CornerRadius = 'square' | 'small' | 'medium' | 'large' | 'pill';
|
|
3541
|
+
type NonPillRadius = Exclude<CornerRadius, 'pill'>;
|
|
3542
|
+
type SpacingScale = 'compact' | 'comfortable' | 'spacious';
|
|
3543
|
+
type SizeScale = 'sm' | 'md' | 'lg';
|
|
3544
|
+
type SurfaceStyle = 'flat' | 'outlined' | 'elevated';
|
|
3545
|
+
type FontFamily = 'inter' | 'system' | 'serif' | 'mono' | 'roboto' | 'poppins' | 'manrope' | 'dm-sans' | 'space-grotesk' | 'plex-sans' | 'work-sans' | 'open-sans' | 'lora' | 'playfair' | 'plex-mono' | 'jetbrains-mono';
|
|
3546
|
+
type FontWeight = 'regular' | 'medium' | 'semibold' | 'bold';
|
|
3547
|
+
type LayoutStyle = 'compact' | 'split';
|
|
3548
|
+
type SummaryPosition = 'left' | 'right';
|
|
3549
|
+
type LabelStyle = 'above' | 'hidden';
|
|
3550
|
+
type PaymentLayout = 'tabs' | 'accordion' | 'spaced_accordion';
|
|
3551
|
+
type LogoShape = 'square' | 'rounded' | 'circle';
|
|
3552
|
+
type LogoSize = 'sm' | 'md' | 'lg';
|
|
3553
|
+
interface TrustBadge {
|
|
3554
|
+
id: string;
|
|
3555
|
+
label: string;
|
|
3556
|
+
textColor: string;
|
|
3557
|
+
backgroundColor: string;
|
|
3558
|
+
borderColor: string | null;
|
|
3559
|
+
}
|
|
3560
|
+
interface CheckoutBranding {
|
|
3561
|
+
displayName: string;
|
|
3562
|
+
logoUrl: string;
|
|
3563
|
+
tagline: string;
|
|
3564
|
+
showLogo: boolean;
|
|
3565
|
+
logoShape: LogoShape;
|
|
3566
|
+
logoSize: LogoSize;
|
|
3567
|
+
primary: string;
|
|
3568
|
+
background: string;
|
|
3569
|
+
surface: string;
|
|
3570
|
+
text: string;
|
|
3571
|
+
heading: string;
|
|
3572
|
+
muted: string;
|
|
3573
|
+
border: string;
|
|
3574
|
+
accentText: string;
|
|
3575
|
+
buttonBackground: string;
|
|
3576
|
+
buttonText: string;
|
|
3577
|
+
fontFamily: FontFamily;
|
|
3578
|
+
headingWeight: FontWeight;
|
|
3579
|
+
radiusSurface: NonPillRadius;
|
|
3580
|
+
radiusInput: NonPillRadius;
|
|
3581
|
+
radiusButton: CornerRadius;
|
|
3582
|
+
radiusBadge: CornerRadius;
|
|
3583
|
+
surfaceStyle: SurfaceStyle;
|
|
3584
|
+
surfacePadding: SpacingScale;
|
|
3585
|
+
verticalGap: SpacingScale;
|
|
3586
|
+
inputSize: SizeScale;
|
|
3587
|
+
buttonSize: SizeScale;
|
|
3588
|
+
layout: LayoutStyle;
|
|
3589
|
+
summaryPosition: SummaryPosition;
|
|
3590
|
+
showOrderSummary: boolean;
|
|
3591
|
+
summaryGradient: boolean;
|
|
3592
|
+
showTotal: boolean;
|
|
3593
|
+
totalLabel: string;
|
|
3594
|
+
showCurrencyCode: boolean;
|
|
3595
|
+
showOrderItems: boolean;
|
|
3596
|
+
trustBadges: TrustBadge[];
|
|
3597
|
+
headerText: string;
|
|
3598
|
+
payButtonLabel: string;
|
|
3599
|
+
cardTermsMessage: string;
|
|
3600
|
+
footerText: string;
|
|
3601
|
+
supportEmail: string;
|
|
3602
|
+
paymentLayout: PaymentLayout;
|
|
3603
|
+
labelStyle: LabelStyle;
|
|
3604
|
+
showPoweredBy: boolean;
|
|
3605
|
+
customCss: string;
|
|
3606
|
+
}
|
|
3607
|
+
declare function fontStack(family: FontFamily): string;
|
|
3608
|
+
declare function radiusValue(radius: CornerRadius): string;
|
|
3609
|
+
declare function fontWeightValue(weight: FontWeight): string;
|
|
3610
|
+
declare function surfacePadValue(scale: SpacingScale): string;
|
|
3611
|
+
declare function verticalGapValue(scale: SpacingScale): string;
|
|
3612
|
+
declare function inputPadValue(size: SizeScale): string;
|
|
3613
|
+
declare function buttonPadValue(size: SizeScale): string;
|
|
3614
|
+
declare function logoDimensions(size: LogoSize): {
|
|
3615
|
+
px: number;
|
|
3616
|
+
radius: number;
|
|
3617
|
+
};
|
|
3618
|
+
declare function isHexColor(value: string): boolean;
|
|
3619
|
+
declare function isDarkSurface(color: string): boolean;
|
|
3620
|
+
declare const DEFAULT_BADGES: TrustBadge[];
|
|
3621
|
+
declare const DEFAULT_BADGES_DARK: TrustBadge[];
|
|
3622
|
+
declare const DEFAULT_BRANDING: CheckoutBranding;
|
|
3623
|
+
declare const DEFAULT_BRANDING_DARK: CheckoutBranding;
|
|
3624
|
+
declare function defaultBranding(): CheckoutBranding;
|
|
3625
|
+
declare function cloneBranding(b: CheckoutBranding): CheckoutBranding;
|
|
3626
|
+
declare const CUSTOM_CSS_MAX_LENGTH = 50000;
|
|
3627
|
+
declare function sanitizeCustomCss(raw: string | null | undefined): string | null;
|
|
3628
|
+
interface BrandingSource {
|
|
3629
|
+
merchant_name?: string | null;
|
|
3630
|
+
seller_name?: string | null;
|
|
3631
|
+
merchant_logo?: string | null;
|
|
3632
|
+
logo?: string | null;
|
|
3633
|
+
merchant_description?: string | null;
|
|
3634
|
+
theme?: string | null;
|
|
3635
|
+
background_colour?: string | null;
|
|
3636
|
+
payment_button_colour?: string | null;
|
|
3637
|
+
payment_button_text_colour?: string | null;
|
|
3638
|
+
payment_form_header_text?: string | null;
|
|
3639
|
+
payment_button_text?: string | null;
|
|
3640
|
+
custom_message_for_card_terms?: string | null;
|
|
3641
|
+
branding_visibility?: boolean | null;
|
|
3642
|
+
sdk_layout?: string | null;
|
|
3643
|
+
payment_form_label_type?: string | null;
|
|
3644
|
+
sdk_ui_rules?: Record<string, Record<string, string> | null | undefined> | null;
|
|
3645
|
+
}
|
|
3646
|
+
declare function decodeBadges(raw: string | undefined): TrustBadge[] | null;
|
|
3647
|
+
declare function encodeBadges(badges: TrustBadge[]): string;
|
|
3648
|
+
declare function decodeBranding(source: BrandingSource | null | undefined): CheckoutBranding;
|
|
3649
|
+
interface EncodedBranding {
|
|
3650
|
+
theme: string;
|
|
3651
|
+
logo: string | null;
|
|
3652
|
+
seller_name: string | null;
|
|
3653
|
+
sdk_layout: PaymentLayout;
|
|
3654
|
+
payment_button_text: string | null;
|
|
3655
|
+
payment_button_colour: string;
|
|
3656
|
+
payment_button_text_colour: string;
|
|
3657
|
+
background_colour: string;
|
|
3658
|
+
payment_form_header_text: string | null;
|
|
3659
|
+
payment_form_label_type: 'above' | 'never';
|
|
3660
|
+
custom_message_for_card_terms: string | null;
|
|
3661
|
+
sdk_ui_rules: Record<string, Record<string, string>>;
|
|
3662
|
+
branding_visibility: boolean;
|
|
3663
|
+
}
|
|
3664
|
+
declare function encodeBranding<TBase extends object | null | undefined>(branding: CheckoutBranding, base?: TBase): EncodedBranding & (TBase extends object ? TBase : Record<string, never>);
|
|
3665
|
+
declare const BRANDING_EXPORT_FORMAT = "delopay-checkout-branding";
|
|
3666
|
+
declare const BRANDING_EXPORT_VERSION = 1;
|
|
3667
|
+
interface BrandingExport {
|
|
3668
|
+
format: typeof BRANDING_EXPORT_FORMAT;
|
|
3669
|
+
version: number;
|
|
3670
|
+
exported_at: string;
|
|
3671
|
+
branding: CheckoutBranding;
|
|
3672
|
+
}
|
|
3673
|
+
declare function buildBrandingExport(branding: CheckoutBranding): BrandingExport;
|
|
3674
|
+
declare function parseImportedBranding(raw: unknown): CheckoutBranding;
|
|
3675
|
+
declare function applyBrandingVariables(el: HTMLElement, b: CheckoutBranding): void;
|
|
3676
|
+
declare function shadowFor(style: SurfaceStyle): string;
|
|
3677
|
+
|
|
3678
|
+
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, AnalyticsDashboard, 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, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BrandingExport, type BrandingSource, type BusinessPaymentLinkConfig, CUSTOM_CSS_MAX_LENGTH, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type CheckoutBranding, 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 Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EncodedBranding, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeType, Files, type FontFamily, type FontWeight, Forex, type ForgotPasswordRequest, type FromEmailRequest, type GatewayConnectRequest, type GatewayResponse, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type LabelStyle, type LayoutStyle, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, 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 NonPillRadius, 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 PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileDefaultRoutingConfig, 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 RegionCreateRequest, type RegionResponse, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestFn, type RequestOptions, type ResetPasswordRequest, type RoutableConnectorChoice, type RoutingActivatePayload, type RoutingConfigCreateRequest, type RoutingConfigResponse, type RoutingDeactivateRequest, type RoutingDictionary, type RoutingDictionaryRecord, 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 SubscriptionCreateRequest, type SubscriptionListParams, type SubscriptionListResponse, type SubscriptionResponse, type SubscriptionUpdateRequest, Subscriptions, type SummaryPosition, 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 UpdateUserDetailsRequest, type UserResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, decodeBadges, decodeBranding, defaultBranding, encodeBadges, encodeBranding, fontStack, fontWeightValue, inputPadValue, isDarkSurface, isHexColor, logoDimensions, parseImportedBranding, radiusValue, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Analytics,
|
|
3
3
|
AnalyticsDashboard,
|
|
4
|
+
BRANDING_EXPORT_FORMAT,
|
|
5
|
+
BRANDING_EXPORT_VERSION,
|
|
6
|
+
CUSTOM_CSS_MAX_LENGTH,
|
|
4
7
|
Cards,
|
|
8
|
+
DEFAULT_BADGES,
|
|
9
|
+
DEFAULT_BADGES_DARK,
|
|
10
|
+
DEFAULT_BRANDING,
|
|
11
|
+
DEFAULT_BRANDING_DARK,
|
|
5
12
|
Delopay,
|
|
6
13
|
DelopayAuthenticationError,
|
|
7
14
|
DelopayError,
|
|
@@ -11,12 +18,40 @@ import {
|
|
|
11
18
|
Forex,
|
|
12
19
|
Regions,
|
|
13
20
|
Subscriptions,
|
|
14
|
-
Webhooks
|
|
15
|
-
|
|
21
|
+
Webhooks,
|
|
22
|
+
applyBrandingVariables,
|
|
23
|
+
buildBrandingExport,
|
|
24
|
+
buttonPadValue,
|
|
25
|
+
cloneBranding,
|
|
26
|
+
decodeBadges,
|
|
27
|
+
decodeBranding,
|
|
28
|
+
defaultBranding,
|
|
29
|
+
encodeBadges,
|
|
30
|
+
encodeBranding,
|
|
31
|
+
fontStack,
|
|
32
|
+
fontWeightValue,
|
|
33
|
+
inputPadValue,
|
|
34
|
+
isDarkSurface,
|
|
35
|
+
isHexColor,
|
|
36
|
+
logoDimensions,
|
|
37
|
+
parseImportedBranding,
|
|
38
|
+
radiusValue,
|
|
39
|
+
sanitizeCustomCss,
|
|
40
|
+
shadowFor,
|
|
41
|
+
surfacePadValue,
|
|
42
|
+
verticalGapValue
|
|
43
|
+
} from "./chunk-QGQR2OBR.js";
|
|
16
44
|
export {
|
|
17
45
|
Analytics,
|
|
18
46
|
AnalyticsDashboard,
|
|
47
|
+
BRANDING_EXPORT_FORMAT,
|
|
48
|
+
BRANDING_EXPORT_VERSION,
|
|
49
|
+
CUSTOM_CSS_MAX_LENGTH,
|
|
19
50
|
Cards,
|
|
51
|
+
DEFAULT_BADGES,
|
|
52
|
+
DEFAULT_BADGES_DARK,
|
|
53
|
+
DEFAULT_BRANDING,
|
|
54
|
+
DEFAULT_BRANDING_DARK,
|
|
20
55
|
Delopay,
|
|
21
56
|
DelopayAuthenticationError,
|
|
22
57
|
DelopayError,
|
|
@@ -26,6 +61,27 @@ export {
|
|
|
26
61
|
Forex,
|
|
27
62
|
Regions,
|
|
28
63
|
Subscriptions,
|
|
29
|
-
Webhooks
|
|
64
|
+
Webhooks,
|
|
65
|
+
applyBrandingVariables,
|
|
66
|
+
buildBrandingExport,
|
|
67
|
+
buttonPadValue,
|
|
68
|
+
cloneBranding,
|
|
69
|
+
decodeBadges,
|
|
70
|
+
decodeBranding,
|
|
71
|
+
defaultBranding,
|
|
72
|
+
encodeBadges,
|
|
73
|
+
encodeBranding,
|
|
74
|
+
fontStack,
|
|
75
|
+
fontWeightValue,
|
|
76
|
+
inputPadValue,
|
|
77
|
+
isDarkSurface,
|
|
78
|
+
isHexColor,
|
|
79
|
+
logoDimensions,
|
|
80
|
+
parseImportedBranding,
|
|
81
|
+
radiusValue,
|
|
82
|
+
sanitizeCustomCss,
|
|
83
|
+
shadowFor,
|
|
84
|
+
surfacePadValue,
|
|
85
|
+
verticalGapValue
|
|
30
86
|
};
|
|
31
87
|
//# sourceMappingURL=index.js.map
|