sib-api-v3-sdk 2.1.3 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -5
- data/docs/AttributesApi.md +78 -12
- data/docs/ContactsApi.md +78 -12
- data/docs/CreateAttribute.md +3 -5
- data/docs/CreateAttributeEnumeration.md +9 -0
- data/docs/GetAttributesAttributes.md +0 -1
- data/docs/SendSms.md +1 -0
- data/docs/UpdateAttribute.md +9 -0
- data/docs/{CreateAttributeEnumemaration.md → UpdateAttributeEnumeration.md} +1 -1
- data/lib/sib-api-v3-sdk.rb +3 -1
- data/lib/sib-api-v3-sdk/api/attributes_api.rb +115 -20
- data/lib/sib-api-v3-sdk/api/contacts_api.rb +115 -20
- data/lib/sib-api-v3-sdk/models/create_attribute.rb +12 -59
- data/lib/sib-api-v3-sdk/models/create_attribute_enumeration.rb +209 -0
- data/lib/sib-api-v3-sdk/models/error_model.rb +2 -2
- data/lib/sib-api-v3-sdk/models/get_attributes_attributes.rb +1 -16
- data/lib/sib-api-v3-sdk/models/send_sms.rb +18 -4
- data/lib/sib-api-v3-sdk/models/update_attribute.rb +201 -0
- data/lib/sib-api-v3-sdk/models/{create_attribute_enumemaration.rb → update_attribute_enumeration.rb} +1 -1
- data/lib/sib-api-v3-sdk/version.rb +1 -1
- data/spec/api/attributes_api_spec.rb +20 -3
- data/spec/api/contacts_api_spec.rb +20 -3
- data/spec/models/{create_attribute_enumemaration_spec.rb → create_attribute_enumeration_spec.rb} +7 -7
- data/spec/models/create_attribute_spec.rb +2 -18
- data/spec/models/error_model_spec.rb +1 -1
- data/spec/models/get_attributes_attributes_spec.rb +0 -6
- data/spec/models/send_sms_spec.rb +6 -0
- data/spec/models/update_attribute_enumeration_spec.rb +48 -0
- data/spec/models/update_attribute_spec.rb +48 -0
- metadata +14 -6
@@ -33,11 +33,13 @@ describe 'AttributesApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for create_attribute
|
36
|
-
# Creates contact
|
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 [
|
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
|
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
|
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 [
|
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
|
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
|
#
|
data/spec/models/{create_attribute_enumemaration_spec.rb → create_attribute_enumeration_spec.rb}
RENAMED
@@ -14,25 +14,25 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for SibApiV3Sdk::
|
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 '
|
20
|
+
describe 'CreateAttributeEnumeration' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = SibApiV3Sdk::
|
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
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(SibApiV3Sdk::
|
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 "
|
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 "
|
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
|
@@ -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.
|
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
|
+
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/
|
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/
|
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/
|
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/
|
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
|