Package com.adyen.model.checkout
Class PaymentMethodIssuer
- java.lang.Object
-
- com.adyen.model.checkout.PaymentMethodIssuer
-
public class PaymentMethodIssuer extends Object
PaymentMethodIssuer
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DISABLEDstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description PaymentMethodIssuer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentMethodIssuerdisabled(Boolean disabled)A boolean value indicating whether this issuer is unavailable.booleanequals(Object o)Return true if this PaymentMethodIssuer object is equal to o.static PaymentMethodIssuerfromJson(String jsonString)Create an instance of PaymentMethodIssuer given an JSON stringBooleangetDisabled()A boolean value indicating whether this issuer is unavailable.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetId()The unique identifier of this issuer, to submit in requests to /payments.StringgetName()A localized name of the issuer.inthashCode()PaymentMethodIssuerid(String id)The unique identifier of this issuer, to submit in requests to /payments.PaymentMethodIssuerincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.PaymentMethodIssuername(String name)A localized name of the issuer.voidsetDisabled(Boolean disabled)A boolean value indicating whether this issuer is unavailable.voidsetId(String id)The unique identifier of this issuer, to submit in requests to /payments.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetName(String name)A localized name of the issuer.StringtoJson()Convert an instance of PaymentMethodIssuer to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DISABLED
public static final String JSON_PROPERTY_DISABLED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
disabled
public PaymentMethodIssuer disabled(Boolean disabled)
A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline.- Parameters:
disabled- A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline.- Returns:
- the current
PaymentMethodIssuerinstance, allowing for method chaining
-
getDisabled
public Boolean getDisabled()
A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline.- Returns:
- disabled A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline.
-
setDisabled
public void setDisabled(Boolean disabled)
A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline.- Parameters:
disabled- A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline.
-
id
public PaymentMethodIssuer id(String id)
The unique identifier of this issuer, to submit in requests to /payments.- Parameters:
id- The unique identifier of this issuer, to submit in requests to /payments.- Returns:
- the current
PaymentMethodIssuerinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of this issuer, to submit in requests to /payments.- Returns:
- id The unique identifier of this issuer, to submit in requests to /payments.
-
setId
public void setId(String id)
The unique identifier of this issuer, to submit in requests to /payments.- Parameters:
id- The unique identifier of this issuer, to submit in requests to /payments.
-
name
public PaymentMethodIssuer name(String name)
A localized name of the issuer.- Parameters:
name- A localized name of the issuer.- Returns:
- the current
PaymentMethodIssuerinstance, allowing for method chaining
-
getName
public String getName()
A localized name of the issuer.- Returns:
- name A localized name of the issuer.
-
setName
public void setName(String name)
A localized name of the issuer.- Parameters:
name- A localized name of the issuer.
-
includeNullValues
public PaymentMethodIssuer includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this PaymentMethodIssuer object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static PaymentMethodIssuer fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentMethodIssuer given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentMethodIssuer
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentMethodIssuer
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentMethodIssuer to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-