Class WeChatPayDetails


  • public class WeChatPayDetails
    extends Object
    WeChatPayDetails
    • Constructor Detail

      • WeChatPayDetails

        public WeChatPayDetails()
    • Method Detail

      • getCheckoutAttemptId

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

        public void setCheckoutAttemptId​(String checkoutAttemptId)
      • 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 WeChatPayDetails
      • fromJson

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

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