Repository URL to install this package:
|
Version:
0.0.15 ▾
|
@skava/packages
/
pages
/
Checkout
/
sections
/
PaymentMethods
/
state
/
PaymentMethodsContainer.d.ts
|
|---|
import { CreditCardDetails as CreditCardIemType } from '@skava/graphql-bindings';
import { TabItemType } from '../typings';
declare class ExpandablePaymentState {
isExpanded: boolean;
handleToggle(): void;
setIsExpanded(isExpanded: boolean): void;
}
declare const expandableState: ExpandablePaymentState;
export { expandableState };
export declare class PaymentMethodsContainer {
static debugName: string;
savedCardList: CreditCardIemType[];
tabList: TabItemType[];
activeCard: CreditCardIemType;
setActiveCard(card: CreditCardIemType): void;
readonly nonActiveCardList: CreditCardIemType[];
readonly hasSavedCards: boolean;
readonly defaultCard: CreditCardIemType | undefined;
readonly activeSavedCard: CreditCardIemType;
updateTabListBasedOnUser(): void;
loadCardList(cardList: CreditCardIemType[]): Promise<void>;
readonly activeTab: TabItemType;
readonly isSavedTabActive: boolean;
readonly isAddNewTabActive: boolean;
selectTab(item: TabItemType): void;
}