PaymentMethodProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.fluent.models.PaymentMethodProperties

Implements

public final class PaymentMethodProperties
implements JsonSerializable<PaymentMethodProperties>

The properties of a payment method.

Constructor Summary

Constructor Description
PaymentMethodProperties()

Creates an instance of PaymentMethodProperties class.

Method Summary

Modifier and Type Method and Description
String accountHolderName()

Get the accountHolderName property: The account holder name for the payment method.

String displayName()

Get the displayName property: The display name of the payment method.

String expiration()

Get the expiration property: The expiration month and year of the payment method.

PaymentMethodFamily family()

Get the family property: The family of payment method.

static PaymentMethodProperties fromJson(JsonReader jsonReader)

Reads an instance of PaymentMethodProperties from the JsonReader.

String id()

Get the id property: Id of payment method.

String lastFourDigits()

Get the lastFourDigits property: Last four digits of payment method.

List<PaymentMethodLogo> logos()

Get the logos property: The list of logos for the payment method.

String paymentMethodType()

Get the paymentMethodType property: The type of payment method.

PaymentMethodStatus status()

Get the status property: Status of the payment method.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PaymentMethodProperties withFamily(PaymentMethodFamily family)

Set the family property: The family of payment method.

PaymentMethodProperties withLogos(List<PaymentMethodLogo> logos)

Set the logos property: The list of logos for the payment method.

PaymentMethodProperties withStatus(PaymentMethodStatus status)

Set the status property: Status of the payment method.

Methods inherited from java.lang.Object

Constructor Details

PaymentMethodProperties

public PaymentMethodProperties()

Creates an instance of PaymentMethodProperties class.

Method Details

accountHolderName

public String accountHolderName()

Get the accountHolderName property: The account holder name for the payment method. This is only supported for payment methods with family CreditCard.

Returns:

the accountHolderName value.

displayName

public String displayName()

Get the displayName property: The display name of the payment method.

Returns:

the displayName value.

expiration

public String expiration()

Get the expiration property: The expiration month and year of the payment method. This is only supported for payment methods with family CreditCard.

Returns:

the expiration value.

family

public PaymentMethodFamily family()

Get the family property: The family of payment method.

Returns:

the family value.

fromJson

public static PaymentMethodProperties fromJson(JsonReader jsonReader)

Reads an instance of PaymentMethodProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Id of payment method.

Returns:

the id value.

lastFourDigits

public String lastFourDigits()

Get the lastFourDigits property: Last four digits of payment method.

Returns:

the lastFourDigits value.

logos

public List<PaymentMethodLogo> logos()

Get the logos property: The list of logos for the payment method.

Returns:

the logos value.

paymentMethodType

public String paymentMethodType()

Get the paymentMethodType property: The type of payment method.

Returns:

the paymentMethodType value.

status

public PaymentMethodStatus status()

Get the status property: Status of the payment method.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withFamily

public PaymentMethodProperties withFamily(PaymentMethodFamily family)

Set the family property: The family of payment method.

Parameters:

family - the family value to set.

Returns:

the PaymentMethodProperties object itself.

withLogos

public PaymentMethodProperties withLogos(List<PaymentMethodLogo> logos)

Set the logos property: The list of logos for the payment method.

Parameters:

logos - the logos value to set.

Returns:

the PaymentMethodProperties object itself.

withStatus

public PaymentMethodProperties withStatus(PaymentMethodStatus status)

Set the status property: Status of the payment method.

Parameters:

status - the status value to set.

Returns:

the PaymentMethodProperties object itself.

Applies to