Package com.adyen.model.checkout
Class PayUUpiDetails
- java.lang.Object
-
- com.adyen.model.checkout.PayUUpiDetails
-
public class PayUUpiDetails extends Object
PayUUpiDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPayUUpiDetails.CustomTypeAdapterFactorystatic classPayUUpiDetails.TypeEnum**payu_IN_upi**
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CHECKOUT_ATTEMPT_IDstatic StringSERIALIZED_NAME_RECURRING_DETAIL_REFERENCEstatic StringSERIALIZED_NAME_SHOPPER_NOTIFICATION_REFERENCEstatic StringSERIALIZED_NAME_STORED_PAYMENT_METHOD_IDstatic StringSERIALIZED_NAME_TYPEstatic StringSERIALIZED_NAME_VIRTUAL_PAYMENT_ADDRESS
-
Constructor Summary
Constructors Constructor Description PayUUpiDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PayUUpiDetailscheckoutAttemptId(String checkoutAttemptId)booleanequals(Object o)static PayUUpiDetailsfromJson(String jsonString)Create an instance of PayUUpiDetails given an JSON stringStringgetCheckoutAttemptId()The checkout attempt identifier.StringgetRecurringDetailReference()Deprecated.StringgetShopperNotificationReference()The `shopperNotificationReference` returned in the response when you requested to notify the shopper.StringgetStoredPaymentMethodId()This is the `recurringDetailReference` returned in the response when you created the token.PayUUpiDetails.TypeEnumgetType()**payu_IN_upi**StringgetVirtualPaymentAddress()The virtual payment address for UPI.inthashCode()PayUUpiDetailsrecurringDetailReference(String recurringDetailReference)voidsetCheckoutAttemptId(String checkoutAttemptId)voidsetRecurringDetailReference(String recurringDetailReference)voidsetShopperNotificationReference(String shopperNotificationReference)voidsetStoredPaymentMethodId(String storedPaymentMethodId)voidsetType(PayUUpiDetails.TypeEnum type)voidsetVirtualPaymentAddress(String virtualPaymentAddress)PayUUpiDetailsshopperNotificationReference(String shopperNotificationReference)PayUUpiDetailsstoredPaymentMethodId(String storedPaymentMethodId)StringtoJson()Convert an instance of PayUUpiDetails to an JSON stringStringtoString()PayUUpiDetailstype(PayUUpiDetails.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundPayUUpiDetailsvirtualPaymentAddress(String virtualPaymentAddress)
-
-
-
Field Detail
-
SERIALIZED_NAME_CHECKOUT_ATTEMPT_ID
public static final String SERIALIZED_NAME_CHECKOUT_ATTEMPT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECURRING_DETAIL_REFERENCE
public static final String SERIALIZED_NAME_RECURRING_DETAIL_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_NOTIFICATION_REFERENCE
public static final String SERIALIZED_NAME_SHOPPER_NOTIFICATION_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STORED_PAYMENT_METHOD_ID
public static final String SERIALIZED_NAME_STORED_PAYMENT_METHOD_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VIRTUAL_PAYMENT_ADDRESS
public static final String SERIALIZED_NAME_VIRTUAL_PAYMENT_ADDRESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkoutAttemptId
public PayUUpiDetails checkoutAttemptId(String checkoutAttemptId)
-
getCheckoutAttemptId
public String getCheckoutAttemptId()
The checkout attempt identifier.- Returns:
- checkoutAttemptId
-
setCheckoutAttemptId
public void setCheckoutAttemptId(String checkoutAttemptId)
-
recurringDetailReference
public PayUUpiDetails recurringDetailReference(String recurringDetailReference)
-
getRecurringDetailReference
@Deprecated public String getRecurringDetailReference()
Deprecated.This is the `recurringDetailReference` returned in the response when you created the token.- Returns:
- recurringDetailReference
-
setRecurringDetailReference
public void setRecurringDetailReference(String recurringDetailReference)
-
shopperNotificationReference
public PayUUpiDetails shopperNotificationReference(String shopperNotificationReference)
-
getShopperNotificationReference
public String getShopperNotificationReference()
The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only.- Returns:
- shopperNotificationReference
-
setShopperNotificationReference
public void setShopperNotificationReference(String shopperNotificationReference)
-
storedPaymentMethodId
public PayUUpiDetails storedPaymentMethodId(String storedPaymentMethodId)
-
getStoredPaymentMethodId
public String getStoredPaymentMethodId()
This is the `recurringDetailReference` returned in the response when you created the token.- Returns:
- storedPaymentMethodId
-
setStoredPaymentMethodId
public void setStoredPaymentMethodId(String storedPaymentMethodId)
-
type
public PayUUpiDetails type(PayUUpiDetails.TypeEnum type)
-
getType
public PayUUpiDetails.TypeEnum getType()
**payu_IN_upi**- Returns:
- type
-
setType
public void setType(PayUUpiDetails.TypeEnum type)
-
virtualPaymentAddress
public PayUUpiDetails virtualPaymentAddress(String virtualPaymentAddress)
-
getVirtualPaymentAddress
public String getVirtualPaymentAddress()
The virtual payment address for UPI.- Returns:
- virtualPaymentAddress
-
setVirtualPaymentAddress
public void setVirtualPaymentAddress(String virtualPaymentAddress)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to PayUUpiDetails
-
fromJson
public static PayUUpiDetails fromJson(String jsonString) throws IOException
Create an instance of PayUUpiDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PayUUpiDetails
- Throws:
IOException- if the JSON string is invalid with respect to PayUUpiDetails
-
toJson
public String toJson()
Convert an instance of PayUUpiDetails to an JSON string- Returns:
- JSON string
-
-