|
7 | 7 | * Generated by: https://github.com/openapitools/openapi-generator.git |
8 | 8 | */ |
9 | 9 |
|
10 | | -// The version of the OpenAPI document: 9.1.0 |
| 10 | +// The version of the OpenAPI document: 9.3.0 |
11 | 11 |
|
12 | 12 |
|
13 | 13 | using System; |
@@ -1989,37 +1989,6 @@ public interface IPayrollUkApiAsync : IApiAccessor |
1989 | 1989 | /// <returns>Task of ApiResponse (SalaryAndWageObject)</returns> |
1990 | 1990 | System.Threading.Tasks.Task<ApiResponse<SalaryAndWageObject>> UpdateEmployeeSalaryAndWageAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid employeeID, Guid salaryAndWagesID, SalaryAndWage salaryAndWage, string idempotencyKey = null, CancellationToken cancellationToken = default); |
1991 | 1991 | /// <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> |
2023 | 1992 | /// Updates a specific timesheet line for a specific timesheet |
2024 | 1993 | /// </summary> |
2025 | 1994 | /// <remarks> |
@@ -8052,97 +8021,6 @@ public async System.Threading.Tasks.Task<SalaryAndWageObject> UpdateEmployeeSala |
8052 | 8021 | } |
8053 | 8022 |
|
8054 | 8023 |
|
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 | | - |
8146 | 8024 | /// <summary> |
8147 | 8025 | /// Updates a specific timesheet line for a specific timesheet |
8148 | 8026 | /// </summary> |
|
0 commit comments