Class OrderItemWrapper

java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.OrderItemWrapper
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.order.domain.OrderItem>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class OrderItemWrapper extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.order.domain.OrderItem>
This is a JAXB wrapper around OrderItem. For simplicity and most use cases, this wrapper only serializes attributes of DiscreteOrderItem This wrapper should be extended for BundledOrderItems etc... User: Elbert Bautista Date: 4/10/12
See Also:
  • Field Details

    • id

      protected Long id
    • name

      protected String name
    • quantity

      protected Integer quantity
    • averagePrice

      protected org.broadleafcommerce.common.money.Money averagePrice
    • retailPrice

      protected org.broadleafcommerce.common.money.Money retailPrice
    • salePrice

      protected org.broadleafcommerce.common.money.Money salePrice
    • totalPrice

      protected org.broadleafcommerce.common.money.Money totalPrice
    • totalAdjustmentValue

      protected org.broadleafcommerce.common.money.Money totalAdjustmentValue
    • priceBeforeAdjustments

      protected org.broadleafcommerce.common.money.Money priceBeforeAdjustments
    • orderId

      protected Long orderId
    • categoryId

      protected Long categoryId
    • skuId

      protected Long skuId
    • productId

      protected Long productId
    • productUrl

      protected String productUrl
    • hasValidationError

      protected Boolean hasValidationError
    • primaryMedia

      protected MediaWrapper primaryMedia
    • isBundle

      protected Boolean isBundle
    • parentOrderItemId

      protected Long parentOrderItemId
    • orderItemAttributes

      protected List<OrderItemAttributeWrapper> orderItemAttributes
    • additionalAttributes

      protected List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> additionalAttributes
    • orderItemPriceDetails

      protected List<OrderItemPriceDetailWrapper> orderItemPriceDetails
    • bundleItems

      protected List<OrderItemWrapper> bundleItems
    • childOrderItems

      protected List<OrderItemWrapper> childOrderItems
    • qualifiers

      protected List<OrderItemQualifierWrapper> qualifiers
    • cartMessages

      protected List<String> cartMessages
    • isDiscountingAllowed

      protected Boolean isDiscountingAllowed
  • Constructor Details

    • OrderItemWrapper

      public OrderItemWrapper()
  • Method Details

    • wrapDetails

      public void wrapDetails(org.broadleafcommerce.core.order.domain.OrderItem model, jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      wrapDetails in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.order.domain.OrderItem>
    • wrapSummary

      public void wrapSummary(org.broadleafcommerce.core.order.domain.OrderItem model, jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      wrapSummary in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.order.domain.OrderItem>
    • getId

      public Long getId()
      Returns:
      the id
    • setId

      public void setId(Long id)
      Parameters:
      id - the id to set
    • getName

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getQuantity

      public Integer getQuantity()
      Returns:
      the quantity
    • setQuantity

      public void setQuantity(Integer quantity)
      Parameters:
      quantity - the quantity to set
    • getRetailPrice

      public org.broadleafcommerce.common.money.Money getRetailPrice()
      Returns:
      the retailPrice
    • setRetailPrice

      public void setRetailPrice(org.broadleafcommerce.common.money.Money retailPrice)
      Parameters:
      retailPrice - the retailPrice to set
    • getSalePrice

      public org.broadleafcommerce.common.money.Money getSalePrice()
      Returns:
      the salePrice
    • setSalePrice

      public void setSalePrice(org.broadleafcommerce.common.money.Money salePrice)
      Parameters:
      salePrice - the salePrice to set
    • getAveragePrice

      public org.broadleafcommerce.common.money.Money getAveragePrice()
    • setAveragePrice

      public void setAveragePrice(org.broadleafcommerce.common.money.Money averagePrice)
    • getTotalPrice

      public org.broadleafcommerce.common.money.Money getTotalPrice()
    • setTotalPrice

      public void setTotalPrice(org.broadleafcommerce.common.money.Money totalPrice)
    • getTotalAdjustmentValue

      public org.broadleafcommerce.common.money.Money getTotalAdjustmentValue()
    • setTotalAdjustmentValue

      public void setTotalAdjustmentValue(org.broadleafcommerce.common.money.Money totalAdjustmentValue)
    • getPriceBeforeAdjustments

      public org.broadleafcommerce.common.money.Money getPriceBeforeAdjustments()
    • setPriceBeforeAdjustments

      public void setPriceBeforeAdjustments(org.broadleafcommerce.common.money.Money priceBeforeAdjustments)
    • getBundle

      public Boolean getBundle()
    • setBundle

      public void setBundle(Boolean bundle)
    • getCartMessages

      public List<String> getCartMessages()
    • setCartMessages

      public void setCartMessages(List<String> cartMessages)
    • getDiscountingAllowed

      public Boolean getDiscountingAllowed()
    • setDiscountingAllowed

      public void setDiscountingAllowed(Boolean discountingAllowed)
    • getOrderId

      public Long getOrderId()
      Returns:
      the orderId
    • setOrderId

      public void setOrderId(Long orderId)
      Parameters:
      orderId - the orderId to set
    • getCategoryId

      public Long getCategoryId()
      Returns:
      the categoryId
    • setCategoryId

      public void setCategoryId(Long categoryId)
      Parameters:
      categoryId - the categoryId to set
    • getSkuId

      public Long getSkuId()
      Returns:
      the skuId
    • setSkuId

      public void setSkuId(Long skuId)
      Parameters:
      skuId - the skuId to set
    • getProductId

      public Long getProductId()
      Returns:
      the productId
    • setProductId

      public void setProductId(Long productId)
      Parameters:
      productId - the productId to set
    • getProductUrl

      public String getProductUrl()
    • setProductUrl

      public void setProductUrl(String productUrl)
    • getHasValidationError

      public Boolean getHasValidationError()
    • setHasValidationError

      public void setHasValidationError(Boolean hasValidationError)
    • getPrimaryMedia

      public MediaWrapper getPrimaryMedia()
    • setPrimaryMedia

      public void setPrimaryMedia(MediaWrapper primaryMedia)
    • getIsBundle

      public Boolean getIsBundle()
      Returns:
      the isBundle
    • setIsBundle

      public void setIsBundle(Boolean isBundle)
      Parameters:
      isBundle - the isBundle to set
    • getParentOrderItemId

      public Long getParentOrderItemId()
    • setParentOrderItemId

      public void setParentOrderItemId(Long parentOrderItemId)
    • getOrderItemAttributes

      public List<OrderItemAttributeWrapper> getOrderItemAttributes()
      Returns:
      the orderItemAttributes
    • setOrderItemAttributes

      public void setOrderItemAttributes(List<OrderItemAttributeWrapper> orderItemAttributes)
      Parameters:
      orderItemAttributes - the orderItemAttributes to set
    • getAdditionalAttributes

      public List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> getAdditionalAttributes()
      Returns:
      the additionalAttributes
    • setAdditionalAttributes

      public void setAdditionalAttributes(List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> additionalAttributes)
      Parameters:
      additionalAttributes - the additionalAttributes to set
    • getOrderItemPriceDetails

      public List<OrderItemPriceDetailWrapper> getOrderItemPriceDetails()
      Returns:
      the orderItemPriceDetails
    • setOrderItemPriceDetails

      public void setOrderItemPriceDetails(List<OrderItemPriceDetailWrapper> orderItemPriceDetails)
      Parameters:
      orderItemPriceDetails - the orderItemPriceDetails to set
    • getBundleItems

      public List<OrderItemWrapper> getBundleItems()
      Returns:
      the bundleItems
    • setBundleItems

      public void setBundleItems(List<OrderItemWrapper> bundleItems)
      Parameters:
      bundleItems - the bundleItems to set
    • getChildOrderItems

      public List<OrderItemWrapper> getChildOrderItems()
      Returns:
      the childOrderItems
    • setChildOrderItems

      public void setChildOrderItems(List<OrderItemWrapper> childOrderItems)
      Parameters:
      childOrderItems - the childOrderItems to set
    • getQualifiers

      public List<OrderItemQualifierWrapper> getQualifiers()
      Returns:
      the qualifiers
    • setQualifiers

      public void setQualifiers(List<OrderItemQualifierWrapper> qualifiers)
      Parameters:
      qualifiers - the qualifiers to set
    • getIsDiscountingAllowed

      public Boolean getIsDiscountingAllowed()
      Returns:
      the isDiscountingAllowed
    • setIsDiscountingAllowed

      public void setIsDiscountingAllowed(Boolean isDiscountingAllowed)
      Parameters:
      isDiscountingAllowed - the isDiscountingAllowed to set