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

53 lines (49 loc) 2 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 } from '../schema.js'; import { CreateCardGroupResponseErrorCardsItems, createCardGroupResponseErrorCardsItemsSchema, } from './createCardGroupResponseErrorCardsItems.js'; import { CreateCardGroupResponseSuccessfulRequestsItems, createCardGroupResponseSuccessfulRequestsItemsSchema, } from './createCardGroupResponseSuccessfulRequestsItems.js'; export interface CreateCardGroupResponse { /** * Reference number for tracking the execution of the requests – new Card Group creation and to move the cards to the new card group. * Reference number will be null when the validations of new card group parameters fail. */ mainReference?: number; /** * Reference number for tracking the execution of card group creation. * Reference number will be null when the validations of new card group parameters fail. */ newCardGroupReference?: number; /** List of cards validated and submitted successfully for processing. */ successfulRequests?: CreateCardGroupResponseSuccessfulRequestsItems[]; /** * List of cards that failed validation and not submitted for processing. * Entity: FailedCardReference * This list will be empty when the validations of new card group parameters fail. */ errorCards?: CreateCardGroupResponseErrorCardsItems[]; } export const createCardGroupResponseSchema: Schema<CreateCardGroupResponse> = lazy( () => object({ mainReference: ['MainReference', optional(number())], newCardGroupReference: ['NewCardGroupReference', optional(number())], successfulRequests: [ 'SuccessfulRequests', optional(array(createCardGroupResponseSuccessfulRequestsItemsSchema)), ], errorCards: [ 'ErrorCards', optional(array(createCardGroupResponseErrorCardsItemsSchema)), ], }) );