UNPKG

card-management-sdk

Version:

The Shell Card Management API is REST-based and employs OAUTH 2.0,Basic and ApiKey authentication. The API endpoints accept JSON-encoded request bodies, return JSON-encoded responses and use standard HTTP response codes. All resources are located in the S

26 lines (22 loc) 819 B
/** * Shell Card Management APIsLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { dict, nullable, object, optional, Schema, string } from '../schema.js'; 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())))], });