PaymentMethodProperties Class
- java.
lang. Object - com.
azure. resourcemanager. billing. fluent. models. PaymentMethodProperties
- com.
Implements
public final class PaymentMethodProperties
implements JsonSerializable<PaymentMethodProperties>
The properties of a payment method.
Constructor Summary
| Constructor | Description |
|---|---|
| PaymentMethodProperties() |
Creates an instance of Payment |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
accountHolderName()
Get the account |
| String |
displayName()
Get the display |
| String |
expiration()
Get the expiration property: The expiration month and year of the payment method. |
|
Payment |
family()
Get the family property: The family of payment method. |
|
static
Payment |
fromJson(JsonReader jsonReader)
Reads an instance of Payment |
| String |
id()
Get the id property: Id of payment method. |
| String |
lastFourDigits()
Get the last |
|
List<Payment |
logos()
Get the logos property: The list of logos for the payment method. |
| String |
paymentMethodType()
Get the payment |
|
Payment |
status()
Get the status property: Status of the payment method. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Payment |
withFamily(PaymentMethodFamily family)
Set the family property: The family of payment method. |
|
Payment |
withLogos(List<PaymentMethodLogo> logos)
Set the logos property: The list of logos for the payment method. |
|
Payment |
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:
displayName
public String displayName()
Get the displayName property: The display name of the payment method.
Returns:
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:
family
public PaymentMethodFamily family()
Get the family property: The family of payment method.
Returns:
fromJson
public static PaymentMethodProperties fromJson(JsonReader jsonReader)
Reads an instance of PaymentMethodProperties from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Id of payment method.
Returns:
lastFourDigits
public String lastFourDigits()
Get the lastFourDigits property: Last four digits of payment method.
Returns:
logos
public List<PaymentMethodLogo> logos()
Get the logos property: The list of logos for the payment method.
Returns:
paymentMethodType
public String paymentMethodType()
Get the paymentMethodType property: The type of payment method.
Returns:
status
public PaymentMethodStatus status()
Get the status property: Status of the payment method.
Returns:
toJson
validate
public void validate()
Validates the instance.
withFamily
public PaymentMethodProperties withFamily(PaymentMethodFamily family)
Set the family property: The family of payment method.
Parameters:
Returns:
withLogos
public PaymentMethodProperties withLogos(List<PaymentMethodLogo> logos)
Set the logos property: The list of logos for the payment method.
Parameters:
Returns:
withStatus
public PaymentMethodProperties withStatus(PaymentMethodStatus status)
Set the status property: Status of the payment method.
Parameters:
Returns: