Package com.adyen.model.management
Class Connectivity
- java.lang.Object
-
- com.adyen.model.management.Connectivity
-
public class Connectivity extends Object
Connectivity
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConnectivity.CustomTypeAdapterFactorystatic classConnectivity.SimcardStatusEnumIndicates the status of the SIM card in the payment terminal.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_SIMCARD_STATUS
-
Constructor Summary
Constructors Constructor Description Connectivity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ConnectivityfromJson(String jsonString)Create an instance of Connectivity given an JSON stringConnectivity.SimcardStatusEnumgetSimcardStatus()Indicates the status of the SIM card in the payment terminal.inthashCode()voidsetSimcardStatus(Connectivity.SimcardStatusEnum simcardStatus)ConnectivitysimcardStatus(Connectivity.SimcardStatusEnum simcardStatus)StringtoJson()Convert an instance of Connectivity to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
simcardStatus
public Connectivity simcardStatus(Connectivity.SimcardStatusEnum simcardStatus)
-
getSimcardStatus
public Connectivity.SimcardStatusEnum getSimcardStatus()
Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity.- Returns:
- simcardStatus
-
setSimcardStatus
public void setSimcardStatus(Connectivity.SimcardStatusEnum simcardStatus)
-
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 Connectivity
-
fromJson
public static Connectivity fromJson(String jsonString) throws IOException
Create an instance of Connectivity given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Connectivity
- Throws:
IOException- if the JSON string is invalid with respect to Connectivity
-
toJson
public String toJson()
Convert an instance of Connectivity to an JSON string- Returns:
- JSON string
-
-