sib-api-v3-sdk 4.0.1 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -1
  3. data/docs/CreateAttribute.md +3 -3
  4. data/docs/CreateContact.md +5 -5
  5. data/docs/CreateList.md +1 -1
  6. data/docs/DeleteHardbounces.md +2 -2
  7. data/docs/GetCampaignStats.md +3 -3
  8. data/docs/GetContactDetails.md +1 -1
  9. data/docs/GetExtendedCampaignStats.md +3 -2
  10. data/docs/GetExtendedContactDetails.md +1 -1
  11. data/docs/RequestContactExport.md +2 -2
  12. data/docs/RequestContactImport.md +5 -2
  13. data/docs/RequestContactImportNewList.md +1 -1
  14. data/docs/SMTPApi.md +2 -0
  15. data/docs/SendEmail.md +8 -7
  16. data/docs/SendEmailAttachment.md +2 -2
  17. data/docs/SendSmtpEmail.md +7 -6
  18. data/docs/SendSmtpEmailAttachment.md +1 -1
  19. data/docs/SendSmtpEmailSender.md +2 -2
  20. data/docs/SendTestEmail.md +1 -1
  21. data/docs/UpdateAttribute.md +2 -2
  22. data/docs/UpdateContact.md +3 -3
  23. data/docs/UpdateList.md +2 -2
  24. data/lib/sib-api-v3-sdk.rb +0 -1
  25. data/lib/sib-api-v3-sdk/api/smtp_api.rb +2 -2
  26. data/lib/sib-api-v3-sdk/models/create_attribute.rb +3 -3
  27. data/lib/sib-api-v3-sdk/models/create_contact.rb +5 -5
  28. data/lib/sib-api-v3-sdk/models/create_email_campaign_recipients.rb +1 -1
  29. data/lib/sib-api-v3-sdk/models/create_email_campaign_sender.rb +1 -1
  30. data/lib/sib-api-v3-sdk/models/create_list.rb +1 -1
  31. data/lib/sib-api-v3-sdk/models/create_smtp_template_sender.rb +1 -1
  32. data/lib/sib-api-v3-sdk/models/delete_hardbounces.rb +2 -2
  33. data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +2 -7
  34. data/lib/sib-api-v3-sdk/models/get_contact_details.rb +3 -4
  35. data/lib/sib-api-v3-sdk/models/get_extended_campaign_stats.rb +20 -5
  36. data/lib/sib-api-v3-sdk/models/get_extended_contact_details.rb +3 -4
  37. data/lib/sib-api-v3-sdk/models/request_contact_export.rb +2 -2
  38. data/lib/sib-api-v3-sdk/models/request_contact_import.rb +42 -6
  39. data/lib/sib-api-v3-sdk/models/request_contact_import_new_list.rb +2 -2
  40. data/lib/sib-api-v3-sdk/models/send_email.rb +25 -15
  41. data/lib/sib-api-v3-sdk/models/send_email_attachment.rb +16 -3
  42. data/lib/sib-api-v3-sdk/models/send_report_email.rb +1 -1
  43. data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +24 -14
  44. data/lib/sib-api-v3-sdk/models/send_smtp_email_attachment.rb +1 -1
  45. data/lib/sib-api-v3-sdk/models/send_smtp_email_reply_to.rb +1 -1
  46. data/lib/sib-api-v3-sdk/models/send_smtp_email_sender.rb +3 -3
  47. data/lib/sib-api-v3-sdk/models/send_test_email.rb +1 -1
  48. data/lib/sib-api-v3-sdk/models/update_attribute.rb +2 -2
  49. data/lib/sib-api-v3-sdk/models/update_contact.rb +5 -6
  50. data/lib/sib-api-v3-sdk/models/update_email_campaign_recipients.rb +1 -1
  51. data/lib/sib-api-v3-sdk/models/update_email_campaign_sender.rb +1 -1
  52. data/lib/sib-api-v3-sdk/models/update_list.rb +2 -2
  53. data/lib/sib-api-v3-sdk/models/update_smtp_template_sender.rb +1 -1
  54. data/lib/sib-api-v3-sdk/version.rb +1 -1
  55. data/spec/api/smtp_api_spec.rb +1 -1
  56. data/spec/models/get_extended_campaign_stats_spec.rb +6 -0
  57. data/spec/models/request_contact_import_spec.rb +18 -0
  58. data/spec/models/send_email_spec.rb +6 -0
  59. data/spec/models/send_smtp_email_spec.rb +6 -0
  60. metadata +2 -6
  61. data/docs/GetExtendedCampaignStatsLinksStats.md +0 -8
  62. data/lib/sib-api-v3-sdk/models/get_extended_campaign_stats_links_stats.rb +0 -194
  63. data/spec/models/get_extended_campaign_stats_links_stats_spec.rb +0 -42
