sib-api-v3-sdk 3.0.1 → 4.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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -11
  3. data/docs/AddContactToList.md +8 -0
  4. data/docs/AddCredits.md +2 -2
  5. data/docs/ContactsApi.md +9 -9
  6. data/docs/CreateReseller.md +8 -0
  7. data/docs/GetChildInfo.md +2 -2
  8. data/docs/GetChildInfoApiKeys.md +2 -3
  9. data/docs/GetChildInfoApiKeysV2.md +9 -0
  10. data/docs/GetChildInfoApiKeysV3.md +9 -0
  11. data/docs/GetEmailCampaign.md +2 -0
  12. data/docs/GetSmsCampaign.md +2 -0
  13. data/docs/ListsApi.md +9 -9
  14. data/docs/ManageIp.md +1 -1
  15. data/docs/RemoveContactFromList.md +9 -0
  16. data/docs/RemoveCredits.md +2 -2
  17. data/docs/ResellerApi.md +45 -45
  18. data/docs/SendSmtpEmail.md +7 -5
  19. data/docs/UpdateChild.md +0 -1
  20. data/lib/sib-api-v3-sdk.rb +5 -2
  21. data/lib/sib-api-v3-sdk/api/contacts_api.rb +7 -7
  22. data/lib/sib-api-v3-sdk/api/lists_api.rb +7 -7
  23. data/lib/sib-api-v3-sdk/api/reseller_api.rb +82 -82
  24. data/lib/sib-api-v3-sdk/models/{add_remove_contact_to_list.rb → add_contact_to_list.rb} +2 -2
  25. data/lib/sib-api-v3-sdk/models/add_credits.rb +2 -2
  26. data/lib/sib-api-v3-sdk/models/create_reseller.rb +194 -0
  27. data/lib/sib-api-v3-sdk/models/error_model.rb +2 -2
  28. data/lib/sib-api-v3-sdk/models/get_child_info.rb +3 -6
  29. data/lib/sib-api-v3-sdk/models/get_child_info_api_keys.rb +21 -34
  30. data/lib/sib-api-v3-sdk/models/get_child_info_api_keys_v2.rb +209 -0
  31. data/lib/sib-api-v3-sdk/models/get_child_info_api_keys_v3.rb +209 -0
  32. data/lib/sib-api-v3-sdk/models/get_email_campaign.rb +32 -4
  33. data/lib/sib-api-v3-sdk/models/get_sms_campaign.rb +32 -4
  34. data/lib/sib-api-v3-sdk/models/manage_ip.rb +8 -8
  35. data/lib/sib-api-v3-sdk/models/{get_child_info_ips.rb → remove_contact_from_list.rb} +18 -26
  36. data/lib/sib-api-v3-sdk/models/remove_credits.rb +2 -2
  37. data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +29 -23
  38. data/lib/sib-api-v3-sdk/models/send_smtp_email_sender.rb +1 -1
  39. data/lib/sib-api-v3-sdk/models/update_child.rb +4 -15
  40. data/lib/sib-api-v3-sdk/version.rb +1 -1
  41. data/spec/api/contacts_api_spec.rb +2 -2
  42. data/spec/api/lists_api_spec.rb +2 -2
  43. data/spec/api/reseller_api_spec.rb +12 -12
  44. data/spec/models/{add_remove_contact_to_list_spec.rb → add_contact_to_list_spec.rb} +6 -6
  45. data/spec/models/create_reseller_spec.rb +42 -0
  46. data/spec/models/error_model_spec.rb +1 -1
  47. data/spec/models/get_child_info_api_keys_spec.rb +2 -8
  48. data/spec/models/{get_child_info_ips_spec.rb → get_child_info_api_keys_v2_spec.rb} +8 -8
  49. data/spec/models/get_child_info_api_keys_v3_spec.rb +48 -0
  50. data/spec/models/get_email_campaign_spec.rb +12 -0
  51. data/spec/models/get_sms_campaign_spec.rb +12 -0
  52. data/spec/models/manage_ip_spec.rb +1 -1
  53. data/spec/models/remove_contact_from_list_spec.rb +48 -0
  54. data/spec/models/send_smtp_email_spec.rb +12 -0
  55. data/spec/models/update_child_spec.rb +0 -6
  56. metadata +22 -10
  57. data/docs/AddRemoveContactToList.md +0 -8
  58. data/docs/GetChildInfoIps.md +0 -9
