diff --git a/Xero.NetStandard.OAuth2/Api/AccountingApi.cs b/Xero.NetStandard.OAuth2/Api/AccountingApi.cs index 429669b7..967196aa 100644 --- a/Xero.NetStandard.OAuth2/Api/AccountingApi.cs +++ b/Xero.NetStandard.OAuth2/Api/AccountingApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.1.1 using System; diff --git a/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs b/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs index 1b9ba9a3..7464d41c 100644 --- a/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs +++ b/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.1.1 using System; diff --git a/Xero.NetStandard.OAuth2/Api/AssetApi.cs b/Xero.NetStandard.OAuth2/Api/AssetApi.cs index d537c0e6..10df2ea8 100644 --- a/Xero.NetStandard.OAuth2/Api/AssetApi.cs +++ b/Xero.NetStandard.OAuth2/Api/AssetApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.1.1 using System; diff --git a/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs b/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs index 531ed22a..a016fb35 100644 --- a/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs +++ b/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.1.1 using System; diff --git a/Xero.NetStandard.OAuth2/Api/FilesApi.cs b/Xero.NetStandard.OAuth2/Api/FilesApi.cs index cd472198..22427a99 100644 --- a/Xero.NetStandard.OAuth2/Api/FilesApi.cs +++ b/Xero.NetStandard.OAuth2/Api/FilesApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.1.1 using System; diff --git a/Xero.NetStandard.OAuth2/Api/FinanceApi.cs b/Xero.NetStandard.OAuth2/Api/FinanceApi.cs index f7cce86c..80ce5fbb 100644 --- a/Xero.NetStandard.OAuth2/Api/FinanceApi.cs +++ b/Xero.NetStandard.OAuth2/Api/FinanceApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.1.1 using System; diff --git a/Xero.NetStandard.OAuth2/Api/IdentityApi.cs b/Xero.NetStandard.OAuth2/Api/IdentityApi.cs index 3a172a95..a9010246 100644 --- a/Xero.NetStandard.OAuth2/Api/IdentityApi.cs +++ b/Xero.NetStandard.OAuth2/Api/IdentityApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.1.1 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs index 324d46da..19195d7e 100644 --- a/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs +++ b/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.1.1 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs index e18a2470..9282b7d1 100644 --- a/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs +++ b/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.1.1 using System; @@ -2020,37 +2020,6 @@ public interface IPayrollNzApiAsync : IApiAccessor /// Task of ApiResponse (EmployeeTaxObject) System.Threading.Tasks.Task> UpdateEmployeeTaxAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid employeeID, EmployeeTax employeeTax, string idempotencyKey = null, CancellationToken cancellationToken = default); /// - /// Updates a pay run - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Xero API OAuth 2.0 accessToken - /// Xero identifier for Tenant - /// Identifier for the pay run - /// - /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) - /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None - /// Task of PayRunObject - System.Threading.Tasks.Task UpdatePayRunAsync (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default); - - /// - /// Updates a pay run - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Xero API OAuth 2.0 accessToken - /// Xero identifier for Tenant - /// Identifier for the pay run - /// - /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) - /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None - /// Task of ApiResponse (PayRunObject) - System.Threading.Tasks.Task> UpdatePayRunAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default); - /// /// Creates an employee pay slip /// /// @@ -8195,97 +8164,6 @@ public async System.Threading.Tasks.Task UpdateEmployeeTaxAsy } - /// - /// Updates a pay run - /// - /// Thrown when fails to make API call - /// Xero API OAuth 2.0 accessToken - /// Xero identifier for Tenant - /// Identifier for the pay run - /// - /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) - /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None - /// Task of PayRunObject - public async System.Threading.Tasks.Task UpdatePayRunAsync (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default) - { - Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdatePayRunAsyncWithHttpInfo(accessToken, xeroTenantId, payRunID, payRun, idempotencyKey, cancellationToken); - return localVarResponse.Data; - - } - - /// - /// Updates a pay run - /// - /// Thrown when fails to make API call - /// Xero API OAuth 2.0 accessToken - /// Xero identifier for Tenant - /// Identifier for the pay run - /// - /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) - /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None - /// Task of ApiResponse (PayRunObject) - public async System.Threading.Tasks.Task> UpdatePayRunAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default) - { - // verify the required parameter 'xeroTenantId' is set - if (xeroTenantId == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling PayrollNzApi->UpdatePayRun"); - - // verify the required parameter 'payRunID' is set - if (payRunID == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'payRunID' when calling PayrollNzApi->UpdatePayRun"); - - // verify the required parameter 'payRun' is set - if (payRun == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'payRun' when calling PayrollNzApi->UpdatePayRun"); - - - Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions(); - - String[] @contentTypes = new String[] { - "application/json" - }; - - // to determine the Accept header - String[] @accepts = new String[] { - "application/json" - }; - - foreach (var cType in @contentTypes) - requestOptions.HeaderParameters.Add("Content-Type", cType); - - foreach (var accept in @accepts) - requestOptions.HeaderParameters.Add("Accept", accept); - - if (payRunID != null) - requestOptions.PathParameters.Add("PayRunID", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(payRunID)); // path parameter - if (xeroTenantId != null) - requestOptions.HeaderParameters.Add("Xero-Tenant-Id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter - if (idempotencyKey != null) - requestOptions.HeaderParameters.Add("Idempotency-Key", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - requestOptions.Data = payRun; - - // authentication (OAuth2) required - // oauth required - if (!String.IsNullOrEmpty(accessToken)) - { - requestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); - } - // make the HTTP request - - - - var response = await this.AsynchronousClient.PutAsync("/PayRuns/{PayRunID}", requestOptions, this.Configuration, cancellationToken); - - if (this.ExceptionFactory != null) - { - Exception exception = this.ExceptionFactory("UpdatePayRun", response); - if (exception != null) throw exception; - } - - return response; - } - - /// /// Creates an employee pay slip /// diff --git a/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs index a54c2aea..5f36e080 100644 --- a/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs +++ b/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.1.1 using System; @@ -1989,37 +1989,6 @@ public interface IPayrollUkApiAsync : IApiAccessor /// Task of ApiResponse (SalaryAndWageObject) System.Threading.Tasks.Task> UpdateEmployeeSalaryAndWageAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid employeeID, Guid salaryAndWagesID, SalaryAndWage salaryAndWage, string idempotencyKey = null, CancellationToken cancellationToken = default); /// - /// Updates a specific pay run - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Xero API OAuth 2.0 accessToken - /// Xero identifier for Tenant - /// Identifier for the pay run - /// - /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) - /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None - /// Task of PayRunObject - System.Threading.Tasks.Task UpdatePayRunAsync (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default); - - /// - /// Updates a specific pay run - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Xero API OAuth 2.0 accessToken - /// Xero identifier for Tenant - /// Identifier for the pay run - /// - /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) - /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None - /// Task of ApiResponse (PayRunObject) - System.Threading.Tasks.Task> UpdatePayRunAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default); - /// /// Updates a specific timesheet line for a specific timesheet /// /// @@ -8052,97 +8021,6 @@ public async System.Threading.Tasks.Task UpdateEmployeeSala } - /// - /// Updates a specific pay run - /// - /// Thrown when fails to make API call - /// Xero API OAuth 2.0 accessToken - /// Xero identifier for Tenant - /// Identifier for the pay run - /// - /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) - /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None - /// Task of PayRunObject - public async System.Threading.Tasks.Task UpdatePayRunAsync (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default) - { - Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdatePayRunAsyncWithHttpInfo(accessToken, xeroTenantId, payRunID, payRun, idempotencyKey, cancellationToken); - return localVarResponse.Data; - - } - - /// - /// Updates a specific pay run - /// - /// Thrown when fails to make API call - /// Xero API OAuth 2.0 accessToken - /// Xero identifier for Tenant - /// Identifier for the pay run - /// - /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) - /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None - /// Task of ApiResponse (PayRunObject) - public async System.Threading.Tasks.Task> UpdatePayRunAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default) - { - // verify the required parameter 'xeroTenantId' is set - if (xeroTenantId == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling PayrollUkApi->UpdatePayRun"); - - // verify the required parameter 'payRunID' is set - if (payRunID == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'payRunID' when calling PayrollUkApi->UpdatePayRun"); - - // verify the required parameter 'payRun' is set - if (payRun == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'payRun' when calling PayrollUkApi->UpdatePayRun"); - - - Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions(); - - String[] @contentTypes = new String[] { - "application/json" - }; - - // to determine the Accept header - String[] @accepts = new String[] { - "application/json" - }; - - foreach (var cType in @contentTypes) - requestOptions.HeaderParameters.Add("Content-Type", cType); - - foreach (var accept in @accepts) - requestOptions.HeaderParameters.Add("Accept", accept); - - if (payRunID != null) - requestOptions.PathParameters.Add("PayRunID", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(payRunID)); // path parameter - if (xeroTenantId != null) - requestOptions.HeaderParameters.Add("Xero-Tenant-Id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter - if (idempotencyKey != null) - requestOptions.HeaderParameters.Add("Idempotency-Key", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - requestOptions.Data = payRun; - - // authentication (OAuth2) required - // oauth required - if (!String.IsNullOrEmpty(accessToken)) - { - requestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); - } - // make the HTTP request - - - - var response = await this.AsynchronousClient.PutAsync("/PayRuns/{PayRunID}", requestOptions, this.Configuration, cancellationToken); - - if (this.ExceptionFactory != null) - { - Exception exception = this.ExceptionFactory("UpdatePayRun", response); - if (exception != null) throw exception; - } - - return response; - } - - /// /// Updates a specific timesheet line for a specific timesheet /// diff --git a/Xero.NetStandard.OAuth2/Api/ProjectApi.cs b/Xero.NetStandard.OAuth2/Api/ProjectApi.cs index c01f2f74..0a6dabcc 100644 --- a/Xero.NetStandard.OAuth2/Api/ProjectApi.cs +++ b/Xero.NetStandard.OAuth2/Api/ProjectApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.1.1 using System; diff --git a/Xero.NetStandard.OAuth2/Client/ApiClient.cs b/Xero.NetStandard.OAuth2/Client/ApiClient.cs index 08af83a9..ad7f2893 100644 --- a/Xero.NetStandard.OAuth2/Client/ApiClient.cs +++ b/Xero.NetStandard.OAuth2/Client/ApiClient.cs @@ -434,7 +434,7 @@ protected virtual void InterceptRequest(HttpRequestMessage req) { } - + /// /// Intercepts the response after it is received. Override to add custom logic. /// diff --git a/Xero.NetStandard.OAuth2/Client/Configuration.cs b/Xero.NetStandard.OAuth2/Client/Configuration.cs index b45b2bcc..8c7af272 100644 --- a/Xero.NetStandard.OAuth2/Client/Configuration.cs +++ b/Xero.NetStandard.OAuth2/Client/Configuration.cs @@ -341,7 +341,7 @@ public static String ToDebugReport() { String report = "C# SDK (Xero.NetStandard.OAuth2) Debug Report:\n"; report += " OS: " + System.Runtime.InteropServices.RuntimeInformation.OSDescription + "\n"; - report += " Version of the API: 9.1.0\n"; + report += " Version of the API: 9.1.1\n"; report += " SDK Package Version: 12.2.0\n"; return report; diff --git a/Xero.NetStandard.OAuth2/Model/Accounting/Contact.cs b/Xero.NetStandard.OAuth2/Model/Accounting/Contact.cs index 7afde8a3..e8f8a2e2 100644 --- a/Xero.NetStandard.OAuth2/Model/Accounting/Contact.cs +++ b/Xero.NetStandard.OAuth2/Model/Accounting/Contact.cs @@ -64,6 +64,45 @@ public enum ContactStatusEnum [DataMember(Name="ContactStatus", EmitDefaultValue=false)] public ContactStatusEnum ContactStatus { get; set; } /// + /// Identifier of the regional type of tax number, such as US, UK, or other regional tax identifiers + /// + /// Identifier of the regional type of tax number, such as US, UK, or other regional tax identifiers + [JsonConverter(typeof(Client.CustomStringEnumConverter))] + public enum TaxNumberTypeEnum + { + /// + /// Enum SSN for value: SSN + /// + [EnumMember(Value = "SSN")] + SSN = 1, + + /// + /// Enum EIN for value: EIN + /// + [EnumMember(Value = "EIN")] + EIN = 2, + + /// + /// Enum ITIN for value: ITIN + /// + [EnumMember(Value = "ITIN")] + ITIN = 3, + + /// + /// Enum ATIN for value: ATIN + /// + [EnumMember(Value = "ATIN")] + ATIN = 4 + + } + + /// + /// Identifier of the regional type of tax number, such as US, UK, or other regional tax identifiers + /// + /// Identifier of the regional type of tax number, such as US, UK, or other regional tax identifiers + [DataMember(Name="TaxNumberType", EmitDefaultValue=false)] + public TaxNumberTypeEnum TaxNumberType { get; set; } + /// /// The default sales line amount type for a contact. Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber. /// /// The default sales line amount type for a contact. Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber. @@ -418,6 +457,7 @@ public override string ToString() sb.Append(" ContactPersons: ").Append(ContactPersons).Append("\n"); sb.Append(" BankAccountDetails: ").Append(BankAccountDetails).Append("\n"); sb.Append(" TaxNumber: ").Append(TaxNumber).Append("\n"); + sb.Append(" TaxNumberType: ").Append(TaxNumberType).Append("\n"); sb.Append(" AccountsReceivableTaxType: ").Append(AccountsReceivableTaxType).Append("\n"); sb.Append(" AccountsPayableTaxType: ").Append(AccountsPayableTaxType).Append("\n"); sb.Append(" Addresses: ").Append(Addresses).Append("\n"); @@ -546,6 +586,10 @@ public bool Equals(Contact input) (this.TaxNumber != null && this.TaxNumber.Equals(input.TaxNumber)) ) && + ( + this.TaxNumberType == input.TaxNumberType || + this.TaxNumberType.Equals(input.TaxNumberType) + ) && ( this.AccountsReceivableTaxType == input.AccountsReceivableTaxType || (this.AccountsReceivableTaxType != null && @@ -731,6 +775,7 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.BankAccountDetails.GetHashCode(); if (this.TaxNumber != null) hashCode = hashCode * 59 + this.TaxNumber.GetHashCode(); + hashCode = hashCode * 59 + this.TaxNumberType.GetHashCode(); if (this.AccountsReceivableTaxType != null) hashCode = hashCode * 59 + this.AccountsReceivableTaxType.GetHashCode(); if (this.AccountsPayableTaxType != null) diff --git a/docs/accounting/index.html b/docs/accounting/index.html index cfe6f299..04d62f4b 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -2104,6 +2104,11 @@ "type" : "string", "description" : "Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)" }, + "TaxNumberType" : { + "type" : "string", + "description" : "Identifier of the regional type of tax number, such as US, UK, or other regional tax identifiers", + "enum" : [ "SSN", "EIN", "ITIN", "ATIN" ] + }, "AccountsReceivableTaxType" : { "type" : "string", "description" : "The tax type from TaxRates" diff --git a/docs/payroll-nz/index.html b/docs/payroll-nz/index.html index 7a55b86b..15a55748 100644 --- a/docs/payroll-nz/index.html +++ b/docs/payroll-nz/index.html @@ -4297,9 +4297,6 @@
  • updateEmployeeTax
  • -
  • - updatePayRun -
  • updatePaySlipLineItems
  • @@ -15375,201 +15372,6 @@

    Parameters

    } }, "required" : true -} - - - - -
    -
    -
    -
    -

    updatePayRun

    -

    Updates a pay run

    -
    -
    -
    -

    -

    -

    -
    -
    /PayRuns/{PayRunID}
    -

    -

    Usage and SDK Samples

    -

    - -
    - -
    -
    using System;
    -using System.Diagnostics;
    -using Xero.NetStandard.OAuth2.Api;
    -using Xero.NetStandard.OAuth2.Client;
    -using Xero.NetStandard.OAuth2.Model;
    -
    -namespace Example
    -{
    -    public class UpdatePayRunExample
    -    {
    -        public async Task Main()
    -        {            
    -            var accessToken = "YOUR_ACCESS_TOKEN";          
    -            var apiInstance = new PayrollNzApi();
    -            var xeroTenantId = "xeroTenantId_example";
    -            var payRunID = Guid.Parse("38400000-8cf0-11bd-b23e-10b96e4ef00d");
    -            var idempotencyKey = "KEY_VALUE";
    -            var startDate = new DateTime(2020, 10, 10);
    -            var paymentDate = new DateTime(2020, 10, 12);
    -
    -            var payRunCalendar = new PayRunCalendar();
    -            payRunCalendar.CalendarType = CalendarType.Weekly;
    -            payRunCalendar.PeriodStartDate = startDate;
    -            payRunCalendar.PaymentDate = paymentDate;
    -            
    -            try {
    -                var result = await apiInstance.UpdatePayRunAsync(accessToken, xeroTenantId, payRunID, payRun, idempotencyKey);
    -                Console.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Console.WriteLine("Exception when calling apiInstance.UpdatePayRun: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    -

    Scopes

    - - - - - - - -
    payroll.payrunsGrant read-write access to payroll payruns
    -

    Parameters

    -
    Path parameters
    - - - - - - - - - -
    NameDescription
    PayRunID* - - -
    -
    -
    - - UUID - - - (uuid) - - -
    -Identifier for the pay run -
    -
    -
    - Required -
    -
    -
    -
    -
    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
    payRun * -
    -
    - - PayRun - -
    - -
    -
    -
    - Required -
    -
    -
    diff --git a/docs/payroll-uk/index.html b/docs/payroll-uk/index.html index 8864cf77..1c746297 100644 --- a/docs/payroll-uk/index.html +++ b/docs/payroll-uk/index.html @@ -3807,9 +3807,6 @@
  • updateEmployeeSalaryAndWage
  • -
  • - updatePayRun -
  • updateTimesheetLine
  • @@ -14632,201 +14629,6 @@

    Parameters

    } }, "required" : true -} - - -
    -
    -
    -
    -
    -
    -

    updatePayRun

    -

    Updates a specific pay run

    -
    -
    -
    -

    -

    -

    -
    -
    /PayRuns/{PayRunID}
    -

    -

    Usage and SDK Samples

    -

    - -
    - -
    -
    using System;
    -using System.Diagnostics;
    -using Xero.NetStandard.OAuth2.Api;
    -using Xero.NetStandard.OAuth2.Client;
    -using Xero.NetStandard.OAuth2.Model;
    -
    -namespace Example
    -{
    -    public class UpdatePayRunExample
    -    {
    -        public async Task Main()
    -        {            
    -            var accessToken = "YOUR_ACCESS_TOKEN";          
    -            var apiInstance = new PayrollUkApi();
    -            var xeroTenantId = "xeroTenantId_example";
    -            var payRunID = Guid.Parse("38400000-8cf0-11bd-b23e-10b96e4ef00d");
    -            var idempotencyKey = "KEY_VALUE";
    -            var startDate = new DateTime(2020, 10, 10);
    -            var paymentDate = new DateTime(2020, 10, 12);
    -
    -            var payRunCalendar = new PayRunCalendar();
    -            payRunCalendar.CalendarType = CalendarType.Weekly;
    -            payRunCalendar.PeriodStartDate = startDate;
    -            payRunCalendar.PaymentDate = paymentDate;
    -            
    -            try {
    -                var result = await apiInstance.UpdatePayRunAsync(accessToken, xeroTenantId, payRunID, payRun, idempotencyKey);
    -                Console.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Console.WriteLine("Exception when calling apiInstance.UpdatePayRun: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    -

    Scopes

    - - - - - - - -
    payroll.payrunsGrant read-write access to payroll payruns
    -

    Parameters

    -
    Path parameters
    - - - - - - - - - -
    NameDescription
    PayRunID* - - -
    -
    -
    - - UUID - - - (uuid) - - -
    -Identifier for the pay run -
    -
    -
    - Required -
    -
    -
    -
    -
    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
    payRun * -
    -
    - - PayRun - -
    - -
    -
    -
    - Required -
    -
    -