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.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()priceinthashCode()TerminalProductid(String id)The unique identifier of the product.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.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-- Returns:
- the current
TerminalProductinstance, allowing for method chaining
-
getDescription
public String getDescription()
Information about items included and integration options.- Returns:
- description
-
setDescription
public void setDescription(String description)
Information about items included and integration options.- Parameters:
description-
-
id
public TerminalProduct id(String id)
The unique identifier of the product.- Parameters:
id-- Returns:
- the current
TerminalProductinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the product.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the product.- Parameters:
id-
-
itemsIncluded
public TerminalProduct itemsIncluded(List<String> itemsIncluded)
A list of parts included in the terminal package.- Parameters:
itemsIncluded-- 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
-
setItemsIncluded
public void setItemsIncluded(List<String> itemsIncluded)
A list of parts included in the terminal package.- Parameters:
itemsIncluded-
-
name
public TerminalProduct name(String name)
The descriptive name of the product.- Parameters:
name-- Returns:
- the current
TerminalProductinstance, allowing for method chaining
-
getName
public String getName()
The descriptive name of the product.- Returns:
- name
-
setName
public void setName(String name)
The descriptive name of the product.- Parameters:
name-
-
price
public TerminalProduct price(TerminalProductPrice price)
price- Parameters:
price-- Returns:
- the current
TerminalProductinstance, allowing for method chaining
-
getPrice
public TerminalProductPrice getPrice()
price- Returns:
- price
-
setPrice
public void setPrice(TerminalProductPrice price)
price- Parameters:
price-
-
equals
public boolean equals(Object o)
Return true if this TerminalProduct object is equal to o.
-
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
-
-