import { AddressData } from '../common/FormData.type'; import { Locale } from '../common/Locale.type'; import { CheckoutCallbacks } from './CheckoutCallback.type'; export type Environment = 'test' | 'live'; export type ApplePayContactField = 'email' | 'name' | 'phone' | 'postalAddress' | 'phoneticName'; export type Appearance = { additionalPaymentMethods?: { paypal?: { enabled: boolean; order: number; countries?: string[]; }; applePay?: { enabled: boolean; order: number; displayName?: string; countries?: string[]; requiredBillingContactFields?: ApplePayContactField[]; requiredShippingContactFields?: ApplePayContactField[]; }; }; styles?: { borderRadius: number; buttonColor: string; buttonFontSize: number; buttonTextColor: string; fontFamily: string; fontSize: number; textColor: string; }; layout?: { grouped?: boolean; actionButton?: { translationKey: string; }; phoneNumber?: { enabled: boolean; label?: string; defaultCountry?: string; allowedCountries?: string[]; }; billingFields?: { street?: { enabled: boolean; label?: string; maxLength?: number; }; city?: { enabled: boolean; label?: string; }; state?: { enabled: boolean; label?: string; hiddenForCountries?: string[]; }; zipCode?: { enabled: boolean; label?: string; }; firstName?: { enabled: boolean; label?: string; }; lastName?: { enabled: boolean; label?: string; }; country?: { enabled: boolean; label?: string; options?: string[]; }; }; shippingFields?: { street?: { enabled: boolean; label?: string; maxLength?: number; }; firstName?: { enabled: boolean; label?: string; }; lastName?: { enabled: boolean; label?: string; }; city?: { enabled: boolean; label?: string; }; state?: { enabled: boolean; label?: string; hiddenForCountries?: string[]; }; zipCode?: { enabled: boolean; label?: string; }; country?: { enabled: boolean; label?: string; options?: string[]; }; }; }; }; export type CheckoutConfig = { apiKey: string; returnUrl: string; environment: Environment; callbacks?: CheckoutCallbacks; locale?: Locale; disableErrorMessages?: boolean; manualActionHandling?: boolean; appearance?: Appearance; initialValues?: InitialValues; }; export type InitialValues = { email?: string; name?: string; phoneNumber?: string; billingAddress?: Partial; shippingAddress?: Partial; }; //# sourceMappingURL=CheckoutConfig.type.d.ts.map