sib-api-v3-sdk 2.1.3 → 2.1.4

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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -5
  3. data/docs/AttributesApi.md +78 -12
  4. data/docs/ContactsApi.md +78 -12
  5. data/docs/CreateAttribute.md +3 -5
  6. data/docs/CreateAttributeEnumeration.md +9 -0
  7. data/docs/GetAttributesAttributes.md +0 -1
  8. data/docs/SendSms.md +1 -0
  9. data/docs/UpdateAttribute.md +9 -0
  10. data/docs/{CreateAttributeEnumemaration.md → UpdateAttributeEnumeration.md} +1 -1
  11. data/lib/sib-api-v3-sdk.rb +3 -1
  12. data/lib/sib-api-v3-sdk/api/attributes_api.rb +115 -20
  13. data/lib/sib-api-v3-sdk/api/contacts_api.rb +115 -20
  14. data/lib/sib-api-v3-sdk/models/create_attribute.rb +12 -59
  15. data/lib/sib-api-v3-sdk/models/create_attribute_enumeration.rb +209 -0
  16. data/lib/sib-api-v3-sdk/models/error_model.rb +2 -2
  17. data/lib/sib-api-v3-sdk/models/get_attributes_attributes.rb +1 -16
  18. data/lib/sib-api-v3-sdk/models/send_sms.rb +18 -4
  19. data/lib/sib-api-v3-sdk/models/update_attribute.rb +201 -0
  20. data/lib/sib-api-v3-sdk/models/{create_attribute_enumemaration.rb → update_attribute_enumeration.rb} +1 -1
  21. data/lib/sib-api-v3-sdk/version.rb +1 -1
  22. data/spec/api/attributes_api_spec.rb +20 -3
  23. data/spec/api/contacts_api_spec.rb +20 -3
  24. data/spec/models/{create_attribute_enumemaration_spec.rb → create_attribute_enumeration_spec.rb} +7 -7
  25. data/spec/models/create_attribute_spec.rb +2 -18
  26. data/spec/models/error_model_spec.rb +1 -1
  27. data/spec/models/get_attributes_attributes_spec.rb +0 -6
  28. data/spec/models/send_sms_spec.rb +6 -0
  29. data/spec/models/update_attribute_enumeration_spec.rb +48 -0
  30. data/spec/models/update_attribute_spec.rb +48 -0
  31. metadata +14 -6
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module SibApiV3Sdk
16
16
 
17
- class CreateAttributeEnumemaration
17
+ class UpdateAttributeEnumeration
18
18
  # Id of the value
19
19
  attr_accessor :id
20
20
 
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.2.3
11
11
  =end
12
12
 
13
13
  module SibApiV3Sdk
14
- VERSION = "2.1.3"
14
+ VERSION = "2.1.4"
15
15
  end
@@ -33,11 +33,13 @@ describe 'AttributesApi' do
33
33
  end
34
34
 
35
35
  # unit tests for create_attribute
36
- # Creates contact attributes
36
+ # Creates contact attribute
37
37
  #
38
+ # @param attribute_category Category of the attribute
39
+ # @param attribute_name Name of the attribute
38
40
  # @param create_attribute Values to create an attribute
39
41
  # @param [Hash] opts the optional parameters
40
- # @return [CreateModel]
42
+ # @return [nil]
41
43
  describe 'create_attribute test' do
42
44
  it "should work" do
43
45
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -47,7 +49,8 @@ describe 'AttributesApi' do
47
49
  # unit tests for delete_attribute
48
50
  # Deletes an attribute
49
51
  #
50
- # @param attribute_id id of the attribute
52
+ # @param attribute_category Category of the attribute
53
+ # @param attribute_name Name of the existing attribute
51
54
  # @param [Hash] opts the optional parameters
52
55
  # @return [nil]
53
56
  describe 'delete_attribute test' do
@@ -67,4 +70,18 @@ describe 'AttributesApi' do
67
70
  end
