Skip to content

Commit

Permalink
Merge pull request #493 from XeroAPI/Updating-for-the-Singapore-Tax-Enum
Browse files Browse the repository at this point in the history
Updating for 9% tax rates for Singapore
  • Loading branch information
rlayhbrian authored Dec 5, 2023
2 parents 750bea5 + a6e1918 commit f4104c4
Show file tree
Hide file tree
Showing 30 changed files with 8,171 additions and 1,786 deletions.
1,934 changes: 1,438 additions & 496 deletions Xero.NetStandard.OAuth2/Api/AccountingApi.cs

Large diffs are not rendered by default.

34 changes: 23 additions & 11 deletions Xero.NetStandard.OAuth2/Api/AppStoreApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 2.38.0
// The version of the OpenAPI document: 2.40.1


using System;
Expand Down Expand Up @@ -91,9 +91,10 @@ public interface IAppStoreApiAsync : IApiAccessor
/// <param name="subscriptionId">Unique identifier for Subscription object</param>
/// <param name="subscriptionItemId">The unique identifier of the subscriptionItem</param>
/// <param name="createUsageRecord">Contains the quantity for the usage record to create</param>
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of UsageRecord</returns>
System.Threading.Tasks.Task<UsageRecord> PostUsageRecordsAsync (string accessToken, Guid subscriptionId, Guid subscriptionItemId, CreateUsageRecord createUsageRecord, CancellationToken cancellationToken = default);
System.Threading.Tasks.Task<UsageRecord> PostUsageRecordsAsync (string accessToken, Guid subscriptionId, Guid subscriptionItemId, CreateUsageRecord createUsageRecord, string idempotencyKey = null, CancellationToken cancellationToken = default);

/// <summary>
/// Send metered usage belonging to this subscription and subscription item
Expand All @@ -106,9 +107,10 @@ public interface IAppStoreApiAsync : IApiAccessor
/// <param name="subscriptionId">Unique identifier for Subscription object</param>
/// <param name="subscriptionItemId">The unique identifier of the subscriptionItem</param>
/// <param name="createUsageRecord">Contains the quantity for the usage record to create</param>
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of ApiResponse (UsageRecord)</returns>
System.Threading.Tasks.Task<ApiResponse<UsageRecord>> PostUsageRecordsAsyncWithHttpInfo (string accessToken, Guid subscriptionId, Guid subscriptionItemId, CreateUsageRecord createUsageRecord, CancellationToken cancellationToken = default);
System.Threading.Tasks.Task<ApiResponse<UsageRecord>> PostUsageRecordsAsyncWithHttpInfo (string accessToken, Guid subscriptionId, Guid subscriptionItemId, CreateUsageRecord createUsageRecord, string idempotencyKey = null, CancellationToken cancellationToken = default);
/// <summary>
/// Update and existing metered usage belonging to this subscription and subscription item
/// </summary>
Expand All @@ -121,9 +123,10 @@ public interface IAppStoreApiAsync : IApiAccessor
/// <param name="subscriptionItemId">The unique identifier of the subscriptionItem</param>
/// <param name="usageRecordId">The unique identifier of the usage record</param>
/// <param name="updateUsageRecord">Contains the quantity for the usage record to update</param>
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of UsageRecord</returns>
System.Threading.Tasks.Task<UsageRecord> PutUsageRecordsAsync (string accessToken, Guid subscriptionId, Guid subscriptionItemId, Guid usageRecordId, UpdateUsageRecord updateUsageRecord, CancellationToken cancellationToken = default);
System.Threading.Tasks.Task<UsageRecord> PutUsageRecordsAsync (string accessToken, Guid subscriptionId, Guid subscriptionItemId, Guid usageRecordId, UpdateUsageRecord updateUsageRecord, string idempotencyKey = null, CancellationToken cancellationToken = default);

