sendpost_ruby_sdk 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +46 -1
- data/config-ruby.json +2 -2
- data/docs/CountStat.md +18 -0
- data/docs/DeleteResponse.md +20 -0
- data/docs/RDSuppression.md +18 -0
- data/docs/RSuppression.md +24 -0
- data/docs/Suppression.md +26 -0
- data/docs/SuppressionApi.md +293 -0
- data/docs/SuppressionEmail.md +18 -0
- data/lib/sendpost_ruby_sdk/api/suppression_api.rb +305 -0
- data/lib/sendpost_ruby_sdk/models/count_stat.rb +219 -0
- data/lib/sendpost_ruby_sdk/models/delete_response.rb +228 -0
- data/lib/sendpost_ruby_sdk/models/r_suppression.rb +254 -0
- data/lib/sendpost_ruby_sdk/models/rd_suppression.rb +221 -0
- data/lib/sendpost_ruby_sdk/models/suppression.rb +255 -0
- data/lib/sendpost_ruby_sdk/models/suppression_email.rb +219 -0
- data/lib/sendpost_ruby_sdk/version.rb +1 -1
- data/lib/sendpost_ruby_sdk.rb +7 -0
- data/sendpost.yaml +226 -2
- data/sendpost_ruby_sdk.gemspec +1 -1
- data/spec/api/suppression_api_spec.rb +88 -0
- data/spec/models/count_stat_spec.rb +34 -0
- data/spec/models/delete_response_spec.rb +40 -0
- data/spec/models/r_suppression_spec.rb +52 -0
- data/spec/models/rd_suppression_spec.rb +34 -0
- data/spec/models/suppression_email_spec.rb +34 -0
- data/spec/models/suppression_spec.rb +58 -0
- metadata +36 -8
data/sendpost.yaml
CHANGED
@@ -79,6 +79,163 @@ paths:
|
|
79
79
|
description: Request body is not in proper format
|
80
80
|
'500':
|
81
81
|
description: Internal Server Error
|
82
|
+
/subaccount/suppression/:
|
83
|
+
get:
|
84
|
+
tags:
|
85
|
+
- suppression
|
86
|
+
description: Get all suppressions
|
87
|
+
operationId: GetSuppressions
|
88
|
+
parameters:
|
89
|
+
- in: header
|
90
|
+
name: X-SubAccount-ApiKey
|
91
|
+
description: Sub-Account API Key
|
92
|
+
required: true
|
93
|
+
schema:
|
94
|
+
type: string
|
95
|
+
- in: query
|
96
|
+
name: offset
|
97
|
+
description: offset
|
98
|
+
schema:
|
99
|
+
type: integer
|
100
|
+
format: int64
|
101
|
+
- in: query
|
102
|
+
name: limit
|
103
|
+
description: limit
|
104
|
+
schema:
|
105
|
+
type: integer
|
106
|
+
format: int64
|
107
|
+
- in: query
|
108
|
+
name: search
|
109
|
+
description: search
|
110
|
+
schema:
|
111
|
+
type: string
|
112
|
+
- in: query
|
113
|
+
name: from
|
114
|
+
description: from date
|
115
|
+
schema:
|
116
|
+
type: string
|
117
|
+
- in: query
|
118
|
+
name: to
|
119
|
+
description: to date
|
120
|
+
schema:
|
121
|
+
type: string
|
122
|
+
responses:
|
123
|
+
'200':
|
124
|
+
description: '"Suppressions retrieved successfully"'
|
125
|
+
content:
|
126
|
+
application/json:
|
127
|
+
schema:
|
128
|
+
type: array
|
129
|
+
items:
|
130
|
+
$ref: '#/components/schemas/Suppression'
|
131
|
+
'401':
|
132
|
+
description: Not Authorized
|
133
|
+
'500':
|
134
|
+
description: Internal Server Error
|
135
|
+
post:
|
136
|
+
tags:
|
137
|
+
- suppression
|
138
|
+
description: Add Email Addresses To Suppression List
|
139
|
+
operationId: CreateSuppressions
|
140
|
+
parameters:
|
141
|
+
- in: header
|
142
|
+
name: X-SubAccount-ApiKey
|
143
|
+
description: Sub-Account API Key
|
144
|
+
required: true
|
145
|
+
schema:
|
146
|
+
type: string
|
147
|
+
requestBody:
|
148
|
+
description: "Suppression content"
|
149
|
+
content:
|
150
|
+
application/json:
|
151
|
+
schema:
|
152
|
+
$ref: '#/components/schemas/RSuppression'
|
153
|
+
responses:
|
154
|
+
'200':
|
155
|
+
description: '"Suppressions created successfully"'
|
156
|
+
content:
|
157
|
+
application/json:
|
158
|
+
schema:
|
159
|
+
type: array
|
160
|
+
items:
|
161
|
+
$ref: '#/components/schemas/Suppression'
|
162
|
+
'401':
|
163
|
+
description: Not Authorized
|
164
|
+
'406':
|
165
|
+
description: Suppression list is empty
|
166
|
+
'422':
|
167
|
+
description: Request body is not in proper format
|
168
|
+
'500':
|
169
|
+
description: Internal Server Error
|
170
|
+
delete:
|
171
|
+
tags:
|
172
|
+
- suppression
|
173
|
+
description: Delete specific emails which are in suppression list
|
174
|
+
operationId: DeleteSuppression
|
175
|
+
parameters:
|
176
|
+
- in: header
|
177
|
+
name: X-SubAccount-ApiKey
|
178
|
+
description: Sub-Account API Key
|
179
|
+
required: true
|
180
|
+
schema:
|
181
|
+
type: string
|
182
|
+
requestBody:
|
183
|
+
description: "Suppression content"
|
184
|
+
content:
|
185
|
+
application/json:
|
186
|
+
schema:
|
187
|
+
$ref: '#/components/schemas/RDSuppression'
|
188
|
+
responses:
|
189
|
+
'200':
|
190
|
+
description: '"Emails in suppression list have been deleted successfully"'
|
191
|
+
content:
|
192
|
+
application/json:
|
193
|
+
schema:
|
194
|
+
type: array
|
195
|
+
items:
|
196
|
+
$ref: '#/components/schemas/DeleteResponse'
|
197
|
+
'401':
|
198
|
+
description: Not Authorized
|
199
|
+
'406':
|
200
|
+
description: suppression list is empty
|
201
|
+
'422':
|
202
|
+
description: Request body is not in proper format
|
203
|
+
'500':
|
204
|
+
description: Internal Server Error
|
205
|
+
/subaccount/suppression/count:
|
206
|
+
get:
|
207
|
+
tags:
|
208
|
+
- suppression
|
209
|
+
description: Count Total Suppressions
|
210
|
+
operationId: Count
|
211
|
+
parameters:
|
212
|
+
- in: header
|
213
|
+
name: X-SubAccount-ApiKey
|
214
|
+
description: Sub-Account API Key
|
215
|
+
required: true
|
216
|
+
schema:
|
217
|
+
type: string
|
218
|
+
- in: query
|
219
|
+
name: from
|
220
|
+
description: from date
|
221
|
+
schema:
|
222
|
+
type: string
|
223
|
+
- in: query
|
224
|
+
name: to
|
225
|
+
description: to date
|
226
|
+
schema:
|
227
|
+
type: string
|
228
|
+
responses:
|
229
|
+
'200':
|
230
|
+
description: '"Total count of Suppressions for a specific sub-account"'
|
231
|
+
content:
|
232
|
+
application/json:
|
233
|
+
schema:
|
234
|
+
$ref: '#/components/schemas/CountStat'
|
235
|
+
'401':
|
236
|
+
description: Not Authorized
|
237
|
+
'500':
|
238
|
+
description: Internal Server Error
|
82
239
|
components:
|
83
240
|
schemas:
|
84
241
|
EmailMessage:
|
@@ -374,8 +531,8 @@ components:
|
|
374
531
|
type: object
|
375
532
|
properties:
|
376
533
|
errorCode:
|
377
|
-
|
378
|
-
|
534
|
+
type: integer
|
535
|
+
example: 500
|
379
536
|
message:
|
380
537
|
type: string
|
381
538
|
example: "ok"
|
@@ -421,6 +578,73 @@ components:
|
|
421
578
|
type: string
|
422
579
|
Patch:
|
423
580
|
type: string
|
581
|
+
Suppression:
|
582
|
+
title: Suppression
|
583
|
+
type: object
|
584
|
+
properties:
|
585
|
+
created:
|
586
|
+
type: integer
|
587
|
+
format: int64
|
588
|
+
email:
|
589
|
+
type: string
|
590
|
+
id:
|
591
|
+
type: integer
|
592
|
+
format: int64
|
593
|
+
reason:
|
594
|
+
type: integer
|
595
|
+
format: int64
|
596
|
+
smtp_error:
|
597
|
+
type: string
|
598
|
+
RSuppression:
|
599
|
+
title: RSuppression
|
600
|
+
type: object
|
601
|
+
properties:
|
602
|
+
hardBounce:
|
603
|
+
type: array
|
604
|
+
items:
|
605
|
+
$ref: '#/components/schemas/SuppressionEmail'
|
606
|
+
manual:
|
607
|
+
type: array
|
608
|
+
items:
|
609
|
+
$ref: '#/components/schemas/SuppressionEmail'
|
610
|
+
spamComplaint:
|
611
|
+
type: array
|
612
|
+
items:
|
613
|
+
$ref: '#/components/schemas/SuppressionEmail'
|
614
|
+
unsubscribe:
|
615
|
+
type: array
|
616
|
+
items:
|
617
|
+
$ref: '#/components/schemas/SuppressionEmail'
|
618
|
+
SuppressionEmail:
|
619
|
+
title: SuppressionEmail
|
620
|
+
type: object
|
621
|
+
properties:
|
622
|
+
email:
|
623
|
+
type: string
|
624
|
+
RDSuppression:
|
625
|
+
title: RDSuppression
|
626
|
+
type: object
|
627
|
+
properties:
|
628
|
+
suppressions:
|
629
|
+
type: array
|
630
|
+
items:
|
631
|
+
$ref: '#/components/schemas/SuppressionEmail'
|
632
|
+
DeleteResponse:
|
633
|
+
title: DeleteResponse
|
634
|
+
type: object
|
635
|
+
properties:
|
636
|
+
id:
|
637
|
+
type: integer
|
638
|
+
format: int64
|
639
|
+
message:
|
640
|
+
type: string
|
641
|
+
CountStat:
|
642
|
+
title: CountStat
|
643
|
+
type: object
|
644
|
+
properties:
|
645
|
+
count:
|
646
|
+
type: integer
|
647
|
+
format: int64
|
424
648
|
City:
|
425
649
|
title: City
|
426
650
|
type: object
|
data/sendpost_ruby_sdk.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
22
|
s.authors = ["Sendpost"]
|
23
23
|
s.email = ["dev@sendpost.io"]
|
24
|
-
s.homepage = "https://
|
24
|
+
s.homepage = "https://github.com/sendpost/sendpost_ruby_sdk"
|
25
25
|
s.summary = "SendPost Ruby API"
|
26
26
|
s.description = "Email API and SMTP relay to not just send and measure email sending, but also alert and optimise. We provide you with tools, expertise and support needed to reliably deliver emails to your customers inboxes on time, every time."
|
27
27
|
s.license = "Unlicense"
|
@@ -0,0 +1,88 @@
|
|
1
|
+
=begin
|
2
|
+
#SendPost API
|
3
|
+
|
4
|
+
#Email API and SMTP relay to not just send and measure email sending, but also alert and optimise. We provide you with tools, expertise and support needed to reliably deliver emails to your customers inboxes on time, every time.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: hello@sendpost.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Sendpost::SuppressionApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'SuppressionApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = Sendpost::SuppressionApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of SuppressionApi' do
|
30
|
+
it 'should create an instance of SuppressionApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(Sendpost::SuppressionApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for count
|
36
|
+
# Count Total Suppressions
|
37
|
+
# @param x_sub_account_api_key Sub-Account API Key
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :from from date
|
40
|
+
# @option opts [String] :to to date
|
41
|
+
# @return [CountStat]
|
42
|
+
describe 'count test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for create_suppressions
|
49
|
+
# Add Email Addresses To Suppression List
|
50
|
+
# @param x_sub_account_api_key Sub-Account API Key
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @option opts [RSuppression] :r_suppression Suppression content
|
53
|
+
# @return [Array<Suppression>]
|
54
|
+
describe 'create_suppressions test' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# unit tests for delete_suppression
|
61
|
+
# Delete specific emails which are in suppression list
|
62
|
+
# @param x_sub_account_api_key Sub-Account API Key
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @option opts [RDSuppression] :rd_suppression Suppression content
|
65
|
+
# @return [Array<DeleteResponse>]
|
66
|
+
describe 'delete_suppression test' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# unit tests for get_suppressions
|
73
|
+
# Get all suppressions
|
74
|
+
# @param x_sub_account_api_key Sub-Account API Key
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @option opts [Integer] :offset offset
|
77
|
+
# @option opts [Integer] :limit limit
|
78
|
+
# @option opts [String] :search search
|
79
|
+
# @option opts [String] :from from date
|
80
|
+
# @option opts [String] :to to date
|
81
|
+
# @return [Array<Suppression>]
|
82
|
+
describe 'get_suppressions test' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
=begin
|
2
|
+
#SendPost API
|
3
|
+
|
4
|
+
#Email API and SMTP relay to not just send and measure email sending, but also alert and optimise. We provide you with tools, expertise and support needed to reliably deliver emails to your customers inboxes on time, every time.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: hello@sendpost.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Sendpost::CountStat
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Sendpost::CountStat do
|
21
|
+
let(:instance) { Sendpost::CountStat.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CountStat' do
|
24
|
+
it 'should create an instance of CountStat' do
|
25
|
+
expect(instance).to be_instance_of(Sendpost::CountStat)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "count"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
=begin
|
2
|
+
#SendPost API
|
3
|
+
|
4
|
+
#Email API and SMTP relay to not just send and measure email sending, but also alert and optimise. We provide you with tools, expertise and support needed to reliably deliver emails to your customers inboxes on time, every time.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: hello@sendpost.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Sendpost::DeleteResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Sendpost::DeleteResponse do
|
21
|
+
let(:instance) { Sendpost::DeleteResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of DeleteResponse' do
|
24
|
+
it 'should create an instance of DeleteResponse' do
|
25
|
+
expect(instance).to be_instance_of(Sendpost::DeleteResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "message"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
=begin
|
2
|
+
#SendPost API
|
3
|
+
|
4
|
+
#Email API and SMTP relay to not just send and measure email sending, but also alert and optimise. We provide you with tools, expertise and support needed to reliably deliver emails to your customers inboxes on time, every time.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: hello@sendpost.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Sendpost::RSuppression
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Sendpost::RSuppression do
|
21
|
+
let(:instance) { Sendpost::RSuppression.new }
|
22
|
+
|
23
|
+
describe 'test an instance of RSuppression' do
|
24
|
+
it 'should create an instance of RSuppression' do
|
25
|
+
expect(instance).to be_instance_of(Sendpost::RSuppression)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "hard_bounce"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "manual"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "spam_complaint"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "unsubscribe"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
=begin
|
2
|
+
#SendPost API
|
3
|
+
|
4
|
+
#Email API and SMTP relay to not just send and measure email sending, but also alert and optimise. We provide you with tools, expertise and support needed to reliably deliver emails to your customers inboxes on time, every time.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: hello@sendpost.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Sendpost::RDSuppression
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Sendpost::RDSuppression do
|
21
|
+
let(:instance) { Sendpost::RDSuppression.new }
|
22
|
+
|
23
|
+
describe 'test an instance of RDSuppression' do
|
24
|
+
it 'should create an instance of RDSuppression' do
|
25
|
+
expect(instance).to be_instance_of(Sendpost::RDSuppression)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "suppressions"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
=begin
|
2
|
+
#SendPost API
|
3
|
+
|
4
|
+
#Email API and SMTP relay to not just send and measure email sending, but also alert and optimise. We provide you with tools, expertise and support needed to reliably deliver emails to your customers inboxes on time, every time.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: hello@sendpost.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Sendpost::SuppressionEmail
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Sendpost::SuppressionEmail do
|
21
|
+
let(:instance) { Sendpost::SuppressionEmail.new }
|
22
|
+
|
23
|
+
describe 'test an instance of SuppressionEmail' do
|
24
|
+
it 'should create an instance of SuppressionEmail' do
|
25
|
+
expect(instance).to be_instance_of(Sendpost::SuppressionEmail)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "email"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
=begin
|
2
|
+
#SendPost API
|
3
|
+
|
4
|
+
#Email API and SMTP relay to not just send and measure email sending, but also alert and optimise. We provide you with tools, expertise and support needed to reliably deliver emails to your customers inboxes on time, every time.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: hello@sendpost.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Sendpost::Suppression
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Sendpost::Suppression do
|
21
|
+
let(:instance) { Sendpost::Suppression.new }
|
22
|
+
|
23
|
+
describe 'test an instance of Suppression' do
|
24
|
+
it 'should create an instance of Suppression' do
|
25
|
+
expect(instance).to be_instance_of(Sendpost::Suppression)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "created"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "email"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "id"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "reason"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "smtp_error"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|