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.2 kB
text/typescript
/**
* 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 {
CardGroupResponseCardGroupsItems,
cardGroupResponseCardGroupsItemsSchema,
} from './cardGroupResponseCardGroupsItems';
import { ErrorStatus, errorStatusSchema } from './errorStatus';
export interface CardGroupResponse {
cardGroups?: CardGroupResponseCardGroupsItems[];
/** current page */
currentPage?: number;
/** number of records in current response */
rowCount?: number;
/** Total pages available */
totalPages?: number;
error?: ErrorStatus;
/** API Request id */
requestId?: string;
}
export const cardGroupResponseSchema: Schema<CardGroupResponse> = object({
cardGroups: [
'CardGroups',
optional(array(lazy(() => cardGroupResponseCardGroupsItemsSchema))),
],
currentPage: ['CurrentPage', optional(number())],
rowCount: ['RowCount', optional(number())],
totalPages: ['TotalPages', optional(number())],
error: ['Error', optional(lazy(() => errorStatusSchema))],
requestId: ['RequestId', optional(string())],
});