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
30 lines (26 loc) • 737 B
text/typescript
/**
* Shell Card Management APIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { nullable, number, object, optional, Schema, string } from '../schema';
export interface SearchCardRestriction {
/**
* Unique Card Id
* Optional if PAN is given, else mandatory.
*/
cardId?: number | null;
/**
* Card PAN.
* Optional if CardId is given, else mandatory.
* Note: PAN is ignored if CardId is given.
* Example: 7002051006629890645
*/
pAN?: string | null;
}
export const searchCardRestrictionSchema: Schema<SearchCardRestriction> = object(
{
cardId: ['CardId', optional(nullable(number()))],
pAN: ['PAN', optional(nullable(string()))],
}
);