Anthropic::BetaMonetaryAmount
Inherits JSON::Serializable < Struct < Value < Object
A monetary amount in a specific currency.
amount is in minor units as an integer decimal string with no leading
zeros ("2500" is $25.00). A string rather than a number so no float
rounding is ever applied. currency is an uppercase ISO-4217 code
("USD" is currently the only supported currency).
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
amount
Sourcecurrency
Source