BillingProfilePropertiesCurrentPaymentTerm Class

public final class BillingProfilePropertiesCurrentPaymentTerm
extends PaymentTerm

The current payment term of the billing profile.

Constructor Summary

Constructor Description
BillingProfilePropertiesCurrentPaymentTerm()

Creates an instance of BillingProfilePropertiesCurrentPaymentTerm class.

Method Summary

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

Reads an instance of BillingProfilePropertiesCurrentPaymentTerm from the JsonReader.

Boolean isDefault()

Get the isDefault property: Indicates payment term is the standard payment term.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BillingProfilePropertiesCurrentPaymentTerm withEndDate(OffsetDateTime endDate)

Set the endDate property: The date on when the defined 'Payment Term' will end and is always in UTC.

BillingProfilePropertiesCurrentPaymentTerm withStartDate(OffsetDateTime startDate)

Set the startDate property: The date on when the defined 'Payment Term' will be effective from and is always in UTC.

BillingProfilePropertiesCurrentPaymentTerm withTerm(String term)

Set the term property: Represents duration in netXX format.

Methods inherited from PaymentTerm

Methods inherited from java.lang.Object

Constructor Details

BillingProfilePropertiesCurrentPaymentTerm

public BillingProfilePropertiesCurrentPaymentTerm()

Creates an instance of BillingProfilePropertiesCurrentPaymentTerm class.

Method Details

fromJson

public static BillingProfilePropertiesCurrentPaymentTerm fromJson(JsonReader jsonReader)

Reads an instance of BillingProfilePropertiesCurrentPaymentTerm from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isDefault

public Boolean isDefault()

Get the isDefault property: Indicates payment term is the standard payment term.

Overrides:

BillingProfilePropertiesCurrentPaymentTerm.isDefault()

Returns:

the isDefault value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

BillingProfilePropertiesCurrentPaymentTerm.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

BillingProfilePropertiesCurrentPaymentTerm.validate()

withEndDate

public BillingProfilePropertiesCurrentPaymentTerm withEndDate(OffsetDateTime endDate)

Set the endDate property: The date on when the defined 'Payment Term' will end and is always in UTC.

Overrides:

BillingProfilePropertiesCurrentPaymentTerm.withEndDate(OffsetDateTime endDate)

Parameters:

endDate

withStartDate

public BillingProfilePropertiesCurrentPaymentTerm withStartDate(OffsetDateTime startDate)

Set the startDate property: The date on when the defined 'Payment Term' will be effective from and is always in UTC.

Overrides:

BillingProfilePropertiesCurrentPaymentTerm.withStartDate(OffsetDateTime startDate)

Parameters:

startDate

withTerm

public BillingProfilePropertiesCurrentPaymentTerm withTerm(String term)

Set the term property: Represents duration in netXX format. Always in days.

Overrides:

BillingProfilePropertiesCurrentPaymentTerm.withTerm(String term)

Parameters:

term

Applies to