have the right dispute statuses

This commit is contained in:
jackiettran
2026-01-12 17:00:08 -05:00
parent 80d643c65c
commit 6c9fd8aec2
3 changed files with 79 additions and 3 deletions

View File

@@ -95,8 +95,17 @@ const Rental = sequelize.define("Rental", {
type: DataTypes.STRING,
},
// Dispute tracking fields (for tracking Stripe payment disputes/chargebacks)
// Stripe dispute statuses: https://docs.stripe.com/api/disputes/object#dispute_object-status
stripeDisputeStatus: {
type: DataTypes.ENUM("open", "won", "lost", "warning_closed"),
type: DataTypes.ENUM(
"needs_response",
"under_review",
"won",
"lost",
"warning_needs_response",
"warning_under_review",
"warning_closed"
),
allowNull: true,
},
stripeDisputeId: {