Reference > Shop flow URLs > Order Management subsystem URLs > Order task commands
ValidateOrderAddressCmd task command
The ValidateOrderAddressCmd task command validates the shipping or billing address for the order or order items using given criteria.
Task command
Implementation class
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