@@ -34,6 +34,7 @@ module SibApiV3Sdk
34
34
 
35
35
  attr_accessor :list_unsubscribed
36
36
 
37
+ # Set of attributes of the contact
37
38
  attr_accessor :attributes
38
39
 
39
40
 
@@ -61,7 +62,7 @@ module SibApiV3Sdk
61
62
  :'modified_at' => :'DateTime',
62
63
  :'list_ids' => :'Array<Integer>',
63
64
  :'list_unsubscribed' => :'Array<Integer>',
64
- :'attributes' => :'Hash<String, String>'
65
+ :'attributes' => :'Object'
65
66
  }
66
67
  end
67
68
 
@@ -106,9 +107,7 @@ module SibApiV3Sdk
106
107
  end
107
108
 
108
109
  if attributes.has_key?(:'attributes')
109
- if (value = attributes[:'attributes']).is_a?(Hash)
110
- self.attributes = value
111
- end
110
+ self.attributes = attributes[:'attributes']
112
111
  end
113
112
 
114
113
  end
@@ -15,6 +15,10 @@ require 'date'
15
15
  module SibApiV3Sdk
16
16
 
17
17
  class GetExtendedCampaignStats
18
+ # Overall statistics of the campaign
19
+ attr_accessor :global_stats
20
+
21
+ # List-wise statistics of the campaign.
18
22
  attr_accessor :campaign_stats
19
23
 
20
24
  # Number of clicks on mirror link
@@ -23,6 +27,7 @@ module SibApiV3Sdk
23
27
  # Number of remaning emails to send
24
28
  attr_accessor :remaining
25
29
 
30
+ # Statistics about the number of clicks for the links
26
31
  attr_accessor :links_stats
27
32
 
28
33
  attr_accessor :stats_by_domain
@@ -31,6 +36,7 @@ module SibApiV3Sdk
31
36
  # Attribute mapping from ruby-style variable name to JSON key.
32
37
  def self.attribute_map
