sib-api-v3-sdk 5.5.0 → 7.1.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.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -21
  3. data/docs/AbTestCampaignResult.md +2 -0
  4. data/docs/AbTestCampaignResultClickedLinks.md +9 -0
  5. data/docs/AbTestCampaignResultStatistics.md +13 -0
  6. data/docs/AbTestVersionClicks.md +7 -0
  7. data/docs/AbTestVersionClicksInner.md +10 -0
  8. data/docs/AbTestVersionStats.md +9 -0
  9. data/docs/AddContactToList.md +2 -1
  10. data/docs/ContactsApi.md +24 -24
  11. data/docs/CreateDoiContact.md +1 -1
  12. data/docs/CreateSmsCampaign.md +1 -1
  13. data/docs/CreateWebhook.md +1 -1
  14. data/docs/GetAggregatedReport.md +13 -13
  15. data/docs/GetCampaignStats.md +1 -0
  16. data/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md +1 -1
  17. data/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md +1 -1
  18. data/docs/ListsApi.md +4 -4
  19. data/docs/RemoveContactFromList.md +2 -1
  20. data/docs/SendReportEmail.md +1 -5
  21. data/docs/SendSmtpEmailSender.md +1 -0
  22. data/docs/SendTransacSms.md +1 -1
  23. data/docs/{SMTPApi.md → TransactionalEmailsApi.md} +52 -52
  24. data/docs/UpdateSmsCampaign.md +1 -1
  25. data/docs/UpdateWebhook.md +1 -1
  26. data/lib/sib-api-v3-sdk.rb +6 -1
  27. data/lib/sib-api-v3-sdk/api/contacts_api.rb +40 -40
  28. data/lib/sib-api-v3-sdk/api/lists_api.rb +4 -4
  29. data/lib/sib-api-v3-sdk/api/{smtp_api.rb → transactional_emails_api.rb} +52 -52
  30. data/lib/sib-api-v3-sdk/models/ab_test_campaign_result.rb +22 -4
  31. data/lib/sib-api-v3-sdk/models/ab_test_campaign_result_clicked_links.rb +202 -0
  32. data/lib/sib-api-v3-sdk/models/ab_test_campaign_result_statistics.rb +258 -0
  33. data/lib/sib-api-v3-sdk/models/ab_test_version_clicks.rb +175 -0
  34. data/lib/sib-api-v3-sdk/models/ab_test_version_clicks_inner.rb +219 -0
  35. data/lib/sib-api-v3-sdk/models/ab_test_version_stats.rb +205 -0
  36. data/lib/sib-api-v3-sdk/models/add_contact_to_list.rb +17 -5
  37. data/lib/sib-api-v3-sdk/models/create_doi_contact.rb +5 -0
  38. data/lib/sib-api-v3-sdk/models/create_sms_campaign.rb +6 -6
  39. data/lib/sib-api-v3-sdk/models/create_webhook.rb +1 -1
  40. data/lib/sib-api-v3-sdk/models/get_aggregated_report.rb +0 -65
  41. data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +14 -4
  42. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.rb +0 -5
  43. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.rb +0 -5
  44. data/lib/sib-api-v3-sdk/models/remove_contact_from_list.rb +14 -2
  45. data/lib/sib-api-v3-sdk/models/send_report_email.rb +3 -88
  46. data/lib/sib-api-v3-sdk/models/send_smtp_email_sender.rb +15 -5
  47. data/lib/sib-api-v3-sdk/models/send_transac_sms.rb +6 -6
  48. data/lib/sib-api-v3-sdk/models/update_sms_campaign.rb +6 -6
  49. data/lib/sib-api-v3-sdk/models/update_webhook.rb +1 -1
  50. data/lib/sib-api-v3-sdk/version.rb +1 -1
  51. data/spec/api/contacts_api_spec.rb +6 -6
  52. data/spec/api/lists_api_spec.rb +2 -2
  53. data/spec/api/{smtp_api_spec.rb → transactional_emails_api_spec.rb} +6 -6
  54. data/spec/models/ab_test_campaign_result_clicked_links_spec.rb +47 -0
  55. data/spec/models/ab_test_campaign_result_spec.rb +12 -0
  56. data/spec/models/ab_test_campaign_result_statistics_spec.rb +71 -0
  57. data/spec/models/ab_test_version_clicks_inner_spec.rb +53 -0
  58. data/spec/models/ab_test_version_clicks_spec.rb +35 -0
  59. data/spec/models/ab_test_version_stats_spec.rb +47 -0
  60. data/spec/models/add_contact_to_list_spec.rb +6 -0
  61. data/spec/models/get_campaign_stats_spec.rb +6 -0
  62. data/spec/models/remove_contact_from_list_spec.rb +6 -0
  63. data/spec/models/send_report_email_spec.rb +0 -28
  64. data/spec/models/send_smtp_email_sender_spec.rb +6 -0
  65. metadata +30 -10
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.4.12
13
13
  require 'date'
