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

46 lines (42 loc) 1.75 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 { ErrorDetails, errorDetailsSchema } from './errorDetails.js'; import { SubmittedCard, submittedCardSchema } from './submittedCard.js'; export interface UpdateCardStatusResponse { /** Unique request identifier passed from end user. This identifier helps in tracing a transaction */ requestId?: string; /** Indicates overall status of the request. Allowed values: SUCCESS, FAILED, PARTIAL_SUCCESS */ status?: string; data?: SubmittedCard[]; /** Update status reference number for tracking the execution of the request. <br>Note: Reference will be empty for status 9006 and 9012 i.e., request for all the cards failed. */ mainReference?: number; /** Order replacement reference number for tracking the execution of the order replacement cards request. <br/>Note: Reference will be empty for status 9006 and 9012 i.e., request for all the cards failed or if there were no order replacement requested in the input. */ orderReplacementReference?: number; errors?: ErrorDetails[]; } export const updateCardStatusResponseSchema: Schema<UpdateCardStatusResponse> = lazy( () => object({ requestId: ['RequestId', optional(string())], status: ['Status', optional(string())], data: ['Data', optional(array(submittedCardSchema))], mainReference: ['MainReference', optional(number())], orderReplacementReference: [ 'OrderReplacementReference', optional(number()), ], errors: ['Errors', optional(array(errorDetailsSchema))], }) );