data-and-reporting-sdk
Version:
Data And Reporting product consists of API's which provides details of transaction and invoice informations about shell cards. The Shell Card Transaction and Invoice API is REST-based and employs Basic authentication in Version 1 and Oauth authentication
26 lines (22 loc) • 817 B
text/typescript
/**
* Shell Data & Reporting APIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { dict, nullable, object, optional, Schema, string } from '../schema';
export interface ErrorDetails {
/** Error code representing the error encountered */
code?: string;
/** Error type description */
title?: string;
/** Detailed inforamtion about the error */
detail?: string;
/** Applicable when more details related to error to be returned */
additionalInfo?: Record<string, string | null>;
}
export const errorDetailsSchema: Schema<ErrorDetails> = object({
code: ['Code', optional(string())],
title: ['Title', optional(string())],
detail: ['Detail', optional(string())],
additionalInfo: ['AdditionalInfo', optional(dict(nullable(string())))],
});