27 lines
567 B
TypeScript
27 lines
567 B
TypeScript
import { IsIn, IsOptional, IsString, MaxLength } from 'class-validator';
|
|
import { PaginationQueryDto } from './admin-query.dto';
|
|
|
|
export class AdminRedeemPendingQueryDto extends PaginationQueryDto {
|
|
@IsOptional()
|
|
@IsIn(['PENDING', 'COMPLETED', 'REJECTED'])
|
|
status?: 'PENDING' | 'COMPLETED' | 'REJECTED';
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
storeId?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
pendingNo?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
redeemToken?: string;
|
|
}
|
|
|
|
export class AdminRedeemPendingRejectDto {
|
|
@IsString()
|
|
@MaxLength(256)
|
|
reason: string;
|
|
}
|