Package com.adyen.model.tapi
Class SaleTerminalData
- java.lang.Object
-
- com.adyen.model.tapi.SaleTerminalData
-
public class SaleTerminalData extends Object
Information related to the software and hardware features of the Sale Terminal. Sent in the Login Request if a Sale Terminal is involved in the login. In other messages, sent when a logical device is out of order (SaleCapabilities) or when other data have changed or were missing in the Login.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_TOTALS_GROUP_I_D
-
Constructor Summary
Constructors Constructor Description SaleTerminalData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this SaleTerminalData object is equal to o.static SaleTerminalDatafromJson(String jsonString)Create an instance of SaleTerminalData given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetTotalsGroupID()Identification of a group of transactions on a POI Terminal, having the same Sale features.inthashCode()SaleTerminalDataincludeNullValues(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.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetTotalsGroupID(String totalsGroupID)Identification of a group of transactions on a POI Terminal, having the same Sale features.StringtoJson()Convert an instance of SaleTerminalData to an JSON stringStringtoString()SaleTerminalDatatotalsGroupID(String totalsGroupID)Identification of a group of transactions on a POI Terminal, having the same Sale features.
-
-
-
Field Detail
-
JSON_PROPERTY_TOTALS_GROUP_I_D
public static final String JSON_PROPERTY_TOTALS_GROUP_I_D
- See Also:
- Constant Field Values
-
-
Method Detail
-
totalsGroupID
public SaleTerminalData totalsGroupID(String totalsGroupID)
Identification of a group of transactions on a POI Terminal, having the same Sale features. Could be used to group POI for reconciliation or other purpose defined by the Sale System. The default value is assigned by the Login Request.- Parameters:
totalsGroupID- Identification of a group of transactions on a POI Terminal, having the same Sale features. Could be used to group POI for reconciliation or other purpose defined by the Sale System. The default value is assigned by the Login Request.- Returns:
- the current
SaleTerminalDatainstance, allowing for method chaining
-
getTotalsGroupID
public String getTotalsGroupID()
Identification of a group of transactions on a POI Terminal, having the same Sale features. Could be used to group POI for reconciliation or other purpose defined by the Sale System. The default value is assigned by the Login Request.- Returns:
- totalsGroupID Identification of a group of transactions on a POI Terminal, having the same Sale features. Could be used to group POI for reconciliation or other purpose defined by the Sale System. The default value is assigned by the Login Request.
-
setTotalsGroupID
public void setTotalsGroupID(String totalsGroupID)
Identification of a group of transactions on a POI Terminal, having the same Sale features. Could be used to group POI for reconciliation or other purpose defined by the Sale System. The default value is assigned by the Login Request.- Parameters:
totalsGroupID- Identification of a group of transactions on a POI Terminal, having the same Sale features. Could be used to group POI for reconciliation or other purpose defined by the Sale System. The default value is assigned by the Login Request.
-
includeNullValues
public SaleTerminalData 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 SaleTerminalData 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 SaleTerminalData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SaleTerminalData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SaleTerminalData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SaleTerminalData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SaleTerminalData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-