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))); }
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); }
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); }