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

25 lines (21 loc) 824 B
/** * Shell Card Management APIsLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { array, lazy, object, optional, Schema, string } from '../schema.js'; import { ErrorDetails, errorDetailsSchema } from './errorDetails.js'; export interface ErrorObject { /** Unique request identifier passed from end user. This identifier helps in tracing a transaction */ requestId?: string; /** Indicates overall status of the request. Allowed values: SUCCES, FAILED, PARTIAL_SUCCESS */ status?: string; errors?: ErrorDetails[]; } export const errorObjectSchema: Schema<ErrorObject> = lazy(() => object({ requestId: ['RequestId', optional(string())], status: ['Status', optional(string())], errors: ['Errors', optional(array(errorDetailsSchema))], }) );