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
170 lines • 13.3 kB
JavaScript
"use strict";
/**
* Shell Data & Reporting APIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.transactionExceptionsSchema = void 0;
var schema_js_1 = require("../schema.js");
var location_js_1 = require("./location.js");
exports.transactionExceptionsSchema = (0, schema_js_1.object)({
salesItemId: ['SalesItemId', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
cardId: ['CardId', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
productId: ['ProductId', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
transactionGUID: ['TransactionGUID', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
transactionDate: ['TransactionDate', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
customerInvoiceValueTotalGross: [
'CustomerInvoiceValueTotalGross',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)())),
],
cardPAN: ['CardPAN', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
cardExpiry: ['CardExpiry', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
transactionTime: ['TransactionTime', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
uTCOffset: ['UTCOffset', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
fleetIdInput: ['FleetIdInput', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
odometerInput: ['OdometerInput', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
driverName: ['DriverName', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
vehicleRegistration: ['VehicleRegistration', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
invoiceCurrencyCode: ['InvoiceCurrencyCode', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
invoiceCurrencySymbol: [
'InvoiceCurrencySymbol',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)())),
],
transactionCurrencyCode: [
'TransactionCurrencyCode',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)())),
],
transactionCurrencySymbol: [
'TransactionCurrencySymbol',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)())),
],
transactionNetAmount: [
'TransactionNetAmount',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)())),
],
transactionTax: ['TransactionTax', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
transactionGrossAmount: [
'TransactionGrossAmount',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)())),
],
invoiceNetAmount: ['InvoiceNetAmount', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
invoiceTax: ['InvoiceTax', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
invoiceGrossAmount: ['InvoiceGrossAmount', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
purchasedInCountry: ['PurchasedInCountry', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
accountId: ['AccountId', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
accountNumber: ['AccountNumber', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
accountName: ['AccountName', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
accountShortName: ['AccountShortName', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
quantity: ['Quantity', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
fuelProduct: ['FuelProduct', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.boolean)()))],
unitPriceInTransactionCurrency: [
'UnitPriceInTransactionCurrency',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)())),
],
unitPriceInInvoiceCurrency: [
'UnitPriceInInvoiceCurrency',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)())),
],
unitDiscountTransactionCurrency: [
'UnitDiscountTransactionCurrency',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)())),
],
unitDiscountInvoiceCurrency: [
'UnitDiscountInvoiceCurrency',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)())),
],
isInvoiced: ['IsInvoiced', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.boolean)()))],
invoiceNumber: ['InvoiceNumber', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
invoiceDate: ['InvoiceDate', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
siteCode: ['SiteCode', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
siteName: ['SiteName', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
siteCountry: ['SiteCountry', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
location: ['Location', (0, schema_js_1.optional)((0, schema_js_1.lazy)(function () { return location_js_1.locationSchema; }))],
cardGroupName: ['CardGroupName', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
receiptNumber: ['ReceiptNumber', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
productCode: ['ProductCode', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
productName: ['ProductName', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
productGroupId: ['ProductGroupId', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
productGroupName: ['ProductGroupName', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
delCoExchangeRate: ['DelCoExchangeRate', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
colCoExchangeRate: ['ColCoExchangeRate', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
isShellSite: ['IsShellSite', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.boolean)()))],
network: ['Network', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
siteGroupId: ['SiteGroupId', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
siteGroupName: ['SiteGroupName', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
postingDate: ['PostingDate', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
issuerCode: ['IssuerCode', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
purchasedInCountryCode: [
'PurchasedInCountryCode',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)())),
],
customerCountryCode: ['CustomerCountryCode', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
customerCountry: ['CustomerCountry', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
releaseCode: ['ReleaseCode', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
cardGroupId: ['CardGroupId', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
cardSequenceNumber: ['CardSequenceNumber', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
checkDigit: ['CheckDigit', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
fleetIDDescription: ['FleetIDDescription', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
vATRate: ['VATRate', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
vATCategory: ['VATCategory', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
effectiveDiscountInTrxCurrency: [
'EffectiveDiscountInTrxCurrency',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)())),
],
transactionType: ['TransactionType', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
pINIndicator: ['PINIndicator', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
vATApplicable: ['VATApplicable', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
netInvoiceIndicator: ['NetInvoiceIndicator', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
customerCurrencyCode: [
'CustomerCurrencyCode',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)())),
],
customerCurrencySymbol: [
'CustomerCurrencySymbol',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)())),
],
effectiveUnitDiscountInCustomerCurrency: [
'EffectiveUnitDiscountInCustomerCurrency',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)())),
],
effectiveDiscountInCustomerCurrency: [
'EffectiveDiscountInCustomerCurrency',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)())),
],
vATonNetAmountInCustomerCurrency: [
'VATonNetAmountInCustomerCurrency',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)())),
],
discountType: ['DiscountType', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
transactionStatus: ['TransactionStatus', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
payerGroup: ['PayerGroup', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
refundFlag: ['RefundFlag', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
originalSalesItemId: ['OriginalSalesItemId', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
delcoName: ['DelcoName', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
delcoCode: ['DelcoCode', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
payerNumber: ['PayerNumber', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
payerName: ['PayerName', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
cardExpiryPeriod: ['CardExpiryPeriod', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
authorisationCode: ['AuthorisationCode', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
transactionId: ['TransactionId', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
transactionLine: ['TransactionLine', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
allowClearing: ['AllowClearing', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
cRMNumber: ['CRMNumber', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
disputeStatus: ['DisputeStatus', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
rebateRate: ['RebateRate', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
delCoToColCoExchangeRate: [
'DelCoToColCoExchangeRate',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)())),
],
netEuroAmount: ['NetEuroAmount', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
euroRebateAmount: ['EuroRebateAmount', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
euroVATAmount: ['EuroVATAmount', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
parentCustomerNumber: [
'ParentCustomerNumber',
(0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)())),
],
vATonNetAmount: ['VATonNetAmount', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.number)()))],
vATCountry: ['VATCountry', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)()))],
});
//# sourceMappingURL=transactionExceptions.js.map