lib/moneykit/models/update_link_request.rb in moneykit-0.1.13 vs lib/moneykit/models/update_link_request.rb in moneykit-0.1.14

- old
+ new

@@ -16,16 +16,19 @@ module MoneyKit class UpdateLinkRequest # Sets the webhook URL for this link. To remove a webhook for this link, set to `null`. attr_accessor :webhook + attr_accessor :link_tags + attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'webhook' => :'webhook', + :'link_tags' => :'link_tags', :'tags' => :'tags' } end # Returns all the JSON keys this model knows about @@ -35,10 +38,11 @@ # Attribute type mapping. def self.openapi_types { :'webhook' => :'String', + :'link_tags' => :'Array<String>', :'tags' => :'Array<String>' } end # List of attributes with nullable: true @@ -64,10 +68,16 @@ if attributes.key?(:'webhook') self.webhook = attributes[:'webhook'] end + if attributes.key?(:'link_tags') + if (value = attributes[:'link_tags']).is_a?(Array) + self.link_tags = value + end + end + if attributes.key?(:'tags') if (value = attributes[:'tags']).is_a?(Array) self.tags = value end end @@ -120,10 +130,11 @@ # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && webhook == o.webhook && + link_tags == o.link_tags && tags == o.tags end # @see the `==` method # @param [Object] Object to be compared @@ -132,11 +143,11 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [webhook, tags].hash + [webhook, link_tags, tags].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself @@ -167,10 +178,10 @@ def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) when :Date - ::Date.parse(value) + Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float