mailslurp_client 16.2.5 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/inbox_controller_api.rb +15 -15
- data/lib/mailslurp_client/api/{inbox_ruleset_controller_api.rb → ruleset_controller_api.rb} +184 -175
- data/lib/mailslurp_client/api/tools_controller_api.rb +62 -0
- data/lib/mailslurp_client/api/webhook_controller_api.rb +82 -0
- data/lib/mailslurp_client/models/ai_transform_dto.rb +19 -5
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/alias_thread_projection.rb +26 -26
- data/lib/mailslurp_client/models/attachment_projection.rb +21 -21
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- data/lib/mailslurp_client/models/{create_inbox_ruleset_options.rb → create_ruleset_options.rb} +5 -5
- data/lib/mailslurp_client/models/email.rb +13 -13
- data/lib/mailslurp_client/models/email_thread_projection.rb +23 -23
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +10 -10
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +24 -24
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/lookup_mx_records_options.rb +211 -0
- data/lib/mailslurp_client/models/lookup_mx_records_results.rb +245 -0
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +21 -21
- data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_ai_transform_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_alias.rb +10 -10
- data/lib/mailslurp_client/models/page_alias_thread_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
- data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
- data/lib/mailslurp_client/models/page_complaint.rb +10 -10
- data/lib/mailslurp_client/models/page_connector.rb +10 -10
- data/lib/mailslurp_client/models/page_connector_events.rb +10 -10
- data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
- data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
- data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_email_thread_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +10 -10
- data/lib/mailslurp_client/models/page_entity_event_items.rb +10 -10
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +10 -10
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_guest_portal_users.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_tags.rb +10 -10
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +10 -10
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_reputation_items.rb +10 -10
- data/lib/mailslurp_client/models/{page_inbox_ruleset_dto.rb → page_ruleset_dto.rb} +15 -15
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +10 -10
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_sent_sms_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
- data/lib/mailslurp_client/models/pageable_object.rb +13 -13
- data/lib/mailslurp_client/models/phone_message_thread_projection.rb +27 -27
- data/lib/mailslurp_client/models/plus_address_projection.rb +24 -24
- data/lib/mailslurp_client/models/{inbox_ruleset_dto.rb → ruleset_dto.rb} +17 -7
- data/lib/mailslurp_client/models/{inbox_ruleset_test_options.rb → ruleset_test_options.rb} +3 -3
- data/lib/mailslurp_client/models/sent_email_projection.rb +45 -45
- data/lib/mailslurp_client/models/template_projection.rb +15 -15
- data/lib/mailslurp_client/models/test_inbox_ruleset_sending_options.rb +13 -7
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +11 -11
- data/lib/mailslurp_client/models/{test_inbox_ruleset_receiving_options.rb → test_ruleset_receiving_options.rb} +16 -10
- data/lib/mailslurp_client/models/{test_inbox_ruleset_receiving_result.rb → test_ruleset_receiving_result.rb} +3 -3
- data/lib/mailslurp_client/models/{test_inbox_ruleset_sending_result.rb → test_ruleset_sending_result.rb} +3 -3
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/webhook_projection.rb +39 -30
- data/lib/mailslurp_client/models/webhook_result_dto.rb +15 -5
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +10 -8
- metadata +12 -10
@@ -15,15 +15,15 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Email attachment data
|
17
17
|
class AttachmentProjection
|
18
|
+
attr_accessor :user_id
|
19
|
+
|
18
20
|
# Inbox ID
|
19
21
|
attr_accessor :inbox_id
|
20
22
|
|
21
|
-
attr_accessor :
|
23
|
+
attr_accessor :created_at
|
22
24
|
|
23
25
|
attr_accessor :updated_at
|
24
26
|
|
25
|
-
attr_accessor :created_at
|
26
|
-
|
27
27
|
# Content ID of attachment.
|
28
28
|
attr_accessor :content_id
|
29
29
|
|
@@ -44,10 +44,10 @@ module MailSlurpClient
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
|
-
:'inbox_id' => :'inboxId',
|
48
47
|
:'user_id' => :'userId',
|
49
|
-
:'
|
48
|
+
:'inbox_id' => :'inboxId',
|
50
49
|
:'created_at' => :'createdAt',
|
50
|
+
:'updated_at' => :'updatedAt',
|
51
51
|
:'content_id' => :'contentId',
|
52
52
|
:'attachment_id' => :'attachmentId',
|
53
53
|
:'name' => :'name',
|
@@ -60,10 +60,10 @@ module MailSlurpClient
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'inbox_id' => :'String',
|
64
63
|
:'user_id' => :'String',
|
65
|
-
:'
|
64
|
+
:'inbox_id' => :'String',
|
66
65
|
:'created_at' => :'DateTime',
|
66
|
+
:'updated_at' => :'DateTime',
|
67
67
|
:'content_id' => :'String',
|
68
68
|
:'attachment_id' => :'String',
|
69
69
|
:'name' => :'String',
|
@@ -98,22 +98,22 @@ module MailSlurpClient
|
|
98
98
|
h[k.to_sym] = v
|
99
99
|
}
|
100
100
|
|
101
|
-
if attributes.key?(:'inbox_id')
|
102
|
-
self.inbox_id = attributes[:'inbox_id']
|
103
|
-
end
|
104
|
-
|
105
101
|
if attributes.key?(:'user_id')
|
106
102
|
self.user_id = attributes[:'user_id']
|
107
103
|
end
|
108
104
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
105
|
+
if attributes.key?(:'inbox_id')
|
106
|
+
self.inbox_id = attributes[:'inbox_id']
|
111
107
|
end
|
112
108
|
|
113
109
|
if attributes.key?(:'created_at')
|
114
110
|
self.created_at = attributes[:'created_at']
|
115
111
|
end
|
116
112
|
|
113
|
+
if attributes.key?(:'updated_at')
|
114
|
+
self.updated_at = attributes[:'updated_at']
|
115
|
+
end
|
116
|
+
|
117
117
|
if attributes.key?(:'content_id')
|
118
118
|
self.content_id = attributes[:'content_id']
|
119
119
|
end
|
@@ -147,14 +147,14 @@ module MailSlurpClient
|
|
147
147
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
148
148
|
end
|
149
149
|
|
150
|
-
if @updated_at.nil?
|
151
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
152
|
-
end
|
153
|
-
|
154
150
|
if @created_at.nil?
|
155
151
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
156
152
|
end
|
157
153
|
|
154
|
+
if @updated_at.nil?
|
155
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
156
|
+
end
|
157
|
+
|
158
158
|
if @attachment_id.nil?
|
159
159
|
invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
|
160
160
|
end
|
@@ -170,8 +170,8 @@ module MailSlurpClient
|
|
170
170
|
# @return true if the model is valid
|
171
171
|
def valid?
|
172
172
|
return false if @user_id.nil?
|
173
|
-
return false if @updated_at.nil?
|
174
173
|
return false if @created_at.nil?
|
174
|
+
return false if @updated_at.nil?
|
175
175
|
return false if @attachment_id.nil?
|
176
176
|
return false if @id.nil?
|
177
177
|
true
|
@@ -182,10 +182,10 @@ module MailSlurpClient
|
|
182
182
|
def ==(o)
|
183
183
|
return true if self.equal?(o)
|
184
184
|
self.class == o.class &&
|
185
|
-
inbox_id == o.inbox_id &&
|
186
185
|
user_id == o.user_id &&
|
187
|
-
|
186
|
+
inbox_id == o.inbox_id &&
|
188
187
|
created_at == o.created_at &&
|
188
|
+
updated_at == o.updated_at &&
|
189
189
|
content_id == o.content_id &&
|
190
190
|
attachment_id == o.attachment_id &&
|
191
191
|
name == o.name &&
|
@@ -203,7 +203,7 @@ module MailSlurpClient
|
|
203
203
|
# Calculates hash code according to all attributes.
|
204
204
|
# @return [Integer] Hash code
|
205
205
|
def hash
|
206
|
-
[inbox_id,
|
206
|
+
[user_id, inbox_id, created_at, updated_at, content_id, attachment_id, name, id, content_length, content_type].hash
|
207
207
|
end
|
208
208
|
|
209
209
|
# Builds the object from hash
|
@@ -17,10 +17,10 @@ module MailSlurpClient
|
|
17
17
|
class ConnectorProjection
|
18
18
|
attr_accessor :enabled
|
19
19
|
|
20
|
-
attr_accessor :inbox_id
|
21
|
-
|
22
20
|
attr_accessor :user_id
|
23
21
|
|
22
|
+
attr_accessor :inbox_id
|
23
|
+
|
24
24
|
attr_accessor :email_address
|
25
25
|
|
26
26
|
attr_accessor :created_at
|
@@ -33,8 +33,8 @@ module MailSlurpClient
|
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
35
|
:'enabled' => :'enabled',
|
36
|
-
:'inbox_id' => :'inboxId',
|
37
36
|
:'user_id' => :'userId',
|
37
|
+
:'inbox_id' => :'inboxId',
|
38
38
|
:'email_address' => :'emailAddress',
|
39
39
|
:'created_at' => :'createdAt',
|
40
40
|
:'name' => :'name',
|
@@ -46,8 +46,8 @@ module MailSlurpClient
|
|
46
46
|
def self.openapi_types
|
47
47
|
{
|
48
48
|
:'enabled' => :'Boolean',
|
49
|
-
:'inbox_id' => :'String',
|
50
49
|
:'user_id' => :'String',
|
50
|
+
:'inbox_id' => :'String',
|
51
51
|
:'email_address' => :'String',
|
52
52
|
:'created_at' => :'DateTime',
|
53
53
|
:'name' => :'String',
|
@@ -80,14 +80,14 @@ module MailSlurpClient
|
|
80
80
|
self.enabled = attributes[:'enabled']
|
81
81
|
end
|
82
82
|
|
83
|
-
if attributes.key?(:'inbox_id')
|
84
|
-
self.inbox_id = attributes[:'inbox_id']
|
85
|
-
end
|
86
|
-
|
87
83
|
if attributes.key?(:'user_id')
|
88
84
|
self.user_id = attributes[:'user_id']
|
89
85
|
end
|
90
86
|
|
87
|
+
if attributes.key?(:'inbox_id')
|
88
|
+
self.inbox_id = attributes[:'inbox_id']
|
89
|
+
end
|
90
|
+
|
91
91
|
if attributes.key?(:'email_address')
|
92
92
|
self.email_address = attributes[:'email_address']
|
93
93
|
end
|
@@ -109,14 +109,14 @@ module MailSlurpClient
|
|
109
109
|
# @return Array for valid properties with the reasons
|
110
110
|
def list_invalid_properties
|
111
111
|
invalid_properties = Array.new
|
112
|
-
if @inbox_id.nil?
|
113
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
114
|
-
end
|
115
|
-
|
116
112
|
if @user_id.nil?
|
117
113
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
118
114
|
end
|
119
115
|
|
116
|
+
if @inbox_id.nil?
|
117
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
118
|
+
end
|
119
|
+
|
120
120
|
if @created_at.nil?
|
121
121
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
122
122
|
end
|
@@ -131,8 +131,8 @@ module MailSlurpClient
|
|
131
131
|
# Check to see if the all the properties in the model are valid
|
132
132
|
# @return true if the model is valid
|
133
133
|
def valid?
|
134
|
-
return false if @inbox_id.nil?
|
135
134
|
return false if @user_id.nil?
|
135
|
+
return false if @inbox_id.nil?
|
136
136
|
return false if @created_at.nil?
|
137
137
|
return false if @id.nil?
|
138
138
|
true
|
@@ -144,8 +144,8 @@ module MailSlurpClient
|
|
144
144
|
return true if self.equal?(o)
|
145
145
|
self.class == o.class &&
|
146
146
|
enabled == o.enabled &&
|
147
|
-
inbox_id == o.inbox_id &&
|
148
147
|
user_id == o.user_id &&
|
148
|
+
inbox_id == o.inbox_id &&
|
149
149
|
email_address == o.email_address &&
|
150
150
|
created_at == o.created_at &&
|
151
151
|
name == o.name &&
|
@@ -161,7 +161,7 @@ module MailSlurpClient
|
|
161
161
|
# Calculates hash code according to all attributes.
|
162
162
|
# @return [Integer] Hash code
|
163
163
|
def hash
|
164
|
-
[enabled,
|
164
|
+
[enabled, user_id, inbox_id, email_address, created_at, name, id].hash
|
165
165
|
end
|
166
166
|
|
167
167
|
# Builds the object from hash
|
data/lib/mailslurp_client/models/{create_inbox_ruleset_options.rb → create_ruleset_options.rb}
RENAMED
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Options for creating inbox rulesets. Inbox rulesets can be used to block, allow, filter, or forward emails when sending or receiving using the inbox.
|
17
|
-
class
|
17
|
+
class CreateRulesetOptions
|
18
18
|
# What type of emails actions to apply ruleset to. Either `SENDING_EMAILS` or `RECEIVING_EMAILS` will apply action and target to any sending or receiving of emails respectively.
|
19
19
|
attr_accessor :scope
|
20
20
|
|
@@ -74,13 +74,13 @@ module MailSlurpClient
|
|
74
74
|
# @param [Hash] attributes Model attributes in the form of hash
|
75
75
|
def initialize(attributes = {})
|
76
76
|
if (!attributes.is_a?(Hash))
|
77
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::CreateRulesetOptions` initialize method"
|
78
78
|
end
|
79
79
|
|
80
80
|
# check to see if the attribute exists and convert string to symbol for hash key
|
81
81
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
82
82
|
if (!self.class.attribute_map.key?(k.to_sym))
|
83
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::CreateRulesetOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
84
84
|
end
|
85
85
|
h[k.to_sym] = v
|
86
86
|
}
|
@@ -121,7 +121,7 @@ module MailSlurpClient
|
|
121
121
|
# @return true if the model is valid
|
122
122
|
def valid?
|
123
123
|
return false if @scope.nil?
|
124
|
-
scope_validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
|
124
|
+
scope_validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS", "RECEIVING_SMS", "SENDING_SMS"])
|
125
125
|
return false unless scope_validator.valid?(@scope)
|
126
126
|
return false if @action.nil?
|
127
127
|
action_validator = EnumAttributeValidator.new('String', ["BLOCK", "ALLOW", "FILTER_REMOVE", "BOUNCE_SOFT", "BOUNCE_HARD"])
|
@@ -133,7 +133,7 @@ module MailSlurpClient
|
|
133
133
|
# Custom attribute writer method checking allowed values (enum).
|
134
134
|
# @param [Object] scope Object to be assigned
|
135
135
|
def scope=(scope)
|
136
|
-
validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
|
136
|
+
validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS", "RECEIVING_SMS", "SENDING_SMS"])
|
137
137
|
unless validator.valid?(scope)
|
138
138
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{validator.allowable_values}."
|
139
139
|
end
|
@@ -114,10 +114,10 @@ module MailSlurpClient
|
|
114
114
|
# Size of raw email message in bytes
|
115
115
|
attr_accessor :size_bytes
|
116
116
|
|
117
|
-
attr_accessor :html
|
118
|
-
|
119
117
|
attr_accessor :xamp_html
|
120
118
|
|
119
|
+
attr_accessor :html
|
120
|
+
|
121
121
|
# Attribute mapping from ruby-style variable name to JSON key.
|
122
122
|
def self.attribute_map
|
123
123
|
{
|
@@ -155,8 +155,8 @@ module MailSlurpClient
|
|
155
155
|
:'in_reply_to' => :'inReplyTo',
|
156
156
|
:'favourite' => :'favourite',
|
157
157
|
:'size_bytes' => :'sizeBytes',
|
158
|
-
:'
|
159
|
-
:'
|
158
|
+
:'xamp_html' => :'xampHtml',
|
159
|
+
:'html' => :'html'
|
160
160
|
}
|
161
161
|
end
|
162
162
|
|
@@ -197,8 +197,8 @@ module MailSlurpClient
|
|
197
197
|
:'in_reply_to' => :'String',
|
198
198
|
:'favourite' => :'Boolean',
|
199
199
|
:'size_bytes' => :'Integer',
|
200
|
-
:'
|
201
|
-
:'
|
200
|
+
:'xamp_html' => :'Boolean',
|
201
|
+
:'html' => :'Boolean'
|
202
202
|
}
|
203
203
|
end
|
204
204
|
|
@@ -399,13 +399,13 @@ module MailSlurpClient
|
|
399
399
|
self.size_bytes = attributes[:'size_bytes']
|
400
400
|
end
|
401
401
|
|
402
|
-
if attributes.key?(:'html')
|
403
|
-
self.html = attributes[:'html']
|
404
|
-
end
|
405
|
-
|
406
402
|
if attributes.key?(:'xamp_html')
|
407
403
|
self.xamp_html = attributes[:'xamp_html']
|
408
404
|
end
|
405
|
+
|
406
|
+
if attributes.key?(:'html')
|
407
|
+
self.html = attributes[:'html']
|
408
|
+
end
|
409
409
|
end
|
410
410
|
|
411
411
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -500,8 +500,8 @@ module MailSlurpClient
|
|
500
500
|
in_reply_to == o.in_reply_to &&
|
501
501
|
favourite == o.favourite &&
|
502
502
|
size_bytes == o.size_bytes &&
|
503
|
-
|
504
|
-
|
503
|
+
xamp_html == o.xamp_html &&
|
504
|
+
html == o.html
|
505
505
|
end
|
506
506
|
|
507
507
|
# @see the `==` method
|
@@ -513,7 +513,7 @@ module MailSlurpClient
|
|
513
513
|
# Calculates hash code according to all attributes.
|
514
514
|
# @return [Integer] Hash code
|
515
515
|
def hash
|
516
|
-
[id, user_id, inbox_id, domain_id, to, from, sender, recipients, reply_to, cc, bcc, headers, headers_map, attachments, subject, body, body_excerpt, text_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, is_x_amp_html, body_part_content_types, external_id, message_id, thread_id, in_reply_to, favourite, size_bytes,
|
516
|
+
[id, user_id, inbox_id, domain_id, to, from, sender, recipients, reply_to, cc, bcc, headers, headers_map, attachments, subject, body, body_excerpt, text_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, is_x_amp_html, body_part_content_types, external_id, message_id, thread_id, in_reply_to, favourite, size_bytes, xamp_html, html].hash
|
517
517
|
end
|
518
518
|
|
519
519
|
# Builds the object from hash
|
@@ -19,18 +19,18 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :recipients
|
21
21
|
|
22
|
-
# Inbox ID
|
23
|
-
attr_accessor :inbox_id
|
24
|
-
|
25
22
|
# User ID
|
26
23
|
attr_accessor :user_id
|
27
24
|
|
28
|
-
#
|
29
|
-
attr_accessor :
|
25
|
+
# Inbox ID
|
26
|
+
attr_accessor :inbox_id
|
30
27
|
|
31
28
|
# Created at DateTime
|
32
29
|
attr_accessor :created_at
|
33
30
|
|
31
|
+
# Updated at DateTime
|
32
|
+
attr_accessor :updated_at
|
33
|
+
|
34
34
|
# To recipients
|
35
35
|
attr_accessor :to
|
36
36
|
|
@@ -77,10 +77,10 @@ module MailSlurpClient
|
|
77
77
|
{
|
78
78
|
:'sender' => :'sender',
|
79
79
|
:'recipients' => :'recipients',
|
80
|
-
:'inbox_id' => :'inboxId',
|
81
80
|
:'user_id' => :'userId',
|
82
|
-
:'
|
81
|
+
:'inbox_id' => :'inboxId',
|
83
82
|
:'created_at' => :'createdAt',
|
83
|
+
:'updated_at' => :'updatedAt',
|
84
84
|
:'to' => :'to',
|
85
85
|
:'cc' => :'cc',
|
86
86
|
:'bcc' => :'bcc',
|
@@ -103,10 +103,10 @@ module MailSlurpClient
|
|
103
103
|
{
|
104
104
|
:'sender' => :'SenderProjection',
|
105
105
|
:'recipients' => :'EmailRecipientsProjection',
|
106
|
-
:'inbox_id' => :'String',
|
107
106
|
:'user_id' => :'String',
|
108
|
-
:'
|
107
|
+
:'inbox_id' => :'String',
|
109
108
|
:'created_at' => :'DateTime',
|
109
|
+
:'updated_at' => :'DateTime',
|
110
110
|
:'to' => :'Array<String>',
|
111
111
|
:'cc' => :'Array<String>',
|
112
112
|
:'bcc' => :'Array<String>',
|
@@ -153,22 +153,22 @@ module MailSlurpClient
|
|
153
153
|
self.recipients = attributes[:'recipients']
|
154
154
|
end
|
155
155
|
|
156
|
-
if attributes.key?(:'inbox_id')
|
157
|
-
self.inbox_id = attributes[:'inbox_id']
|
158
|
-
end
|
159
|
-
|
160
156
|
if attributes.key?(:'user_id')
|
161
157
|
self.user_id = attributes[:'user_id']
|
162
158
|
end
|
163
159
|
|
164
|
-
if attributes.key?(:'
|
165
|
-
self.
|
160
|
+
if attributes.key?(:'inbox_id')
|
161
|
+
self.inbox_id = attributes[:'inbox_id']
|
166
162
|
end
|
167
163
|
|
168
164
|
if attributes.key?(:'created_at')
|
169
165
|
self.created_at = attributes[:'created_at']
|
170
166
|
end
|
171
167
|
|
168
|
+
if attributes.key?(:'updated_at')
|
169
|
+
self.updated_at = attributes[:'updated_at']
|
170
|
+
end
|
171
|
+
|
172
172
|
if attributes.key?(:'to')
|
173
173
|
if (value = attributes[:'to']).is_a?(Array)
|
174
174
|
self.to = value
|
@@ -240,14 +240,14 @@ module MailSlurpClient
|
|
240
240
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
241
241
|
end
|
242
242
|
|
243
|
-
if @updated_at.nil?
|
244
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
245
|
-
end
|
246
|
-
|
247
243
|
if @created_at.nil?
|
248
244
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
249
245
|
end
|
250
246
|
|
247
|
+
if @updated_at.nil?
|
248
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
249
|
+
end
|
250
|
+
|
251
251
|
if @to.nil?
|
252
252
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
253
253
|
end
|
@@ -275,8 +275,8 @@ module MailSlurpClient
|
|
275
275
|
# @return true if the model is valid
|
276
276
|
def valid?
|
277
277
|
return false if @user_id.nil?
|
278
|
-
return false if @updated_at.nil?
|
279
278
|
return false if @created_at.nil?
|
279
|
+
return false if @updated_at.nil?
|
280
280
|
return false if @to.nil?
|
281
281
|
return false if @has_attachments.nil?
|
282
282
|
return false if @unread.nil?
|
@@ -292,10 +292,10 @@ module MailSlurpClient
|
|
292
292
|
self.class == o.class &&
|
293
293
|
sender == o.sender &&
|
294
294
|
recipients == o.recipients &&
|
295
|
-
inbox_id == o.inbox_id &&
|
296
295
|
user_id == o.user_id &&
|
297
|
-
|
296
|
+
inbox_id == o.inbox_id &&
|
298
297
|
created_at == o.created_at &&
|
298
|
+
updated_at == o.updated_at &&
|
299
299
|
to == o.to &&
|
300
300
|
cc == o.cc &&
|
301
301
|
bcc == o.bcc &&
|
@@ -321,7 +321,7 @@ module MailSlurpClient
|
|
321
321
|
# Calculates hash code according to all attributes.
|
322
322
|
# @return [Integer] Hash code
|
323
323
|
def hash
|
324
|
-
[sender, recipients, inbox_id,
|
324
|
+
[sender, recipients, user_id, inbox_id, created_at, updated_at, to, cc, bcc, has_attachments, unread, message_count, last_body_excerpt, last_text_excerpt, last_created_at, last_from, last_sender, subject, id, from].hash
|
325
325
|
end
|
326
326
|
|
327
327
|
# Builds the object from hash
|
@@ -16,10 +16,10 @@ module MailSlurpClient
|
|
16
16
|
class EntityAutomationItemProjection
|
17
17
|
attr_accessor :inbox_id
|
18
18
|
|
19
|
-
attr_accessor :action
|
20
|
-
|
21
19
|
attr_accessor :phone_id
|
22
20
|
|
21
|
+
attr_accessor :action
|
22
|
+
|
23
23
|
attr_accessor :automation_type
|
24
24
|
|
25
25
|
attr_accessor :name
|
@@ -52,8 +52,8 @@ module MailSlurpClient
|
|
52
52
|
def self.attribute_map
|
53
53
|
{
|
54
54
|
:'inbox_id' => :'inboxId',
|
55
|
-
:'action' => :'action',
|
56
55
|
:'phone_id' => :'phoneId',
|
56
|
+
:'action' => :'action',
|
57
57
|
:'automation_type' => :'automationType',
|
58
58
|
:'name' => :'name',
|
59
59
|
:'id' => :'id'
|
@@ -64,8 +64,8 @@ module MailSlurpClient
|
|
64
64
|
def self.openapi_types
|
65
65
|
{
|
66
66
|
:'inbox_id' => :'String',
|
67
|
-
:'action' => :'String',
|
68
67
|
:'phone_id' => :'String',
|
68
|
+
:'action' => :'String',
|
69
69
|
:'automation_type' => :'String',
|
70
70
|
:'name' => :'String',
|
71
71
|
:'id' => :'String'
|
@@ -97,14 +97,14 @@ module MailSlurpClient
|
|
97
97
|
self.inbox_id = attributes[:'inbox_id']
|
98
98
|
end
|
99
99
|
|
100
|
-
if attributes.key?(:'action')
|
101
|
-
self.action = attributes[:'action']
|
102
|
-
end
|
103
|
-
|
104
100
|
if attributes.key?(:'phone_id')
|
105
101
|
self.phone_id = attributes[:'phone_id']
|
106
102
|
end
|
107
103
|
|
104
|
+
if attributes.key?(:'action')
|
105
|
+
self.action = attributes[:'action']
|
106
|
+
end
|
107
|
+
|
108
108
|
if attributes.key?(:'automation_type')
|
109
109
|
self.automation_type = attributes[:'automation_type']
|
110
110
|
end
|
@@ -159,8 +159,8 @@ module MailSlurpClient
|
|
159
159
|
return true if self.equal?(o)
|
160
160
|
self.class == o.class &&
|
161
161
|
inbox_id == o.inbox_id &&
|
162
|
-
action == o.action &&
|
163
162
|
phone_id == o.phone_id &&
|
163
|
+
action == o.action &&
|
164
164
|
automation_type == o.automation_type &&
|
165
165
|
name == o.name &&
|
166
166
|
id == o.id
|
@@ -175,7 +175,7 @@ module MailSlurpClient
|
|
175
175
|
# Calculates hash code according to all attributes.
|
176
176
|
# @return [Integer] Hash code
|
177
177
|
def hash
|
178
|
-
[inbox_id,
|
178
|
+
[inbox_id, phone_id, action, automation_type, name, id].hash
|
179
179
|
end
|
180
180
|
|
181
181
|
# Builds the object from hash
|
@@ -17,16 +17,16 @@ module MailSlurpClient
|
|
17
17
|
class GuestPortalUserProjection
|
18
18
|
attr_accessor :username
|
19
19
|
|
20
|
-
attr_accessor :inbox_id
|
21
|
-
|
22
20
|
attr_accessor :user_id
|
23
21
|
|
24
|
-
attr_accessor :
|
22
|
+
attr_accessor :inbox_id
|
25
23
|
|
26
|
-
attr_accessor :
|
24
|
+
attr_accessor :email_address
|
27
25
|
|
28
26
|
attr_accessor :created_at
|
29
27
|
|
28
|
+
attr_accessor :updated_at
|
29
|
+
|
30
30
|
attr_accessor :portal_id
|
31
31
|
|
32
32
|
attr_accessor :name
|
@@ -37,11 +37,11 @@ module MailSlurpClient
|
|
37
37
|
def self.attribute_map
|
38
38
|
{
|
39
39
|
:'username' => :'username',
|
40
|
-
:'inbox_id' => :'inboxId',
|
41
40
|
:'user_id' => :'userId',
|
41
|
+
:'inbox_id' => :'inboxId',
|
42
42
|
:'email_address' => :'emailAddress',
|
43
|
-
:'updated_at' => :'updatedAt',
|
44
43
|
:'created_at' => :'createdAt',
|
44
|
+
:'updated_at' => :'updatedAt',
|
45
45
|
:'portal_id' => :'portalId',
|
46
46
|
:'name' => :'name',
|
47
47
|
:'id' => :'id'
|
@@ -52,11 +52,11 @@ module MailSlurpClient
|
|
52
52
|
def self.openapi_types
|
53
53
|
{
|
54
54
|
:'username' => :'String',
|
55
|
-
:'inbox_id' => :'String',
|
56
55
|
:'user_id' => :'String',
|
56
|
+
:'inbox_id' => :'String',
|
57
57
|
:'email_address' => :'String',
|
58
|
-
:'updated_at' => :'DateTime',
|
59
58
|
:'created_at' => :'DateTime',
|
59
|
+
:'updated_at' => :'DateTime',
|
60
60
|
:'portal_id' => :'String',
|
61
61
|
:'name' => :'String',
|
62
62
|
:'id' => :'String'
|
@@ -88,26 +88,26 @@ module MailSlurpClient
|
|
88
88
|
self.username = attributes[:'username']
|
89
89
|
end
|
90
90
|
|
91
|
-
if attributes.key?(:'inbox_id')
|
92
|
-
self.inbox_id = attributes[:'inbox_id']
|
93
|
-
end
|
94
|
-
|
95
91
|
if attributes.key?(:'user_id')
|
96
92
|
self.user_id = attributes[:'user_id']
|
97
93
|
end
|
98
94
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
95
|
+
if attributes.key?(:'inbox_id')
|
96
|
+
self.inbox_id = attributes[:'inbox_id']
|
101
97
|
end
|
102
98
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
99
|
+
if attributes.key?(:'email_address')
|
100
|
+
self.email_address = attributes[:'email_address']
|
105
101
|
end
|
106
102
|
|
107
103
|
if attributes.key?(:'created_at')
|
108
104
|
self.created_at = attributes[:'created_at']
|
109
105
|
end
|
110
106
|
|
107
|
+
if attributes.key?(:'updated_at')
|
108
|
+
self.updated_at = attributes[:'updated_at']
|
109
|
+
end
|
110
|
+
|
111
111
|
if attributes.key?(:'portal_id')
|
112
112
|
self.portal_id = attributes[:'portal_id']
|
113
113
|
end
|
@@ -133,14 +133,14 @@ module MailSlurpClient
|
|
133
133
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
134
134
|
end
|
135
135
|
|
136
|
-
if @updated_at.nil?
|
137
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
138
|
-
end
|
139
|
-
|
140
136
|
if @created_at.nil?
|
141
137
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
142
138
|
end
|
143
139
|
|
140
|
+
if @updated_at.nil?
|
141
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
142
|
+
end
|
143
|
+
|
144
144
|
if @portal_id.nil?
|
145
145
|
invalid_properties.push('invalid value for "portal_id", portal_id cannot be nil.')
|
146
146
|
end
|
@@ -157,8 +157,8 @@ module MailSlurpClient
|
|
157
157
|
def valid?
|
158
158
|
return false if @username.nil?
|
159
159
|
return false if @user_id.nil?
|
160
|
-
return false if @updated_at.nil?
|
161
160
|
return false if @created_at.nil?
|
161
|
+
return false if @updated_at.nil?
|
162
162
|
return false if @portal_id.nil?
|
163
163
|
return false if @id.nil?
|
164
164
|
true
|
@@ -170,11 +170,11 @@ module MailSlurpClient
|
|
170
170
|
return true if self.equal?(o)
|
171
171
|
self.class == o.class &&
|
172
172
|
username == o.username &&
|
173
|
-
inbox_id == o.inbox_id &&
|
174
173
|
user_id == o.user_id &&
|
174
|
+
inbox_id == o.inbox_id &&
|
175
175
|
email_address == o.email_address &&
|
176
|
-
updated_at == o.updated_at &&
|
177
176
|
created_at == o.created_at &&
|
177
|
+
updated_at == o.updated_at &&
|
178
178
|
portal_id == o.portal_id &&
|
179
179
|
name == o.name &&
|
180
180
|
id == o.id
|
@@ -189,7 +189,7 @@ module MailSlurpClient
|
|
189
189
|
# Calculates hash code according to all attributes.
|
190
190
|
# @return [Integer] Hash code
|
191
191
|
def hash
|
192
|
-
[username,
|
192
|
+
[username, user_id, inbox_id, email_address, created_at, updated_at, portal_id, name, id].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|