- Prefijo v2: MCH - TRACEABILITY-MASTER.yml creado - Listo para integracion como submodulo Workspace: v2.0.0 | SIMCO: v4.0.0
108 lines
5.0 KiB
JavaScript
108 lines
5.0 KiB
JavaScript
"use strict";
|
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.SpeiTransaction = exports.SpeiTransactionStatus = void 0;
|
|
const typeorm_1 = require("typeorm");
|
|
const virtual_account_entity_1 = require("./virtual-account.entity");
|
|
var SpeiTransactionStatus;
|
|
(function (SpeiTransactionStatus) {
|
|
SpeiTransactionStatus["RECEIVED"] = "received";
|
|
SpeiTransactionStatus["RECONCILED"] = "reconciled";
|
|
SpeiTransactionStatus["DISPUTED"] = "disputed";
|
|
})(SpeiTransactionStatus || (exports.SpeiTransactionStatus = SpeiTransactionStatus = {}));
|
|
let SpeiTransaction = class SpeiTransaction {
|
|
};
|
|
exports.SpeiTransaction = SpeiTransaction;
|
|
__decorate([
|
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
__metadata("design:type", String)
|
|
], SpeiTransaction.prototype, "id", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'tenant_id' }),
|
|
__metadata("design:type", String)
|
|
], SpeiTransaction.prototype, "tenantId", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'virtual_account_id', nullable: true }),
|
|
__metadata("design:type", String)
|
|
], SpeiTransaction.prototype, "virtualAccountId", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'sale_id', nullable: true }),
|
|
__metadata("design:type", String)
|
|
], SpeiTransaction.prototype, "saleId", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2 }),
|
|
__metadata("design:type", Number)
|
|
], SpeiTransaction.prototype, "amount", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'sender_clabe', length: 18, nullable: true }),
|
|
__metadata("design:type", String)
|
|
], SpeiTransaction.prototype, "senderClabe", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'sender_name', length: 100, nullable: true }),
|
|
__metadata("design:type", String)
|
|
], SpeiTransaction.prototype, "senderName", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'sender_rfc', length: 13, nullable: true }),
|
|
__metadata("design:type", String)
|
|
], SpeiTransaction.prototype, "senderRfc", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'sender_bank', length: 50, nullable: true }),
|
|
__metadata("design:type", String)
|
|
], SpeiTransaction.prototype, "senderBank", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ length: 50, nullable: true }),
|
|
__metadata("design:type", String)
|
|
], SpeiTransaction.prototype, "reference", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ length: 200, nullable: true }),
|
|
__metadata("design:type", String)
|
|
], SpeiTransaction.prototype, "description", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'tracking_key', length: 50, nullable: true }),
|
|
__metadata("design:type", String)
|
|
], SpeiTransaction.prototype, "trackingKey", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({
|
|
type: 'varchar',
|
|
length: 20,
|
|
default: SpeiTransactionStatus.RECEIVED,
|
|
}),
|
|
__metadata("design:type", String)
|
|
], SpeiTransaction.prototype, "status", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'received_at', type: 'timestamptz' }),
|
|
__metadata("design:type", Date)
|
|
], SpeiTransaction.prototype, "receivedAt", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'reconciled_at', type: 'timestamptz', nullable: true }),
|
|
__metadata("design:type", Date)
|
|
], SpeiTransaction.prototype, "reconciledAt", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'provider_data', type: 'jsonb', nullable: true }),
|
|
__metadata("design:type", Object)
|
|
], SpeiTransaction.prototype, "providerData", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
|
|
__metadata("design:type", Date)
|
|
], SpeiTransaction.prototype, "createdAt", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at' }),
|
|
__metadata("design:type", Date)
|
|
], SpeiTransaction.prototype, "updatedAt", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.ManyToOne)(() => virtual_account_entity_1.VirtualAccount),
|
|
(0, typeorm_1.JoinColumn)({ name: 'virtual_account_id' }),
|
|
__metadata("design:type", virtual_account_entity_1.VirtualAccount)
|
|
], SpeiTransaction.prototype, "virtualAccount", void 0);
|
|
exports.SpeiTransaction = SpeiTransaction = __decorate([
|
|
(0, typeorm_1.Entity)({ schema: 'sales', name: 'spei_transactions' })
|
|
], SpeiTransaction);
|
|
//# sourceMappingURL=spei-transaction.entity.js.map
|