This commit is contained in:
jackiettran
2025-09-02 16:15:09 -04:00
parent b52104c3fa
commit b59fc07fc3
23 changed files with 1080 additions and 417 deletions

View File

@@ -29,6 +29,7 @@ export interface User {
country?: string;
profileImage?: string;
isVerified: boolean;
stripeConnectedAccountId?: string;
addresses?: Address[];
}
@@ -101,13 +102,20 @@ export interface Rental {
itemId: string;
renterId: string;
ownerId: string;
startDate: string;
endDate: string;
startTime?: string;
endTime?: string;
startDateTime: string;
endDateTime: string;
totalAmount: number;
// Fee tracking fields
baseRentalAmount?: number;
platformFee?: number;
processingFee?: number;
payoutAmount?: number;
status: "pending" | "confirmed" | "active" | "completed" | "cancelled";
paymentStatus: "pending" | "paid" | "refunded";
// Payout status tracking
payoutStatus?: "pending" | "processing" | "completed" | "failed";
payoutProcessedAt?: string;
stripeTransferId?: string;
deliveryMethod: "pickup" | "delivery";
deliveryAddress?: string;
notes?: string;