diff --git a/docs/accounting/index.html b/docs/accounting/index.html index bdca9993..7e1e514c 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -2859,6 +2859,267 @@ "externalDocs" : { "url" : "http://developer.xero.com/documentation/api/organisation/" } +}; + defs["GetBankTransactionsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "BankTransactions" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/BankTransaction" + } + } + }, + "description" : "" +}; + defs["GetContactsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "Contacts" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Contact" + } + } + }, + "description" : "" +}; + defs["GetCreditNotesResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "CreditNotes" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/CreditNote" + } + } + }, + "description" : "" +}; + defs["GetInvoicesResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "Invoices" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Invoice" + } + } + }, + "description" : "" +}; + defs["GetManualJournalsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "ManualJournals" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ManualJournal" + } + } + }, + "description" : "" +}; + defs["GetOverpaymentsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "Overpayments" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Overpayment" + } + } + }, + "description" : "" +}; + defs["GetPaymentsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "Payments" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Payment" + } + } + }, + "description" : "" +}; + defs["GetPrepaymentsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "Prepayments" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Prepayment" + } + } + }, + "description" : "" +}; + defs["GetPurchaseOrdersResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "PurchaseOrders" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/PurchaseOrder" + } + } + }, + "description" : "" }; defs["HistoryRecord"] = { "title" : "", @@ -4247,6 +4508,25 @@ }, "description" : "", "x-isObjectArray" : true +}; + defs["PageInfo"] = { + "title" : "", + "type" : "object", + "properties" : { + "Page" : { + "type" : "integer" + }, + "PageSize" : { + "type" : "integer" + }, + "TotalPages" : { + "type" : "integer" + }, + "TotalRows" : { + "type" : "integer" + } + }, + "description" : "Pagination information" }; defs["Payment"] = { "title" : "", @@ -6101,7 +6381,7 @@ SDK: - VSN: 7.0.0 + VSN: 8.0.0 Methods createAccount @@ -20456,9 +20736,10 @@ Usage and SDK Samples const order = 'Type ASC'; const page = 1; const unitdp = 4; +const pageSize = 100; try { - const response = await xero.accountingApi.getBankTransactions(xeroTenantId, ifModifiedSince, where, order, page, unitdp); + const response = await xero.accountingApi.getBankTransactions(xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize); console.log(response.body || response.response.statusCode) } catch (err) { const error = JSON.stringify(err.response.body, null, 2) @@ -20618,6 +20899,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -23829,9 +24130,10 @@ Usage and SDK Samples const includeArchived = true; const summaryOnly = true; const searchTerm = 'Joe Bloggs'; +const pageSize = 100; try { - const response = await xero.accountingApi.getContacts(xeroTenantId, ifModifiedSince, where, order, iDs, page, includeArchived, summaryOnly, searchTerm); + const response = await xero.accountingApi.getContacts(xeroTenantId, ifModifiedSince, where, order, iDs, page, includeArchived, summaryOnly, searchTerm, pageSize); console.log(response.body || response.response.statusCode) } catch (err) { const error = JSON.stringify(err.response.body, null, 2) @@ -24054,6 +24356,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -24926,9 +25248,10 @@ Usage and SDK Samples const order = 'CreditNoteNumber ASC'; const page = 1; const unitdp = 4; +const pageSize = 100; try { - const response = await xero.accountingApi.getCreditNotes(xeroTenantId, ifModifiedSince, where, order, page, unitdp); + const response = await xero.accountingApi.getCreditNotes(xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize); console.log(response.body || response.response.statusCode) } catch (err) { const error = JSON.stringify(err.response.body, null, 2) @@ -25088,6 +25411,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -26852,9 +27195,10 @@ Usage and SDK Samples const createdByMyApp = false; const unitdp = 4; const summaryOnly = true; +const pageSize = 100; try { - const response = await xero.accountingApi.getInvoices(xeroTenantId, ifModifiedSince, where, order, iDs, invoiceNumbers, contactIDs, statuses, page, includeArchived, createdByMyApp, unitdp, summaryOnly); + const response = await xero.accountingApi.getInvoices(xeroTenantId, ifModifiedSince, where, order, iDs, invoiceNumbers, contactIDs, statuses, page, includeArchived, createdByMyApp, unitdp, summaryOnly, pageSize); console.log(response.body || response.response.statusCode) } catch (err) { const error = JSON.stringify(err.response.body, null, 2) @@ -27160,6 +27504,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -28931,9 +29295,10 @@ Usage and SDK Samples const where = 'Status=="DRAFT"'; const order = 'Date ASC'; const page = 1; +const pageSize = 100; try { - const response = await xero.accountingApi.getManualJournals(xeroTenantId, ifModifiedSince, where, order, page); + const response = await xero.accountingApi.getManualJournals(xeroTenantId, ifModifiedSince, where, order, page, pageSize); console.log(response.body || response.response.statusCode) } catch (err) { const error = JSON.stringify(err.response.body, null, 2) @@ -29073,6 +29438,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -30381,9 +30766,10 @@ Usage and SDK Samples const where = 'Status=="AUTHORISED"'; const order = 'Amount ASC'; const page = 1; +const pageSize = 100; try { - const response = await xero.accountingApi.getPayments(xeroTenantId, ifModifiedSince, where, order, page); + const response = await xero.accountingApi.getPayments(xeroTenantId, ifModifiedSince, where, order, page, pageSize); console.log(response.body || response.response.statusCode) } catch (err) { const error = JSON.stringify(err.response.body, null, 2) @@ -30523,6 +30909,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -31918,9 +32324,10 @@ Usage and SDK Samples const dateTo = '2019-12-31'; const order = 'PurchaseOrderNumber ASC'; const page = 1; +const pageSize = 100; try { - const response = await xero.accountingApi.getPurchaseOrders(xeroTenantId, ifModifiedSince, status, dateFrom, dateTo, order, page); + const response = await xero.accountingApi.getPurchaseOrders(xeroTenantId, ifModifiedSince, status, dateFrom, dateTo, order, page, pageSize); console.log(response.body || response.response.statusCode) } catch (err) { const error = JSON.stringify(err.response.body, null, 2) @@ -32100,6 +32507,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + diff --git a/docs/appstore/index.html b/docs/appstore/index.html index fd6678c6..eced9ad2 100644 --- a/docs/appstore/index.html +++ b/docs/appstore/index.html @@ -1242,7 +1242,7 @@ SDK: - VSN: 7.0.0 + VSN: 8.0.0 Methods getSubscription diff --git a/docs/assets/index.html b/docs/assets/index.html index 288ad83e..6fbd1abf 100644 --- a/docs/assets/index.html +++ b/docs/assets/index.html @@ -1393,7 +1393,7 @@ SDK: - VSN: 7.0.0 + VSN: 8.0.0 Methods createAsset diff --git a/docs/bankfeeds/index.html b/docs/bankfeeds/index.html index 79f2d91d..4b1637e5 100644 --- a/docs/bankfeeds/index.html +++ b/docs/bankfeeds/index.html @@ -1269,7 +1269,7 @@ SDK: - VSN: 7.0.0 + VSN: 8.0.0 Methods createFeedConnections diff --git a/docs/files/index.html b/docs/files/index.html index 5fd0a092..20b810da 100644 --- a/docs/files/index.html +++ b/docs/files/index.html @@ -1171,7 +1171,7 @@ SDK: - VSN: 7.0.0 + VSN: 8.0.0 Methods createFileAssociation diff --git a/docs/finance/index.html b/docs/finance/index.html index 4f52dd0d..38ed64c9 100644 --- a/docs/finance/index.html +++ b/docs/finance/index.html @@ -1529,91 +1529,94 @@ "properties" : { "directBankFeed" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data.", "format" : "double", "x-is-money" : true }, "indirectBankFeed" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data.", + "description" : "No longer in use.", "format" : "double", + "deprecated" : true, "x-is-money" : true }, "fileUpload" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data.", "format" : "double", "x-is-money" : true }, "manual" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data.", + "description" : "Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data.", "format" : "double", "x-is-money" : true }, "directBankFeedPos" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", "format" : "double", "x-is-money" : true }, "indirectBankFeedPos" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", + "description" : "No longer in use.", "format" : "double", + "deprecated" : true, "x-is-money" : true }, "fileUploadPos" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", "format" : "double", "x-is-money" : true }, "manualPos" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", "format" : "double", "x-is-money" : true }, "directBankFeedNeg" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", "format" : "double", "x-is-money" : true }, "indirectBankFeedNeg" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", + "description" : "No longer in use.", "format" : "double", + "deprecated" : true, "x-is-money" : true }, "fileUploadNeg" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", "format" : "double", "x-is-money" : true }, "manualNeg" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", "format" : "double", "x-is-money" : true }, "otherPos" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", "format" : "double", "x-is-money" : true }, "otherNeg" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", "format" : "double", "x-is-money" : true }, "other" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data.", + "description" : "Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data.", "format" : "double", "x-is-money" : true } @@ -2735,7 +2738,7 @@ SDK: - VSN: 7.0.0 + VSN: 8.0.0 Methods getAccountingActivityAccountUsage diff --git a/docs/payroll-au/index.html b/docs/payroll-au/index.html index f7dda2f8..ccf4db9c 100644 --- a/docs/payroll-au/index.html +++ b/docs/payroll-au/index.html @@ -3413,7 +3413,7 @@ SDK: - VSN: 7.0.0 + VSN: 8.0.0 Methods approveLeaveApplication diff --git a/docs/payroll-nz/index.html b/docs/payroll-nz/index.html index 4e98b37f..935f8e0f 100644 --- a/docs/payroll-nz/index.html +++ b/docs/payroll-nz/index.html @@ -3844,7 +3844,7 @@ SDK: - VSN: 7.0.0 + VSN: 8.0.0 Methods approveTimesheet diff --git a/docs/payroll-uk/index.html b/docs/payroll-uk/index.html index 47b30752..f1733bc0 100644 --- a/docs/payroll-uk/index.html +++ b/docs/payroll-uk/index.html @@ -3511,7 +3511,7 @@ SDK: - VSN: 7.0.0 + VSN: 8.0.0 Methods approveTimesheet diff --git a/docs/projects/index.html b/docs/projects/index.html index a309ad08..b3c1c15a 100644 --- a/docs/projects/index.html +++ b/docs/projects/index.html @@ -1463,7 +1463,7 @@ SDK: - VSN: 7.0.0 + VSN: 8.0.0 Methods createProject diff --git a/package.json b/package.json index 72324090..16980f7b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xero-node", - "version": "7.0.0", + "version": "8.0.0", "description": "Xero NodeJS OAuth 2.0 client for xero-node", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/gen/api/accountingApi.ts b/src/gen/api/accountingApi.ts index 0836e2ba..c0f013af 100644 --- a/src/gen/api/accountingApi.ts +++ b/src/gen/api/accountingApi.ts @@ -2,7 +2,7 @@ * Xero Accounting API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 4.0.0 + * The version of the OpenAPI document: 5.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -36,6 +36,15 @@ import { Currencies } from '../model/accounting/currencies'; import { Currency } from '../model/accounting/currency'; import { Employees } from '../model/accounting/employees'; import { ExpenseClaims } from '../model/accounting/expenseClaims'; +import { GetBankTransactionsResponse } from '../model/accounting/getBankTransactionsResponse'; +import { GetContactsResponse } from '../model/accounting/getContactsResponse'; +import { GetCreditNotesResponse } from '../model/accounting/getCreditNotesResponse'; +import { GetInvoicesResponse } from '../model/accounting/getInvoicesResponse'; +import { GetManualJournalsResponse } from '../model/accounting/getManualJournalsResponse'; +import { GetOverpaymentsResponse } from '../model/accounting/getOverpaymentsResponse'; +import { GetPaymentsResponse } from '../model/accounting/getPaymentsResponse'; +import { GetPrepaymentsResponse } from '../model/accounting/getPrepaymentsResponse'; +import { GetPurchaseOrdersResponse } from '../model/accounting/getPurchaseOrdersResponse'; import { HistoryRecords } from '../model/accounting/historyRecords'; import { ImportSummaryObject } from '../model/accounting/importSummaryObject'; import { InvoiceReminders } from '../model/accounting/invoiceReminders'; @@ -85,7 +94,7 @@ export enum AccountingApiApiKeys { export class AccountingApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-8.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; @@ -6868,8 +6877,9 @@ export class AccountingApi { * @param order Order by an any element * @param page Up to 100 bank transactions will be returned in a single API call with line items details * @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts + * @param pageSize Number of records to retrieve per page */ - public async getBankTransactions (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: BankTransactions; }> { + public async getBankTransactions (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, pageSize?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: GetBankTransactionsResponse; }> { const localVarPath = this.basePath + '/BankTransactions'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); @@ -6901,6 +6911,10 @@ export class AccountingApi { localVarQueryParameters['unitdp'] = ObjectSerializer.serialize(unitdp, "number"); } + if (pageSize !== undefined) { + localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); + } + localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string"); localVarHeaderParams['If-Modified-Since'] = ObjectSerializer.serialize(ifModifiedSince, "Date"); localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join(); @@ -6930,11 +6944,11 @@ export class AccountingApi { localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'content-type': 'application/x-www-form-urlencoded' }; } } - return new Promise<{ response: AxiosResponse; body: BankTransactions; }>(async (resolve, reject) => { + return new Promise<{ response: AxiosResponse; body: GetBankTransactionsResponse; }>(async (resolve, reject) => { let body = null try { const response = await axios(localVarRequestOptions) - body = ObjectSerializer.deserialize(response.data, "BankTransactions"); + body = ObjectSerializer.deserialize(response.data, "GetBankTransactionsResponse"); if (response.status && response.status >= 200 && response.status <= 299) { resolve({ response: response, body: body }); } else { @@ -8826,8 +8840,9 @@ export class AccountingApi { * @param includeArchived e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response * @param summaryOnly Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. * @param searchTerm Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. + * @param pageSize Number of records to retrieve per page */ - public async getContacts (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, iDs?: Array, page?: number, includeArchived?: boolean, summaryOnly?: boolean, searchTerm?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Contacts; }> { + public async getContacts (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, iDs?: Array, page?: number, includeArchived?: boolean, summaryOnly?: boolean, searchTerm?: string, pageSize?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: GetContactsResponse; }> { const localVarPath = this.basePath + '/Contacts'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); @@ -8871,6 +8886,10 @@ export class AccountingApi { localVarQueryParameters['searchTerm'] = ObjectSerializer.serialize(searchTerm, "string"); } + if (pageSize !== undefined) { + localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); + } + localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string"); localVarHeaderParams['If-Modified-Since'] = ObjectSerializer.serialize(ifModifiedSince, "Date"); localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join(); @@ -8900,11 +8919,11 @@ export class AccountingApi { localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'content-type': 'application/x-www-form-urlencoded' }; } } - return new Promise<{ response: AxiosResponse; body: Contacts; }>(async (resolve, reject) => { + return new Promise<{ response: AxiosResponse; body: GetContactsResponse; }>(async (resolve, reject) => { let body = null try { const response = await axios(localVarRequestOptions) - body = ObjectSerializer.deserialize(response.data, "Contacts"); + body = ObjectSerializer.deserialize(response.data, "GetContactsResponse"); if (response.status && response.status >= 200 && response.status <= 299) { resolve({ response: response, body: body }); } else { @@ -9409,8 +9428,9 @@ export class AccountingApi { * @param order Order by an any element * @param page e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note * @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts + * @param pageSize Number of records to retrieve per page */ - public async getCreditNotes (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: CreditNotes; }> { + public async getCreditNotes (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, pageSize?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: GetCreditNotesResponse; }> { const localVarPath = this.basePath + '/CreditNotes'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); @@ -9442,6 +9462,10 @@ export class AccountingApi { localVarQueryParameters['unitdp'] = ObjectSerializer.serialize(unitdp, "number"); } + if (pageSize !== undefined) { + localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); + } + localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string"); localVarHeaderParams['If-Modified-Since'] = ObjectSerializer.serialize(ifModifiedSince, "Date"); localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join(); @@ -9471,11 +9495,11 @@ export class AccountingApi { localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'content-type': 'application/x-www-form-urlencoded' }; } } - return new Promise<{ response: AxiosResponse; body: CreditNotes; }>(async (resolve, reject) => { + return new Promise<{ response: AxiosResponse; body: GetCreditNotesResponse; }>(async (resolve, reject) => { let body = null try { const response = await axios(localVarRequestOptions) - body = ObjectSerializer.deserialize(response.data, "CreditNotes"); + body = ObjectSerializer.deserialize(response.data, "GetCreditNotesResponse"); if (response.status && response.status >= 200 && response.status <= 299) { resolve({ response: response, body: body }); } else { @@ -10511,8 +10535,9 @@ export class AccountingApi { * @param createdByMyApp When set to true you\'ll only retrieve Invoices created by your app * @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts * @param summaryOnly Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. + * @param pageSize Number of records to retrieve per page */ - public async getInvoices (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, iDs?: Array, invoiceNumbers?: Array, contactIDs?: Array, statuses?: Array, page?: number, includeArchived?: boolean, createdByMyApp?: boolean, unitdp?: number, summaryOnly?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Invoices; }> { + public async getInvoices (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, iDs?: Array, invoiceNumbers?: Array, contactIDs?: Array, statuses?: Array, page?: number, includeArchived?: boolean, createdByMyApp?: boolean, unitdp?: number, summaryOnly?: boolean, pageSize?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: GetInvoicesResponse; }> { const localVarPath = this.basePath + '/Invoices'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); @@ -10572,6 +10597,10 @@ export class AccountingApi { localVarQueryParameters['summaryOnly'] = ObjectSerializer.serialize(summaryOnly, "boolean"); } + if (pageSize !== undefined) { + localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); + } + localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string"); localVarHeaderParams['If-Modified-Since'] = ObjectSerializer.serialize(ifModifiedSince, "Date"); localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join(); @@ -10601,11 +10630,11 @@ export class AccountingApi { localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'content-type': 'application/x-www-form-urlencoded' }; } } - return new Promise<{ response: AxiosResponse; body: Invoices; }>(async (resolve, reject) => { + return new Promise<{ response: AxiosResponse; body: GetInvoicesResponse; }>(async (resolve, reject) => { let body = null try { const response = await axios(localVarRequestOptions) - body = ObjectSerializer.deserialize(response.data, "Invoices"); + body = ObjectSerializer.deserialize(response.data, "GetInvoicesResponse"); if (response.status && response.status >= 200 && response.status <= 299) { resolve({ response: response, body: body }); } else { @@ -11591,8 +11620,9 @@ export class AccountingApi { * @param where Filter by an any element * @param order Order by an any element * @param page e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment + * @param pageSize Number of records to retrieve per page */ - public async getManualJournals (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: ManualJournals; }> { + public async getManualJournals (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, pageSize?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: GetManualJournalsResponse; }> { const localVarPath = this.basePath + '/ManualJournals'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); @@ -11620,6 +11650,10 @@ export class AccountingApi { localVarQueryParameters['page'] = ObjectSerializer.serialize(page, "number"); } + if (pageSize !== undefined) { + localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); + } + localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string"); localVarHeaderParams['If-Modified-Since'] = ObjectSerializer.serialize(ifModifiedSince, "Date"); localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join(); @@ -11649,11 +11683,11 @@ export class AccountingApi { localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'content-type': 'application/x-www-form-urlencoded' }; } } - return new Promise<{ response: AxiosResponse; body: ManualJournals; }>(async (resolve, reject) => { + return new Promise<{ response: AxiosResponse; body: GetManualJournalsResponse; }>(async (resolve, reject) => { let body = null try { const response = await axios(localVarRequestOptions) - body = ObjectSerializer.deserialize(response.data, "ManualJournals"); + body = ObjectSerializer.deserialize(response.data, "GetManualJournalsResponse"); if (response.status && response.status >= 200 && response.status <= 299) { resolve({ response: response, body: body }); } else { @@ -12181,7 +12215,7 @@ export class AccountingApi { * @param page e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment * @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts */ - public async getOverpayments (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Overpayments; }> { + public async getOverpayments (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: GetOverpaymentsResponse; }> { const localVarPath = this.basePath + '/Overpayments'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); @@ -12242,11 +12276,11 @@ export class AccountingApi { localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'content-type': 'application/x-www-form-urlencoded' }; } } - return new Promise<{ response: AxiosResponse; body: Overpayments; }>(async (resolve, reject) => { + return new Promise<{ response: AxiosResponse; body: GetOverpaymentsResponse; }>(async (resolve, reject) => { let body = null try { const response = await axios(localVarRequestOptions) - body = ObjectSerializer.deserialize(response.data, "Overpayments"); + body = ObjectSerializer.deserialize(response.data, "GetOverpaymentsResponse"); if (response.status && response.status >= 200 && response.status <= 299) { resolve({ response: response, body: body }); } else { @@ -12483,8 +12517,9 @@ export class AccountingApi { * @param where Filter by an any element * @param order Order by an any element * @param page Up to 100 payments will be returned in a single API call + * @param pageSize Number of records to retrieve per page */ - public async getPayments (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Payments; }> { + public async getPayments (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, pageSize?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: GetPaymentsResponse; }> { const localVarPath = this.basePath + '/Payments'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); @@ -12512,6 +12547,10 @@ export class AccountingApi { localVarQueryParameters['page'] = ObjectSerializer.serialize(page, "number"); } + if (pageSize !== undefined) { + localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); + } + localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string"); localVarHeaderParams['If-Modified-Since'] = ObjectSerializer.serialize(ifModifiedSince, "Date"); localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join(); @@ -12541,11 +12580,11 @@ export class AccountingApi { localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'content-type': 'application/x-www-form-urlencoded' }; } } - return new Promise<{ response: AxiosResponse; body: Payments; }>(async (resolve, reject) => { + return new Promise<{ response: AxiosResponse; body: GetPaymentsResponse; }>(async (resolve, reject) => { let body = null try { const response = await axios(localVarRequestOptions) - body = ObjectSerializer.deserialize(response.data, "Payments"); + body = ObjectSerializer.deserialize(response.data, "GetPaymentsResponse"); if (response.status && response.status >= 200 && response.status <= 299) { resolve({ response: response, body: body }); } else { @@ -12717,7 +12756,7 @@ export class AccountingApi { * @param page e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment * @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts */ - public async getPrepayments (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Prepayments; }> { + public async getPrepayments (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: GetPrepaymentsResponse; }> { const localVarPath = this.basePath + '/Prepayments'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); @@ -12778,11 +12817,11 @@ export class AccountingApi { localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'content-type': 'application/x-www-form-urlencoded' }; } } - return new Promise<{ response: AxiosResponse; body: Prepayments; }>(async (resolve, reject) => { + return new Promise<{ response: AxiosResponse; body: GetPrepaymentsResponse; }>(async (resolve, reject) => { let body = null try { const response = await axios(localVarRequestOptions) - body = ObjectSerializer.deserialize(response.data, "Prepayments"); + body = ObjectSerializer.deserialize(response.data, "GetPrepaymentsResponse"); if (response.status && response.status >= 200 && response.status <= 299) { resolve({ response: response, body: body }); } else { @@ -13357,8 +13396,9 @@ export class AccountingApi { * @param dateTo Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31 * @param order Order by an any element * @param page To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned. + * @param pageSize Number of records to retrieve per page */ - public async getPurchaseOrders (xeroTenantId: string, ifModifiedSince?: Date, status?: 'DRAFT' | 'SUBMITTED' | 'AUTHORISED' | 'BILLED' | 'DELETED', dateFrom?: string, dateTo?: string, order?: string, page?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: PurchaseOrders; }> { + public async getPurchaseOrders (xeroTenantId: string, ifModifiedSince?: Date, status?: 'DRAFT' | 'SUBMITTED' | 'AUTHORISED' | 'BILLED' | 'DELETED', dateFrom?: string, dateTo?: string, order?: string, page?: number, pageSize?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: GetPurchaseOrdersResponse; }> { const localVarPath = this.basePath + '/PurchaseOrders'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); @@ -13394,6 +13434,10 @@ export class AccountingApi { localVarQueryParameters['page'] = ObjectSerializer.serialize(page, "number"); } + if (pageSize !== undefined) { + localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); + } + localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string"); localVarHeaderParams['If-Modified-Since'] = ObjectSerializer.serialize(ifModifiedSince, "Date"); localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join(); @@ -13423,11 +13467,11 @@ export class AccountingApi { localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'content-type': 'application/x-www-form-urlencoded' }; } } - return new Promise<{ response: AxiosResponse; body: PurchaseOrders; }>(async (resolve, reject) => { + return new Promise<{ response: AxiosResponse; body: GetPurchaseOrdersResponse; }>(async (resolve, reject) => { let body = null try { const response = await axios(localVarRequestOptions) - body = ObjectSerializer.deserialize(response.data, "PurchaseOrders"); + body = ObjectSerializer.deserialize(response.data, "GetPurchaseOrdersResponse"); if (response.status && response.status >= 200 && response.status <= 299) { resolve({ response: response, body: body }); } else { diff --git a/src/gen/api/appStoreApi.ts b/src/gen/api/appStoreApi.ts index 42e04592..c4c90366 100644 --- a/src/gen/api/appStoreApi.ts +++ b/src/gen/api/appStoreApi.ts @@ -2,7 +2,7 @@ * Xero AppStore API * These endpoints are for Xero Partners to interact with the App Store Billing platform * - * The version of the OpenAPI document: 4.0.0 + * The version of the OpenAPI document: 5.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -38,7 +38,7 @@ export enum AppStoreApiApiKeys { export class AppStoreApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-8.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/assetApi.ts b/src/gen/api/assetApi.ts index 95d21b30..04087651 100644 --- a/src/gen/api/assetApi.ts +++ b/src/gen/api/assetApi.ts @@ -2,7 +2,7 @@ * Xero Assets API * The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc. * - * The version of the OpenAPI document: 4.0.0 + * The version of the OpenAPI document: 5.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -37,7 +37,7 @@ export enum AssetApiApiKeys { export class AssetApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-8.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/bankfeedsApi.ts b/src/gen/api/bankfeedsApi.ts index 9b1e6241..b04f91a6 100644 --- a/src/gen/api/bankfeedsApi.ts +++ b/src/gen/api/bankfeedsApi.ts @@ -2,7 +2,7 @@ * Xero Bank Feeds API * The Bank Feeds API is a closed API that is only available to financial institutions that have an established financial services partnership with Xero. If you\'re an existing financial services partner that wants access, contact your local Partner Manager. If you\'re a financial institution who wants to provide bank feeds to your business customers, contact us to become a financial services partner. * - * The version of the OpenAPI document: 4.0.0 + * The version of the OpenAPI document: 5.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -36,7 +36,7 @@ export enum BankFeedsApiApiKeys { export class BankFeedsApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-8.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/filesApi.ts b/src/gen/api/filesApi.ts index 8aaf299b..ad0f9e82 100644 --- a/src/gen/api/filesApi.ts +++ b/src/gen/api/filesApi.ts @@ -2,7 +2,7 @@ * Xero Files API * These endpoints are specific to Xero Files API * - * The version of the OpenAPI document: 4.0.0 + * The version of the OpenAPI document: 5.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -36,7 +36,7 @@ export enum FilesApiApiKeys { export class FilesApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-8.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/financeApi.ts b/src/gen/api/financeApi.ts index 3740c14a..ad7b6545 100644 --- a/src/gen/api/financeApi.ts +++ b/src/gen/api/financeApi.ts @@ -2,7 +2,7 @@ * Xero Finance API * The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital. * - * The version of the OpenAPI document: 4.0.0 + * The version of the OpenAPI document: 5.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -44,7 +44,7 @@ export enum FinanceApiApiKeys { export class FinanceApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-8.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollAUApi.ts b/src/gen/api/payrollAUApi.ts index df59e188..eb09f887 100644 --- a/src/gen/api/payrollAUApi.ts +++ b/src/gen/api/payrollAUApi.ts @@ -2,7 +2,7 @@ * Xero Payroll AU API * This is the Xero Payroll API for orgs in Australia region. * - * The version of the OpenAPI document: 4.0.0 + * The version of the OpenAPI document: 5.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,7 +53,7 @@ export enum PayrollAuApiApiKeys { export class PayrollAuApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-8.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollNZApi.ts b/src/gen/api/payrollNZApi.ts index 38e65dfa..031156b6 100644 --- a/src/gen/api/payrollNZApi.ts +++ b/src/gen/api/payrollNZApi.ts @@ -2,7 +2,7 @@ * Xero Payroll NZ * This is the Xero Payroll API for orgs in the NZ region. * - * The version of the OpenAPI document: 4.0.0 + * The version of the OpenAPI document: 5.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -94,7 +94,7 @@ export enum PayrollNzApiApiKeys { export class PayrollNzApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-8.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollUKApi.ts b/src/gen/api/payrollUKApi.ts index f0d5dac3..2c831ec6 100644 --- a/src/gen/api/payrollUKApi.ts +++ b/src/gen/api/payrollUKApi.ts @@ -2,7 +2,7 @@ * Xero Payroll UK * This is the Xero Payroll API for orgs in the UK region. * - * The version of the OpenAPI document: 4.0.0 + * The version of the OpenAPI document: 5.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -94,7 +94,7 @@ export enum PayrollUkApiApiKeys { export class PayrollUkApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-8.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/projectApi.ts b/src/gen/api/projectApi.ts index 65e9ef4e..8cddc505 100644 --- a/src/gen/api/projectApi.ts +++ b/src/gen/api/projectApi.ts @@ -2,7 +2,7 @@ * Xero Projects API * This is the Xero Projects API * - * The version of the OpenAPI document: 4.0.0 + * The version of the OpenAPI document: 5.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -44,7 +44,7 @@ export enum ProjectApiApiKeys { export class ProjectApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-8.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/model/accounting/getBankTransactionsResponse.ts b/src/gen/model/accounting/getBankTransactionsResponse.ts new file mode 100644 index 00000000..43c95297 --- /dev/null +++ b/src/gen/model/accounting/getBankTransactionsResponse.ts @@ -0,0 +1,50 @@ +import { BankTransaction } from '././bankTransaction'; +import { PageInfo } from '././pageInfo'; + +export class GetBankTransactionsResponse { + 'id'?: string; + 'status'?: string; + 'providerName'?: string; + 'dateTimeUTC'?: string; + 'pageInfo'?: PageInfo; + 'bankTransactions'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "Id", + "type": "string" + }, + { + "name": "status", + "baseName": "Status", + "type": "string" + }, + { + "name": "providerName", + "baseName": "ProviderName", + "type": "string" + }, + { + "name": "dateTimeUTC", + "baseName": "DateTimeUTC", + "type": "string" + }, + { + "name": "pageInfo", + "baseName": "PageInfo", + "type": "PageInfo" + }, + { + "name": "bankTransactions", + "baseName": "BankTransactions", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return GetBankTransactionsResponse.attributeTypeMap; + } +} + diff --git a/src/gen/model/accounting/getContactsResponse.ts b/src/gen/model/accounting/getContactsResponse.ts new file mode 100644 index 00000000..4456cc55 --- /dev/null +++ b/src/gen/model/accounting/getContactsResponse.ts @@ -0,0 +1,50 @@ +import { Contact } from '././contact'; +import { PageInfo } from '././pageInfo'; + +export class GetContactsResponse { + 'id'?: string; + 'status'?: string; + 'providerName'?: string; + 'dateTimeUTC'?: string; + 'pageInfo'?: PageInfo; + 'contacts'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "Id", + "type": "string" + }, + { + "name": "status", + "baseName": "Status", + "type": "string" + }, + { + "name": "providerName", + "baseName": "ProviderName", + "type": "string" + }, + { + "name": "dateTimeUTC", + "baseName": "DateTimeUTC", + "type": "string" + }, + { + "name": "pageInfo", + "baseName": "PageInfo", + "type": "PageInfo" + }, + { + "name": "contacts", + "baseName": "Contacts", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return GetContactsResponse.attributeTypeMap; + } +} + diff --git a/src/gen/model/accounting/getCreditNotesResponse.ts b/src/gen/model/accounting/getCreditNotesResponse.ts new file mode 100644 index 00000000..073e2afd --- /dev/null +++ b/src/gen/model/accounting/getCreditNotesResponse.ts @@ -0,0 +1,50 @@ +import { CreditNote } from '././creditNote'; +import { PageInfo } from '././pageInfo'; + +export class GetCreditNotesResponse { + 'id'?: string; + 'status'?: string; + 'providerName'?: string; + 'dateTimeUTC'?: string; + 'pageInfo'?: PageInfo; + 'creditNotes'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "Id", + "type": "string" + }, + { + "name": "status", + "baseName": "Status", + "type": "string" + }, + { + "name": "providerName", + "baseName": "ProviderName", + "type": "string" + }, + { + "name": "dateTimeUTC", + "baseName": "DateTimeUTC", + "type": "string" + }, + { + "name": "pageInfo", + "baseName": "PageInfo", + "type": "PageInfo" + }, + { + "name": "creditNotes", + "baseName": "CreditNotes", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return GetCreditNotesResponse.attributeTypeMap; + } +} + diff --git a/src/gen/model/accounting/getInvoicesResponse.ts b/src/gen/model/accounting/getInvoicesResponse.ts new file mode 100644 index 00000000..261826d1 --- /dev/null +++ b/src/gen/model/accounting/getInvoicesResponse.ts @@ -0,0 +1,50 @@ +import { Invoice } from '././invoice'; +import { PageInfo } from '././pageInfo'; + +export class GetInvoicesResponse { + 'id'?: string; + 'status'?: string; + 'providerName'?: string; + 'dateTimeUTC'?: string; + 'pageInfo'?: PageInfo; + 'invoices'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "Id", + "type": "string" + }, + { + "name": "status", + "baseName": "Status", + "type": "string" + }, + { + "name": "providerName", + "baseName": "ProviderName", + "type": "string" + }, + { + "name": "dateTimeUTC", + "baseName": "DateTimeUTC", + "type": "string" + }, + { + "name": "pageInfo", + "baseName": "PageInfo", + "type": "PageInfo" + }, + { + "name": "invoices", + "baseName": "Invoices", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return GetInvoicesResponse.attributeTypeMap; + } +} + diff --git a/src/gen/model/accounting/getManualJournalsResponse.ts b/src/gen/model/accounting/getManualJournalsResponse.ts new file mode 100644 index 00000000..dc0e5022 --- /dev/null +++ b/src/gen/model/accounting/getManualJournalsResponse.ts @@ -0,0 +1,50 @@ +import { ManualJournal } from '././manualJournal'; +import { PageInfo } from '././pageInfo'; + +export class GetManualJournalsResponse { + 'id'?: string; + 'status'?: string; + 'providerName'?: string; + 'dateTimeUTC'?: string; + 'pageInfo'?: PageInfo; + 'manualJournals'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "Id", + "type": "string" + }, + { + "name": "status", + "baseName": "Status", + "type": "string" + }, + { + "name": "providerName", + "baseName": "ProviderName", + "type": "string" + }, + { + "name": "dateTimeUTC", + "baseName": "DateTimeUTC", + "type": "string" + }, + { + "name": "pageInfo", + "baseName": "PageInfo", + "type": "PageInfo" + }, + { + "name": "manualJournals", + "baseName": "ManualJournals", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return GetManualJournalsResponse.attributeTypeMap; + } +} + diff --git a/src/gen/model/accounting/getOverpaymentsResponse.ts b/src/gen/model/accounting/getOverpaymentsResponse.ts new file mode 100644 index 00000000..b2668e7a --- /dev/null +++ b/src/gen/model/accounting/getOverpaymentsResponse.ts @@ -0,0 +1,50 @@ +import { Overpayment } from '././overpayment'; +import { PageInfo } from '././pageInfo'; + +export class GetOverpaymentsResponse { + 'id'?: string; + 'status'?: string; + 'providerName'?: string; + 'dateTimeUTC'?: string; + 'pageInfo'?: PageInfo; + 'overpayments'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "Id", + "type": "string" + }, + { + "name": "status", + "baseName": "Status", + "type": "string" + }, + { + "name": "providerName", + "baseName": "ProviderName", + "type": "string" + }, + { + "name": "dateTimeUTC", + "baseName": "DateTimeUTC", + "type": "string" + }, + { + "name": "pageInfo", + "baseName": "PageInfo", + "type": "PageInfo" + }, + { + "name": "overpayments", + "baseName": "Overpayments", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return GetOverpaymentsResponse.attributeTypeMap; + } +} + diff --git a/src/gen/model/accounting/getPaymentsResponse.ts b/src/gen/model/accounting/getPaymentsResponse.ts new file mode 100644 index 00000000..fd057ff9 --- /dev/null +++ b/src/gen/model/accounting/getPaymentsResponse.ts @@ -0,0 +1,50 @@ +import { PageInfo } from '././pageInfo'; +import { Payment } from '././payment'; + +export class GetPaymentsResponse { + 'id'?: string; + 'status'?: string; + 'providerName'?: string; + 'dateTimeUTC'?: string; + 'pageInfo'?: PageInfo; + 'payments'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "Id", + "type": "string" + }, + { + "name": "status", + "baseName": "Status", + "type": "string" + }, + { + "name": "providerName", + "baseName": "ProviderName", + "type": "string" + }, + { + "name": "dateTimeUTC", + "baseName": "DateTimeUTC", + "type": "string" + }, + { + "name": "pageInfo", + "baseName": "PageInfo", + "type": "PageInfo" + }, + { + "name": "payments", + "baseName": "Payments", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return GetPaymentsResponse.attributeTypeMap; + } +} + diff --git a/src/gen/model/accounting/getPrepaymentsResponse.ts b/src/gen/model/accounting/getPrepaymentsResponse.ts new file mode 100644 index 00000000..2d9d09a1 --- /dev/null +++ b/src/gen/model/accounting/getPrepaymentsResponse.ts @@ -0,0 +1,50 @@ +import { PageInfo } from '././pageInfo'; +import { Prepayment } from '././prepayment'; + +export class GetPrepaymentsResponse { + 'id'?: string; + 'status'?: string; + 'providerName'?: string; + 'dateTimeUTC'?: string; + 'pageInfo'?: PageInfo; + 'prepayments'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "Id", + "type": "string" + }, + { + "name": "status", + "baseName": "Status", + "type": "string" + }, + { + "name": "providerName", + "baseName": "ProviderName", + "type": "string" + }, + { + "name": "dateTimeUTC", + "baseName": "DateTimeUTC", + "type": "string" + }, + { + "name": "pageInfo", + "baseName": "PageInfo", + "type": "PageInfo" + }, + { + "name": "prepayments", + "baseName": "Prepayments", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return GetPrepaymentsResponse.attributeTypeMap; + } +} + diff --git a/src/gen/model/accounting/getPurchaseOrdersResponse.ts b/src/gen/model/accounting/getPurchaseOrdersResponse.ts new file mode 100644 index 00000000..4ecd266c --- /dev/null +++ b/src/gen/model/accounting/getPurchaseOrdersResponse.ts @@ -0,0 +1,50 @@ +import { PageInfo } from '././pageInfo'; +import { PurchaseOrder } from '././purchaseOrder'; + +export class GetPurchaseOrdersResponse { + 'id'?: string; + 'status'?: string; + 'providerName'?: string; + 'dateTimeUTC'?: string; + 'pageInfo'?: PageInfo; + 'purchaseOrders'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "Id", + "type": "string" + }, + { + "name": "status", + "baseName": "Status", + "type": "string" + }, + { + "name": "providerName", + "baseName": "ProviderName", + "type": "string" + }, + { + "name": "dateTimeUTC", + "baseName": "DateTimeUTC", + "type": "string" + }, + { + "name": "pageInfo", + "baseName": "PageInfo", + "type": "PageInfo" + }, + { + "name": "purchaseOrders", + "baseName": "PurchaseOrders", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return GetPurchaseOrdersResponse.attributeTypeMap; + } +} + diff --git a/src/gen/model/accounting/models.ts b/src/gen/model/accounting/models.ts index 10c11840..db16744f 100644 --- a/src/gen/model/accounting/models.ts +++ b/src/gen/model/accounting/models.ts @@ -52,6 +52,15 @@ export * from '././employees'; export * from '././expenseClaim'; export * from '././expenseClaims'; export * from '././externalLink'; +export * from '././getBankTransactionsResponse'; +export * from '././getContactsResponse'; +export * from '././getCreditNotesResponse'; +export * from '././getInvoicesResponse'; +export * from '././getManualJournalsResponse'; +export * from '././getOverpaymentsResponse'; +export * from '././getPaymentsResponse'; +export * from '././getPrepaymentsResponse'; +export * from '././getPurchaseOrdersResponse'; export * from '././historyRecord'; export * from '././historyRecords'; export * from '././importSummary'; @@ -83,6 +92,7 @@ export * from '././organisation'; export * from '././organisations'; export * from '././overpayment'; export * from '././overpayments'; +export * from '././pageInfo'; export * from '././payment'; export * from '././paymentDelete'; export * from '././paymentService'; @@ -186,6 +196,15 @@ import { Employees } from '././employees'; import { ExpenseClaim } from '././expenseClaim'; import { ExpenseClaims } from '././expenseClaims'; import { ExternalLink } from '././externalLink'; +import { GetBankTransactionsResponse } from '././getBankTransactionsResponse'; +import { GetContactsResponse } from '././getContactsResponse'; +import { GetCreditNotesResponse } from '././getCreditNotesResponse'; +import { GetInvoicesResponse } from '././getInvoicesResponse'; +import { GetManualJournalsResponse } from '././getManualJournalsResponse'; +import { GetOverpaymentsResponse } from '././getOverpaymentsResponse'; +import { GetPaymentsResponse } from '././getPaymentsResponse'; +import { GetPrepaymentsResponse } from '././getPrepaymentsResponse'; +import { GetPurchaseOrdersResponse } from '././getPurchaseOrdersResponse'; import { HistoryRecord } from '././historyRecord'; import { HistoryRecords } from '././historyRecords'; import { ImportSummary } from '././importSummary'; @@ -217,6 +236,7 @@ import { Organisation } from '././organisation'; import { Organisations } from '././organisations'; import { Overpayment } from '././overpayment'; import { Overpayments } from '././overpayments'; +import { PageInfo } from '././pageInfo'; import { Payment } from '././payment'; import { PaymentDelete } from '././paymentDelete'; import { PaymentService } from '././paymentService'; @@ -399,6 +419,15 @@ let typeMap: {[index: string]: any} = { "ExpenseClaim": ExpenseClaim, "ExpenseClaims": ExpenseClaims, "ExternalLink": ExternalLink, + "GetBankTransactionsResponse": GetBankTransactionsResponse, + "GetContactsResponse": GetContactsResponse, + "GetCreditNotesResponse": GetCreditNotesResponse, + "GetInvoicesResponse": GetInvoicesResponse, + "GetManualJournalsResponse": GetManualJournalsResponse, + "GetOverpaymentsResponse": GetOverpaymentsResponse, + "GetPaymentsResponse": GetPaymentsResponse, + "GetPrepaymentsResponse": GetPrepaymentsResponse, + "GetPurchaseOrdersResponse": GetPurchaseOrdersResponse, "HistoryRecord": HistoryRecord, "HistoryRecords": HistoryRecords, "ImportSummary": ImportSummary, @@ -429,6 +458,7 @@ let typeMap: {[index: string]: any} = { "Organisations": Organisations, "Overpayment": Overpayment, "Overpayments": Overpayments, + "PageInfo": PageInfo, "Payment": Payment, "PaymentDelete": PaymentDelete, "PaymentService": PaymentService, diff --git a/src/gen/model/accounting/pageInfo.ts b/src/gen/model/accounting/pageInfo.ts new file mode 100644 index 00000000..c5fcad34 --- /dev/null +++ b/src/gen/model/accounting/pageInfo.ts @@ -0,0 +1,39 @@ + +/** +* Pagination information +*/ +export class PageInfo { + 'page'?: number; + 'pageSize'?: number; + 'totalPages'?: number; + 'totalRows'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "page", + "baseName": "Page", + "type": "number" + }, + { + "name": "pageSize", + "baseName": "PageSize", + "type": "number" + }, + { + "name": "totalPages", + "baseName": "TotalPages", + "type": "number" + }, + { + "name": "totalRows", + "baseName": "TotalRows", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return PageInfo.attributeTypeMap; + } +} + diff --git a/src/gen/model/finance/dataSourceResponse.ts b/src/gen/model/finance/dataSourceResponse.ts index bdceb244..c750da26 100644 --- a/src/gen/model/finance/dataSourceResponse.ts +++ b/src/gen/model/finance/dataSourceResponse.ts @@ -1,63 +1,63 @@ export class DataSourceResponse { /** - * Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. + * Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. */ 'directBankFeed'?: number; /** - * Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. + * No longer in use. */ 'indirectBankFeed'?: number; /** - * Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. + * Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. */ 'fileUpload'?: number; /** - * Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. + * Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. */ 'manual'?: number; /** - * Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. + * Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. */ 'directBankFeedPos'?: number; /** - * Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only positive transactions are included. + * No longer in use. */ 'indirectBankFeedPos'?: number; /** - * Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. + * Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. */ 'fileUploadPos'?: number; /** - * Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. + * Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. */ 'manualPos'?: number; /** - * Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. + * Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. */ 'directBankFeedNeg'?: number; /** - * Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only negative transactions are included. + * No longer in use. */ 'indirectBankFeedNeg'?: number; /** - * Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. + * Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. */ 'fileUploadNeg'?: number; /** - * Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. + * Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. */ 'manualNeg'?: number; /** - * Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. + * Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. */ 'otherPos'?: number; /** - * Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. + * Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. */ 'otherNeg'?: number; /** - * Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. + * Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. */ 'other'?: number;