19 lines
509 B
TypeScript
19 lines
509 B
TypeScript
import { IsString, IsOptional, IsBoolean } from 'class-validator';
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
export class CreateRestaurantPaymentMethodDto {
|
|
@ApiProperty({ description: 'Payment method ID' })
|
|
@IsString()
|
|
paymentMethodId!: string;
|
|
|
|
@ApiProperty({ description: 'Merchant ID', required: false })
|
|
@IsOptional()
|
|
@IsString()
|
|
merchantId?: string;
|
|
|
|
@ApiProperty({ description: 'Is active', required: false, default: true })
|
|
@IsOptional()
|
|
@IsBoolean()
|
|
isActive?: boolean;
|
|
}
|