extra car number
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-06-20 20:47:12 +03:30
parent 2786010f0d
commit cbcb3bb67f
5 changed files with 70 additions and 1 deletions
@@ -23,12 +23,32 @@ export class CreatePaymentMethodDto {
@IsString()
cardNumber?: string;
@ApiProperty({ description: 'Second card number for card-to-card payments', required: false })
@IsOptional()
@IsString()
cardNumber2?: string;
@ApiProperty({ description: 'Third card number for card-to-card payments', required: false })
@IsOptional()
@IsString()
cardNumber3?: string;
@ApiProperty({ description: 'Card owner name for card-to-card payments', required: false })
@ValidateIf((dto: CreatePaymentMethodDto) => dto.method === PaymentMethodEnum.CreditCard)
@IsNotEmpty()
@IsString()
cardOwner?: string;
@ApiProperty({ description: 'Second card owner name for card-to-card payments', required: false })
@IsOptional()
@IsString()
cardOwner2?: string;
@ApiProperty({ description: 'Third card owner name for card-to-card payments', required: false })
@IsOptional()
@IsString()
cardOwner3?: string;
@ApiProperty({ description: 'Is payment method enabled', required: false, default: true })
@IsOptional()
@IsBoolean()
@@ -23,9 +23,21 @@ export class PaymentMethod extends BaseEntity {
@Property({ nullable: true })
cardNumber?: string;
@Property({ nullable: true })
cardNumber2?: string;
@Property({ nullable: true })
cardNumber3?: string;
@Property({ nullable: true })
cardOwner?: string;
@Property({ nullable: true })
cardOwner2?: string;
@Property({ nullable: true })
cardOwner3?: string;
@Property({ default: true })
enabled: boolean = true;