Class TransactionRuleResponse


  • public class TransactionRuleResponse
    extends Object
    TransactionRuleResponse
    • Constructor Detail

      • TransactionRuleResponse

        public TransactionRuleResponse()
    • Method Detail

      • getTransactionRule

        public TransactionRule getTransactionRule()
        Get transactionRule
        Returns:
        transactionRule
      • setTransactionRule

        public void setTransactionRule​(TransactionRule transactionRule)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Throws:
        IOException
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj,
                                              boolean strictValidation)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        strictValidation - reject (new) fields missing from the specifications
        Throws:
        IOException - if the JSON Object is invalid with respect to TransactionRuleResponse
      • fromJson

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

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