@liquidcommerceteam/elements-sdk
Version:
LiquidCommerce Elements SDK
35 lines (34 loc) • 974 B
TypeScript
import type { DeepPartial } from '@/interfaces/core.interface';
export interface ICheckoutMarketingOptIn {
show: boolean;
checked: boolean;
text: string;
}
export interface ICheckoutLegalMessage {
show: boolean;
text: string;
}
export interface ICheckoutLayout {
emailOptIn: ICheckoutMarketingOptIn;
smsOptIn: ICheckoutMarketingOptIn;
allowGiftCards: boolean;
legalMessage: ICheckoutLegalMessage;
exitUrl: string;
thankYouButtonText: string;
drawerHeaderText: string;
placeOrderButtonText: string;
}
export interface ICheckoutCompleted {
customLogo: string | null;
customText: string | null;
}
export interface ICheckoutTheme {
backgroundColor: string;
checkoutCompleted: ICheckoutCompleted;
preSaleTimerStyle: 'outlined' | 'ghost';
}
export interface ICheckoutComponent {
theme: ICheckoutTheme;
layout: ICheckoutLayout;
}
export type UpdateCheckoutComponent = DeepPartial<ICheckoutComponent>;