Package com.adyen.model.tapi
Class TransactionIDType
- java.lang.Object
-
- com.adyen.model.tapi.TransactionIDType
-
public class TransactionIDType extends Object
Identification of a transaction for the Sale System or the POI System.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_TIME_STAMPstatic StringJSON_PROPERTY_TRANSACTION_I_D
-
Constructor Summary
Constructors Constructor Description TransactionIDType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this TransactionIDType object is equal to o.static TransactionIDTypefromJson(String jsonString)Create an instance of TransactionIDType given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.OffsetDateTimegetTimeStamp()Date and time of a transaction for the Sale System, the POI System or the Acquirer.StringgetTransactionID()Unique identification of a transaction to identify the transaction on the Sale System (e.g.inthashCode()TransactionIDTypeincludeNullValues(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.voidsetTimeStamp(OffsetDateTime timeStamp)Date and time of a transaction for the Sale System, the POI System or the Acquirer.voidsetTransactionID(String transactionID)Unique identification of a transaction to identify the transaction on the Sale System (e.g.TransactionIDTypetimeStamp(OffsetDateTime timeStamp)Date and time of a transaction for the Sale System, the POI System or the Acquirer.StringtoJson()Convert an instance of TransactionIDType to an JSON stringStringtoString()TransactionIDTypetransactionID(String transactionID)Unique identification of a transaction to identify the transaction on the Sale System (e.g.
-
-
-
Field Detail
-
JSON_PROPERTY_TRANSACTION_I_D
public static final String JSON_PROPERTY_TRANSACTION_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIME_STAMP
public static final String JSON_PROPERTY_TIME_STAMP
- See Also:
- Constant Field Values
-
-
Method Detail
-
transactionID
public TransactionIDType transactionID(String transactionID)
Unique identification of a transaction to identify the transaction on the Sale System (e.g. ticket number), or the POI System.- Parameters:
transactionID- Unique identification of a transaction to identify the transaction on the Sale System (e.g. ticket number), or the POI System.- Returns:
- the current
TransactionIDTypeinstance, allowing for method chaining
-
getTransactionID
public String getTransactionID()
Unique identification of a transaction to identify the transaction on the Sale System (e.g. ticket number), or the POI System.- Returns:
- transactionID Unique identification of a transaction to identify the transaction on the Sale System (e.g. ticket number), or the POI System.
-
setTransactionID
public void setTransactionID(String transactionID)
Unique identification of a transaction to identify the transaction on the Sale System (e.g. ticket number), or the POI System.- Parameters:
transactionID- Unique identification of a transaction to identify the transaction on the Sale System (e.g. ticket number), or the POI System.
-
timeStamp
public TransactionIDType timeStamp(OffsetDateTime timeStamp)
Date and time of a transaction for the Sale System, the POI System or the Acquirer. Ensures the uniqueness of a transaction and indicates the time when the event occurs in the EventNotification message.- Parameters:
timeStamp- Date and time of a transaction for the Sale System, the POI System or the Acquirer. Ensures the uniqueness of a transaction and indicates the time when the event occurs in the EventNotification message.- Returns:
- the current
TransactionIDTypeinstance, allowing for method chaining
-
getTimeStamp
public OffsetDateTime getTimeStamp()
Date and time of a transaction for the Sale System, the POI System or the Acquirer. Ensures the uniqueness of a transaction and indicates the time when the event occurs in the EventNotification message.- Returns:
- timeStamp Date and time of a transaction for the Sale System, the POI System or the Acquirer. Ensures the uniqueness of a transaction and indicates the time when the event occurs in the EventNotification message.
-
setTimeStamp
public void setTimeStamp(OffsetDateTime timeStamp)
Date and time of a transaction for the Sale System, the POI System or the Acquirer. Ensures the uniqueness of a transaction and indicates the time when the event occurs in the EventNotification message.- Parameters:
timeStamp- Date and time of a transaction for the Sale System, the POI System or the Acquirer. Ensures the uniqueness of a transaction and indicates the time when the event occurs in the EventNotification message.
-
includeNullValues
public TransactionIDType 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 TransactionIDType 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 TransactionIDType fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TransactionIDType given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransactionIDType
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TransactionIDType
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TransactionIDType to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-