Partilhar via


CurrencyValue Class

  • java.lang.Object
    • com.azure.ai.documentintelligence.models.CurrencyValue

Implements

public final class CurrencyValue
implements JsonSerializable<CurrencyValue>

Currency field value.

Method Summary

Modifier and Type Method and Description
static CurrencyValue fromJson(JsonReader jsonReader)

Reads an instance of CurrencyValue from the JsonReader.

double getAmount()

Get the amount property: Currency amount.

String getCurrencyCode()

Get the currencyCode property: Resolved currency code (ISO 4217), if any.

String getCurrencySymbol()

Get the currencySymbol property: Currency symbol label, if any.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static CurrencyValue fromJson(JsonReader jsonReader)

Reads an instance of CurrencyValue from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CurrencyValue if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getAmount

public double getAmount()

Get the amount property: Currency amount.

Returns:

the amount value.

getCurrencyCode

public String getCurrencyCode()

Get the currencyCode property: Resolved currency code (ISO 4217), if any.

Returns:

the currencyCode value.

getCurrencySymbol

public String getCurrencySymbol()

Get the currencySymbol property: Currency symbol label, if any.

Returns:

the currencySymbol value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to