data-and-reporting-sdk
Version:
Data And Reporting product consists of API's which provides details of transaction and invoice informations about shell cards. The Shell Card Transaction and Invoice API is REST-based and employs Basic authentication in Version 1 and Oauth authentication
28 lines (24 loc) • 805 B
text/typescript
/**
* Shell Data & Reporting APIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { array, lazy, object, optional, Schema, string } from '../schema';
import { ErrorStatus, errorStatusSchema } from './errorStatus';
import { UsageSummary, usageSummarySchema } from './usageSummary';
export interface CardUsageSummaryResponse {
usageSummary?: UsageSummary[];
/** API Request Id */
requestId?: string;
error?: ErrorStatus;
}
export const cardUsageSummaryResponseSchema: Schema<CardUsageSummaryResponse> = object(
{
usageSummary: [
'UsageSummary',
optional(array(lazy(() => usageSummarySchema))),
],
requestId: ['RequestId', optional(string())],
error: ['Error', optional(lazy(() => errorStatusSchema))],
}
);