@@ -0,0 +1,48 @@
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 |
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.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SibApiV3Sdk::GetChildInfoApiKeysV3
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'GetChildInfoApiKeysV3' do
21
+ before do
22
+ # run before each test
23
+ @instance = SibApiV3Sdk::GetChildInfoApiKeysV3.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of GetChildInfoApiKeysV3' do
31
+ it 'should create an instance of GetChildInfoApiKeysV3' do
32
+ expect(@instance).to be_instance_of(SibApiV3Sdk::GetChildInfoApiKeysV3)
33
+ end
34
+ end
35
+ describe 'test attribute "name"' 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 "key"' 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
48
+
@@ -160,5 +160,17 @@ describe 'GetEmailCampaign' do
160
160
  end
161
161
  end
162
162
 
163
+ describe 'test attribute "recipients"' do
164
+ it 'should work' do
165
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
166
+ end
167
+ end
168
+
169
+ describe 'test attribute "statistics"' do
170
+ it 'should work' do
171
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
172
+ end
173
+ end
174
+
163
175
  end
164
176
 
@@ -90,5 +90,17 @@ describe 'GetSmsCampaign' do
90
90
  end
91
91
  end
92
92
 
93
+ describe 'test attribute "recipients"' do
94
+ it 'should work' do
95
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
96
+ end
97
+ end
98
+
99
+ describe 'test attribute "statistics"' do
100
+ it 'should work' do
101
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
+ end
103
+ end
104
+
93
105
  end
94
106
 
@@ -32,7 +32,7 @@ describe 'ManageIp' do
32
32
  expect(@instance).to be_instance_of(SibApiV3Sdk::ManageIp)
33
33
  end
34
34
  end
35
- describe 'test attribute "ip_id"' do
35
+ describe 'test attribute "ip"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
@@ -0,0 +1,48 @@
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 |
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.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SibApiV3Sdk::RemoveContactFromList
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'RemoveContactFromList' do
21
+ before do
22
+ # run before each test
23
+ @instance = SibApiV3Sdk::RemoveContactFromList.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of RemoveContactFromList' do
31
+ it 'should create an instance of RemoveContactFromList' do
32
+ expect(@instance).to be_instance_of(SibApiV3Sdk::RemoveContactFromList)
33
+ end
34
+ end
35
+ describe 'test attribute "emails"' 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 "all"' 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
48
+
@@ -92,5 +92,17 @@ describe 'SendSmtpEmail' do
92
92
  end
93
93
  end
94
94
 
95
+ describe 'test attribute "template_id"' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
101
+ describe 'test attribute "params"' do
102
+ it 'should work' do
103
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
+ end
105
+ end
106
+
95
107
  end
96
108
 
@@ -62,11 +62,5 @@ describe 'UpdateChild' do
62
62
  end
63
63
  end
64
64
 
65
- describe 'test attribute "ips"' 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
65
  end
72
66
 
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: 3.0.1
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SendinBlue Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-26 00:00:00.000000000 Z
11
+ date: 2018-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -202,8 +202,8 @@ files:
202
202
  - README.md
203
203
  - Rakefile
204
204
  - docs/AccountApi.md
205
+ - docs/AddContactToList.md
205
206
  - docs/AddCredits.md
206
- - docs/AddRemoveContactToList.md
207
207
  - docs/AttributesApi.md
208
208
  - docs/ContactsApi.md
209
209
  - docs/CreateAttribute.md
@@ -215,6 +215,7 @@ files:
215
215
  - docs/CreateEmailCampaignSender.md
216
216
  - docs/CreateList.md
217
217
  - docs/CreateModel.md
218
+ - docs/CreateReseller.md
218
219
  - docs/CreateSender.md
219
220
  - docs/CreateSenderIps.md
220
221
  - docs/CreateSenderModel.md
@@ -245,8 +246,9 @@ files:
245
246
  - docs/GetCampaignStats.md
246
247
  - docs/GetChildInfo.md
247
248
  - docs/GetChildInfoApiKeys.md
249
+ - docs/GetChildInfoApiKeysV2.md
250
+ - docs/GetChildInfoApiKeysV3.md
248
251
  - docs/GetChildInfoCredits.md
