ReservationPaymentDetail Class

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

Implements

public final class ReservationPaymentDetail
implements JsonSerializable<ReservationPaymentDetail>

Information about payment related to a reservation order.

Constructor Summary

Constructor Description
ReservationPaymentDetail()

Creates an instance of ReservationPaymentDetail class.

Method Summary

Modifier and Type Method and Description
String billingAccount()

Get the billingAccount property: Shows the Account that is charged for this payment.

Price billingCurrencyTotal()

Get the billingCurrencyTotal property: Amount charged in Billing currency.

LocalDate dueDate()

Get the dueDate property: Date when the payment needs to be done.

ReservationExtendedStatusInfo extendedStatusInfo()

Get the extendedStatusInfo property: Extended status information for the reservation.

static ReservationPaymentDetail fromJson(JsonReader jsonReader)

Reads an instance of ReservationPaymentDetail from the JsonReader.

LocalDate paymentDate()

Get the paymentDate property: Date when the transaction is completed.

Price pricingCurrencyTotal()

Get the pricingCurrencyTotal property: Amount in pricing currency.

PaymentStatus status()

Get the status property: Describes whether the payment is completed, failed, pending, cancelled or scheduled in the future.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ReservationPaymentDetail withBillingAccount(String billingAccount)

Set the billingAccount property: Shows the Account that is charged for this payment.

ReservationPaymentDetail withBillingCurrencyTotal(Price billingCurrencyTotal)

Set the billingCurrencyTotal property: Amount charged in Billing currency.

ReservationPaymentDetail withDueDate(LocalDate dueDate)

Set the dueDate property: Date when the payment needs to be done.

ReservationPaymentDetail withExtendedStatusInfo(ReservationExtendedStatusInfo extendedStatusInfo)

Set the extendedStatusInfo property: Extended status information for the reservation.

ReservationPaymentDetail withPaymentDate(LocalDate paymentDate)

Set the paymentDate property: Date when the transaction is completed.

ReservationPaymentDetail withPricingCurrencyTotal(Price pricingCurrencyTotal)

Set the pricingCurrencyTotal property: Amount in pricing currency.

ReservationPaymentDetail withStatus(PaymentStatus status)

Set the status property: Describes whether the payment is completed, failed, pending, cancelled or scheduled in the future.

Methods inherited from java.lang.Object

Constructor Details

ReservationPaymentDetail

public ReservationPaymentDetail()

Creates an instance of ReservationPaymentDetail class.

Method Details

billingAccount

public String billingAccount()

Get the billingAccount property: Shows the Account that is charged for this payment.

Returns:

the billingAccount value.

billingCurrencyTotal

public Price billingCurrencyTotal()

Get the billingCurrencyTotal property: Amount charged in Billing currency. Tax not included. Is null for future payments.

Returns:

the billingCurrencyTotal value.

dueDate

public LocalDate dueDate()

Get the dueDate property: Date when the payment needs to be done.

Returns:

the dueDate value.

extendedStatusInfo

public ReservationExtendedStatusInfo extendedStatusInfo()

Get the extendedStatusInfo property: Extended status information for the reservation.

Returns:

the extendedStatusInfo value.

fromJson

public static ReservationPaymentDetail fromJson(JsonReader jsonReader)

Reads an instance of ReservationPaymentDetail from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

paymentDate

public LocalDate paymentDate()

Get the paymentDate property: Date when the transaction is completed. Is null when it is scheduled.

Returns:

the paymentDate value.

pricingCurrencyTotal

public Price pricingCurrencyTotal()

Get the pricingCurrencyTotal property: Amount in pricing currency. Tax not included.

Returns:

the pricingCurrencyTotal value.

status

public PaymentStatus status()

Get the status property: Describes whether the payment is completed, failed, pending, cancelled or scheduled in the future.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBillingAccount

public ReservationPaymentDetail withBillingAccount(String billingAccount)

Set the billingAccount property: Shows the Account that is charged for this payment.

Parameters:

billingAccount - the billingAccount value to set.

Returns:

the ReservationPaymentDetail object itself.

withBillingCurrencyTotal

public ReservationPaymentDetail withBillingCurrencyTotal(Price billingCurrencyTotal)

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 ReservationPaymentDetail object itself.

withDueDate

public ReservationPaymentDetail withDueDate(LocalDate dueDate)

Set the dueDate property: Date when the payment needs to be done.

Parameters:

dueDate - the dueDate value to set.

Returns:

the ReservationPaymentDetail object itself.

withExtendedStatusInfo

public ReservationPaymentDetail withExtendedStatusInfo(ReservationExtendedStatusInfo extendedStatusInfo)

Set the extendedStatusInfo property: Extended status information for the reservation.

Parameters:

extendedStatusInfo - the extendedStatusInfo value to set.

Returns:

the ReservationPaymentDetail object itself.

withPaymentDate

public ReservationPaymentDetail withPaymentDate(LocalDate paymentDate)

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 ReservationPaymentDetail object itself.

withPricingCurrencyTotal

public ReservationPaymentDetail withPricingCurrencyTotal(Price pricingCurrencyTotal)

Set the pricingCurrencyTotal property: Amount in pricing currency. Tax not included.

Parameters:

pricingCurrencyTotal - the pricingCurrencyTotal value to set.

Returns:

the ReservationPaymentDetail object itself.

withStatus

public ReservationPaymentDetail withStatus(PaymentStatus status)

Set the status property: Describes whether the payment is completed, failed, pending, cancelled or scheduled in the future.

Parameters:

status - the status value to set.

Returns:

the ReservationPaymentDetail object itself.

Applies to