OfferTermInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.commerce.models.OfferTermInfo

Implements

public class OfferTermInfo
implements JsonSerializable<OfferTermInfo>

Describes the offer term.

Constructor Summary

Modifier Constructor Description
protected OfferTermInfo()

Creates an instance of OfferTermInfo class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime effectiveDate()

Get the effectiveDate property: Indicates the date from which the offer term is effective.

static OfferTermInfo fromJson(JsonReader jsonReader)

Reads an instance of OfferTermInfo from the JsonReader.

OfferTermInfoName name()

Get the name property: Name of the offer term.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

OfferTermInfo

protected OfferTermInfo()

Creates an instance of OfferTermInfo class.

Method Details

effectiveDate

public OffsetDateTime effectiveDate()

Get the effectiveDate property: Indicates the date from which the offer term is effective.

Returns:

the effectiveDate value.

fromJson

public static OfferTermInfo fromJson(JsonReader jsonReader)

Reads an instance of OfferTermInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public OfferTermInfoName name()

Get the name property: Name of the offer term.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to