lib/smooch-api/models/webhook_update.rb in smooch-api-1.12.0 vs lib/smooch-api/models/webhook_update.rb in smooch-api-2.0.0
- old
+ new
@@ -1,11 +1,11 @@
=begin
#Smooch
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
-OpenAPI spec version: 1.12
+OpenAPI spec version: 2
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.2.3-SNAPSHOT
=end
@@ -19,30 +19,9 @@
attr_accessor :target
# An array of triggers you wish to have the webhook listen to. If unspecified the default trigger is *message*.
attr_accessor :triggers
- class EnumAttributeValidator
- attr_reader :datatype
- attr_reader :allowable_values
-
- def initialize(datatype, allowable_values)
- @allowable_values = allowable_values.map do |value|
- case datatype.to_s
- when /Integer/i
- value.to_i
- when /Float/i
- value.to_f
- else
- value
- end
- end
- end
-
- def valid?(value)
- !value || allowable_values.include?(value)
- end
- end
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'target' => :'target',