Ejemplo n.º 1
0
        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)));
        }
Ejemplo n.º 2
0
        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);
        }