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.16 kB
text/typescript
/**
* Shell Data & Reporting APIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import {
array,
lazy,
nullable,
object,
optional,
Schema,
string,
} from '../schema';
import { CardExceptions, cardExceptionsSchema } from './cardExceptions';
import { ErrorStatus, errorStatusSchema } from './errorStatus';
import {
TransactionExceptions,
transactionExceptionsSchema,
} from './transactionExceptions';
export interface TransactionExceptionsResponse {
cardExceptions?: CardExceptions[];
transactionExceptions?: TransactionExceptions[] | null;
error?: ErrorStatus;
/** API Request Id */
requestId?: string;
}
export const transactionExceptionsResponseSchema: Schema<TransactionExceptionsResponse> = object(
{
cardExceptions: [
'CardExceptions',
optional(array(lazy(() => cardExceptionsSchema))),
],
transactionExceptions: [
'TransactionExceptions',
optional(nullable(array(lazy(() => transactionExceptionsSchema)))),
],
error: ['Error', optional(lazy(() => errorStatusSchema))],
requestId: ['RequestId', optional(string())],
}
);