PaymentOnAccount Class

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

Implements

public final class PaymentOnAccount
implements JsonSerializable<PaymentOnAccount>

A Payment on Account.

Constructor Summary

Constructor Description
PaymentOnAccount()

Creates an instance of PaymentOnAccount class.

Method Summary

Modifier and Type Method and Description
PaymentOnAccountAmount amount()

Get the amount property: Payment on Account amount.

String billingProfileDisplayName()

Get the billingProfileDisplayName property: The name of the billing profile for the payments on account.

String billingProfileId()

Get the billingProfileId property: The ID of the billing profile for the payments on account.

OffsetDateTime date()

Get the date property: The date of the payments on account.

static PaymentOnAccount fromJson(JsonReader jsonReader)

Reads an instance of PaymentOnAccount from the JsonReader.

String invoiceId()

Get the invoiceId property: The ID of the invoice for which the payments on account was generated.

String invoiceName()

Get the invoiceName property: The name of the invoice for the payments on account.

PaymentMethodFamily paymentMethodType()

Get the paymentMethodType property: Payment on Account type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PaymentOnAccount withAmount(PaymentOnAccountAmount amount)

Set the amount property: Payment on Account amount.

Methods inherited from java.lang.Object

Constructor Details

PaymentOnAccount

public PaymentOnAccount()

Creates an instance of PaymentOnAccount class.

Method Details

amount

public PaymentOnAccountAmount amount()

Get the amount property: Payment on Account amount.

Returns:

the amount value.

billingProfileDisplayName

public String billingProfileDisplayName()

Get the billingProfileDisplayName property: The name of the billing profile for the payments on account.

Returns:

the billingProfileDisplayName value.

billingProfileId

public String billingProfileId()

Get the billingProfileId property: The ID of the billing profile for the payments on account.

Returns:

the billingProfileId value.

date

public OffsetDateTime date()

Get the date property: The date of the payments on account.

Returns:

the date value.

fromJson

public static PaymentOnAccount fromJson(JsonReader jsonReader)

Reads an instance of PaymentOnAccount from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

invoiceId

public String invoiceId()

Get the invoiceId property: The ID of the invoice for which the payments on account was generated.

Returns:

the invoiceId value.

invoiceName

public String invoiceName()

Get the invoiceName property: The name of the invoice for the payments on account.

Returns:

the invoiceName value.

paymentMethodType

public PaymentMethodFamily paymentMethodType()

Get the paymentMethodType property: Payment on Account type.

Returns:

the paymentMethodType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAmount

public PaymentOnAccount withAmount(PaymentOnAccountAmount amount)

Set the amount property: Payment on Account amount.

Parameters:

amount - the amount value to set.

Returns:

the PaymentOnAccount object itself.

Applies to