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
45 lines (41 loc) • 1.24 kB
text/typescript
/**
* Shell Card Management APIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { lazy, object, optional, Schema, unknown } from '../schema';
import {
BundledDetailsProductList,
bundledDetailsProductListSchema,
} from './bundledDetailsProductList';
import {
DayTimeRestrictions,
dayTimeRestrictionsSchema,
} from './dayTimeRestrictions';
import {
LocationRestriction,
locationRestrictionSchema,
} from './locationRestriction';
export interface BundledRestrictionsList {
usageRestrictions?: unknown;
dayTimeRestrictions?: DayTimeRestrictions;
productRestrictions?: BundledDetailsProductList;
locationRestrictions?: LocationRestriction;
}
export const bundledRestrictionsListSchema: Schema<BundledRestrictionsList> = object(
{
usageRestrictions: ['UsageRestrictions', optional(unknown())],
dayTimeRestrictions: [
'DayTimeRestrictions',
optional(lazy(() => dayTimeRestrictionsSchema)),
],
productRestrictions: [
'ProductRestrictions',
optional(lazy(() => bundledDetailsProductListSchema)),
],
locationRestrictions: [
'LocationRestrictions',
optional(lazy(() => locationRestrictionSchema)),
],
}
);