mailslurp_client 15.13.30 → 15.13.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
- data/lib/mailslurp_client/models/create_webhook_options.rb +16 -5
- data/lib/mailslurp_client/models/inbox_preview.rb +2 -1
- data/lib/mailslurp_client/models/pageable_object.rb +22 -22
- data/lib/mailslurp_client/models/phone_number_projection.rb +19 -19
- data/lib/mailslurp_client/models/template_projection.rb +15 -15
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/webhook_dto.rb +12 -1
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 791733ac9a5cf2c8df9786597602e7c31643bc0ded5622c73096041d7c2da5c4
|
4
|
+
data.tar.gz: e930d8462be60e01080c5ef7a2a963a44c0343c671e648cfddc6d60a97ad61f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb6b0591e9a317764ea2a9583cf7a6c5461a18bf9e4fd806241dfb6eda86f1507c60d5ce941e46551fb51df0c406a8817b8d57540e3a5338e216192a9c35a5b0
|
7
|
+
data.tar.gz: 4d9a861ae759bad70556902fafbfeb4153758db55ca8962e71352e685999edd994aa045ff9bc6e3d382cd7cbf2ea9836be44c4997eb7dad389b6e2b3c461ca85
|
@@ -17,25 +17,25 @@ module MailSlurpClient
|
|
17
17
|
class BounceProjection
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
attr_accessor :subject
|
21
|
-
|
22
20
|
attr_accessor :sender
|
23
21
|
|
24
|
-
attr_accessor :
|
22
|
+
attr_accessor :subject
|
25
23
|
|
26
|
-
attr_accessor :
|
24
|
+
attr_accessor :created_at
|
27
25
|
|
28
26
|
attr_accessor :bounce_mta
|
29
27
|
|
28
|
+
attr_accessor :bounce_type
|
29
|
+
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
33
|
:'id' => :'id',
|
34
|
-
:'subject' => :'subject',
|
35
34
|
:'sender' => :'sender',
|
35
|
+
:'subject' => :'subject',
|
36
36
|
:'created_at' => :'createdAt',
|
37
|
-
:'
|
38
|
-
:'
|
37
|
+
:'bounce_mta' => :'bounceMta',
|
38
|
+
:'bounce_type' => :'bounceType'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -43,11 +43,11 @@ module MailSlurpClient
|
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
45
|
:'id' => :'String',
|
46
|
-
:'subject' => :'String',
|
47
46
|
:'sender' => :'String',
|
47
|
+
:'subject' => :'String',
|
48
48
|
:'created_at' => :'DateTime',
|
49
|
-
:'
|
50
|
-
:'
|
49
|
+
:'bounce_mta' => :'String',
|
50
|
+
:'bounce_type' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -76,25 +76,25 @@ module MailSlurpClient
|
|
76
76
|
self.id = attributes[:'id']
|
77
77
|
end
|
78
78
|
|
79
|
-
if attributes.key?(:'subject')
|
80
|
-
self.subject = attributes[:'subject']
|
81
|
-
end
|
82
|
-
|
83
79
|
if attributes.key?(:'sender')
|
84
80
|
self.sender = attributes[:'sender']
|
85
81
|
end
|
86
82
|
|
87
|
-
if attributes.key?(:'
|
88
|
-
self.
|
83
|
+
if attributes.key?(:'subject')
|
84
|
+
self.subject = attributes[:'subject']
|
89
85
|
end
|
90
86
|
|
91
|
-
if attributes.key?(:'
|
92
|
-
self.
|
87
|
+
if attributes.key?(:'created_at')
|
88
|
+
self.created_at = attributes[:'created_at']
|
93
89
|
end
|
94
90
|
|
95
91
|
if attributes.key?(:'bounce_mta')
|
96
92
|
self.bounce_mta = attributes[:'bounce_mta']
|
97
93
|
end
|
94
|
+
|
95
|
+
if attributes.key?(:'bounce_type')
|
96
|
+
self.bounce_type = attributes[:'bounce_type']
|
97
|
+
end
|
98
98
|
end
|
99
99
|
|
100
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -126,11 +126,11 @@ module MailSlurpClient
|
|
126
126
|
return true if self.equal?(o)
|
127
127
|
self.class == o.class &&
|
128
128
|
id == o.id &&
|
129
|
-
subject == o.subject &&
|
130
129
|
sender == o.sender &&
|
130
|
+
subject == o.subject &&
|
131
131
|
created_at == o.created_at &&
|
132
|
-
|
133
|
-
|
132
|
+
bounce_mta == o.bounce_mta &&
|
133
|
+
bounce_type == o.bounce_type
|
134
134
|
end
|
135
135
|
|
136
136
|
# @see the `==` method
|
@@ -142,7 +142,7 @@ module MailSlurpClient
|
|
142
142
|
# Calculates hash code according to all attributes.
|
143
143
|
# @return [Integer] Hash code
|
144
144
|
def hash
|
145
|
-
[id,
|
145
|
+
[id, sender, subject, created_at, bounce_mta, bounce_type].hash
|
146
146
|
end
|
147
147
|
|
148
148
|
# Builds the object from hash
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
# Options for creating a webhook. Webhooks can be attached to inboxes and MailSlurp will POST a webhook payload to the URL specified whenever the webhook's event is triggered. Webhooks are great for processing many inbound emails and responding to other events at scale.
|
16
|
+
# Options for creating a webhook. Webhooks can be attached to inboxes and MailSlurp will POST a webhook payload to the URL specified whenever the webhook's event is triggered. Webhooks are great for processing many inbound emails and responding to other events at scale. Customize the payload sent to your endpoint by setting the `requestBodyTemplate` property to a string with moustache style variables. Property names from the standard payload model for the given event are available as variables.
|
17
17
|
class CreateWebhookOptions
|
18
18
|
# Public URL on your server that MailSlurp can post WebhookNotification payload to when an email is received or an event is trigger. The payload of the submitted JSON is dependent on the webhook event type. See docs.mailslurp.com/webhooks for event payload documentation.
|
19
19
|
attr_accessor :url
|
@@ -28,6 +28,9 @@ module MailSlurpClient
|
|
28
28
|
|
29
29
|
attr_accessor :include_headers
|
30
30
|
|
31
|
+
# Template for the JSON body of the webhook request that will be sent to your server. Use Moustache style `{{variableName}}` templating to use parts of the standard webhook payload for the given event.
|
32
|
+
attr_accessor :request_body_template
|
33
|
+
|
31
34
|
class EnumAttributeValidator
|
32
35
|
attr_reader :datatype
|
33
36
|
attr_reader :allowable_values
|
@@ -57,7 +60,8 @@ module MailSlurpClient
|
|
57
60
|
:'basic_auth' => :'basicAuth',
|
58
61
|
:'name' => :'name',
|
59
62
|
:'event_name' => :'eventName',
|
60
|
-
:'include_headers' => :'includeHeaders'
|
63
|
+
:'include_headers' => :'includeHeaders',
|
64
|
+
:'request_body_template' => :'requestBodyTemplate'
|
61
65
|
}
|
62
66
|
end
|
63
67
|
|
@@ -68,7 +72,8 @@ module MailSlurpClient
|
|
68
72
|
:'basic_auth' => :'BasicAuthOptions',
|
69
73
|
:'name' => :'String',
|
70
74
|
:'event_name' => :'String',
|
71
|
-
:'include_headers' => :'WebhookHeaders'
|
75
|
+
:'include_headers' => :'WebhookHeaders',
|
76
|
+
:'request_body_template' => :'String'
|
72
77
|
}
|
73
78
|
end
|
74
79
|
|
@@ -76,6 +81,7 @@ module MailSlurpClient
|
|
76
81
|
def self.openapi_nullable
|
77
82
|
Set.new([
|
78
83
|
:'basic_auth',
|
84
|
+
:'request_body_template'
|
79
85
|
])
|
80
86
|
end
|
81
87
|
|
@@ -113,6 +119,10 @@ module MailSlurpClient
|
|
113
119
|
if attributes.key?(:'include_headers')
|
114
120
|
self.include_headers = attributes[:'include_headers']
|
115
121
|
end
|
122
|
+
|
123
|
+
if attributes.key?(:'request_body_template')
|
124
|
+
self.request_body_template = attributes[:'request_body_template']
|
125
|
+
end
|
116
126
|
end
|
117
127
|
|
118
128
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -154,7 +164,8 @@ module MailSlurpClient
|
|
154
164
|
basic_auth == o.basic_auth &&
|
155
165
|
name == o.name &&
|
156
166
|
event_name == o.event_name &&
|
157
|
-
include_headers == o.include_headers
|
167
|
+
include_headers == o.include_headers &&
|
168
|
+
request_body_template == o.request_body_template
|
158
169
|
end
|
159
170
|
|
160
171
|
# @see the `==` method
|
@@ -166,7 +177,7 @@ module MailSlurpClient
|
|
166
177
|
# Calculates hash code according to all attributes.
|
167
178
|
# @return [Integer] Hash code
|
168
179
|
def hash
|
169
|
-
[url, basic_auth, name, event_name, include_headers].hash
|
180
|
+
[url, basic_auth, name, event_name, include_headers, request_body_template].hash
|
170
181
|
end
|
171
182
|
|
172
183
|
# Builds the object from hash
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
# Inbox data
|
16
|
+
# Inbox data preview element.
|
17
17
|
class InboxPreview
|
18
18
|
# ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically.
|
19
19
|
attr_accessor :id
|
@@ -107,6 +107,7 @@ module MailSlurpClient
|
|
107
107
|
# List of attributes with nullable: true
|
108
108
|
def self.openapi_nullable
|
109
109
|
Set.new([
|
110
|
+
:'domain_id',
|
110
111
|
:'email_address',
|
111
112
|
:'name',
|
112
113
|
:'tags',
|
@@ -18,23 +18,23 @@ module MailSlurpClient
|
|
18
18
|
|
19
19
|
attr_accessor :sort
|
20
20
|
|
21
|
-
attr_accessor :paged
|
22
|
-
|
23
|
-
attr_accessor :unpaged
|
24
|
-
|
25
21
|
attr_accessor :page_number
|
26
22
|
|
27
23
|
attr_accessor :page_size
|
28
24
|
|
25
|
+
attr_accessor :paged
|
26
|
+
|
27
|
+
attr_accessor :unpaged
|
28
|
+
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
32
|
:'offset' => :'offset',
|
33
33
|
:'sort' => :'sort',
|
34
|
-
:'paged' => :'paged',
|
35
|
-
:'unpaged' => :'unpaged',
|
36
34
|
:'page_number' => :'pageNumber',
|
37
|
-
:'page_size' => :'pageSize'
|
35
|
+
:'page_size' => :'pageSize',
|
36
|
+
:'paged' => :'paged',
|
37
|
+
:'unpaged' => :'unpaged'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -43,10 +43,10 @@ module MailSlurpClient
|
|
43
43
|
{
|
44
44
|
:'offset' => :'Integer',
|
45
45
|
:'sort' => :'Sort',
|
46
|
-
:'paged' => :'Boolean',
|
47
|
-
:'unpaged' => :'Boolean',
|
48
46
|
:'page_number' => :'Integer',
|
49
|
-
:'page_size' => :'Integer'
|
47
|
+
:'page_size' => :'Integer',
|
48
|
+
:'paged' => :'Boolean',
|
49
|
+
:'unpaged' => :'Boolean'
|
50
50
|
}
|
51
51
|
end
|
52
52
|
|
@@ -79,14 +79,6 @@ module MailSlurpClient
|
|
79
79
|
self.sort = attributes[:'sort']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'paged')
|
83
|
-
self.paged = attributes[:'paged']
|
84
|
-
end
|
85
|
-
|
86
|
-
if attributes.key?(:'unpaged')
|
87
|
-
self.unpaged = attributes[:'unpaged']
|
88
|
-
end
|
89
|
-
|
90
82
|
if attributes.key?(:'page_number')
|
91
83
|
self.page_number = attributes[:'page_number']
|
92
84
|
end
|
@@ -94,6 +86,14 @@ module MailSlurpClient
|
|
94
86
|
if attributes.key?(:'page_size')
|
95
87
|
self.page_size = attributes[:'page_size']
|
96
88
|
end
|
89
|
+
|
90
|
+
if attributes.key?(:'paged')
|
91
|
+
self.paged = attributes[:'paged']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'unpaged')
|
95
|
+
self.unpaged = attributes[:'unpaged']
|
96
|
+
end
|
97
97
|
end
|
98
98
|
|
99
99
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -116,10 +116,10 @@ module MailSlurpClient
|
|
116
116
|
self.class == o.class &&
|
117
117
|
offset == o.offset &&
|
118
118
|
sort == o.sort &&
|
119
|
-
paged == o.paged &&
|
120
|
-
unpaged == o.unpaged &&
|
121
119
|
page_number == o.page_number &&
|
122
|
-
page_size == o.page_size
|
120
|
+
page_size == o.page_size &&
|
121
|
+
paged == o.paged &&
|
122
|
+
unpaged == o.unpaged
|
123
123
|
end
|
124
124
|
|
125
125
|
# @see the `==` method
|
@@ -131,7 +131,7 @@ module MailSlurpClient
|
|
131
131
|
# Calculates hash code according to all attributes.
|
132
132
|
# @return [Integer] Hash code
|
133
133
|
def hash
|
134
|
-
[offset, sort,
|
134
|
+
[offset, sort, page_number, page_size, paged, unpaged].hash
|
135
135
|
end
|
136
136
|
|
137
137
|
# Builds the object from hash
|
@@ -19,12 +19,12 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :user_id
|
21
21
|
|
22
|
+
attr_accessor :phone_country
|
23
|
+
|
22
24
|
attr_accessor :phone_number
|
23
25
|
|
24
26
|
attr_accessor :created_at
|
25
27
|
|
26
|
-
attr_accessor :phone_country
|
27
|
-
|
28
28
|
class EnumAttributeValidator
|
29
29
|
attr_reader :datatype
|
30
30
|
attr_reader :allowable_values
|
@@ -52,9 +52,9 @@ module MailSlurpClient
|
|
52
52
|
{
|
53
53
|
:'id' => :'id',
|
54
54
|
:'user_id' => :'userId',
|
55
|
+
:'phone_country' => :'phoneCountry',
|
55
56
|
:'phone_number' => :'phoneNumber',
|
56
|
-
:'created_at' => :'createdAt'
|
57
|
-
:'phone_country' => :'phoneCountry'
|
57
|
+
:'created_at' => :'createdAt'
|
58
58
|
}
|
59
59
|
end
|
60
60
|
|
@@ -63,9 +63,9 @@ module MailSlurpClient
|
|
63
63
|
{
|
64
64
|
:'id' => :'String',
|
65
65
|
:'user_id' => :'String',
|
66
|
+
:'phone_country' => :'String',
|
66
67
|
:'phone_number' => :'String',
|
67
|
-
:'created_at' => :'DateTime'
|
68
|
-
:'phone_country' => :'String'
|
68
|
+
:'created_at' => :'DateTime'
|
69
69
|
}
|
70
70
|
end
|
71
71
|
|
@@ -98,6 +98,10 @@ module MailSlurpClient
|
|
98
98
|
self.user_id = attributes[:'user_id']
|
99
99
|
end
|
100
100
|
|
101
|
+
if attributes.key?(:'phone_country')
|
102
|
+
self.phone_country = attributes[:'phone_country']
|
103
|
+
end
|
104
|
+
|
101
105
|
if attributes.key?(:'phone_number')
|
102
106
|
self.phone_number = attributes[:'phone_number']
|
103
107
|
end
|
@@ -105,10 +109,6 @@ module MailSlurpClient
|
|
105
109
|
if attributes.key?(:'created_at')
|
106
110
|
self.created_at = attributes[:'created_at']
|
107
111
|
end
|
108
|
-
|
109
|
-
if attributes.key?(:'phone_country')
|
110
|
-
self.phone_country = attributes[:'phone_country']
|
111
|
-
end
|
112
112
|
end
|
113
113
|
|
114
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -123,6 +123,10 @@ module MailSlurpClient
|
|
123
123
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
124
124
|
end
|
125
125
|
|
126
|
+
if @phone_country.nil?
|
127
|
+
invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
|
128
|
+
end
|
129
|
+
|
126
130
|
if @phone_number.nil?
|
127
131
|
invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
|
128
132
|
end
|
@@ -131,10 +135,6 @@ module MailSlurpClient
|
|
131
135
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
132
136
|
end
|
133
137
|
|
134
|
-
if @phone_country.nil?
|
135
|
-
invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
|
136
|
-
end
|
137
|
-
|
138
138
|
invalid_properties
|
139
139
|
end
|
140
140
|
|
@@ -143,11 +143,11 @@ module MailSlurpClient
|
|
143
143
|
def valid?
|
144
144
|
return false if @id.nil?
|
145
145
|
return false if @user_id.nil?
|
146
|
-
return false if @phone_number.nil?
|
147
|
-
return false if @created_at.nil?
|
148
146
|
return false if @phone_country.nil?
|
149
147
|
phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB"])
|
150
148
|
return false unless phone_country_validator.valid?(@phone_country)
|
149
|
+
return false if @phone_number.nil?
|
150
|
+
return false if @created_at.nil?
|
151
151
|
true
|
152
152
|
end
|
153
153
|
|
@@ -168,9 +168,9 @@ module MailSlurpClient
|
|
168
168
|
self.class == o.class &&
|
169
169
|
id == o.id &&
|
170
170
|
user_id == o.user_id &&
|
171
|
+
phone_country == o.phone_country &&
|
171
172
|
phone_number == o.phone_number &&
|
172
|
-
created_at == o.created_at
|
173
|
-
phone_country == o.phone_country
|
173
|
+
created_at == o.created_at
|
174
174
|
end
|
175
175
|
|
176
176
|
# @see the `==` method
|
@@ -182,7 +182,7 @@ module MailSlurpClient
|
|
182
182
|
# Calculates hash code according to all attributes.
|
183
183
|
# @return [Integer] Hash code
|
184
184
|
def hash
|
185
|
-
[id, user_id, phone_number, created_at
|
185
|
+
[id, user_id, phone_country, phone_number, created_at].hash
|
186
186
|
end
|
187
187
|
|
188
188
|
# Builds the object from hash
|
@@ -19,10 +19,10 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
-
attr_accessor :created_at
|
23
|
-
|
24
22
|
attr_accessor :variables
|
25
23
|
|
24
|
+
attr_accessor :created_at
|
25
|
+
|
26
26
|
attr_accessor :updated_at
|
27
27
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -30,8 +30,8 @@ module MailSlurpClient
|
|
30
30
|
{
|
31
31
|
:'name' => :'name',
|
32
32
|
:'id' => :'id',
|
33
|
-
:'created_at' => :'createdAt',
|
34
33
|
:'variables' => :'variables',
|
34
|
+
:'created_at' => :'createdAt',
|
35
35
|
:'updated_at' => :'updatedAt'
|
36
36
|
}
|
37
37
|
end
|
@@ -41,8 +41,8 @@ module MailSlurpClient
|
|
41
41
|
{
|
42
42
|
:'name' => :'String',
|
43
43
|
:'id' => :'String',
|
44
|
-
:'created_at' => :'DateTime',
|
45
44
|
:'variables' => :'Array<String>',
|
45
|
+
:'created_at' => :'DateTime',
|
46
46
|
:'updated_at' => :'DateTime'
|
47
47
|
}
|
48
48
|
end
|
@@ -76,16 +76,16 @@ module MailSlurpClient
|
|
76
76
|
self.id = attributes[:'id']
|
77
77
|
end
|
78
78
|
|
79
|
-
if attributes.key?(:'created_at')
|
80
|
-
self.created_at = attributes[:'created_at']
|
81
|
-
end
|
82
|
-
|
83
79
|
if attributes.key?(:'variables')
|
84
80
|
if (value = attributes[:'variables']).is_a?(Array)
|
85
81
|
self.variables = value
|
86
82
|
end
|
87
83
|
end
|
88
84
|
|
85
|
+
if attributes.key?(:'created_at')
|
86
|
+
self.created_at = attributes[:'created_at']
|
87
|
+
end
|
88
|
+
|
89
89
|
if attributes.key?(:'updated_at')
|
90
90
|
self.updated_at = attributes[:'updated_at']
|
91
91
|
end
|
@@ -103,14 +103,14 @@ module MailSlurpClient
|
|
103
103
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
104
104
|
end
|
105
105
|
|
106
|
-
if @created_at.nil?
|
107
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
108
|
-
end
|
109
|
-
|
110
106
|
if @variables.nil?
|
111
107
|
invalid_properties.push('invalid value for "variables", variables cannot be nil.')
|
112
108
|
end
|
113
109
|
|
110
|
+
if @created_at.nil?
|
111
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
112
|
+
end
|
113
|
+
|
114
114
|
if @updated_at.nil?
|
115
115
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
116
116
|
end
|
@@ -123,8 +123,8 @@ module MailSlurpClient
|
|
123
123
|
def valid?
|
124
124
|
return false if @name.nil?
|
125
125
|
return false if @id.nil?
|
126
|
-
return false if @created_at.nil?
|
127
126
|
return false if @variables.nil?
|
127
|
+
return false if @created_at.nil?
|
128
128
|
return false if @updated_at.nil?
|
129
129
|
true
|
130
130
|
end
|
@@ -136,8 +136,8 @@ module MailSlurpClient
|
|
136
136
|
self.class == o.class &&
|
137
137
|
name == o.name &&
|
138
138
|
id == o.id &&
|
139
|
-
created_at == o.created_at &&
|
140
139
|
variables == o.variables &&
|
140
|
+
created_at == o.created_at &&
|
141
141
|
updated_at == o.updated_at
|
142
142
|
end
|
143
143
|
|
@@ -150,7 +150,7 @@ module MailSlurpClient
|
|
150
150
|
# Calculates hash code according to all attributes.
|
151
151
|
# @return [Integer] Hash code
|
152
152
|
def hash
|
153
|
-
[name, id,
|
153
|
+
[name, id, variables, created_at, updated_at].hash
|
154
154
|
end
|
155
155
|
|
156
156
|
# Builds the object from hash
|
@@ -27,10 +27,10 @@ module MailSlurpClient
|
|
27
27
|
|
28
28
|
attr_accessor :created_at
|
29
29
|
|
30
|
-
attr_accessor :seen
|
31
|
-
|
32
30
|
attr_accessor :recipient
|
33
31
|
|
32
|
+
attr_accessor :seen
|
33
|
+
|
34
34
|
attr_accessor :seen_at
|
35
35
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -42,8 +42,8 @@ module MailSlurpClient
|
|
42
42
|
:'user_id' => :'userId',
|
43
43
|
:'sent_email_id' => :'sentEmailId',
|
44
44
|
:'created_at' => :'createdAt',
|
45
|
-
:'seen' => :'seen',
|
46
45
|
:'recipient' => :'recipient',
|
46
|
+
:'seen' => :'seen',
|
47
47
|
:'seen_at' => :'seenAt'
|
48
48
|
}
|
49
49
|
end
|
@@ -57,8 +57,8 @@ module MailSlurpClient
|
|
57
57
|
:'user_id' => :'String',
|
58
58
|
:'sent_email_id' => :'String',
|
59
59
|
:'created_at' => :'DateTime',
|
60
|
-
:'seen' => :'Boolean',
|
61
60
|
:'recipient' => :'String',
|
61
|
+
:'seen' => :'Boolean',
|
62
62
|
:'seen_at' => :'DateTime'
|
63
63
|
}
|
64
64
|
end
|
@@ -108,14 +108,14 @@ module MailSlurpClient
|
|
108
108
|
self.created_at = attributes[:'created_at']
|
109
109
|
end
|
110
110
|
|
111
|
-
if attributes.key?(:'seen')
|
112
|
-
self.seen = attributes[:'seen']
|
113
|
-
end
|
114
|
-
|
115
111
|
if attributes.key?(:'recipient')
|
116
112
|
self.recipient = attributes[:'recipient']
|
117
113
|
end
|
118
114
|
|
115
|
+
if attributes.key?(:'seen')
|
116
|
+
self.seen = attributes[:'seen']
|
117
|
+
end
|
118
|
+
|
119
119
|
if attributes.key?(:'seen_at')
|
120
120
|
self.seen_at = attributes[:'seen_at']
|
121
121
|
end
|
@@ -165,8 +165,8 @@ module MailSlurpClient
|
|
165
165
|
user_id == o.user_id &&
|
166
166
|
sent_email_id == o.sent_email_id &&
|
167
167
|
created_at == o.created_at &&
|
168
|
-
seen == o.seen &&
|
169
168
|
recipient == o.recipient &&
|
169
|
+
seen == o.seen &&
|
170
170
|
seen_at == o.seen_at
|
171
171
|
end
|
172
172
|
|
@@ -179,7 +179,7 @@ module MailSlurpClient
|
|
179
179
|
# Calculates hash code according to all attributes.
|
180
180
|
# @return [Integer] Hash code
|
181
181
|
def hash
|
182
|
-
[name, id, inbox_id, user_id, sent_email_id, created_at,
|
182
|
+
[name, id, inbox_id, user_id, sent_email_id, created_at, recipient, seen, seen_at].hash
|
183
183
|
end
|
184
184
|
|
185
185
|
# Builds the object from hash
|
@@ -33,6 +33,9 @@ module MailSlurpClient
|
|
33
33
|
# The inbox that the Webhook will be triggered by. If null then webhook triggered at account level or phone level if phoneId set
|
34
34
|
attr_accessor :inbox_id
|
35
35
|
|
36
|
+
# Request body template for HTTP request that will be sent for the webhook. Use Moustache style template variables to insert values from the original event payload.
|
37
|
+
attr_accessor :request_body_template
|
38
|
+
|
36
39
|
# URL of your server that the webhook will be sent to. The schema of the JSON that is sent is described by the payloadJsonSchema.
|
37
40
|
attr_accessor :url
|
38
41
|
|
@@ -83,6 +86,7 @@ module MailSlurpClient
|
|
83
86
|
:'name' => :'name',
|
84
87
|
:'phone_id' => :'phoneId',
|
85
88
|
:'inbox_id' => :'inboxId',
|
89
|
+
:'request_body_template' => :'requestBodyTemplate',
|
86
90
|
:'url' => :'url',
|
87
91
|
:'method' => :'method',
|
88
92
|
:'payload_json_schema' => :'payloadJsonSchema',
|
@@ -102,6 +106,7 @@ module MailSlurpClient
|
|
102
106
|
:'name' => :'String',
|
103
107
|
:'phone_id' => :'String',
|
104
108
|
:'inbox_id' => :'String',
|
109
|
+
:'request_body_template' => :'String',
|
105
110
|
:'url' => :'String',
|
106
111
|
:'method' => :'String',
|
107
112
|
:'payload_json_schema' => :'String',
|
@@ -118,6 +123,7 @@ module MailSlurpClient
|
|
118
123
|
:'name',
|
119
124
|
:'phone_id',
|
120
125
|
:'inbox_id',
|
126
|
+
:'request_body_template',
|
121
127
|
:'created_at',
|
122
128
|
:'event_name',
|
123
129
|
])
|
@@ -162,6 +168,10 @@ module MailSlurpClient
|
|
162
168
|
self.inbox_id = attributes[:'inbox_id']
|
163
169
|
end
|
164
170
|
|
171
|
+
if attributes.key?(:'request_body_template')
|
172
|
+
self.request_body_template = attributes[:'request_body_template']
|
173
|
+
end
|
174
|
+
|
165
175
|
if attributes.key?(:'url')
|
166
176
|
self.url = attributes[:'url']
|
167
177
|
end
|
@@ -274,6 +284,7 @@ module MailSlurpClient
|
|
274
284
|
name == o.name &&
|
275
285
|
phone_id == o.phone_id &&
|
276
286
|
inbox_id == o.inbox_id &&
|
287
|
+
request_body_template == o.request_body_template &&
|
277
288
|
url == o.url &&
|
278
289
|
method == o.method &&
|
279
290
|
payload_json_schema == o.payload_json_schema &&
|
@@ -292,7 +303,7 @@ module MailSlurpClient
|
|
292
303
|
# Calculates hash code according to all attributes.
|
293
304
|
# @return [Integer] Hash code
|
294
305
|
def hash
|
295
|
-
[id, user_id, basic_auth, name, phone_id, inbox_id, url, method, payload_json_schema, created_at, updated_at, event_name, request_headers].hash
|
306
|
+
[id, user_id, basic_auth, name, phone_id, inbox_id, request_body_template, url, method, payload_json_schema, created_at, updated_at, event_name, request_headers].hash
|
296
307
|
end
|
297
308
|
|
298
309
|
# Builds the object from hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailslurp_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.13.
|
4
|
+
version: 15.13.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Create emails addresses in Ruby then send and receive real emails and
|
14
14
|
attachments. See https://www.mailslurp.com/ruby/ for full Ruby documentation. Get
|