lib/fastly/models/billing_address_request.rb in fastly-4.0.0.alpha4 vs lib/fastly/models/billing_address_request.rb in fastly-4.0.0

- old
+ new

@@ -11,15 +11,19 @@ require 'date' require 'time' module Fastly class BillingAddressRequest + # When set to true, the address will be saved without verification + attr_accessor :skip_verification + attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'skip_verification' => :'skip_verification', :'data' => :'data' } end # Returns all the JSON keys this model knows about @@ -28,10 +32,11 @@ end # Attribute type mapping. def self.fastly_types { + :'skip_verification' => :'Boolean', :'data' => :'BillingAddressRequestData' } end # List of attributes with nullable: true @@ -53,10 +58,14 @@ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::BillingAddressRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } + if attributes.key?(:'skip_verification') + self.skip_verification = attributes[:'skip_verification'] + end + if attributes.key?(:'data') self.data = attributes[:'data'] end end @@ -76,10 +85,11 @@ # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && + skip_verification == o.skip_verification && data == o.data end # @see the `==` method # @param [Object] Object to be compared @@ -88,10 +98,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [data].hash + [skip_verification, data].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself