refactor: edit type payment add id and invoice

This commit is contained in:
Thanaphon Frappet 2024-12-18 10:00:03 +07:00
parent 7a591de6f3
commit e8cd7e2df8

View file

@ -34,10 +34,12 @@ export type PaymentFlowAccount = {
}; };
export type Payment = { export type Payment = {
id: string;
code?: string; code?: string;
paymentStatus: string; paymentStatus: string;
date: Date; date: Date;
amount: number; amount: number;
invoice: { id: string; amount: number; installments: { no: number }[] };
}; };
export type Receipt = Payment; export type Receipt = Payment;