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.41 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'; import { ErrorDetails, errorDetailsSchema } from './errorDetails'; import { SubmittedCard, submittedCardSchema } from './submittedCard'; export interface CancelCardResponse { /** Unique request identifier passed from end user. This identifier helps in tracing a transaction */ requestId?: string; /** Cancel card reference number for tracking the execution of the request. */ mainReference?: number; /** Order replacement reference number for tracking the execution of the order replacement cards request. */ orderReplacementReference?: number; /** Indicates overall status of the request. Allowed values: SUCCESS, FAILED, PARTIAL_SUCCESS */ status?: string; data?: SubmittedCard[]; errors?: ErrorDetails[]; } export const cancelCardResponseSchema: Schema<CancelCardResponse> = object({ requestId: ['RequestId', optional(string())], mainReference: ['MainReference', optional(number())], orderReplacementReference: ['OrderReplacementReference', optional(number())], status: ['Status', optional(string())], data: ['Data', optional(array(lazy(() => submittedCardSchema)))], errors: ['Errors', optional(array(lazy(() => errorDetailsSchema)))], });