PaymentTerm Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.PaymentTerm

Implements

public class PaymentTerm
implements JsonSerializable<PaymentTerm>

The properties of payment term.

Constructor Summary

Constructor Description
PaymentTerm()

Creates an instance of PaymentTerm class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endDate()

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

static PaymentTerm fromJson(JsonReader jsonReader)

Reads an instance of PaymentTerm from the JsonReader.

Boolean isDefault()

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

OffsetDateTime startDate()

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

String term()

Get the term property: Represents duration in netXX format.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PaymentTerm withEndDate(OffsetDateTime endDate)

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

PaymentTerm withStartDate(OffsetDateTime startDate)

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

PaymentTerm withTerm(String term)

Set the term property: Represents duration in netXX format.

Methods inherited from java.lang.Object

Constructor Details

PaymentTerm

public PaymentTerm()

Creates an instance of PaymentTerm class.

Method Details

endDate

public OffsetDateTime endDate()

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

Returns:

the endDate value.

fromJson

public static PaymentTerm fromJson(JsonReader jsonReader)

Reads an instance of PaymentTerm from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isDefault

public Boolean isDefault()

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

Returns:

the isDefault value.

startDate

public OffsetDateTime startDate()

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

Returns:

the startDate value.

term

public String term()

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

Returns:

the term value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEndDate

public PaymentTerm withEndDate(OffsetDateTime endDate)

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

Parameters:

endDate - the endDate value to set.

Returns:

the PaymentTerm object itself.

withStartDate

public PaymentTerm withStartDate(OffsetDateTime startDate)

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

Parameters:

startDate - the startDate value to set.

Returns:

the PaymentTerm object itself.

withTerm

public PaymentTerm withTerm(String term)

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

Parameters:

term - the term value to set.

Returns:

the PaymentTerm object itself.

Applies to