PaymentMethodInner Class

public final class PaymentMethodInner
extends ProxyResourceWithTags

A payment method.

Constructor Summary

Constructor Description
PaymentMethodInner()

Creates an instance of PaymentMethodInner 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 PaymentMethodInner fromJson(JsonReader jsonReader)

Reads an instance of PaymentMethodInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String idPropertiesId()

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 name()

Get the name property: The name of the resource.

String paymentMethodType()

Get the paymentMethodType property: The type of payment method.

PaymentMethodStatus status()

Get the status property: Status of the payment method.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

PaymentMethodInner withFamily(PaymentMethodFamily family)

Set the family property: The family of payment method.

PaymentMethodInner withLogos(List<PaymentMethodLogo> logos)

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

PaymentMethodInner withStatus(PaymentMethodStatus status)

Set the status property: Status of the payment method.

PaymentMethodInner withTags(Map<String,String> tags)

Set the tags property: Dictionary of metadata associated with the resource.

Methods inherited from ProxyResourceWithTags

Methods inherited from java.lang.Object

Constructor Details

PaymentMethodInner

public PaymentMethodInner()

Creates an instance of PaymentMethodInner 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 PaymentMethodInner fromJson(JsonReader jsonReader)

Reads an instance of PaymentMethodInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PaymentMethodInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

PaymentMethodInner.id()

Returns:

the id value.

idPropertiesId

public String idPropertiesId()

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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

PaymentMethodInner.name()

Returns:

the name 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.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Overrides:

PaymentMethodInner.systemData()

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PaymentMethodInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PaymentMethodInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

PaymentMethodInner.validate()

withFamily

public PaymentMethodInner withFamily(PaymentMethodFamily family)

Set the family property: The family of payment method.

Parameters:

family - the family value to set.

Returns:

the PaymentMethodInner object itself.

withLogos

public PaymentMethodInner 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 PaymentMethodInner object itself.

withStatus

public PaymentMethodInner withStatus(PaymentMethodStatus status)

Set the status property: Status of the payment method.

Parameters:

status - the status value to set.

Returns:

the PaymentMethodInner object itself.

withTags

public PaymentMethodInner withTags(Map<String,String> tags)

Set the tags property: Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /.

Overrides:

PaymentMethodInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to