org.broadleafcommerce.core.web.api.wrapper
Class OrderWrapper

java.lang.Object
  extended by org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
      extended by org.broadleafcommerce.core.web.api.wrapper.OrderWrapper
All Implemented Interfaces:
APIWrapper<Order>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class OrderWrapper
extends BaseWrapper
implements APIWrapper<Order>

This is a JAXB wrapper around Order.

User: Elbert Bautista Date: 4/10/12


Field Summary
protected  CustomerWrapper customer
           
protected  List<FulfillmentGroupWrapper> fulfillmentGroups
           
protected  Long id
           
protected  List<AdjustmentWrapper> orderAdjustments
           
protected  List<OrderAttributeWrapper> orderAttributes
           
protected  List<OrderItemWrapper> orderItems
           
protected  List<PaymentInfoWrapper> paymentInfos
           
protected  String status
           
protected  Money subTotal
           
protected  Money total
           
protected  Money totalShipping
           
protected  Money totalTax
           
 
Fields inherited from class org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
context
 
Constructor Summary
OrderWrapper()
           
 
Method Summary
 void wrapDetails(Order model, javax.servlet.http.HttpServletRequest request)
           
 void wrapSummary(Order model, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

status

protected String status

totalTax

protected Money totalTax

totalShipping

protected Money totalShipping

subTotal

protected Money subTotal

total

protected Money total

customer

protected CustomerWrapper customer

orderItems

protected List<OrderItemWrapper> orderItems

fulfillmentGroups

protected List<FulfillmentGroupWrapper> fulfillmentGroups

paymentInfos

protected List<PaymentInfoWrapper> paymentInfos

orderAdjustments

protected List<AdjustmentWrapper> orderAdjustments

orderAttributes

protected List<OrderAttributeWrapper> orderAttributes
Constructor Detail

OrderWrapper

public OrderWrapper()
Method Detail

wrapDetails

public void wrapDetails(Order model,
                        javax.servlet.http.HttpServletRequest request)
Specified by:
wrapDetails in interface APIWrapper<Order>

wrapSummary

public void wrapSummary(Order model,
                        javax.servlet.http.HttpServletRequest request)
Specified by:
wrapSummary in interface APIWrapper<Order>


Copyright © 2013. All Rights Reserved.