lib/purecloudplatformclientv2/models/survey_assignment.rb in purecloudplatformclientv2-36.1.0 vs lib/purecloudplatformclientv2/models/survey_assignment.rb in purecloudplatformclientv2-37.0.0

- old
+ new

@@ -25,33 +25,47 @@ attr_accessor :flow # An ISO 8601 repeated interval consisting of the number of repetitions, the start datetime, and the interval (e.g. R2/2018-03-01T13:00:00Z/P1M10DT2H30M). Total duration must not exceed 90 days. attr_accessor :invite_time_interval + # User together with sendingDomain used to send email, null to use no-reply + attr_accessor :sending_user + + # Validated email domain, required + attr_accessor :sending_domain + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'survey_form' => :'surveyForm', :'flow' => :'flow', - :'invite_time_interval' => :'inviteTimeInterval' + :'invite_time_interval' => :'inviteTimeInterval', + :'sending_user' => :'sendingUser', + + :'sending_domain' => :'sendingDomain' + } end # Attribute type mapping. def self.swagger_types { - :'survey_form' => :'SurveyFormUriReference', + :'survey_form' => :'PublishedSurveyFormReference', :'flow' => :'UriReference', - :'invite_time_interval' => :'String' + :'invite_time_interval' => :'String', + :'sending_user' => :'String', + + :'sending_domain' => :'String' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -87,10 +101,28 @@ end + if attributes.has_key?(:'sendingUser') + + + self.sending_user = attributes[:'sendingUser'] + + + end + + + if attributes.has_key?(:'sendingDomain') + + + self.sending_domain = attributes[:'sendingDomain'] + + + end + + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properies with the reasons def list_invalid_properties @@ -114,10 +146,23 @@ + + + + + + if @sending_domain.nil? + return false + end + + + + + end @@ -132,18 +177,30 @@ + + + + + + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && survey_form == o.survey_form && flow == o.flow && - invite_time_interval == o.invite_time_interval + invite_time_interval == o.invite_time_interval && + sending_user == o.sending_user && + sending_domain == o.sending_domain end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -151,10 +208,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [survey_form, flow, invite_time_interval].hash + [survey_form, flow, invite_time_interval, sending_user, sending_domain].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)