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
45 lines (41 loc) • 1.25 kB
text/typescript
/**
* Shell Data & Reporting APIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import {
array,
lazy,
number,
object,
optional,
Schema,
string,
} from '../schema';
import {
PricedResponseData,
pricedResponseDataSchema,
} from './pricedResponseData';
export interface PricedTransactionResponseV2 {
/** Mandatory UUID (according to RFC 4122 standards) for requests and responses. This will be played back in the response from the req */
requestId?: string;
/** Indicates overall status of the request */
status?: string;
data?: PricedResponseData[];
/** Current page */
page?: number;
/** Number of records returned in the response */
pageSize?: number;
/** Total number of pages available for the requested data */
totalPages?: number;
}
export const pricedTransactionResponseV2Schema: Schema<PricedTransactionResponseV2> = object(
{
requestId: ['RequestId', optional(string())],
status: ['Status', optional(string())],
data: ['Data', optional(array(lazy(() => pricedResponseDataSchema)))],
page: ['Page', optional(number())],
pageSize: ['PageSize', optional(number())],
totalPages: ['TotalPages', optional(number())],
}
);