|
3 | 3 | * |
4 | 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) |
5 | 5 | * |
6 | | - * The version of the OpenAPI document: 2.3.3 |
| 6 | + * The version of the OpenAPI document: 2.3.6 |
7 | 7 | * Contact: api@xero.com |
8 | 8 | * Generated by: https://github.com/openapitools/openapi-generator.git |
9 | 9 | */ |
@@ -3287,6 +3287,27 @@ public interface IAccountingApiAsync : IApiAccessor |
3287 | 3287 | /// <returns>Task of ApiResponse (OnlineInvoices)</returns> |
3288 | 3288 | System.Threading.Tasks.Task<ApiResponse<OnlineInvoices>> GetOnlineInvoiceAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID); |
3289 | 3289 | /// <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> |
3290 | 3311 | /// Allows you To verify if an organisation is using contruction industry scheme, you can retrieve the CIS settings for the organistaion. |
3291 | 3312 | /// </summary> |
3292 | 3313 | /// <remarks> |
@@ -16828,6 +16849,73 @@ public async System.Threading.Tasks.Task<OnlineInvoices> GetOnlineInvoiceAsync ( |
16828 | 16849 | } |
16829 | 16850 |
|
16830 | 16851 |
|
| 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 | + |
16831 | 16919 | /// <summary> |
16832 | 16920 | /// Allows you To verify if an organisation is using contruction industry scheme, you can retrieve the CIS settings for the organistaion. |
16833 | 16921 | /// </summary> |
|
0 commit comments