add : PaymentCode And Customer Card
This commit is contained in:
19
src/modules/payments/dto/submit-bank-slip.dto.ts
Normal file
19
src/modules/payments/dto/submit-bank-slip.dto.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { IsNotEmpty, IsOptional, IsString, MaxLength } from 'class-validator';
|
||||
|
||||
export class SubmitBankSlipDto {
|
||||
@ApiProperty({
|
||||
example: '556677',
|
||||
description: 'Bank receipt tracking/reference number submitted by user.',
|
||||
})
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
@MaxLength(100)
|
||||
trackingNumber: string;
|
||||
|
||||
@ApiPropertyOptional()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(500)
|
||||
notes?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user