14
14
 
15
15
  module SibApiV3Sdk
16
- # Mandatory if 'templateId' is not passed. Pass name (optional) and email of sender from which emails will be sent. For example, {\"name\":\"Mary from MyShop\", \"email\":\"no-reply@myshop.com\"}
16
+ # Mandatory if `templateId` is not passed. Pass name (optional) and email or id of sender from which emails will be sent. `name` will be ignored if passed along with sender `id`. For example, {\"name\":\"Mary from MyShop\", \"email\":\"no-reply@myshop.com\"} or {\"id\":2}
17
17
  class SendSmtpEmailSender
18
18
  # Name of the sender from which the emails will be sent. Maximum allowed characters are 70.
19
19
  attr_accessor :name
@@ -21,11 +21,15 @@ module SibApiV3Sdk
21
21
  # Email of the sender from which the emails will be sent
22
22
  attr_accessor :email
23
23
 
24
+ # Id of the sender from which the emails will be sent
25
+ attr_accessor :id
26
+
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
30
  :'name' => :'name',
28
- :'email' => :'email'
31
+ :'email' => :'email',
32
+ :'id' => :'id'
29
33
  }
30
34
  end
31
35
 
@@ -33,7 +37,8 @@ module SibApiV3Sdk
33
37
  def self.swagger_types
34
38
  {
35
39
  :'name' => :'String',
36
- :'email' => :'String'
40
+ :'email' => :'String',
41
+ :'id' => :'Integer'
37
42
  }
38
43
  end
39
44
 
@@ -52,6 +57,10 @@ module SibApiV3Sdk
52
57
  if attributes.has_key?(:'email')
53
58
  self.email = attributes[:'email']
54
59
  end
60
+
61
+ if attributes.has_key?(:'id')
62
+ self.id = attributes[:'id']
63
+ end
55
64
  end
56
65
 
57
66
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -78,7 +87,8 @@ module SibApiV3Sdk
78
87
  return true if self.equal?(o)
79
88
  self.class == o.class &&
80
89
  name == o.name &&
81
- email == o.email
90
+ email == o.email &&
91
+ id == o.id
82
92
  end
83
93
 
84
94
  # @see the `==` method
@@ -90,7 +100,7 @@ module SibApiV3Sdk
90
100
  # Calculates hash code according to all attributes.
91
101
  # @return [Fixnum] Hash code
92
102
  def hash
93
- [name, email].hash
103
+ [name, email, id].hash
94
104
  end
95
105
 
96
106
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module SibApiV3Sdk
16
16
  class SendTransacSms
17
- # Name of the sender. Only alphanumeric characters. No more than 11 characters
17
+ # Name of the sender. **The number of characters is limited to 11 for alphanumeric characters and 15 for numeric characters**
18
18
  attr_accessor :sender
19
19
 
20
20
  # Mobile number to send SMS with the country code
@@ -121,8 +121,8 @@ module SibApiV3Sdk
121
121
  invalid_properties.push('invalid value for "sender", sender cannot be nil.')
122
122
  end
123
123
 
124
- if @sender.to_s.length > 11
125
- invalid_properties.push('invalid value for "sender", the character length must be smaller than or equal to 11.')
124
+ if @sender.to_s.length > 15
125
+ invalid_properties.push('invalid value for "sender", the character length must be smaller than or equal to 15.')
126
126
  end
127
127
 
128
128
  if @recipient.nil?
@@ -140,7 +140,7 @@ module SibApiV3Sdk
140
140
  # @return true if the model is valid
141
141
  def valid?
142
142
  return false if @sender.nil?
143
- return false if @sender.to_s.length > 11
143
+ return false if @sender.to_s.length > 15
144
144
  return false if @recipient.nil?
145
145
  return false if @content.nil?
146
146
  type_validator = EnumAttributeValidator.new('String', ['transactional', 'marketing'])
@@ -155,8 +155,8 @@ module SibApiV3Sdk
155
155
  fail ArgumentError, 'sender cannot be nil'
156
156
  end
157
157
 
158
- if sender.to_s.length > 11
159
- fail ArgumentError, 'invalid value for "sender", the character length must be smaller than or equal to 11.'
158
+ if sender.to_s.length > 15
159
+ fail ArgumentError, 'invalid value for "sender", the character length must be smaller than or equal to 15.'
160
160
  end
161
161
 
162
162
  @sender = sender
@@ -17,7 +17,7 @@ module SibApiV3Sdk
17
17
  # Name of the campaign
18
18
  attr_accessor :name
19
19
 
20
- # Name of the sender. The number of characters is limited to 11
20
+ # Name of the sender. **The number of characters is limited to 11 for alphanumeric characters and 15 for numeric characters**
21
21
  attr_accessor :sender
