course_web01 / backend /src /payment /dto /prepare-payment.dto.ts
trae-bot
Prepare Hugging Face Space deployment
73746a8
import { IsString, IsNotEmpty, IsEnum } from 'class-validator';
import { PayType } from '../../entities/payment.entity';
export class PreparePaymentDto {
@IsString()
@IsNotEmpty()
orderId: string; // Actually number in our system, but PRD said string, we'll convert
@IsEnum(PayType)
@IsNotEmpty()
payType: PayType;
}