handling stripe disputes/chargeback where renter disputes the charge through their credit card company or bank

This commit is contained in:
jackiettran
2026-01-08 17:23:55 -05:00
parent 5248c3dc39
commit 3042a9007f
9 changed files with 1119 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
"use strict";
module.exports = {
up: async (queryInterface, Sequelize) => {
// Add 'on_hold' to the existing payoutStatus enum
await queryInterface.sequelize.query(`
ALTER TYPE "enum_Rentals_payoutStatus" ADD VALUE IF NOT EXISTS 'on_hold';
`);
},
down: async (queryInterface, Sequelize) => {
// Note: PostgreSQL doesn't support removing enum values directly
// This would require recreating the enum type
console.log(
"Cannot remove enum value - manual intervention required if rollback needed"
);
},
};