249
- - docs/GetChildInfoIps.md
250
252
  - docs/GetChildInfoStatistics.md
251
253
  - docs/GetChildrenList.md
252
254
  - docs/GetClient.md
@@ -319,6 +321,7 @@ files:
319
321
  - docs/RemainingCreditModel.md
320
322
  - docs/RemainingCreditModelChild.md
321
323
  - docs/RemainingCreditModelReseller.md
324
+ - docs/RemoveContactFromList.md
322
325
  - docs/RemoveCredits.md
323
326
  - docs/RequestContactExport.md
324
327
  - docs/RequestContactImport.md
@@ -377,8 +380,8 @@ files:
377
380
  - lib/sib-api-v3-sdk/api_client.rb
378
381
  - lib/sib-api-v3-sdk/api_error.rb
379
382
  - lib/sib-api-v3-sdk/configuration.rb
383
+ - lib/sib-api-v3-sdk/models/add_contact_to_list.rb
380
384
  - lib/sib-api-v3-sdk/models/add_credits.rb
381
- - lib/sib-api-v3-sdk/models/add_remove_contact_to_list.rb
382
385
  - lib/sib-api-v3-sdk/models/create_attribute.rb
383
386
  - lib/sib-api-v3-sdk/models/create_attribute_enumeration.rb
384
387
  - lib/sib-api-v3-sdk/models/create_child.rb
@@ -388,6 +391,7 @@ files:
388
391
  - lib/sib-api-v3-sdk/models/create_email_campaign_sender.rb
389
392
  - lib/sib-api-v3-sdk/models/create_list.rb
390
393
  - lib/sib-api-v3-sdk/models/create_model.rb
394
+ - lib/sib-api-v3-sdk/models/create_reseller.rb
391
395
  - lib/sib-api-v3-sdk/models/create_sender.rb
392
396
  - lib/sib-api-v3-sdk/models/create_sender_ips.rb
393
397
  - lib/sib-api-v3-sdk/models/create_sender_model.rb
@@ -416,8 +420,9 @@ files:
416
420
  - lib/sib-api-v3-sdk/models/get_campaign_stats.rb
417
421
  - lib/sib-api-v3-sdk/models/get_child_info.rb
418
422
  - lib/sib-api-v3-sdk/models/get_child_info_api_keys.rb
423
+ - lib/sib-api-v3-sdk/models/get_child_info_api_keys_v2.rb
424
+ - lib/sib-api-v3-sdk/models/get_child_info_api_keys_v3.rb
419
425
  - lib/sib-api-v3-sdk/models/get_child_info_credits.rb
420
- - lib/sib-api-v3-sdk/models/get_child_info_ips.rb
421
426
  - lib/sib-api-v3-sdk/models/get_child_info_statistics.rb
422
427
  - lib/sib-api-v3-sdk/models/get_children_list.rb
423
428
  - lib/sib-api-v3-sdk/models/get_client.rb
@@ -488,6 +493,7 @@ files:
488
493
  - lib/sib-api-v3-sdk/models/remaining_credit_model.rb
489
494
  - lib/sib-api-v3-sdk/models/remaining_credit_model_child.rb
490
495
  - lib/sib-api-v3-sdk/models/remaining_credit_model_reseller.rb
496
+ - lib/sib-api-v3-sdk/models/remove_contact_from_list.rb
491
497
  - lib/sib-api-v3-sdk/models/remove_credits.rb
492
498
  - lib/sib-api-v3-sdk/models/request_contact_export.rb
493
499
  - lib/sib-api-v3-sdk/models/request_contact_import.rb
@@ -540,8 +546,8 @@ files:
540
546
  - spec/api/webhooks_api_spec.rb
541
547
  - spec/api_client_spec.rb
542
548
  - spec/configuration_spec.rb
549
+ - spec/models/add_contact_to_list_spec.rb
543
550
  - spec/models/add_credits_spec.rb
544
- - spec/models/add_remove_contact_to_list_spec.rb
545
551
  - spec/models/create_attribute_enumeration_spec.rb
546
552
  - spec/models/create_attribute_spec.rb
547
553
  - spec/models/create_child_spec.rb
@@ -551,6 +557,7 @@ files:
551
557
  - spec/models/create_email_campaign_spec.rb
