mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 16:28:12 +00:00
fix rate edit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { Type } from 'class-transformer';
|
||||
import { IsOptional, IsString, IsUUID, MaxLength, ValidateNested } from 'class-validator';
|
||||
|
||||
import { UpdateRateDto } from './update-rate.dto';
|
||||
|
||||
export class SubmitRateChangeDto {
|
||||
@ApiProperty({ description: 'The LIVE rate to reprice' })
|
||||
@IsUUID()
|
||||
rateId!: string;
|
||||
|
||||
@ApiProperty({
|
||||
description:
|
||||
'Proposed field changes. The live rate keeps its current values until this is approved.',
|
||||
type: UpdateRateDto,
|
||||
})
|
||||
@ValidateNested()
|
||||
@Type(() => UpdateRateDto)
|
||||
update!: UpdateRateDto;
|
||||
}
|
||||
|
||||
export class DecideRateChangeDto {
|
||||
@ApiPropertyOptional({ description: 'Optional note shown to the requester' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(1000)
|
||||
decisionNote?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user