Package com.adyen.model.management
Class TerminalProduct
- java.lang.Object
-
- com.adyen.model.management.TerminalProduct
-
public class TerminalProduct extends Object
TerminalProduct
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_ITEMS_INCLUDEDstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_PRICE
-
Constructor Summary
Constructors Constructor Description TerminalProduct()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TerminalProductaddItemsIncludedItem(String itemsIncludedItem)TerminalProductdescription(String description)Information about items included and integration options.booleanequals(Object o)Return true if this TerminalProduct object is equal to o.static TerminalProductfromJson(String jsonString)Create an instance of TerminalProduct given an JSON stringStringgetDescription()Information about items included and integration options.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetId()The unique identifier of the product.List<String>getItemsIncluded()A list of parts included in the terminal package.StringgetName()The descriptive name of the product.TerminalProductPricegetPrice()Get priceinthashCode()TerminalProductid(String id)The unique identifier of the product.TerminalProductincludeNullValues(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.TerminalProductitemsIncluded(List<String> itemsIncluded)A list of parts included in the terminal package.TerminalProductname(String name)The descriptive name of the product.TerminalProductprice(TerminalProductPrice price)pricevoidsetDescription(String description)Information about items included and integration options.voidsetId(String id)The unique identifier of the product.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetItemsIncluded(List<String> itemsIncluded)A list of parts included in the terminal package.voidsetName(String name)The descriptive name of the product.voidsetPrice(TerminalProductPrice price)priceStringtoJson()Convert an instance of TerminalProduct to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ITEMS_INCLUDED
public static final String JSON_PROPERTY_ITEMS_INCLUDED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRICE
public static final String JSON_PROPERTY_PRICE
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public TerminalProduct description(String description)
Information about items included and integration options.- Parameters:
description- Information about items included and integration options.- Returns:
- the current
TerminalProductinstance, allowing for method chaining
-
getDescription
public String getDescription()
Information about items included and integration options.- Returns:
- description Information about items included and integration options.
-
setDescription
public void setDescription(String description)
Information about items included and integration options.- Parameters:
description- Information about items included and integration options.
-
id
public TerminalProduct id(String id)
The unique identifier of the product.- Parameters:
id- The unique identifier of the product.- Returns:
- the current
TerminalProductinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the product.- Returns:
- id The unique identifier of the product.
-
setId
public void setId(String id)
The unique identifier of the product.- Parameters:
id- The unique identifier of the product.
-
itemsIncluded
public TerminalProduct itemsIncluded(List<String> itemsIncluded)
A list of parts included in the terminal package.- Parameters:
itemsIncluded- A list of parts included in the terminal package.- Returns:
- the current
TerminalProductinstance, allowing for method chaining
-
addItemsIncludedItem
public TerminalProduct addItemsIncludedItem(String itemsIncludedItem)
-
getItemsIncluded
public List<String> getItemsIncluded()
A list of parts included in the terminal package.- Returns:
- itemsIncluded A list of parts included in the terminal package.
-
setItemsIncluded
public void setItemsIncluded(List<String> itemsIncluded)
A list of parts included in the terminal package.- Parameters:
itemsIncluded- A list of parts included in the terminal package.
-
name
public TerminalProduct name(String name)
The descriptive name of the product.- Parameters:
name- The descriptive name of the product.- Returns:
- the current
TerminalProductinstance, allowing for method chaining
-
getName
public String getName()
The descriptive name of the product.- Returns:
- name The descriptive name of the product.
-
setName
public void setName(String name)
The descriptive name of the product.- Parameters:
name- The descriptive name of the product.
-
price
public TerminalProduct price(TerminalProductPrice price)
price- Parameters:
price-- Returns:
- the current
TerminalProductinstance, allowing for method chaining
-
getPrice
public TerminalProductPrice getPrice()
Get price- Returns:
- price
-
setPrice
public void setPrice(TerminalProductPrice price)
price- Parameters:
price-
-
includeNullValues
public TerminalProduct 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 TerminalProduct 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 TerminalProduct fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TerminalProduct given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TerminalProduct
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TerminalProduct
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TerminalProduct to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-