From 66ef3ba0417942bbdda96880b7718ff00bca1085 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Wed, 6 May 2026 23:39:59 +0000 Subject: [PATCH] Releasing 15.0.1 (OAS: 13.0.0) --- docs/accounting/index.html | 657 +------------------------ docs/files/index.html | 10 + src/gen/api/accountingApi.ts | 316 +----------- src/gen/api/appStoreApi.ts | 2 +- src/gen/api/assetApi.ts | 2 +- src/gen/api/bankfeedsApi.ts | 2 +- src/gen/api/filesApi.ts | 6 +- src/gen/api/financeApi.ts | 2 +- src/gen/api/payrollAUApi.ts | 2 +- src/gen/api/payrollAUV2Api.ts | 2 +- src/gen/api/payrollNZApi.ts | 2 +- src/gen/api/payrollUKApi.ts | 2 +- src/gen/api/projectApi.ts | 2 +- src/gen/model/accounting/prepayment.ts | 9 + src/gen/model/files/association.ts | 18 + 15 files changed, 56 insertions(+), 978 deletions(-) diff --git a/docs/accounting/index.html b/docs/accounting/index.html index 8ad0e5fce..b6c7a7566 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -4778,6 +4778,12 @@ "description" : "Xero generated unique identifier", "format" : "uuid" }, + "BrandingThemeID" : { + "type" : "string", + "description" : "The unique identifier of the branding template applied to a receive prepayment", + "format" : "uuid", + "readOnly" : true + }, "CurrencyRate" : { "type" : "number", "description" : "The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used", @@ -6421,9 +6427,6 @@
  • createCurrency
  • -
  • - createEmployees -
  • createExpenseClaimHistory
  • @@ -6697,12 +6700,6 @@
  • getCurrencies
  • -
  • - getEmployee -
  • -
  • - getEmployees -
  • getExpenseClaim
  • @@ -7015,9 +7012,6 @@
  • updateOrCreateCreditNotes
  • -
  • - updateOrCreateEmployees -
  • updateOrCreateInvoices
  • @@ -11204,188 +11198,6 @@

    Parameters


    -
    -
    -
    -

    createEmployees

    -

    Creates new employees used in Xero payrun

    -
    -
    -
    -

    -

    This endpoint is deprecated and will be removed April 28, 2026

    -

    -
    -
    /Employees
    -

    -

    Usage and SDK Samples

    -

    - -
    - -
    -
    await xero.setTokenSet(tokenSet);
    -
    -const xeroTenantId = 'YOUR_XERO_TENANT_ID';
    -const summarizeErrors = true;
    -const idempotencyKey = 'KEY_VALUE';
    -
    -const employee: Employee = { 
    -  firstName: "Nick",
    -  lastName: "Fury"
    -}; 
    -
    -const employees: Employees = {  
    -  employees: [employee]
    -}; 
    -
    -try {
    -  const response = await xero.accountingApi.createEmployees(xeroTenantId, employees,  summarizeErrors,idempotencyKey);
    -  console.log(response.body || response.response.statusCode)
    -} catch (err) {
    -  const error = JSON.stringify(err.response.body, null, 2)
    -  console.log(`Status Code: ${err.response.statusCode} => ${error}`);
    -}
    -
    -
    -

    Scopes

    - - - - - - - -
    accounting.settingsGrant read-write access to organisation and account settings
    -

    Parameters

    -
    Header parameters
    - - - - - - - - - - - - - -
    NameDescription
    xero-tenant-id* - - -
    -
    -
    - - String - - -
    -Xero identifier for Tenant -
    -
    -
    - Required -
    -
    -
    -
    Idempotency-Key - - -
    -
    -
    - - String - - -
    -This allows you to safely retry requests without the risk of duplicate processing. 128 character max. -
    -
    -
    -
    -
    -
    Body parameters
    - - - - - - -
    NameDescription
    employees * -
    -
    - - Employees - - -
    -Employees with array of Employee object in body of request -
    -
    -
    - Required -
    -
    - -
    -
    Query parameters
    - - - - - - - - - -
    NameDescription
    summarizeErrors - - -
    -
    -
    - - Boolean - - -
    -If false return 200 OK and mix of successfully created objects and any with validation errors -
    -
    -
    -
    -
    -
    -
    -
    @@ -26013,281 +25825,6 @@

    Parameters

    - - - - - -
    -
    -
    -
    -

    getEmployee

    -

    Retrieves a specific employee used in Xero payrun using a unique employee Id

    -
    -
    -
    -

    -

    This endpoint is deprecated and will be removed April 28, 2026

    -

    -
    -
    /Employees/{EmployeeID}
    -

    -

    Usage and SDK Samples

    -

    - -
    - -
    -
    await xero.setTokenSet(tokenSet);
    -
    -const xeroTenantId = 'YOUR_XERO_TENANT_ID';
    -const employeeID = '00000000-0000-0000-0000-000000000000';
    -
    -try {
    -  const response = await xero.accountingApi.getEmployee(xeroTenantId, employeeID);
    -  console.log(response.body || response.response.statusCode)
    -} catch (err) {
    -  const error = JSON.stringify(err.response.body, null, 2)
    -  console.log(`Status Code: ${err.response.statusCode} => ${error}`);
    -}
    -
    -
    -

    Scopes

    - - - - - - - - - - - - -
    accounting.settingsGrant read-write access to organisation and account settings
    accounting.settings.readGrant read-only access to organisation and account settings
    -

    Parameters

    -
    Path parameters
    - - - - - - - - - -
    NameDescription
    EmployeeID* - - -
    -
    -
    - - UUID - - - (uuid) - - -
    -Unique identifier for a Employee -
    -
    -
    - Required -
    -
    -
    -
    -
    Header parameters
    - - - - - - - - - -
    NameDescription
    xero-tenant-id* - - -
    -
    -
    - - String - - -
    -Xero identifier for Tenant -
    -
    -
    - Required -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    getEmployees

    -

    Retrieves employees used in Xero payrun

    -
    -
    -
    -

    -

    This endpoint is deprecated and will be removed April 28, 2026

    -

    -
    -
    /Employees
    -

    -

    Usage and SDK Samples

    -

    - -
    - -
    -
    await xero.setTokenSet(tokenSet);
    -
    -const xeroTenantId = 'YOUR_XERO_TENANT_ID';
    -const ifModifiedSince: Date = new Date("2020-02-06T12:17:43.202-08:00");
    -const where = 'Status=="ACTIVE"';
    -const order = 'LastName ASC';
    -
    -try {
    -  const response = await xero.accountingApi.getEmployees(xeroTenantId, ifModifiedSince, where, order);
    -  console.log(response.body || response.response.statusCode)
    -} catch (err) {
    -  const error = JSON.stringify(err.response.body, null, 2)
    -  console.log(`Status Code: ${err.response.statusCode} => ${error}`);
    -}
    -
    -
    -

    Scopes

    - - - - - - - - - - - - -
    accounting.settingsGrant read-write access to organisation and account settings
    accounting.settings.readGrant read-only access to organisation and account settings
    -

    Parameters

    -
    Header parameters
    - - - - - - - - - - - - - -
    NameDescription
    xero-tenant-id* - - -
    -
    -
    - - String - - -
    -Xero identifier for Tenant -
    -
    -
    - Required -
    -
    -
    -
    If-Modified-Since - - -
    -
    -
    - - Date - - - (date-time) - - -
    -Only records created or modified since this timestamp will be returned -
    -
    -
    -
    -
    -
    Query parameters
    - - - - - - - - - - -
    NameDescription
    where - - -
    -
    -
    - - String - - -
    -Filter by an any element -
    -
    -
    -
    -
    order - - -
    -
    -
    - - String - - -
    -Order by an any element -
    -
    -
    -
    -
    @@ -42844,188 +42381,6 @@

    Parameters

    - - - - - -
    -
    -
    -
    -

    updateOrCreateEmployees

    -

    Creates a single new employees used in Xero payrun

    -
    -
    -
    -

    -

    This endpoint is deprecated and will be removed April 28, 2026

    -

    -
    -
    /Employees
    -

    -

    Usage and SDK Samples

    -

    - -
    - -
    -
    await xero.setTokenSet(tokenSet);
    -
    -const xeroTenantId = 'YOUR_XERO_TENANT_ID';
    -const summarizeErrors = true;
    -const idempotencyKey = 'KEY_VALUE';
    -
    -const employee: Employee = { 
    -  firstName: "Nick",
    -  lastName: "Fury"
    -}; 
    -
    -const employees: Employees = {  
    -  employees: [employee]
    -}; 
    -
    -try {
    -  const response = await xero.accountingApi.updateOrCreateEmployees(xeroTenantId, employees,  summarizeErrors,idempotencyKey);
    -  console.log(response.body || response.response.statusCode)
    -} catch (err) {
    -  const error = JSON.stringify(err.response.body, null, 2)
    -  console.log(`Status Code: ${err.response.statusCode} => ${error}`);
    -}
    -
    -
    -

    Scopes

    - - - - - - - -
    accounting.settingsGrant read-write access to organisation and account settings
    -

    Parameters

    -
    Header parameters
    - - - - - - - - - - - - - -
    NameDescription
    xero-tenant-id* - - -
    -
    -
    - - String - - -
    -Xero identifier for Tenant -
    -
    -
    - Required -
    -
    -
    -
    Idempotency-Key - - -
    -
    -
    - - String - - -
    -This allows you to safely retry requests without the risk of duplicate processing. 128 character max. -
    -
    -
    -
    -
    -
    Body parameters
    - - - - - - -
    NameDescription
    employees * -
    -
    - - Employees - - -
    -Employees with array of Employee object in body of request -
    -
    -
    - Required -
    -
    - -
    -
    Query parameters
    - - - - - - -
    NameDescription
    summarizeErrors - - -
    -
    -
    - - Boolean - - -
    -If false return 200 OK and mix of successfully created objects and any with validation errors -
    -
    -
    -
    -
    diff --git a/docs/files/index.html b/docs/files/index.html index dcf7a2e42..3d85f6fec 100644 --- a/docs/files/index.html +++ b/docs/files/index.html @@ -881,6 +881,16 @@ "description" : "The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.", "example" : 12357 }, + "CreatedDateUtc" : { + "type" : "string", + "description" : "The date the file was created (UTC). Note- The CreatedDateUtc element is only returned when using /Associations/{ObjectId} endpoint.", + "format" : "date-time" + }, + "AssociationDateUtc" : { + "type" : "string", + "description" : "The date the file was associated with the object (UTC). Note- The AssociationDateUtc element is only returned when using /Associations/{ObjectId} endpoint.", + "format" : "date-time" + }, "FileId" : { "type" : "string", "description" : "The unique identifier of the file", diff --git a/src/gen/api/accountingApi.ts b/src/gen/api/accountingApi.ts index fc07a6a46..bd6179c6a 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: 12.0.2 + * The version of the OpenAPI document: 13.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -34,7 +34,6 @@ import { Contacts } from '../model/accounting/contacts'; import { CreditNotes } from '../model/accounting/creditNotes'; 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 { HistoryRecords } from '../model/accounting/historyRecords'; import { ImportSummaryObject } from '../model/accounting/importSummaryObject'; @@ -1975,86 +1974,6 @@ export class AccountingApi { }); }); } - /** - * This endpoint is deprecated and will be removed April 28, 2026 - * @summary Creates new employees used in Xero payrun - * @param xeroTenantId Xero identifier for Tenant - * @param employees Employees with array of Employee object in body of request - * @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors - * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. - */ - public async createEmployees (xeroTenantId: string, employees: Employees, summarizeErrors?: boolean, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Employees; }> { - const localVarPath = this.basePath + '/Employees'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - let acceptHeadersFromSpec = [ - "application/json" - ]; - const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); - const responseTypeOption = isBufferType ? "arraybuffer" : "json"; - - // verify required parameter 'xeroTenantId' is not null or undefined - if (xeroTenantId === null || xeroTenantId === undefined) { - throw new Error('Required parameter xeroTenantId was null or undefined when calling createEmployees.'); - } - - // verify required parameter 'employees' is not null or undefined - if (employees === null || employees === undefined) { - throw new Error('Required parameter employees was null or undefined when calling createEmployees.'); - } - - if (summarizeErrors !== undefined) { - localVarQueryParameters['summarizeErrors'] = ObjectSerializer.serialize(summarizeErrors, "boolean"); - } - - localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string"); - localVarHeaderParams['Idempotency-Key'] = ObjectSerializer.serialize(idempotencyKey, "string"); - localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join(); - (Object).assign(localVarHeaderParams, options.headers); - let localVarUseFormData = false; - - let localVarRequestOptions: AxiosRequestConfig = { - method: 'PUT', - params: localVarQueryParameters, - headers: localVarHeaderParams, - url: localVarPath, - responseType: responseTypeOption, - data: ObjectSerializer.serialize(employees, "Employees"), - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions)); - - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).data = localVarFormParams; - localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'Content-Type': 'multipart/form-data' }; - } else { - localVarRequestOptions.data = localVarFormParams; - localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'content-type': 'application/x-www-form-urlencoded' }; - } - } - return new Promise<{ response: AxiosResponse; body: Employees; }>(async (resolve, reject) => { - let body = null - try { - const response = await axios(localVarRequestOptions) - body = ObjectSerializer.deserialize(response.data, "Employees"); - if (response.status && response.status >= 200 && response.status <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - catch(error) { - const errorResponse = new ApiError(error) - reject(JSON.stringify(errorResponse.generateError())) - } - }); - }); - } /** * * @summary Creates a history record for a specific expense claim @@ -9512,159 +9431,6 @@ export class AccountingApi { }); }); } - /** - * This endpoint is deprecated and will be removed April 28, 2026 - * @summary Retrieves a specific employee used in Xero payrun using a unique employee Id - * @param xeroTenantId Xero identifier for Tenant - * @param employeeID Unique identifier for a Employee - */ - public async getEmployee (xeroTenantId: string, employeeID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Employees; }> { - const localVarPath = this.basePath + '/Employees/{EmployeeID}' - .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - let acceptHeadersFromSpec = [ - "application/json" - ]; - const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); - const responseTypeOption = isBufferType ? "arraybuffer" : "json"; - - // verify required parameter 'xeroTenantId' is not null or undefined - if (xeroTenantId === null || xeroTenantId === undefined) { - throw new Error('Required parameter xeroTenantId was null or undefined when calling getEmployee.'); - } - - // verify required parameter 'employeeID' is not null or undefined - if (employeeID === null || employeeID === undefined) { - throw new Error('Required parameter employeeID was null or undefined when calling getEmployee.'); - } - - localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string"); - localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join(); - (Object).assign(localVarHeaderParams, options.headers); - let localVarUseFormData = false; - - let localVarRequestOptions: AxiosRequestConfig = { - method: 'GET', - params: localVarQueryParameters, - headers: localVarHeaderParams, - url: localVarPath, - responseType: responseTypeOption, - data: {}, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions)); - - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).data = localVarFormParams; - localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'Content-Type': 'multipart/form-data' }; - } else { - localVarRequestOptions.data = localVarFormParams; - localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'content-type': 'application/x-www-form-urlencoded' }; - } - } - return new Promise<{ response: AxiosResponse; body: Employees; }>(async (resolve, reject) => { - let body = null - try { - const response = await axios(localVarRequestOptions) - body = ObjectSerializer.deserialize(response.data, "Employees"); - if (response.status && response.status >= 200 && response.status <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - catch(error) { - const errorResponse = new ApiError(error) - reject(JSON.stringify(errorResponse.generateError())) - } - }); - }); - } - /** - * This endpoint is deprecated and will be removed April 28, 2026 - * @summary Retrieves employees used in Xero payrun - * @param xeroTenantId Xero identifier for Tenant - * @param ifModifiedSince Only records created or modified since this timestamp will be returned - * @param where Filter by an any element - * @param order Order by an any element - */ - public async getEmployees (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Employees; }> { - const localVarPath = this.basePath + '/Employees'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - let acceptHeadersFromSpec = [ - "application/json" - ]; - const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); - const responseTypeOption = isBufferType ? "arraybuffer" : "json"; - - // verify required parameter 'xeroTenantId' is not null or undefined - if (xeroTenantId === null || xeroTenantId === undefined) { - throw new Error('Required parameter xeroTenantId was null or undefined when calling getEmployees.'); - } - - if (where !== undefined) { - localVarQueryParameters['where'] = ObjectSerializer.serialize(where, "string"); - } - - if (order !== undefined) { - localVarQueryParameters['order'] = ObjectSerializer.serialize(order, "string"); - } - - localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string"); - localVarHeaderParams['If-Modified-Since'] = ObjectSerializer.serialize(ifModifiedSince, "Date"); - localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join(); - (Object).assign(localVarHeaderParams, options.headers); - let localVarUseFormData = false; - - let localVarRequestOptions: AxiosRequestConfig = { - method: 'GET', - params: localVarQueryParameters, - headers: localVarHeaderParams, - url: localVarPath, - responseType: responseTypeOption, - data: {}, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions)); - - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).data = localVarFormParams; - localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'Content-Type': 'multipart/form-data' }; - } else { - localVarRequestOptions.data = localVarFormParams; - localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'content-type': 'application/x-www-form-urlencoded' }; - } - } - return new Promise<{ response: AxiosResponse; body: Employees; }>(async (resolve, reject) => { - let body = null - try { - const response = await axios(localVarRequestOptions) - body = ObjectSerializer.deserialize(response.data, "Employees"); - if (response.status && response.status >= 200 && response.status <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - catch(error) { - const errorResponse = new ApiError(error) - reject(JSON.stringify(errorResponse.generateError())) - } - }); - }); - } /** * * @summary Retrieves a specific expense claim using a unique expense claim Id @@ -18282,86 +18048,6 @@ export class AccountingApi { }); }); } - /** - * This endpoint is deprecated and will be removed April 28, 2026 - * @summary Creates a single new employees used in Xero payrun - * @param xeroTenantId Xero identifier for Tenant - * @param employees Employees with array of Employee object in body of request - * @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors - * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. - */ - public async updateOrCreateEmployees (xeroTenantId: string, employees: Employees, summarizeErrors?: boolean, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Employees; }> { - const localVarPath = this.basePath + '/Employees'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - let acceptHeadersFromSpec = [ - "application/json" - ]; - const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); - const responseTypeOption = isBufferType ? "arraybuffer" : "json"; - - // verify required parameter 'xeroTenantId' is not null or undefined - if (xeroTenantId === null || xeroTenantId === undefined) { - throw new Error('Required parameter xeroTenantId was null or undefined when calling updateOrCreateEmployees.'); - } - - // verify required parameter 'employees' is not null or undefined - if (employees === null || employees === undefined) { - throw new Error('Required parameter employees was null or undefined when calling updateOrCreateEmployees.'); - } - - if (summarizeErrors !== undefined) { - localVarQueryParameters['summarizeErrors'] = ObjectSerializer.serialize(summarizeErrors, "boolean"); - } - - localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string"); - localVarHeaderParams['Idempotency-Key'] = ObjectSerializer.serialize(idempotencyKey, "string"); - localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join(); - (Object).assign(localVarHeaderParams, options.headers); - let localVarUseFormData = false; - - let localVarRequestOptions: AxiosRequestConfig = { - method: 'POST', - params: localVarQueryParameters, - headers: localVarHeaderParams, - url: localVarPath, - responseType: responseTypeOption, - data: ObjectSerializer.serialize(employees, "Employees"), - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions)); - - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).data = localVarFormParams; - localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'Content-Type': 'multipart/form-data' }; - } else { - localVarRequestOptions.data = localVarFormParams; - localVarRequestOptions.headers = { ...localVarRequestOptions.headers, 'content-type': 'application/x-www-form-urlencoded' }; - } - } - return new Promise<{ response: AxiosResponse; body: Employees; }>(async (resolve, reject) => { - let body = null - try { - const response = await axios(localVarRequestOptions) - body = ObjectSerializer.deserialize(response.data, "Employees"); - if (response.status && response.status >= 200 && response.status <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - catch(error) { - const errorResponse = new ApiError(error) - reject(JSON.stringify(errorResponse.generateError())) - } - }); - }); - } /** * * @summary Updates or creates one or more sales invoices or purchase bills diff --git a/src/gen/api/appStoreApi.ts b/src/gen/api/appStoreApi.ts index c9a818e49..6cf56e049 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: 12.0.2 + * The version of the OpenAPI document: 13.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/api/assetApi.ts b/src/gen/api/assetApi.ts index f4714a3aa..f6fd53064 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: 12.0.2 + * The version of the OpenAPI document: 13.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/api/bankfeedsApi.ts b/src/gen/api/bankfeedsApi.ts index 8a8f5d6b6..280d937c6 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: 12.0.2 + * The version of the OpenAPI document: 13.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/api/filesApi.ts b/src/gen/api/filesApi.ts index 700329e14..ae7495b92 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: 12.0.2 + * The version of the OpenAPI document: 13.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -475,7 +475,7 @@ export class FilesApi { * @param sort values to sort by * @param direction direction to sort by */ - public async getAssociationsByObject (xeroTenantId: string, objectId: string, pagesize?: number, page?: number, sort?: 'Name' | 'CreatedDateUTC', direction?: 'ASC' | 'DESC', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Array; }> { + public async getAssociationsByObject (xeroTenantId: string, objectId: string, pagesize?: number, page?: number, sort?: 'Name' | 'Size' | 'CreatedDateUtc' | 'AssociationDateUtc', direction?: 'ASC' | 'DESC', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Array; }> { const localVarPath = this.basePath + '/Associations/{ObjectId}' .replace('{' + 'ObjectId' + '}', encodeURIComponent(String(objectId))); let localVarQueryParameters: any = {}; @@ -506,7 +506,7 @@ export class FilesApi { } if (sort !== undefined) { - localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "'Name' | 'CreatedDateUTC'"); + localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "'Name' | 'Size' | 'CreatedDateUtc' | 'AssociationDateUtc'"); } if (direction !== undefined) { diff --git a/src/gen/api/financeApi.ts b/src/gen/api/financeApi.ts index 90264d26f..556b32515 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: 12.0.2 + * The version of the OpenAPI document: 13.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/api/payrollAUApi.ts b/src/gen/api/payrollAUApi.ts index 4549f45a6..0342e5659 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: 12.0.2 + * The version of the OpenAPI document: 13.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/api/payrollAUV2Api.ts b/src/gen/api/payrollAUV2Api.ts index 964d3bfe0..219146feb 100644 --- a/src/gen/api/payrollAUV2Api.ts +++ b/src/gen/api/payrollAUV2Api.ts @@ -2,7 +2,7 @@ * Xero Payroll AU API 2.0 * This is the Xero Payroll API 2.0 for orgs in Australia region. * - * The version of the OpenAPI document: 12.0.2 + * The version of the OpenAPI document: 13.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/api/payrollNZApi.ts b/src/gen/api/payrollNZApi.ts index 7f3a66e31..37ee830c2 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: 12.0.2 + * The version of the OpenAPI document: 13.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/api/payrollUKApi.ts b/src/gen/api/payrollUKApi.ts index 01a6b5daa..3677690ee 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: 12.0.2 + * The version of the OpenAPI document: 13.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/api/projectApi.ts b/src/gen/api/projectApi.ts index 012942b0e..e08528c4e 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: 12.0.2 + * The version of the OpenAPI document: 13.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/model/accounting/prepayment.ts b/src/gen/model/accounting/prepayment.ts index 877d346d0..b422d0c08 100644 --- a/src/gen/model/accounting/prepayment.ts +++ b/src/gen/model/accounting/prepayment.ts @@ -55,6 +55,10 @@ export class Prepayment { */ 'prepaymentID'?: string; /** + * The unique identifier of the branding template applied to a receive prepayment + */ + 'brandingThemeID'?: string; + /** * The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used */ 'currencyRate'?: number; @@ -156,6 +160,11 @@ export class Prepayment { "baseName": "PrepaymentID", "type": "string" }, + { + "name": "brandingThemeID", + "baseName": "BrandingThemeID", + "type": "string" + }, { "name": "currencyRate", "baseName": "CurrencyRate", diff --git a/src/gen/model/files/association.ts b/src/gen/model/files/association.ts index 994b64d68..7adec9909 100644 --- a/src/gen/model/files/association.ts +++ b/src/gen/model/files/association.ts @@ -15,6 +15,14 @@ export class Association { */ 'size'?: number; /** + * The date the file was created (UTC). Note- The CreatedDateUtc element is only returned when using /Associations/{ObjectId} endpoint. + */ + 'createdDateUtc'?: Date; + /** + * The date the file was associated with the object (UTC). Note- The AssociationDateUtc element is only returned when using /Associations/{ObjectId} endpoint. + */ + 'associationDateUtc'?: Date; + /** * The unique identifier of the file */ 'fileId'?: string; @@ -43,6 +51,16 @@ export class Association { "baseName": "Size", "type": "number" }, + { + "name": "createdDateUtc", + "baseName": "CreatedDateUtc", + "type": "Date" + }, + { + "name": "associationDateUtc", + "baseName": "AssociationDateUtc", + "type": "Date" + }, { "name": "fileId", "baseName": "FileId",