java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.v2.dto.CartItem

public class CartItem extends Object
An identified part of the shopping cart. A shopping cart is decomposed into one or more shopping cart item. Cart item represents a product offering or bundled product offering that user wish to purchase, as well as the pricing of the product offering, reference to product in case of configured characteristic or installation address. Cart items can be related to other cart item to related bundled offerings or reference cart Items to a shipping options
  • Constructor Details

    • CartItem

      public CartItem()
  • Method Details

    • atBaseType

      public CartItem atBaseType(String atBaseType)
    • getAtBaseType

      public String getAtBaseType()
      Generic attribute indicating the base class type of the extension class of the current object. Useful only when the class type of the current object is unknown to the implementation.
      Returns:
      atBaseType
    • setAtBaseType

      public void setAtBaseType(String atBaseType)
    • atSchemaLocation

      public CartItem atSchemaLocation(String atSchemaLocation)
    • getAtSchemaLocation

      public String getAtSchemaLocation()
      Generic attribute containing the link to the schema that defines the structure of the class type of the current object.
      Returns:
      atSchemaLocation
    • setAtSchemaLocation

      public void setAtSchemaLocation(String atSchemaLocation)
    • atType

      public CartItem atType(String atType)
    • getAtType

      public String getAtType()
      Generic attribute containing the name of the resource class type
      Returns:
      atType
    • setAtType

      public void setAtType(String atType)
    • action

      public CartItem action(ActionType action)
    • getAction

      @Valid public @Valid ActionType getAction()
      Get action
      Returns:
      action
    • setAction

      public void setAction(ActionType action)
    • id

      public CartItem id(String id)
    • getId

      public String getId()
      Identifier of the cart item (generally it is a sequence number 01, 02, 03, ...) in the shopping cart
      Returns:
      id
    • setId

      public void setId(String id)
    • processType

      public CartItem processType(ProcessTypeRef processType)
    • getProcessType

      @Valid public @Valid ProcessTypeRef getProcessType()
      Get processType
      Returns:
      processType
    • setProcessType

      public void setProcessType(ProcessTypeRef processType)
    • quantity

      public CartItem quantity(Integer quantity)
    • getQuantity

      public Integer getQuantity()
      Quantity of cart items
      Returns:
      quantity
    • setQuantity

      public void setQuantity(Integer quantity)
    • status

      public CartItem status(String status)
    • getStatus

      public String getStatus()
      status of cart item. e.g \"Active\" , \"SavedForLater\".
      Returns:
      status
    • setStatus

      public void setStatus(String status)
    • itemTerm

      public CartItem itemTerm(List<CartTerm> itemTerm)
    • addItemTermItem

      public CartItem addItemTermItem(CartTerm itemTermItem)
    • getItemTerm

      @Valid public @Valid List<CartTerm> getItemTerm()
      Get itemTerm
      Returns:
      itemTerm
    • setItemTerm

      public void setItemTerm(List<CartTerm> itemTerm)
    • cartItem

      public CartItem cartItem(List<CartItem> cartItem)
    • addCartItemItem

      public CartItem addCartItemItem(CartItem cartItemItem)
    • getCartItem

      @Valid public @Valid List<CartItem> getCartItem()
      Get cartItem
      Returns:
      cartItem
    • setCartItem

      public void setCartItem(List<CartItem> cartItem)
    • note

      public CartItem note(List<Note> note)
    • addNoteItem

      public CartItem addNoteItem(Note noteItem)
    • getNote

      @Valid public @Valid List<Note> getNote()
      Get note
      Returns:
      note
    • setNote

      public void setNote(List<Note> note)
    • itemTotalPrice

      public CartItem itemTotalPrice(List<CartPrice> itemTotalPrice)
    • addItemTotalPriceItem

      public CartItem addItemTotalPriceItem(CartPrice itemTotalPriceItem)
    • getItemTotalPrice

      @Valid public @Valid List<CartPrice> getItemTotalPrice()
      Get itemTotalPrice
      Returns:
      itemTotalPrice
    • setItemTotalPrice

      public void setItemTotalPrice(List<CartPrice> itemTotalPrice)
    • product

      public CartItem product(Product product)
    • getProduct

      @Valid public @Valid Product getProduct()
      Get product
      Returns:
      product
    • setProduct

      public void setProduct(Product product)
    • itemPrice

      public CartItem itemPrice(List<CartPrice> itemPrice)
    • addItemPriceItem

      public CartItem addItemPriceItem(CartPrice itemPriceItem)
    • getItemPrice

      @Valid public @Valid List<CartPrice> getItemPrice()
      Get itemPrice
      Returns:
      itemPrice
    • setItemPrice

      public void setItemPrice(List<CartPrice> itemPrice)
    • productOffering

      public CartItem productOffering(ProductOfferingRef productOffering)
    • getProductOffering

      @Valid public @Valid ProductOfferingRef getProductOffering()
      Get productOffering
      Returns:
      productOffering
    • setProductOffering

      public void setProductOffering(ProductOfferingRef productOffering)
    • validationError

      public CartItem validationError(List<String> validationError)
    • addValidationErrorItem

      public CartItem addValidationErrorItem(String validationErrorItem)
    • getValidationError

      public List<String> getValidationError()
      Deprecated since 1911
      Returns:
      validationError
    • setValidationError

      public void setValidationError(List<String> validationError)
    • cartItemRelationship

      public CartItem cartItemRelationship(List<CartItemRelationship> cartItemRelationship)
    • addCartItemRelationshipItem

      public CartItem addCartItemRelationshipItem(CartItemRelationship cartItemRelationshipItem)
    • getCartItemRelationship

      @Valid public @Valid List<CartItemRelationship> getCartItemRelationship()
      Get cartItemRelationship
      Returns:
      cartItemRelationship
    • setCartItemRelationship

      public void setCartItemRelationship(List<CartItemRelationship> cartItemRelationship)
    • appointment

      public CartItem appointment(AppointmentRef appointment)
    • getAppointment

      @Valid public @Valid AppointmentRef getAppointment()
      Get appointment
      Returns:
      appointment
    • setAppointment

      public void setAppointment(AppointmentRef appointment)
    • validation

      public CartItem validation(List<ValidationItem> validation)
    • addValidationItem

      public CartItem addValidationItem(ValidationItem validationItem)
    • getValidation

      @Valid public @Valid List<ValidationItem> getValidation()
      Get validation
      Returns:
      validation
    • setValidation

      public void setValidation(List<ValidationItem> validation)
    • promotion

      public CartItem promotion(List<PromotionRef> promotion)
    • addPromotionItem

      public CartItem addPromotionItem(PromotionRef promotionItem)
    • getPromotion

      @Valid public @Valid List<PromotionRef> getPromotion()
      Get promotion
      Returns:
      promotion
    • setPromotion

      public void setPromotion(List<PromotionRef> promotion)
    • contractStartDate

      public CartItem contractStartDate(Date contractStartDate)
    • getContractStartDate

      @Valid public @Valid Date getContractStartDate()
      Date when the contract was created
      Returns:
      contractStartDate
    • setContractStartDate

      public void setContractStartDate(Date contractStartDate)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object