Class UpiIntentDetails


  • public class UpiIntentDetails
    extends Object
    UpiIntentDetails
    • Constructor Detail

      • UpiIntentDetails

        public UpiIntentDetails()
    • Method Detail

      • getCheckoutAttemptId

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

        public void setCheckoutAttemptId​(String checkoutAttemptId)
      • recurringDetailReference

        public UpiIntentDetails 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 UpiIntentDetails 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)
      • 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)
      • 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 UpiIntentDetails
      • fromJson

        public static UpiIntentDetails fromJson​(String jsonString)
                                         throws IOException
        Create an instance of UpiIntentDetails given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of UpiIntentDetails
        Throws:
        IOException - if the JSON string is invalid with respect to UpiIntentDetails
      • toJson

        public String toJson()
        Convert an instance of UpiIntentDetails to an JSON string
        Returns:
        JSON string