68
71
  end
69
72
 
73
+ # unit tests for update_attribute
74
+ # Updates contact attribute
75
+ #
76
+ # @param attribute_category Category of the attribute
77
+ # @param attribute_name Name of the existing attribute
78
+ # @param update_attribute Values to update an attribute
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [nil]
81
+ describe 'update_attribute test' do
82
+ it "should work" do
83
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
+ end
85
+ end
86
+
70
87
  end
@@ -46,11 +46,13 @@ describe 'ContactsApi' do
46
46
  end
47
47
 
48
48
  # unit tests for create_attribute
49
- # Creates contact attributes
49
+ # Creates contact attribute
50
50
  #
51
+ # @param attribute_category Category of the attribute
52
+ # @param attribute_name Name of the attribute
51
53
  # @param create_attribute Values to create an attribute
52
54
  # @param [Hash] opts the optional parameters
53
- # @return [CreateModel]
55
+ # @return [nil]
54
56
  describe 'create_attribute test' do
55
57
  it "should work" do
56
58
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -96,7 +98,8 @@ describe 'ContactsApi' do
96
98
  # unit tests for delete_attribute
97
99
  # Deletes an attribute
98
100
  #
99
- # @param attribute_id id of the attribute
101
+ # @param attribute_category Category of the attribute
102
+ # @param attribute_name Name of the existing attribute
100
103
  # @param [Hash] opts the optional parameters
101
104
  # @return [nil]
102
105
  describe 'delete_attribute test' do
@@ -294,6 +297,20 @@ describe 'ContactsApi' do
294
297
  end
295
298
  end
296
299
 
300
+ # unit tests for update_attribute
301
+ # Updates contact attribute
302
+ #
303
+ # @param attribute_category Category of the attribute
304
+ # @param attribute_name Name of the existing attribute
305
+ # @param update_attribute Values to update an attribute
306
+ # @param [Hash] opts the optional parameters
307
+ # @return [nil]
308
+ describe 'update_attribute test' do
309
+ it "should work" do
310
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
311
+ end
312
+ end
313
+
297
314
  # unit tests for update_contact
298
315
  # Updates a contact
299
316
  #
@@ -14,25 +14,25 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for SibApiV3Sdk::CreateAttributeEnumemaration
17
+ # Unit tests for SibApiV3Sdk::CreateAttributeEnumeration
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
- describe 'CreateAttributeEnumemaration' do
20
+ describe 'CreateAttributeEnumeration' do
21
21
  before do
22
22
  # run before each test
23
- @instance = SibApiV3Sdk::CreateAttributeEnumemaration.new
23
+ @instance = SibApiV3Sdk::CreateAttributeEnumeration.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of CreateAttributeEnumemaration' do
31
- it 'should create an instance of CreateAttributeEnumemaration' do
32
- expect(@instance).to be_instance_of(SibApiV3Sdk::CreateAttributeEnumemaration)
30
+ describe 'test an instance of CreateAttributeEnumeration' do
31
+ it 'should create an instance of CreateAttributeEnumeration' do
32
+ expect(@instance).to be_instance_of(SibApiV3Sdk::CreateAttributeEnumeration)
33
33
  end
34
34
  end
35
- describe 'test attribute "id"' do
35
+ describe 'test attribute "value"' 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
@@ -32,29 +32,13 @@ describe 'CreateAttribute' do
32
32
  expect(@instance).to be_instance_of(SibApiV3Sdk::CreateAttribute)
33
33
  end
34
34
  end
35
- describe 'test attribute "category"' do
36
- it 'should work' do
37
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
- #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["normal", "transactional", "category", "calculated", "global"])
39
- #validator.allowable_values.each do |value|
40
- # expect { @instance.category = value }.not_to raise_error
41
- #end
42
- end
43
- end
44
-
45
- describe 'test attribute "name"' do
46
- it 'should work' do
47
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
- end
49
- end
50
-
51
35
  describe 'test attribute "value"' do
