Package com.adyen.model.checkout
Class SubInputDetail
- java.lang.Object
-
- com.adyen.model.checkout.SubInputDetail
-
public class SubInputDetail extends Object
SubInputDetail
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONFIGURATIONstatic StringJSON_PROPERTY_ITEMSstatic StringJSON_PROPERTY_KEYstatic StringJSON_PROPERTY_OPTIONALstatic StringJSON_PROPERTY_TYPEstatic StringJSON_PROPERTY_VALUE
-
Constructor Summary
Constructors Constructor Description SubInputDetail()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SubInputDetailaddItemsItem(Item itemsItem)SubInputDetailconfiguration(Map<String,String> configuration)booleanequals(Object o)Return true if this SubInputDetail object is equal to o.static SubInputDetailfromJson(String jsonString)Create an instance of SubInputDetail given an JSON stringMap<String,String>getConfiguration()Configuration parameters for the required input.List<Item>getItems()In case of a select, the items to choose from.StringgetKey()The value to provide in the result.BooleangetOptional()True if this input is optional to provide.StringgetType()The type of the required input.StringgetValue()The value can be pre-filled, if available.inthashCode()SubInputDetailitems(List<Item> items)SubInputDetailkey(String key)SubInputDetailoptional(Boolean optional)SubInputDetailputConfigurationItem(String key, String configurationItem)voidsetConfiguration(Map<String,String> configuration)voidsetItems(List<Item> items)voidsetKey(String key)voidsetOptional(Boolean optional)voidsetType(String type)voidsetValue(String value)StringtoJson()Convert an instance of SubInputDetail to an JSON stringStringtoString()SubInputDetailtype(String type)SubInputDetailvalue(String value)
-
-
-
Field Detail
-
JSON_PROPERTY_CONFIGURATION
public static final String JSON_PROPERTY_CONFIGURATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ITEMS
public static final String JSON_PROPERTY_ITEMS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_KEY
public static final String JSON_PROPERTY_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OPTIONAL
public static final String JSON_PROPERTY_OPTIONAL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALUE
public static final String JSON_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
configuration
public SubInputDetail configuration(Map<String,String> configuration)
-
putConfigurationItem
public SubInputDetail putConfigurationItem(String key, String configurationItem)
-
getConfiguration
public Map<String,String> getConfiguration()
Configuration parameters for the required input.- Returns:
- configuration
-
items
public SubInputDetail items(List<Item> items)
-
addItemsItem
public SubInputDetail addItemsItem(Item itemsItem)
-
key
public SubInputDetail key(String key)
-
getKey
public String getKey()
The value to provide in the result.- Returns:
- key
-
setKey
public void setKey(String key)
-
optional
public SubInputDetail optional(Boolean optional)
-
getOptional
public Boolean getOptional()
True if this input is optional to provide.- Returns:
- optional
-
setOptional
public void setOptional(Boolean optional)
-
type
public SubInputDetail type(String type)
-
getType
public String getType()
The type of the required input.- Returns:
- type
-
setType
public void setType(String type)
-
value
public SubInputDetail value(String value)
-
getValue
public String getValue()
The value can be pre-filled, if available.- Returns:
- value
-
setValue
public void setValue(String value)
-
equals
public boolean equals(Object o)
Return true if this SubInputDetail object is equal to o.
-
fromJson
public static SubInputDetail fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SubInputDetail given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubInputDetail
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SubInputDetail
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SubInputDetail to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-