Class PayUUpiDetails


  • public class PayUUpiDetails
    extends Object
    PayUUpiDetails
    • Constructor Detail

      • PayUUpiDetails

        public PayUUpiDetails()
    • Method Detail

      • getCheckoutAttemptId

        public String getCheckoutAttemptId()
        The checkout attempt identifier.
        Returns:
        checkoutAttemptId
      • setCheckoutAttemptId

        public void setCheckoutAttemptId​(String checkoutAttemptId)
      • getRecurringDetailReference

        @Deprecated
        public String getRecurringDetailReference()
        Deprecated.
        This is the `recurringDetailReference` returned in the response when you created the token.
        Returns:
        recurringDetailReference
      • setRecurringDetailReference

        @Deprecated
        public void setRecurringDetailReference​(String recurringDetailReference)
        Deprecated.
      • 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)
      • virtualPaymentAddress

        public PayUUpiDetails virtualPaymentAddress​(String virtualPaymentAddress)
      • getVirtualPaymentAddress

        public String getVirtualPaymentAddress()
        The virtual payment address for UPI.
        Returns:
        virtualPaymentAddress
      • setVirtualPaymentAddress

        public void setVirtualPaymentAddress​(String virtualPaymentAddress)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates 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