52
36
  it 'should work' do
53
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
38
  end
55
39
  end
56
40
 
57
- describe 'test attribute "enumemaration"' do
41
+ describe 'test attribute "enumeration"' do
58
42
  it 'should work' do
59
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
60
44
  end
@@ -63,7 +47,7 @@ describe 'CreateAttribute' do
63
47
  describe 'test attribute "type"' do
64
48
  it 'should work' do
65
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
66
- #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["text", "date", "float", "id"])
50
+ #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["text", "date", "float", "id", "category"])
67
51
  #validator.allowable_values.each do |value|
68
52
  # expect { @instance.type = value }.not_to raise_error
69
53
  #end
@@ -35,7 +35,7 @@ describe 'ErrorModel' do
35
35
  describe 'test attribute "code"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
- #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["invalid_parameter", "missing_parameter", "out_of_range", "campaign_processing", "campaign_sent", "document_not_found", "reseller_permission", "not_enough_credits", "permission_denied", "duplicate_parameter", "method_not_allowed", "unauthorized", "account_under_validation", "not_acceptable"])
38
+ #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["invalid_parameter", "missing_parameter", "out_of_range", "campaign_processing", "campaign_sent", "document_not_found", "reseller_permission", "not_enough_credits", "permission_denied", "duplicate_parameter", "duplicate_request", "method_not_allowed", "unauthorized", "account_under_validation", "not_acceptable"])
39
39
  #validator.allowable_values.each do |value|
40
40
  # expect { @instance.code = value }.not_to raise_error
41
41
  #end
@@ -32,12 +32,6 @@ describe 'GetAttributesAttributes' do
32
32
  expect(@instance).to be_instance_of(SibApiV3Sdk::GetAttributesAttributes)
33
33
  end
34
34
  end
35
- describe 'test attribute "id"' 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 "name"' do
42
36
  it 'should work' do
43
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -38,5 +38,11 @@ describe 'SendSms' do
38
38
  end
39
39
  end
40
40
 
41
+ describe 'test attribute "message_id"' 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
42
48
 
@@ -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.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SibApiV3Sdk::UpdateAttributeEnumeration
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'UpdateAttributeEnumeration' do
21
+ before do
22
+ # run before each test
23
+ @instance = SibApiV3Sdk::UpdateAttributeEnumeration.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of UpdateAttributeEnumeration' do
31
+ it 'should create an instance of UpdateAttributeEnumeration' do
32
+ expect(@instance).to be_instance_of(SibApiV3Sdk::UpdateAttributeEnumeration)
33
+ end
34
+ end
35
+ describe 'test attribute "id"' 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 "label"' 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
+
@@ -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.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SibApiV3Sdk::UpdateAttribute
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'UpdateAttribute' do
21
+ before do
22
+ # run before each test
23
+ @instance = SibApiV3Sdk::UpdateAttribute.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of UpdateAttribute' do
31
+ it 'should create an instance of UpdateAttribute' do
32
+ expect(@instance).to be_instance_of(SibApiV3Sdk::UpdateAttribute)
33
+ end
34
+ end
35
+ describe 'test attribute "value"' 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 "enumeration"' 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
+
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: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - SendinBlue Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-08 00:00:00.000000000 Z
11
+ date: 2017-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -207,7 +207,7 @@ files:
207
207
  - docs/AttributesApi.md
208
208
  - docs/ContactsApi.md
209
209
  - docs/CreateAttribute.md
210
- - docs/CreateAttributeEnumemaration.md
210
+ - docs/CreateAttributeEnumeration.md
211
211
  - docs/CreateChild.md
212
212
  - docs/CreateContact.md
213
213
  - docs/CreateEmailCampaign.md
@@ -347,6 +347,8 @@ files:
347
347
  - docs/SendTransacSms.md
