Package com.adyen.model.checkout
Class InputDetail
- java.lang.Object
-
- com.adyen.model.checkout.InputDetail
-
public class InputDetail extends Object
InputDetail
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInputDetail.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CONFIGURATIONstatic StringSERIALIZED_NAME_DETAILSstatic StringSERIALIZED_NAME_INPUT_DETAILSstatic StringSERIALIZED_NAME_ITEM_SEARCH_URLstatic StringSERIALIZED_NAME_ITEMSstatic StringSERIALIZED_NAME_KEYstatic StringSERIALIZED_NAME_OPTIONALstatic StringSERIALIZED_NAME_TYPEstatic StringSERIALIZED_NAME_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)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)voidsetDetails(List<SubInputDetail> details)voidsetInputDetails(List<SubInputDetail> inputDetails)Deprecated.voidsetItems(List<Item> items)voidsetItemSearchUrl(String itemSearchUrl)voidsetKey(String key)voidsetOptional(Boolean optional)voidsetType(String type)voidsetValue(String value)StringtoJson()Convert an instance of InputDetail to an JSON stringStringtoString()InputDetailtype(String type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundInputDetailvalue(String value)
-
-
-
Field Detail
-
SERIALIZED_NAME_CONFIGURATION
public static final String SERIALIZED_NAME_CONFIGURATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DETAILS
public static final String SERIALIZED_NAME_DETAILS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INPUT_DETAILS
public static final String SERIALIZED_NAME_INPUT_DETAILS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ITEM_SEARCH_URL
public static final String SERIALIZED_NAME_ITEM_SEARCH_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ITEMS
public static final String SERIALIZED_NAME_ITEMS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_KEY
public static final String SERIALIZED_NAME_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OPTIONAL
public static final String SERIALIZED_NAME_OPTIONAL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUE
public static final String SERIALIZED_NAME_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
-
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)
-
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.
-
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)
-
items
public InputDetail items(List<Item> items)
-
addItemsItem
public InputDetail addItemsItem(Item itemsItem)
-
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)
-
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)
-
type
public InputDetail type(String type)
-
getType
public String getType()
The type of the required input.- Returns:
- type
-
setType
public void setType(String 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)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to InputDetail
-
fromJson
public static InputDetail fromJson(String jsonString) throws IOException
Create an instance of InputDetail given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InputDetail
- Throws:
IOException- if the JSON string is invalid with respect to InputDetail
-
toJson
public String toJson()
Convert an instance of InputDetail to an JSON string- Returns:
- JSON string
-
-