Template base para proyectos SaaS multi-tenant. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React/Vite) - apps/database (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
64 lines
3.3 KiB
JavaScript
64 lines
3.3 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.CreatePaymentMethodDto = void 0;
|
|
const class_validator_1 = require("class-validator");
|
|
const swagger_1 = require("@nestjs/swagger");
|
|
const payment_method_entity_1 = require("../entities/payment-method.entity");
|
|
class CreatePaymentMethodDto {
|
|
}
|
|
exports.CreatePaymentMethodDto = CreatePaymentMethodDto;
|
|
__decorate([
|
|
(0, swagger_1.ApiProperty)({ description: 'Payment method type', enum: payment_method_entity_1.PaymentMethodType }),
|
|
(0, class_validator_1.IsEnum)(payment_method_entity_1.PaymentMethodType),
|
|
__metadata("design:type", String)
|
|
], CreatePaymentMethodDto.prototype, "type", void 0);
|
|
__decorate([
|
|
(0, swagger_1.ApiPropertyOptional)({ description: 'Set as default payment method' }),
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsBoolean)(),
|
|
__metadata("design:type", Boolean)
|
|
], CreatePaymentMethodDto.prototype, "is_default", void 0);
|
|
__decorate([
|
|
(0, swagger_1.ApiPropertyOptional)({ description: 'External payment method ID from provider' }),
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], CreatePaymentMethodDto.prototype, "external_payment_method_id", void 0);
|
|
__decorate([
|
|
(0, swagger_1.ApiPropertyOptional)({ description: 'Payment provider (stripe, conekta, etc)' }),
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], CreatePaymentMethodDto.prototype, "payment_provider", void 0);
|
|
__decorate([
|
|
(0, swagger_1.ApiPropertyOptional)({ description: 'Last 4 digits of card' }),
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], CreatePaymentMethodDto.prototype, "card_last_four", void 0);
|
|
__decorate([
|
|
(0, swagger_1.ApiPropertyOptional)({ description: 'Card brand (visa, mastercard, etc)' }),
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], CreatePaymentMethodDto.prototype, "card_brand", void 0);
|
|
__decorate([
|
|
(0, swagger_1.ApiPropertyOptional)({ description: 'Card expiry month' }),
|
|
(0, class_validator_1.IsOptional)(),
|
|
__metadata("design:type", Number)
|
|
], CreatePaymentMethodDto.prototype, "card_exp_month", void 0);
|
|
__decorate([
|
|
(0, swagger_1.ApiPropertyOptional)({ description: 'Card expiry year' }),
|
|
(0, class_validator_1.IsOptional)(),
|
|
__metadata("design:type", Number)
|
|
], CreatePaymentMethodDto.prototype, "card_exp_year", void 0);
|
|
//# sourceMappingURL=create-payment-method.dto.js.map
|