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.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetType()The `paymentMethod.type` value used in the request.inthashCode()ResponsePaymentMethodincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.voidsetBrand(String brand)The card brand that the shopper used to pay.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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- The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**.- 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 The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**.
-
setBrand
public void setBrand(String brand)
The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**.- Parameters:
brand- The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**.
-
type
public ResponsePaymentMethod type(String type)
The `paymentMethod.type` value used in the request.- Parameters:
type- The `paymentMethod.type` value used in the request.- Returns:
- the current
ResponsePaymentMethodinstance, allowing for method chaining
-
getType
public String getType()
The `paymentMethod.type` value used in the request.- Returns:
- type The `paymentMethod.type` value used in the request.
-
setType
public void setType(String type)
The `paymentMethod.type` value used in the request.- Parameters:
type- The `paymentMethod.type` value used in the request.
-
includeNullValues
public ResponsePaymentMethod includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this ResponsePaymentMethod object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-