33
38
  {
39
+ :'global_stats' => :'globalStats',
34
40
  :'campaign_stats' => :'campaignStats',
35
41
  :'mirror_click' => :'mirrorClick',
36
42
  :'remaining' => :'remaining',
@@ -42,10 +48,11 @@ module SibApiV3Sdk
42
48
  # Attribute type mapping.
43
49
  def self.swagger_types
44
50
  {
51
+ :'global_stats' => :'Object',
45
52
  :'campaign_stats' => :'Array<Object>',
46
53
  :'mirror_click' => :'Integer',
47
54
  :'remaining' => :'Integer',
48
- :'links_stats' => :'Hash<String, GetExtendedCampaignStatsLinksStats>',
55
+ :'links_stats' => :'Object',
49
56
  :'stats_by_domain' => :'GetStatsByDomain'
50
57
  }
51
58
  end
@@ -58,6 +65,10 @@ module SibApiV3Sdk
58
65
  # convert string to symbol for hash key
59
66
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
60
67
 
68
+ if attributes.has_key?(:'globalStats')
69
+ self.global_stats = attributes[:'globalStats']
70
+ end
71
+
61
72
  if attributes.has_key?(:'campaignStats')
62
73
  if (value = attributes[:'campaignStats']).is_a?(Array)
63
74
  self.campaign_stats = value
@@ -73,9 +84,7 @@ module SibApiV3Sdk
73
84
  end
74
85
 
75
86
  if attributes.has_key?(:'linksStats')
76
- if (value = attributes[:'linksStats']).is_a?(Hash)
77
- self.links_stats = value
78
- end
87
+ self.links_stats = attributes[:'linksStats']
79
88
  end
80
89
 
81
90
  if attributes.has_key?(:'statsByDomain')
@@ -88,6 +97,10 @@ module SibApiV3Sdk
88
97
  # @return Array for valid properties with the reasons
89
98
  def list_invalid_properties
90
99
  invalid_properties = Array.new
100
+ if @global_stats.nil?
101
+ invalid_properties.push("invalid value for 'global_stats', global_stats cannot be nil.")
102
+ end
103
+
91
104
  if @campaign_stats.nil?
92
105
  invalid_properties.push("invalid value for 'campaign_stats', campaign_stats cannot be nil.")
93
106
  end
@@ -114,6 +127,7 @@ module SibApiV3Sdk
114
127
  # Check to see if the all the properties in the model are valid
115
128
  # @return true if the model is valid
116
129
  def valid?
130
+ return false if @global_stats.nil?
117
131
  return false if @campaign_stats.nil?
118
132
  return false if @mirror_click.nil?
119
133
  return false if @remaining.nil?
@@ -127,6 +141,7 @@ module SibApiV3Sdk
127
141
  def ==(o)
128
142
  return true if self.equal?(o)
129
143
  self.class == o.class &&
144
+ global_stats == o.global_stats &&
130
145
  campaign_stats == o.campaign_stats &&
131
146
  mirror_click == o.mirror_click &&
132
147
  remaining == o.remaining &&
@@ -143,7 +158,7 @@ module SibApiV3Sdk
143
158
  # Calculates hash code according to all attributes.
144
159
  # @return [Fixnum] Hash code
145
160
  def hash
146
- [campaign_stats, mirror_click, remaining, links_stats, stats_by_domain].hash
161
+ [global_stats, campaign_stats, mirror_click, remaining, links_stats, stats_by_domain].hash
147
162
  end
148
163
 
149
164
  # Builds the object from hash
@@ -34,6 +34,7 @@ module SibApiV3Sdk
34
34
 
35
35
  attr_accessor :list_unsubscribed
36
36
 
37
+ # Set of attributes of the contact
37
38
  attr_accessor :attributes
38
39
 
39
40
  attr_accessor :statistics
@@ -64,7 +65,7 @@ module SibApiV3Sdk
64
65
  :'modified_at' => :'DateTime',
65
66
  :'list_ids' => :'Array<Integer>',
66
67
  :'list_unsubscribed' => :'Array<Integer>',
67
- :'attributes' => :'Hash<String, String>',
68
+ :'attributes' => :'Object',
68
69
  :'statistics' => :'GetExtendedContactDetailsStatistics'
69
70
  }
70
71
  end
@@ -110,9 +111,7 @@ module SibApiV3Sdk
110
111
  end
111
112
 
112
113
  if attributes.has_key?(:'attributes')
113
- if (value = attributes[:'attributes']).is_a?(Hash)
114
- self.attributes = value
115
- end
114
+ self.attributes = attributes[:'attributes']
116
115
  end
117
116
 
118
117
  if attributes.has_key?(:'statistics')
@@ -15,10 +15,10 @@ require 'date'
15
15
  module SibApiV3Sdk
16
16
 
17
17
  class RequestContactExport
18
- # Name of attributes to export. These attributes must be in your contact database
18
+ # List of all the attributes that you want to export. These attributes must be present in your contact database. For example, ['fname', 'lname', 'email'].
19
19
  attr_accessor :export_attributes
20
20
 
21
- # Filter to apply to the export
21
+ # Set the filter for the contacts to be exported. For example, {'blacklisted':true} will export all the blacklisted contacts.
22
22
  attr_accessor :contact_filter
23
23
 
24
24
  # Webhook that will be called once the export process is finished
@@ -15,13 +15,13 @@ require 'date'
15
15
  module SibApiV3Sdk
