Skip to content

Commit

Permalink
Merge pull request #503 from XeroAPI/XeroOpenAPI-PETOSS-345
Browse files Browse the repository at this point in the history
Build from OpenAPI V3.0.0
  • Loading branch information
thomas-anu authored Feb 6, 2024
2 parents af948bb + 3b8edbe commit e1b8af2
Show file tree
Hide file tree
Showing 23 changed files with 577 additions and 497 deletions.
578 changes: 289 additions & 289 deletions Xero.NetStandard.OAuth2/Api/AccountingApi.cs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 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.40.3
// The version of the OpenAPI document: 3.0.0


using System;
Expand Down
24 changes: 14 additions & 10 deletions Xero.NetStandard.OAuth2/Api/AssetApi.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.40.3
// The version of the OpenAPI document: 3.0.0


using System;
Expand Down Expand Up @@ -68,11 +68,11 @@ public interface IAssetApiAsync : IApiAccessor
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="accessToken">Xero API OAuth 2.0 accessToken</param>
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
/// <param name="assetType">Asset type to add</param>
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
/// <param name="assetType">Asset type to add (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of AssetType</returns>
System.Threading.Tasks.Task<AssetType> CreateAssetTypeAsync (string accessToken, string xeroTenantId, string idempotencyKey = null, AssetType assetType = null, CancellationToken cancellationToken = default);
System.Threading.Tasks.Task<AssetType> CreateAssetTypeAsync (string accessToken, string xeroTenantId, AssetType assetType, string idempotencyKey = null, CancellationToken cancellationToken = default);

