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 stringStringgetShopperReference()Get shopperReferenceinthashCode()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-
-
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
-
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
-
-