Package com.adyen.model.balanceplatform
Class NetworkToken
- java.lang.Object
-
- com.adyen.model.balanceplatform.NetworkToken
-
public class NetworkToken extends Object
NetworkToken
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNetworkToken.StatusEnumThe status of the network token.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BRAND_VARIANTstatic StringJSON_PROPERTY_CREATION_DATEstatic StringJSON_PROPERTY_DEVICEstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_PAYMENT_INSTRUMENT_IDstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_TOKEN_LAST_FOURstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description NetworkToken()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkTokenbrandVariant(String brandVariant)NetworkTokencreationDate(OffsetDateTime creationDate)NetworkTokendevice(DeviceInfo device)booleanequals(Object o)Return true if this NetworkToken object is equal to o.static NetworkTokenfromJson(String jsonString)Create an instance of NetworkToken given an JSON stringStringgetBrandVariant()The card brand variant of the payment instrument associated with the network token.OffsetDateTimegetCreationDate()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.DeviceInfogetDevice()Get deviceStringgetId()The unique identifier of the network token.StringgetPaymentInstrumentId()The unique identifier of the payment instrument to which this network token belongs to.NetworkToken.StatusEnumgetStatus()The status of the network token.StringgetTokenLastFour()The last four digits of the network token `id`.StringgetType()The type of wallet the network token is associated with.inthashCode()NetworkTokenid(String id)NetworkTokenpaymentInstrumentId(String paymentInstrumentId)voidsetBrandVariant(String brandVariant)The card brand variant of the payment instrument associated with the network token.voidsetCreationDate(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.voidsetDevice(DeviceInfo device)devicevoidsetId(String id)The unique identifier of the network token.voidsetPaymentInstrumentId(String paymentInstrumentId)The unique identifier of the payment instrument to which this network token belongs to.voidsetStatus(NetworkToken.StatusEnum status)The status of the network token.voidsetTokenLastFour(String tokenLastFour)The last four digits of the network token `id`.voidsetType(String type)The type of wallet the network token is associated with.NetworkTokenstatus(NetworkToken.StatusEnum status)StringtoJson()Convert an instance of NetworkToken to an JSON stringNetworkTokentokenLastFour(String tokenLastFour)StringtoString()NetworkTokentype(String type)
-
-
-
Field Detail
-
JSON_PROPERTY_BRAND_VARIANT
public static final String JSON_PROPERTY_BRAND_VARIANT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CREATION_DATE
public static final String JSON_PROPERTY_CREATION_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DEVICE
public static final String JSON_PROPERTY_DEVICE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- 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_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOKEN_LAST_FOUR
public static final String JSON_PROPERTY_TOKEN_LAST_FOUR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
brandVariant
public NetworkToken brandVariant(String brandVariant)
-
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)
-
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)
-
getDevice
public DeviceInfo getDevice()
Get device- Returns:
- device
-
setDevice
public void setDevice(DeviceInfo device)
device- Parameters:
device-
-
id
public NetworkToken id(String id)
-
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)
-
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)
-
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)
-
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)
-
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.
-
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
-
-