mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 21:08:12 +00:00
- Removed the gate pass granting functionality from the BookingClearanceService and ContractClearanceService, replacing it with a new method to retrieve gate pass status from train schedules. - Updated the ContractsController to eliminate endpoints related to gate pass granting. - Refactored the UI components (ExportClearanceStepper and PhasedClearanceActionPanel) to reflect the new gate pass securing process, linking to the train scheduling interface instead. - Cleaned up related constants and query hooks, removing unused code and references to the gate pass functionality. - Adjusted types in the contracts to accommodate changes in the gate pass handling logic.
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
import { IsBoolean, IsNumber, IsOptional, IsString, Min } from 'class-validator';
|
|
|
|
export class AdviseContractDutyDto {
|
|
@ApiProperty({ description: 'Whether the customer must pay duty/tax' })
|
|
@IsBoolean()
|
|
dutyRequired!: boolean;
|
|
|
|
@ApiPropertyOptional({ description: 'Duty amount (required when dutyRequired is true)' })
|
|
@IsOptional()
|
|
@IsNumber()
|
|
@Min(0)
|
|
amount?: number;
|
|
|
|
@ApiPropertyOptional({ default: 'ETB' })
|
|
@IsOptional()
|
|
@IsString()
|
|
currency?: string;
|
|
|
|
@ApiPropertyOptional({ description: 'Declaration / payment reference code' })
|
|
@IsOptional()
|
|
@IsString()
|
|
declarationSerial?: string;
|
|
}
|
|
|
|
export class ReleaseOrderDto {
|
|
@ApiProperty({ description: 'Vessel departure date (ISO date YYYY-MM-DD)' })
|
|
@IsString()
|
|
vesselDepartureDate!: string;
|
|
}
|
|
|
|
export class RoAmendmentDto {
|
|
@ApiPropertyOptional({ description: 'Note to customer / ET GL about the amendment request' })
|
|
@IsOptional()
|
|
@IsString()
|
|
note?: string;
|
|
}
|
|
|