Reference for RimuHosting's Data Structures (as used in our REST-ful APIs)

Name: Amount

Represents an amount in both a native currency and in USD.

XML Example:
<Amount>
  <amt>java.math.BigDecimal</amt>
  <amt_usd>java.math.BigDecimal</amt_usd>
  <currency>CUR_USD | CUR_NZD | CUR_AUD | CUR_CAD | CUR_GBP | CUR_EUR</currency>
</Amount>
JSON Example:
{"Amount":
 {
   "amt": java.math.BigDecimal,
   "amt_usd": java.math.BigDecimal,
   "currency": 'CUR_USD' | 'CUR_NZD' | 'CUR_AUD' | 'CUR_CAD' | 'CUR_GBP' | 'CUR_EUR',
 }
}

Elements
NameTypeRequiredNillableDefault ValueDescription
amtjava.math.BigDecimalfalsefalseAmount in the 'native' currency.
amt_usdjava.math.BigDecimalfalsefalseAn estimate of the amount as USD.
currencyCUR_USD | CUR_NZD | CUR_AUD | CUR_CAD | CUR_GBP | CUR_EURfalsefalseThe amount currency.