lib/brevo/models/request_contact_import.rb in brevo-2.0.0 vs lib/brevo/models/request_contact_import.rb in brevo-3.0.0
- old
+ new
@@ -32,10 +32,13 @@
attr_accessor :new_list
# To blacklist all the contacts for email
attr_accessor :email_blacklist
+ # To disable email notification
+ attr_accessor :disable_notification
+
# To blacklist all the contacts for sms
attr_accessor :sms_blacklist
# To facilitate the choice to update the existing contacts
attr_accessor :update_existing_contacts
@@ -51,10 +54,11 @@
:'json_body' => :'jsonBody',
:'list_ids' => :'listIds',
:'notify_url' => :'notifyUrl',
:'new_list' => :'newList',
:'email_blacklist' => :'emailBlacklist',
+ :'disable_notification' => :'disableNotification',
:'sms_blacklist' => :'smsBlacklist',
:'update_existing_contacts' => :'updateExistingContacts',
:'empty_contacts_attributes' => :'emptyContactsAttributes'
}
end
@@ -67,10 +71,11 @@
:'json_body' => :'Array<RequestContactImportJsonBody>',
:'list_ids' => :'Array<Integer>',
:'notify_url' => :'String',
:'new_list' => :'RequestContactImportNewList',
:'email_blacklist' => :'BOOLEAN',
+ :'disable_notification' => :'BOOLEAN',
:'sms_blacklist' => :'BOOLEAN',
:'update_existing_contacts' => :'BOOLEAN',
:'empty_contacts_attributes' => :'BOOLEAN'
}
end
@@ -115,10 +120,16 @@
self.email_blacklist = attributes[:'emailBlacklist']
else
self.email_blacklist = false
end
+ if attributes.has_key?(:'disableNotification')
+ self.disable_notification = attributes[:'disableNotification']
+ else
+ self.disable_notification = false
+ end
+
if attributes.has_key?(:'smsBlacklist')
self.sms_blacklist = attributes[:'smsBlacklist']
else
self.sms_blacklist = false
end
@@ -159,10 +170,11 @@
json_body == o.json_body &&
list_ids == o.list_ids &&
notify_url == o.notify_url &&
new_list == o.new_list &&
email_blacklist == o.email_blacklist &&
+ disable_notification == o.disable_notification &&
sms_blacklist == o.sms_blacklist &&
update_existing_contacts == o.update_existing_contacts &&
empty_contacts_attributes == o.empty_contacts_attributes
end
@@ -173,10 +185,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [file_url, file_body, json_body, list_ids, notify_url, new_list, email_blacklist, sms_blacklist, update_existing_contacts, empty_contacts_attributes].hash
+ [file_url, file_body, json_body, list_ids, notify_url, new_list, email_blacklist, disable_notification, sms_blacklist, update_existing_contacts, empty_contacts_attributes].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself