add card to card payment method
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user