Package com.adyen.model.transferwebhooks
Class PaymentInstrument
- java.lang.Object
-
- com.adyen.model.transferwebhooks.PaymentInstrument
-
public class PaymentInstrument extends Object
PaymentInstrument
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentInstrument.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_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)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 the network token is associated with.inthashCode()PaymentInstrumentid(String id)PaymentInstrumentreference(String reference)voidsetDescription(String description)voidsetId(String id)voidsetReference(String reference)voidsetTokenType(String tokenType)StringtoJson()Convert an instance of PaymentInstrument to an JSON stringPaymentInstrumenttokenType(String tokenType)StringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOKEN_TYPE
public static final String SERIALIZED_NAME_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)
-
id
public PaymentInstrument id(String id)
-
getId
public String getId()
The unique identifier of the resource.- Returns:
- id
-
setId
public void setId(String id)
-
reference
public PaymentInstrument reference(String reference)
-
getReference
public String getReference()
The reference for the resource.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
tokenType
public PaymentInstrument tokenType(String tokenType)
-
getTokenType
public String getTokenType()
The type of wallet the network token is associated with.- Returns:
- tokenType
-
setTokenType
public void setTokenType(String tokenType)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to PaymentInstrument
-
fromJson
public static PaymentInstrument fromJson(String jsonString) throws IOException
Create an instance of PaymentInstrument given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentInstrument
- Throws:
IOException- if the JSON string is invalid with respect to PaymentInstrument
-
toJson
public String toJson()
Convert an instance of PaymentInstrument to an JSON string- Returns:
- JSON string
-
-