/// <summary> /// searches fixed asset By passing in the appropriate options, you can search for available fixed asset in the system /// </summary> /// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="xeroTenantId">Xero identifier for Tenant</param> /// <param name="status">Required when retrieving a collection of assets. See Asset Status Codes</param> /// <param name="page">Results are paged. This specifies which page of the results to return. The default page is 1. (optional)</param> /// <param name="pageSize">The number of records returned per page. By default the number of records returned is 10. (optional)</param> /// <param name="orderBy">Requests can be ordered by AssetType, AssetName, AssetNumber, PurchaseDate and PurchasePrice. If the asset status is DISPOSED it also allows DisposalDate and DisposalPrice. (optional)</param> /// <param name="sortDirection">ASC or DESC (optional)</param> /// <param name="filterBy">A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields. (optional)</param> /// <returns>Task of Assets</returns> public async System.Threading.Tasks.Task <Assets> GetAssetsAsync(string accessToken, string xeroTenantId, AssetStatusQueryParam status, int?page = null, int?pageSize = null, string orderBy = null, string sortDirection = null, string filterBy = null) { Xero.NetStandard.OAuth2.Client.ApiResponse <Assets> localVarResponse = await GetAssetsAsyncWithHttpInfo(accessToken, xeroTenantId, status, page, pageSize, orderBy, sortDirection, filterBy); return(localVarResponse.Data); }
/// <summary> /// searches fixed asset types By passing in the appropriate options, you can search for available fixed asset types in the system /// </summary> /// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="xeroTenantId">Xero identifier for Tenant</param> /// <returns>Task of List<AssetType></returns> public async System.Threading.Tasks.Task <List <AssetType> > GetAssetTypesAsync(string accessToken, string xeroTenantId) { Xero.NetStandard.OAuth2.Client.ApiResponse <List <AssetType> > localVarResponse = await GetAssetTypesAsyncWithHttpInfo(accessToken, xeroTenantId); return(localVarResponse.Data); }
/// <summary> /// Allows you to retrieve the connections for this user Override the base server url that include version /// </summary> /// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="authEventId">Filter by authEventId (optional)</param> /// <returns>Task of List<Connection></returns> public async System.Threading.Tasks.Task <List <Connection> > GetConnectionsAsync(string accessToken, Guid?authEventId = null) { Xero.NetStandard.OAuth2.Client.ApiResponse <List <Connection> > localVarResponse = await GetConnectionsAsyncWithHttpInfo(accessToken, authEventId); return(localVarResponse.Data); }
/// <summary> /// adds a fixed asset type Adds an fixed asset type to the system /// </summary> /// <exception cref="Xero.NetStandard.OAuth2.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="xeroTenantId">Xero identifier for Tenant</param> /// <param name="assetType">Asset type to add (optional)</param> /// <returns>Task of AssetType</returns> public async System.Threading.Tasks.Task <AssetType> CreateAssetTypeAsync(string accessToken, string xeroTenantId, AssetType assetType = null) { Xero.NetStandard.OAuth2.Client.ApiResponse <AssetType> localVarResponse = await CreateAssetTypeAsyncWithHttpInfo(accessToken, xeroTenantId, assetType); return(localVarResponse.Data); }
/// <summary> /// Retrieves a subscription for a given subscriptionId /// </summary> /// <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="subscriptionId">Unique identifier for Subscription object</param> /// <returns>Task of Subscription</returns> public async System.Threading.Tasks.Task <Subscription> GetSubscriptionAsync(string accessToken, Guid subscriptionId) { Xero.NetStandard.OAuth2.Client.ApiResponse <Subscription> localVarResponse = await GetSubscriptionAsyncWithHttpInfo(accessToken, subscriptionId); return(localVarResponse.Data); }