16
16
 
17
17
  class RequestContactImport
18
- # Mandatory if fileBody not defined. URL of the file to be imported (no local file). Possible file types: .txt, .csv
18
+ # Mandatory if fileBody is not defined. URL of the file to be imported (no local file). Possible file formats: .txt, .csv
19
19
  attr_accessor :file_url
20
20
 
21
21
  # Mandatory if fileUrl is not defined. CSV content to be imported. Use semicolon to separate multiple attributes
22
22
  attr_accessor :file_body
23
23
 
24
- # Manadatory if newList is not defined. Ids of the lists in which to add the contacts
24
+ # Mandatory if newList is not defined. Ids of the lists in which the contacts shall be imported. For example, [2, 4, 7].
25
25
  attr_accessor :list_ids
26
26
 
27
27
  # URL that will be called once the export process is finished
@@ -29,6 +29,15 @@ module SibApiV3Sdk
29
29
 
30
30
  attr_accessor :new_list
31
31
 
32
+ # To blacklist all the contacts for email
33
+ attr_accessor :email_blacklist
34
+
35
+ # To blacklist all the contacts for sms
36
+ attr_accessor :sms_blacklist
37
+
38
+ # To facilitate the choice to update the existing contacts
39
+ attr_accessor :update_existing_contacts
40
+
32
41
 
33
42
  # Attribute mapping from ruby-style variable name to JSON key.
34
43
  def self.attribute_map
@@ -37,7 +46,10 @@ module SibApiV3Sdk
37
46
  :'file_body' => :'fileBody',
38
47
  :'list_ids' => :'listIds',
39
48
  :'notify_url' => :'notifyUrl',
40
- :'new_list' => :'newList'
49
+ :'new_list' => :'newList',
50
+ :'email_blacklist' => :'emailBlacklist',
51
+ :'sms_blacklist' => :'smsBlacklist',
52
+ :'update_existing_contacts' => :'updateExistingContacts'
41
53
  }
42
54
  end
43
55
 
@@ -48,7 +60,10 @@ module SibApiV3Sdk
48
60
  :'file_body' => :'String',
49
61
  :'list_ids' => :'Array<Integer>',
50
62
  :'notify_url' => :'String',
51
- :'new_list' => :'RequestContactImportNewList'
63
+ :'new_list' => :'RequestContactImportNewList',
64
+ :'email_blacklist' => :'BOOLEAN',
65
+ :'sms_blacklist' => :'BOOLEAN',
66
+ :'update_existing_contacts' => :'BOOLEAN'
52
67
  }
53
68
  end
54
69
 
@@ -82,6 +97,24 @@ module SibApiV3Sdk
82
97
  self.new_list = attributes[:'newList']
83
98
  end
84
99
 
100
+ if attributes.has_key?(:'emailBlacklist')
101
+ self.email_blacklist = attributes[:'emailBlacklist']
102
+ else
103
+ self.email_blacklist = false
104
+ end
105
+
106
+ if attributes.has_key?(:'smsBlacklist')
107
+ self.sms_blacklist = attributes[:'smsBlacklist']
108
+ else
109
+ self.sms_blacklist = false
110
+ end
111
+
112
+ if attributes.has_key?(:'updateExistingContacts')
113
+ self.update_existing_contacts = attributes[:'updateExistingContacts']
114
+ else
115
+ self.update_existing_contacts = true
116
+ end
117
+
85
118
  end
86
119
 
87
120
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -106,7 +139,10 @@ module SibApiV3Sdk
106
139
  file_body == o.file_body &&
107
140
  list_ids == o.list_ids &&
108
141
  notify_url == o.notify_url &&
109
- new_list == o.new_list
142
+ new_list == o.new_list &&
143
+ email_blacklist == o.email_blacklist &&
144
+ sms_blacklist == o.sms_blacklist &&
145
+ update_existing_contacts == o.update_existing_contacts
110
146
  end
111
147
 
112
148
  # @see the `==` method
@@ -118,7 +154,7 @@ module SibApiV3Sdk
118
154
  # Calculates hash code according to all attributes.
