Class OrderWrapper

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

public class OrderWrapper extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.order.domain.Order>
This is a JAXB wrapper around Order.

User: Elbert Bautista Date: 4/10/12

See Also:
  • Field Details

    • id

      protected Long id
    • orderNumber

      protected String orderNumber
    • emailAddress

      protected String emailAddress
    • status

      protected String status
    • submitDate

      protected Date submitDate
    • totalTax

      protected org.broadleafcommerce.common.money.Money totalTax
    • totalShipping

      protected org.broadleafcommerce.common.money.Money totalShipping
    • itemAdjustmentsValue

      protected org.broadleafcommerce.common.money.Money itemAdjustmentsValue
    • fulfillmentGroupAdjustmentsValue

      protected org.broadleafcommerce.common.money.Money fulfillmentGroupAdjustmentsValue
    • orderAdjustmentsValue

      protected org.broadleafcommerce.common.money.Money orderAdjustmentsValue
    • totalAdjustmentsValue

      protected org.broadleafcommerce.common.money.Money totalAdjustmentsValue
    • subTotal

      protected org.broadleafcommerce.common.money.Money subTotal
    • total

      protected org.broadleafcommerce.common.money.Money total
    • itemCount

      protected Integer itemCount
    • customer

      protected CustomerWrapper customer
    • orderItems

      protected List<OrderItemWrapper> orderItems
    • fulfillmentGroups

      protected List<FulfillmentGroupWrapper> fulfillmentGroups
    • payments

      protected List<OrderPaymentWrapper> payments
    • orderAdjustments

      protected List<AdjustmentWrapper> orderAdjustments
    • orderAttributes

      protected List<OrderAttributeWrapper> orderAttributes
    • cartMessages

      protected List<CartMessageWrapper> cartMessages
  • Constructor Details

    • OrderWrapper

      public OrderWrapper()
  • Method Details

    • wrapDetails

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

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

      public Long getId()
      Returns:
      the id
    • setId

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

      public String getOrderNumber()
    • setOrderNumber

      public void setOrderNumber(String orderNumber)
    • getEmailAddress

      public String getEmailAddress()
    • setEmailAddress

      public void setEmailAddress(String emailAddress)
    • getStatus

      public String getStatus()
      Returns:
      the status
    • setStatus

      public void setStatus(String status)
      Parameters:
      status - the status to set
    • getSubmitDate

      public Date getSubmitDate()
    • setSubmitDate

      public void setSubmitDate(Date submitDate)
    • getTotalTax

      public org.broadleafcommerce.common.money.Money getTotalTax()
      Returns:
      the totalTax
    • setTotalTax

      public void setTotalTax(org.broadleafcommerce.common.money.Money totalTax)
      Parameters:
      totalTax - the totalTax to set
    • getTotalShipping

      public org.broadleafcommerce.common.money.Money getTotalShipping()
      Returns:
      the totalShipping
    • setTotalShipping

      public void setTotalShipping(org.broadleafcommerce.common.money.Money totalShipping)
      Parameters:
      totalShipping - the totalShipping to set
    • getItemAdjustmentsValue

      public org.broadleafcommerce.common.money.Money getItemAdjustmentsValue()
    • setItemAdjustmentsValue

      public void setItemAdjustmentsValue(org.broadleafcommerce.common.money.Money itemAdjustmentsValue)
    • getFulfillmentGroupAdjustmentsValue

      public org.broadleafcommerce.common.money.Money getFulfillmentGroupAdjustmentsValue()
    • setFulfillmentGroupAdjustmentsValue

      public void setFulfillmentGroupAdjustmentsValue(org.broadleafcommerce.common.money.Money fulfillmentGroupAdjustmentsValue)
    • getOrderAdjustmentsValue

      public org.broadleafcommerce.common.money.Money getOrderAdjustmentsValue()
    • setOrderAdjustmentsValue

      public void setOrderAdjustmentsValue(org.broadleafcommerce.common.money.Money orderAdjustmentsValue)
    • getTotalAdjustmentsValue

      public org.broadleafcommerce.common.money.Money getTotalAdjustmentsValue()
    • setTotalAdjustmentsValue

      public void setTotalAdjustmentsValue(org.broadleafcommerce.common.money.Money totalAdjustmentsValue)
    • getSubTotal

      public org.broadleafcommerce.common.money.Money getSubTotal()
      Returns:
      the subTotal
    • setSubTotal

      public void setSubTotal(org.broadleafcommerce.common.money.Money subTotal)
      Parameters:
      subTotal - the subTotal to set
    • getTotal

      public org.broadleafcommerce.common.money.Money getTotal()
      Returns:
      the total
    • setTotal

      public void setTotal(org.broadleafcommerce.common.money.Money total)
      Parameters:
      total - the total to set
    • getItemCount

      public Integer getItemCount()
    • setItemCount

      public void setItemCount(Integer itemCount)
    • getCustomer

      public CustomerWrapper getCustomer()
      Returns:
      the customer
    • setCustomer

      public void setCustomer(CustomerWrapper customer)
      Parameters:
      customer - the customer to set
    • getOrderItems

      public List<OrderItemWrapper> getOrderItems()
      Returns:
      the orderItems
    • setOrderItems

      public void setOrderItems(List<OrderItemWrapper> orderItems)
      Parameters:
      orderItems - the orderItems to set
    • getFulfillmentGroups

      public List<FulfillmentGroupWrapper> getFulfillmentGroups()
      Returns:
      the fulfillmentGroups
    • setFulfillmentGroups

      public void setFulfillmentGroups(List<FulfillmentGroupWrapper> fulfillmentGroups)
      Parameters:
      fulfillmentGroups - the fulfillmentGroups to set
    • getPayments

      public List<OrderPaymentWrapper> getPayments()
      Returns:
      the payments
    • setPayments

      public void setPayments(List<OrderPaymentWrapper> payments)
      Parameters:
      payments - the payments to set
    • getOrderAdjustments

      public List<AdjustmentWrapper> getOrderAdjustments()
      Returns:
      the orderAdjustments
    • setOrderAdjustments

      public void setOrderAdjustments(List<AdjustmentWrapper> orderAdjustments)
      Parameters:
      orderAdjustments - the orderAdjustments to set
    • getOrderAttributes

      public List<OrderAttributeWrapper> getOrderAttributes()
      Returns:
      the orderAttributes
    • setOrderAttributes

      public void setOrderAttributes(List<OrderAttributeWrapper> orderAttributes)
      Parameters:
      orderAttributes - the orderAttributes to set
    • getCartMessages

      public List<CartMessageWrapper> getCartMessages()
      Returns:
      the cartMessages
    • setCartMessages

      public void setCartMessages(List<CartMessageWrapper> cartMessages)
      Parameters:
      cartMessages - the cartMessages to set