Class Device


  • public class Device
    extends Object
    Device
    • Constructor Detail

      • Device

        public Device()
    • Method Detail

      • id

        public Device id​(String id)
        The unique identifier of the SCA device.
        Parameters:
        id -
        Returns:
        the current Device instance, 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 Device instance, 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 Device instance, 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 Device instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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