Class CheckoutUtilityResponse


  • public class CheckoutUtilityResponse
    extends Object
    CheckoutUtilityResponse
    • Constructor Detail

      • CheckoutUtilityResponse

        public CheckoutUtilityResponse()
    • Method Detail

      • getOriginKeys

        public Map<String,​String> getOriginKeys()
        The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key.
        Returns:
        originKeys
      • setOriginKeys

        public void setOriginKeys​(Map<String,​String> originKeys)
      • 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 CheckoutUtilityResponse
      • fromJson

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

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