This commit is contained in:
2025-12-01 09:15:22 +03:30
parent fbd3697c6a
commit 016e2f24a9
3 changed files with 16 additions and 1 deletions
@@ -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;
}