MonetaryCredit Class

public final class MonetaryCredit
extends OfferTermInfo

Indicates that this is a monetary credit offer.

Method Summary

Modifier and Type Method and Description
BigDecimal credit()

Get the credit property: The amount of credit provided under the terms of the given offer level.

List<String> excludedMeterIds()

Get the excludedMeterIds property: An array of meter ids that are excluded from the given offer terms.

static MonetaryCredit fromJson(JsonReader jsonReader)

Reads an instance of MonetaryCredit from the JsonReader.

OfferTermInfoName name()

Get the name property: Name of the offer term.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from OfferTermInfo

Methods inherited from java.lang.Object

Method Details

credit

public BigDecimal credit()

Get the credit property: The amount of credit provided under the terms of the given offer level.

Returns:

the credit value.

excludedMeterIds

public List<String> excludedMeterIds()

Get the excludedMeterIds property: An array of meter ids that are excluded from the given offer terms.

Returns:

the excludedMeterIds value.

fromJson

public static MonetaryCredit fromJson(JsonReader jsonReader)

Reads an instance of MonetaryCredit from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MonetaryCredit 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 MonetaryCredit.

name

public OfferTermInfoName name()

Get the name property: Name of the offer term.

Overrides:

MonetaryCredit.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MonetaryCredit.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to