package io.github.zutherb.appstash.shop.service.cart.api;

import io.github.zutherb.appstash.shop.service.cart.model.CartItemInfo;
import io.github.zutherb.appstash.shop.service.product.model.ProductInfo;

import java.math.BigDecimal;
import java.util.List;

public interface CartFulfillmentProvider {
    CartItemInfo addItem(ProductInfo product);
    void removeItem(CartItemInfo item);
    List<CartItemInfo> getAll();
    void clear();
    boolean isEmpty();
    BigDecimal getTotalSum();
}

@@ -486,10 +486,43 @@
 lSum();%0A
+    BigDecimal getDiscountSum();%0A
 %7D%0A

Update CartFulfillmentProvider.java