Skip to content

Commit 5ca5445

Browse files
authored
Merge branch 'master' into PETOSS-829-publish-auth
2 parents 2ea5274 + f8067ca commit 5ca5445

32 files changed

+814
-670
lines changed

Xero.NetStandard.OAuth2/Api/AccountingApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 9.1.0
10+
// The version of the OpenAPI document: 9.3.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/AppStoreApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 9.1.0
10+
// The version of the OpenAPI document: 9.3.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/AssetApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 9.1.0
10+
// The version of the OpenAPI document: 9.3.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 9.1.0
10+
// The version of the OpenAPI document: 9.3.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/FilesApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 9.1.0
10+
// The version of the OpenAPI document: 9.3.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/FinanceApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 9.1.0
10+
// The version of the OpenAPI document: 9.3.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/IdentityApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 9.1.0
10+
// The version of the OpenAPI document: 9.3.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 9.1.0
10+
// The version of the OpenAPI document: 9.3.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs

Lines changed: 1 addition & 123 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 9.1.0
10+
// The version of the OpenAPI document: 9.3.0
1111

1212

1313
using System;
@@ -2020,37 +2020,6 @@ public interface IPayrollNzApiAsync : IApiAccessor
20202020
/// <returns>Task of ApiResponse (EmployeeTaxObject)</returns>
20212021
System.Threading.Tasks.Task<ApiResponse<EmployeeTaxObject>> UpdateEmployeeTaxAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid employeeID, EmployeeTax employeeTax, string idempotencyKey = null, CancellationToken cancellationToken = default);
20222022
/// <summary>
2023-
/// Updates a pay run
2024-
/// </summary>
2025-
/// <remarks>
2026-
///
2027-
/// </remarks>
2028-
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
2029-
/// <param name="accessToken">Xero API OAuth 2.0 accessToken</param>
2030-
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
2031-
/// <param name="payRunID">Identifier for the pay run</param>
2032-
/// <param name="payRun"></param>
2033-
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
2034-
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
2035-
/// <returns>Task of PayRunObject</returns>
2036-
System.Threading.Tasks.Task<PayRunObject> UpdatePayRunAsync (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default);
2037-
2038-
/// <summary>
2039-
/// Updates a pay run
2040-
/// </summary>
2041-
/// <remarks>
2042-
///
2043-
/// </remarks>
2044-
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
2045-
/// <param name="accessToken">Xero API OAuth 2.0 accessToken</param>
2046-
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
2047-
/// <param name="payRunID">Identifier for the pay run</param>
2048-
/// <param name="payRun"></param>
2049-
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
2050-
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
2051-
/// <returns>Task of ApiResponse (PayRunObject)</returns>
2052-
System.Threading.Tasks.Task<ApiResponse<PayRunObject>> UpdatePayRunAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default);
2053-
/// <summary>
20542023
/// Creates an employee pay slip
20552024
/// </summary>
20562025
/// <remarks>
@@ -8195,97 +8164,6 @@ public async System.Threading.Tasks.Task<EmployeeTaxObject> UpdateEmployeeTaxAsy
81958164
}
81968165

81978166

