Class BetaMonetaryAmount
-
- All Implemented Interfaces:
public final class BetaMonetaryAmountA monetary amount in a specific currency.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaMonetaryAmount.BuilderA builder for BetaMonetaryAmount.
-
Method Summary
Modifier and Type Method Description final Stringamount()Amount in minor units of the currency, as an integer decimal string with no leading zeros: "2500" is $25.00 and "50" is fifty cents. final BetaCurrencycurrency()Uppercase ISO-4217 currency code. final JsonField<String>_amount()Returns the raw JSON value of amount. final JsonField<BetaCurrency>_currency()Returns the raw JSON value of currency. final Map<String, JsonValue>_additionalProperties()final BetaMonetaryAmount.BuildertoBuilder()final BetaMonetaryAmountvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaMonetaryAmount.Builderbuilder()Returns a mutable builder for constructing an instance of BetaMonetaryAmount. -
-
Method Detail
-
amount
final String amount()
Amount in minor units of the currency, as an integer decimal string with no leading zeros: "2500" is $25.00 and "50" is fifty cents. A string rather than a number so no float rounding is ever applied.
-
currency
final BetaCurrency currency()
Uppercase ISO-4217 currency code.
USDis the only currency currently supported; the accepted set is closed and grows only when a new currency is priced.
-
_amount
final JsonField<String> _amount()
Returns the raw JSON value of amount.
Unlike amount, this method doesn't throw if the JSON field has an unexpected type.
-
_currency
final JsonField<BetaCurrency> _currency()
Returns the raw JSON value of currency.
Unlike currency, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaMonetaryAmount.Builder toBuilder()
-
validate
final BetaMonetaryAmount validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaMonetaryAmount.Builder builder()
Returns a mutable builder for constructing an instance of BetaMonetaryAmount.
The following fields are required:
.amount() .currency()
-
-
-
-