import { Document } from 'mongoose'; import { PAYMENT_GATEWAY_TYPES, WALLET_HISTORY_ACTION, WALLET_HISTORY_ITEM_TYPE, WALLET_HISTORY_STATUS, WALLET_HISTORY_TYPE, WALLET_TRANSACTION_USERS_TYPE } from '../constants/app'; import { IDefaultAttributes } from './commonInterface'; import { IUserAttributes } from './userInterface'; export interface IWalletTransactionUsers { userId: string; uuid: string; type: WALLET_TRANSACTION_USERS_TYPE; action: WALLET_HISTORY_ACTION; walletHistoryId: string; userDetails?: IUserAttributes; } export interface IWalletTransactionModelAttributes extends IDefaultAttributes, Document { id: string; tId: string; ptId: string; users: IWalletTransactionUsers[]; type: WALLET_HISTORY_TYPE; totalCoin: number; itemType: WALLET_HISTORY_ITEM_TYPE; instituteId: string; isOtpVerified: boolean; validOtp?: string; voucherCode?: string; validDate?: Date; item: any; status: WALLET_HISTORY_STATUS; orderDetails: any; paymentGateWayType: PAYMENT_GATEWAY_TYPES; refundPtId: PAYMENT_GATEWAY_TYPES; token?: string; redirectUrl?: string; additionalCharges?: any; userId: string; }