8198-
/// <summary>
8199-
/// Updates a pay run
8200-
/// </summary>
8201-
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
8202-
/// <param name="accessToken">Xero API OAuth 2.0 accessToken</param>
8203-
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
8204-
/// <param name="payRunID">Identifier for the pay run</param>
8205-
/// <param name="payRun"></param>
8206-
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
8207-
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
8208-
/// <returns>Task of PayRunObject</returns>
8209-
public async System.Threading.Tasks.Task<PayRunObject> UpdatePayRunAsync (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default)
8210-
{
8211-
Xero.NetStandard.OAuth2.Client.ApiResponse<PayRunObject> localVarResponse = await UpdatePayRunAsyncWithHttpInfo(accessToken, xeroTenantId, payRunID, payRun, idempotencyKey, cancellationToken);
8212-
return localVarResponse.Data;
8213-
8214-
}
8215-
8216-
/// <summary>
8217-
/// Updates a pay run
8218-
/// </summary>
8219-
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
8220-
/// <param name="accessToken">Xero API OAuth 2.0 accessToken</param>
8221-
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
8222-
/// <param name="payRunID">Identifier for the pay run</param>
8223-
/// <param name="payRun"></param>
8224-
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
8225-
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
8226-
/// <returns>Task of ApiResponse (PayRunObject)</returns>
8227-
public async System.Threading.Tasks.Task<Xero.NetStandard.OAuth2.Client.ApiResponse<PayRunObject>> UpdatePayRunAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default)
8228-
{
8229-
// verify the required parameter 'xeroTenantId' is set
8230-
if (xeroTenantId == null)
8231-
throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling PayrollNzApi->UpdatePayRun");
8232-
8233-
// verify the required parameter 'payRunID' is set
8234-
if (payRunID == null)
8235-
throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'payRunID' when calling PayrollNzApi->UpdatePayRun");
8236-
8237-
// verify the required parameter 'payRun' is set
8238-
if (payRun == null)
8239-
throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'payRun' when calling PayrollNzApi->UpdatePayRun");
8240-
8241-
8242-
Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions();
8243-
8244-
String[] @contentTypes = new String[] {
8245-
"application/json"
8246-
};
8247-
8248-
// to determine the Accept header
8249-
String[] @accepts = new String[] {
8250-
"application/json"
8251-
};
8252-
8253-
foreach (var cType in @contentTypes)
8254-
requestOptions.HeaderParameters.Add("Content-Type", cType);
8255-
8256-
foreach (var accept in @accepts)
8257-
requestOptions.HeaderParameters.Add("Accept", accept);
8258-
8259-
if (payRunID != null)
8260-
requestOptions.PathParameters.Add("PayRunID", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(payRunID)); // path parameter
8261-
if (xeroTenantId != null)
8262-
requestOptions.HeaderParameters.Add("Xero-Tenant-Id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter
8263-
if (idempotencyKey != null)
8264-
requestOptions.HeaderParameters.Add("Idempotency-Key", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter
8265-
requestOptions.Data = payRun;
8266-
8267-
// authentication (OAuth2) required
8268-
// oauth required
8269-
if (!String.IsNullOrEmpty(accessToken))
8270-
{
8271-
requestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken);
8272-
}
8273-
// make the HTTP request
8274-
8275-
8276-
8277-
var response = await this.AsynchronousClient.PutAsync<PayRunObject>("/PayRuns/{PayRunID}", requestOptions, this.Configuration, cancellationToken);
8278-
8279-
if (this.ExceptionFactory != null)
8280-
{
8281-
Exception exception = this.ExceptionFactory("UpdatePayRun", response);
8282-
if (exception != null) throw exception;
8283-
}
8284-
8285-
return response;
8286-
}
8287-
8288-
82898167
/// <summary>
82908168
/// Creates an employee pay slip
82918169
/// </summary>

Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs

Lines changed: 1 addition & 123 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 9.1.0
10+
// The version of the OpenAPI document: 9.3.0
1111

1212

1313
using System;
@@ -1989,37 +1989,6 @@ public interface IPayrollUkApiAsync : IApiAccessor
19891989
/// <returns>Task of ApiResponse (SalaryAndWageObject)</returns>
19901990
System.Threading.Tasks.Task<ApiResponse<SalaryAndWageObject>> UpdateEmployeeSalaryAndWageAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid employeeID, Guid salaryAndWagesID, SalaryAndWage salaryAndWage, string idempotencyKey = null, CancellationToken cancellationToken = default);
19911991
/// <summary>
1992-
/// Updates a specific pay run
1993-
/// </summary>
1994-
/// <remarks>
1995-
///
1996-
/// </remarks>
1997-
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
1998-
/// <param name="accessToken">Xero API OAuth 2.0 accessToken</param>
1999-
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
2000-
/// <param name="payRunID">Identifier for the pay run</param>
2001-
/// <param name="payRun"></param>
2002-
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
2003-
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
2004-
/// <returns>Task of PayRunObject</returns>
2005-
System.Threading.Tasks.Task<PayRunObject> UpdatePayRunAsync (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default);
2006-
2007-
/// <summary>
2008-
/// Updates a specific pay run
2009-
/// </summary>
2010-
/// <remarks>
2011-
///
2012-
/// </remarks>
2013-
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
2014-
/// <param name="accessToken">Xero API OAuth 2.0 accessToken</param>
2015-
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
2016-
/// <param name="payRunID">Identifier for the pay run</param>
2017-
/// <param name="payRun"></param>
2018-
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
2019-
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
2020-
/// <returns>Task of ApiResponse (PayRunObject)</returns>
2021-
System.Threading.Tasks.Task<ApiResponse<PayRunObject>> UpdatePayRunAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default);
2022-
/// <summary>
20231992
/// Updates a specific timesheet line for a specific timesheet
20241993
/// </summary>
20251994
/// <remarks>
@@ -8052,97 +8021,6 @@ public async System.Threading.Tasks.Task<SalaryAndWageObject> UpdateEmployeeSala
80528021
}
80538022

