Package com.adyen.model.checkout
Class CardBrandDetails
- java.lang.Object
-
- com.adyen.model.checkout.CardBrandDetails
-
public class CardBrandDetails extends Object
CardBrandDetails
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_SUPPORTEDstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description CardBrandDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this CardBrandDetails object is equal to o.static CardBrandDetailsfromJson(String jsonString)Create an instance of CardBrandDetails given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.BooleangetSupported()Indicates if you support the card brand.StringgetType()The name of the card brand.inthashCode()CardBrandDetailsincludeNullValues(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.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetSupported(Boolean supported)Indicates if you support the card brand.voidsetType(String type)The name of the card brand.CardBrandDetailssupported(Boolean supported)Indicates if you support the card brand.StringtoJson()Convert an instance of CardBrandDetails to an JSON stringStringtoString()CardBrandDetailstype(String type)The name of the card brand.
-
-
-
Field Detail
-
JSON_PROPERTY_SUPPORTED
public static final String JSON_PROPERTY_SUPPORTED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
supported
public CardBrandDetails supported(Boolean supported)
Indicates if you support the card brand.- Parameters:
supported- Indicates if you support the card brand.- Returns:
- the current
CardBrandDetailsinstance, allowing for method chaining
-
getSupported
public Boolean getSupported()
Indicates if you support the card brand.- Returns:
- supported Indicates if you support the card brand.
-
setSupported
public void setSupported(Boolean supported)
Indicates if you support the card brand.- Parameters:
supported- Indicates if you support the card brand.
-
type
public CardBrandDetails type(String type)
The name of the card brand.- Parameters:
type- The name of the card brand.- Returns:
- the current
CardBrandDetailsinstance, allowing for method chaining
-
getType
public String getType()
The name of the card brand.- Returns:
- type The name of the card brand.
-
setType
public void setType(String type)
The name of the card brand.- Parameters:
type- The name of the card brand.
-
includeNullValues
public CardBrandDetails 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 CardBrandDetails 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 CardBrandDetails fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CardBrandDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardBrandDetails
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CardBrandDetails
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CardBrandDetails to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-