public Task <WithdrawListResponse> SearchWithdrawsAsync(SearchWithdrawsRequest request) { var queryParam = RequestQueryParamsBuilder.BuildQueryParam(request); var path = "/wallet/v1/withdraws" + queryParam; return(AsyncRestClient.Get <WithdrawListResponse>(RequestOptions.BaseUrl + path, CreateHeaders(path, RequestOptions))); }
public void Search_Withdraws() { var request = new SearchWithdrawsRequest { PayoutStatus = TransactionPayoutStatus.WAITING_FOR_PAYOUT, MinWithdrawPrice = new decimal(5), MaxWithdrawPrice = new decimal(1000) }; var response = _craftgateClient.Wallet().SearchWithdraws(request); Assert.IsNotNull(response.Page); Assert.IsNotNull(response.Size); Assert.IsNotNull(response.TotalSize); Assert.GreaterOrEqual(response.Items.Count, 0); }