import firebase from 'firebase/compat/app'; import ICart, { PaymentTypeEnum } from '../Cart'; import ICustomer from '../Customer'; export default interface IPayment { readonly amount: number; readonly method: PaymentTypeEnum; readonly paid_at: Date; readonly paid_by?: firebase.firestore.DocumentReference | string; readonly user_email?: string; readonly associated_carts?: firebase.firestore.DocumentReference[] | string[]; readonly is_deposit?: boolean; readonly ref?: string; } /** * Generates and returns a Payment object with props provided. * @param method The PaymentTypeEnum for specific payment method. * @param amount The money amount to associate to payement. Can be a negative value or 0, but must be provided. * @param options.reference Optionnal. The reference or comment string for payement. * @param options.userEmail Optionnal. The email of the Addio user that took the payment. * @param options.paidAtDate Optionnal. If not provided, sets "today" date. */ export declare const generatePaymentObj: (method: PaymentTypeEnum, amount: number, options?: { reference?: string | undefined; userEmail?: string | undefined; paidAtDate?: Date | undefined; }) => IPayment;