sib-api-v3-sdk 5.4.0 → 5.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -16
- data/docs/ContactsApi.md +5 -5
- data/docs/CreateChild.md +1 -0
- data/docs/CreateDoiContact.md +2 -2
- data/docs/CreateReseller.md +1 -0
- data/docs/CreateSender.md +1 -1
- data/docs/CreateWebhook.md +1 -1
- data/docs/EmailExportRecipients.md +1 -1
- data/docs/GetSmtpTemplateOverview.md +1 -0
- data/docs/PostContactInfoContacts.md +1 -0
- data/docs/RemoveContactFromList.md +1 -1
- data/docs/RequestContactExport.md +1 -1
- data/docs/RequestContactImport.md +1 -1
- data/docs/RequestSMSRecipientExport.md +1 -1
- data/docs/ResellerApi.md +82 -82
- data/docs/SendSmtpEmail.md +1 -1
- data/docs/TransactionalSMSApi.md +3 -3
- data/docs/UpdateChildAccountStatus.md +1 -0
- data/lib/sib-api-v3-sdk/api/contacts_api.rb +4 -4
- data/lib/sib-api-v3-sdk/api/reseller_api.rb +138 -138
- data/lib/sib-api-v3-sdk/api/transactional_sms_api.rb +2 -2
- data/lib/sib-api-v3-sdk/models/create_child.rb +48 -4
- data/lib/sib-api-v3-sdk/models/create_doi_contact.rb +2 -2
- data/lib/sib-api-v3-sdk/models/create_reseller.rb +14 -4
- data/lib/sib-api-v3-sdk/models/create_sender.rb +1 -1
- data/lib/sib-api-v3-sdk/models/create_webhook.rb +1 -1
- data/lib/sib-api-v3-sdk/models/email_export_recipients.rb +1 -1
- data/lib/sib-api-v3-sdk/models/get_smtp_template_overview.rb +14 -4
- data/lib/sib-api-v3-sdk/models/post_contact_info_contacts.rb +14 -4
- data/lib/sib-api-v3-sdk/models/remove_contact_from_list.rb +1 -1
- data/lib/sib-api-v3-sdk/models/request_contact_export.rb +1 -1
- data/lib/sib-api-v3-sdk/models/request_contact_import.rb +1 -1
- data/lib/sib-api-v3-sdk/models/request_sms_recipient_export.rb +1 -1
- data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +1 -1
- data/lib/sib-api-v3-sdk/models/update_child_account_status.rb +14 -4
- data/lib/sib-api-v3-sdk/version.rb +1 -1
- data/spec/api/contacts_api_spec.rb +2 -2
- data/spec/api/reseller_api_spec.rb +20 -20
- data/spec/api/transactional_sms_api_spec.rb +1 -1
- data/spec/models/create_child_spec.rb +10 -0
- data/spec/models/create_reseller_spec.rb +6 -0
- data/spec/models/create_webhook_spec.rb +1 -1
- data/spec/models/get_smtp_template_overview_spec.rb +6 -0
- data/spec/models/post_contact_info_contacts_spec.rb +6 -0
- data/spec/models/update_child_account_status_spec.rb +6 -0
- metadata +2 -2
@@ -212,7 +212,7 @@ module SibApiV3Sdk
|
|
212
212
|
end
|
213
213
|
return data, status_code, headers
|
214
214
|
end
|
215
|
-
# Send
|
215
|
+
# Send SMS message to a mobile number
|
216
216
|
# @param send_transac_sms Values to send a transactional SMS
|
217
217
|
# @param [Hash] opts the optional parameters
|
218
218
|
# @return [SendSms]
|
@@ -221,7 +221,7 @@ module SibApiV3Sdk
|
|
221
221
|
data
|
222
222
|
end
|
223
223
|
|
224
|
-
# Send
|
224
|
+
# Send SMS message to a mobile number
|
225
225
|
# @param send_transac_sms Values to send a transactional SMS
|
226
226
|
# @param [Hash] opts the optional parameters
|
227
227
|
# @return [Array<(SendSms, Fixnum, Hash)>] SendSms data, response status code and response headers
|
@@ -29,6 +29,31 @@ module SibApiV3Sdk
|
|
29
29
|
# Password for the child account to login
|
30
30
|
attr_accessor :password
|
31
31
|
|
32
|
+
# Language of the child account
|
33
|
+
attr_accessor :language
|
34
|
+
|
35
|
+
class EnumAttributeValidator
|
36
|
+
attr_reader :datatype
|
37
|
+
attr_reader :allowable_values
|
38
|
+
|
39
|
+
def initialize(datatype, allowable_values)
|
40
|
+
@allowable_values = allowable_values.map do |value|
|
41
|
+
case datatype.to_s
|
42
|
+
when /Integer/i
|
43
|
+
value.to_i
|
44
|
+
when /Float/i
|
45
|
+
value.to_f
|
46
|
+
else
|
47
|
+
value
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def valid?(value)
|
53
|
+
!value || allowable_values.include?(value)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
32
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
58
|
def self.attribute_map
|
34
59
|
{
|
@@ -36,7 +61,8 @@ module SibApiV3Sdk
|
|
36
61
|
:'first_name' => :'firstName',
|
37
62
|
:'last_name' => :'lastName',
|
38
63
|
:'company_name' => :'companyName',
|
39
|
-
:'password' => :'password'
|
64
|
+
:'password' => :'password',
|
65
|
+
:'language' => :'language'
|
40
66
|
}
|
41
67
|
end
|
42
68
|
|
@@ -47,7 +73,8 @@ module SibApiV3Sdk
|
|
47
73
|
:'first_name' => :'String',
|
48
74
|
:'last_name' => :'String',
|
49
75
|
:'company_name' => :'String',
|
50
|
-
:'password' => :'String'
|
76
|
+
:'password' => :'String',
|
77
|
+
:'language' => :'String'
|
51
78
|
}
|
52
79
|
end
|
53
80
|
|
@@ -78,6 +105,10 @@ module SibApiV3Sdk
|
|
78
105
|
if attributes.has_key?(:'password')
|
79
106
|
self.password = attributes[:'password']
|
80
107
|
end
|
108
|
+
|
109
|
+
if attributes.has_key?(:'language')
|
110
|
+
self.language = attributes[:'language']
|
111
|
+
end
|
81
112
|
end
|
82
113
|
|
83
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -115,9 +146,21 @@ module SibApiV3Sdk
|
|
115
146
|
return false if @last_name.nil?
|
116
147
|
return false if @company_name.nil?
|
117
148
|
return false if @password.nil?
|
149
|
+
language_validator = EnumAttributeValidator.new('String', ['fr', 'es', 'pt', 'it', 'de', 'en'])
|
150
|
+
return false unless language_validator.valid?(@language)
|
118
151
|
true
|
119
152
|
end
|
120
153
|
|
154
|
+
# Custom attribute writer method checking allowed values (enum).
|
155
|
+
# @param [Object] language Object to be assigned
|
156
|
+
def language=(language)
|
157
|
+
validator = EnumAttributeValidator.new('String', ['fr', 'es', 'pt', 'it', 'de', 'en'])
|
158
|
+
unless validator.valid?(language)
|
159
|
+
fail ArgumentError, 'invalid value for "language", must be one of #{validator.allowable_values}.'
|
160
|
+
end
|
161
|
+
@language = language
|
162
|
+
end
|
163
|
+
|
121
164
|
# Checks equality by comparing each attribute.
|
122
165
|
# @param [Object] Object to be compared
|
123
166
|
def ==(o)
|
@@ -127,7 +170,8 @@ module SibApiV3Sdk
|
|
127
170
|
first_name == o.first_name &&
|
128
171
|
last_name == o.last_name &&
|
129
172
|
company_name == o.company_name &&
|
130
|
-
password == o.password
|
173
|
+
password == o.password &&
|
174
|
+
language == o.language
|
131
175
|
end
|
132
176
|
|
133
177
|
# @see the `==` method
|
@@ -139,7 +183,7 @@ module SibApiV3Sdk
|
|
139
183
|
# Calculates hash code according to all attributes.
|
140
184
|
# @return [Fixnum] Hash code
|
141
185
|
def hash
|
142
|
-
[email, first_name, last_name, company_name, password].hash
|
186
|
+
[email, first_name, last_name, company_name, password, language].hash
|
143
187
|
end
|
144
188
|
|
145
189
|
# Builds the object from hash
|
@@ -26,10 +26,10 @@ module SibApiV3Sdk
|
|
26
26
|
# Lists under user account where contact should not be added
|
27
27
|
attr_accessor :exclude_list_ids
|
28
28
|
|
29
|
-
# Id of the DOI template
|
29
|
+
# Id of the Double opt-in (DOI) template
|
30
30
|
attr_accessor :template_id
|
31
31
|
|
32
|
-
# URL of the web page that user will be redirected to after clicking on the double opt in URL.
|
32
|
+
# URL of the web page that user will be redirected to after clicking on the double opt in URL. When editing your DOI template you can reference this URL by using the tag {{ params.DOIurl }}.
|
33
33
|
attr_accessor :redirection_url
|
34
34
|
|
35
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -17,17 +17,22 @@ module SibApiV3Sdk
|
|
17
17
|
# AuthKey of Reseller child created
|
18
18
|
attr_accessor :auth_key
|
19
19
|
|
20
|
+
# Id of Reseller child created
|
21
|
+
attr_accessor :id
|
22
|
+
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
24
|
def self.attribute_map
|
22
25
|
{
|
23
|
-
:'auth_key' => :'authKey'
|
26
|
+
:'auth_key' => :'authKey',
|
27
|
+
:'id' => :'id'
|
24
28
|
}
|
25
29
|
end
|
26
30
|
|
27
31
|
# Attribute type mapping.
|
28
32
|
def self.swagger_types
|
29
33
|
{
|
30
|
-
:'auth_key' => :'String'
|
34
|
+
:'auth_key' => :'String',
|
35
|
+
:'id' => :'Integer'
|
31
36
|
}
|
32
37
|
end
|
33
38
|
|
@@ -42,6 +47,10 @@ module SibApiV3Sdk
|
|
42
47
|
if attributes.has_key?(:'authKey')
|
43
48
|
self.auth_key = attributes[:'authKey']
|
44
49
|
end
|
50
|
+
|
51
|
+
if attributes.has_key?(:'id')
|
52
|
+
self.id = attributes[:'id']
|
53
|
+
end
|
45
54
|
end
|
46
55
|
|
47
56
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -67,7 +76,8 @@ module SibApiV3Sdk
|
|
67
76
|
def ==(o)
|
68
77
|
return true if self.equal?(o)
|
69
78
|
self.class == o.class &&
|
70
|
-
auth_key == o.auth_key
|
79
|
+
auth_key == o.auth_key &&
|
80
|
+
id == o.id
|
71
81
|
end
|
72
82
|
|
73
83
|
# @see the `==` method
|
@@ -79,7 +89,7 @@ module SibApiV3Sdk
|
|
79
89
|
# Calculates hash code according to all attributes.
|
80
90
|
# @return [Fixnum] Hash code
|
81
91
|
def hash
|
82
|
-
[auth_key].hash
|
92
|
+
[auth_key, id].hash
|
83
93
|
end
|
84
94
|
|
85
95
|
# Builds the object from hash
|
@@ -17,7 +17,7 @@ module SibApiV3Sdk
|
|
17
17
|
# From Name to use for the sender
|
18
18
|
attr_accessor :name
|
19
19
|
|
20
|
-
# From
|
20
|
+
# From email to use for the sender. A verification email will be sent to this address.
|
21
21
|
attr_accessor :email
|
22
22
|
|
23
23
|
# Mandatory in case of dedicated IP, IPs to associate to the sender
|
@@ -20,7 +20,7 @@ module SibApiV3Sdk
|
|
20
20
|
# Description of the webhook
|
21
21
|
attr_accessor :description
|
22
22
|
|
23
|
-
# Events triggering the webhook. Possible values for Transactional type webhook – request, delivered, hardBounce, softBounce, blocked, spam, invalid, deferred, click, opened, uniqueOpened and unsubscribed and possible values for Marketing type webhook – spam, opened, click, hardBounce, softBounce, unsubscribed, listAddition & delivered
|
23
|
+
# Events triggering the webhook. Possible values for Transactional type webhook – sent, request, delivered, hardBounce, softBounce, blocked, spam, invalid, deferred, click, opened, uniqueOpened and unsubscribed and possible values for Marketing type webhook – spam, opened, click, hardBounce, softBounce, unsubscribed, listAddition & delivered
|
24
24
|
attr_accessor :events
|
25
25
|
|
26
26
|
# Type of the webhook
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module SibApiV3Sdk
|
16
16
|
class EmailExportRecipients
|
17
|
-
# Webhook called once the export process is finished
|
17
|
+
# Webhook called once the export process is finished. For reference, https://help.sendinblue.com/hc/en-us/articles/360007666479
|
18
18
|
attr_accessor :notify_url
|
19
19
|
|
20
20
|
# Type of recipients to export for a campaign
|
@@ -49,6 +49,9 @@ module SibApiV3Sdk
|
|
49
49
|
# Last modification UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ)
|
50
50
|
attr_accessor :modified_at
|
51
51
|
|
52
|
+
# It is true if template is a valid Double opt-in (DOI) template, otherwise it is false. This field will be available only in case of single template detail call.
|
53
|
+
attr_accessor :doi_template
|
54
|
+
|
52
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
56
|
def self.attribute_map
|
54
57
|
{
|
@@ -63,7 +66,8 @@ module SibApiV3Sdk
|
|
63
66
|
:'tag' => :'tag',
|
64
67
|
:'html_content' => :'htmlContent',
|
65
68
|
:'created_at' => :'createdAt',
|
66
|
-
:'modified_at' => :'modifiedAt'
|
69
|
+
:'modified_at' => :'modifiedAt',
|
70
|
+
:'doi_template' => :'doiTemplate'
|
67
71
|
}
|
68
72
|
end
|
69
73
|
|
@@ -81,7 +85,8 @@ module SibApiV3Sdk
|
|
81
85
|
:'tag' => :'String',
|
82
86
|
:'html_content' => :'String',
|
83
87
|
:'created_at' => :'DateTime',
|
84
|
-
:'modified_at' => :'DateTime'
|
88
|
+
:'modified_at' => :'DateTime',
|
89
|
+
:'doi_template' => :'BOOLEAN'
|
85
90
|
}
|
86
91
|
end
|
87
92
|
|
@@ -140,6 +145,10 @@ module SibApiV3Sdk
|
|
140
145
|
if attributes.has_key?(:'modifiedAt')
|
141
146
|
self.modified_at = attributes[:'modifiedAt']
|
142
147
|
end
|
148
|
+
|
149
|
+
if attributes.has_key?(:'doiTemplate')
|
150
|
+
self.doi_template = attributes[:'doiTemplate']
|
151
|
+
end
|
143
152
|
end
|
144
153
|
|
145
154
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -231,7 +240,8 @@ module SibApiV3Sdk
|
|
231
240
|
tag == o.tag &&
|
232
241
|
html_content == o.html_content &&
|
233
242
|
created_at == o.created_at &&
|
234
|
-
modified_at == o.modified_at
|
243
|
+
modified_at == o.modified_at &&
|
244
|
+
doi_template == o.doi_template
|
235
245
|
end
|
236
246
|
|
237
247
|
# @see the `==` method
|
@@ -243,7 +253,7 @@ module SibApiV3Sdk
|
|
243
253
|
# Calculates hash code according to all attributes.
|
244
254
|
# @return [Fixnum] Hash code
|
245
255
|
def hash
|
246
|
-
[id, name, subject, is_active, test_sent, sender, reply_to, to_field, tag, html_content, created_at, modified_at].hash
|
256
|
+
[id, name, subject, is_active, test_sent, sender, reply_to, to_field, tag, html_content, created_at, modified_at, doi_template].hash
|
247
257
|
end
|
248
258
|
|
249
259
|
# Builds the object from hash
|
@@ -21,12 +21,16 @@ module SibApiV3Sdk
|
|
21
21
|
# Displays the count of total number of contacts removed from list when user opts for \"all\" option.
|
22
22
|
attr_accessor :total
|
23
23
|
|
24
|
+
# Id of the process created to remove contacts from list when user opts for \"all\" option.
|
25
|
+
attr_accessor :process_id
|
26
|
+
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
28
|
def self.attribute_map
|
26
29
|
{
|
27
30
|
:'success' => :'success',
|
28
31
|
:'failure' => :'failure',
|
29
|
-
:'total' => :'total'
|
32
|
+
:'total' => :'total',
|
33
|
+
:'process_id' => :'processId'
|
30
34
|
}
|
31
35
|
end
|
32
36
|
|
@@ -35,7 +39,8 @@ module SibApiV3Sdk
|
|
35
39
|
{
|
36
40
|
:'success' => :'Array<String>',
|
37
41
|
:'failure' => :'Array<String>',
|
38
|
-
:'total' => :'Integer'
|
42
|
+
:'total' => :'Integer',
|
43
|
+
:'process_id' => :'Integer'
|
39
44
|
}
|
40
45
|
end
|
41
46
|
|
@@ -62,6 +67,10 @@ module SibApiV3Sdk
|
|
62
67
|
if attributes.has_key?(:'total')
|
63
68
|
self.total = attributes[:'total']
|
64
69
|
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'processId')
|
72
|
+
self.process_id = attributes[:'processId']
|
73
|
+
end
|
65
74
|
end
|
66
75
|
|
67
76
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -84,7 +93,8 @@ module SibApiV3Sdk
|
|
84
93
|
self.class == o.class &&
|
85
94
|
success == o.success &&
|
86
95
|
failure == o.failure &&
|
87
|
-
total == o.total
|
96
|
+
total == o.total &&
|
97
|
+
process_id == o.process_id
|
88
98
|
end
|
89
99
|
|
90
100
|
# @see the `==` method
|
@@ -96,7 +106,7 @@ module SibApiV3Sdk
|
|
96
106
|
# Calculates hash code according to all attributes.
|
97
107
|
# @return [Fixnum] Hash code
|
98
108
|
def hash
|
99
|
-
[success, failure, total].hash
|
109
|
+
[success, failure, total, process_id].hash
|
100
110
|
end
|
101
111
|
|
102
112
|
# Builds the object from hash
|
@@ -17,7 +17,7 @@ module SibApiV3Sdk
|
|
17
17
|
# Required if 'all' is false. Emails to remove from a list. You can pass a maximum of 150 emails for removal in one request.
|
18
18
|
attr_accessor :emails
|
19
19
|
|
20
|
-
# Required if 'emails' is empty. Remove all existing contacts from a list
|
20
|
+
# Required if 'emails' is empty. Remove all existing contacts from a list. A process will be created in this scenario. You can fetch the process details to know about the progress
|
21
21
|
attr_accessor :all
|
22
22
|
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -22,7 +22,7 @@ module SibApiV3Sdk
|
|
22
22
|
|
23
23
|
attr_accessor :custom_contact_filter
|
24
24
|
|
25
|
-
# Webhook that will be called once the export process is finished
|
25
|
+
# Webhook that will be called once the export process is finished. For reference, https://help.sendinblue.com/hc/en-us/articles/360007666479
|
26
26
|
attr_accessor :notify_url
|
27
27
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -23,7 +23,7 @@ module SibApiV3Sdk
|
|
23
23
|
# Mandatory if newList is not defined. Ids of the lists in which the contacts shall be imported. For example, [2, 4, 7].
|
24
24
|
attr_accessor :list_ids
|
25
25
|
|
26
|
-
# URL that will be called once the
|
26
|
+
# URL that will be called once the import process is finished. For reference, https://help.sendinblue.com/hc/en-us/articles/360007666479
|
27
27
|
attr_accessor :notify_url
|
28
28
|
|
29
29
|
attr_accessor :new_list
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module SibApiV3Sdk
|
16
16
|
class RequestSmsRecipientExport
|
17
|
-
# URL that will be called once the export process is finished
|
17
|
+
# URL that will be called once the export process is finished. For reference, https://help.sendinblue.com/hc/en-us/articles/360007666479
|
18
18
|
attr_accessor :notify_url
|
19
19
|
|
20
20
|
# Filter the recipients based on how they interacted with the campaign
|
@@ -36,7 +36,7 @@ module SibApiV3Sdk
|
|
36
36
|
|
37
37
|
attr_accessor :reply_to
|
38
38
|
|
39
|
-
# 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\":\"
|
39
|
+
# 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\":\"myAttachmentFromUrl.jpg\"}, {\"content\":\"base64 example content\", \"name\":\"myAttachmentFromBase64.jpg\"}]`. 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, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg and wmv ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored )
|
40
40
|
attr_accessor :attachment
|
41
41
|
|
42
42
|
# Pass the set of custom headers (not the standard headers) that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. Headers are allowed in `This-Case-Only` (i.e. words separated by hyphen with first letter of each word in capital letter), they will be converted to such case styling if not in this format in the request payload. For example, `{\"sender.ip\":\"1.2.3.4\", \"X-Mailin-custom\":\"some_custom_header\"}`.
|
@@ -23,12 +23,16 @@ module SibApiV3Sdk
|
|
23
23
|
# Status of Marketing Automation Platform activation for your account (true=enabled, false=disabled)
|
24
24
|
attr_accessor :marketing_automation
|
25
25
|
|
26
|
+
# Status of SMS Campaign Platform activation for your account (true=enabled, false=disabled)
|
27
|
+
attr_accessor :sms_campaign
|
28
|
+
|
26
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
30
|
def self.attribute_map
|
28
31
|
{
|
29
32
|
:'transactional_email' => :'transactionalEmail',
|
30
33
|
:'transactional_sms' => :'transactionalSms',
|
31
|
-
:'marketing_automation' => :'marketingAutomation'
|
34
|
+
:'marketing_automation' => :'marketingAutomation',
|
35
|
+
:'sms_campaign' => :'smsCampaign'
|
32
36
|
}
|
33
37
|
end
|
34
38
|
|
@@ -37,7 +41,8 @@ module SibApiV3Sdk
|
|
37
41
|
{
|
38
42
|
:'transactional_email' => :'BOOLEAN',
|
39
43
|
:'transactional_sms' => :'BOOLEAN',
|
40
|
-
:'marketing_automation' => :'BOOLEAN'
|
44
|
+
:'marketing_automation' => :'BOOLEAN',
|
45
|
+
:'sms_campaign' => :'BOOLEAN'
|
41
46
|
}
|
42
47
|
end
|
43
48
|
|
@@ -60,6 +65,10 @@ module SibApiV3Sdk
|
|
60
65
|
if attributes.has_key?(:'marketingAutomation')
|
61
66
|
self.marketing_automation = attributes[:'marketingAutomation']
|
62
67
|
end
|
68
|
+
|
69
|
+
if attributes.has_key?(:'smsCampaign')
|
70
|
+
self.sms_campaign = attributes[:'smsCampaign']
|
71
|
+
end
|
63
72
|
end
|
64
73
|
|
65
74
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -82,7 +91,8 @@ module SibApiV3Sdk
|
|
82
91
|
self.class == o.class &&
|
83
92
|
transactional_email == o.transactional_email &&
|
84
93
|
transactional_sms == o.transactional_sms &&
|
85
|
-
marketing_automation == o.marketing_automation
|
94
|
+
marketing_automation == o.marketing_automation &&
|
95
|
+
sms_campaign == o.sms_campaign
|
86
96
|
end
|
87
97
|
|
88
98
|
# @see the `==` method
|
@@ -94,7 +104,7 @@ module SibApiV3Sdk
|
|
94
104
|
# Calculates hash code according to all attributes.
|
95
105
|
# @return [Fixnum] Hash code
|
96
106
|
def hash
|
97
|
-
[transactional_email, transactional_sms, marketing_automation].hash
|
107
|
+
[transactional_email, transactional_sms, marketing_automation, sms_campaign].hash
|
98
108
|
end
|
99
109
|
|
100
110
|
# Builds the object from hash
|
@@ -69,8 +69,8 @@ describe 'ContactsApi' do
|
|
69
69
|
end
|
70
70
|
|
71
71
|
# unit tests for create_doi_contact
|
72
|
-
# Create
|
73
|
-
# @param create_doi_contact Values to create the DOI contact
|
72
|
+
# Create Contact via DOI (Double-Opt-In) Flow
|
73
|
+
# @param create_doi_contact Values to create the Double opt-in (DOI) contact
|
74
74
|
# @param [Hash] opts the optional parameters
|
75
75
|
# @return [nil]
|
76
76
|
describe 'create_doi_contact test' do
|