lib/dropbox-sign/models/account_response.rb in dropbox-sign-1.4.1 vs lib/dropbox-sign/models/account_response.rb in dropbox-sign-1.5.0

- old
+ new

@@ -4,11 +4,11 @@ #Dropbox Sign v3 API The version of the OpenAPI document: 3.0.0 Contact: apisupport@hellosign.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.3.0 +Generator version: 7.7.0 =end require 'date' require 'time' @@ -55,10 +55,13 @@ # The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. # @return [String, nil] attr_accessor :locale + # @return [AccountResponseUsage] + attr_accessor :usage + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'account_id' => :'account_id', :'email_address' => :'email_address', @@ -67,11 +70,12 @@ :'is_paid_hf' => :'is_paid_hf', :'quotas' => :'quotas', :'callback_url' => :'callback_url', :'role_code' => :'role_code', :'team_id' => :'team_id', - :'locale' => :'locale' + :'locale' => :'locale', + :'usage' => :'usage' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -93,11 +97,12 @@ :'is_paid_hf' => :'Boolean', :'quotas' => :'AccountResponseQuotas', :'callback_url' => :'String', :'role_code' => :'String', :'team_id' => :'String', - :'locale' => :'String' + :'locale' => :'String', + :'usage' => :'AccountResponseUsage' } end # Attribute type mapping of this model + parent def self.merged_types @@ -108,11 +113,11 @@ def self.openapi_nullable Set.new([ :'callback_url', :'role_code', :'team_id', - :'locale' + :'locale', ]) end # Returns list of attributes with nullable: true of this model + parent def self.merged_nullable @@ -181,10 +186,14 @@ end if attributes.key?(:'locale') self.locale = attributes[:'locale'] end + + if attributes.key?(:'usage') + self.usage = attributes[:'usage'] + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties @@ -210,11 +219,12 @@ is_paid_hf == o.is_paid_hf && quotas == o.quotas && callback_url == o.callback_url && role_code == o.role_code && team_id == o.team_id && - locale == o.locale + locale == o.locale && + usage == o.usage end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -222,11 +232,11 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [account_id, email_address, is_locked, is_paid_hs, is_paid_hf, quotas, callback_url, role_code, team_id, locale].hash + [account_id, email_address, is_locked, is_paid_hs, is_paid_hf, quotas, callback_url, role_code, team_id, locale, usage].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself @@ -276,12 +286,10 @@ if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end - when :File - value when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] @@ -295,10 +303,10 @@ end end else # model # models (e.g. Pet) klass = Dropbox::Sign.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end # Returns the string representation of the object # @return [String] String presentation of the object