Package com.adyen.model.checkout
Class DeviceRenderOptions
- java.lang.Object
-
- com.adyen.model.checkout.DeviceRenderOptions
-
public class DeviceRenderOptions extends Object
DeviceRenderOptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceRenderOptions.CustomTypeAdapterFactorystatic classDeviceRenderOptions.SdkInterfaceEnumSupported SDK interface types.static classDeviceRenderOptions.SdkUiTypeEnumGets or Sets sdkUiType
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_SDK_INTERFACEstatic StringSERIALIZED_NAME_SDK_UI_TYPE
-
Constructor Summary
Constructors Constructor Description DeviceRenderOptions()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_SDK_INTERFACE
public static final String SERIALIZED_NAME_SDK_INTERFACE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SDK_UI_TYPE
public static final String SERIALIZED_NAME_SDK_UI_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
sdkInterface
public DeviceRenderOptions sdkInterface(DeviceRenderOptions.SdkInterfaceEnum sdkInterface)
-
getSdkInterface
public DeviceRenderOptions.SdkInterfaceEnum getSdkInterface()
Supported SDK interface types. Allowed values: * native * html * both- Returns:
- sdkInterface
-
setSdkInterface
public void setSdkInterface(DeviceRenderOptions.SdkInterfaceEnum sdkInterface)
-
sdkUiType
public DeviceRenderOptions sdkUiType(List<DeviceRenderOptions.SdkUiTypeEnum> sdkUiType)
-
addSdkUiTypeItem
public DeviceRenderOptions addSdkUiTypeItem(DeviceRenderOptions.SdkUiTypeEnum sdkUiTypeItem)
-
getSdkUiType
public List<DeviceRenderOptions.SdkUiTypeEnum> getSdkUiType()
UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect- Returns:
- sdkUiType
-
setSdkUiType
public void setSdkUiType(List<DeviceRenderOptions.SdkUiTypeEnum> sdkUiType)
-
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 DeviceRenderOptions
-
fromJson
public static DeviceRenderOptions fromJson(String jsonString) throws IOException
Create an instance of DeviceRenderOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DeviceRenderOptions
- Throws:
IOException- if the JSON string is invalid with respect to DeviceRenderOptions
-
toJson
public String toJson()
Convert an instance of DeviceRenderOptions to an JSON string- Returns:
- JSON string
-
-