UNPKG

@m-nasser-m/medusa-payment-vodafone-cash-manual

Version:

Vodafone Cash manual payment provider for Medusa - Requires manual verification of payments

15 lines 1.85 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Migration20260808020541 = void 0; const migrations_1 = require("@medusajs/framework/mikro-orm/migrations"); class Migration20260808020541 extends migrations_1.Migration { async up() { this.addSql(`create table if not exists "payment_request" ("id" text not null, "provider_id" text not null, "amount" numeric not null, "currency_code" text not null, "phone_number" text not null, "customer_name" text null, "status" text check ("status" in ('pending', 'verified', 'failed', 'refunded', 'canceled')) not null default 'pending', "transaction_reference" text null, "admin_notes" text null, "raw_amount" jsonb not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "payment_request_pkey" primary key ("id"));`); this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_payment_request_deleted_at" ON "payment_request" ("deleted_at") WHERE deleted_at IS NULL;`); } async down() { this.addSql(`drop table if exists "payment_request" cascade;`); } } exports.Migration20260808020541 = Migration20260808020541; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNjA4MDgwMjA1NDEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9wYXltZW50LXJlcXVlc3QvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI2MDgwODAyMDU0MS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx5RUFBcUU7QUFFckUsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUUzQyxLQUFLLENBQUMsRUFBRTtRQUNmLElBQUksQ0FBQyxNQUFNLENBQUMsNGxCQUE0bEIsQ0FBQyxDQUFDO1FBQzFtQixJQUFJLENBQUMsTUFBTSxDQUFDLDJIQUEySCxDQUFDLENBQUM7SUFDM0ksQ0FBQztJQUVRLEtBQUssQ0FBQyxJQUFJO1FBQ2pCLElBQUksQ0FBQyxNQUFNLENBQUMsaURBQWlELENBQUMsQ0FBQztJQUNqRSxDQUFDO0NBRUY7QUFYRCwwREFXQyJ9