/// <summary>
/// Update and existing metered usage belonging to this subscription and subscription item
Expand All @@ -137,9 +140,10 @@ public interface IAppStoreApiAsync : IApiAccessor
/// <param name="subscriptionItemId">The unique identifier of the subscriptionItem</param>
/// <param name="usageRecordId">The unique identifier of the usage record</param>
/// <param name="updateUsageRecord">Contains the quantity for the usage record to update</param>
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of ApiResponse (UsageRecord)</returns>
System.Threading.Tasks.Task<ApiResponse<UsageRecord>> PutUsageRecordsAsyncWithHttpInfo (string accessToken, Guid subscriptionId, Guid subscriptionItemId, Guid usageRecordId, UpdateUsageRecord updateUsageRecord, CancellationToken cancellationToken = default);
System.Threading.Tasks.Task<ApiResponse<UsageRecord>> PutUsageRecordsAsyncWithHttpInfo (string accessToken, Guid subscriptionId, Guid subscriptionItemId, Guid usageRecordId, UpdateUsageRecord updateUsageRecord, string idempotencyKey = null, CancellationToken cancellationToken = default);
#endregion Asynchronous Operations
}

Expand Down Expand Up @@ -410,11 +414,12 @@ public async System.Threading.Tasks.Task<UsageRecordsList> GetUsageRecordsAsync
/// <param name="subscriptionId">Unique identifier for Subscription object</param>
/// <param name="subscriptionItemId">The unique identifier of the subscriptionItem</param>
/// <param name="createUsageRecord">Contains the quantity for the usage record to create</param>
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of UsageRecord</returns>
public async System.Threading.Tasks.Task<UsageRecord> PostUsageRecordsAsync (string accessToken, Guid subscriptionId, Guid subscriptionItemId, CreateUsageRecord createUsageRecord, CancellationToken cancellationToken = default)
public async System.Threading.Tasks.Task<UsageRecord> PostUsageRecordsAsync (string accessToken, Guid subscriptionId, Guid subscriptionItemId, CreateUsageRecord createUsageRecord, string idempotencyKey = null, CancellationToken cancellationToken = default)
{
Xero.NetStandard.OAuth2.Client.ApiResponse<UsageRecord> localVarResponse = await PostUsageRecordsAsyncWithHttpInfo(accessToken, subscriptionId, subscriptionItemId, createUsageRecord, cancellationToken);
Xero.NetStandard.OAuth2.Client.ApiResponse<UsageRecord> localVarResponse = await PostUsageRecordsAsyncWithHttpInfo(accessToken, subscriptionId, subscriptionItemId, createUsageRecord, idempotencyKey, cancellationToken);
return localVarResponse.Data;

}
Expand All @@ -427,9 +432,10 @@ public async System.Threading.Tasks.Task<UsageRecord> PostUsageRecordsAsync (str
/// <param name="subscriptionId">Unique identifier for Subscription object</param>
/// <param name="subscriptionItemId">The unique identifier of the subscriptionItem</param>
/// <param name="createUsageRecord">Contains the quantity for the usage record to create</param>
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of ApiResponse (UsageRecord)</returns>
public async System.Threading.Tasks.Task<Xero.NetStandard.OAuth2.Client.ApiResponse<UsageRecord>> PostUsageRecordsAsyncWithHttpInfo (string accessToken, Guid subscriptionId, Guid subscriptionItemId, CreateUsageRecord createUsageRecord, CancellationToken cancellationToken = default)
public async System.Threading.Tasks.Task<Xero.NetStandard.OAuth2.Client.ApiResponse<UsageRecord>> PostUsageRecordsAsyncWithHttpInfo (string accessToken, Guid subscriptionId, Guid subscriptionItemId, CreateUsageRecord createUsageRecord, string idempotencyKey = null, CancellationToken cancellationToken = default)
{
// verify the required parameter 'subscriptionId' is set
if (subscriptionId == null)
Expand Down Expand Up @@ -465,6 +471,8 @@ public async System.Threading.Tasks.Task<UsageRecord> PostUsageRecordsAsync (str
requestOptions.PathParameters.Add("subscriptionId", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(subscriptionId)); // path parameter
if (subscriptionItemId != null)
requestOptions.PathParameters.Add("subscriptionItemId", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(subscriptionItemId)); // path parameter
if (idempotencyKey != null)
requestOptions.HeaderParameters.Add("Idempotency-Key", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter
requestOptions.Data = createUsageRecord;

// authentication (OAuth2) required
Expand Down Expand Up @@ -498,11 +506,12 @@ public async System.Threading.Tasks.Task<UsageRecord> PostUsageRecordsAsync (str
/// <param name="subscriptionItemId">The unique identifier of the subscriptionItem</param>
/// <param name="usageRecordId">The unique identifier of the usage record</param>
/// <param name="updateUsageRecord">Contains the quantity for the usage record to update</param>
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of UsageRecord</returns>
public async System.Threading.Tasks.Task<UsageRecord> PutUsageRecordsAsync (string accessToken, Guid subscriptionId, Guid subscriptionItemId, Guid usageRecordId, UpdateUsageRecord updateUsageRecord, CancellationToken cancellationToken = default)
public async System.Threading.Tasks.Task<UsageRecord> PutUsageRecordsAsync (string accessToken, Guid subscriptionId, Guid subscriptionItemId, Guid usageRecordId, UpdateUsageRecord updateUsageRecord, string idempotencyKey = null, CancellationToken cancellationToken = default)
{
Xero.NetStandard.OAuth2.Client.ApiResponse<UsageRecord> localVarResponse = await PutUsageRecordsAsyncWithHttpInfo(accessToken, subscriptionId, subscriptionItemId, usageRecordId, updateUsageRecord, cancellationToken);
Xero.NetStandard.OAuth2.Client.ApiResponse<UsageRecord> localVarResponse = await PutUsageRecordsAsyncWithHttpInfo(accessToken, subscriptionId, subscriptionItemId, usageRecordId, updateUsageRecord, idempotencyKey, cancellationToken);
return localVarResponse.Data;

}
Expand All @@ -516,9 +525,10 @@ public async System.Threading.Tasks.Task<UsageRecord> PutUsageRecordsAsync (stri
/// <param name="subscriptionItemId">The unique identifier of the subscriptionItem</param>
/// <param name="usageRecordId">The unique identifier of the usage record</param>
/// <param name="updateUsageRecord">Contains the quantity for the usage record to update</param>
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of ApiResponse (UsageRecord)</returns>
public async System.Threading.Tasks.Task<Xero.NetStandard.OAuth2.Client.ApiResponse<UsageRecord>> PutUsageRecordsAsyncWithHttpInfo (string accessToken, Guid subscriptionId, Guid subscriptionItemId, Guid usageRecordId, UpdateUsageRecord updateUsageRecord, CancellationToken cancellationToken = default)
public async System.Threading.Tasks.Task<Xero.NetStandard.OAuth2.Client.ApiResponse<UsageRecord>> PutUsageRecordsAsyncWithHttpInfo (string accessToken, Guid subscriptionId, Guid subscriptionItemId, Guid usageRecordId, UpdateUsageRecord updateUsageRecord, string idempotencyKey = null, CancellationToken cancellationToken = default)
{
// verify the required parameter 'subscriptionId' is set
if (subscriptionId == null)
Expand Down Expand Up @@ -560,6 +570,8 @@ public async System.Threading.Tasks.Task<UsageRecord> PutUsageRecordsAsync (stri
requestOptions.PathParameters.Add("subscriptionItemId", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(subscriptionItemId)); // path parameter
if (usageRecordId != null)
requestOptions.PathParameters.Add("usageRecordId", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(usageRecordId)); // path parameter
if (idempotencyKey != null)
requestOptions.HeaderParameters.Add("Idempotency-Key", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter
requestOptions.Data = updateUsageRecord;

// authentication (OAuth2) required
Expand Down
Loading

0 comments on commit f4104c4

Please sign in to comment.