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)Configuration parameters for the required input.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)In case of a select, the items to choose from.SubInputDetailkey(String key)The value to provide in the result.SubInputDetailoptional(Boolean optional)True if this input is optional to provide.SubInputDetailputConfigurationItem(String key, String configurationItem)voidsetConfiguration(Map<String,String> configuration)Configuration parameters for the required input.voidsetItems(List<Item> items)In case of a select, the items to choose from.voidsetKey(String key)The value to provide in the result.voidsetOptional(Boolean optional)True if this input is optional to provide.voidsetType(String type)The type of the required input.voidsetValue(String value)The value can be pre-filled, if available.StringtoJson()Convert an instance of SubInputDetail to an JSON stringStringtoString()SubInputDetailtype(String type)The type of the required input.SubInputDetailvalue(String value)The value can be pre-filled, if available.
-
-
-
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)
Configuration parameters for the required input.- Parameters:
configuration-- Returns:
- the current
SubInputDetailinstance, allowing for method chaining
-
putConfigurationItem
public SubInputDetail putConfigurationItem(String key, String configurationItem)
-
getConfiguration
public Map<String,String> getConfiguration()
Configuration parameters for the required input.- Returns:
- configuration
-
setConfiguration
public void setConfiguration(Map<String,String> configuration)
Configuration parameters for the required input.- Parameters:
configuration-
-
items
public SubInputDetail items(List<Item> items)
In case of a select, the items to choose from.- Parameters:
items-- Returns:
- the current
SubInputDetailinstance, allowing for method chaining
-
addItemsItem
public SubInputDetail addItemsItem(Item itemsItem)
-
setItems
public void setItems(List<Item> items)
In case of a select, the items to choose from.- Parameters:
items-
-
key
public SubInputDetail key(String key)
The value to provide in the result.- Parameters:
key-- Returns:
- the current
SubInputDetailinstance, allowing for method chaining
-
getKey
public String getKey()
The value to provide in the result.- Returns:
- key
-
setKey
public void setKey(String key)
The value to provide in the result.- Parameters:
key-
-
optional
public SubInputDetail optional(Boolean optional)
True if this input is optional to provide.- Parameters:
optional-- Returns:
- the current
SubInputDetailinstance, allowing for method chaining
-
getOptional
public Boolean getOptional()
True if this input is optional to provide.- Returns:
- optional
-
setOptional
public void setOptional(Boolean optional)
True if this input is optional to provide.- Parameters:
optional-
-
type
public SubInputDetail type(String type)
The type of the required input.- Parameters:
type-- Returns:
- the current
SubInputDetailinstance, allowing for method chaining
-
getType
public String getType()
The type of the required input.- Returns:
- type
-
setType
public void setType(String type)
The type of the required input.- Parameters:
type-
-
value
public SubInputDetail value(String value)
The value can be pre-filled, if available.- Parameters:
value-- Returns:
- the current
SubInputDetailinstance, allowing for method chaining
-
getValue
public String getValue()
The value can be pre-filled, if available.- Returns:
- value
-
setValue
public void setValue(String value)
The value can be pre-filled, if available.- Parameters:
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
-
-