Payment Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. Payment
- com.
Implements
public final class Payment
implements JsonSerializable<Payment>
An invoice payment.
Constructor Summary
| Constructor | Description |
|---|---|
| Payment() |
Creates an instance of Payment class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Payment |
amount()
Get the amount property: The paid amount. |
|
Offset |
date()
Get the date property: The date when the payment was made. |
| static Payment |
fromJson(JsonReader jsonReader)
Reads an instance of Payment from the Json |
|
Payment |
paymentMethodFamily()
Get the payment |
| String |
paymentMethodId()
Get the payment |
| String |
paymentMethodType()
Get the payment |
| String |
paymentType()
Get the payment |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| Payment |
withAmount(PaymentAmount amount)
Set the amount property: The paid amount. |
Methods inherited from java.lang.Object
Constructor Details
Payment
public Payment()
Creates an instance of Payment class.
Method Details
amount
public PaymentAmount amount()
Get the amount property: The paid amount.
Returns:
date
public OffsetDateTime date()
Get the date property: The date when the payment was made.
Returns:
fromJson
public static Payment fromJson(JsonReader jsonReader)
Reads an instance of Payment from the JsonReader.
Parameters:
Returns:
Throws:
paymentMethodFamily
public PaymentMethodFamily paymentMethodFamily()
Get the paymentMethodFamily property: The family of payment method.
Returns:
paymentMethodId
public String paymentMethodId()
Get the paymentMethodId property: The ID that uniquely identifies the payment method used for the invoice.
Returns:
paymentMethodType
public String paymentMethodType()
Get the paymentMethodType property: The type of payment method.
Returns:
paymentType
public String paymentType()
Get the paymentType property: The type of payment.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAmount
public Payment withAmount(PaymentAmount amount)
Set the amount property: The paid amount.
Parameters:
Returns: