lib/purecloudplatformclientv2/models/journey_customer.rb in purecloudplatformclientv2-51.0.0 vs lib/purecloudplatformclientv2/models/journey_customer.rb in purecloudplatformclientv2-52.0.0

- old
+ new

@@ -20,30 +20,30 @@ class JourneyCustomer # An ID of a customer within the Journey System at a point-in-time. Note that a customer entity can have multiple customerIds based on the stitching process. Depending on the context within the PureCloud conversation, this may or may not be mutable. attr_accessor :id # The type of the customerId within the Journey System (e.g. cookie). - attr_accessor :type + attr_accessor :id_type # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', - :'type' => :'type' + :'id_type' => :'idType' } end # Attribute type mapping. def self.swagger_types { :'id' => :'String', - :'type' => :'String' + :'id_type' => :'String' } end # Initializes the object @@ -62,14 +62,14 @@ end - if attributes.has_key?(:'type') + if attributes.has_key?(:'idType') - self.type = attributes[:'type'] + self.id_type = attributes[:'idType'] end @@ -96,11 +96,11 @@ - if @type.nil? + if @id_type.nil? return false end @@ -123,11 +123,11 @@ # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && - type == o.type + id_type == o.id_type end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -135,10 +135,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, type].hash + [id, id_type].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)