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
52 lines (48 loc) • 1.39 kB
text/typescript
/**
* Shell Card Management APIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { array, lazy, object, optional, Schema } from '../schema.js';
import {
CountryRestriction,
countryRestrictionSchema,
} from './countryRestriction.js';
import {
NetworkRestriction,
networkRestrictionSchema,
} from './networkRestriction.js';
import {
PartnerSiteRestriction,
partnerSiteRestrictionSchema,
} from './partnerSiteRestriction.js';
import {
ShellSiteRestriction,
shellSiteRestrictionSchema,
} from './shellSiteRestriction.js';
export interface LocationRestriction {
countryRestrictions?: CountryRestriction;
networkRestrictions?: NetworkRestriction[];
shellSiteRestrictions?: ShellSiteRestriction[];
partnerSiteRestrictions?: PartnerSiteRestriction[];
}
export const locationRestrictionSchema: Schema<LocationRestriction> = lazy(() =>
object({
countryRestrictions: [
'CountryRestrictions',
optional(countryRestrictionSchema),
],
networkRestrictions: [
'NetworkRestrictions',
optional(array(networkRestrictionSchema)),
],
shellSiteRestrictions: [
'ShellSiteRestrictions',
optional(array(shellSiteRestrictionSchema)),
],
partnerSiteRestrictions: [
'PartnerSiteRestrictions',
optional(array(partnerSiteRestrictionSchema)),
],
})
);