Payment Class

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

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
PaymentAmount amount()

Get the amount property: The paid amount.

OffsetDateTime date()

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

static Payment fromJson(JsonReader jsonReader)

Reads an instance of Payment from the JsonReader.

PaymentMethodFamily paymentMethodFamily()

Get the paymentMethodFamily property: The family of payment method.

String paymentMethodId()

Get the paymentMethodId property: The ID that uniquely identifies the payment method used for the invoice.

String paymentMethodType()

Get the paymentMethodType property: The type of payment method.

String paymentType()

Get the paymentType property: The type of payment.

JsonWriter 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:

the amount value.

date

public OffsetDateTime date()

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

Returns:

the date value.

fromJson

public static Payment fromJson(JsonReader jsonReader)

Reads an instance of Payment from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

paymentMethodFamily

public PaymentMethodFamily paymentMethodFamily()

Get the paymentMethodFamily property: The family of payment method.

Returns:

the paymentMethodFamily value.

paymentMethodId

public String paymentMethodId()

Get the paymentMethodId property: The ID that uniquely identifies the payment method used for the invoice.

Returns:

the paymentMethodId value.

paymentMethodType

public String paymentMethodType()

Get the paymentMethodType property: The type of payment method.

Returns:

the paymentMethodType value.

paymentType

public String paymentType()

Get the paymentType property: The type of payment.

Returns:

the paymentType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAmount

public Payment withAmount(PaymentAmount amount)

Set the amount property: The paid amount.

Parameters:

amount - the amount value to set.

Returns:

the Payment object itself.

Applies to