///
export declare type DiscountType = {
type: string;
value: number;
totalCost: number;
code: string;
};
export declare type CartItemValidationType = {
sku: string;
quantity: number;
basePrice: {
code: string;
value: number;
};
};
export declare type ValidCouponArgsType = {
memberID?: string;
membershipModelID?: string;
items?: [CartItemValidationType];
shippingMethod?: string;
payment?: {
method: string;
providerId: string;
};
date?: number;
totalCost?: {
code: string;
value: number;
};
};
export declare type OrderSummaryPropsType = {
onSubmit?: () => void;
currency?: string;
icons?: IconsType;
pointsApplied?: string;
submitButtonLabel?: string;
loadingComponent?: React.ReactNode;
emptyStateComponent?: React.ReactNode;
continueShoppingLabel?: string;
classes?: Partial;
withoutPopup?: boolean;
page?: string;
continueShoppingRoute?: string;
onSaveCartError?: (err: string) => void;
onErrorMsg: (message: React.ReactNode | string) => void;
onAddressInvalid?: (msg: string) => void;
onErrorMsgCoupon?: (msg: string) => void;
onReadyComponent?: (status: boolean) => void;
couponLoadingComponent?: React.ReactNode;
pointsLoadingComponent?: React.ReactNode;
isAccordion?: boolean;
withoutButton?: boolean;
pointsIncrementButtonLabel?: React.ReactNode;
pointsDecrementButtonLabel?: React.ReactNode;
};
export declare type OrderSummaryClassesType = {
containerClassName?: string;
headerClassName?: string;
footerClassName?: string;
continueShoppingClassName?: string;
submitButtonClassName?: string;
pointEarnedBannerClassName?: string;
};
export declare type CouponDetailClassesType = {
voucherButtonAppliedClassName?: string;
voucherAppliedIconClassName?: string;
voucherAppliedTextClassName?: string;
voucherButtonClassName?: string;
voucherIconClassName?: string;
voucherTextClassName?: string;
voucherButtonRemoveClassName?: string;
};
export declare type PointsDetailClassesType = {
pointsButtonAppliedClassName?: string;
pointsButtonClassName?: string;
pointsIconClassName?: string;
pointsTextClassName?: string;
pointsAppliedTextClassName?: string;
};
export declare type PopupPropsType = {
onErrorMsg?: (msg: string) => void;
activeCoupon?: string;
appliedPoints?: number;
loadingComponent?: React.ReactNode;
getTotalCoupon?: (total: number) => void;
getTotalPoints?: (total: number) => void;
withoutPopup?: boolean;
isActive?: boolean;
page?: string;
validCouponArgs?: ValidCouponArgsType;
closeButtonIcon?: React.ReactNode;
codeIcon?: React.ReactNode;
pointsIcon?: React.ReactNode;
classes?: PopupClassesType;
incrementButtonLabel?: React.ReactNode;
decrementButtonLabel?: React.ReactNode;
handlePopUp: (isActive: boolean) => void;
handleSubmit?: (discount: DiscountType) => void;
handlePointsSubmit?: (pointsValue: number) => void;
onErrorMsgCoupon?: (msg: string) => void;
};
export declare type PopupClassesType = {
popupClassName?: string;
popupBackgroundClassName?: string;
closeButtonClassName?: string;
voucherContainerClassName?: string;
voucherFormContainerClassName?: string;
voucherFormClassName?: string;
voucherInputClassName?: string;
voucherSubmitButtonClassName?: string;
voucherListClassName?: string;
voucherListHeaderClassName?: string;
voucherClassName?: string;
voucherDetailClassName?: string;
voucherDetailHeaderClassName?: string;
voucherDetailCodeClassName?: string;
voucherDetailTitleClassName?: string;
voucherDetailDescClassName?: string;
voucherDetailEstimateClassName?: string;
voucherDetailEstimateDescClassName?: string;
pointsContainerClassName?: string;
pointsSubmitButtonClassName?: string;
changePointsClassName?: string;
pointsFormContainerClassName?: string;
pointsFormClassName?: string;
pointsWarningClassName?: string;
pointsInsufficientClassName?: string;
totalPointsClassName?: string;
numberOfPointsClassName?: string;
pointValueClassName?: string;
pointLabelClassName?: string;
};
export declare type PlaceOrderAddressType = {
[key: string]: string;
districtCode: string;
email: string;
name: string;
phone: string;
postalCode: string;
street: string;
};
export declare type CouponType = {
__typename: string;
isActive: boolean;
isValid: boolean;
ID: string;
code: string;
title: string;
applicableEndTimestamp: number;
couponType: string;
isMemberOnly?: boolean;
minimumPurchase: {
code: string;
value: number;
};
discountValue: {
scalarValue: number;
moneyValue: {
code: string;
value: number;
};
maximumDiscountValue: {
code: string;
value: number;
};
discountType: string;
};
};
declare type DetailInitiateCheckoutType = {
sku: string;
slug: string;
name: string;
currency: string;
price: number;
quantity: number;
};
export declare type InitiateCheckoutType = {
id: string;
contents: DetailInitiateCheckoutType[];
};
export declare type IconsType = {
voucher?: any;
points?: any;
close?: any;
expand?: any;
collapse?: any;
cart?: any;
voucherApplied?: any;
pointsApplied?: any;
voucherRemoved?: React.ReactNode;
};
export declare type PriceBreakdownClassesType = {
expandedDivClassName?: string;
expandedLabelClassName?: string;
expandedPriceClassName?: string;
expandButtonClassName?: string;
deductionPriceClassName?: string;
subTotalClassName?: string;
subTotalTextClassName?: string;
subTotalPriceClassName?: string;
};
export {};