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
@@ -0,0 +1,35 @@
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::AbTestVersionClicks
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'AbTestVersionClicks' do
21
+ before do
22
+ # run before each test
23
+ @instance = SibApiV3Sdk::AbTestVersionClicks.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of AbTestVersionClicks' do
31
+ it 'should create an instance of AbTestVersionClicks' do
32
+ expect(@instance).to be_instance_of(SibApiV3Sdk::AbTestVersionClicks)
33
+ end
34
+ end
35
+ end
@@ -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::AbTestVersionStats
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'AbTestVersionStats' do
21
+ before do
22
+ # run before each test
23
+ @instance = SibApiV3Sdk::AbTestVersionStats.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of AbTestVersionStats' do
31
+ it 'should create an instance of AbTestVersionStats' do
32
+ expect(@instance).to be_instance_of(SibApiV3Sdk::AbTestVersionStats)
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
@@ -38,4 +38,10 @@ describe 'AddContactToList' do
38
38
  end
39
39
  end
40
40
 
41
+ describe 'test attribute "ids"' 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
+
41
47
  end
@@ -104,4 +104,10 @@ describe 'GetCampaignStats' do
104
104
  end
105
105
  end
106
106
 
107
+ describe 'test attribute "return_bounce"' do
108
+ it 'should work' do
109
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
+ end
111
+ end
112
+
107
113
  end
@@ -38,6 +38,12 @@ describe 'RemoveContactFromList' do
38
38
  end
39
39
  end
40
40
 
41
+ describe 'test attribute "ids"' 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
+
41
47
  describe 'test attribute "all"' do
42
48
  it 'should work' do
43
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -32,40 +32,12 @@ describe 'SendReportEmail' do
32
32
  expect(@instance).to be_instance_of(SibApiV3Sdk::SendReportEmail)
33
33
  end
34
34
  end
35
- describe 'test attribute "subject"' 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
35
  describe 'test attribute "to"' do
42
36
  it 'should work' do
43
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
38
  end
45
39
  end
46
40
 
47
- describe 'test attribute "content_type"' do
48
- it 'should work' do
49
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["text", "html"])
51
- # validator.allowable_values.each do |value|
52
- # expect { @instance.content_type = value }.not_to raise_error
53
- # end
54
- end
55
- end
56
-
57
- describe 'test attribute "bcc"' do
58
- it 'should work' do
59
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
60
- end
61
- end
62
-
63
- describe 'test attribute "cc"' do
64
- it 'should work' do
65
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
66
- end
67
- end
68
-
69
41
  describe 'test attribute "body"' do
70
42
  it 'should work' do
71
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -44,4 +44,10 @@ describe 'SendSmtpEmailSender' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "id"' 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
+
47
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sib-api-v3-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.5.0
4
+ version: 7.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SendinBlue Developers
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-17 00:00:00.000000000 Z
11
+ date: 2020-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -202,6 +202,11 @@ files:
202
202
  - README.md
203
203
  - Rakefile
204
204
  - docs/AbTestCampaignResult.md
205
+ - docs/AbTestCampaignResultClickedLinks.md
206
+ - docs/AbTestCampaignResultStatistics.md
207
+ - docs/AbTestVersionClicks.md
208
+ - docs/AbTestVersionClicksInner.md
209
+ - docs/AbTestVersionStats.md
205
210
  - docs/AccountApi.md
206
211
  - docs/AddChildDomain.md
207
212
  - docs/AddContactToList.md
@@ -348,7 +353,6 @@ files:
348
353
  - docs/RequestSMSRecipientExport.md
349
354
  - docs/ResellerApi.md
350
355
  - docs/SMSCampaignsApi.md
351
- - docs/SMTPApi.md
352
356
  - docs/SendEmail.md
353
357
  - docs/SendEmailAttachment.md
354
358
  - docs/SendReport.md
@@ -366,6 +370,7 @@ files:
366
370
  - docs/SendTestSms.md
367
371
  - docs/SendTransacSms.md
368
372
  - docs/SendersApi.md
373
+ - docs/TransactionalEmailsApi.md
369
374
  - docs/TransactionalSMSApi.md
370
375
  - docs/UpdateAttribute.md
371
376
  - docs/UpdateAttributeEnumeration.md
@@ -396,13 +401,18 @@ files:
396
401
  - lib/sib-api-v3-sdk/api/reseller_api.rb
397
402
  - lib/sib-api-v3-sdk/api/senders_api.rb
398
403
  - lib/sib-api-v3-sdk/api/sms_campaigns_api.rb
