Class AssignTerminalsResponse
- java.lang.Object
-
- com.adyen.model.posterminalmanagement.AssignTerminalsResponse
-
public class AssignTerminalsResponse extends Object
AssignTerminalsResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAssignTerminalsResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_RESULTS
-
Constructor Summary
Constructors Constructor Description AssignTerminalsResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static AssignTerminalsResponsefromJson(String jsonString)Create an instance of AssignTerminalsResponse given an JSON stringMap<String,String>getResults()Array that returns a list of the terminals, and for each terminal the result of assigning it to an account or store.inthashCode()AssignTerminalsResponseputResultsItem(String key, String resultsItem)AssignTerminalsResponseresults(Map<String,String> results)voidsetResults(Map<String,String> results)StringtoJson()Convert an instance of AssignTerminalsResponse to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
results
public AssignTerminalsResponse results(Map<String,String> results)
-
putResultsItem
public AssignTerminalsResponse putResultsItem(String key, String resultsItem)
-
getResults
public Map<String,String> getResults()
Array that returns a list of the terminals, and for each terminal the result of assigning it to an account or store. The results can be: - `Done`: The terminal has been assigned. - `AssignmentScheduled`: The terminal will be assigned asynschronously. - `RemoveConfigScheduled`: The terminal was previously assigned and boarded. Wait for the terminal to synchronize with the Adyen platform. For more information, refer to [Reassigning boarded terminals](https://docs.adyen.com/point-of-sale/managing-terminals/assign-terminals#reassign-boarded-terminals). - `Error`: There was an error when assigning the terminal.- Returns:
- results
-
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 AssignTerminalsResponse
-
fromJson
public static AssignTerminalsResponse fromJson(String jsonString) throws IOException
Create an instance of AssignTerminalsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AssignTerminalsResponse
- Throws:
IOException- if the JSON string is invalid with respect to AssignTerminalsResponse
-
toJson
public String toJson()
Convert an instance of AssignTerminalsResponse to an JSON string- Returns:
- JSON string
-
-