RecurringCharge Class

public final class RecurringCharge
extends OfferTermInfo

Indicates a recurring charge is present for this offer.

Method Summary

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

Reads an instance of RecurringCharge from the JsonReader.

OfferTermInfoName name()

Get the name property: Name of the offer term.

Integer recurringCharge()

Get the recurringCharge property: The amount of recurring charge as per the offer term.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from OfferTermInfo

Methods inherited from java.lang.Object

Method Details

fromJson

public static RecurringCharge fromJson(JsonReader jsonReader)

Reads an instance of RecurringCharge from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public OfferTermInfoName name()

Get the name property: Name of the offer term.

Overrides:

RecurringCharge.name()

Returns:

the name value.

recurringCharge

public Integer recurringCharge()

Get the recurringCharge property: The amount of recurring charge as per the offer term.

Returns:

the recurringCharge value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RecurringCharge.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to