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
37 lines • 1.43 kB
JavaScript
/**
* Shell Card Management APIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { boolean, lazy, nullable, number, object, optional, string, unknown, } from '../schema';
import { dayTimeRestrictionsSchema, } from './dayTimeRestrictions';
import { locationRestrictionSchema, } from './locationRestriction';
export const restrictionCardsListSchema = object({
accountId: ['AccountId', optional(nullable(number()))],
cardId: ['CardId', optional(nullable(number()))],
pAN: ['PAN', optional(nullable(string()))],
resetUsageRestrictions: ['ResetUsageRestrictions', optional(boolean())],
resetDayTimeRestrictions: [
'ResetDayTimeRestrictions',
optional(nullable(boolean())),
],
resetProductRestrictions: [
'ResetProductRestrictions',
optional(nullable(boolean())),
],
resetLocationRestrictions: [
'ResetLocationRestrictions',
optional(nullable(boolean())),
],
usageRestrictions: ['UsageRestrictions', optional(unknown())],
dayTimeRestrictions: [
'DayTimeRestrictions',
optional(lazy(() => dayTimeRestrictionsSchema)),
],
productRestrictions: ['ProductRestrictions', optional(unknown())],
locationRestrictions: [
'LocationRestrictions',
optional(lazy(() => locationRestrictionSchema)),
],
});
//# sourceMappingURL=restrictionCardsList.js.map