forked from Shared/esg
final update on moallm client
This commit is contained in:
@@ -16,9 +16,23 @@ export class SayahRequestDto {
|
||||
@Matches(/^\d{10}$/, { message: 'nationalCode must be exactly 10 digits' })
|
||||
nationalCode!: string;
|
||||
|
||||
@ApiPropertyOptional({ nullable: true })
|
||||
@ApiPropertyOptional({
|
||||
type: String,
|
||||
example: '',
|
||||
nullable: true,
|
||||
description: 'Legal entity ID; use empty string for natural persons',
|
||||
})
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@Transform(({ value }: { value: unknown }) => {
|
||||
if (value === null || value === undefined) {
|
||||
return value;
|
||||
}
|
||||
if (typeof value === 'object') {
|
||||
return '';
|
||||
}
|
||||
return String(value);
|
||||
})
|
||||
legalId?: string | null;
|
||||
|
||||
@ApiProperty({
|
||||
|
||||
Reference in New Issue
Block a user