119
155
  # @return [Fixnum] Hash code
120
156
  def hash
121
- [file_url, file_body, list_ids, notify_url, new_list].hash
157
+ [file_url, file_body, list_ids, notify_url, new_list, email_blacklist, sms_blacklist, update_existing_contacts].hash
122
158
  end
123
159
 
124
160
  # Builds the object from hash
@@ -13,12 +13,12 @@ Swagger Codegen version: 2.3.1
13
13
  require 'date'
14
14
 
15
15
  module SibApiV3Sdk
16
-
16
+ # To create a new list and import the contacts into it, pass the listName and an optional folderId.
17
17
  class RequestContactImportNewList
18
18
  # List with listName will be created first and users will be imported in it (Mandatory if listIds is empty).
19
19
  attr_accessor :list_name
20
20
 
21
- # Folder id will be used with listName to make newly created list’s desired parent (Mandatory if listName is not empty).
21
+ # Id of the folder where this new list shall be created (Mandatory if listName is not empty).
22
22
  attr_accessor :folder_id
23
23
 
24
24
 
@@ -15,28 +15,33 @@ require 'date'
15
15
  module SibApiV3Sdk
16
16
 
17
17
  class SendEmail
18
- # Email addresses of the recipients
18
+ # List of the email addresses of the recipients. For example, ['abc@example.com', 'asd@example.com'].
19
19
  attr_accessor :email_to
20
20
 
21
- # Email addresses of the recipients in bcc
21
+ # List of the email addresses of the recipients in bcc
22
22
  attr_accessor :email_bcc
23
23
 
24
- # Email addresses of the recipients in cc
24
+ # List of the email addresses of the recipients in cc
25
25
  attr_accessor :email_cc
26
26
 
27
- # Email on which campaign recipients will be able to reply to
27
+ # Email address which shall be used by campaign recipients to reply back
28
28
  attr_accessor :reply_to
29
29
 
30
30
  # Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps
31
31
  attr_accessor :attachment_url
32
32
 
33
- # Pass the base64 content of the attachment. Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps
33
+ # Pass the list of content (base64 encoded) and name of the attachment. For example, [{'content':'base64 encoded content 1', 'name':'attcahment1'}, {'content':'base64 encoded content 2', 'name':'attcahment2'}].
34
34
  attr_accessor :attachment
35
35
 
36
+ # Pass the set of headers that shall be sent along the mail headers in the original email. 'X-Mailin-IP' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, {'Content-Type':'text/html', 'charset':'iso-8859-1', 'X-Mailin-IP':'1.2.3.4'}
36
37
  attr_accessor :headers
37
38
 
39
+ # Pass the set of attributes to customize the template. For example, {'FNAME':'Joe', 'LNAME':'Doe'}
38
40
  attr_accessor :attributes
39
41
 
42
+ # Tag your emails to find them more easily
43
+ attr_accessor :tags
44
+
40
45
 
41
46
  # Attribute mapping from ruby-style variable name to JSON key.
42
47
  def self.attribute_map
@@ -48,7 +53,8 @@ module SibApiV3Sdk
48
53
  :'attachment_url' => :'attachmentUrl',
49
54
  :'attachment' => :'attachment',
50
55
  :'headers' => :'headers',
51
- :'attributes' => :'attributes'
56
+ :'attributes' => :'attributes',
57
+ :'tags' => :'tags'
52
58
  }
53
59
  end
54
60
 
@@ -61,8 +67,9 @@ module SibApiV3Sdk
61
67
  :'reply_to' => :'String',
62
68
  :'attachment_url' => :'String',
63
69
  :'attachment' => :'Array<SendEmailAttachment>',
64
- :'headers' => :'Hash<String, String>',
65
- :'attributes' => :'Hash<String, String>'
70
+ :'headers' => :'Object',
71
+ :'attributes' => :'Object',
72
+ :'tags' => :'Array<String>'
66
73
  }
67
74
  end
68
75
 
@@ -107,14 +114,16 @@ module SibApiV3Sdk
107
114
  end
108
115
 
109
116
  if attributes.has_key?(:'headers')
