mailslurp_client 15.0.3 → 15.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/mailslurp_client/api/alias_controller_api.rb +59 -55
- data/lib/mailslurp_client/api/attachment_controller_api.rb +49 -60
- data/lib/mailslurp_client/api/bounce_controller_api.rb +26 -18
- data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +15 -15
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +128 -67
- data/lib/mailslurp_client/api/contact_controller_api.rb +22 -22
- data/lib/mailslurp_client/api/domain_controller_api.rb +32 -32
- data/lib/mailslurp_client/api/email_controller_api.rb +137 -117
- data/lib/mailslurp_client/api/expired_controller_api.rb +19 -19
- data/lib/mailslurp_client/api/export_controller_api.rb +38 -38
- data/lib/mailslurp_client/api/form_controller_api.rb +16 -18
- data/lib/mailslurp_client/api/group_controller_api.rb +52 -52
- data/lib/mailslurp_client/api/inbox_controller_api.rb +256 -236
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +33 -29
- data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +33 -29
- data/lib/mailslurp_client/api/mail_server_controller_api.rb +26 -26
- data/lib/mailslurp_client/api/missed_email_controller_api.rb +54 -42
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +157 -47
- data/lib/mailslurp_client/api/template_controller_api.rb +21 -21
- data/lib/mailslurp_client/api/tracking_controller_api.rb +16 -16
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +128 -88
- data/lib/mailslurp_client/api/webhook_controller_api.rb +102 -86
- data/lib/mailslurp_client/configuration.rb +4 -4
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +10 -25
- data/lib/mailslurp_client/models/alias_dto.rb +45 -56
- data/lib/mailslurp_client/models/alias_projection.rb +42 -72
- data/lib/mailslurp_client/models/attachment_entity.rb +34 -54
- data/lib/mailslurp_client/models/attachment_meta_data.rb +21 -21
- data/lib/mailslurp_client/models/attachment_projection.rb +36 -51
- data/lib/mailslurp_client/models/basic_auth_options.rb +0 -10
- data/lib/mailslurp_client/models/bounce_projection.rb +13 -23
- data/lib/mailslurp_client/models/bounce_recipient.rb +22 -42
- data/lib/mailslurp_client/models/bounced_email_dto.rb +56 -76
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +16 -31
- data/lib/mailslurp_client/models/bulk_send_email_options.rb +5 -0
- data/lib/mailslurp_client/models/condition_option.rb +2 -2
- data/lib/mailslurp_client/models/contact_dto.rb +53 -73
- data/lib/mailslurp_client/models/contact_projection.rb +42 -52
- data/lib/mailslurp_client/models/count_dto.rb +0 -5
- data/lib/mailslurp_client/models/create_contact_options.rb +42 -42
- data/lib/mailslurp_client/models/create_domain_options.rb +21 -16
- data/lib/mailslurp_client/models/create_group_options.rb +0 -5
- data/lib/mailslurp_client/models/create_inbox_dto.rb +58 -58
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +19 -14
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +23 -23
- data/lib/mailslurp_client/models/create_template_options.rb +0 -10
- data/lib/mailslurp_client/models/create_webhook_options.rb +18 -18
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +15 -25
- data/lib/mailslurp_client/models/dns_lookup_options.rb +24 -14
- data/lib/mailslurp_client/models/dns_lookup_result.rb +23 -42
- data/lib/mailslurp_client/models/dns_lookup_results.rb +0 -5
- data/lib/mailslurp_client/models/domain_dto.rb +59 -80
- data/lib/mailslurp_client/models/domain_name_record.rb +11 -30
- data/lib/mailslurp_client/models/domain_preview.rb +26 -50
- data/lib/mailslurp_client/models/email.rb +134 -135
- data/lib/mailslurp_client/models/email_analysis.rb +28 -28
- data/lib/mailslurp_client/models/email_content_match_result.rb +13 -23
- data/lib/mailslurp_client/models/email_links_result.rb +13 -23
- data/lib/mailslurp_client/models/email_preview.rb +47 -47
- data/lib/mailslurp_client/models/email_projection.rb +77 -97
- data/lib/mailslurp_client/models/email_recipients.rb +16 -15
- data/lib/mailslurp_client/models/email_text_lines_result.rb +13 -23
- data/lib/mailslurp_client/models/email_verification_result.rb +16 -36
- data/lib/mailslurp_client/models/expiration_defaults.rb +16 -26
- data/lib/mailslurp_client/models/expired_inbox_dto.rb +13 -28
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +22 -42
- data/lib/mailslurp_client/models/export_link.rb +0 -5
- data/lib/mailslurp_client/models/export_options.rb +1 -6
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +13 -23
- data/lib/mailslurp_client/models/forward_email_options.rb +36 -31
- data/lib/mailslurp_client/models/gravatar_url.rb +13 -23
- data/lib/mailslurp_client/models/group_contacts_dto.rb +13 -23
- data/lib/mailslurp_client/models/group_dto.rb +22 -37
- data/lib/mailslurp_client/models/group_projection.rb +22 -37
- data/lib/mailslurp_client/models/html_validation_result.rb +13 -14
- data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +47 -57
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +0 -5
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +31 -61
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +0 -5
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +13 -23
- data/lib/mailslurp_client/models/inbox_preview.rb +38 -38
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +43 -78
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +0 -5
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +13 -18
- data/lib/mailslurp_client/models/inline_object.rb +221 -0
- data/lib/mailslurp_client/models/ip_address_result.rb +0 -10
- data/lib/mailslurp_client/models/json_schema_dto.rb +0 -5
- data/lib/mailslurp_client/models/match_option.rb +7 -2
- data/lib/mailslurp_client/models/match_options.rb +16 -16
- data/lib/mailslurp_client/models/missed_email.rb +67 -102
- data/lib/mailslurp_client/models/missed_email_projection.rb +19 -29
- data/lib/mailslurp_client/models/name_server_record.rb +10 -30
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +44 -44
- data/lib/mailslurp_client/models/page_alias.rb +52 -52
- data/lib/mailslurp_client/models/page_attachment_entity.rb +52 -52
- data/lib/mailslurp_client/models/page_bounced_email.rb +52 -52
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +52 -52
- data/lib/mailslurp_client/models/page_contact_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_email_preview.rb +52 -52
- data/lib/mailslurp_client/models/page_email_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_group_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +52 -52
- data/lib/mailslurp_client/models/page_inbox_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +52 -52
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +49 -49
- data/lib/mailslurp_client/models/page_template_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_thread_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_webhook_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_webhook_result.rb +52 -52
- data/lib/mailslurp_client/models/pageable.rb +10 -10
- data/lib/mailslurp_client/models/raw_email_json.rb +0 -5
- data/lib/mailslurp_client/models/recipient.rb +13 -23
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +38 -37
- data/lib/mailslurp_client/models/reply_to_email_options.rb +51 -50
- data/lib/mailslurp_client/models/send_email_options.rb +107 -115
- data/lib/mailslurp_client/models/sender.rb +14 -23
- data/lib/mailslurp_client/models/sent_email_dto.rb +97 -102
- data/lib/mailslurp_client/models/sent_email_projection.rb +66 -105
- data/lib/mailslurp_client/models/simple_send_email_options.rb +24 -24
- data/lib/mailslurp_client/models/template_dto.rb +22 -47
- data/lib/mailslurp_client/models/template_projection.rb +16 -41
- data/lib/mailslurp_client/models/template_variable.rb +0 -10
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +0 -10
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +0 -10
- data/lib/mailslurp_client/models/thread_projection.rb +60 -95
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +43 -68
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +34 -54
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +19 -29
- data/lib/mailslurp_client/models/unread_count.rb +0 -5
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +0 -5
- data/lib/mailslurp_client/models/update_group_contacts.rb +0 -5
- data/lib/mailslurp_client/models/update_inbox_options.rb +26 -26
- data/lib/mailslurp_client/models/upload_attachment_options.rb +14 -14
- data/lib/mailslurp_client/models/validation_message.rb +1 -5
- data/lib/mailslurp_client/models/verify_email_address_options.rb +0 -5
- data/lib/mailslurp_client/models/wait_for_conditions.rb +48 -58
- data/lib/mailslurp_client/models/webhook_dto.rb +64 -69
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +42 -42
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +49 -49
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +43 -43
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +75 -95
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +84 -84
- data/lib/mailslurp_client/models/webhook_projection.rb +36 -61
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +13 -23
- data/lib/mailslurp_client/models/webhook_result_dto.rb +76 -126
- data/lib/mailslurp_client/models/webhook_test_request.rb +21 -36
- data/lib/mailslurp_client/models/webhook_test_response.rb +13 -13
- data/lib/mailslurp_client/models/webhook_test_result.rb +13 -23
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +2 -1
- metadata +4 -3
@@ -17,10 +17,10 @@ module MailSlurpClient
|
|
17
17
|
class AbstractWebhookPayload
|
18
18
|
attr_accessor :event_name
|
19
19
|
|
20
|
-
attr_accessor :message_id
|
21
|
-
|
22
20
|
attr_accessor :webhook_id
|
23
21
|
|
22
|
+
attr_accessor :message_id
|
23
|
+
|
24
24
|
attr_accessor :webhook_name
|
25
25
|
|
26
26
|
class EnumAttributeValidator
|
@@ -49,8 +49,8 @@ module MailSlurpClient
|
|
49
49
|
def self.attribute_map
|
50
50
|
{
|
51
51
|
:'event_name' => :'eventName',
|
52
|
-
:'message_id' => :'messageId',
|
53
52
|
:'webhook_id' => :'webhookId',
|
53
|
+
:'message_id' => :'messageId',
|
54
54
|
:'webhook_name' => :'webhookName'
|
55
55
|
}
|
56
56
|
end
|
@@ -59,8 +59,8 @@ module MailSlurpClient
|
|
59
59
|
def self.openapi_types
|
60
60
|
{
|
61
61
|
:'event_name' => :'String',
|
62
|
-
:'message_id' => :'String',
|
63
62
|
:'webhook_id' => :'String',
|
63
|
+
:'message_id' => :'String',
|
64
64
|
:'webhook_name' => :'String'
|
65
65
|
}
|
66
66
|
end
|
@@ -90,14 +90,14 @@ module MailSlurpClient
|
|
90
90
|
self.event_name = attributes[:'event_name']
|
91
91
|
end
|
92
92
|
|
93
|
-
if attributes.key?(:'message_id')
|
94
|
-
self.message_id = attributes[:'message_id']
|
95
|
-
end
|
96
|
-
|
97
93
|
if attributes.key?(:'webhook_id')
|
98
94
|
self.webhook_id = attributes[:'webhook_id']
|
99
95
|
end
|
100
96
|
|
97
|
+
if attributes.key?(:'message_id')
|
98
|
+
self.message_id = attributes[:'message_id']
|
99
|
+
end
|
100
|
+
|
101
101
|
if attributes.key?(:'webhook_name')
|
102
102
|
self.webhook_name = attributes[:'webhook_name']
|
103
103
|
end
|
@@ -107,29 +107,14 @@ module MailSlurpClient
|
|
107
107
|
# @return Array for valid properties with the reasons
|
108
108
|
def list_invalid_properties
|
109
109
|
invalid_properties = Array.new
|
110
|
-
if @event_name.nil?
|
111
|
-
invalid_properties.push('invalid value for "event_name", event_name cannot be nil.')
|
112
|
-
end
|
113
|
-
|
114
|
-
if @message_id.nil?
|
115
|
-
invalid_properties.push('invalid value for "message_id", message_id cannot be nil.')
|
116
|
-
end
|
117
|
-
|
118
|
-
if @webhook_id.nil?
|
119
|
-
invalid_properties.push('invalid value for "webhook_id", webhook_id cannot be nil.')
|
120
|
-
end
|
121
|
-
|
122
110
|
invalid_properties
|
123
111
|
end
|
124
112
|
|
125
113
|
# Check to see if the all the properties in the model are valid
|
126
114
|
# @return true if the model is valid
|
127
115
|
def valid?
|
128
|
-
return false if @event_name.nil?
|
129
116
|
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
|
130
117
|
return false unless event_name_validator.valid?(@event_name)
|
131
|
-
return false if @message_id.nil?
|
132
|
-
return false if @webhook_id.nil?
|
133
118
|
true
|
134
119
|
end
|
135
120
|
|
@@ -149,8 +134,8 @@ module MailSlurpClient
|
|
149
134
|
return true if self.equal?(o)
|
150
135
|
self.class == o.class &&
|
151
136
|
event_name == o.event_name &&
|
152
|
-
message_id == o.message_id &&
|
153
137
|
webhook_id == o.webhook_id &&
|
138
|
+
message_id == o.message_id &&
|
154
139
|
webhook_name == o.webhook_name
|
155
140
|
end
|
156
141
|
|
@@ -163,7 +148,7 @@ module MailSlurpClient
|
|
163
148
|
# Calculates hash code according to all attributes.
|
164
149
|
# @return [Integer] Hash code
|
165
150
|
def hash
|
166
|
-
[event_name,
|
151
|
+
[event_name, webhook_id, message_id, webhook_name].hash
|
167
152
|
end
|
168
153
|
|
169
154
|
# Builds the object from hash
|
@@ -15,60 +15,59 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Email alias representation
|
17
17
|
class AliasDto
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :id
|
19
19
|
|
20
20
|
# The alias's email address for receiving email
|
21
21
|
attr_accessor :email_address
|
22
22
|
|
23
|
-
|
23
|
+
# The underlying email address that is hidden and will received forwarded email
|
24
|
+
attr_accessor :masked_email_address
|
25
|
+
|
26
|
+
attr_accessor :user_id
|
24
27
|
|
25
28
|
# Inbox that is associated with the alias
|
26
29
|
attr_accessor :inbox_id
|
27
30
|
|
28
|
-
# Has the alias been verified. You must verify an alias if the masked email address has not yet been verified by your account
|
29
|
-
attr_accessor :is_verified
|
30
|
-
|
31
|
-
# The underlying email address that is hidden and will received forwarded email
|
32
|
-
attr_accessor :masked_email_address
|
33
|
-
|
34
31
|
attr_accessor :name
|
35
32
|
|
36
|
-
attr_accessor :updated_at
|
37
|
-
|
38
33
|
# If alias will generate response threads or not when email are received by it
|
39
34
|
attr_accessor :use_threads
|
40
35
|
|
41
|
-
attr_accessor :
|
36
|
+
attr_accessor :created_at
|
37
|
+
|
38
|
+
attr_accessor :updated_at
|
39
|
+
|
40
|
+
attr_accessor :verified
|
42
41
|
|
43
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
43
|
def self.attribute_map
|
45
44
|
{
|
46
|
-
:'created_at' => :'createdAt',
|
47
|
-
:'email_address' => :'emailAddress',
|
48
45
|
:'id' => :'id',
|
49
|
-
:'
|
50
|
-
:'is_verified' => :'isVerified',
|
46
|
+
:'email_address' => :'emailAddress',
|
51
47
|
:'masked_email_address' => :'maskedEmailAddress',
|
48
|
+
:'user_id' => :'userId',
|
49
|
+
:'inbox_id' => :'inboxId',
|
52
50
|
:'name' => :'name',
|
53
|
-
:'updated_at' => :'updatedAt',
|
54
51
|
:'use_threads' => :'useThreads',
|
55
|
-
:'
|
52
|
+
:'created_at' => :'createdAt',
|
53
|
+
:'updated_at' => :'updatedAt',
|
54
|
+
:'verified' => :'verified'
|
56
55
|
}
|
57
56
|
end
|
58
57
|
|
59
58
|
# Attribute type mapping.
|
60
59
|
def self.openapi_types
|
61
60
|
{
|
62
|
-
:'created_at' => :'DateTime',
|
63
|
-
:'email_address' => :'String',
|
64
61
|
:'id' => :'String',
|
65
|
-
:'
|
66
|
-
:'is_verified' => :'Boolean',
|
62
|
+
:'email_address' => :'String',
|
67
63
|
:'masked_email_address' => :'String',
|
64
|
+
:'user_id' => :'String',
|
65
|
+
:'inbox_id' => :'String',
|
68
66
|
:'name' => :'String',
|
69
|
-
:'updated_at' => :'DateTime',
|
70
67
|
:'use_threads' => :'Boolean',
|
71
|
-
:'
|
68
|
+
:'created_at' => :'DateTime',
|
69
|
+
:'updated_at' => :'DateTime',
|
70
|
+
:'verified' => :'Boolean'
|
72
71
|
}
|
73
72
|
end
|
74
73
|
|
@@ -93,44 +92,44 @@ module MailSlurpClient
|
|
93
92
|
h[k.to_sym] = v
|
94
93
|
}
|
95
94
|
|
96
|
-
if attributes.key?(:'
|
97
|
-
self.
|
95
|
+
if attributes.key?(:'id')
|
96
|
+
self.id = attributes[:'id']
|
98
97
|
end
|
99
98
|
|
100
99
|
if attributes.key?(:'email_address')
|
101
100
|
self.email_address = attributes[:'email_address']
|
102
101
|
end
|
103
102
|
|
104
|
-
if attributes.key?(:'
|
105
|
-
self.
|
103
|
+
if attributes.key?(:'masked_email_address')
|
104
|
+
self.masked_email_address = attributes[:'masked_email_address']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.key?(:'user_id')
|
108
|
+
self.user_id = attributes[:'user_id']
|
106
109
|
end
|
107
110
|
|
108
111
|
if attributes.key?(:'inbox_id')
|
109
112
|
self.inbox_id = attributes[:'inbox_id']
|
110
113
|
end
|
111
114
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
115
|
+
if attributes.key?(:'name')
|
116
|
+
self.name = attributes[:'name']
|
114
117
|
end
|
115
118
|
|
116
|
-
if attributes.key?(:'
|
117
|
-
self.
|
119
|
+
if attributes.key?(:'use_threads')
|
120
|
+
self.use_threads = attributes[:'use_threads']
|
118
121
|
end
|
119
122
|
|
120
|
-
if attributes.key?(:'
|
121
|
-
self.
|
123
|
+
if attributes.key?(:'created_at')
|
124
|
+
self.created_at = attributes[:'created_at']
|
122
125
|
end
|
123
126
|
|
124
127
|
if attributes.key?(:'updated_at')
|
125
128
|
self.updated_at = attributes[:'updated_at']
|
126
129
|
end
|
127
130
|
|
128
|
-
if attributes.key?(:'
|
129
|
-
self.
|
130
|
-
end
|
131
|
-
|
132
|
-
if attributes.key?(:'user_id')
|
133
|
-
self.user_id = attributes[:'user_id']
|
131
|
+
if attributes.key?(:'verified')
|
132
|
+
self.verified = attributes[:'verified']
|
134
133
|
end
|
135
134
|
end
|
136
135
|
|
@@ -138,22 +137,12 @@ module MailSlurpClient
|
|
138
137
|
# @return Array for valid properties with the reasons
|
139
138
|
def list_invalid_properties
|
140
139
|
invalid_properties = Array.new
|
141
|
-
if @id.nil?
|
142
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
143
|
-
end
|
144
|
-
|
145
|
-
if @user_id.nil?
|
146
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
147
|
-
end
|
148
|
-
|
149
140
|
invalid_properties
|
150
141
|
end
|
151
142
|
|
152
143
|
# Check to see if the all the properties in the model are valid
|
153
144
|
# @return true if the model is valid
|
154
145
|
def valid?
|
155
|
-
return false if @id.nil?
|
156
|
-
return false if @user_id.nil?
|
157
146
|
true
|
158
147
|
end
|
159
148
|
|
@@ -162,16 +151,16 @@ module MailSlurpClient
|
|
162
151
|
def ==(o)
|
163
152
|
return true if self.equal?(o)
|
164
153
|
self.class == o.class &&
|
165
|
-
created_at == o.created_at &&
|
166
|
-
email_address == o.email_address &&
|
167
154
|
id == o.id &&
|
168
|
-
|
169
|
-
is_verified == o.is_verified &&
|
155
|
+
email_address == o.email_address &&
|
170
156
|
masked_email_address == o.masked_email_address &&
|
157
|
+
user_id == o.user_id &&
|
158
|
+
inbox_id == o.inbox_id &&
|
171
159
|
name == o.name &&
|
172
|
-
updated_at == o.updated_at &&
|
173
160
|
use_threads == o.use_threads &&
|
174
|
-
|
161
|
+
created_at == o.created_at &&
|
162
|
+
updated_at == o.updated_at &&
|
163
|
+
verified == o.verified
|
175
164
|
end
|
176
165
|
|
177
166
|
# @see the `==` method
|
@@ -183,7 +172,7 @@ module MailSlurpClient
|
|
183
172
|
# Calculates hash code according to all attributes.
|
184
173
|
# @return [Integer] Hash code
|
185
174
|
def hash
|
186
|
-
[
|
175
|
+
[id, email_address, masked_email_address, user_id, inbox_id, name, use_threads, created_at, updated_at, verified].hash
|
187
176
|
end
|
188
177
|
|
189
178
|
# Builds the object from hash
|
@@ -15,47 +15,47 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Representation of a alias
|
17
17
|
class AliasProjection
|
18
|
-
attr_accessor :
|
19
|
-
|
20
|
-
attr_accessor :email_address
|
18
|
+
attr_accessor :name
|
21
19
|
|
22
20
|
attr_accessor :id
|
23
21
|
|
24
|
-
attr_accessor :
|
22
|
+
attr_accessor :updated_at
|
25
23
|
|
26
|
-
attr_accessor :
|
24
|
+
attr_accessor :user_id
|
27
25
|
|
28
|
-
attr_accessor :
|
26
|
+
attr_accessor :email_address
|
29
27
|
|
30
|
-
attr_accessor :
|
28
|
+
attr_accessor :inbox_id
|
31
29
|
|
32
|
-
attr_accessor :
|
30
|
+
attr_accessor :created_at
|
31
|
+
|
32
|
+
attr_accessor :use_threads
|
33
33
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
|
-
:'created_at' => :'createdAt',
|
38
|
-
:'email_address' => :'emailAddress',
|
39
|
-
:'id' => :'id',
|
40
|
-
:'inbox_id' => :'inboxId',
|
41
37
|
:'name' => :'name',
|
38
|
+
:'id' => :'id',
|
42
39
|
:'updated_at' => :'updatedAt',
|
43
|
-
:'
|
44
|
-
:'
|
40
|
+
:'user_id' => :'userId',
|
41
|
+
:'email_address' => :'emailAddress',
|
42
|
+
:'inbox_id' => :'inboxId',
|
43
|
+
:'created_at' => :'createdAt',
|
44
|
+
:'use_threads' => :'useThreads'
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
48
48
|
# Attribute type mapping.
|
49
49
|
def self.openapi_types
|
50
50
|
{
|
51
|
-
:'created_at' => :'DateTime',
|
52
|
-
:'email_address' => :'String',
|
53
|
-
:'id' => :'String',
|
54
|
-
:'inbox_id' => :'String',
|
55
51
|
:'name' => :'String',
|
52
|
+
:'id' => :'String',
|
56
53
|
:'updated_at' => :'DateTime',
|
57
|
-
:'
|
58
|
-
:'
|
54
|
+
:'user_id' => :'String',
|
55
|
+
:'email_address' => :'String',
|
56
|
+
:'inbox_id' => :'String',
|
57
|
+
:'created_at' => :'DateTime',
|
58
|
+
:'use_threads' => :'Boolean'
|
59
59
|
}
|
60
60
|
end
|
61
61
|
|
@@ -80,79 +80,49 @@ module MailSlurpClient
|
|
80
80
|
h[k.to_sym] = v
|
81
81
|
}
|
82
82
|
|
83
|
-
if attributes.key?(:'
|
84
|
-
self.
|
85
|
-
end
|
86
|
-
|
87
|
-
if attributes.key?(:'email_address')
|
88
|
-
self.email_address = attributes[:'email_address']
|
83
|
+
if attributes.key?(:'name')
|
84
|
+
self.name = attributes[:'name']
|
89
85
|
end
|
90
86
|
|
91
87
|
if attributes.key?(:'id')
|
92
88
|
self.id = attributes[:'id']
|
93
89
|
end
|
94
90
|
|
95
|
-
if attributes.key?(:'inbox_id')
|
96
|
-
self.inbox_id = attributes[:'inbox_id']
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.key?(:'name')
|
100
|
-
self.name = attributes[:'name']
|
101
|
-
end
|
102
|
-
|
103
91
|
if attributes.key?(:'updated_at')
|
104
92
|
self.updated_at = attributes[:'updated_at']
|
105
93
|
end
|
106
94
|
|
107
|
-
if attributes.key?(:'use_threads')
|
108
|
-
self.use_threads = attributes[:'use_threads']
|
109
|
-
end
|
110
|
-
|
111
95
|
if attributes.key?(:'user_id')
|
112
96
|
self.user_id = attributes[:'user_id']
|
113
97
|
end
|
114
|
-
end
|
115
|
-
|
116
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
117
|
-
# @return Array for valid properties with the reasons
|
118
|
-
def list_invalid_properties
|
119
|
-
invalid_properties = Array.new
|
120
|
-
if @created_at.nil?
|
121
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
122
|
-
end
|
123
98
|
|
124
|
-
if
|
125
|
-
|
126
|
-
end
|
127
|
-
|
128
|
-
if @id.nil?
|
129
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
99
|
+
if attributes.key?(:'email_address')
|
100
|
+
self.email_address = attributes[:'email_address']
|
130
101
|
end
|
131
102
|
|
132
|
-
if
|
133
|
-
|
103
|
+
if attributes.key?(:'inbox_id')
|
104
|
+
self.inbox_id = attributes[:'inbox_id']
|
134
105
|
end
|
135
106
|
|
136
|
-
if
|
137
|
-
|
107
|
+
if attributes.key?(:'created_at')
|
108
|
+
self.created_at = attributes[:'created_at']
|
138
109
|
end
|
139
110
|
|
140
|
-
if
|
141
|
-
|
111
|
+
if attributes.key?(:'use_threads')
|
112
|
+
self.use_threads = attributes[:'use_threads']
|
142
113
|
end
|
114
|
+
end
|
143
115
|
|
116
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
117
|
+
# @return Array for valid properties with the reasons
|
118
|
+
def list_invalid_properties
|
119
|
+
invalid_properties = Array.new
|
144
120
|
invalid_properties
|
145
121
|
end
|
146
122
|
|
147
123
|
# Check to see if the all the properties in the model are valid
|
148
124
|
# @return true if the model is valid
|
149
125
|
def valid?
|
150
|
-
return false if @created_at.nil?
|
151
|
-
return false if @email_address.nil?
|
152
|
-
return false if @id.nil?
|
153
|
-
return false if @inbox_id.nil?
|
154
|
-
return false if @updated_at.nil?
|
155
|
-
return false if @user_id.nil?
|
156
126
|
true
|
157
127
|
end
|
158
128
|
|
@@ -161,14 +131,14 @@ module MailSlurpClient
|
|
161
131
|
def ==(o)
|
162
132
|
return true if self.equal?(o)
|
163
133
|
self.class == o.class &&
|
164
|
-
created_at == o.created_at &&
|
165
|
-
email_address == o.email_address &&
|
166
|
-
id == o.id &&
|
167
|
-
inbox_id == o.inbox_id &&
|
168
134
|
name == o.name &&
|
135
|
+
id == o.id &&
|
169
136
|
updated_at == o.updated_at &&
|
170
|
-
|
171
|
-
|
137
|
+
user_id == o.user_id &&
|
138
|
+
email_address == o.email_address &&
|
139
|
+
inbox_id == o.inbox_id &&
|
140
|
+
created_at == o.created_at &&
|
141
|
+
use_threads == o.use_threads
|
172
142
|
end
|
173
143
|
|
174
144
|
# @see the `==` method
|
@@ -180,7 +150,7 @@ module MailSlurpClient
|
|
180
150
|
# Calculates hash code according to all attributes.
|
181
151
|
# @return [Integer] Hash code
|
182
152
|
def hash
|
183
|
-
[
|
153
|
+
[name, id, updated_at, user_id, email_address, inbox_id, created_at, use_threads].hash
|
184
154
|
end
|
185
155
|
|
186
156
|
# Builds the object from hash
|
@@ -14,47 +14,47 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class AttachmentEntity
|
17
|
+
attr_accessor :id
|
18
|
+
|
17
19
|
attr_accessor :attachment_id
|
18
20
|
|
19
|
-
attr_accessor :
|
21
|
+
attr_accessor :user_id
|
20
22
|
|
21
23
|
attr_accessor :content_type
|
22
24
|
|
23
|
-
attr_accessor :
|
24
|
-
|
25
|
-
attr_accessor :id
|
25
|
+
attr_accessor :content_length
|
26
26
|
|
27
27
|
attr_accessor :name
|
28
28
|
|
29
|
-
attr_accessor :
|
29
|
+
attr_accessor :created_at
|
30
30
|
|
31
|
-
attr_accessor :
|
31
|
+
attr_accessor :updated_at
|
32
32
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
|
+
:'id' => :'id',
|
36
37
|
:'attachment_id' => :'attachmentId',
|
37
|
-
:'
|
38
|
+
:'user_id' => :'userId',
|
38
39
|
:'content_type' => :'contentType',
|
39
|
-
:'
|
40
|
-
:'id' => :'id',
|
40
|
+
:'content_length' => :'contentLength',
|
41
41
|
:'name' => :'name',
|
42
|
-
:'
|
43
|
-
:'
|
42
|
+
:'created_at' => :'createdAt',
|
43
|
+
:'updated_at' => :'updatedAt'
|
44
44
|
}
|
45
45
|
end
|
46
46
|
|
47
47
|
# Attribute type mapping.
|
48
48
|
def self.openapi_types
|
49
49
|
{
|
50
|
+
:'id' => :'String',
|
50
51
|
:'attachment_id' => :'String',
|
51
|
-
:'
|
52
|
+
:'user_id' => :'String',
|
52
53
|
:'content_type' => :'String',
|
53
|
-
:'
|
54
|
-
:'id' => :'String',
|
54
|
+
:'content_length' => :'Integer',
|
55
55
|
:'name' => :'String',
|
56
|
-
:'
|
57
|
-
:'
|
56
|
+
:'created_at' => :'DateTime',
|
57
|
+
:'updated_at' => :'DateTime'
|
58
58
|
}
|
59
59
|
end
|
60
60
|
|
@@ -79,36 +79,36 @@ module MailSlurpClient
|
|
79
79
|
h[k.to_sym] = v
|
80
80
|
}
|
81
81
|
|
82
|
+
if attributes.key?(:'id')
|
83
|
+
self.id = attributes[:'id']
|
84
|
+
end
|
85
|
+
|
82
86
|
if attributes.key?(:'attachment_id')
|
83
87
|
self.attachment_id = attributes[:'attachment_id']
|
84
88
|
end
|
85
89
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
90
|
+
if attributes.key?(:'user_id')
|
91
|
+
self.user_id = attributes[:'user_id']
|
88
92
|
end
|
89
93
|
|
90
94
|
if attributes.key?(:'content_type')
|
91
95
|
self.content_type = attributes[:'content_type']
|
92
96
|
end
|
93
97
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
self.
|
96
|
-
end
|
97
|
-
|
98
|
-
if attributes.key?(:'id')
|
99
|
-
self.id = attributes[:'id']
|
98
|
+
if attributes.key?(:'content_length')
|
99
|
+
self.content_length = attributes[:'content_length']
|
100
100
|
end
|
101
101
|
|
102
102
|
if attributes.key?(:'name')
|
103
103
|
self.name = attributes[:'name']
|
104
104
|
end
|
105
105
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
106
|
+
if attributes.key?(:'created_at')
|
107
|
+
self.created_at = attributes[:'created_at']
|
108
108
|
end
|
109
109
|
|
110
|
-
if attributes.key?(:'
|
111
|
-
self.
|
110
|
+
if attributes.key?(:'updated_at')
|
111
|
+
self.updated_at = attributes[:'updated_at']
|
112
112
|
end
|
113
113
|
end
|
114
114
|
|
@@ -116,32 +116,12 @@ module MailSlurpClient
|
|
116
116
|
# @return Array for valid properties with the reasons
|
117
117
|
def list_invalid_properties
|
118
118
|
invalid_properties = Array.new
|
119
|
-
if @attachment_id.nil?
|
120
|
-
invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
|
121
|
-
end
|
122
|
-
|
123
|
-
if @created_at.nil?
|
124
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
125
|
-
end
|
126
|
-
|
127
|
-
if @updated_at.nil?
|
128
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
129
|
-
end
|
130
|
-
|
131
|
-
if @user_id.nil?
|
132
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
133
|
-
end
|
134
|
-
|
135
119
|
invalid_properties
|
136
120
|
end
|
137
121
|
|
138
122
|
# Check to see if the all the properties in the model are valid
|
139
123
|
# @return true if the model is valid
|
140
124
|
def valid?
|
141
|
-
return false if @attachment_id.nil?
|
142
|
-
return false if @created_at.nil?
|
143
|
-
return false if @updated_at.nil?
|
144
|
-
return false if @user_id.nil?
|
145
125
|
true
|
146
126
|
end
|
147
127
|
|
@@ -150,14 +130,14 @@ module MailSlurpClient
|
|
150
130
|
def ==(o)
|
151
131
|
return true if self.equal?(o)
|
152
132
|
self.class == o.class &&
|
133
|
+
id == o.id &&
|
153
134
|
attachment_id == o.attachment_id &&
|
154
|
-
|
135
|
+
user_id == o.user_id &&
|
155
136
|
content_type == o.content_type &&
|
156
|
-
|
157
|
-
id == o.id &&
|
137
|
+
content_length == o.content_length &&
|
158
138
|
name == o.name &&
|
159
|
-
|
160
|
-
|
139
|
+
created_at == o.created_at &&
|
140
|
+
updated_at == o.updated_at
|
161
141
|
end
|
162
142
|
|
163
143
|
# @see the `==` method
|
@@ -169,7 +149,7 @@ module MailSlurpClient
|
|
169
149
|
# Calculates hash code according to all attributes.
|
170
150
|
# @return [Integer] Hash code
|
171
151
|
def hash
|
172
|
-
[attachment_id,
|
152
|
+
[id, attachment_id, user_id, content_type, content_length, name, created_at, updated_at].hash
|
173
153
|
end
|
174
154
|
|
175
155
|
# Builds the object from hash
|