import { ModePayType } from './globalConst'; import { IR8BtnProps } from './IR8BtnProps'; /** FireStore Database ModePay JSON Format. Same as IR8ModePay. */ export declare type IR8ModePayFS = IR8ModePay; /** * Payment method definition * The way that a buyer chooses to compensate the seller of a good or service * Stored Inside La Carte * */ export interface IR8ModePay { guid: string; modepay: string; name?: string; payType: ModePayType; description?: string; extref?: string; tags?: string[]; btnProps?: IR8BtnProps; } export declare function ModePayInitialValue(): Partial; /** Default Validation ModePay * Throw Error if fail */ export declare function CheckModePayIsValid(Obj: Partial | Partial): void; /** Default Validation ModePay * return Error message if failure */ export declare function ModePayIsValid(Obj: Partial | Partial): string; /** Serialize IR8ModePay to Firestore JSON */ export declare function ModePay2JSON(Obj: Partial): IR8ModePayFS; /** Serialize Firestore JSON to IR8ModePay. json can be undefined */ export declare function JSON2ModePay(json: Partial | undefined, target: IR8ModePay): void; /** New ModePay from Firestore JSON */ export declare function JSONAsModePay(json?: Partial): IR8ModePay;