Universal Ledger V1 API - Class Google::Cloud::UniversalLedger::V1::CurrencyValue (v0.1.0)

Reference documentation and code samples for the Universal Ledger V1 API class Google::Cloud::UniversalLedger::V1::CurrencyValue.

Represents an amount of currency (i.e. money). Note that the denominated currency is not included in this message. The relevant currency is decided by the account that sends the transaction. Each account has a unique immutable currency associated to it.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#value

def value() -> ::Integer
Returns
  • (::Integer) — Required. The number of minor units of the currency.

    This smallest valid denomination is referred to as "minor units" and is specified in ISO 4217. As an example, for USD, the value will be the number of cents and for GBP it will be the number of pence. For the Japanese Yen which does not have a minor unit, it will be the number of Yen.

#value=

def value=(value) -> ::Integer
Parameter
  • value (::Integer) — Required. The number of minor units of the currency.

    This smallest valid denomination is referred to as "minor units" and is specified in ISO 4217. As an example, for USD, the value will be the number of cents and for GBP it will be the number of pence. For the Japanese Yen which does not have a minor unit, it will be the number of Yen.

Returns
  • (::Integer) — Required. The number of minor units of the currency.

    This smallest valid denomination is referred to as "minor units" and is specified in ISO 4217. As an example, for USD, the value will be the number of cents and for GBP it will be the number of pence. For the Japanese Yen which does not have a minor unit, it will be the number of Yen.