refactor
This commit is contained in:
21
core/payments/domain/entities/MemberPayment.ts
Normal file
21
core/payments/domain/entities/MemberPayment.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Domain Entity: MemberPayment
|
||||
*/
|
||||
|
||||
export enum MemberPaymentStatus {
|
||||
PENDING = 'pending',
|
||||
PAID = 'paid',
|
||||
OVERDUE = 'overdue',
|
||||
}
|
||||
|
||||
export interface MemberPayment {
|
||||
id: string;
|
||||
feeId: string;
|
||||
driverId: string;
|
||||
amount: number;
|
||||
platformFee: number;
|
||||
netAmount: number;
|
||||
status: MemberPaymentStatus;
|
||||
dueDate: Date;
|
||||
paidAt?: Date;
|
||||
}
|
||||
Reference in New Issue
Block a user