How to get an order's discount amount programmatically?

See also: