UNPKG

@hachther/mesomb

Version:

JS client for browser to perform mobile payment operation with MeSomb

44 lines (43 loc) 1.28 kB
/** * WalletTransaction model * * @property {string} id - The transaction's id * @property {string} status - The transaction's status * @property {string} type - The transaction's type * @property {number} amount - The transaction's amount * @property {-1 | 1} direction - The transaction's direction * @property {string} wallet - The transaction's wallet * @property {number} balanceAfter - The balance after the transaction * @property {Date} date - The transaction's date * @property {string} country - The transaction's country * @property {string} finTrxId - The transaction's financial transaction id */ export default class WalletTransaction { private readonly data; id: number; status: string; type: string; amount: number; direction: -1 | 1; wallet: string; balanceAfter: number; date: Date; country: string; finTrxId: string; constructor(data: { id: number; status: string; type: string; amount: number; direction: -1 | 1; wallet: string; balance_after: number; ts: string; country: string; fin_trx_id: string; }); /** * @return {Record<string, any>} data from the server */ getData(): Record<string, any>; }