com.ibm.commerce.me.commands

Interface CreateShippingBillingAddressCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, 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 Detail

      • defaultCommandClassName

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

      • getAddressId

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

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

        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

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

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

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