UNPKG

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

46 lines (42 loc) 1.18 kB
/** * 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 { RecentTransactions, recentTransactionsSchema, } from './recentTransactions'; export interface RecentTransactionsResponse { /** RequestID is unique identifier value that is attached to requests and messages that allow reference to a particular transaction or event chain. */ requestId?: string; /** status of the API call */ status?: string; /** CurrentPage */ page?: number; /** RowCount */ rowCount?: number; /** TotalPages */ totalPages?: number; /** API Response */ data?: RecentTransactions[]; } export const recentTransactionsResponseSchema: Schema<RecentTransactionsResponse> = object( { requestId: ['RequestId', optional(string())], status: ['Status', optional(string())], page: ['Page', optional(number())], rowCount: ['RowCount', optional(number())], totalPages: ['TotalPages', optional(number())], data: ['Data', optional(array(lazy(() => recentTransactionsSchema)))], } );