Appendix B - Common value object types
There are some common types of value objects that are repeatedly used within the actual business model objects.
Address
An Address represents a street address/postal address.
Field | Value type | Value range |
---|---|---|
street | String | up to 256 Unicode Characters |
streetNumber | String | up to 256 Unicode Characters |
postalCode | String | up to 256 Unicode Characters |
city | String | up to 256 Unicode Characters |
country | String | Country |
Money
A Money represents a monetary value (i.e., a currency and an amount), for example "120 EUR" or "2,500.75 USD".
Field | Value type | Value range |
---|---|---|
amount | String | Numeric value in the range of -9,000,000,000,000 to 9,000,000,000,000 using "." as decimal separator with up to 6 decimal digits. |
unit | String | Currency |
Quantity
A Quantity represents a quantity value (i.e., a unit and an amount), for example "3 pcs" or "2.5 kg".
Field | Value type | Value range |
---|---|---|
amount | String | Numeric value in the range of -9,000,000,000,000 to 9,000,000,000,000 using "." as decimal separator with up to 6 decimal digits. |
unit | String/Object | UnitOfMeasure (representation as string or object TBD) |