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
@@ -15,55 +15,55 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Bounced email
|
17
17
|
class BouncedEmailDto
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :id
|
19
19
|
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :user_id
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :notification_type
|
23
23
|
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :sent_to_recipients
|
25
25
|
|
26
|
-
attr_accessor :
|
26
|
+
attr_accessor :sender
|
27
27
|
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :bounce_mta
|
29
29
|
|
30
|
-
attr_accessor :
|
30
|
+
attr_accessor :bounce_type
|
31
31
|
|
32
|
-
attr_accessor :
|
32
|
+
attr_accessor :bounce_recipients
|
33
33
|
|
34
|
-
attr_accessor :
|
34
|
+
attr_accessor :bounce_sub_type
|
35
35
|
|
36
|
-
attr_accessor :
|
36
|
+
attr_accessor :created_at
|
37
37
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
39
|
def self.attribute_map
|
40
40
|
{
|
41
|
-
:'bounce_mta' => :'bounceMta',
|
42
|
-
:'bounce_recipients' => :'bounceRecipients',
|
43
|
-
:'bounce_sub_type' => :'bounceSubType',
|
44
|
-
:'bounce_type' => :'bounceType',
|
45
|
-
:'created_at' => :'createdAt',
|
46
41
|
:'id' => :'id',
|
42
|
+
:'user_id' => :'userId',
|
47
43
|
:'notification_type' => :'notificationType',
|
48
|
-
:'sender' => :'sender',
|
49
44
|
:'sent_to_recipients' => :'sentToRecipients',
|
50
|
-
:'
|
45
|
+
:'sender' => :'sender',
|
46
|
+
:'bounce_mta' => :'bounceMta',
|
47
|
+
:'bounce_type' => :'bounceType',
|
48
|
+
:'bounce_recipients' => :'bounceRecipients',
|
49
|
+
:'bounce_sub_type' => :'bounceSubType',
|
50
|
+
:'created_at' => :'createdAt'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
54
|
# Attribute type mapping.
|
55
55
|
def self.openapi_types
|
56
56
|
{
|
57
|
-
:'bounce_mta' => :'String',
|
58
|
-
:'bounce_recipients' => :'Array<String>',
|
59
|
-
:'bounce_sub_type' => :'String',
|
60
|
-
:'bounce_type' => :'String',
|
61
|
-
:'created_at' => :'DateTime',
|
62
57
|
:'id' => :'String',
|
58
|
+
:'user_id' => :'String',
|
63
59
|
:'notification_type' => :'String',
|
64
|
-
:'sender' => :'String',
|
65
60
|
:'sent_to_recipients' => :'Array<String>',
|
66
|
-
:'
|
61
|
+
:'sender' => :'String',
|
62
|
+
:'bounce_mta' => :'String',
|
63
|
+
:'bounce_type' => :'String',
|
64
|
+
:'bounce_recipients' => :'Array<String>',
|
65
|
+
:'bounce_sub_type' => :'String',
|
66
|
+
:'created_at' => :'DateTime'
|
67
67
|
}
|
68
68
|
end
|
69
69
|
|
@@ -88,48 +88,48 @@ module MailSlurpClient
|
|
88
88
|
h[k.to_sym] = v
|
89
89
|
}
|
90
90
|
|
91
|
-
if attributes.key?(:'
|
92
|
-
self.
|
91
|
+
if attributes.key?(:'id')
|
92
|
+
self.id = attributes[:'id']
|
93
93
|
end
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
|
97
|
-
self.bounce_recipients = value
|
98
|
-
end
|
95
|
+
if attributes.key?(:'user_id')
|
96
|
+
self.user_id = attributes[:'user_id']
|
99
97
|
end
|
100
98
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
99
|
+
if attributes.key?(:'notification_type')
|
100
|
+
self.notification_type = attributes[:'notification_type']
|
103
101
|
end
|
104
102
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
|
103
|
+
if attributes.key?(:'sent_to_recipients')
|
104
|
+
if (value = attributes[:'sent_to_recipients']).is_a?(Array)
|
105
|
+
self.sent_to_recipients = value
|
106
|
+
end
|
107
107
|
end
|
108
108
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
109
|
+
if attributes.key?(:'sender')
|
110
|
+
self.sender = attributes[:'sender']
|
111
111
|
end
|
112
112
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
113
|
+
if attributes.key?(:'bounce_mta')
|
114
|
+
self.bounce_mta = attributes[:'bounce_mta']
|
115
115
|
end
|
116
116
|
|
117
|
-
if attributes.key?(:'
|
118
|
-
self.
|
117
|
+
if attributes.key?(:'bounce_type')
|
118
|
+
self.bounce_type = attributes[:'bounce_type']
|
119
119
|
end
|
120
120
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
|
121
|
+
if attributes.key?(:'bounce_recipients')
|
122
|
+
if (value = attributes[:'bounce_recipients']).is_a?(Array)
|
123
|
+
self.bounce_recipients = value
|
124
|
+
end
|
123
125
|
end
|
124
126
|
|
125
|
-
if attributes.key?(:'
|
126
|
-
|
127
|
-
self.sent_to_recipients = value
|
128
|
-
end
|
127
|
+
if attributes.key?(:'bounce_sub_type')
|
128
|
+
self.bounce_sub_type = attributes[:'bounce_sub_type']
|
129
129
|
end
|
130
130
|
|
131
|
-
if attributes.key?(:'
|
132
|
-
self.
|
131
|
+
if attributes.key?(:'created_at')
|
132
|
+
self.created_at = attributes[:'created_at']
|
133
133
|
end
|
134
134
|
end
|
135
135
|
|
@@ -137,32 +137,12 @@ module MailSlurpClient
|
|
137
137
|
# @return Array for valid properties with the reasons
|
138
138
|
def list_invalid_properties
|
139
139
|
invalid_properties = Array.new
|
140
|
-
if @created_at.nil?
|
141
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
142
|
-
end
|
143
|
-
|
144
|
-
if @notification_type.nil?
|
145
|
-
invalid_properties.push('invalid value for "notification_type", notification_type cannot be nil.')
|
146
|
-
end
|
147
|
-
|
148
|
-
if @sender.nil?
|
149
|
-
invalid_properties.push('invalid value for "sender", sender cannot be nil.')
|
150
|
-
end
|
151
|
-
|
152
|
-
if @user_id.nil?
|
153
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
154
|
-
end
|
155
|
-
|
156
140
|
invalid_properties
|
157
141
|
end
|
158
142
|
|
159
143
|
# Check to see if the all the properties in the model are valid
|
160
144
|
# @return true if the model is valid
|
161
145
|
def valid?
|
162
|
-
return false if @created_at.nil?
|
163
|
-
return false if @notification_type.nil?
|
164
|
-
return false if @sender.nil?
|
165
|
-
return false if @user_id.nil?
|
166
146
|
true
|
167
147
|
end
|
168
148
|
|
@@ -171,16 +151,16 @@ module MailSlurpClient
|
|
171
151
|
def ==(o)
|
172
152
|
return true if self.equal?(o)
|
173
153
|
self.class == o.class &&
|
174
|
-
bounce_mta == o.bounce_mta &&
|
175
|
-
bounce_recipients == o.bounce_recipients &&
|
176
|
-
bounce_sub_type == o.bounce_sub_type &&
|
177
|
-
bounce_type == o.bounce_type &&
|
178
|
-
created_at == o.created_at &&
|
179
154
|
id == o.id &&
|
155
|
+
user_id == o.user_id &&
|
180
156
|
notification_type == o.notification_type &&
|
181
|
-
sender == o.sender &&
|
182
157
|
sent_to_recipients == o.sent_to_recipients &&
|
183
|
-
|
158
|
+
sender == o.sender &&
|
159
|
+
bounce_mta == o.bounce_mta &&
|
160
|
+
bounce_type == o.bounce_type &&
|
161
|
+
bounce_recipients == o.bounce_recipients &&
|
162
|
+
bounce_sub_type == o.bounce_sub_type &&
|
163
|
+
created_at == o.created_at
|
184
164
|
end
|
185
165
|
|
186
166
|
# @see the `==` method
|
@@ -192,7 +172,7 @@ module MailSlurpClient
|
|
192
172
|
# Calculates hash code according to all attributes.
|
193
173
|
# @return [Integer] Hash code
|
194
174
|
def hash
|
195
|
-
[
|
175
|
+
[id, user_id, notification_type, sent_to_recipients, sender, bounce_mta, bounce_type, bounce_recipients, bounce_sub_type, created_at].hash
|
196
176
|
end
|
197
177
|
|
198
178
|
# Builds the object from hash
|
@@ -15,31 +15,31 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Bounced recipient
|
17
17
|
class BouncedRecipientDto
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
18
|
attr_accessor :id
|
21
19
|
|
20
|
+
attr_accessor :user_id
|
21
|
+
|
22
22
|
attr_accessor :recipient
|
23
23
|
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :created_at
|
25
25
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
27
|
def self.attribute_map
|
28
28
|
{
|
29
|
-
:'created_at' => :'createdAt',
|
30
29
|
:'id' => :'id',
|
30
|
+
:'user_id' => :'userId',
|
31
31
|
:'recipient' => :'recipient',
|
32
|
-
:'
|
32
|
+
:'created_at' => :'createdAt'
|
33
33
|
}
|
34
34
|
end
|
35
35
|
|
36
36
|
# Attribute type mapping.
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
|
-
:'created_at' => :'DateTime',
|
40
39
|
:'id' => :'String',
|
40
|
+
:'user_id' => :'String',
|
41
41
|
:'recipient' => :'String',
|
42
|
-
:'
|
42
|
+
:'created_at' => :'DateTime'
|
43
43
|
}
|
44
44
|
end
|
45
45
|
|
@@ -64,20 +64,20 @@ module MailSlurpClient
|
|
64
64
|
h[k.to_sym] = v
|
65
65
|
}
|
66
66
|
|
67
|
-
if attributes.key?(:'created_at')
|
68
|
-
self.created_at = attributes[:'created_at']
|
69
|
-
end
|
70
|
-
|
71
67
|
if attributes.key?(:'id')
|
72
68
|
self.id = attributes[:'id']
|
73
69
|
end
|
74
70
|
|
71
|
+
if attributes.key?(:'user_id')
|
72
|
+
self.user_id = attributes[:'user_id']
|
73
|
+
end
|
74
|
+
|
75
75
|
if attributes.key?(:'recipient')
|
76
76
|
self.recipient = attributes[:'recipient']
|
77
77
|
end
|
78
78
|
|
79
|
-
if attributes.key?(:'
|
80
|
-
self.
|
79
|
+
if attributes.key?(:'created_at')
|
80
|
+
self.created_at = attributes[:'created_at']
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
@@ -85,27 +85,12 @@ module MailSlurpClient
|
|
85
85
|
# @return Array for valid properties with the reasons
|
86
86
|
def list_invalid_properties
|
87
87
|
invalid_properties = Array.new
|
88
|
-
if @created_at.nil?
|
89
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
90
|
-
end
|
91
|
-
|
92
|
-
if @recipient.nil?
|
93
|
-
invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
|
94
|
-
end
|
95
|
-
|
96
|
-
if @user_id.nil?
|
97
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
98
|
-
end
|
99
|
-
|
100
88
|
invalid_properties
|
101
89
|
end
|
102
90
|
|
103
91
|
# Check to see if the all the properties in the model are valid
|
104
92
|
# @return true if the model is valid
|
105
93
|
def valid?
|
106
|
-
return false if @created_at.nil?
|
107
|
-
return false if @recipient.nil?
|
108
|
-
return false if @user_id.nil?
|
109
94
|
true
|
110
95
|
end
|
111
96
|
|
@@ -114,10 +99,10 @@ module MailSlurpClient
|
|
114
99
|
def ==(o)
|
115
100
|
return true if self.equal?(o)
|
116
101
|
self.class == o.class &&
|
117
|
-
created_at == o.created_at &&
|
118
102
|
id == o.id &&
|
103
|
+
user_id == o.user_id &&
|
119
104
|
recipient == o.recipient &&
|
120
|
-
|
105
|
+
created_at == o.created_at
|
121
106
|
end
|
122
107
|
|
123
108
|
# @see the `==` method
|
@@ -129,7 +114,7 @@ module MailSlurpClient
|
|
129
114
|
# Calculates hash code according to all attributes.
|
130
115
|
# @return [Integer] Hash code
|
131
116
|
def hash
|
132
|
-
[
|
117
|
+
[id, user_id, recipient, created_at].hash
|
133
118
|
end
|
134
119
|
|
135
120
|
# Builds the object from hash
|
@@ -72,12 +72,17 @@ module MailSlurpClient
|
|
72
72
|
# @return Array for valid properties with the reasons
|
73
73
|
def list_invalid_properties
|
74
74
|
invalid_properties = Array.new
|
75
|
+
if @inbox_ids.nil?
|
76
|
+
invalid_properties.push('invalid value for "inbox_ids", inbox_ids cannot be nil.')
|
77
|
+
end
|
78
|
+
|
75
79
|
invalid_properties
|
76
80
|
end
|
77
81
|
|
78
82
|
# Check to see if the all the properties in the model are valid
|
79
83
|
# @return true if the model is valid
|
80
84
|
def valid?
|
85
|
+
return false if @inbox_ids.nil?
|
81
86
|
true
|
82
87
|
end
|
83
88
|
|
@@ -15,10 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Options for matching emails in an inbox based on a condition such as `HAS_ATTACHMENTS=TRUE`
|
17
17
|
class ConditionOption
|
18
|
-
#
|
18
|
+
# Condition of an email object that can be used to filter results
|
19
19
|
attr_accessor :condition
|
20
20
|
|
21
|
-
#
|
21
|
+
# Expected condition value
|
22
22
|
attr_accessor :value
|
23
23
|
|
24
24
|
class EnumAttributeValidator
|
@@ -14,59 +14,59 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class ContactDto
|
17
|
-
attr_accessor :
|
18
|
-
|
19
|
-
attr_accessor :created_at
|
20
|
-
|
21
|
-
attr_accessor :email_addresses
|
22
|
-
|
23
|
-
attr_accessor :first_name
|
17
|
+
attr_accessor :id
|
24
18
|
|
25
19
|
attr_accessor :group_id
|
26
20
|
|
27
|
-
attr_accessor :
|
21
|
+
attr_accessor :first_name
|
28
22
|
|
29
23
|
attr_accessor :last_name
|
30
24
|
|
31
|
-
attr_accessor :
|
25
|
+
attr_accessor :company
|
32
26
|
|
33
|
-
attr_accessor :
|
27
|
+
attr_accessor :email_addresses
|
34
28
|
|
35
29
|
attr_accessor :primary_email_address
|
36
30
|
|
37
31
|
attr_accessor :tags
|
38
32
|
|
33
|
+
attr_accessor :meta_data
|
34
|
+
|
35
|
+
attr_accessor :opt_out
|
36
|
+
|
37
|
+
attr_accessor :created_at
|
38
|
+
|
39
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
40
|
def self.attribute_map
|
41
41
|
{
|
42
|
-
:'company' => :'company',
|
43
|
-
:'created_at' => :'createdAt',
|
44
|
-
:'email_addresses' => :'emailAddresses',
|
45
|
-
:'first_name' => :'firstName',
|
46
|
-
:'group_id' => :'groupId',
|
47
42
|
:'id' => :'id',
|
43
|
+
:'group_id' => :'groupId',
|
44
|
+
:'first_name' => :'firstName',
|
48
45
|
:'last_name' => :'lastName',
|
46
|
+
:'company' => :'company',
|
47
|
+
:'email_addresses' => :'emailAddresses',
|
48
|
+
:'primary_email_address' => :'primaryEmailAddress',
|
49
|
+
:'tags' => :'tags',
|
49
50
|
:'meta_data' => :'metaData',
|
50
51
|
:'opt_out' => :'optOut',
|
51
|
-
:'
|
52
|
-
:'tags' => :'tags'
|
52
|
+
:'created_at' => :'createdAt'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
-
:'company' => :'String',
|
60
|
-
:'created_at' => :'DateTime',
|
61
|
-
:'email_addresses' => :'Array<String>',
|
62
|
-
:'first_name' => :'String',
|
63
|
-
:'group_id' => :'String',
|
64
59
|
:'id' => :'String',
|
60
|
+
:'group_id' => :'String',
|
61
|
+
:'first_name' => :'String',
|
65
62
|
:'last_name' => :'String',
|
63
|
+
:'company' => :'String',
|
64
|
+
:'email_addresses' => :'Array<String>',
|
65
|
+
:'primary_email_address' => :'String',
|
66
|
+
:'tags' => :'Array<String>',
|
66
67
|
:'meta_data' => :'Object',
|
67
68
|
:'opt_out' => :'Boolean',
|
68
|
-
:'
|
69
|
-
:'tags' => :'Array<String>'
|
69
|
+
:'created_at' => :'DateTime'
|
70
70
|
}
|
71
71
|
end
|
72
72
|
|
@@ -91,42 +91,30 @@ module MailSlurpClient
|
|
91
91
|
h[k.to_sym] = v
|
92
92
|
}
|
93
93
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
self.
|
96
|
-
end
|
97
|
-
|
98
|
-
if attributes.key?(:'created_at')
|
99
|
-
self.created_at = attributes[:'created_at']
|
100
|
-
end
|
101
|
-
|
102
|
-
if attributes.key?(:'email_addresses')
|
103
|
-
if (value = attributes[:'email_addresses']).is_a?(Array)
|
104
|
-
self.email_addresses = value
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
if attributes.key?(:'first_name')
|
109
|
-
self.first_name = attributes[:'first_name']
|
94
|
+
if attributes.key?(:'id')
|
95
|
+
self.id = attributes[:'id']
|
110
96
|
end
|
111
97
|
|
112
98
|
if attributes.key?(:'group_id')
|
113
99
|
self.group_id = attributes[:'group_id']
|
114
100
|
end
|
115
101
|
|
116
|
-
if attributes.key?(:'
|
117
|
-
self.
|
102
|
+
if attributes.key?(:'first_name')
|
103
|
+
self.first_name = attributes[:'first_name']
|
118
104
|
end
|
119
105
|
|
120
106
|
if attributes.key?(:'last_name')
|
121
107
|
self.last_name = attributes[:'last_name']
|
122
108
|
end
|
123
109
|
|
124
|
-
if attributes.key?(:'
|
125
|
-
self.
|
110
|
+
if attributes.key?(:'company')
|
111
|
+
self.company = attributes[:'company']
|
126
112
|
end
|
127
113
|
|
128
|
-
if attributes.key?(:'
|
129
|
-
|
114
|
+
if attributes.key?(:'email_addresses')
|
115
|
+
if (value = attributes[:'email_addresses']).is_a?(Array)
|
116
|
+
self.email_addresses = value
|
117
|
+
end
|
130
118
|
end
|
131
119
|
|
132
120
|
if attributes.key?(:'primary_email_address')
|
@@ -138,38 +126,30 @@ module MailSlurpClient
|
|
138
126
|
self.tags = value
|
139
127
|
end
|
140
128
|
end
|
141
|
-
end
|
142
|
-
|
143
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
144
|
-
# @return Array for valid properties with the reasons
|
145
|
-
def list_invalid_properties
|
146
|
-
invalid_properties = Array.new
|
147
|
-
if @created_at.nil?
|
148
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
149
|
-
end
|
150
129
|
|
151
|
-
if
|
152
|
-
|
130
|
+
if attributes.key?(:'meta_data')
|
131
|
+
self.meta_data = attributes[:'meta_data']
|
153
132
|
end
|
154
133
|
|
155
|
-
if
|
156
|
-
|
134
|
+
if attributes.key?(:'opt_out')
|
135
|
+
self.opt_out = attributes[:'opt_out']
|
157
136
|
end
|
158
137
|
|
159
|
-
if
|
160
|
-
|
138
|
+
if attributes.key?(:'created_at')
|
139
|
+
self.created_at = attributes[:'created_at']
|
161
140
|
end
|
141
|
+
end
|
162
142
|
|
143
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
144
|
+
# @return Array for valid properties with the reasons
|
145
|
+
def list_invalid_properties
|
146
|
+
invalid_properties = Array.new
|
163
147
|
invalid_properties
|
164
148
|
end
|
165
149
|
|
166
150
|
# Check to see if the all the properties in the model are valid
|
167
151
|
# @return true if the model is valid
|
168
152
|
def valid?
|
169
|
-
return false if @created_at.nil?
|
170
|
-
return false if @email_addresses.nil?
|
171
|
-
return false if @id.nil?
|
172
|
-
return false if @tags.nil?
|
173
153
|
true
|
174
154
|
end
|
175
155
|
|
@@ -178,17 +158,17 @@ module MailSlurpClient
|
|
178
158
|
def ==(o)
|
179
159
|
return true if self.equal?(o)
|
180
160
|
self.class == o.class &&
|
181
|
-
company == o.company &&
|
182
|
-
created_at == o.created_at &&
|
183
|
-
email_addresses == o.email_addresses &&
|
184
|
-
first_name == o.first_name &&
|
185
|
-
group_id == o.group_id &&
|
186
161
|
id == o.id &&
|
162
|
+
group_id == o.group_id &&
|
163
|
+
first_name == o.first_name &&
|
187
164
|
last_name == o.last_name &&
|
165
|
+
company == o.company &&
|
166
|
+
email_addresses == o.email_addresses &&
|
167
|
+
primary_email_address == o.primary_email_address &&
|
168
|
+
tags == o.tags &&
|
188
169
|
meta_data == o.meta_data &&
|
189
170
|
opt_out == o.opt_out &&
|
190
|
-
|
191
|
-
tags == o.tags
|
171
|
+
created_at == o.created_at
|
192
172
|
end
|
193
173
|
|
194
174
|
# @see the `==` method
|
@@ -200,7 +180,7 @@ module MailSlurpClient
|
|
200
180
|
# Calculates hash code according to all attributes.
|
201
181
|
# @return [Integer] Hash code
|
202
182
|
def hash
|
203
|
-
[
|
183
|
+
[id, group_id, first_name, last_name, company, email_addresses, primary_email_address, tags, meta_data, opt_out, created_at].hash
|
204
184
|
end
|
205
185
|
|
206
186
|
# Builds the object from hash
|