UNPKG

xero-node

Version:

Xero NodeJS OAuth 2.0 client for xero-node

160 lines (159 loc) 5 kB
"use strict"; /** * Accounting API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); var Payment = /** @class */ (function () { function Payment() { } Payment.getAttributeTypeMap = function () { return Payment.attributeTypeMap; }; Payment.discriminator = undefined; Payment.attributeTypeMap = [ { "name": "invoice", "baseName": "Invoice", "type": "Invoice" }, { "name": "creditNote", "baseName": "CreditNote", "type": "CreditNote" }, { "name": "prepayment", "baseName": "Prepayment", "type": "Prepayment" }, { "name": "overpayment", "baseName": "Overpayment", "type": "Overpayment" }, { "name": "invoiceNumber", "baseName": "InvoiceNumber", "type": "string" }, { "name": "creditNoteNumber", "baseName": "CreditNoteNumber", "type": "string" }, { "name": "account", "baseName": "Account", "type": "Account" }, { "name": "code", "baseName": "Code", "type": "string" }, { "name": "date", "baseName": "Date", "type": "string" }, { "name": "currencyRate", "baseName": "CurrencyRate", "type": "number" }, { "name": "amount", "baseName": "Amount", "type": "number" }, { "name": "reference", "baseName": "Reference", "type": "string" }, { "name": "isReconciled", "baseName": "IsReconciled", "type": "boolean" }, { "name": "status", "baseName": "Status", "type": "Payment.StatusEnum" }, { "name": "paymentType", "baseName": "PaymentType", "type": "Payment.PaymentTypeEnum" }, { "name": "updatedDateUTC", "baseName": "UpdatedDateUTC", "type": "Date" }, { "name": "paymentID", "baseName": "PaymentID", "type": "string" }, { "name": "bankAccountNumber", "baseName": "BankAccountNumber", "type": "string" }, { "name": "particulars", "baseName": "Particulars", "type": "string" }, { "name": "details", "baseName": "Details", "type": "string" }, { "name": "hasAccount", "baseName": "HasAccount", "type": "boolean" }, { "name": "hasValidationErrors", "baseName": "HasValidationErrors", "type": "boolean" }, { "name": "validationErrors", "baseName": "ValidationErrors", "type": "Array<ValidationError>" } ]; return Payment; }()); exports.Payment = Payment; (function (Payment) { var StatusEnum; (function (StatusEnum) { StatusEnum[StatusEnum["AUTHORISED"] = 'AUTHORISED'] = "AUTHORISED"; StatusEnum[StatusEnum["DELETED"] = 'DELETED'] = "DELETED"; })(StatusEnum = Payment.StatusEnum || (Payment.StatusEnum = {})); var PaymentTypeEnum; (function (PaymentTypeEnum) { PaymentTypeEnum[PaymentTypeEnum["ACCRECPAYMENT"] = 'ACCRECPAYMENT'] = "ACCRECPAYMENT"; PaymentTypeEnum[PaymentTypeEnum["ACCPAYPAYMENT"] = 'ACCPAYPAYMENT'] = "ACCPAYPAYMENT"; PaymentTypeEnum[PaymentTypeEnum["ARCREDITPAYMENT"] = 'ARCREDITPAYMENT'] = "ARCREDITPAYMENT"; PaymentTypeEnum[PaymentTypeEnum["APCREDITPAYMENT"] = 'APCREDITPAYMENT'] = "APCREDITPAYMENT"; PaymentTypeEnum[PaymentTypeEnum["AROVERPAYMENTPAYMENT"] = 'AROVERPAYMENTPAYMENT'] = "AROVERPAYMENTPAYMENT"; PaymentTypeEnum[PaymentTypeEnum["ARPREPAYMENTPAYMENT"] = 'ARPREPAYMENTPAYMENT'] = "ARPREPAYMENTPAYMENT"; PaymentTypeEnum[PaymentTypeEnum["APPREPAYMENTPAYMENT"] = 'APPREPAYMENTPAYMENT'] = "APPREPAYMENTPAYMENT"; PaymentTypeEnum[PaymentTypeEnum["APOVERPAYMENTPAYMENT"] = 'APOVERPAYMENTPAYMENT'] = "APOVERPAYMENTPAYMENT"; })(PaymentTypeEnum = Payment.PaymentTypeEnum || (Payment.PaymentTypeEnum = {})); })(Payment = exports.Payment || (exports.Payment = {})); exports.Payment = Payment;