com.ibm.commerce.tools.optools.order.commands

Interface CSROrderItemAddressUpdateCmd

  • All Superinterfaces:
    AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ControllerCommand, ECCommand, Protectable, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, ToolsControllerCommand
    All Known Implementing Classes:
    CSROrderItemAddressUpdateCmdImpl


    public interface CSROrderItemAddressUpdateCmd
    extends ToolsControllerCommand
    Updates the shipping address ID for order items on behalf of the customer.

    Behavior

    • Creates an address for the customer by calling CSRCustomerAddressAddCmd if shipAddrId is not provided.
    • Sets the shipping address to order items by calling OrderItemAddCmd.

    Parameters

    XML
    An input xml_string that contains the all required data for setting the shipping address to order items. If shipAddrId is not provided in the XML, the address element must be provided.
     Example xml_string:
            <?xml version="1.0" encoding "UTF-8">
                    <order>
                            <customerId>20000</customerId>
                    </order>
                    <address>
                            <addrType>SB</addrType>
                            <nickName>Home</nickName>
                            <lastName>ABC</lastName>
                            <firstName>XYZ</firstName>
                            <address1>8200 Warden Ave.</address1>
                            <address2>A3 - 999</address2>
                            <city>Markham</city>
                            <region>Ontario</region>
                            <country>Canada</country>
                            <postalCode>L3N 3R6</postalCode>
                            <phoneNumber>905-413-1234</phoneNumber>
                            <email>abc@mail.com</email>
                    </address>
                    <orderItem>
                            <orderId>10001</orderId>
                            <orderItemId>10110</orderItemId>
                            <shipAddrId>20002</shipAddrId>
                    </orderItem>
            </xml> 
     
    URL
    The URL to be called when the command completes successfully.

    Exception Conditions

    Throws all exceptions that thrown by CSRCustomerAddressAddCmd and OrderItemAddCmd.

    Error View:

    • CSROrderItemAddressUpdateErrorView
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default implementation class name.
        See Also:
        Constant Field Values