com.ibm.commerce.me.commands
Interface CreateShippingBillingAddressCmd

All Superinterfaces:
TaskCommand
All Known Implementing Classes:
CreateShippingBillingAddressCmdImpl

public interface CreateShippingBillingAddressCmd
extends TaskCommand

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
IBM Copyright field
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
Name of the current class
See Also:
Constant Field Values

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
Name of the default implementation of this command
See Also:
Constant Field Values
Method Detail

getAddressId

public java.lang.Long getAddressId()
Gets the address Id
Returns:
the address ID used to identify an address in the ADDRESS table

getErrorCode

public int getErrorCode()
Gets the error code
Returns:
a code indicating the execution status of the current task command

setAddressType

public void setAddressType(java.lang.String addressType)
Sets Address Type to either shipping or billing
Parameters:
addressType - Code indicate the type of address "S" represents a shipping address "B" represents a billing address

setBillToAddress

public void setBillToAddress(Address BillToAddress)
Updates billing address
Parameters:
BillToAddress - the new billing address

setMemberId

public void setMemberId(java.lang.Long memberId)
Sets member ID
Parameters:
memberId - the member id used to identify a member

setShipToAddress

public void setShipToAddress(Address shipToAddress)
Updates shipping address
Parameters:
shipToAddress - the new shipping address