Skip to content
pCon.configurator onlineDocumentation
Esc
↑↓navigate↵open⌘Jpreview
On this page

Money

Synopsis

struct Money : Value {
    string currency;
}

See also: Value

The Money structure represents either a valid monetary quantity, a null quantity, or an invalid quantity. In case of a valid quantity, the value attribute inherited from the Value type is present, and the currency attribute contains a valid ISO currency code. In case of a null quantity, the value attribute contains the value zero, and the currency attribute contains an empty string. Null quantities may be used if it is known that the quantity is zero but no information about a particular currency is available. An invalid quantity is represented by a missing value attribute and a currency attribute containing an empty string.

currency

This field contains the currency of the value inherited from the Value type (§Value). The currency attribute must be empty if the value attribute is missing. If the value attribute exists, the currency attribute must represent a valid ISO currency code (but no pseudo-currency1), unless the value is zero, in which case the currency attribute may be empty.

Footnotes

  1. Pseudo currencies are all currencies with a currency code starting with the letter 'X' except XAF, XCD, XOF and XPF. ↩