Deprecated feature

ValidateOrderAddressCmd task command

The ValidateOrderAddressCmd task command validates the shipping or billing address for the order or order items using given criteria.

Task command

com.ibm.commerce.order.commands.ValidateOrderAddressCmd

Implementation class

com.ibm.commerce.order.commands.ValidateOrderAddressCmdImpl

Commands called

None

Possible callers

OrderCopyCmdImpl

ProcessOrderCmdImpl

UpdateShippingAddressCmdImpl

OrderItemUpdateCmdImpl

Behavior

If the address passed in is a shipping address:
  • If a contractId is specified:
    • Find all ship-to Terms and Conditions (TCs) for this contract, verify the specified address is included in the ship-to TCs
  • Check if the address is allowed by contract
  • Check whether the address is owned by a member
Else, if the address passed in is a billing address:
  • Check if the address is allowed by contract
  • Check whether the address is owned by a member
  • If checkPermanent flag is specified:
    • Check if the status of the address is permanent (P)

Else if, getAddressType() is null, try to check shipping address first. If an error occurs, check billing address