add card to card payment method

This commit is contained in:
2026-06-07 16:17:49 +03:30
parent c6c9812fd6
commit caaeb0d34a
7 changed files with 121 additions and 124 deletions
@@ -18,6 +18,11 @@ export class CreatePaymentMethodDto {
@IsString()
description?: string;
@ApiProperty({ description: 'Card number for card-to-card payments', required: false })
@IsOptional()
@IsString()
cardNumber?: string;
@ApiProperty({ description: 'Is payment method enabled', required: false, default: true })
@IsOptional()
@IsBoolean()
@@ -20,6 +20,9 @@ export class PaymentMethod extends BaseEntity {
@Property({ nullable: true })
description?: string;
@Property({ nullable: true })
cardNumber?: string;
@Property({ default: true })
enabled: boolean = true;
@@ -4,6 +4,7 @@ export enum PaymentMethodEnum {
Online = 'Online',
Cash = 'Cash',
Wallet = 'Wallet',
Cart = 'Cart',
}
export enum PaymentStatusEnum {
Pending = 'pending',