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
55 lines (51 loc) • 1.81 kB
text/typescript
/**
* Shell Data & Reporting APIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { nullable, number, object, optional, Schema, string } from '../schema';
export interface InvoiceSummaryDetails {
/** Total number of invoices matching with the given search criteria. */
totalInvoices?: number | null;
/** Total gross amount in customer currency combined from all the invoices matching with the given search criteria. */
totalGrossAmountCustomerCurrency?: number | null;
/** Total net amount in customer currency combined from all the invoices matching with the given search criteria. */
totalNetAmountCustomerCurrency?: number | null;
/** Total VAT amount in customer currency combined from all the invoices matching with the given search criteria. */
totalVATAmountCustomerCurrency?: number | null;
/**
* Customer currency ISO code.
* Example: EUR
*/
customerCurrencyCode?: string | null;
/**
* Customer currency code.
* Example: €
*/
customerCurrencySymbol?: string | null;
}
export const invoiceSummaryDetailsSchema: Schema<InvoiceSummaryDetails> = object(
{
totalInvoices: ['TotalInvoices', optional(nullable(number()))],
totalGrossAmountCustomerCurrency: [
'TotalGrossAmountCustomerCurrency',
optional(nullable(number())),
],
totalNetAmountCustomerCurrency: [
'TotalNetAmountCustomerCurrency',
optional(nullable(number())),
],
totalVATAmountCustomerCurrency: [
'TotalVATAmountCustomerCurrency',
optional(nullable(number())),
],
customerCurrencyCode: [
'CustomerCurrencyCode',
optional(nullable(string())),
],
customerCurrencySymbol: [
'CustomerCurrencySymbol',
optional(nullable(string())),
],
}
);