Skip to content

Commit

Permalink
pricing communication final update
Browse files Browse the repository at this point in the history
  • Loading branch information
NibrasAmmar01 committed Dec 28, 2024
1 parent 02edc03 commit 123c6db
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
public class PricingService {
private WebClient webClient;
public PricingService(WebClient.Builder webClientBuilder) {
this.webClient = webClientBuilder.baseUrl("http://localhost:8086/pricing/cart-total").build();
this.webClient = webClientBuilder.baseUrl("http://localhost:8086/pricing/purchase-total").build();
}

public cartResponse checkPrice(List<CartItem> cartItems) {


return webClient.post()
.uri("http://localhost:8086/pricing/cart-total")
.uri("http://localhost:8086/pricing/purchase-total")
.bodyValue(cartItems)
.retrieve()
.bodyToMono(new ParameterizedTypeReference<cartResponse>() {})
Expand Down

0 comments on commit 123c6db

Please sign in to comment.