Class ShoppingCart

java.lang.Object
com.onlinepayments.domain.ShoppingCart

public class ShoppingCart extends Object
  • Constructor Details

    • ShoppingCart

      public ShoppingCart()
  • Method Details

    • getAmountBreakdown

      @Deprecated public List<AmountBreakdown> getAmountBreakdown()
      Deprecated.
      Use order.shipping.shippingCost for shipping cost. Other amounts are not used. Determines how the total amount is split into amount types
      Deprecated: Use order.shipping.shippingCost for shipping cost. Other amounts are not used. Determines how the total amount is split into amount types
    • setAmountBreakdown

      @Deprecated public void setAmountBreakdown(List<AmountBreakdown> value)
      Deprecated.
      Use order.shipping.shippingCost for shipping cost. Other amounts are not used. Determines how the total amount is split into amount types
      Deprecated: Use order.shipping.shippingCost for shipping cost. Other amounts are not used. Determines how the total amount is split into amount types
    • withAmountBreakdown

      @Deprecated public ShoppingCart withAmountBreakdown(List<AmountBreakdown> value)
      Deprecated.
      Use order.shipping.shippingCost for shipping cost. Other amounts are not used. Determines how the total amount is split into amount types
      Deprecated: Use order.shipping.shippingCost for shipping cost. Other amounts are not used. Determines how the total amount is split into amount types
    • getGiftCardPurchase

      public GiftCardPurchase getGiftCardPurchase()
      Object containing information on purchased gift card(s)
    • setGiftCardPurchase

      public void setGiftCardPurchase(GiftCardPurchase value)
      Object containing information on purchased gift card(s)
    • withGiftCardPurchase

      public ShoppingCart withGiftCardPurchase(GiftCardPurchase value)
      Object containing information on purchased gift card(s)
    • getIsPreOrder

      public Boolean getIsPreOrder()
      The customer is pre-ordering one or more items
    • setIsPreOrder

      public void setIsPreOrder(Boolean value)
      The customer is pre-ordering one or more items
    • withIsPreOrder

      public ShoppingCart withIsPreOrder(Boolean value)
      The customer is pre-ordering one or more items
    • getItems

      public List<LineItem> getItems()
      Shopping cart data
    • setItems

      public void setItems(List<LineItem> value)
      Shopping cart data
    • withItems

      public ShoppingCart withItems(List<LineItem> value)
      Shopping cart data
    • getPreOrderItemAvailabilityDate

      public String getPreOrderItemAvailabilityDate()
      Date (YYYYMMDD) when the preordered item becomes available
    • setPreOrderItemAvailabilityDate

      public void setPreOrderItemAvailabilityDate(String value)
      Date (YYYYMMDD) when the preordered item becomes available
    • withPreOrderItemAvailabilityDate

      public ShoppingCart withPreOrderItemAvailabilityDate(String value)
      Date (YYYYMMDD) when the preordered item becomes available
    • getReOrderIndicator

      public Boolean getReOrderIndicator()
      Indicates whether the cardholder is reordering previously purchased item(s)

      true = the customer is re-ordering at least one of the items again

      false = this is the first time the customer is ordering these items

    • setReOrderIndicator

      public void setReOrderIndicator(Boolean value)
      Indicates whether the cardholder is reordering previously purchased item(s)

      true = the customer is re-ordering at least one of the items again

      false = this is the first time the customer is ordering these items

    • withReOrderIndicator

      public ShoppingCart withReOrderIndicator(Boolean value)
      Indicates whether the cardholder is reordering previously purchased item(s)

      true = the customer is re-ordering at least one of the items again

      false = this is the first time the customer is ordering these items