- Prefijo v2: MCH - TRACEABILITY-MASTER.yml creado - Listo para integracion como submodulo Workspace: v2.0.0 | SIMCO: v4.0.0
91 lines
4.1 KiB
JavaScript
91 lines
4.1 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.CodiTransaction = exports.CodiTransactionStatus = void 0;
|
|
const typeorm_1 = require("typeorm");
|
|
var CodiTransactionStatus;
|
|
(function (CodiTransactionStatus) {
|
|
CodiTransactionStatus["PENDING"] = "pending";
|
|
CodiTransactionStatus["CONFIRMED"] = "confirmed";
|
|
CodiTransactionStatus["EXPIRED"] = "expired";
|
|
CodiTransactionStatus["CANCELLED"] = "cancelled";
|
|
})(CodiTransactionStatus || (exports.CodiTransactionStatus = CodiTransactionStatus = {}));
|
|
let CodiTransaction = class CodiTransaction {
|
|
};
|
|
exports.CodiTransaction = CodiTransaction;
|
|
__decorate([
|
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
__metadata("design:type", String)
|
|
], CodiTransaction.prototype, "id", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'tenant_id' }),
|
|
__metadata("design:type", String)
|
|
], CodiTransaction.prototype, "tenantId", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'sale_id', nullable: true }),
|
|
__metadata("design:type", String)
|
|
], CodiTransaction.prototype, "saleId", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'qr_data', type: 'text' }),
|
|
__metadata("design:type", String)
|
|
], CodiTransaction.prototype, "qrData", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'qr_image_url', type: 'text', nullable: true }),
|
|
__metadata("design:type", String)
|
|
], CodiTransaction.prototype, "qrImageUrl", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2 }),
|
|
__metadata("design:type", Number)
|
|
], CodiTransaction.prototype, "amount", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ length: 50, nullable: true }),
|
|
__metadata("design:type", String)
|
|
], CodiTransaction.prototype, "reference", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ length: 200, nullable: true }),
|
|
__metadata("design:type", String)
|
|
], CodiTransaction.prototype, "description", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({
|
|
type: 'varchar',
|
|
length: 20,
|
|
default: CodiTransactionStatus.PENDING,
|
|
}),
|
|
__metadata("design:type", String)
|
|
], CodiTransaction.prototype, "status", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'expires_at', type: 'timestamptz' }),
|
|
__metadata("design:type", Date)
|
|
], CodiTransaction.prototype, "expiresAt", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'confirmed_at', type: 'timestamptz', nullable: true }),
|
|
__metadata("design:type", Date)
|
|
], CodiTransaction.prototype, "confirmedAt", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'provider_transaction_id', length: 100, nullable: true }),
|
|
__metadata("design:type", String)
|
|
], CodiTransaction.prototype, "providerTransactionId", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'provider_response', type: 'jsonb', nullable: true }),
|
|
__metadata("design:type", Object)
|
|
], CodiTransaction.prototype, "providerResponse", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
|
|
__metadata("design:type", Date)
|
|
], CodiTransaction.prototype, "createdAt", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at' }),
|
|
__metadata("design:type", Date)
|
|
], CodiTransaction.prototype, "updatedAt", void 0);
|
|
exports.CodiTransaction = CodiTransaction = __decorate([
|
|
(0, typeorm_1.Entity)({ schema: 'sales', name: 'codi_transactions' })
|
|
], CodiTransaction);
|
|
//# sourceMappingURL=codi-transaction.entity.js.map
|