Skip to content

CurrencyAmount

shipping.v1.CurrencyAmount

A money amount, preserving integer precision in both encodings.

Field presence and validation are separate properties. Implicit scalar defaults are normally omitted in ProtoJSON.

ISO currency code, such as USD.

PropertyValue
Protobuf namecurrency
JSON namecurrency
Field number1
Protobuf typestring
JSON representationString
PresenceImplicit; default and absent are not distinguished

Minor units. ProtoJSON emits a decimal string.

PropertyValue
Protobuf nameminor_units
JSON nameminorUnits
Field number2
Protobuf typeint64
JSON representationDecimal string
PresenceImplicit; default and absent are not distinguished

Source: fixture-v1 · Generator: Wirelit 0.1.0