Package com.adyen.model.checkout
Class UPIPaymentMethod
- java.lang.Object
-
- com.adyen.model.checkout.ShopperIdPaymentMethod
-
- com.adyen.model.checkout.UPIPaymentMethod
-
public class UPIPaymentMethod extends ShopperIdPaymentMethod
UPIPaymentMethod
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS-
Fields inherited from class com.adyen.model.checkout.ShopperIdPaymentMethod
JSON_PROPERTY_TYPE
-
-
Constructor Summary
Constructors Constructor Description UPIPaymentMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this UPIPaymentMethod object is equal to o.static UPIPaymentMethodfromJson(String jsonString)Create an instance of UPIPaymentMethod given an JSON stringStringgetVirtualPaymentAddress()Get virtualPaymentAddressinthashCode()voidsetVirtualPaymentAddress(String virtualPaymentAddress)virtualPaymentAddressStringtoJson()Convert an instance of UPIPaymentMethod to an JSON stringStringtoString()UPIPaymentMethodvirtualPaymentAddress(String virtualPaymentAddress)virtualPaymentAddress-
Methods inherited from class com.adyen.model.checkout.ShopperIdPaymentMethod
getType, setType, type
-
-
-
-
Field Detail
-
JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS
public static final String JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
virtualPaymentAddress
public UPIPaymentMethod virtualPaymentAddress(String virtualPaymentAddress)
virtualPaymentAddress- Parameters:
virtualPaymentAddress-- Returns:
- the current
UPIPaymentMethodinstance, allowing for method chaining
-
getVirtualPaymentAddress
public String getVirtualPaymentAddress()
Get virtualPaymentAddress- Returns:
- virtualPaymentAddress
-
setVirtualPaymentAddress
public void setVirtualPaymentAddress(String virtualPaymentAddress)
virtualPaymentAddress- Parameters:
virtualPaymentAddress-
-
equals
public boolean equals(Object o)
Return true if this UPIPaymentMethod 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 UPIPaymentMethod fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of UPIPaymentMethod given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UPIPaymentMethod
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to UPIPaymentMethod
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of UPIPaymentMethod to an JSON string- Overrides:
toJsonin classShopperIdPaymentMethod- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-