/// <summary>
/// adds a fixed asset type
Expand All @@ -83,11 +83,11 @@ public interface IAssetApiAsync : IApiAccessor
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="accessToken">Xero API OAuth 2.0 accessToken</param>
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
/// <param name="assetType">Asset type to add</param>
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
/// <param name="assetType">Asset type to add (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of ApiResponse (AssetType)</returns>
System.Threading.Tasks.Task<ApiResponse<AssetType>> CreateAssetTypeAsyncWithHttpInfo (string accessToken, string xeroTenantId, string idempotencyKey = null, AssetType assetType = null, CancellationToken cancellationToken = default);
System.Threading.Tasks.Task<ApiResponse<AssetType>> CreateAssetTypeAsyncWithHttpInfo (string accessToken, string xeroTenantId, AssetType assetType, string idempotencyKey = null, CancellationToken cancellationToken = default);
/// <summary>
/// Retrieves fixed asset by id
/// </summary>
Expand Down Expand Up @@ -411,13 +411,13 @@ public async System.Threading.Tasks.Task<Asset> CreateAssetAsync (string accessT
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="accessToken">Xero API OAuth 2.0 accessToken</param>
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
/// <param name="assetType">Asset type to add</param>
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
/// <param name="assetType">Asset type to add (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of AssetType</returns>
public async System.Threading.Tasks.Task<AssetType> CreateAssetTypeAsync (string accessToken, string xeroTenantId, string idempotencyKey = null, AssetType assetType = null, CancellationToken cancellationToken = default)
public async System.Threading.Tasks.Task<AssetType> CreateAssetTypeAsync (string accessToken, string xeroTenantId, AssetType assetType, string idempotencyKey = null, CancellationToken cancellationToken = default)
{
Xero.NetStandard.OAuth2.Client.ApiResponse<AssetType> localVarResponse = await CreateAssetTypeAsyncWithHttpInfo(accessToken, xeroTenantId, idempotencyKey, assetType, cancellationToken);
Xero.NetStandard.OAuth2.Client.ApiResponse<AssetType> localVarResponse = await CreateAssetTypeAsyncWithHttpInfo(accessToken, xeroTenantId, assetType, idempotencyKey, cancellationToken);
return localVarResponse.Data;

}
Expand All @@ -428,16 +428,20 @@ public async System.Threading.Tasks.Task<AssetType> CreateAssetTypeAsync (string
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="accessToken">Xero API OAuth 2.0 accessToken</param>
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
/// <param name="assetType">Asset type to add</param>
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
/// <param name="assetType">Asset type to add (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of ApiResponse (AssetType)</returns>
public async System.Threading.Tasks.Task<Xero.NetStandard.OAuth2.Client.ApiResponse<AssetType>> CreateAssetTypeAsyncWithHttpInfo (string accessToken, string xeroTenantId, string idempotencyKey = null, AssetType assetType = null, CancellationToken cancellationToken = default)
public async System.Threading.Tasks.Task<Xero.NetStandard.OAuth2.Client.ApiResponse<AssetType>> CreateAssetTypeAsyncWithHttpInfo (string accessToken, string xeroTenantId, AssetType assetType, 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 AssetApi->CreateAssetType");

// verify the required parameter 'assetType' is set
if (assetType == null)
throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'assetType' when calling AssetApi->CreateAssetType");


Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions();

Expand Down
24 changes: 14 additions & 10 deletions Xero.NetStandard.OAuth2/Api/BankFeedsApi.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.40.3
// The version of the OpenAPI document: 3.0.0


using System;
Expand Down Expand Up @@ -68,11 +68,11 @@ public interface IBankFeedsApiAsync : IApiAccessor
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="accessToken">Xero API OAuth 2.0 accessToken</param>
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
/// <param name="statements">Statements array of objects in the body</param>
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
/// <param name="statements">Statements array of objects in the body (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of Statements</returns>
System.Threading.Tasks.Task<Statements> CreateStatementsAsync (string accessToken, string xeroTenantId, string idempotencyKey = null, Statements statements = null, CancellationToken cancellationToken = default);
System.Threading.Tasks.Task<Statements> CreateStatementsAsync (string accessToken, string xeroTenantId, Statements statements, string idempotencyKey = null, CancellationToken cancellationToken = default);

/// <summary>
/// Creates one or more new statements
Expand All @@ -83,11 +83,11 @@ public interface IBankFeedsApiAsync : IApiAccessor
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="accessToken">Xero API OAuth 2.0 accessToken</param>
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
/// <param name="statements">Statements array of objects in the body</param>
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
/// <param name="statements">Statements array of objects in the body (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of ApiResponse (Statements)</returns>
System.Threading.Tasks.Task<ApiResponse<Statements>> CreateStatementsAsyncWithHttpInfo (string accessToken, string xeroTenantId, string idempotencyKey = null, Statements statements = null, CancellationToken cancellationToken = default);
System.Threading.Tasks.Task<ApiResponse<Statements>> CreateStatementsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Statements statements, string idempotencyKey = null, CancellationToken cancellationToken = default);
/// <summary>
/// Delete an existing feed connection
/// </summary>
Expand Down Expand Up @@ -442,13 +442,13 @@ public async System.Threading.Tasks.Task<FeedConnections> CreateFeedConnectionsA
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="accessToken">Xero API OAuth 2.0 accessToken</param>
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
/// <param name="statements">Statements array of objects in the body</param>
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
/// <param name="statements">Statements array of objects in the body (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of Statements</returns>
public async System.Threading.Tasks.Task<Statements> CreateStatementsAsync (string accessToken, string xeroTenantId, string idempotencyKey = null, Statements statements = null, CancellationToken cancellationToken = default)
public async System.Threading.Tasks.Task<Statements> CreateStatementsAsync (string accessToken, string xeroTenantId, Statements statements, string idempotencyKey = null, CancellationToken cancellationToken = default)
{
Xero.NetStandard.OAuth2.Client.ApiResponse<Statements> localVarResponse = await CreateStatementsAsyncWithHttpInfo(accessToken, xeroTenantId, idempotencyKey, statements, cancellationToken);
Xero.NetStandard.OAuth2.Client.ApiResponse<Statements> localVarResponse = await CreateStatementsAsyncWithHttpInfo(accessToken, xeroTenantId, statements, idempotencyKey, cancellationToken);
return localVarResponse.Data;

}
Expand All @@ -459,16 +459,20 @@ public async System.Threading.Tasks.Task<Statements> CreateStatementsAsync (stri
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="accessToken">Xero API OAuth 2.0 accessToken</param>
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
/// <param name="statements">Statements array of objects in the body</param>
/// <param name="idempotencyKey">This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)</param>
/// <param name="statements">Statements array of objects in the body (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of ApiResponse (Statements)</returns>
public async System.Threading.Tasks.Task<Xero.NetStandard.OAuth2.Client.ApiResponse<Statements>> CreateStatementsAsyncWithHttpInfo (string accessToken, string xeroTenantId, string idempotencyKey = null, Statements statements = null, CancellationToken cancellationToken = default)
public async System.Threading.Tasks.Task<Xero.NetStandard.OAuth2.Client.ApiResponse<Statements>> CreateStatementsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Statements statements, 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 BankFeedsApi->CreateStatements");

// verify the required parameter 'statements' is set
if (statements == null)
throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'statements' when calling BankFeedsApi->CreateStatements");


Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions();

Expand Down
Loading

0 comments on commit e1b8af2

Please sign in to comment.