Package com.adyen.model.balanceplatform
Class Device
- java.lang.Object
-
- com.adyen.model.balanceplatform.Device
-
public class Device extends Object
Device
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDevice.TypeEnumThe type of device.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_PAYMENT_INSTRUMENT_IDstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description Device()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this Device object is equal to o.static DevicefromJson(String jsonString)Create an instance of Device given an JSON stringStringgetId()The unique identifier of the SCA device.StringgetName()The name of the SCA device.StringgetPaymentInstrumentId()The unique identifier of the payment instrument that is associated with the SCA device.Device.TypeEnumgetType()The type of device.inthashCode()Deviceid(String id)The unique identifier of the SCA device.Devicename(String name)The name of the SCA device.DevicepaymentInstrumentId(String paymentInstrumentId)The unique identifier of the payment instrument that is associated with the SCA device.voidsetId(String id)The unique identifier of the SCA device.voidsetName(String name)The name of the SCA device.voidsetPaymentInstrumentId(String paymentInstrumentId)The unique identifier of the payment instrument that is associated with the SCA device.voidsetType(Device.TypeEnum type)The type of device.StringtoJson()Convert an instance of Device to an JSON stringStringtoString()Devicetype(Device.TypeEnum type)The type of device.
-
-
-
Field Detail
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_INSTRUMENT_ID
public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public Device id(String id)
The unique identifier of the SCA device.- Parameters:
id-- Returns:
- the current
Deviceinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the SCA device.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the SCA device.- Parameters:
id-
-
name
public Device name(String name)
The name of the SCA device. You can show this name to your user to help them identify the device.- Parameters:
name-- Returns:
- the current
Deviceinstance, allowing for method chaining
-
getName
public String getName()
The name of the SCA device. You can show this name to your user to help them identify the device.- Returns:
- name
-
setName
public void setName(String name)
The name of the SCA device. You can show this name to your user to help them identify the device.- Parameters:
name-
-
paymentInstrumentId
public Device paymentInstrumentId(String paymentInstrumentId)
The unique identifier of the payment instrument that is associated with the SCA device.- Parameters:
paymentInstrumentId-- Returns:
- the current
Deviceinstance, allowing for method chaining
-
getPaymentInstrumentId
public String getPaymentInstrumentId()
The unique identifier of the payment instrument that is associated with the SCA device.- Returns:
- paymentInstrumentId
-
setPaymentInstrumentId
public void setPaymentInstrumentId(String paymentInstrumentId)
The unique identifier of the payment instrument that is associated with the SCA device.- Parameters:
paymentInstrumentId-
-
type
public Device type(Device.TypeEnum type)
The type of device. Possible values: **ios**, **android**, **browser**.- Parameters:
type-- Returns:
- the current
Deviceinstance, allowing for method chaining
-
getType
public Device.TypeEnum getType()
The type of device. Possible values: **ios**, **android**, **browser**.- Returns:
- type
-
setType
public void setType(Device.TypeEnum type)
The type of device. Possible values: **ios**, **android**, **browser**.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this Device object is equal to o.
-
fromJson
public static Device fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Device given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Device
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Device
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Device to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-