com.ibm.commerce.order.beans
Class UsableBillingAddressListDataBean
- java.lang.Object
-
- com.ibm.commerce.beans.InputDataBeanImpl
-
- com.ibm.commerce.beans.SmartDataBeanImpl
-
- com.ibm.commerce.order.beans.UsableBillingAddressListDataBean
-
- All Implemented Interfaces:
- DataBean, InputDataBean, SmartDataBean, UsableBillingAddressListInputDataBean, UsableBillingAddressListSmartDataBean, Delegator, java.io.Serializable
public class UsableBillingAddressListDataBean extends SmartDataBeanImpl implements UsableBillingAddressListInputDataBean, UsableBillingAddressListSmartDataBean, Delegator
This DataBean populate an array of usable billing addresses for an order.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
-
-
Constructor Summary
Constructors Constructor and Description UsableBillingAddressListDataBean()
The default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AddressDataBean[]
getBillingAddresses()
This method returns an array of usable billing addresses in the checkout flow.Protectable
getDelegate()
This method returns the delegated OrderDataBean.OrderDataBean
getOrderDataBean()
This method returns the OrderDataBean to use a billing address.boolean
isPersonalAddressAllowForBilling()
This method returns if the personal address could be used as a billing address.void
populate()
This method is used to populate the UsableBillingAddressListDataBean.void
setOrderId(java.lang.String aOrderId)
This method sets the orderId property of the Bean.void
setPaymentTCId(java.lang.String aPaymentTCId)
This method sets the paymentTCId property of the Bean.-
Methods inherited from class com.ibm.commerce.beans.SmartDataBeanImpl
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setCommandContext, setHttpRequest, setHttpResponse, setViewCommandContext
-
Methods inherited from class com.ibm.commerce.beans.InputDataBeanImpl
getRequestProperties, setRequestProperties
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.beans.SmartDataBean
getCommandContext, setCommandContext
-
Methods inherited from interface com.ibm.commerce.beans.InputDataBean
getRequestProperties, setRequestProperties
-
-
-
-
Constructor Detail
-
UsableBillingAddressListDataBean
public UsableBillingAddressListDataBean()
The default constructor.
-
-
Method Detail
-
getDelegate
public Protectable getDelegate() throws java.lang.Exception
This method returns the delegated OrderDataBean.- Specified by:
getDelegate
in interfaceDelegator
- Returns:
- the OrderDataBean
- Throws:
java.lang.Exception
- thrown when there is an error to populate the OrderDataBean
-
getOrderDataBean
public OrderDataBean getOrderDataBean() throws ECException
This method returns the OrderDataBean to use a billing address.- Returns:
- the OrderDataBean to use a billing address.
- Throws:
ECException
- thrown when there is an error to populate the OrderDataBean
-
populate
public void populate() throws java.lang.Exception
This method is used to populate the UsableBillingAddressListDataBean.- Specified by:
populate
in interfaceSmartDataBean
- Overrides:
populate
in classSmartDataBeanImpl
- Throws:
java.lang.Exception
- When there is an exception, it will be thrown.
-
getBillingAddresses
public AddressDataBean[] getBillingAddresses()
This method returns an array of usable billing addresses in the checkout flow.- Specified by:
getBillingAddresses
in interfaceUsableBillingAddressListSmartDataBean
- Returns:
- an array of billing addresses.
-
isPersonalAddressAllowForBilling
public boolean isPersonalAddressAllowForBilling()
This method returns if the personal address could be used as a billing address.- Specified by:
isPersonalAddressAllowForBilling
in interfaceUsableBillingAddressListSmartDataBean
- Returns:
- true personal address is allowed false personal address is not allowed.
-
setOrderId
public void setOrderId(java.lang.String aOrderId)
This method sets the orderId property of the Bean. The orderId is the identifier of the customer order.- Specified by:
setOrderId
in interfaceUsableBillingAddressListInputDataBean
- Parameters:
aOrderId
- the identifier of the customer order.
-
setPaymentTCId
public void setPaymentTCId(java.lang.String aPaymentTCId)
This method sets the paymentTCId property of the Bean. The paymentTCId is the identifier of the Payment terms and conditions.- Specified by:
setPaymentTCId
in interfaceUsableBillingAddressListInputDataBean
- Parameters:
aPaymentTCId
- the identifier of the Payment terms and conditions.
-
-