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
41 lines • 1.39 kB
JavaScript
/**
* Shell Card Management APIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { lazy, nullable, object, optional, string } from '../schema.js';
import { dayTimeRestrictionsSchema, } from './dayTimeRestrictions.js';
import { locationRestrictionSchema, } from './locationRestriction.js';
import { productRestrictionCardSchema, } from './productRestrictionCard.js';
import { usageRestrictionsCardSchema, } from './usageRestrictionsCard.js';
export const bundleRestrictionSchema = lazy(() => object({
dayTimeRestrictionAction: [
'DayTimeRestrictionAction',
optional(nullable(string())),
],
locationRestrictionAction: [
'LocationRestrictionAction',
optional(nullable(string())),
],
productRestrictionAction: [
'ProductRestrictionAction',
optional(nullable(string())),
],
dayTimeRestrictions: [
'DayTimeRestrictions',
optional(dayTimeRestrictionsSchema),
],
productRestrictions: [
'ProductRestrictions',
optional(productRestrictionCardSchema),
],
locationRestrictions: [
'LocationRestrictions',
optional(locationRestrictionSchema),
],
usageRestrictions: [
'UsageRestrictions',
optional(usageRestrictionsCardSchema),
],
}));
//# sourceMappingURL=bundleRestriction.js.map