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