UNPKG

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

28 lines (24 loc) 778 B
/** * 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'; import { ErrorStatus, errorStatusSchema } from './errorStatus'; import { PurchaseCategory1AllOf0, purchaseCategory1AllOf0Schema, } from './purchaseCategory1AllOf0'; export interface PurchaseCategoryResponse { purchaseCategories?: PurchaseCategory1AllOf0[]; error?: ErrorStatus; } export const purchaseCategoryResponseSchema: Schema<PurchaseCategoryResponse> = object( { purchaseCategories: [ 'PurchaseCategories', optional(array(lazy(() => purchaseCategory1AllOf0Schema))), ], error: ['Error', optional(lazy(() => errorStatusSchema))], } );