Package com.adyen.model.checkout
Class InputDetail
- java.lang.Object
-
- com.adyen.model.checkout.InputDetail
-
public class InputDetail extends Object
InputDetail
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONFIGURATIONstatic StringJSON_PROPERTY_DETAILSstatic StringJSON_PROPERTY_INPUT_DETAILSstatic StringJSON_PROPERTY_ITEM_SEARCH_URLstatic StringJSON_PROPERTY_ITEMSstatic StringJSON_PROPERTY_KEYstatic StringJSON_PROPERTY_OPTIONALstatic StringJSON_PROPERTY_TYPEstatic StringJSON_PROPERTY_VALUE
-
Constructor Summary
Constructors Constructor Description InputDetail()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InputDetailaddDetailsItem(SubInputDetail detailsItem)InputDetailaddInputDetailsItem(SubInputDetail inputDetailsItem)InputDetailaddItemsItem(Item itemsItem)InputDetailconfiguration(Map<String,String> configuration)InputDetaildetails(List<SubInputDetail> details)booleanequals(Object o)Return true if this InputDetail object is equal to o.static InputDetailfromJson(String jsonString)Create an instance of InputDetail given an JSON stringMap<String,String>getConfiguration()Configuration parameters for the required input.List<SubInputDetail>getDetails()Input details can also be provided recursively.List<SubInputDetail>getInputDetails()Deprecated.List<Item>getItems()In case of a select, the items to choose from.StringgetItemSearchUrl()In case of a select, the URL from which to query the items.StringgetKey()The value to provide in the result.BooleangetOptional()True if this input value is optional.StringgetType()The type of the required input.StringgetValue()The value can be pre-filled, if available.inthashCode()InputDetailinputDetails(List<SubInputDetail> inputDetails)Deprecated.InputDetailitems(List<Item> items)InputDetailitemSearchUrl(String itemSearchUrl)InputDetailkey(String key)InputDetailoptional(Boolean optional)InputDetailputConfigurationItem(String key, String configurationItem)voidsetConfiguration(Map<String,String> configuration)Configuration parameters for the required input.voidsetDetails(List<SubInputDetail> details)Input details can also be provided recursively.voidsetInputDetails(List<SubInputDetail> inputDetails)Deprecated.voidsetItems(List<Item> items)In case of a select, the items to choose from.voidsetItemSearchUrl(String itemSearchUrl)In case of a select, the URL from which to query the items.voidsetKey(String key)The value to provide in the result.voidsetOptional(Boolean optional)True if this input value is optional.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 InputDetail to an JSON stringStringtoString()InputDetailtype(String type)InputDetailvalue(String value)
-
-
-
Field Detail
-
JSON_PROPERTY_CONFIGURATION
public static final String JSON_PROPERTY_CONFIGURATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DETAILS
public static final String JSON_PROPERTY_DETAILS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INPUT_DETAILS
public static final String JSON_PROPERTY_INPUT_DETAILS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ITEM_SEARCH_URL
public static final String JSON_PROPERTY_ITEM_SEARCH_URL
- 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 InputDetail configuration(Map<String,String> configuration)
-
putConfigurationItem
public InputDetail 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-
-
details
public InputDetail details(List<SubInputDetail> details)
-
addDetailsItem
public InputDetail addDetailsItem(SubInputDetail detailsItem)
-
getDetails
public List<SubInputDetail> getDetails()
Input details can also be provided recursively.- Returns:
- details
-
setDetails
public void setDetails(List<SubInputDetail> details)
Input details can also be provided recursively.- Parameters:
details-
-
inputDetails
@Deprecated public InputDetail inputDetails(List<SubInputDetail> inputDetails)
Deprecated.
-
addInputDetailsItem
public InputDetail addInputDetailsItem(SubInputDetail inputDetailsItem)
-
getInputDetails
@Deprecated public List<SubInputDetail> getInputDetails()
Deprecated.Input details can also be provided recursively (deprecated).- Returns:
- inputDetails
-
setInputDetails
@Deprecated public void setInputDetails(List<SubInputDetail> inputDetails)
Deprecated.Input details can also be provided recursively (deprecated).- Parameters:
inputDetails-
-
itemSearchUrl
public InputDetail itemSearchUrl(String itemSearchUrl)
-
getItemSearchUrl
public String getItemSearchUrl()
In case of a select, the URL from which to query the items.- Returns:
- itemSearchUrl
-
setItemSearchUrl
public void setItemSearchUrl(String itemSearchUrl)
In case of a select, the URL from which to query the items.- Parameters:
itemSearchUrl-
-
items
public InputDetail items(List<Item> items)
-
addItemsItem
public InputDetail addItemsItem(Item itemsItem)
-
setItems
public void setItems(List<Item> items)
In case of a select, the items to choose from.- Parameters:
items-
-
key
public InputDetail key(String key)
-
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 InputDetail optional(Boolean optional)
-
getOptional
public Boolean getOptional()
True if this input value is optional.- Returns:
- optional
-
setOptional
public void setOptional(Boolean optional)
True if this input value is optional.- Parameters:
optional-
-
type
public InputDetail type(String type)
-
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 InputDetail value(String value)
-
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 InputDetail object is equal to o.
-
fromJson
public static InputDetail fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of InputDetail given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InputDetail
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to InputDetail
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of InputDetail to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-