22
22
 
23
23
  # Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS
@@ -83,8 +83,8 @@ module SibApiV3Sdk
83
83
  # @return Array for valid properties with the reasons
84
84
  def list_invalid_properties
85
85
  invalid_properties = Array.new
86
- if !@sender.nil? && @sender.to_s.length > 11
87
- invalid_properties.push('invalid value for "sender", the character length must be smaller than or equal to 11.')
86
+ if !@sender.nil? && @sender.to_s.length > 15
87
+ invalid_properties.push('invalid value for "sender", the character length must be smaller than or equal to 15.')
88
88
  end
89
89
 
90
90
  invalid_properties
@@ -93,15 +93,15 @@ module SibApiV3Sdk
93
93
  # Check to see if the all the properties in the model are valid
94
94
  # @return true if the model is valid
95
95
  def valid?
96
- return false if !@sender.nil? && @sender.to_s.length > 11
96
+ return false if !@sender.nil? && @sender.to_s.length > 15
97
97
  true
98
98
  end
99
99
 
100
100
  # Custom attribute writer method with validation
101
101
  # @param [Object] sender Value to be assigned
102
102
  def sender=(sender)
103
- if !sender.nil? && sender.to_s.length > 11
104
- fail ArgumentError, 'invalid value for "sender", the character length must be smaller than or equal to 11.'
103
+ if !sender.nil? && sender.to_s.length > 15
104
+ fail ArgumentError, 'invalid value for "sender", the character length must be smaller than or equal to 15.'
105
105
  end
106
106
 
107
107
  @sender = 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 and delivered
23
+ # Events triggering the webhook. Possible values for Transactional type webhook – `sent` OR `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` and `delivered`
24
24
  attr_accessor :events
25
25
 
26
26
  class EnumAttributeValidator
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.12
11
11
  =end
12
12
 
13
13
  module SibApiV3Sdk
14
- VERSION = "5.5.0"
14
+ VERSION = "7.1.0"
15
15
  end
@@ -35,7 +35,7 @@ describe 'ContactsApi' do
35
35
  # unit tests for add_contact_to_list
36
36
  # Add existing contacts to a list
37
37
  # @param list_id Id of the list
38
- # @param contact_emails Emails addresses of the contacts
38
+ # @param contact_emails Emails addresses OR IDs of the contacts
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [PostContactInfo]
41
41
  describe 'add_contact_to_list test' do
@@ -115,7 +115,7 @@ describe 'ContactsApi' do
115
115
 
116
116
  # unit tests for delete_contact
117
117
  # Delete a contact
118
- # @param email Email (urlencoded) of the contact
118
+ # @param identifier Email (urlencoded) OR ID of the contact
119
119
  # @param [Hash] opts the optional parameters
120
120
  # @return [nil]
121
121
  describe 'delete_contact test' do
@@ -158,7 +158,7 @@ describe 'ContactsApi' do
158
158
 
159
159
  # unit tests for get_contact_info
160
160
  # Get a contact's details
161
- # @param email Email (urlencoded) of the contact OR its SMS attribute value
161
+ # @param identifier Email (urlencoded) OR ID of the contact OR its SMS attribute value
162
162
  # @param [Hash] opts the optional parameters
163
163
  # @return [GetExtendedContactDetails]
164
164
  describe 'get_contact_info test' do
@@ -169,7 +169,7 @@ describe 'ContactsApi' do
169
169
 
170
170
  # unit tests for get_contact_stats
171
171
  # Get email campaigns' statistics for a contact
172
- # @param email Email address (urlencoded) of the contact
172
+ # @param identifier Email (urlencoded) OR ID of the contact
173
173
  # @param [Hash] opts the optional parameters
174
174
  # @option opts [Date] :start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
175
175
  # @option opts [Date] :end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate
@@ -281,7 +281,7 @@ describe 'ContactsApi' do
281
281
  # unit tests for remove_contact_from_list
282
282
  # Delete a contact from a list
283
283
  # @param list_id Id of the list
284
- # @param contact_emails Emails adresses of the contact
284
+ # @param contact_emails Emails addresses OR IDs of the contacts
285
285
  # @param [Hash] opts the optional parameters
286
286
  # @return [PostContactInfo]
287
287
  describe 'remove_contact_from_list test' do
@@ -317,7 +317,7 @@ describe 'ContactsApi' do
317
317
 
318
318
  # unit tests for update_contact
319
319
  # Update a contact
320
- # @param email Email (urlencoded) of the contact
320
+ # @param identifier Email (urlencoded) OR ID of the contact
321
321
  # @param update_contact Values to update a contact
322
322
  # @param [Hash] opts the optional parameters
323
323
  # @return [nil]
