schema updates to rental statuses
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user