lib/purecloudplatformclientv2/models/response_config.rb in purecloudplatformclientv2-42.0.0 vs lib/purecloudplatformclientv2/models/response_config.rb in purecloudplatformclientv2-43.0.0

- old
+ new

@@ -20,10 +20,13 @@ # Defines response components of the Action Request. class ResponseConfig # Map 'attribute name' and 'JSON path' pairs used to extract data from REST response. attr_accessor :translation_map + # Map 'attribute name' and 'default value' pairs used as fallback values if JSON path extraction fails for specified key. + attr_accessor :translation_map_defaults + # Velocity template to build response to return from Action. attr_accessor :success_template # URI to retrieve success template. attr_accessor :success_template_uri @@ -32,10 +35,12 @@ def self.attribute_map { :'translation_map' => :'translationMap', + :'translation_map_defaults' => :'translationMapDefaults', + :'success_template' => :'successTemplate', :'success_template_uri' => :'successTemplateUri' } @@ -45,10 +50,12 @@ def self.swagger_types { :'translation_map' => :'Hash<String, String>', + :'translation_map_defaults' => :'Hash<String, String>', + :'success_template' => :'String', :'success_template_uri' => :'String' } @@ -72,10 +79,21 @@ end + if attributes.has_key?(:'translationMapDefaults') + + if (value = attributes[:'translationMapDefaults']).is_a?(Array) + self.translation_map_defaults = value + end + + + + end + + if attributes.has_key?(:'successTemplate') self.success_template = attributes[:'successTemplate'] @@ -117,10 +135,14 @@ + + + + end @@ -135,16 +157,22 @@ + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && translation_map == o.translation_map && + translation_map_defaults == o.translation_map_defaults && success_template == o.success_template && success_template_uri == o.success_template_uri end # @see the `==` method @@ -154,10 +182,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [translation_map, success_template, success_template_uri].hash + [translation_map, translation_map_defaults, success_template, success_template_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)