Package com.adyen.model.checkout
Class ResponsePaymentMethod
- java.lang.Object
-
- com.adyen.model.checkout.ResponsePaymentMethod
-
public class ResponsePaymentMethod extends Object
ResponsePaymentMethod
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BRANDstatic StringJSON_PROPERTY_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)The card brand that the shopper used to pay.booleanequals(Object o)Return true if this ResponsePaymentMethod object is equal to 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)The card brand that the shopper used to pay.voidsetType(String type)The `paymentMethod.type` value used in the request.StringtoJson()Convert an instance of ResponsePaymentMethod to an JSON stringStringtoString()ResponsePaymentMethodtype(String type)The `paymentMethod.type` value used in the request.
-
-
-
Field Detail
-
JSON_PROPERTY_BRAND
public static final String JSON_PROPERTY_BRAND
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
brand
public ResponsePaymentMethod brand(String brand)
The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**.- Parameters:
brand-- Returns:
- the current
ResponsePaymentMethodinstance, allowing for method chaining
-
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)
The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**.- Parameters:
brand-
-
type
public ResponsePaymentMethod type(String type)
The `paymentMethod.type` value used in the request.- Parameters:
type-- Returns:
- the current
ResponsePaymentMethodinstance, allowing for method chaining
-
getType
public String getType()
The `paymentMethod.type` value used in the request.- Returns:
- type
-
setType
public void setType(String type)
The `paymentMethod.type` value used in the request.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this ResponsePaymentMethod object is equal to o.
-
fromJson
public static ResponsePaymentMethod fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ResponsePaymentMethod given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ResponsePaymentMethod
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ResponsePaymentMethod
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ResponsePaymentMethod to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-