struct

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(amount : String, currency : String)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

amount
Source
currency
Source