Table of Contents

Class Money

Namespace
GoogleMapsApi.Entities.Solar.Response
Assembly
GoogleMapsApi.dll

An amount of money with its currency type (mirrors google.type.Money).

public sealed class Money
Inheritance
Money
Inherited Members

Properties

CurrencyCode

The three-letter ISO 4217 currency code (e.g. "USD").

[JsonPropertyName("currencyCode")]
public string? CurrencyCode { get; set; }

Property Value

string

Nanos

Fractional part of the amount in nano (10^-9) units; sign matches Units.

[JsonPropertyName("nanos")]
public int Nanos { get; set; }

Property Value

int

Units

The whole units of the amount. The API encodes this int64 as a JSON string, so reading from a string is enabled here.

[JsonPropertyName("units")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
public long? Units { get; set; }

Property Value

long?