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.05 kB
text/typescript
/**
* Shell Card Management APIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { number, object, optional, Schema, string } from '../schema.js';
export interface CreateCardGroupRequestCardsItems {
/**
* Account Id of the account of the card.
* Optional if AccountNumber is passed, else Mandatory.
*/
accountId?: number;
/**
* Account Number of the account of the card.
* Optional if AccountId is passed, else Mandatory.
*/
accountNumber?: string;
/**
* Card Id of the card.
* Optional if PAN is passed, else Mandatory.
*/
cardId?: number;
/**
* PAN of the card.
* Optional if CardId is passed, else Mandatory.
*/
pAN?: string;
}
export const createCardGroupRequestCardsItemsSchema: Schema<CreateCardGroupRequestCardsItems> = object(
{
accountId: ['AccountId', optional(number())],
accountNumber: ['AccountNumber', optional(string())],
cardId: ['CardId', optional(number())],
pAN: ['PAN', optional(string())],
}
);