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
33 lines (29 loc) • 1.08 kB
text/typescript
/**
* Shell Card Management APIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { array, boolean, lazy, object, optional, Schema } from '../schema';
import {
ScheduleCardBlockCardsItems,
scheduleCardBlockCardsItemsSchema,
} from './scheduleCardBlockCardsItems';
export interface ScheduleCardBlockRequest {
/**
* Default: False
* True – It supports both date & time.
* False – It supports only date. Time will be ignored if it is provided in the request.
*/
isTimeSupported?: boolean;
/** List of ScheduleCardBlockCard entity. Each card in the list will be scheduled for Block or Unblock. The details of the entity are given below. */
scheduleCardBlockCards?: ScheduleCardBlockCardsItems[];
}
export const scheduleCardBlockRequestSchema: Schema<ScheduleCardBlockRequest> = object(
{
isTimeSupported: ['IsTimeSupported', optional(boolean())],
scheduleCardBlockCards: [
'ScheduleCardBlockCards',
optional(array(lazy(() => scheduleCardBlockCardsItemsSchema))),
],
}
);