552
558
  - spec/models/create_list_spec.rb
553
559
  - spec/models/create_model_spec.rb
560
+ - spec/models/create_reseller_spec.rb
554
561
  - spec/models/create_sender_ips_spec.rb
555
562
  - spec/models/create_sender_model_spec.rb
556
563
  - spec/models/create_sender_spec.rb
@@ -578,8 +585,9 @@ files:
578
585
  - spec/models/get_campaign_recipients_spec.rb
579
586
  - spec/models/get_campaign_stats_spec.rb
580
587
  - spec/models/get_child_info_api_keys_spec.rb
588
+ - spec/models/get_child_info_api_keys_v2_spec.rb
589
+ - spec/models/get_child_info_api_keys_v3_spec.rb
581
590
  - spec/models/get_child_info_credits_spec.rb
582
- - spec/models/get_child_info_ips_spec.rb
583
591
  - spec/models/get_child_info_spec.rb
584
592
  - spec/models/get_child_info_statistics_spec.rb
585
593
  - spec/models/get_children_list_spec.rb
@@ -651,6 +659,7 @@ files:
651
659
  - spec/models/remaining_credit_model_child_spec.rb
652
660
  - spec/models/remaining_credit_model_reseller_spec.rb
653
661
  - spec/models/remaining_credit_model_spec.rb
662
+ - spec/models/remove_contact_from_list_spec.rb
654
663
  - spec/models/remove_credits_spec.rb
655
664
  - spec/models/request_contact_export_spec.rb
656
665
  - spec/models/request_contact_import_new_list_spec.rb
@@ -727,8 +736,8 @@ test_files:
727
736
  - spec/api/webhooks_api_spec.rb
728
737
  - spec/api_client_spec.rb
729
738
  - spec/configuration_spec.rb
739
+ - spec/models/add_contact_to_list_spec.rb
730
740
  - spec/models/add_credits_spec.rb
731
- - spec/models/add_remove_contact_to_list_spec.rb
732
741
  - spec/models/create_attribute_enumeration_spec.rb
733
742
  - spec/models/create_attribute_spec.rb
734
743
  - spec/models/create_child_spec.rb
@@ -738,6 +747,7 @@ test_files:
738
747
  - spec/models/create_email_campaign_spec.rb
739
748
  - spec/models/create_list_spec.rb
740
749
  - spec/models/create_model_spec.rb
750
+ - spec/models/create_reseller_spec.rb
741
751
  - spec/models/create_sender_ips_spec.rb
742
752
  - spec/models/create_sender_model_spec.rb
743
753
  - spec/models/create_sender_spec.rb
@@ -765,8 +775,9 @@ test_files:
765
775
  - spec/models/get_campaign_recipients_spec.rb
766
776
  - spec/models/get_campaign_stats_spec.rb
767
777
  - spec/models/get_child_info_api_keys_spec.rb
778
+ - spec/models/get_child_info_api_keys_v2_spec.rb
779
+ - spec/models/get_child_info_api_keys_v3_spec.rb
768
780
  - spec/models/get_child_info_credits_spec.rb
769
- - spec/models/get_child_info_ips_spec.rb
770
781
  - spec/models/get_child_info_spec.rb
771
782
  - spec/models/get_child_info_statistics_spec.rb
772
783
  - spec/models/get_children_list_spec.rb
@@ -838,6 +849,7 @@ test_files:
838
849
  - spec/models/remaining_credit_model_child_spec.rb
839
850
  - spec/models/remaining_credit_model_reseller_spec.rb
840
851
  - spec/models/remaining_credit_model_spec.rb
852
+ - spec/models/remove_contact_from_list_spec.rb
841
853
  - spec/models/remove_credits_spec.rb
842
854
  - spec/models/request_contact_export_spec.rb
843
855
  - spec/models/request_contact_import_new_list_spec.rb
@@ -1,8 +0,0 @@
1
- # SibApiV3Sdk::AddRemoveContactToList
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **emails** | **Array<String>** | Emails to add or remove from a list | [optional]
7
-
8
-
@@ -1,9 +0,0 @@
1
- # SibApiV3Sdk::GetChildInfoIps
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **Integer** | ID of the IP |
7
- **ip** | **String** | IP associated to the child account user |
8
-
9
-