UNPKG

@shipengine/connect-carrier-api

Version:

This is the typescript/javascript definitions for carrier api

15 lines (14 loc) 704 B
import Joi from 'joi'; export interface NormalizedErrors { /** Original carrier error or regex which represent carrier error */ source_error: string; /** Pattern based on which method will try to match original carrier error. Allowed values "fixed", "regex" */ match_pattern: string; /** Short description of error */ error_code: string; /** Custom error message which will replace standardized error message in response */ override_custom_error_message?: string; /** Module api code when error is related to specific module, not for whole integration */ source_api_code?: string; } export declare const NormalizedErrorsConfigurationSchema: Joi.ObjectSchema<any>;