399
- - lib/sib-api-v3-sdk/api/smtp_api.rb
404
+ - lib/sib-api-v3-sdk/api/transactional_emails_api.rb
400
405
  - lib/sib-api-v3-sdk/api/transactional_sms_api.rb
401
406
  - lib/sib-api-v3-sdk/api/webhooks_api.rb
402
407
  - lib/sib-api-v3-sdk/api_client.rb
403
408
  - lib/sib-api-v3-sdk/api_error.rb
404
409
  - lib/sib-api-v3-sdk/configuration.rb
405
410
  - lib/sib-api-v3-sdk/models/ab_test_campaign_result.rb
411
+ - lib/sib-api-v3-sdk/models/ab_test_campaign_result_clicked_links.rb
412
+ - lib/sib-api-v3-sdk/models/ab_test_campaign_result_statistics.rb
413
+ - lib/sib-api-v3-sdk/models/ab_test_version_clicks.rb
414
+ - lib/sib-api-v3-sdk/models/ab_test_version_clicks_inner.rb
415
+ - lib/sib-api-v3-sdk/models/ab_test_version_stats.rb
406
416
  - lib/sib-api-v3-sdk/models/add_child_domain.rb
407
417
  - lib/sib-api-v3-sdk/models/add_contact_to_list.rb
408
418
  - lib/sib-api-v3-sdk/models/add_credits.rb
@@ -585,12 +595,17 @@ files:
585
595
  - spec/api/reseller_api_spec.rb
586
596
  - spec/api/senders_api_spec.rb
587
597
  - spec/api/sms_campaigns_api_spec.rb
588
- - spec/api/smtp_api_spec.rb
598
+ - spec/api/transactional_emails_api_spec.rb
589
599
  - spec/api/transactional_sms_api_spec.rb
590
600
  - spec/api/webhooks_api_spec.rb
591
601
  - spec/api_client_spec.rb
592
602
  - spec/configuration_spec.rb
603
+ - spec/models/ab_test_campaign_result_clicked_links_spec.rb
593
604
  - spec/models/ab_test_campaign_result_spec.rb
605
+ - spec/models/ab_test_campaign_result_statistics_spec.rb
606
+ - spec/models/ab_test_version_clicks_inner_spec.rb
607
+ - spec/models/ab_test_version_clicks_spec.rb
608
+ - spec/models/ab_test_version_stats_spec.rb
594
609
  - spec/models/add_child_domain_spec.rb
595
610
  - spec/models/add_contact_to_list_spec.rb
596
611
  - spec/models/add_credits_spec.rb
@@ -766,7 +781,7 @@ homepage: https://www.sendinblue.com/
766
781
  licenses:
767
782
  - MIT
768
783
  metadata: {}
769
- post_install_message:
784
+ post_install_message:
770
785
  rdoc_options: []
771
786
  require_paths:
772
787
  - lib
@@ -781,9 +796,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
781
796
  - !ruby/object:Gem::Version
782
797
  version: '0'
783
798
  requirements: []
784
- rubyforge_project:
799
+ rubyforge_project:
785
800
  rubygems_version: 2.7.7
786
- signing_key:
801
+ signing_key:
787
802
  specification_version: 4
788
803
  summary: SendinBlue API V3 Ruby Gem
789
804
  test_files:
@@ -797,12 +812,17 @@ test_files:
797
812
  - spec/api/reseller_api_spec.rb
798
813
  - spec/api/senders_api_spec.rb
799
814
  - spec/api/sms_campaigns_api_spec.rb
800
- - spec/api/smtp_api_spec.rb
815
+ - spec/api/transactional_emails_api_spec.rb
801
816
  - spec/api/transactional_sms_api_spec.rb
802
817
  - spec/api/webhooks_api_spec.rb
803
818
  - spec/api_client_spec.rb
804
819
  - spec/configuration_spec.rb
820
+ - spec/models/ab_test_campaign_result_clicked_links_spec.rb
805
821
  - spec/models/ab_test_campaign_result_spec.rb
822
+ - spec/models/ab_test_campaign_result_statistics_spec.rb
823
+ - spec/models/ab_test_version_clicks_inner_spec.rb
824
+ - spec/models/ab_test_version_clicks_spec.rb
825
+ - spec/models/ab_test_version_stats_spec.rb
806
826
  - spec/models/add_child_domain_spec.rb
807
827
  - spec/models/add_contact_to_list_spec.rb
808
828
  - spec/models/add_credits_spec.rb