PaymentTerm Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. PaymentTerm
- com.
Implements
public class PaymentTerm
implements JsonSerializable<PaymentTerm>
The properties of payment term.
Constructor Summary
| Constructor | Description |
|---|---|
| PaymentTerm() |
Creates an instance of Payment |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Offset |
endDate()
Get the end |
|
static
Payment |
fromJson(JsonReader jsonReader)
Reads an instance of Payment |
| Boolean |
isDefault()
Get the is |
|
Offset |
startDate()
Get the start |
| String |
term()
Get the term property: Represents duration in netXX format. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Payment |
withEndDate(OffsetDateTime endDate)
Set the end |
|
Payment |
withStartDate(OffsetDateTime startDate)
Set the start |
|
Payment |
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:
fromJson
public static PaymentTerm fromJson(JsonReader jsonReader)
Reads an instance of PaymentTerm from the JsonReader.
Parameters:
Returns:
Throws:
isDefault
public Boolean isDefault()
Get the isDefault property: Indicates payment term is the standard payment term.
Returns:
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:
term
public String term()
Get the term property: Represents duration in netXX format. Always in days.
Returns:
toJson
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:
Returns:
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:
Returns:
withTerm
public PaymentTerm withTerm(String term)
Set the term property: Represents duration in netXX format. Always in days.
Parameters:
Returns: