lib/purecloudplatformclientv2/models/organization.rb in purecloudplatformclientv2-78.1.0 vs lib/purecloudplatformclientv2/models/organization.rb in purecloudplatformclientv2-79.0.0

- old
+ new

@@ -47,10 +47,13 @@ # Email address where support tickets are sent to. attr_accessor :support_uri attr_accessor :voicemail_enabled + # Organizations Originating Platform. + attr_accessor :product_platform + # The URI for this object attr_accessor :self_uri # The state of features available for the organization. attr_accessor :features @@ -81,10 +84,12 @@ :'support_uri' => :'supportURI', :'voicemail_enabled' => :'voicemailEnabled', + :'product_platform' => :'productPlatform', + :'self_uri' => :'selfUri', :'features' => :'features' } @@ -116,10 +121,12 @@ :'support_uri' => :'String', :'voicemail_enabled' => :'BOOLEAN', + :'product_platform' => :'String', + :'self_uri' => :'String', :'features' => :'Hash<String, BOOLEAN>' } @@ -240,10 +247,19 @@ end + if attributes.has_key?(:'productPlatform') + + + self.product_platform = attributes[:'productPlatform'] + + + end + + if attributes.has_key?(:'selfUri') self.self_uri = attributes[:'selfUri'] @@ -335,16 +351,25 @@ + allowed_values = ["PureCloud", "PureEngage", "PureEngageCloud", "PureConnect", "PureConnectCloud", "Unknown"] + if @product_platform && !allowed_values.include?(@product_platform) + return false + end + + + + + end @@ -414,19 +439,33 @@ + # Custom attribute writer method checking allowed values (enum). + # @param [Object] product_platform Object to be assigned + def product_platform=(product_platform) + allowed_values = ["PureCloud", "PureEngage", "PureEngageCloud", "PureConnect", "PureConnectCloud", "Unknown"] + if product_platform && !allowed_values.include?(product_platform) + fail ArgumentError, "invalid value for 'product_platform', must be one of #{allowed_values}." + end + @product_platform = product_platform + end + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && @@ -440,10 +479,11 @@ version == o.version && state == o.state && default_site_id == o.default_site_id && support_uri == o.support_uri && voicemail_enabled == o.voicemail_enabled && + product_platform == o.product_platform && self_uri == o.self_uri && features == o.features end # @see the `==` method @@ -453,10 +493,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, name, default_language, default_country_code, third_party_org_name, third_party_uri, domain, version, state, default_site_id, support_uri, voicemail_enabled, self_uri, features].hash + [id, name, default_language, default_country_code, third_party_org_name, third_party_uri, domain, version, state, default_site_id, support_uri, voicemail_enabled, product_platform, self_uri, features].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)