110
- if (value = attributes[:'headers']).is_a?(Hash)
111
- self.headers = value
112
- end
117
+ self.headers = attributes[:'headers']
113
118
  end
114
119
 
115
120
  if attributes.has_key?(:'attributes')
116
- if (value = attributes[:'attributes']).is_a?(Hash)
117
- self.attributes = value
121
+ self.attributes = attributes[:'attributes']
122
+ end
123
+
124
+ if attributes.has_key?(:'tags')
125
+ if (value = attributes[:'tags']).is_a?(Array)
126
+ self.tags = value
118
127
  end
119
128
  end
120
129
 
@@ -150,7 +159,8 @@ module SibApiV3Sdk
150
159
  attachment_url == o.attachment_url &&
151
160
  attachment == o.attachment &&
152
161
  headers == o.headers &&
153
- attributes == o.attributes
162
+ attributes == o.attributes &&
163
+ tags == o.tags
154
164
  end
155
165
 
156
166
  # @see the `==` method
@@ -162,7 +172,7 @@ module SibApiV3Sdk
162
172
  # Calculates hash code according to all attributes.
163
173
  # @return [Fixnum] Hash code
164
174
  def hash
165
- [email_to, email_bcc, email_cc, reply_to, attachment_url, attachment, headers, attributes].hash
175
+ [email_to, email_bcc, email_cc, reply_to, attachment_url, attachment, headers, attributes, tags].hash
166
176
  end
167
177
 
168
178
  # Builds the object from hash
@@ -60,25 +60,38 @@ module SibApiV3Sdk
60
60
  # @return Array for valid properties with the reasons
61
61
  def list_invalid_properties
62
62
  invalid_properties = Array.new
63
- if !@content.nil? && @content !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
63
+ if @content.nil?
64
+ invalid_properties.push("invalid value for 'content', content cannot be nil.")
65
+ end
66
+
67
+ if @content !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
64
68
  invalid_properties.push("invalid value for 'content', must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.")
65
69
  end
66
70
 
71
+ if @name.nil?
72
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
73
+ end
74
+
67
75
  return invalid_properties
68
76
  end
69
77
 
70
78
  # Check to see if the all the properties in the model are valid
71
79
  # @return true if the model is valid
72
80
  def valid?
73
- return false if !@content.nil? && @content !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
81
+ return false if @content.nil?
82
+ return false if @content !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
83
+ return false if @name.nil?
74
84
  return true
75
85
  end
76
86
 
77
87
  # Custom attribute writer method with validation
78
88
  # @param [Object] content Value to be assigned
79
89
  def content=(content)
90
+ if content.nil?
91
+ fail ArgumentError, "content cannot be nil"
92
+ end
80
93
 
81
- if !content.nil? && content !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
94
+ if content !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
82
95
  fail ArgumentError, "invalid value for 'content', must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/."
83
96
  end
84
97
 
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.3.1
13
13
  require 'date'
14
14
 
15
15
  module SibApiV3Sdk
16
-
16
+ # Email sending credentials including subject, body, to, cc etc.
17
17
  class SendReportEmail
18
18
  # Subject of the email message
19
19
  attr_accessor :subject
@@ -17,13 +17,13 @@ module SibApiV3Sdk
17
17
  class SendSmtpEmail
18
18
  attr_accessor :sender
19
19
 
20
- # Email addresses and names of the recipients
20
+ # List of email addresses and names (optional) of the recipients. For example, [{'name':'Jimmy', 'email':'jimmy98@example.com'}, {'name':'Joe', 'email':'joe@example.com'}]
21
21
  attr_accessor :to
22
22
 
23
- # Email addresses and names of the recipients in bcc
23
+ # List of email addresses and names (optional) of the recipients in bcc
24
24
  attr_accessor :bcc
25
25
 
26
- # Email addresses and names of the recipients in cc
26
+ # List of email addresses and names (optional) of the recipients in cc
27
27
  attr_accessor :cc
28
28
 
29
29
  # HTML body of the message ( Mandatory if 'templateId' is not passed, ignored if 'templateId' is passed )
