Package com.adyen.model.checkout
Class PayToPaymentMethod
- java.lang.Object
-
- com.adyen.model.checkout.ShopperIdPaymentMethod
-
- com.adyen.model.checkout.PayToPaymentMethod
-
public class PayToPaymentMethod extends ShopperIdPaymentMethod
PayToPaymentMethod
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_SHOPPER_REFERENCE-
Fields inherited from class com.adyen.model.checkout.ShopperIdPaymentMethod
JSON_PROPERTY_TYPE
-
-
Constructor Summary
Constructors Constructor Description PayToPaymentMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this PayToPaymentMethod object is equal to o.static PayToPaymentMethodfromJson(String jsonString)Create an instance of PayToPaymentMethod given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetShopperReference()Get shopperReferenceinthashCode()PayToPaymentMethodincludeNullValues(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.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetShopperReference(String shopperReference)shopperReferencePayToPaymentMethodshopperReference(String shopperReference)shopperReferenceStringtoJson()Convert an instance of PayToPaymentMethod to an JSON stringStringtoString()-
Methods inherited from class com.adyen.model.checkout.ShopperIdPaymentMethod
getType, setType, type
-
-
-
-
Field Detail
-
JSON_PROPERTY_SHOPPER_REFERENCE
public static final String JSON_PROPERTY_SHOPPER_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
shopperReference
public PayToPaymentMethod shopperReference(String shopperReference)
shopperReference- Parameters:
shopperReference-- Returns:
- the current
PayToPaymentMethodinstance, allowing for method chaining
-
getShopperReference
public String getShopperReference()
Get shopperReference- Returns:
- shopperReference
-
setShopperReference
public void setShopperReference(String shopperReference)
shopperReference- Parameters:
shopperReference-
-
includeNullValues
public PayToPaymentMethod includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.- Overrides:
includeNullValuesin classShopperIdPaymentMethod
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.- Overrides:
isIncludeNullValuesin classShopperIdPaymentMethod
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.- Overrides:
setIncludeNullValuesin classShopperIdPaymentMethod
-
equals
public boolean equals(Object o)
Return true if this PayToPaymentMethod object is equal to o.- Overrides:
equalsin classShopperIdPaymentMethod
-
hashCode
public int hashCode()
- Overrides:
hashCodein classShopperIdPaymentMethod
-
toString
public String toString()
- Overrides:
toStringin classShopperIdPaymentMethod
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.- Overrides:
getExplicitNullsin classShopperIdPaymentMethod
-
fromJson
public static PayToPaymentMethod fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PayToPaymentMethod given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PayToPaymentMethod
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PayToPaymentMethod
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PayToPaymentMethod to an JSON string- Overrides:
toJsonin classShopperIdPaymentMethod- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-