80548023

8055-
/// <summary>
8056-
/// Updates a specific pay run
8057-
/// </summary>
8058-
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
8059-
/// <param name="accessToken">Xero API OAuth 2.0 accessToken</param>
8060-
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
8061-
/// <param name="payRunID">Identifier for the pay run</param>
8062-
/// <param name="payRun"></param>
8063-
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
8064-
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
8065-
/// <returns>Task of PayRunObject</returns>
8066-
public async System.Threading.Tasks.Task<PayRunObject> UpdatePayRunAsync (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default)
8067-
{
8068-
Xero.NetStandard.OAuth2.Client.ApiResponse<PayRunObject> localVarResponse = await UpdatePayRunAsyncWithHttpInfo(accessToken, xeroTenantId, payRunID, payRun, idempotencyKey, cancellationToken);
8069-
return localVarResponse.Data;
8070-
8071-
}
8072-
8073-
/// <summary>
8074-
/// Updates a specific pay run
8075-
/// </summary>
8076-
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
8077-
/// <param name="accessToken">Xero API OAuth 2.0 accessToken</param>
8078-
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
8079-
/// <param name="payRunID">Identifier for the pay run</param>
8080-
/// <param name="payRun"></param>
8081-
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
8082-
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
8083-
/// <returns>Task of ApiResponse (PayRunObject)</returns>
8084-
public async System.Threading.Tasks.Task<Xero.NetStandard.OAuth2.Client.ApiResponse<PayRunObject>> UpdatePayRunAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default)
8085-
{
8086-
// verify the required parameter 'xeroTenantId' is set
8087-
if (xeroTenantId == null)
8088-
throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling PayrollUkApi->UpdatePayRun");
8089-
8090-
// verify the required parameter 'payRunID' is set
8091-
if (payRunID == null)
8092-
throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'payRunID' when calling PayrollUkApi->UpdatePayRun");
8093-
8094-
// verify the required parameter 'payRun' is set
8095-
if (payRun == null)
8096-
throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'payRun' when calling PayrollUkApi->UpdatePayRun");
8097-
8098-
8099-
Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions();
8100-
8101-
String[] @contentTypes = new String[] {
8102-
"application/json"
8103-
};
8104-
8105-
// to determine the Accept header
8106-
String[] @accepts = new String[] {
8107-
"application/json"
8108-
};
8109-
8110-
foreach (var cType in @contentTypes)
8111-
requestOptions.HeaderParameters.Add("Content-Type", cType);
8112-
8113-
foreach (var accept in @accepts)
8114-
requestOptions.HeaderParameters.Add("Accept", accept);
8115-
8116-
if (payRunID != null)
8117-
requestOptions.PathParameters.Add("PayRunID", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(payRunID)); // path parameter
8118-
if (xeroTenantId != null)
8119-
requestOptions.HeaderParameters.Add("Xero-Tenant-Id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter
8120-
if (idempotencyKey != null)
8121-
requestOptions.HeaderParameters.Add("Idempotency-Key", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter
8122-
requestOptions.Data = payRun;
8123-
8124-
// authentication (OAuth2) required
8125-
// oauth required
8126-
if (!String.IsNullOrEmpty(accessToken))
8127-
{
8128-
requestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken);
8129-
}
8130-
// make the HTTP request
8131-
8132-
8133-
8134-
var response = await this.AsynchronousClient.PutAsync<PayRunObject>("/PayRuns/{PayRunID}", requestOptions, this.Configuration, cancellationToken);
8135-
8136-
if (this.ExceptionFactory != null)
8137-
{
8138-
Exception exception = this.ExceptionFactory("UpdatePayRun", response);
8139-
if (exception != null) throw exception;
8140-
}
8141-
8142-
return response;
8143-
}
8144-
8145-
81468024
/// <summary>
81478025
/// Updates a specific timesheet line for a specific timesheet
81488026
/// </summary>

0 commit comments

Comments
 (0)