FailedPayment Class

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

Implements

public final class FailedPayment
implements JsonSerializable<FailedPayment>

A failed payment.

Constructor Summary

Constructor Description
FailedPayment()

Creates an instance of FailedPayment class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime date()

Get the date property: The date when the payment was attempted.

FailedPaymentReason failedPaymentReason()

Get the failedPaymentReason property: The reason that the payment failed.

static FailedPayment fromJson(JsonReader jsonReader)

Reads an instance of FailedPayment from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

FailedPayment

public FailedPayment()

Creates an instance of FailedPayment class.

Method Details

date

public OffsetDateTime date()

Get the date property: The date when the payment was attempted.

Returns:

the date value.

failedPaymentReason

public FailedPaymentReason failedPaymentReason()

Get the failedPaymentReason property: The reason that the payment failed.

Returns:

the failedPaymentReason value.

fromJson

public static FailedPayment fromJson(JsonReader jsonReader)

Reads an instance of FailedPayment from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to