schema updates to rental statuses

This commit is contained in:
jackiettran
2025-11-24 18:08:12 -05:00
parent 42a5412582
commit 8e6af92cba
7 changed files with 19 additions and 34 deletions

View File

@@ -211,15 +211,15 @@ const EarningsDashboard: React.FC = () => {
className={`badge ${
rental.payoutStatus === "completed"
? "bg-success"
: rental.payoutStatus === "processing"
? "bg-warning"
: rental.payoutStatus === "failed"
? "bg-danger"
: "bg-secondary"
}`}
>
{rental.payoutStatus === "completed"
? "Paid"
: rental.payoutStatus === "processing"
? "Processing"
: rental.payoutStatus === "failed"
? "Failed"
: "Pending"}
</span>
</td>

View File

@@ -147,7 +147,7 @@ export interface Rental {
stripePaymentIntentId?: string;
stripePaymentMethodId?: string;
// Payout status tracking
payoutStatus?: "pending" | "processing" | "completed" | "failed";
payoutStatus?: "pending" | "completed" | "failed" | null;
payoutProcessedAt?: string;
stripeTransferId?: string;
deliveryMethod: "pickup" | "delivery";