InvoicePropertiesAmountDue Class

public final class InvoicePropertiesAmountDue
extends Amount

The amount due as of now.

Constructor Summary

Constructor Description
InvoicePropertiesAmountDue()

Creates an instance of InvoicePropertiesAmountDue class.

Method Summary

Modifier and Type Method and Description
String currency()

Get the currency property: The currency for the amount value.

static InvoicePropertiesAmountDue fromJson(JsonReader jsonReader)

Reads an instance of InvoicePropertiesAmountDue from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Float value()

Get the value property: The amount value.

Methods inherited from Amount

Methods inherited from java.lang.Object

Constructor Details

InvoicePropertiesAmountDue

public InvoicePropertiesAmountDue()

Creates an instance of InvoicePropertiesAmountDue class.

Method Details

currency

public String currency()

Get the currency property: The currency for the amount value.

Overrides:

InvoicePropertiesAmountDue.currency()

Returns:

the currency value.

fromJson

public static InvoicePropertiesAmountDue fromJson(JsonReader jsonReader)

Reads an instance of InvoicePropertiesAmountDue from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the InvoicePropertiesAmountDue.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

InvoicePropertiesAmountDue.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

InvoicePropertiesAmountDue.validate()

value

public Float value()

Get the value property: The amount value. For example, if the currency is USD, then a value of 600 would be $600.00.

Overrides:

InvoicePropertiesAmountDue.value()

Returns:

the value value.

Applies to