up
This commit is contained in:
@@ -25,8 +25,18 @@ export class CreatePaymentMethodDto {
|
||||
@IsBoolean()
|
||||
isActive?: boolean;
|
||||
|
||||
@ApiProperty({ description: 'Is payment method online', required: false, default: true })
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
isOnline?: boolean;
|
||||
|
||||
@ApiProperty({ description: 'Display order', required: false })
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
order?: number;
|
||||
|
||||
@ApiProperty({ description: 'Callback URL for payment method', required: false })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
callbackUrl?: string;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,12 @@ export class PaymentMethod extends BaseEntity {
|
||||
@Property({ default: true })
|
||||
isActive: boolean = true;
|
||||
|
||||
@Property({ default: true })
|
||||
isOnline: boolean = true;
|
||||
|
||||
@Property({ type: 'int', nullable: true })
|
||||
order?: number;
|
||||
|
||||
@Property({ nullable: true })
|
||||
callbackUrl?: string;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@ export class RestaurantPaymentMethod extends BaseEntity {
|
||||
@Property({ nullable: true })
|
||||
merchantId?: string;
|
||||
|
||||
|
||||
@Property({ type: 'boolean', default: true })
|
||||
isActive: boolean = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user