"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.TaxConfig = exports.TaxConfigStatus = void 0; const typeorm_1 = require("typeorm"); var TaxConfigStatus; (function (TaxConfigStatus) { TaxConfigStatus["PENDING"] = "pending"; TaxConfigStatus["ACTIVE"] = "active"; TaxConfigStatus["SUSPENDED"] = "suspended"; })(TaxConfigStatus || (exports.TaxConfigStatus = TaxConfigStatus = {})); let TaxConfig = class TaxConfig { }; exports.TaxConfig = TaxConfig; __decorate([ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'), __metadata("design:type", String) ], TaxConfig.prototype, "id", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'tenant_id', unique: true }), __metadata("design:type", String) ], TaxConfig.prototype, "tenantId", void 0); __decorate([ (0, typeorm_1.Column)({ length: 13 }), __metadata("design:type", String) ], TaxConfig.prototype, "rfc", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'razon_social', length: 200 }), __metadata("design:type", String) ], TaxConfig.prototype, "razonSocial", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'regimen_fiscal', length: 3 }), __metadata("design:type", String) ], TaxConfig.prototype, "regimenFiscal", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'codigo_postal', length: 5 }), __metadata("design:type", String) ], TaxConfig.prototype, "codigoPostal", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'csd_certificate', type: 'text', nullable: true }), __metadata("design:type", String) ], TaxConfig.prototype, "csdCertificate", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'csd_private_key_encrypted', type: 'text', nullable: true }), __metadata("design:type", String) ], TaxConfig.prototype, "csdPrivateKeyEncrypted", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'csd_password_encrypted', type: 'text', nullable: true }), __metadata("design:type", String) ], TaxConfig.prototype, "csdPasswordEncrypted", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'csd_valid_from', type: 'timestamptz', nullable: true }), __metadata("design:type", Date) ], TaxConfig.prototype, "csdValidFrom", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'csd_valid_to', type: 'timestamptz', nullable: true }), __metadata("design:type", Date) ], TaxConfig.prototype, "csdValidTo", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'pac_provider', length: 20, default: 'facturapi' }), __metadata("design:type", String) ], TaxConfig.prototype, "pacProvider", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'pac_api_key_encrypted', type: 'text', nullable: true }), __metadata("design:type", String) ], TaxConfig.prototype, "pacApiKeyEncrypted", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'pac_sandbox', default: true }), __metadata("design:type", Boolean) ], TaxConfig.prototype, "pacSandbox", void 0); __decorate([ (0, typeorm_1.Column)({ length: 10, default: 'A' }), __metadata("design:type", String) ], TaxConfig.prototype, "serie", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'folio_actual', default: 1 }), __metadata("design:type", Number) ], TaxConfig.prototype, "folioActual", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'auto_send_email', default: true }), __metadata("design:type", Boolean) ], TaxConfig.prototype, "autoSendEmail", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'logo_url', type: 'text', nullable: true }), __metadata("design:type", String) ], TaxConfig.prototype, "logoUrl", void 0); __decorate([ (0, typeorm_1.Column)({ type: 'varchar', length: 20, default: TaxConfigStatus.PENDING, }), __metadata("design:type", String) ], TaxConfig.prototype, "status", void 0); __decorate([ (0, typeorm_1.CreateDateColumn)({ name: 'created_at' }), __metadata("design:type", Date) ], TaxConfig.prototype, "createdAt", void 0); __decorate([ (0, typeorm_1.UpdateDateColumn)({ name: 'updated_at' }), __metadata("design:type", Date) ], TaxConfig.prototype, "updatedAt", void 0); exports.TaxConfig = TaxConfig = __decorate([ (0, typeorm_1.Entity)({ schema: 'billing', name: 'tax_configs' }) ], TaxConfig); //# sourceMappingURL=tax-config.entity.js.map