Class ShoppingCart

java.lang.Object
com.bhn.risk.common.SmartObject<ShoppingCart>
com.bhn.risk.order.domain.ShoppingCart

public class ShoppingCart extends com.bhn.risk.common.SmartObject<ShoppingCart>

ShoppingCart class.

Version:
$Id: $Id
Author:
pvela00
  • Field Details

    • totalAmount

      @ValidateWithMethod(methodName="isValidTotalAmount", errorCode="cart.totalAmount.invalid", message="cart.totalAmount should be greater than zero", parameterType=java.math.BigDecimal.class) @NotNull(errorCode="cart.totalAmount.null", message="cart.totalAmount is mandatory") public BigDecimal totalAmount
    • totalShippingAmount

      public BigDecimal totalShippingAmount
    • totalRewardsAmount

      public BigDecimal totalRewardsAmount
    • currencyCode

      @NotNull(when="js:_this.totalAmount != null", errorCode="cart.currencyCode.required", message="Currency code is required when total amount is provided.") public Currency currencyCode
    • shippingGroups

      @NotNull(errorCode="cart.shippingGroups.null", message="Cart shipping group is mandatory") @MinSize(value=1, errorCode="cart.shippingGroups.invalid", message="There should be at least 1 Shipping Group in the cart") @AssertValid public List<ShippingGroup> shippingGroups
    • discounts

      @AssertValid public List<Discount> discounts
  • Constructor Details

    • ShoppingCart

      public ShoppingCart()