sendpost_ruby_sdk 1.0.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +155 -1
- data/config-ruby.json +2 -2
- data/docs/CountStat.md +18 -0
- data/docs/DeleteResponse.md +20 -0
- data/docs/EventMetadata.md +4 -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/generate-libs.bash +1 -1
- data/git_push.sh +2 -2
- data/lib/sendpost_ruby_sdk/api/email_api.rb +1 -1
- data/lib/sendpost_ruby_sdk/api/suppression_api.rb +305 -0
- data/lib/sendpost_ruby_sdk/api_client.rb +1 -1
- data/lib/sendpost_ruby_sdk/api_error.rb +1 -1
- data/lib/sendpost_ruby_sdk/configuration.rb +12 -10
- data/lib/sendpost_ruby_sdk/models/attachment.rb +13 -18
- data/lib/sendpost_ruby_sdk/models/city.rb +13 -18
- data/lib/sendpost_ruby_sdk/models/copy_to.rb +13 -18
- data/lib/sendpost_ruby_sdk/models/count_stat.rb +214 -0
- data/lib/sendpost_ruby_sdk/models/delete_response.rb +223 -0
- data/lib/sendpost_ruby_sdk/models/device.rb +13 -18
- data/lib/sendpost_ruby_sdk/models/email_message.rb +13 -18
- data/lib/sendpost_ruby_sdk/models/email_response.rb +13 -18
- data/lib/sendpost_ruby_sdk/models/event_metadata.rb +32 -19
- data/lib/sendpost_ruby_sdk/models/from.rb +13 -18
- data/lib/sendpost_ruby_sdk/models/os.rb +13 -18
- data/lib/sendpost_ruby_sdk/models/q_email_message.rb +13 -18
- data/lib/sendpost_ruby_sdk/models/q_event.rb +13 -18
- data/lib/sendpost_ruby_sdk/models/r_suppression.rb +249 -0
- data/lib/sendpost_ruby_sdk/models/rd_suppression.rb +216 -0
- data/lib/sendpost_ruby_sdk/models/reply_to.rb +13 -18
- data/lib/sendpost_ruby_sdk/models/suppression.rb +250 -0
- data/lib/sendpost_ruby_sdk/models/suppression_email.rb +214 -0
- data/lib/sendpost_ruby_sdk/models/to.rb +13 -18
- data/lib/sendpost_ruby_sdk/models/user_agent.rb +13 -18
- data/lib/sendpost_ruby_sdk/models/webhook_event.rb +13 -18
- data/lib/sendpost_ruby_sdk/version.rb +2 -2
- data/lib/sendpost_ruby_sdk.rb +8 -1
- data/sendpost.yaml +230 -2
- data/sendpost_ruby_sdk.gemspec +2 -2
- data/spec/api/suppression_api_spec.rb +88 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- 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
- data/spec/spec_helper.rb +1 -1
- metadata +37 -9
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:
|
@@ -354,6 +511,10 @@ components:
|
|
354
511
|
properties:
|
355
512
|
clickedURL:
|
356
513
|
type: string
|
514
|
+
trackedIP:
|
515
|
+
type: string
|
516
|
+
rawUserAgent:
|
517
|
+
type: string
|
357
518
|
device:
|
358
519
|
$ref: '#/components/schemas/Device'
|
359
520
|
geo:
|
@@ -374,8 +535,8 @@ components:
|
|
374
535
|
type: object
|
375
536
|
properties:
|
376
537
|
errorCode:
|
377
|
-
|
378
|
-
|
538
|
+
type: integer
|
539
|
+
example: 500
|
379
540
|
message:
|
380
541
|
type: string
|
381
542
|
example: "ok"
|
@@ -421,6 +582,73 @@ components:
|
|
421
582
|
type: string
|
422
583
|
Patch:
|
423
584
|
type: string
|
585
|
+
Suppression:
|
586
|
+
title: Suppression
|
587
|
+
type: object
|
588
|
+
properties:
|
589
|
+
created:
|
590
|
+
type: integer
|
591
|
+
format: int64
|
592
|
+
email:
|
593
|
+
type: string
|
594
|
+
id:
|
595
|
+
type: integer
|
596
|
+
format: int64
|
597
|
+
reason:
|
598
|
+
type: integer
|
599
|
+
format: int64
|
600
|
+
smtp_error:
|
601
|
+
type: string
|
602
|
+
RSuppression:
|
603
|
+
title: RSuppression
|
604
|
+
type: object
|
605
|
+
properties:
|
606
|
+
hardBounce:
|
607
|
+
type: array
|
608
|
+
items:
|
609
|
+
$ref: '#/components/schemas/SuppressionEmail'
|
610
|
+
manual:
|
611
|
+
type: array
|
612
|
+
items:
|
613
|
+
$ref: '#/components/schemas/SuppressionEmail'
|
614
|
+
spamComplaint:
|
615
|
+
type: array
|
616
|
+
items:
|
617
|
+
$ref: '#/components/schemas/SuppressionEmail'
|
618
|
+
unsubscribe:
|
619
|
+
type: array
|
620
|
+
items:
|
621
|
+
$ref: '#/components/schemas/SuppressionEmail'
|
622
|
+
SuppressionEmail:
|
623
|
+
title: SuppressionEmail
|
624
|
+
type: object
|
625
|
+
properties:
|
626
|
+
email:
|
627
|
+
type: string
|
628
|
+
RDSuppression:
|
629
|
+
title: RDSuppression
|
630
|
+
type: object
|
631
|
+
properties:
|
632
|
+
suppressions:
|
633
|
+
type: array
|
634
|
+
items:
|
635
|
+
$ref: '#/components/schemas/SuppressionEmail'
|
636
|
+
DeleteResponse:
|
637
|
+
title: DeleteResponse
|
638
|
+
type: object
|
639
|
+
properties:
|
640
|
+
id:
|
641
|
+
type: integer
|
642
|
+
format: int64
|
643
|
+
message:
|
644
|
+
type: string
|
645
|
+
CountStat:
|
646
|
+
title: CountStat
|
647
|
+
type: object
|
648
|
+
properties:
|
649
|
+
count:
|
650
|
+
type: integer
|
651
|
+
format: int64
|
424
652
|
City:
|
425
653
|
title: City
|
426
654
|
type: object
|
data/sendpost_ruby_sdk.gemspec
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
9
9
|
Contact: hello@sendpost.io
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
OpenAPI Generator version:
|
11
|
+
OpenAPI Generator version: 7.0.1
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -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
|
data/spec/api_client_spec.rb
CHANGED
data/spec/configuration_spec.rb
CHANGED
@@ -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
|