Package com.adyen.model.checkout
Class ResponsePaymentMethod
- java.lang.Object
-
- com.adyen.model.checkout.ResponsePaymentMethod
-
public class ResponsePaymentMethod extends Object
ResponsePaymentMethod
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResponsePaymentMethod.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BRANDstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description ResponsePaymentMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponsePaymentMethodbrand(String brand)booleanequals(Object o)static ResponsePaymentMethodfromJson(String jsonString)Create an instance of ResponsePaymentMethod given an JSON stringStringgetBrand()The card brand that the shopper used to pay.StringgetType()The `paymentMethod.type` value used in the request.inthashCode()voidsetBrand(String brand)voidsetType(String type)StringtoJson()Convert an instance of ResponsePaymentMethod to an JSON stringStringtoString()ResponsePaymentMethodtype(String type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_BRAND
public static final String SERIALIZED_NAME_BRAND
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
brand
public ResponsePaymentMethod brand(String brand)
-
getBrand
public String getBrand()
The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**.- Returns:
- brand
-
setBrand
public void setBrand(String brand)
-
type
public ResponsePaymentMethod type(String type)
-
getType
public String getType()
The `paymentMethod.type` value used in the request.- Returns:
- type
-
setType
public void setType(String type)
-
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 ResponsePaymentMethod
-
fromJson
public static ResponsePaymentMethod fromJson(String jsonString) throws IOException
Create an instance of ResponsePaymentMethod given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ResponsePaymentMethod
- Throws:
IOException- if the JSON string is invalid with respect to ResponsePaymentMethod
-
toJson
public String toJson()
Convert an instance of ResponsePaymentMethod to an JSON string- Returns:
- JSON string
-
-