Package com.adyen.model.transferwebhooks
Class PaymentInstrument
- java.lang.Object
-
- com.adyen.model.transferwebhooks.PaymentInstrument
-
public class PaymentInstrument extends Object
PaymentInstrument
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_TOKEN_TYPE
-
Constructor Summary
Constructors Constructor Description PaymentInstrument()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentInstrumentdescription(String description)booleanequals(Object o)Return true if this PaymentInstrument object is equal to o.static PaymentInstrumentfromJson(String jsonString)Create an instance of PaymentInstrument given an JSON stringStringgetDescription()The description of the resource.StringgetId()The unique identifier of the resource.StringgetReference()The reference for the resource.StringgetTokenType()The type of wallet that the network token is associated with.inthashCode()PaymentInstrumentid(String id)PaymentInstrumentreference(String reference)voidsetDescription(String description)The description of the resource.voidsetId(String id)The unique identifier of the resource.voidsetReference(String reference)The reference for the resource.voidsetTokenType(String tokenType)The type of wallet that the network token is associated with.StringtoJson()Convert an instance of PaymentInstrument to an JSON stringPaymentInstrumenttokenType(String tokenType)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOKEN_TYPE
public static final String JSON_PROPERTY_TOKEN_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public PaymentInstrument description(String description)
-
getDescription
public String getDescription()
The description of the resource.- Returns:
- description
-
setDescription
public void setDescription(String description)
The description of the resource.- Parameters:
description-
-
id
public PaymentInstrument id(String id)
-
getId
public String getId()
The unique identifier of the resource.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the resource.- Parameters:
id-
-
reference
public PaymentInstrument reference(String reference)
-
getReference
public String getReference()
The reference for the resource.- Returns:
- reference
-
setReference
public void setReference(String reference)
The reference for the resource.- Parameters:
reference-
-
tokenType
public PaymentInstrument tokenType(String tokenType)
-
getTokenType
public String getTokenType()
The type of wallet that the network token is associated with.- Returns:
- tokenType
-
setTokenType
public void setTokenType(String tokenType)
The type of wallet that the network token is associated with.- Parameters:
tokenType-
-
equals
public boolean equals(Object o)
Return true if this PaymentInstrument object is equal to o.
-
fromJson
public static PaymentInstrument fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentInstrument given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentInstrument
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentInstrument
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentInstrument to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-