Class PaymentDetail
java.lang.Object
com.azure.resourcemanager.reservations.models.PaymentDetail
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PaymentDetail>
public final class PaymentDetail
extends Object
implements com.azure.json.JsonSerializable<PaymentDetail>
Information about payment related to a reservation order.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the billingAccount property: Shows the Account that is charged for this payment.Get the billingCurrencyTotal property: Amount charged in Billing currency.dueDate()
Get the dueDate property: Date when the payment needs to be done.Get the extendedStatusInfo property: The extendedStatusInfo property.static PaymentDetail
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of PaymentDetail from the JsonReader.Get the paymentDate property: Date when the transaction is completed.Get the pricingCurrencyTotal property: Amount in pricing currency.status()
Get the status property: Describes whether the payment is completed, failed, cancelled or scheduled in the future.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withBillingAccount
(String billingAccount) Set the billingAccount property: Shows the Account that is charged for this payment.withBillingCurrencyTotal
(Price billingCurrencyTotal) Set the billingCurrencyTotal property: Amount charged in Billing currency.withDueDate
(LocalDate dueDate) Set the dueDate property: Date when the payment needs to be done.withExtendedStatusInfo
(ExtendedStatusInfo extendedStatusInfo) Set the extendedStatusInfo property: The extendedStatusInfo property.withPaymentDate
(LocalDate paymentDate) Set the paymentDate property: Date when the transaction is completed.withPricingCurrencyTotal
(Price pricingCurrencyTotal) Set the pricingCurrencyTotal property: Amount in pricing currency.withStatus
(PaymentStatus status) Set the status property: Describes whether the payment is completed, failed, cancelled or scheduled in the future.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PaymentDetail
public PaymentDetail()Creates an instance of PaymentDetail class.
-
-
Method Details
-
dueDate
Get the dueDate property: Date when the payment needs to be done.- Returns:
- the dueDate value.
-
withDueDate
Set the dueDate property: Date when the payment needs to be done.- Parameters:
dueDate
- the dueDate value to set.- Returns:
- the PaymentDetail object itself.
-
paymentDate
Get the paymentDate property: Date when the transaction is completed. Is null when it is scheduled.- Returns:
- the paymentDate value.
-
withPaymentDate
Set the paymentDate property: Date when the transaction is completed. Is null when it is scheduled.- Parameters:
paymentDate
- the paymentDate value to set.- Returns:
- the PaymentDetail object itself.
-
pricingCurrencyTotal
Get the pricingCurrencyTotal property: Amount in pricing currency. Tax not included.- Returns:
- the pricingCurrencyTotal value.
-
withPricingCurrencyTotal
Set the pricingCurrencyTotal property: Amount in pricing currency. Tax not included.- Parameters:
pricingCurrencyTotal
- the pricingCurrencyTotal value to set.- Returns:
- the PaymentDetail object itself.
-
billingCurrencyTotal
Get the billingCurrencyTotal property: Amount charged in Billing currency. Tax not included. Is null for future payments.- Returns:
- the billingCurrencyTotal value.
-
withBillingCurrencyTotal
Set the billingCurrencyTotal property: Amount charged in Billing currency. Tax not included. Is null for future payments.- Parameters:
billingCurrencyTotal
- the billingCurrencyTotal value to set.- Returns:
- the PaymentDetail object itself.
-
billingAccount
Get the billingAccount property: Shows the Account that is charged for this payment.- Returns:
- the billingAccount value.
-
withBillingAccount
Set the billingAccount property: Shows the Account that is charged for this payment.- Parameters:
billingAccount
- the billingAccount value to set.- Returns:
- the PaymentDetail object itself.
-
status
Get the status property: Describes whether the payment is completed, failed, cancelled or scheduled in the future.- Returns:
- the status value.
-
withStatus
Set the status property: Describes whether the payment is completed, failed, cancelled or scheduled in the future.- Parameters:
status
- the status value to set.- Returns:
- the PaymentDetail object itself.
-
extendedStatusInfo
Get the extendedStatusInfo property: The extendedStatusInfo property.- Returns:
- the extendedStatusInfo value.
-
withExtendedStatusInfo
Set the extendedStatusInfo property: The extendedStatusInfo property.- Parameters:
extendedStatusInfo
- the extendedStatusInfo value to set.- Returns:
- the PaymentDetail object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<PaymentDetail>
- Throws:
IOException
-
fromJson
Reads an instance of PaymentDetail from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of PaymentDetail 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 PaymentDetail.
-