PaymentDetail Class

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

Implements

public final class PaymentDetail
implements JsonSerializable<PaymentDetail>

Information about payment related to a savings plan order.

Constructor Summary

Constructor Description
PaymentDetail()

Creates an instance of PaymentDetail class.

Method Summary

Modifier and Type Method and Description
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.

ExtendedStatusInfo extendedStatusInfo()

Get the extendedStatusInfo property: Extended status information.

static PaymentDetail fromJson(JsonReader jsonReader)

Reads an instance of PaymentDetail 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.

PaymentDetail withBillingCurrencyTotal(Price billingCurrencyTotal)

Set the billingCurrencyTotal property: Amount charged in Billing currency.

PaymentDetail withDueDate(LocalDate dueDate)

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

PaymentDetail withPaymentDate(LocalDate paymentDate)

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

PaymentDetail withPricingCurrencyTotal(Price pricingCurrencyTotal)

Set the pricingCurrencyTotal property: Amount in pricing currency.

PaymentDetail 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

PaymentDetail

public PaymentDetail()

Creates an instance of PaymentDetail class.

Method Details

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 ExtendedStatusInfo extendedStatusInfo()

Get the extendedStatusInfo property: Extended status information.

Returns:

the extendedStatusInfo value.

fromJson

public static PaymentDetail fromJson(JsonReader jsonReader)

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.

paymentDate

public LocalDate paymentDate()

Get the paymentDate property: Date when the transaction is completed. 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.

withBillingCurrencyTotal

public PaymentDetail 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 PaymentDetail object itself.

withDueDate

public PaymentDetail withDueDate(LocalDate dueDate)

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

Parameters:

dueDate - the dueDate value to set.

Returns:

the PaymentDetail object itself.

withPaymentDate

public PaymentDetail withPaymentDate(LocalDate paymentDate)

Set the paymentDate property: Date when the transaction is completed. Null when it is scheduled.

Parameters:

paymentDate - the paymentDate value to set.

Returns:

the PaymentDetail object itself.

withPricingCurrencyTotal

public PaymentDetail withPricingCurrencyTotal(Price pricingCurrencyTotal)

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

Parameters:

pricingCurrencyTotal - the pricingCurrencyTotal value to set.

Returns:

the PaymentDetail object itself.

withStatus

public PaymentDetail 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 PaymentDetail object itself.

Applies to