Class NetworkToken


  • public class NetworkToken
    extends Object
    NetworkToken
    • Constructor Detail

      • NetworkToken

        public NetworkToken()
    • Method Detail

      • brandVariant

        public NetworkToken brandVariant​(String brandVariant)
        The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**.
        Parameters:
        brandVariant -
        Returns:
        the current NetworkToken instance, allowing for method chaining
      • getBrandVariant

        public String getBrandVariant()
        The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**.
        Returns:
        brandVariant
      • setBrandVariant

        public void setBrandVariant​(String brandVariant)
        The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**.
        Parameters:
        brandVariant -
      • creationDate

        public NetworkToken creationDate​(OffsetDateTime creationDate)
        Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2020-12-18T10:15:30+01:00**..
        Parameters:
        creationDate -
        Returns:
        the current NetworkToken instance, allowing for method chaining
      • getCreationDate

        public OffsetDateTime getCreationDate()
        Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2020-12-18T10:15:30+01:00**..
        Returns:
        creationDate
      • setCreationDate

        public void setCreationDate​(OffsetDateTime creationDate)
        Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2020-12-18T10:15:30+01:00**..
        Parameters:
        creationDate -
      • device

        public NetworkToken device​(DeviceInfo device)
        device
        Parameters:
        device -
        Returns:
        the current NetworkToken instance, allowing for method chaining
      • getDevice

        public DeviceInfo getDevice()
        device
        Returns:
        device
      • setDevice

        public void setDevice​(DeviceInfo device)
        device
        Parameters:
        device -
      • id

        public NetworkToken id​(String id)
        The unique identifier of the network token.
        Parameters:
        id -
        Returns:
        the current NetworkToken instance, allowing for method chaining
      • getId

        public String getId()
        The unique identifier of the network token.
        Returns:
        id
      • setId

        public void setId​(String id)
        The unique identifier of the network token.
        Parameters:
        id -
      • paymentInstrumentId

        public NetworkToken paymentInstrumentId​(String paymentInstrumentId)
        The unique identifier of the payment instrument to which this network token belongs to.
        Parameters:
        paymentInstrumentId -
        Returns:
        the current NetworkToken instance, allowing for method chaining
      • getPaymentInstrumentId

        public String getPaymentInstrumentId()
        The unique identifier of the payment instrument to which this network token belongs to.
        Returns:
        paymentInstrumentId
      • setPaymentInstrumentId

        public void setPaymentInstrumentId​(String paymentInstrumentId)
        The unique identifier of the payment instrument to which this network token belongs to.
        Parameters:
        paymentInstrumentId -
      • status

        public NetworkToken status​(NetworkToken.StatusEnum status)
        The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**.
        Parameters:
        status -
        Returns:
        the current NetworkToken instance, allowing for method chaining
      • getStatus

        public NetworkToken.StatusEnum getStatus()
        The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**.
        Returns:
        status
      • setStatus

        public void setStatus​(NetworkToken.StatusEnum status)
        The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**.
        Parameters:
        status -
      • tokenLastFour

        public NetworkToken tokenLastFour​(String tokenLastFour)
        The last four digits of the network token `id`.
        Parameters:
        tokenLastFour -
        Returns:
        the current NetworkToken instance, allowing for method chaining
      • getTokenLastFour

        public String getTokenLastFour()
        The last four digits of the network token `id`.
        Returns:
        tokenLastFour
      • setTokenLastFour

        public void setTokenLastFour​(String tokenLastFour)
        The last four digits of the network token `id`.
        Parameters:
        tokenLastFour -
      • type

        public NetworkToken type​(String type)
        The type of wallet the network token is associated with. For example, **applePay**.
        Parameters:
        type -
        Returns:
        the current NetworkToken instance, allowing for method chaining
      • getType

        public String getType()
        The type of wallet the network token is associated with. For example, **applePay**.
        Returns:
        type
      • setType

        public void setType​(String type)
        The type of wallet the network token is associated with. For example, **applePay**.
        Parameters:
        type -
      • equals

        public boolean equals​(Object o)
        Return true if this NetworkToken object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static NetworkToken fromJson​(String jsonString)
                                     throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of NetworkToken given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of NetworkToken
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to NetworkToken
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of NetworkToken to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException