Package com.adyen.model.management
Class ExternalTerminalAction
- java.lang.Object
-
- com.adyen.model.management.ExternalTerminalAction
-
public class ExternalTerminalAction extends Object
ExternalTerminalAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExternalTerminalAction.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACTION_TYPEstatic StringSERIALIZED_NAME_CONFIGstatic StringSERIALIZED_NAME_CONFIRMED_ATstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_RESULTstatic StringSERIALIZED_NAME_SCHEDULED_ATstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_TERMINAL_ID
-
Constructor Summary
Constructors Constructor Description ExternalTerminalAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalTerminalActionactionType(String actionType)ExternalTerminalActionconfig(String config)ExternalTerminalActionconfirmedAt(OffsetDateTime confirmedAt)booleanequals(Object o)static ExternalTerminalActionfromJson(String jsonString)Create an instance of ExternalTerminalAction given an JSON stringStringgetActionType()The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**.StringgetConfig()Technical information about the terminal action.OffsetDateTimegetConfirmedAt()The date and time when the action was carried out.StringgetId()The unique ID of the terminal action.StringgetResult()The result message for the action.OffsetDateTimegetScheduledAt()The date and time when the action was scheduled to happen.StringgetStatus()The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**.StringgetTerminalId()The unique ID of the terminal that the action applies to.inthashCode()ExternalTerminalActionid(String id)ExternalTerminalActionresult(String result)ExternalTerminalActionscheduledAt(OffsetDateTime scheduledAt)voidsetActionType(String actionType)voidsetConfig(String config)voidsetConfirmedAt(OffsetDateTime confirmedAt)voidsetId(String id)voidsetResult(String result)voidsetScheduledAt(OffsetDateTime scheduledAt)voidsetStatus(String status)voidsetTerminalId(String terminalId)ExternalTerminalActionstatus(String status)ExternalTerminalActionterminalId(String terminalId)StringtoJson()Convert an instance of ExternalTerminalAction to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ACTION_TYPE
public static final String SERIALIZED_NAME_ACTION_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONFIG
public static final String SERIALIZED_NAME_CONFIG
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONFIRMED_AT
public static final String SERIALIZED_NAME_CONFIRMED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESULT
public static final String SERIALIZED_NAME_RESULT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SCHEDULED_AT
public static final String SERIALIZED_NAME_SCHEDULED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TERMINAL_ID
public static final String SERIALIZED_NAME_TERMINAL_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
actionType
public ExternalTerminalAction actionType(String actionType)
-
getActionType
public String getActionType()
The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**.- Returns:
- actionType
-
setActionType
public void setActionType(String actionType)
-
config
public ExternalTerminalAction config(String config)
-
getConfig
public String getConfig()
Technical information about the terminal action.- Returns:
- config
-
setConfig
public void setConfig(String config)
-
confirmedAt
public ExternalTerminalAction confirmedAt(OffsetDateTime confirmedAt)
-
getConfirmedAt
public OffsetDateTime getConfirmedAt()
The date and time when the action was carried out.- Returns:
- confirmedAt
-
setConfirmedAt
public void setConfirmedAt(OffsetDateTime confirmedAt)
-
id
public ExternalTerminalAction id(String id)
-
getId
public String getId()
The unique ID of the terminal action.- Returns:
- id
-
setId
public void setId(String id)
-
result
public ExternalTerminalAction result(String result)
-
getResult
public String getResult()
The result message for the action.- Returns:
- result
-
setResult
public void setResult(String result)
-
scheduledAt
public ExternalTerminalAction scheduledAt(OffsetDateTime scheduledAt)
-
getScheduledAt
public OffsetDateTime getScheduledAt()
The date and time when the action was scheduled to happen.- Returns:
- scheduledAt
-
setScheduledAt
public void setScheduledAt(OffsetDateTime scheduledAt)
-
status
public ExternalTerminalAction status(String status)
-
getStatus
public String getStatus()
The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**.- Returns:
- status
-
setStatus
public void setStatus(String status)
-
terminalId
public ExternalTerminalAction terminalId(String terminalId)
-
getTerminalId
public String getTerminalId()
The unique ID of the terminal that the action applies to.- Returns:
- terminalId
-
setTerminalId
public void setTerminalId(String terminalId)
-
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 ExternalTerminalAction
-
fromJson
public static ExternalTerminalAction fromJson(String jsonString) throws IOException
Create an instance of ExternalTerminalAction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExternalTerminalAction
- Throws:
IOException- if the JSON string is invalid with respect to ExternalTerminalAction
-
toJson
public String toJson()
Convert an instance of ExternalTerminalAction to an JSON string- Returns:
- JSON string
-
-