sib-api-v3-sdk 5.5.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +26 -21
- data/docs/AbTestCampaignResult.md +2 -0
- data/docs/AbTestCampaignResultClickedLinks.md +9 -0
- data/docs/AbTestCampaignResultStatistics.md +13 -0
- data/docs/AbTestVersionClicks.md +7 -0
- data/docs/AbTestVersionClicksInner.md +10 -0
- data/docs/AbTestVersionStats.md +9 -0
- data/docs/AddContactToList.md +2 -1
- data/docs/ContactsApi.md +24 -24
- data/docs/CreateDoiContact.md +1 -1
- data/docs/CreateSmsCampaign.md +1 -1
- data/docs/CreateWebhook.md +1 -1
- data/docs/GetAggregatedReport.md +13 -13
- data/docs/GetCampaignStats.md +1 -0
- data/docs/ListsApi.md +4 -4
- data/docs/RemoveContactFromList.md +2 -1
- data/docs/SendSmtpEmailSender.md +1 -0
- data/docs/SendTransacSms.md +1 -1
- data/docs/{SMTPApi.md → TransactionalEmailsApi.md} +52 -52
- data/docs/UpdateSmsCampaign.md +1 -1
- data/docs/UpdateWebhook.md +1 -1
- data/lib/sib-api-v3-sdk.rb +6 -1
- data/lib/sib-api-v3-sdk/api/contacts_api.rb +40 -40
- data/lib/sib-api-v3-sdk/api/lists_api.rb +4 -4
- data/lib/sib-api-v3-sdk/api/{smtp_api.rb → transactional_emails_api.rb} +52 -52
- data/lib/sib-api-v3-sdk/models/ab_test_campaign_result.rb +22 -4
- data/lib/sib-api-v3-sdk/models/ab_test_campaign_result_clicked_links.rb +202 -0
- data/lib/sib-api-v3-sdk/models/ab_test_campaign_result_statistics.rb +258 -0
- data/lib/sib-api-v3-sdk/models/ab_test_version_clicks.rb +175 -0
- data/lib/sib-api-v3-sdk/models/ab_test_version_clicks_inner.rb +219 -0
- data/lib/sib-api-v3-sdk/models/ab_test_version_stats.rb +205 -0
- data/lib/sib-api-v3-sdk/models/add_contact_to_list.rb +17 -5
- data/lib/sib-api-v3-sdk/models/create_doi_contact.rb +5 -0
- data/lib/sib-api-v3-sdk/models/create_sms_campaign.rb +6 -6
- data/lib/sib-api-v3-sdk/models/create_webhook.rb +1 -1
- data/lib/sib-api-v3-sdk/models/get_aggregated_report.rb +0 -65
- data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +14 -4
- data/lib/sib-api-v3-sdk/models/remove_contact_from_list.rb +14 -2
- data/lib/sib-api-v3-sdk/models/send_smtp_email_sender.rb +15 -5
- data/lib/sib-api-v3-sdk/models/send_transac_sms.rb +6 -6
- data/lib/sib-api-v3-sdk/models/update_sms_campaign.rb +6 -6
- data/lib/sib-api-v3-sdk/models/update_webhook.rb +1 -1
- data/lib/sib-api-v3-sdk/version.rb +1 -1
- data/spec/api/contacts_api_spec.rb +6 -6
- data/spec/api/lists_api_spec.rb +2 -2
- data/spec/api/{smtp_api_spec.rb → transactional_emails_api_spec.rb} +6 -6
- data/spec/models/ab_test_campaign_result_clicked_links_spec.rb +47 -0
- data/spec/models/ab_test_campaign_result_spec.rb +12 -0
- data/spec/models/ab_test_campaign_result_statistics_spec.rb +71 -0
- data/spec/models/ab_test_version_clicks_inner_spec.rb +53 -0
- data/spec/models/ab_test_version_clicks_spec.rb +35 -0
- data/spec/models/ab_test_version_stats_spec.rb +47 -0
- data/spec/models/add_contact_to_list_spec.rb +6 -0
- data/spec/models/get_campaign_stats_spec.rb +6 -0
- data/spec/models/remove_contact_from_list_spec.rb +6 -0
- data/spec/models/send_smtp_email_sender_spec.rb +6 -0
- data/testfile.rb +23 -0
- metadata +31 -10
@@ -21,7 +21,7 @@ module SibApiV3Sdk
|
|
21
21
|
end
|
22
22
|
# Add existing contacts to a list
|
23
23
|
# @param list_id Id of the list
|
24
|
-
# @param contact_emails Emails addresses of the contacts
|
24
|
+
# @param contact_emails Emails addresses OR IDs of the contacts
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [PostContactInfo]
|
27
27
|
def add_contact_to_list(list_id, contact_emails, opts = {})
|
@@ -31,7 +31,7 @@ module SibApiV3Sdk
|
|
31
31
|
|
32
32
|
# Add existing contacts to a list
|
33
33
|
# @param list_id Id of the list
|
34
|
-
# @param contact_emails Emails addresses of the contacts
|
34
|
+
# @param contact_emails Emails addresses OR IDs of the contacts
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(PostContactInfo, Fixnum, Hash)>] PostContactInfo data, response status code and response headers
|
37
37
|
def add_contact_to_list_with_http_info(list_id, contact_emails, opts = {})
|
@@ -417,7 +417,7 @@ module SibApiV3Sdk
|
|
417
417
|
end
|
418
418
|
# Delete a contact from a list
|
419
419
|
# @param list_id Id of the list
|
420
|
-
# @param contact_emails Emails
|
420
|
+
# @param contact_emails Emails addresses OR IDs of the contacts
|
421
421
|
# @param [Hash] opts the optional parameters
|
422
422
|
# @return [PostContactInfo]
|
423
423
|
def remove_contact_from_list(list_id, contact_emails, opts = {})
|
@@ -427,7 +427,7 @@ module SibApiV3Sdk
|
|
427
427
|
|
428
428
|
# Delete a contact from a list
|
429
429
|
# @param list_id Id of the list
|
430
|
-
# @param contact_emails Emails
|
430
|
+
# @param contact_emails Emails addresses OR IDs of the contacts
|
431
431
|
# @param [Hash] opts the optional parameters
|
432
432
|
# @return [Array<(PostContactInfo, Fixnum, Hash)>] PostContactInfo data, response status code and response headers
|
433
433
|
def remove_contact_from_list_with_http_info(list_id, contact_emails, opts = {})
|
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.4.12
|
|
13
13
|
require 'uri'
|
14
14
|
|
15
15
|
module SibApiV3Sdk
|
16
|
-
class
|
16
|
+
class TransactionalEmailsApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
@@ -34,11 +34,11 @@ module SibApiV3Sdk
|
|
34
34
|
# @return [Array<(CreateModel, Fixnum, Hash)>] CreateModel data, response status code and response headers
|
35
35
|
def create_smtp_template_with_http_info(smtp_template, opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
|
-
@api_client.config.logger.debug 'Calling API:
|
37
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.create_smtp_template ...'
|
38
38
|
end
|
39
39
|
# verify the required parameter 'smtp_template' is set
|
40
40
|
if @api_client.config.client_side_validation && smtp_template.nil?
|
41
|
-
fail ArgumentError, "Missing the required parameter 'smtp_template' when calling
|
41
|
+
fail ArgumentError, "Missing the required parameter 'smtp_template' when calling TransactionalEmailsApi.create_smtp_template"
|
42
42
|
end
|
43
43
|
# resource path
|
44
44
|
local_var_path = '/smtp/templates'
|
@@ -67,7 +67,7 @@ module SibApiV3Sdk
|
|
67
67
|
:auth_names => auth_names,
|
68
68
|
:return_type => 'CreateModel')
|
69
69
|
if @api_client.config.debugging
|
70
|
-
@api_client.config.logger.debug "API called:
|
70
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#create_smtp_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
71
71
|
end
|
72
72
|
return data, status_code, headers
|
73
73
|
end
|
@@ -88,7 +88,7 @@ module SibApiV3Sdk
|
|
88
88
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
89
89
|
def delete_hardbounces_with_http_info(opts = {})
|
90
90
|
if @api_client.config.debugging
|
91
|
-
@api_client.config.logger.debug 'Calling API:
|
91
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.delete_hardbounces ...'
|
92
92
|
end
|
93
93
|
# resource path
|
94
94
|
local_var_path = '/smtp/deleteHardbounces'
|
@@ -116,7 +116,7 @@ module SibApiV3Sdk
|
|
116
116
|
:body => post_body,
|
117
117
|
:auth_names => auth_names)
|
118
118
|
if @api_client.config.debugging
|
119
|
-
@api_client.config.logger.debug "API called:
|
119
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#delete_hardbounces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
120
120
|
end
|
121
121
|
return data, status_code, headers
|
122
122
|
end
|
@@ -135,11 +135,11 @@ module SibApiV3Sdk
|
|
135
135
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
136
136
|
def delete_smtp_template_with_http_info(template_id, opts = {})
|
137
137
|
if @api_client.config.debugging
|
138
|
-
@api_client.config.logger.debug 'Calling API:
|
138
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.delete_smtp_template ...'
|
139
139
|
end
|
140
140
|
# verify the required parameter 'template_id' is set
|
141
141
|
if @api_client.config.client_side_validation && template_id.nil?
|
142
|
-
fail ArgumentError, "Missing the required parameter 'template_id' when calling
|
142
|
+
fail ArgumentError, "Missing the required parameter 'template_id' when calling TransactionalEmailsApi.delete_smtp_template"
|
143
143
|
end
|
144
144
|
# resource path
|
145
145
|
local_var_path = '/smtp/templates/{templateId}'.sub('{' + 'templateId' + '}', template_id.to_s)
|
@@ -167,7 +167,7 @@ module SibApiV3Sdk
|
|
167
167
|
:body => post_body,
|
168
168
|
:auth_names => auth_names)
|
169
169
|
if @api_client.config.debugging
|
170
|
-
@api_client.config.logger.debug "API called:
|
170
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#delete_smtp_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
171
171
|
end
|
172
172
|
return data, status_code, headers
|
173
173
|
end
|
@@ -192,7 +192,7 @@ module SibApiV3Sdk
|
|
192
192
|
# @return [Array<(GetAggregatedReport, Fixnum, Hash)>] GetAggregatedReport data, response status code and response headers
|
193
193
|
def get_aggregated_smtp_report_with_http_info(opts = {})
|
194
194
|
if @api_client.config.debugging
|
195
|
-
@api_client.config.logger.debug 'Calling API:
|
195
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_aggregated_smtp_report ...'
|
196
196
|
end
|
197
197
|
# resource path
|
198
198
|
local_var_path = '/smtp/statistics/aggregatedReport'
|
@@ -225,7 +225,7 @@ module SibApiV3Sdk
|
|
225
225
|
:auth_names => auth_names,
|
226
226
|
:return_type => 'GetAggregatedReport')
|
227
227
|
if @api_client.config.debugging
|
228
|
-
@api_client.config.logger.debug "API called:
|
228
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#get_aggregated_smtp_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
229
229
|
end
|
230
230
|
return data, status_code, headers
|
231
231
|
end
|
@@ -262,10 +262,10 @@ module SibApiV3Sdk
|
|
262
262
|
# @return [Array<(GetEmailEventReport, Fixnum, Hash)>] GetEmailEventReport data, response status code and response headers
|
263
263
|
def get_email_event_report_with_http_info(opts = {})
|
264
264
|
if @api_client.config.debugging
|
265
|
-
@api_client.config.logger.debug 'Calling API:
|
265
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_email_event_report ...'
|
266
266
|
end
|
267
267
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
268
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling
|
268
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_email_event_report, must be smaller than or equal to 100.'
|
269
269
|
end
|
270
270
|
|
271
271
|
if @api_client.config.client_side_validation && opts[:'event'] && !['bounces', 'hardBounces', 'softBounces', 'delivered', 'spam', 'requests', 'opened', 'clicks', 'invalid', 'deferred', 'blocked', 'unsubscribed'].include?(opts[:'event'])
|
@@ -308,7 +308,7 @@ module SibApiV3Sdk
|
|
308
308
|
:auth_names => auth_names,
|
309
309
|
:return_type => 'GetEmailEventReport')
|
310
310
|
if @api_client.config.debugging
|
311
|
-
@api_client.config.logger.debug "API called:
|
311
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#get_email_event_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
312
312
|
end
|
313
313
|
return data, status_code, headers
|
314
314
|
end
|
@@ -337,10 +337,10 @@ module SibApiV3Sdk
|
|
337
337
|
# @return [Array<(GetReports, Fixnum, Hash)>] GetReports data, response status code and response headers
|
338
338
|
def get_smtp_report_with_http_info(opts = {})
|
339
339
|
if @api_client.config.debugging
|
340
|
-
@api_client.config.logger.debug 'Calling API:
|
340
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_smtp_report ...'
|
341
341
|
end
|
342
342
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 30
|
343
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling
|
343
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_smtp_report, must be smaller than or equal to 30.'
|
344
344
|
end
|
345
345
|
|
346
346
|
# resource path
|
@@ -376,7 +376,7 @@ module SibApiV3Sdk
|
|
376
376
|
:auth_names => auth_names,
|
377
377
|
:return_type => 'GetReports')
|
378
378
|
if @api_client.config.debugging
|
379
|
-
@api_client.config.logger.debug "API called:
|
379
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#get_smtp_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
380
380
|
end
|
381
381
|
return data, status_code, headers
|
382
382
|
end
|
@@ -395,11 +395,11 @@ module SibApiV3Sdk
|
|
395
395
|
# @return [Array<(GetSmtpTemplateOverview, Fixnum, Hash)>] GetSmtpTemplateOverview data, response status code and response headers
|
396
396
|
def get_smtp_template_with_http_info(template_id, opts = {})
|
397
397
|
if @api_client.config.debugging
|
398
|
-
@api_client.config.logger.debug 'Calling API:
|
398
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_smtp_template ...'
|
399
399
|
end
|
400
400
|
# verify the required parameter 'template_id' is set
|
401
401
|
if @api_client.config.client_side_validation && template_id.nil?
|
402
|
-
fail ArgumentError, "Missing the required parameter 'template_id' when calling
|
402
|
+
fail ArgumentError, "Missing the required parameter 'template_id' when calling TransactionalEmailsApi.get_smtp_template"
|
403
403
|
end
|
404
404
|
# resource path
|
405
405
|
local_var_path = '/smtp/templates/{templateId}'.sub('{' + 'templateId' + '}', template_id.to_s)
|
@@ -428,7 +428,7 @@ module SibApiV3Sdk
|
|
428
428
|
:auth_names => auth_names,
|
429
429
|
:return_type => 'GetSmtpTemplateOverview')
|
430
430
|
if @api_client.config.debugging
|
431
|
-
@api_client.config.logger.debug "API called:
|
431
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#get_smtp_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
432
432
|
end
|
433
433
|
return data, status_code, headers
|
434
434
|
end
|
@@ -451,10 +451,10 @@ module SibApiV3Sdk
|
|
451
451
|
# @return [Array<(GetSmtpTemplates, Fixnum, Hash)>] GetSmtpTemplates data, response status code and response headers
|
452
452
|
def get_smtp_templates_with_http_info(opts = {})
|
453
453
|
if @api_client.config.debugging
|
454
|
-
@api_client.config.logger.debug 'Calling API:
|
454
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_smtp_templates ...'
|
455
455
|
end
|
456
456
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
457
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling
|
457
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_smtp_templates, must be smaller than or equal to 1000.'
|
458
458
|
end
|
459
459
|
|
460
460
|
# resource path
|
@@ -487,7 +487,7 @@ module SibApiV3Sdk
|
|
487
487
|
:auth_names => auth_names,
|
488
488
|
:return_type => 'GetSmtpTemplates')
|
489
489
|
if @api_client.config.debugging
|
490
|
-
@api_client.config.logger.debug "API called:
|
490
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#get_smtp_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
491
491
|
end
|
492
492
|
return data, status_code, headers
|
493
493
|
end
|
@@ -514,10 +514,10 @@ module SibApiV3Sdk
|
|
514
514
|
# @return [Array<(GetTransacBlockedContacts, Fixnum, Hash)>] GetTransacBlockedContacts data, response status code and response headers
|
515
515
|
def get_transac_blocked_contacts_with_http_info(opts = {})
|
516
516
|
if @api_client.config.debugging
|
517
|
-
@api_client.config.logger.debug 'Calling API:
|
517
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_transac_blocked_contacts ...'
|
518
518
|
end
|
519
519
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
520
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling
|
520
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_transac_blocked_contacts, must be smaller than or equal to 100.'
|
521
521
|
end
|
522
522
|
|
523
523
|
# resource path
|
@@ -552,7 +552,7 @@ module SibApiV3Sdk
|
|
552
552
|
:auth_names => auth_names,
|
553
553
|
:return_type => 'GetTransacBlockedContacts')
|
554
554
|
if @api_client.config.debugging
|
555
|
-
@api_client.config.logger.debug "API called:
|
555
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#get_transac_blocked_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
556
556
|
end
|
557
557
|
return data, status_code, headers
|
558
558
|
end
|
@@ -571,11 +571,11 @@ module SibApiV3Sdk
|
|
571
571
|
# @return [Array<(GetTransacEmailContent, Fixnum, Hash)>] GetTransacEmailContent data, response status code and response headers
|
572
572
|
def get_transac_email_content_with_http_info(uuid, opts = {})
|
573
573
|
if @api_client.config.debugging
|
574
|
-
@api_client.config.logger.debug 'Calling API:
|
574
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_transac_email_content ...'
|
575
575
|
end
|
576
576
|
# verify the required parameter 'uuid' is set
|
577
577
|
if @api_client.config.client_side_validation && uuid.nil?
|
578
|
-
fail ArgumentError, "Missing the required parameter 'uuid' when calling
|
578
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling TransactionalEmailsApi.get_transac_email_content"
|
579
579
|
end
|
580
580
|
# resource path
|
581
581
|
local_var_path = '/smtp/emails/{uuid}'.sub('{' + 'uuid' + '}', uuid.to_s)
|
@@ -604,7 +604,7 @@ module SibApiV3Sdk
|
|
604
604
|
:auth_names => auth_names,
|
605
605
|
:return_type => 'GetTransacEmailContent')
|
606
606
|
if @api_client.config.debugging
|
607
|
-
@api_client.config.logger.debug "API called:
|
607
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#get_transac_email_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
608
608
|
end
|
609
609
|
return data, status_code, headers
|
610
610
|
end
|
@@ -633,7 +633,7 @@ module SibApiV3Sdk
|
|
633
633
|
# @return [Array<(GetTransacEmailsList, Fixnum, Hash)>] GetTransacEmailsList data, response status code and response headers
|
634
634
|
def get_transac_emails_list_with_http_info(opts = {})
|
635
635
|
if @api_client.config.debugging
|
636
|
-
@api_client.config.logger.debug 'Calling API:
|
636
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_transac_emails_list ...'
|
637
637
|
end
|
638
638
|
# resource path
|
639
639
|
local_var_path = '/smtp/emails'
|
@@ -667,7 +667,7 @@ module SibApiV3Sdk
|
|
667
667
|
:auth_names => auth_names,
|
668
668
|
:return_type => 'GetTransacEmailsList')
|
669
669
|
if @api_client.config.debugging
|
670
|
-
@api_client.config.logger.debug "API called:
|
670
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#get_transac_emails_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
671
671
|
end
|
672
672
|
return data, status_code, headers
|
673
673
|
end
|
@@ -690,15 +690,15 @@ module SibApiV3Sdk
|
|
690
690
|
# @return [Array<(SendTemplateEmail, Fixnum, Hash)>] SendTemplateEmail data, response status code and response headers
|
691
691
|
def send_template_with_http_info(template_id, send_email, opts = {})
|
692
692
|
if @api_client.config.debugging
|
693
|
-
@api_client.config.logger.debug 'Calling API:
|
693
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.send_template ...'
|
694
694
|
end
|
695
695
|
# verify the required parameter 'template_id' is set
|
696
696
|
if @api_client.config.client_side_validation && template_id.nil?
|
697
|
-
fail ArgumentError, "Missing the required parameter 'template_id' when calling
|
697
|
+
fail ArgumentError, "Missing the required parameter 'template_id' when calling TransactionalEmailsApi.send_template"
|
698
698
|
end
|
699
699
|
# verify the required parameter 'send_email' is set
|
700
700
|
if @api_client.config.client_side_validation && send_email.nil?
|
701
|
-
fail ArgumentError, "Missing the required parameter 'send_email' when calling
|
701
|
+
fail ArgumentError, "Missing the required parameter 'send_email' when calling TransactionalEmailsApi.send_template"
|
702
702
|
end
|
703
703
|
# resource path
|
704
704
|
local_var_path = '/smtp/templates/{templateId}/send'.sub('{' + 'templateId' + '}', template_id.to_s)
|
@@ -727,7 +727,7 @@ module SibApiV3Sdk
|
|
727
727
|
:auth_names => auth_names,
|
728
728
|
:return_type => 'SendTemplateEmail')
|
729
729
|
if @api_client.config.debugging
|
730
|
-
@api_client.config.logger.debug "API called:
|
730
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#send_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
731
731
|
end
|
732
732
|
return data, status_code, headers
|
733
733
|
end
|
@@ -748,15 +748,15 @@ module SibApiV3Sdk
|
|
748
748
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
749
749
|
def send_test_template_with_http_info(template_id, send_test_email, opts = {})
|
750
750
|
if @api_client.config.debugging
|
751
|
-
@api_client.config.logger.debug 'Calling API:
|
751
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.send_test_template ...'
|
752
752
|
end
|
753
753
|
# verify the required parameter 'template_id' is set
|
754
754
|
if @api_client.config.client_side_validation && template_id.nil?
|
755
|
-
fail ArgumentError, "Missing the required parameter 'template_id' when calling
|
755
|
+
fail ArgumentError, "Missing the required parameter 'template_id' when calling TransactionalEmailsApi.send_test_template"
|
756
756
|
end
|
757
757
|
# verify the required parameter 'send_test_email' is set
|
758
758
|
if @api_client.config.client_side_validation && send_test_email.nil?
|
759
|
-
fail ArgumentError, "Missing the required parameter 'send_test_email' when calling
|
759
|
+
fail ArgumentError, "Missing the required parameter 'send_test_email' when calling TransactionalEmailsApi.send_test_template"
|
760
760
|
end
|
761
761
|
# resource path
|
762
762
|
local_var_path = '/smtp/templates/{templateId}/sendTest'.sub('{' + 'templateId' + '}', template_id.to_s)
|
@@ -784,7 +784,7 @@ module SibApiV3Sdk
|
|
784
784
|
:body => post_body,
|
785
785
|
:auth_names => auth_names)
|
786
786
|
if @api_client.config.debugging
|
787
|
-
@api_client.config.logger.debug "API called:
|
787
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#send_test_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
788
788
|
end
|
789
789
|
return data, status_code, headers
|
790
790
|
end
|
@@ -803,11 +803,11 @@ module SibApiV3Sdk
|
|
803
803
|
# @return [Array<(CreateSmtpEmail, Fixnum, Hash)>] CreateSmtpEmail data, response status code and response headers
|
804
804
|
def send_transac_email_with_http_info(send_smtp_email, opts = {})
|
805
805
|
if @api_client.config.debugging
|
806
|
-
@api_client.config.logger.debug 'Calling API:
|
806
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.send_transac_email ...'
|
807
807
|
end
|
808
808
|
# verify the required parameter 'send_smtp_email' is set
|
809
809
|
if @api_client.config.client_side_validation && send_smtp_email.nil?
|
810
|
-
fail ArgumentError, "Missing the required parameter 'send_smtp_email' when calling
|
810
|
+
fail ArgumentError, "Missing the required parameter 'send_smtp_email' when calling TransactionalEmailsApi.send_transac_email"
|
811
811
|
end
|
812
812
|
# resource path
|
813
813
|
local_var_path = '/smtp/email'
|
@@ -836,7 +836,7 @@ module SibApiV3Sdk
|
|
836
836
|
:auth_names => auth_names,
|
837
837
|
:return_type => 'CreateSmtpEmail')
|
838
838
|
if @api_client.config.debugging
|
839
|
-
@api_client.config.logger.debug "API called:
|
839
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#send_transac_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
840
840
|
end
|
841
841
|
return data, status_code, headers
|
842
842
|
end
|
@@ -855,11 +855,11 @@ module SibApiV3Sdk
|
|
855
855
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
856
856
|
def smtp_blocked_contacts_email_delete_with_http_info(email, opts = {})
|
857
857
|
if @api_client.config.debugging
|
858
|
-
@api_client.config.logger.debug 'Calling API:
|
858
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.smtp_blocked_contacts_email_delete ...'
|
859
859
|
end
|
860
860
|
# verify the required parameter 'email' is set
|
861
861
|
if @api_client.config.client_side_validation && email.nil?
|
862
|
-
fail ArgumentError, "Missing the required parameter 'email' when calling
|
862
|
+
fail ArgumentError, "Missing the required parameter 'email' when calling TransactionalEmailsApi.smtp_blocked_contacts_email_delete"
|
863
863
|
end
|
864
864
|
# resource path
|
865
865
|
local_var_path = '/smtp/blockedContacts/{email}'.sub('{' + 'email' + '}', email.to_s)
|
@@ -887,7 +887,7 @@ module SibApiV3Sdk
|
|
887
887
|
:body => post_body,
|
888
888
|
:auth_names => auth_names)
|
889
889
|
if @api_client.config.debugging
|
890
|
-
@api_client.config.logger.debug "API called:
|
890
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#smtp_blocked_contacts_email_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
891
891
|
end
|
892
892
|
return data, status_code, headers
|
893
893
|
end
|
@@ -906,11 +906,11 @@ module SibApiV3Sdk
|
|
906
906
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
907
907
|
def smtp_log_message_id_delete_with_http_info(message_id, opts = {})
|
908
908
|
if @api_client.config.debugging
|
909
|
-
@api_client.config.logger.debug 'Calling API:
|
909
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.smtp_log_message_id_delete ...'
|
910
910
|
end
|
911
911
|
# verify the required parameter 'message_id' is set
|
912
912
|
if @api_client.config.client_side_validation && message_id.nil?
|
913
|
-
fail ArgumentError, "Missing the required parameter 'message_id' when calling
|
913
|
+
fail ArgumentError, "Missing the required parameter 'message_id' when calling TransactionalEmailsApi.smtp_log_message_id_delete"
|
914
914
|
end
|
915
915
|
# resource path
|
916
916
|
local_var_path = '/smtp/log/{messageId}'.sub('{' + 'messageId' + '}', message_id.to_s)
|
@@ -938,7 +938,7 @@ module SibApiV3Sdk
|
|
938
938
|
:body => post_body,
|
939
939
|
:auth_names => auth_names)
|
940
940
|
if @api_client.config.debugging
|
941
|
-
@api_client.config.logger.debug "API called:
|
941
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#smtp_log_message_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
942
942
|
end
|
943
943
|
return data, status_code, headers
|
944
944
|
end
|
@@ -959,15 +959,15 @@ module SibApiV3Sdk
|
|
959
959
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
960
960
|
def update_smtp_template_with_http_info(template_id, smtp_template, opts = {})
|
961
961
|
if @api_client.config.debugging
|
962
|
-
@api_client.config.logger.debug 'Calling API:
|
962
|
+
@api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.update_smtp_template ...'
|
963
963
|
end
|
964
964
|
# verify the required parameter 'template_id' is set
|
965
965
|
if @api_client.config.client_side_validation && template_id.nil?
|
966
|
-
fail ArgumentError, "Missing the required parameter 'template_id' when calling
|
966
|
+
fail ArgumentError, "Missing the required parameter 'template_id' when calling TransactionalEmailsApi.update_smtp_template"
|
967
967
|
end
|
968
968
|
# verify the required parameter 'smtp_template' is set
|
969
969
|
if @api_client.config.client_side_validation && smtp_template.nil?
|
970
|
-
fail ArgumentError, "Missing the required parameter 'smtp_template' when calling
|
970
|
+
fail ArgumentError, "Missing the required parameter 'smtp_template' when calling TransactionalEmailsApi.update_smtp_template"
|
971
971
|
end
|
972
972
|
# resource path
|
973
973
|
local_var_path = '/smtp/templates/{templateId}'.sub('{' + 'templateId' + '}', template_id.to_s)
|
@@ -995,7 +995,7 @@ module SibApiV3Sdk
|
|
995
995
|
:body => post_body,
|
996
996
|
:auth_names => auth_names)
|
997
997
|
if @api_client.config.debugging
|
998
|
-
@api_client.config.logger.debug "API called:
|
998
|
+
@api_client.config.logger.debug "API called: TransactionalEmailsApi#update_smtp_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
999
999
|
end
|
1000
1000
|
return data, status_code, headers
|
1001
1001
|
end
|
@@ -32,6 +32,10 @@ module SibApiV3Sdk
|
|
32
32
|
# Open/Click rate for the winner version
|
33
33
|
attr_accessor :winning_version_rate
|
34
34
|
|
35
|
+
attr_accessor :statistics
|
36
|
+
|
37
|
+
attr_accessor :clicked_links
|
38
|
+
|
35
39
|
class EnumAttributeValidator
|
36
40
|
attr_reader :datatype
|
37
41
|
attr_reader :allowable_values
|
@@ -62,7 +66,9 @@ module SibApiV3Sdk
|
|
62
66
|
:'winning_subject_line' => :'winningSubjectLine',
|
63
67
|
:'open_rate' => :'openRate',
|
64
68
|
:'click_rate' => :'clickRate',
|
65
|
-
:'winning_version_rate' => :'winningVersionRate'
|
69
|
+
:'winning_version_rate' => :'winningVersionRate',
|
70
|
+
:'statistics' => :'statistics',
|
71
|
+
:'clicked_links' => :'clickedLinks'
|
66
72
|
}
|
67
73
|
end
|
68
74
|
|
@@ -74,7 +80,9 @@ module SibApiV3Sdk
|
|
74
80
|
:'winning_subject_line' => :'String',
|
75
81
|
:'open_rate' => :'String',
|
76
82
|
:'click_rate' => :'String',
|
77
|
-
:'winning_version_rate' => :'String'
|
83
|
+
:'winning_version_rate' => :'String',
|
84
|
+
:'statistics' => :'AbTestCampaignResultStatistics',
|
85
|
+
:'clicked_links' => :'AbTestCampaignResultClickedLinks'
|
78
86
|
}
|
79
87
|
end
|
80
88
|
|
@@ -109,6 +117,14 @@ module SibApiV3Sdk
|
|
109
117
|
if attributes.has_key?(:'winningVersionRate')
|
110
118
|
self.winning_version_rate = attributes[:'winningVersionRate']
|
111
119
|
end
|
120
|
+
|
121
|
+
if attributes.has_key?(:'statistics')
|
122
|
+
self.statistics = attributes[:'statistics']
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.has_key?(:'clickedLinks')
|
126
|
+
self.clicked_links = attributes[:'clickedLinks']
|
127
|
+
end
|
112
128
|
end
|
113
129
|
|
114
130
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -158,7 +174,9 @@ module SibApiV3Sdk
|
|
158
174
|
winning_subject_line == o.winning_subject_line &&
|
159
175
|
open_rate == o.open_rate &&
|
160
176
|
click_rate == o.click_rate &&
|
161
|
-
winning_version_rate == o.winning_version_rate
|
177
|
+
winning_version_rate == o.winning_version_rate &&
|
178
|
+
statistics == o.statistics &&
|
179
|
+
clicked_links == o.clicked_links
|
162
180
|
end
|
163
181
|
|
164
182
|
# @see the `==` method
|
@@ -170,7 +188,7 @@ module SibApiV3Sdk
|
|
170
188
|
# Calculates hash code according to all attributes.
|
171
189
|
# @return [Fixnum] Hash code
|
172
190
|
def hash
|
173
|
-
[winning_version, winning_criteria, winning_subject_line, open_rate, click_rate, winning_version_rate].hash
|
191
|
+
[winning_version, winning_criteria, winning_subject_line, open_rate, click_rate, winning_version_rate, statistics, clicked_links].hash
|
174
192
|
end
|
175
193
|
|
176
194
|
# Builds the object from hash
|