|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.component.shop.checkout.Order.OrderBuilder
public static class Order.OrderBuilder
The OrderBuilder.
| Constructor Summary | |
|---|---|
protected |
Order.OrderBuilder()
Deprecated. |
|
Order.OrderBuilder(ShoppingCart cart, ShopSettings settings, User user)
Creates a new OrderBuilder from the given
ShoppingCart, ShopSettings and User. |
| Method Summary | |
|---|---|
Order |
build()
Builds a new Order. |
Address |
getBillingAddress()
Returns the billing address. |
Customer |
getCustomer()
Returns the Customer. |
Address |
getDeliveryAddress()
Returns the delivery address. |
DispatchData |
getDispatchData()
Returns the DispatchData. |
static Order.OrderBuilder |
getFromSession(Bundle bundle,
java.util.Locale locale, ServiceSession session)
Returns the OrderBuilder attribute for the given
Bundle and Locale from the given
ServiceSession. |
OrderContents |
getOrderContents()
Returns the OrderContents. |
OrderDetails |
getOrderDetails()
Returns the OrderDetails. |
OrderMetaData |
getOrderMetaData()
Returns the OrderMetaData. |
PaymentData |
getPaymentData()
Returns the PaymentData. |
TotalPrice |
getTotalPrice()
Returns the TotalPrice. |
static void |
putIntoSession(Order.OrderBuilder builder, ServiceSession session)
Sets the given OrderBuilder as an attribute of the given
ServiceSession. |
static void |
removeFromSession(Bundle bundle,
java.util.Locale locale, ServiceSession session)
Removes the Order attribute for the given Bundle and
Locale from the given ServiceSession. |
Order.OrderBuilder |
setBillingAddress(Address ba)
Sets the billing address. |
Order.OrderBuilder |
setCustomer(Customer c)
Sets the Customer. |
Order.OrderBuilder |
setDeliveryAddress(Address da)
Sets the delivery address. |
Order.OrderBuilder |
setDispatchData(DispatchData dd)
Sets the DispatchData. |
Order.OrderBuilder |
setOrderDetails(OrderDetails od)
Sets the OrderDetails. |
Order.OrderBuilder |
setPaymentData(PaymentData pd)
Sets the PaymentData. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated protected Order.OrderBuilder()
public Order.OrderBuilder(ShoppingCart cart, ShopSettings settings, User user)
OrderBuilder from the given
ShoppingCart, ShopSettings and User.
cart - the ShoppingCart.settings - the ShopSettings.user - the User.
java.lang.IllegalArgumentException - if the given ShoppingCart, ShopSettings
or User is null.| Method Detail |
|---|
public final Customer getCustomer()
Customer.
Customer.public final Order.OrderBuilder setCustomer(Customer c)
Customer.
c - the Customer to set.
this.public final Address getDeliveryAddress()
public final Order.OrderBuilder setDeliveryAddress(Address da)
da - the delivery address to set.
this.public final Address getBillingAddress()
public final Order.OrderBuilder setBillingAddress(Address ba)
ba - the billing address to set.
this.public final DispatchData getDispatchData()
DispatchData.
DispatchData.public final Order.OrderBuilder setDispatchData(DispatchData dd)
DispatchData.
dd - the DispatchData to set.
this.public final PaymentData getPaymentData()
PaymentData.
PaymentData.public final Order.OrderBuilder setPaymentData(PaymentData pd)
PaymentData.
pd - the PaymentData to set.
this.public final OrderDetails getOrderDetails()
OrderDetails.
OrderDetails.public final Order.OrderBuilder setOrderDetails(OrderDetails od)
OrderDetails.
od - the OrderDetails to set.
this.public final OrderContents getOrderContents()
OrderContents.
OrderContents.public final TotalPrice getTotalPrice()
TotalPrice.
TotalPrice.public final OrderMetaData getOrderMetaData()
OrderMetaData.
OrderMetaData.public final Order build()
Order.
Order.public static final void putIntoSession(Order.OrderBuilder builder, ServiceSession session)
OrderBuilder as an attribute of the given
ServiceSession.
builder - the OrderBuilder.session - the ServiceSession.
public static final Order.OrderBuilder getFromSession(Bundle bundle,
java.util.Locale locale, ServiceSession session)
OrderBuilder attribute for the given
Bundle and Locale from the given
ServiceSession.
bundle - the Bundle.locale - the Locale.session - the ServiceSession.
OrderBuilder.
public static final void removeFromSession(Bundle bundle,
java.util.Locale locale, ServiceSession session)
Order attribute for the given Bundle and
Locale from the given ServiceSession.
bundle - the Bundle.locale - the Locale.session - the ServiceSession.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||