have the right dispute statuses
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user