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

40 lines (36 loc) 1.03 kB
/** * Shell Card Management APIsLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { array, lazy, nullable, object, optional, Schema, string, } from '../schema.js'; import { ErrorStatus, errorStatusSchema } from './errorStatus.js'; import { Restriction, restrictionSchema } from './restriction.js'; import { RestrictionCardList, restrictionCardListSchema, } from './restrictionCardList.js'; export interface SearchCardRestrictionRes { /** Request Id of the API call */ requestId?: string | null; cards?: RestrictionCardList[]; restrictions?: Restriction; error?: ErrorStatus; } export const searchCardRestrictionResSchema: Schema<SearchCardRestrictionRes> = lazy( () => object({ requestId: ['RequestId', optional(nullable(string()))], cards: ['cards', optional(array(restrictionCardListSchema))], restrictions: ['Restrictions', optional(restrictionSchema)], error: ['Error', optional(errorStatusSchema)], }) );