348
348
  - docs/SendersApi.md
349
349
  - docs/TransactionalSMSApi.md
350
+ - docs/UpdateAttribute.md
351
+ - docs/UpdateAttributeEnumeration.md
350
352
  - docs/UpdateCampaignStatus.md
351
353
  - docs/UpdateChild.md
352
354
  - docs/UpdateContact.md
@@ -380,7 +382,7 @@ files:
380
382
  - lib/sib-api-v3-sdk/models/add_credits.rb
381
383
  - lib/sib-api-v3-sdk/models/add_remove_contact_to_list.rb
382
384
  - lib/sib-api-v3-sdk/models/create_attribute.rb
383
- - lib/sib-api-v3-sdk/models/create_attribute_enumemaration.rb
385
+ - lib/sib-api-v3-sdk/models/create_attribute_enumeration.rb
384
386
  - lib/sib-api-v3-sdk/models/create_child.rb
385
387
  - lib/sib-api-v3-sdk/models/create_contact.rb
386
388
  - lib/sib-api-v3-sdk/models/create_email_campaign.rb
@@ -511,6 +513,8 @@ files:
511
513
  - lib/sib-api-v3-sdk/models/send_test_email.rb
512
514
  - lib/sib-api-v3-sdk/models/send_test_sms.rb
513
515
  - lib/sib-api-v3-sdk/models/send_transac_sms.rb
516
+ - lib/sib-api-v3-sdk/models/update_attribute.rb
517
+ - lib/sib-api-v3-sdk/models/update_attribute_enumeration.rb
514
518
  - lib/sib-api-v3-sdk/models/update_campaign_status.rb
515
519
  - lib/sib-api-v3-sdk/models/update_child.rb
516
520
  - lib/sib-api-v3-sdk/models/update_contact.rb
@@ -542,7 +546,7 @@ files:
542
546
  - spec/configuration_spec.rb
543
547
  - spec/models/add_credits_spec.rb
544
548
  - spec/models/add_remove_contact_to_list_spec.rb
545
- - spec/models/create_attribute_enumemaration_spec.rb
549
+ - spec/models/create_attribute_enumeration_spec.rb
546
550
  - spec/models/create_attribute_spec.rb
547
551
  - spec/models/create_child_spec.rb
548
552
  - spec/models/create_contact_spec.rb
@@ -674,6 +678,8 @@ files:
674
678
  - spec/models/send_test_email_spec.rb
675
679
  - spec/models/send_test_sms_spec.rb
676
680
  - spec/models/send_transac_sms_spec.rb
681
+ - spec/models/update_attribute_enumeration_spec.rb
682
+ - spec/models/update_attribute_spec.rb
677
683
  - spec/models/update_campaign_status_spec.rb
678
684
  - spec/models/update_child_spec.rb
679
685
  - spec/models/update_contact_spec.rb
@@ -729,7 +735,7 @@ test_files:
729
735
  - spec/configuration_spec.rb
730
736
  - spec/models/add_credits_spec.rb
731
737
  - spec/models/add_remove_contact_to_list_spec.rb
732
- - spec/models/create_attribute_enumemaration_spec.rb
738
+ - spec/models/create_attribute_enumeration_spec.rb
733
739
  - spec/models/create_attribute_spec.rb
734
740
  - spec/models/create_child_spec.rb
735
741
  - spec/models/create_contact_spec.rb
@@ -861,6 +867,8 @@ test_files:
861
867
  - spec/models/send_test_email_spec.rb
862
868
  - spec/models/send_test_sms_spec.rb
863
869
  - spec/models/send_transac_sms_spec.rb
870
+ - spec/models/update_attribute_enumeration_spec.rb
871
+ - spec/models/update_attribute_spec.rb
864
872
  - spec/models/update_campaign_status_spec.rb
865
873
  - spec/models/update_child_spec.rb
866
874
  - spec/models/update_contact_spec.rb