Skip to content

Commit afce332

Browse files
authored
Merge pull request #244 from XeroAPI/regenerated-against-OAS-v2-3-6
generated against 3.7.1
2 parents 396be76 + 52fe467 commit afce332

File tree

439 files changed

+1135
-637
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

439 files changed

+1135
-637
lines changed

Xero.NetStandard.OAuth2/Api/AccountingApi.cs

Lines changed: 89 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
55
*
6-
* The version of the OpenAPI document: 2.3.3
6+
* The version of the OpenAPI document: 2.3.6
77
* Contact: api@xero.com
88
* Generated by: https://github.com/openapitools/openapi-generator.git
99
*/
@@ -3287,6 +3287,27 @@ public interface IAccountingApiAsync : IApiAccessor
32873287
/// <returns>Task of ApiResponse (OnlineInvoices)</returns>
32883288
System.Threading.Tasks.Task<ApiResponse<OnlineInvoices>> GetOnlineInvoiceAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID);
32893289
/// <summary>
3290+
/// Retrieve a list of the key actions your app has permission to perform in the connected organisation.
3291+
/// </summary>
3292+
/// <remarks>
3293+
///
3294+
/// </remarks>
3295+
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
3296+
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
3297+
/// <returns>Task of Actions</returns>
3298+
System.Threading.Tasks.Task<Actions> GetOrganisationActionsAsync (string accessToken, string xeroTenantId);
3299+
3300+
/// <summary>
3301+
/// Retrieve a list of the key actions your app has permission to perform in the connected organisation.
3302+
/// </summary>
3303+
/// <remarks>
3304+
///
3305+
/// </remarks>
3306+
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
3307+
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
3308+
/// <returns>Task of ApiResponse (Actions)</returns>
3309+
System.Threading.Tasks.Task<ApiResponse<Actions>> GetOrganisationActionsAsyncWithHttpInfo (string accessToken, string xeroTenantId);
3310+
/// <summary>
32903311
/// Allows you To verify if an organisation is using contruction industry scheme, you can retrieve the CIS settings for the organistaion.
32913312
/// </summary>
32923313
/// <remarks>
@@ -16828,6 +16849,73 @@ public async System.Threading.Tasks.Task<OnlineInvoices> GetOnlineInvoiceAsync (
1682816849
}
1682916850

1683016851

16852+
/// <summary>
16853+
/// Retrieve a list of the key actions your app has permission to perform in the connected organisation.
16854+
/// </summary>
16855+
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
16856+
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
16857+
/// <returns>Task of Actions</returns>
16858+
public async System.Threading.Tasks.Task<Actions> GetOrganisationActionsAsync (string accessToken, string xeroTenantId)
16859+
{
16860+
Xero.NetStandard.OAuth2.Client.ApiResponse<Actions> localVarResponse = await GetOrganisationActionsAsyncWithHttpInfo(accessToken, xeroTenantId);
16861+
return localVarResponse.Data;
16862+
16863+
}
16864+
16865+
/// <summary>
16866+
/// Retrieve a list of the key actions your app has permission to perform in the connected organisation.
16867+
/// </summary>
16868+
/// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception>
16869+
/// <param name="xeroTenantId">Xero identifier for Tenant</param>
16870+
/// <returns>Task of ApiResponse (Actions)</returns>
16871+
public async System.Threading.Tasks.Task<Xero.NetStandard.OAuth2.Client.ApiResponse<Actions>> GetOrganisationActionsAsyncWithHttpInfo (string accessToken, string xeroTenantId)
16872+
{
16873+
// verify the required parameter 'xeroTenantId' is set
16874+
if (xeroTenantId == null)
16875+
throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling AccountingApi->GetOrganisationActions");
16876+
16877+
16878+
Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions();
16879+
16880+
String[] @contentTypes = new String[] {
16881+
};
16882+
16883+
// to determine the Accept header
16884+
String[] @accepts = new String[] {
16885+
"application/json"
16886+
};
16887+
16888+
foreach (var cType in @contentTypes)
16889+
requestOptions.HeaderParameters.Add("Content-Type", cType);
16890+
16891+
foreach (var accept in @accepts)
16892+
requestOptions.HeaderParameters.Add("Accept", accept);
16893+
16894+
if (xeroTenantId != null)
16895+
requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter
16896+
16897+
// authentication (OAuth2) required
16898+
// oauth required
16899+
if (!String.IsNullOrEmpty(accessToken))
16900+
{
16901+
requestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken);
16902+
}
16903+
// make the HTTP request
16904+
16905+
16906+
16907+
var response = await this.AsynchronousClient.GetAsync<Actions>("/Organisation/Actions", requestOptions, this.Configuration);
16908+
16909+
if (this.ExceptionFactory != null)
16910+
{
16911+
Exception exception = this.ExceptionFactory("GetOrganisationActions", response);
16912+
if (exception != null) throw exception;
16913+
}
16914+
16915+
return response;
16916+
}
16917+
16918+
1683116919
/// <summary>
1683216920
/// Allows you To verify if an organisation is using contruction industry scheme, you can retrieve the CIS settings for the organistaion.
1683316921
/// </summary>

Xero.NetStandard.OAuth2/Api/AssetApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* This is the Xero Assets API
55
*
6-
* The version of the OpenAPI document: 2.3.3
6+
* The version of the OpenAPI document: 2.3.6
77
* Contact: api@xero.com
88
* Generated by: https://github.com/openapitools/openapi-generator.git
99
*/

Xero.NetStandard.OAuth2/Api/IdentityApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* This specifing endpoints related to managing authentication tokens and identity for Xero API
55
*
6-
* The version of the OpenAPI document: 2.3.0
6+
* The version of the OpenAPI document: 2.3.6
77
* Contact: api@xero.com
88
* Generated by: https://github.com/openapitools/openapi-generator.git
99
*/

Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* This is the Xero Payroll API for orgs in Australia region.
55
*
6-
* The version of the OpenAPI document: 2.3.0
6+
* The version of the OpenAPI document: 2.3.6
77
* Contact: api@xero.com
88
* Generated by: https://github.com/openapitools/openapi-generator.git
99
*/

0 commit comments

Comments
 (0)