@@ -35,7 +35,7 @@ describe 'ListsApi' do
35
35
  # unit tests for add_contact_to_list
36
36
  # Add existing contacts to a list
37
37
  # @param list_id Id of the list
38
- # @param contact_emails Emails addresses of the contacts
38
+ # @param contact_emails Emails addresses OR IDs of the contacts
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [PostContactInfo]
41
41
  describe 'add_contact_to_list test' do
@@ -119,7 +119,7 @@ describe 'ListsApi' do
119
119
  # unit tests for remove_contact_from_list
120
120
  # Delete a contact from a list
121
121
  # @param list_id Id of the list
122
- # @param contact_emails Emails adresses of the contact
122
+ # @param contact_emails Emails addresses OR IDs of the contacts
123
123
  # @param [Hash] opts the optional parameters
124
124
  # @return [PostContactInfo]
125
125
  describe 'remove_contact_from_list test' do
@@ -13,22 +13,22 @@ Swagger Codegen version: 2.4.12
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for SibApiV3Sdk::SMTPApi
16
+ # Unit tests for SibApiV3Sdk::TransactionalEmailsApi
17
17
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
18
  # Please update as you see appropriate
19
- describe 'SMTPApi' do
19
+ describe 'TransactionalEmailsApi' do
20
20
  before do
21
21
  # run before each test
22
- @instance = SibApiV3Sdk::SMTPApi.new
22
+ @instance = SibApiV3Sdk::TransactionalEmailsApi.new
23
23
  end
24
24
 
25
25
  after do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'test an instance of SMTPApi' do
30
- it 'should create an instance of SMTPApi' do
31
- expect(@instance).to be_instance_of(SibApiV3Sdk::SMTPApi)
29
+ describe 'test an instance of TransactionalEmailsApi' do
30
+ it 'should create an instance of TransactionalEmailsApi' do
31
+ expect(@instance).to be_instance_of(SibApiV3Sdk::TransactionalEmailsApi)
32
32
  end
33
33
  end
34
34
 
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #SendinBlue API
3
+
4
+ #SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
5
+
6
+ OpenAPI spec version: 3.0.0
7
+ Contact: contact@sendinblue.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SibApiV3Sdk::AbTestCampaignResultClickedLinks
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'AbTestCampaignResultClickedLinks' do
21
+ before do
22
+ # run before each test
23
+ @instance = SibApiV3Sdk::AbTestCampaignResultClickedLinks.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of AbTestCampaignResultClickedLinks' do
31
+ it 'should create an instance of AbTestCampaignResultClickedLinks' do
32
+ expect(@instance).to be_instance_of(SibApiV3Sdk::AbTestCampaignResultClickedLinks)
33
+ end
34
+ end
35
+ describe 'test attribute "version_a"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "version_b"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -76,4 +76,16 @@ describe 'AbTestCampaignResult' do
76
76
  end
77
77
  end
78
78
 
79
+ describe 'test attribute "statistics"' do
80
+ it 'should work' do
81
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
+ end
83
+ end
84
+
85
+ describe 'test attribute "clicked_links"' do
86
+ it 'should work' do
87
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
88
+ end
89
+ end
90
+
79
91
  end
@@ -0,0 +1,71 @@
1
+ =begin
2
+ #SendinBlue API
3
+
4
+ #SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
5
+
6
+ OpenAPI spec version: 3.0.0
7
+ Contact: contact@sendinblue.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SibApiV3Sdk::AbTestCampaignResultStatistics
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'AbTestCampaignResultStatistics' do
21
+ before do
22
+ # run before each test
23
+ @instance = SibApiV3Sdk::AbTestCampaignResultStatistics.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of AbTestCampaignResultStatistics' do
31
+ it 'should create an instance of AbTestCampaignResultStatistics' do
32
+ expect(@instance).to be_instance_of(SibApiV3Sdk::AbTestCampaignResultStatistics)
33
+ end
34
+ end
35
+ describe 'test attribute "openers"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "clicks"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "unsubscribed"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "hard_bounces"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "soft_bounces"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "complaints"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ end
@@ -0,0 +1,53 @@
1
+ =begin
2
+ #SendinBlue API
3
+
4
+ #SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
5
+
6
+ OpenAPI spec version: 3.0.0
7
+ Contact: contact@sendinblue.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SibApiV3Sdk::AbTestVersionClicksInner
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'AbTestVersionClicksInner' do
21
+ before do
22
+ # run before each test
23
+ @instance = SibApiV3Sdk::AbTestVersionClicksInner.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of AbTestVersionClicksInner' do
31
+ it 'should create an instance of AbTestVersionClicksInner' do
32
+ expect(@instance).to be_instance_of(SibApiV3Sdk::AbTestVersionClicksInner)
33
+ end
34
+ end
35
+ describe 'test attribute "link"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "clicks_count"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "click_rate"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end