@@ -37,16 +37,21 @@ module SibApiV3Sdk
37
37
 
38
38
  attr_accessor :reply_to
39
39
 
40
- # Pass the absolute URL (no local file) or the base64 content of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps ( Ignored if 'templateId' is passed )
40
+ # Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, [{'url':'https://attachment.domain.com/myAttachmentFromUrl.jpg', 'name':'My attachment 1'}, {'content':'base64 exmaple content', 'name':'My attachment 2'}]. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps ( Ignored if 'templateId' is passed )
41
41
  attr_accessor :attachment
42
42
 
43
+ # Pass the set of headers that shall be sent along the mail headers in the original email. 'X-Mailin-IP' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, {'Content-Type':'text/html', 'charset':'iso-8859-1', 'X-Mailin-IP':'1.2.3.4'}
43
44
  attr_accessor :headers
44
45
 
45
46
  # Id of the template
46
47
  attr_accessor :template_id
47
48
 
49
+ # Pass the set of attributes to customize the template. For example, {'FNAME':'Joe', 'LNAME':'Doe'}.
48
50
  attr_accessor :params
49
51
 
52
+ # Tag your emails to find them more easily
53
+ attr_accessor :tags
54
+
50
55
 
51
56
  # Attribute mapping from ruby-style variable name to JSON key.
52
57
  def self.attribute_map
@@ -62,7 +67,8 @@ module SibApiV3Sdk
62
67
  :'attachment' => :'attachment',
63
68
  :'headers' => :'headers',
64
69
  :'template_id' => :'templateId',
65
- :'params' => :'params'
70
+ :'params' => :'params',
71
+ :'tags' => :'tags'
66
72
  }
67
73
  end
68
74
 
@@ -78,9 +84,10 @@ module SibApiV3Sdk
78
84
  :'subject' => :'String',
79
85
  :'reply_to' => :'SendSmtpEmailReplyTo',
80
86
  :'attachment' => :'Array<SendSmtpEmailAttachment>',
81
- :'headers' => :'Hash<String, String>',
87
+ :'headers' => :'Object',
82
88
  :'template_id' => :'Integer',
83
- :'params' => :'Hash<String, String>'
89
+ :'params' => :'Object',
90
+ :'tags' => :'Array<String>'
84
91
  }
85
92
  end
86
93
 
@@ -137,9 +144,7 @@ module SibApiV3Sdk
137
144
  end
138
145
 
139
146
  if attributes.has_key?(:'headers')
140
- if (value = attributes[:'headers']).is_a?(Hash)
141
- self.headers = value
142
- end
147
+ self.headers = attributes[:'headers']
143
148
  end
144
149
 
145
150
  if attributes.has_key?(:'templateId')
@@ -147,8 +152,12 @@ module SibApiV3Sdk
147
152
  end
148
153
 
149
154
  if attributes.has_key?(:'params')
150
- if (value = attributes[:'params']).is_a?(Hash)
151
- self.params = value
155
+ self.params = attributes[:'params']
156
+ end
157
+
158
+ if attributes.has_key?(:'tags')
159
+ if (value = attributes[:'tags']).is_a?(Array)
160
+ self.tags = value
152
161
  end
153
162
  end
154
163
 
@@ -188,7 +197,8 @@ module SibApiV3Sdk
188
197
  attachment == o.attachment &&
189
198
  headers == o.headers &&
190
199
  template_id == o.template_id &&
191
- params == o.params
200
+ params == o.params &&
201
+ tags == o.tags
192
202
  end
193
203
 
194
204
  # @see the `==` method
@@ -200,7 +210,7 @@ module SibApiV3Sdk
200
210
  # Calculates hash code according to all attributes.
201
211
  # @return [Fixnum] Hash code
202
212
  def hash
203
- [sender, to, bcc, cc, html_content, text_content, subject, reply_to, attachment, headers, template_id, params].hash
213
+ [sender, to, bcc, cc, html_content, text_content, subject, reply_to, attachment, headers, template_id, params, tags].hash
204
214
  end
205
215
 
206
216
  # Builds the object from hash