public class OrderSummaryDataBean extends SmartDataBeanImpl
This bean class is used for getting friendly displayable strings for an Order Summary Page.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
emptyString
Constructor and Description |
---|
OrderSummaryDataBean() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBillingAddressId()
This method returns the order's billing address id.
|
java.lang.String |
getCouponDisplayList()
This method returns a displayable string that contains all the coupons used for this order.
|
java.lang.String |
getEstimatedShipDate()
This method returns a NL friendly estimated ship date of the order.
|
java.lang.String |
getFormattedTotalProductPrice()
This method returns the formatted total product amount.
|
java.lang.String |
getFormattedTotalShippingCharges()
This method returns the formatted shipping charges amount.
|
java.lang.String |
getFormattedTotalShippingTax()
This method returns the formatted shipping taxes amount.
|
java.lang.String |
getFormattedTotalTax()
This method returns the formatted total tax amount.
|
java.lang.String |
getLastUpdate()
This method returns a NL friendly lastupdate date of the order.
|
java.lang.String |
getLogonID()
This method returns the order's customer's logon id.
|
java.lang.String |
getOrderCurrency()
This method returns the currency of the order.
|
java.lang.String |
getOrderGrandTotal()
This method returns the formatted order total.
|
java.lang.String |
getOrderId()
This method returns the order id.
|
OrderItemDataBean |
getOrderItem(int index)
This method returns the order item data bean at the specified index.
|
java.lang.String |
getOrderItemActualShipDate(int index)
This method returns the formatted actual ship date for the order item.
|
java.lang.String |
getOrderItemContractName(int index)
This method returns the contract name for the order item.
|
java.lang.String[] |
getOrderItemDistinctShippingAddressIds()
This method returns all the distinct shipping addresses.
|
java.lang.Integer[] |
getOrderItemIndex(java.lang.String shipAddressId)
This method returns the indexes of the order items that have the specified addressId.
|
java.lang.Integer[] |
getOrderItemIndexWithNoShipAddress()
This method returns the indexes of the order items that do not have addressId.
|
java.lang.String |
getOrderItemLevelDiscountForDisplay(int index)
This method returns the formatted order item level discount.
|
java.lang.String |
getOrderItemName(int index)
This method returns the product name of the order item.
|
java.lang.String |
getOrderItemPrice(int index)
This method returns the price the order item.
|
java.lang.String |
getOrderItemQuantity(int index)
This method returns the quantity of the order item.
|
OrderItemDataBean[] |
getOrderItems()
This method returns all the order items.
|
java.lang.String |
getOrderItemShippingAddressId(int index)
This method returns the addressId of the order item at that index.
|
java.lang.String |
getOrderItemShippingMethod(int index)
This method returns the shipping method description of the order item at that index.
|
java.lang.String |
getOrderItemSKU(int index)
This method returns the SKU of the order item at that index.
|
int |
getOrderItemsSize()
This method returns the total number of order items in the order.
|
java.lang.String |
getOrderItemSubTotal(int index)
This method returns the formmatted amount of the subtotal of the order item at that index.
|
java.lang.String |
getOrderLevelDiscountForDisplay()
This method returns the formatted order level discount.
|
java.lang.String |
getOrderLevelMinusAdjustment()
This method returns the formatted order level adjustment.
|
java.lang.String |
getOrderStatus()
This method returns the order status.
|
java.lang.String |
getOrganizationName()
This method returns the name of the organization that the customer of the order belongs to.
|
java.lang.String |
getPaymentMethodDescription()
This method returns the payment method description used to capture the order.
|
java.lang.String |
getPaymentOfflineMethod(java.lang.String anOrderId)
This method returns the offline payment method.
|
java.lang.String |
getPlaceOrderTime()
This method returns the order timeplaced.
|
java.lang.String |
getPurchaseOrderNumber()
This method returns the purchase order number.
|
boolean |
ifActualShipDateExist()
Check that if any of the order items in the order has an actual ship date.
|
void |
populate()
Populates the bean with relevant information of the order.
|
void |
setOrderId(java.lang.String newOrderId)
This method sets the order id.
|
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setCommandContext, setHttpRequest, setHttpResponse, setViewCommandContext
getRequestProperties, setRequestProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequestProperties, setRequestProperties
public static final java.lang.String COPYRIGHT
public java.lang.String getBillingAddressId()
This method returns the order's billing address id.
public java.lang.String getCouponDisplayList()
This method returns a displayable string that contains all the coupons used for this order.
public java.lang.String getEstimatedShipDate()
This method returns a NL friendly estimated ship date of the order.
public java.lang.String getLastUpdate()
This method returns a NL friendly lastupdate date of the order.
public java.lang.String getLogonID()
This method returns the order's customer's logon id.
public java.lang.String getOrderCurrency()
This method returns the currency of the order.
public java.lang.String getOrderGrandTotal()
This method returns the formatted order total.
public java.lang.String getOrderId()
This method returns the order id.
public OrderItemDataBean getOrderItem(int index)
This method returns the order item data bean at the specified index.
index
- The index of the order itempublic java.lang.String getOrderItemActualShipDate(int index)
This method returns the formatted actual ship date for the order item.
index
- The index of the order itempublic java.lang.String getOrderItemContractName(int index)
This method returns the contract name for the order item.
index
- The index of the order itempublic java.lang.String[] getOrderItemDistinctShippingAddressIds()
This method returns all the distinct shipping addresses.
public java.lang.Integer[] getOrderItemIndex(java.lang.String shipAddressId)
This method returns the indexes of the order items that have the specified addressId.
shipAddressId
- The address idpublic java.lang.Integer[] getOrderItemIndexWithNoShipAddress()
This method returns the indexes of the order items that do not have addressId.
public java.lang.String getOrderItemLevelDiscountForDisplay(int index)
This method returns the formatted order item level discount.
index
- The index of the order itempublic java.lang.String getOrderItemName(int index)
This method returns the product name of the order item.
index
- The index of the order itempublic java.lang.String getOrderItemPrice(int index)
This method returns the price the order item.
index
- The index of the order itempublic java.lang.String getOrderItemQuantity(int index)
This method returns the quantity of the order item.
index
- The index of the order itempublic OrderItemDataBean[] getOrderItems() throws java.lang.Exception
This method returns all the order items.
java.lang.Exception
public java.lang.String getOrderItemShippingAddressId(int index)
This method returns the addressId of the order item at that index.
index
- The index of the order itempublic java.lang.String getOrderItemShippingMethod(int index)
This method returns the shipping method description of the order item at that index.
index
- The index of the order itempublic java.lang.String getOrderItemSKU(int index)
This method returns the SKU of the order item at that index.
index
- The index of the order itempublic int getOrderItemsSize()
This method returns the total number of order items in the order.
public java.lang.String getOrderItemSubTotal(int index)
This method returns the formmatted amount of the subtotal of the order item at that index.
index
- The index of the order itempublic java.lang.String getOrderLevelDiscountForDisplay()
This method returns the formatted order level discount.
public java.lang.String getOrderLevelMinusAdjustment()
This method returns the formatted order level adjustment.
public java.lang.String getOrderStatus()
This method returns the order status.
public java.lang.String getOrganizationName()
This method returns the name of the organization that the customer of the order belongs to.
public java.lang.String getPaymentMethodDescription()
This method returns the payment method description used to capture the order.
public java.lang.String getPaymentOfflineMethod(java.lang.String anOrderId)
This method returns the offline payment method.
anOrderId
- An order idpublic java.lang.String getPlaceOrderTime()
This method returns the order timeplaced.
public java.lang.String getPurchaseOrderNumber()
This method returns the purchase order number.
public java.lang.String getFormattedTotalProductPrice()
This method returns the formatted total product amount.
public java.lang.String getFormattedTotalShippingCharges()
This method returns the formatted shipping charges amount.
public java.lang.String getFormattedTotalShippingTax()
This method returns the formatted shipping taxes amount.
public java.lang.String getFormattedTotalTax()
This method returns the formatted total tax amount.
public boolean ifActualShipDateExist()
Check that if any of the order items in the order has an actual ship date.
public void populate() throws java.lang.Exception
Populates the bean with relevant information of the order.
You must set the OrderId using the setOrderId method before running thepopulate()
method.populate
in interface SmartDataBean
populate
in class SmartDataBeanImpl
java.lang.Exception
setOrderId(String)
public void setOrderId(java.lang.String newOrderId)
This method sets the order id.
newOrderId
- The order id