This command creates a shipping or billing address based on the memberId
provided. This is called by BatchOrderRequestCmd
during batch
processing of a new order.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM Copyright field |
static java.lang.String |
defaultCommandClassName Name of the default implementation of this command |
static java.lang.String |
NAME Name of the current class |
Method Summary | |
---|---|
java.lang.Long |
getAddressId() Gets the address Id |
int |
getErrorCode() Gets the error code |
void |
setAddressType(java.lang.String addressType) Sets Address Type to either shipping or billing |
void |
setBillToAddress(
Address BillToAddress) Updates billing address |
void |
setMemberId(java.lang.Long memberId) Sets member ID |
void |
setShipToAddress(
Address shipToAddress)
Updates shipping address |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
Method Detail |
---|
public java.lang.Long getAddressId()
public int getErrorCode()
public void setAddressType(java.lang.String addressType)
addressType
- Code indicate the type of address "S"
represents a shipping address "B" represents a billing
addresspublic void setBillToAddress(Address BillToAddress)
BillToAddress
- the new billing addresspublic void setMemberId(java.lang.Long memberId)
memberId
- the member id used to identify a
memberpublic void setShipToAddress(Address shipToAddress)
shipToAddress
- the new shipping address