public Task <InstallmentListResponse> SearchInstallmentsAsync(SearchInstallmentsRequest searchInstallmentsRequest)
        {
            var queryParam = RequestQueryParamsBuilder.BuildQueryParam(searchInstallmentsRequest);
            var path       = "/installment/v1/installments" + queryParam;

            return(AsyncRestClient.Get <InstallmentListResponse>(RequestOptions.BaseUrl + path,
                                                                 CreateHeaders(path, RequestOptions)));
        }
Beispiel #2
0
        public void Search_Installments()
        {
            var request = new SearchInstallmentsRequest
            {
                BinNumber = "525864",
                Price     = 100,
                Currency  = Currency.TRY
            };

            var response = _craftgateClient.Installment().SearchInstallments(request);

            Assert.True(response.Items.Count > 0);
        }
Beispiel #3
0
        public void Search_Installments_With_Distinct_Card_Brand_With_Lowest_Commissions()
        {
            var request = new SearchInstallmentsRequest
            {
                BinNumber = "525864",
                Price     = 100,
                Currency  = Currency.TRY,
                DistinctCardBrandsWithLowestCommissions = true
            };

            var response = _craftgateClient.Installment().SearchInstallments(request);

            Assert.True(response.Items.Count > 0);
        }