lib/smooch-api/models/webhook.rb in smooch-api-4.0 vs lib/smooch-api/models/webhook.rb in smooch-api-4.1.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: 4.0 +OpenAPI spec version: 4.1 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.2.3-SNAPSHOT =end @@ -25,28 +25,33 @@ attr_accessor :triggers # Secret which will be transmitted with each webhook invocation and can be used to verify the authenticity of the caller. attr_accessor :secret + # The payload version of the webhook. + attr_accessor :version + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'_id' => :'_id', :'target' => :'target', :'triggers' => :'triggers', - :'secret' => :'secret' + :'secret' => :'secret', + :'version' => :'version' } end # Attribute type mapping. def self.swagger_types { :'_id' => :'String', :'target' => :'String', :'triggers' => :'Array<String>', - :'secret' => :'String' + :'secret' => :'String', + :'version' => :'String' } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -72,10 +77,14 @@ if attributes.has_key?(:'secret') self.secret = attributes[:'secret'] end + if attributes.has_key?(:'version') + self.version = attributes[:'version'] + end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properies with the reasons def list_invalid_properties @@ -115,11 +124,12 @@ return true if self.equal?(o) self.class == o.class && _id == o._id && target == o.target && triggers == o.triggers && - secret == o.secret + secret == o.secret && + version == o.version end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -127,10 +137,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [_id, target, triggers, secret].hash + [_id, target, triggers, secret, version].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself