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

44 lines (40 loc) 1.19 kB
/** * Shell Card Management APIsLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { array, lazy, number, object, optional, Schema, string, } from '../schema.js'; import { ScheduleCardBlockResponseDataItems, scheduleCardBlockResponseDataItemsSchema, } from './scheduleCardBlockResponseDataItems.js'; export interface ScheduleCardBlockResponse { /** * Reference number for tracking the execution of the request. * Note: Reference will be empty for status 9006 and 9012 i.e., request for all the cards failed. */ mainReference?: number; /** API Request ID */ requestId?: string; /** Overall Status of the API call */ status?: string; /** List of SubmittedScheduleCardBlockCard entity. */ data?: ScheduleCardBlockResponseDataItems[]; } export const scheduleCardBlockResponseSchema: Schema<ScheduleCardBlockResponse> = lazy( () => object({ mainReference: ['MainReference', optional(number())], requestId: ['RequestId', optional(string())], status: ['Status', optional(string())], data: ['Data', optional(array(scheduleCardBlockResponseDataItemsSchema))], }) );