forked from Shared/esg
final update on moallm client
This commit is contained in:
@@ -18,11 +18,11 @@ export class BaseInquiryResponseDto<T = Record<string, unknown>> {
|
||||
@ApiPropertyOptional({ example: 'Inquiry completed successfully' })
|
||||
message?: string;
|
||||
|
||||
@ApiPropertyOptional()
|
||||
data?: T;
|
||||
@ApiPropertyOptional({ nullable: true })
|
||||
data?: T | null;
|
||||
|
||||
@ApiPropertyOptional({ type: NormalizedErrorDto })
|
||||
error?: NormalizedErrorDto;
|
||||
@ApiPropertyOptional({ type: NormalizedErrorDto, nullable: true })
|
||||
error?: NormalizedErrorDto | null;
|
||||
|
||||
@ApiProperty({ example: 342, description: 'Duration in milliseconds' })
|
||||
duration!: number;
|
||||
|
||||
@@ -17,6 +17,12 @@ export class NormalizedErrorDto {
|
||||
@ApiPropertyOptional({ example: '503' })
|
||||
providerCode?: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
example: 'MjFiNDQwYjAtOTdkMy00YjFkLWEzN2UtMWEyOTk2NDE0MjRm',
|
||||
description: 'Upstream provider reference code when available',
|
||||
})
|
||||
providerTrackingCode?: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
example: [{ field: 'sheba', constraints: ['sheba must start with IR and contain 24 digits'] }],
|
||||
description: 'Field-level validation errors when code is VALIDATION_ERROR',
|
||||
|
||||
Reference in New Issue
Block a user