sib-api-v3-sdk 3.0.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -11
- data/docs/AddContactToList.md +8 -0
- data/docs/AddCredits.md +2 -2
- data/docs/ContactsApi.md +9 -9
- data/docs/CreateReseller.md +8 -0
- data/docs/GetChildInfo.md +2 -2
- data/docs/GetChildInfoApiKeys.md +2 -3
- data/docs/GetChildInfoApiKeysV2.md +9 -0
- data/docs/GetChildInfoApiKeysV3.md +9 -0
- data/docs/GetEmailCampaign.md +2 -0
- data/docs/GetSmsCampaign.md +2 -0
- data/docs/ListsApi.md +9 -9
- data/docs/ManageIp.md +1 -1
- data/docs/RemoveContactFromList.md +9 -0
- data/docs/RemoveCredits.md +2 -2
- data/docs/ResellerApi.md +45 -45
- data/docs/SendSmtpEmail.md +7 -5
- data/docs/UpdateChild.md +0 -1
- data/lib/sib-api-v3-sdk.rb +5 -2
- data/lib/sib-api-v3-sdk/api/contacts_api.rb +7 -7
- data/lib/sib-api-v3-sdk/api/lists_api.rb +7 -7
- data/lib/sib-api-v3-sdk/api/reseller_api.rb +82 -82
- data/lib/sib-api-v3-sdk/models/{add_remove_contact_to_list.rb → add_contact_to_list.rb} +2 -2
- data/lib/sib-api-v3-sdk/models/add_credits.rb +2 -2
- data/lib/sib-api-v3-sdk/models/create_reseller.rb +194 -0
- data/lib/sib-api-v3-sdk/models/error_model.rb +2 -2
- data/lib/sib-api-v3-sdk/models/get_child_info.rb +3 -6
- data/lib/sib-api-v3-sdk/models/get_child_info_api_keys.rb +21 -34
- data/lib/sib-api-v3-sdk/models/get_child_info_api_keys_v2.rb +209 -0
- data/lib/sib-api-v3-sdk/models/get_child_info_api_keys_v3.rb +209 -0
- data/lib/sib-api-v3-sdk/models/get_email_campaign.rb +32 -4
- data/lib/sib-api-v3-sdk/models/get_sms_campaign.rb +32 -4
- data/lib/sib-api-v3-sdk/models/manage_ip.rb +8 -8
- data/lib/sib-api-v3-sdk/models/{get_child_info_ips.rb → remove_contact_from_list.rb} +18 -26
- data/lib/sib-api-v3-sdk/models/remove_credits.rb +2 -2
- data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +29 -23
- data/lib/sib-api-v3-sdk/models/send_smtp_email_sender.rb +1 -1
- data/lib/sib-api-v3-sdk/models/update_child.rb +4 -15
- data/lib/sib-api-v3-sdk/version.rb +1 -1
- data/spec/api/contacts_api_spec.rb +2 -2
- data/spec/api/lists_api_spec.rb +2 -2
- data/spec/api/reseller_api_spec.rb +12 -12
- data/spec/models/{add_remove_contact_to_list_spec.rb → add_contact_to_list_spec.rb} +6 -6
- data/spec/models/create_reseller_spec.rb +42 -0
- data/spec/models/error_model_spec.rb +1 -1
- data/spec/models/get_child_info_api_keys_spec.rb +2 -8
- data/spec/models/{get_child_info_ips_spec.rb → get_child_info_api_keys_v2_spec.rb} +8 -8
- data/spec/models/get_child_info_api_keys_v3_spec.rb +48 -0
- data/spec/models/get_email_campaign_spec.rb +12 -0
- data/spec/models/get_sms_campaign_spec.rb +12 -0
- data/spec/models/manage_ip_spec.rb +1 -1
- data/spec/models/remove_contact_from_list_spec.rb +48 -0
- data/spec/models/send_smtp_email_spec.rb +12 -0
- data/spec/models/update_child_spec.rb +0 -6
- metadata +22 -10
- data/docs/AddRemoveContactToList.md +0 -8
- data/docs/GetChildInfoIps.md +0 -9
@@ -15,10 +15,10 @@ require 'date'
|
|
15
15
|
module SibApiV3Sdk
|
16
16
|
|
17
17
|
class RemoveCredits
|
18
|
-
# SMS credits to be removed from the child account
|
18
|
+
# Required if email credits are empty. SMS credits to be removed from the child account
|
19
19
|
attr_accessor :sms
|
20
20
|
|
21
|
-
# Email credits to be removed from the child account
|
21
|
+
# Required if sms credits are empty. Email credits to be removed from the child account
|
22
22
|
attr_accessor :email
|
23
23
|
|
24
24
|
|
@@ -26,22 +26,27 @@ module SibApiV3Sdk
|
|
26
26
|
# Email addresses and names of the recipients in cc
|
27
27
|
attr_accessor :cc
|
28
28
|
|
29
|
-
# HTML body of the message
|
29
|
+
# HTML body of the message ( Mandatory if 'templateId' is not passed, ignored if 'templateId' is passed )
|
30
30
|
attr_accessor :html_content
|
31
31
|
|
32
|
-
# Plain Text body of the message
|
32
|
+
# Plain Text body of the message ( Ignored if 'templateId' is passed )
|
33
33
|
attr_accessor :text_content
|
34
34
|
|
35
|
-
# Subject of the message
|
35
|
+
# Subject of the message. Mandatory if 'templateId' is not passed
|
36
36
|
attr_accessor :subject
|
37
37
|
|
38
38
|
attr_accessor :reply_to
|
39
39
|
|
40
|
-
# Pass the absolute URL (no local file) or the base64 content of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps
|
40
|
+
# Pass the absolute URL (no local file) or the base64 content of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps ( Ignored if 'templateId' is passed )
|
41
41
|
attr_accessor :attachment
|
42
42
|
|
43
43
|
attr_accessor :headers
|
44
44
|
|
45
|
+
# Id of the template
|
46
|
+
attr_accessor :template_id
|
47
|
+
|
48
|
+
attr_accessor :params
|
49
|
+
|
45
50
|
|
46
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
52
|
def self.attribute_map
|
@@ -55,7 +60,9 @@ module SibApiV3Sdk
|
|
55
60
|
:'subject' => :'subject',
|
56
61
|
:'reply_to' => :'replyTo',
|
57
62
|
:'attachment' => :'attachment',
|
58
|
-
:'headers' => :'headers'
|
63
|
+
:'headers' => :'headers',
|
64
|
+
:'template_id' => :'templateId',
|
65
|
+
:'params' => :'params'
|
59
66
|
}
|
60
67
|
end
|
61
68
|
|
@@ -71,7 +78,9 @@ module SibApiV3Sdk
|
|
71
78
|
:'subject' => :'String',
|
72
79
|
:'reply_to' => :'SendSmtpEmailReplyTo',
|
73
80
|
:'attachment' => :'Array<SendSmtpEmailAttachment>',
|
74
|
-
:'headers' => :'Hash<String, String>'
|
81
|
+
:'headers' => :'Hash<String, String>',
|
82
|
+
:'template_id' => :'Integer',
|
83
|
+
:'params' => :'Hash<String, String>'
|
75
84
|
}
|
76
85
|
end
|
77
86
|
|
@@ -133,38 +142,33 @@ module SibApiV3Sdk
|
|
133
142
|
end
|
134
143
|
end
|
135
144
|
|
145
|
+
if attributes.has_key?(:'templateId')
|
146
|
+
self.template_id = attributes[:'templateId']
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.has_key?(:'params')
|
150
|
+
if (value = attributes[:'params']).is_a?(Hash)
|
151
|
+
self.params = value
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
136
155
|
end
|
137
156
|
|
138
157
|
# Show invalid properties with the reasons. Usually used together with valid?
|
139
158
|
# @return Array for valid properties with the reasons
|
140
159
|
def list_invalid_properties
|
141
160
|
invalid_properties = Array.new
|
142
|
-
if @sender.nil?
|
143
|
-
invalid_properties.push("invalid value for 'sender', sender cannot be nil.")
|
144
|
-
end
|
145
|
-
|
146
161
|
if @to.nil?
|
147
162
|
invalid_properties.push("invalid value for 'to', to cannot be nil.")
|
148
163
|
end
|
149
164
|
|
150
|
-
if @html_content.nil?
|
151
|
-
invalid_properties.push("invalid value for 'html_content', html_content cannot be nil.")
|
152
|
-
end
|
153
|
-
|
154
|
-
if @subject.nil?
|
155
|
-
invalid_properties.push("invalid value for 'subject', subject cannot be nil.")
|
156
|
-
end
|
157
|
-
|
158
165
|
return invalid_properties
|
159
166
|
end
|
160
167
|
|
161
168
|
# Check to see if the all the properties in the model are valid
|
162
169
|
# @return true if the model is valid
|
163
170
|
def valid?
|
164
|
-
return false if @sender.nil?
|
165
171
|
return false if @to.nil?
|
166
|
-
return false if @html_content.nil?
|
167
|
-
return false if @subject.nil?
|
168
172
|
return true
|
169
173
|
end
|
170
174
|
|
@@ -182,7 +186,9 @@ module SibApiV3Sdk
|
|
182
186
|
subject == o.subject &&
|
183
187
|
reply_to == o.reply_to &&
|
184
188
|
attachment == o.attachment &&
|
185
|
-
headers == o.headers
|
189
|
+
headers == o.headers &&
|
190
|
+
template_id == o.template_id &&
|
191
|
+
params == o.params
|
186
192
|
end
|
187
193
|
|
188
194
|
# @see the `==` method
|
@@ -194,7 +200,7 @@ module SibApiV3Sdk
|
|
194
200
|
# Calculates hash code according to all attributes.
|
195
201
|
# @return [Fixnum] Hash code
|
196
202
|
def hash
|
197
|
-
[sender, to, bcc, cc, html_content, text_content, subject, reply_to, attachment, headers].hash
|
203
|
+
[sender, to, bcc, cc, html_content, text_content, subject, reply_to, attachment, headers, template_id, params].hash
|
198
204
|
end
|
199
205
|
|
200
206
|
# Builds the object from hash
|
@@ -30,8 +30,6 @@ module SibApiV3Sdk
|
|
30
30
|
# New password for the child account to login
|
31
31
|
attr_accessor :password
|
32
32
|
|
33
|
-
attr_accessor :ips
|
34
|
-
|
35
33
|
|
36
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
35
|
def self.attribute_map
|
@@ -40,8 +38,7 @@ module SibApiV3Sdk
|
|
40
38
|
:'first_name' => :'firstName',
|
41
39
|
:'last_name' => :'lastName',
|
42
40
|
:'company_name' => :'companyName',
|
43
|
-
:'password' => :'password'
|
44
|
-
:'ips' => :'ips'
|
41
|
+
:'password' => :'password'
|
45
42
|
}
|
46
43
|
end
|
47
44
|
|
@@ -52,8 +49,7 @@ module SibApiV3Sdk
|
|
52
49
|
:'first_name' => :'String',
|
53
50
|
:'last_name' => :'String',
|
54
51
|
:'company_name' => :'String',
|
55
|
-
:'password' => :'String'
|
56
|
-
:'ips' => :'Array<Integer>'
|
52
|
+
:'password' => :'String'
|
57
53
|
}
|
58
54
|
end
|
59
55
|
|
@@ -85,12 +81,6 @@ module SibApiV3Sdk
|
|
85
81
|
self.password = attributes[:'password']
|
86
82
|
end
|
87
83
|
|
88
|
-
if attributes.has_key?(:'ips')
|
89
|
-
if (value = attributes[:'ips']).is_a?(Array)
|
90
|
-
self.ips = value
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
84
|
end
|
95
85
|
|
96
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -115,8 +105,7 @@ module SibApiV3Sdk
|
|
115
105
|
first_name == o.first_name &&
|
116
106
|
last_name == o.last_name &&
|
117
107
|
company_name == o.company_name &&
|
118
|
-
password == o.password
|
119
|
-
ips == o.ips
|
108
|
+
password == o.password
|
120
109
|
end
|
121
110
|
|
122
111
|
# @see the `==` method
|
@@ -128,7 +117,7 @@ module SibApiV3Sdk
|
|
128
117
|
# Calculates hash code according to all attributes.
|
129
118
|
# @return [Fixnum] Hash code
|
130
119
|
def hash
|
131
|
-
[email, first_name, last_name, company_name, password
|
120
|
+
[email, first_name, last_name, company_name, password].hash
|
132
121
|
end
|
133
122
|
|
134
123
|
# Builds the object from hash
|
@@ -272,14 +272,14 @@ describe 'ContactsApi' do
|
|
272
272
|
end
|
273
273
|
end
|
274
274
|
|
275
|
-
# unit tests for
|
275
|
+
# unit tests for remove_contact_from_list
|
276
276
|
# Remove existing contacts from a list
|
277
277
|
#
|
278
278
|
# @param list_id Id of the list
|
279
279
|
# @param contact_emails Emails adresses of the contact
|
280
280
|
# @param [Hash] opts the optional parameters
|
281
281
|
# @return [PostContactInfo]
|
282
|
-
describe '
|
282
|
+
describe 'remove_contact_from_list test' do
|
283
283
|
it "should work" do
|
284
284
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
285
285
|
end
|
data/spec/api/lists_api_spec.rb
CHANGED
@@ -123,14 +123,14 @@ describe 'ListsApi' do
|
|
123
123
|
end
|
124
124
|
end
|
125
125
|
|
126
|
-
# unit tests for
|
126
|
+
# unit tests for remove_contact_from_list
|
127
127
|
# Remove existing contacts from a list
|
128
128
|
#
|
129
129
|
# @param list_id Id of the list
|
130
130
|
# @param contact_emails Emails adresses of the contact
|
131
131
|
# @param [Hash] opts the optional parameters
|
132
132
|
# @return [PostContactInfo]
|
133
|
-
describe '
|
133
|
+
describe 'remove_contact_from_list test' do
|
134
134
|
it "should work" do
|
135
135
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
136
136
|
end
|
@@ -35,7 +35,7 @@ describe 'ResellerApi' do
|
|
35
35
|
# unit tests for add_credits
|
36
36
|
# Add Email and/or SMS credits to a specific child account
|
37
37
|
#
|
38
|
-
# @param
|
38
|
+
# @param child_auth_key auth key of reseller's child
|
39
39
|
# @param add_credits Values to post to add credit to a specific child account
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
41
|
# @return [RemainingCreditModel]
|
@@ -48,8 +48,8 @@ describe 'ResellerApi' do
|
|
48
48
|
# unit tests for associate_ip_to_child
|
49
49
|
# Associate a dedicated IP to the child
|
50
50
|
#
|
51
|
-
# @param
|
52
|
-
# @param
|
51
|
+
# @param child_auth_key auth key of reseller's child
|
52
|
+
# @param ip IP to associate
|
53
53
|
# @param [Hash] opts the optional parameters
|
54
54
|
# @return [nil]
|
55
55
|
describe 'associate_ip_to_child test' do
|
@@ -63,7 +63,7 @@ describe 'ResellerApi' do
|
|
63
63
|
#
|
64
64
|
# @param [Hash] opts the optional parameters
|
65
65
|
# @option opts [CreateChild] :reseller_child reseller child to add
|
66
|
-
# @return [
|
66
|
+
# @return [CreateReseller]
|
67
67
|
describe 'create_reseller_child test' do
|
68
68
|
it "should work" do
|
69
69
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -71,9 +71,9 @@ describe 'ResellerApi' do
|
|
71
71
|
end
|
72
72
|
|
73
73
|
# unit tests for delete_reseller_child
|
74
|
-
# Deletes a single reseller child based on the
|
74
|
+
# Deletes a single reseller child based on the childAuthKey supplied
|
75
75
|
#
|
76
|
-
# @param
|
76
|
+
# @param child_auth_key auth key of reseller's child
|
77
77
|
# @param [Hash] opts the optional parameters
|
78
78
|
# @return [nil]
|
79
79
|
describe 'delete_reseller_child test' do
|
@@ -85,8 +85,8 @@ describe 'ResellerApi' do
|
|
85
85
|
# unit tests for dissociate_ip_from_child
|
86
86
|
# Dissociate a dedicated IP to the child
|
87
87
|
#
|
88
|
-
# @param
|
89
|
-
# @param
|
88
|
+
# @param child_auth_key auth key of reseller's child
|
89
|
+
# @param ip IP to dissociate
|
90
90
|
# @param [Hash] opts the optional parameters
|
91
91
|
# @return [nil]
|
92
92
|
describe 'dissociate_ip_from_child test' do
|
@@ -98,7 +98,7 @@ describe 'ResellerApi' do
|
|
98
98
|
# unit tests for get_child_info
|
99
99
|
# Gets the info about a specific child account
|
100
100
|
#
|
101
|
-
# @param
|
101
|
+
# @param child_auth_key auth key of reseller's child
|
102
102
|
# @param [Hash] opts the optional parameters
|
103
103
|
# @return [GetChildInfo]
|
104
104
|
describe 'get_child_info test' do
|
@@ -121,7 +121,7 @@ describe 'ResellerApi' do
|
|
121
121
|
# unit tests for remove_credits
|
122
122
|
# Remove Email and/or SMS credits from a specific child account
|
123
123
|
#
|
124
|
-
# @param
|
124
|
+
# @param child_auth_key auth key of reseller's child
|
125
125
|
# @param remove_credits Values to post to remove email or SMS credits from a specific child account
|
126
126
|
# @param [Hash] opts the optional parameters
|
127
127
|
# @return [RemainingCreditModel]
|
@@ -132,9 +132,9 @@ describe 'ResellerApi' do
|
|
132
132
|
end
|
133
133
|
|
134
134
|
# unit tests for update_reseller_child
|
135
|
-
# Updates infos of reseller's child based on the
|
135
|
+
# Updates infos of reseller's child based on the childAuthKey supplied
|
136
136
|
#
|
137
|
-
# @param
|
137
|
+
# @param child_auth_key auth key of reseller's child
|
138
138
|
# @param reseller_child values to update in child profile
|
139
139
|
# @param [Hash] opts the optional parameters
|
140
140
|
# @return [nil]
|
@@ -14,22 +14,22 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for SibApiV3Sdk::
|
17
|
+
# Unit tests for SibApiV3Sdk::AddContactToList
|
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 'AddContactToList' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = SibApiV3Sdk::
|
23
|
+
@instance = SibApiV3Sdk::AddContactToList.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 AddContactToList' do
|
31
|
+
it 'should create an instance of AddContactToList' do
|
32
|
+
expect(@instance).to be_instance_of(SibApiV3Sdk::AddContactToList)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
describe 'test attribute "emails"' do
|
@@ -0,0 +1,42 @@
|
|
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::CreateReseller
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CreateReseller' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = SibApiV3Sdk::CreateReseller.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CreateReseller' do
|
31
|
+
it 'should create an instance of CreateReseller' do
|
32
|
+
expect(@instance).to be_instance_of(SibApiV3Sdk::CreateReseller)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "auth_key"' 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
|
+
end
|
42
|
+
|
@@ -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", "
|
38
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["invalid_parameter", "missing_parameter", "out_of_range", "campaign_processing", "campaign_sent", "document_not_found", "reseller_permission_denied", "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,19 +32,13 @@ describe 'GetChildInfoApiKeys' do
|
|
32
32
|
expect(@instance).to be_instance_of(SibApiV3Sdk::GetChildInfoApiKeys)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "v2"' 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
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
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 "secret"' do
|
41
|
+
describe 'test attribute "v3"' do
|
48
42
|
it 'should work' do
|
49
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
44
|
end
|
@@ -14,31 +14,31 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for SibApiV3Sdk::
|
17
|
+
# Unit tests for SibApiV3Sdk::GetChildInfoApiKeysV2
|
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 'GetChildInfoApiKeysV2' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = SibApiV3Sdk::
|
23
|
+
@instance = SibApiV3Sdk::GetChildInfoApiKeysV2.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 GetChildInfoApiKeysV2' do
|
31
|
+
it 'should create an instance of GetChildInfoApiKeysV2' do
|
32
|
+
expect(@instance).to be_instance_of(SibApiV3Sdk::GetChildInfoApiKeysV2)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "name"' 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
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "key"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|