mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 18:55:42 +00:00
feat(contracts): implement staff cancellation of contracts with reason and notification
This commit is contained in:
@@ -51,6 +51,14 @@ export class CancelContractDto {
|
||||
reason?: string;
|
||||
}
|
||||
|
||||
/** Staff cancel is terminal, so the reason is mandatory — it is the audit record. */
|
||||
export class CancelContractByStaffDto {
|
||||
@ApiProperty({ description: 'Why the contract is being cancelled — shown to the customer' })
|
||||
@IsString()
|
||||
@MinLength(1)
|
||||
reason!: string;
|
||||
}
|
||||
|
||||
export class SuspendContractDto {
|
||||
@ApiProperty({ description: 'Why the contract is being frozen — shown to the customer' })
|
||||
@IsString()
|
||||
|
||||
Reference in New Issue
Block a user