mailslurp_client 15.0.2 → 15.0.6
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 +60 -56
- data/lib/mailslurp_client/api/attachment_controller_api.rb +50 -61
- data/lib/mailslurp_client/api/bounce_controller_api.rb +27 -19
- data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +16 -16
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +129 -68
- data/lib/mailslurp_client/api/contact_controller_api.rb +23 -23
- data/lib/mailslurp_client/api/domain_controller_api.rb +33 -33
- data/lib/mailslurp_client/api/email_controller_api.rb +191 -117
- data/lib/mailslurp_client/api/expired_controller_api.rb +20 -20
- data/lib/mailslurp_client/api/export_controller_api.rb +39 -39
- data/lib/mailslurp_client/api/form_controller_api.rb +17 -19
- data/lib/mailslurp_client/api/group_controller_api.rb +53 -53
- data/lib/mailslurp_client/api/inbox_controller_api.rb +360 -226
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +34 -30
- data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +34 -30
- data/lib/mailslurp_client/api/mail_server_controller_api.rb +27 -27
- data/lib/mailslurp_client/api/missed_email_controller_api.rb +55 -43
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +158 -48
- data/lib/mailslurp_client/api/template_controller_api.rb +22 -22
- data/lib/mailslurp_client/api/tracking_controller_api.rb +17 -17
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +129 -89
- data/lib/mailslurp_client/api/webhook_controller_api.rb +103 -87
- data/lib/mailslurp_client/api_client.rb +1 -1
- data/lib/mailslurp_client/api_error.rb +1 -1
- data/lib/mailslurp_client/configuration.rb +3 -3
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +11 -26
- data/lib/mailslurp_client/models/alias_dto.rb +46 -57
- data/lib/mailslurp_client/models/alias_projection.rb +38 -68
- data/lib/mailslurp_client/models/attachment_entity.rb +35 -55
- data/lib/mailslurp_client/models/attachment_meta_data.rb +22 -22
- data/lib/mailslurp_client/models/attachment_projection.rb +30 -45
- data/lib/mailslurp_client/models/basic_auth_options.rb +1 -11
- data/lib/mailslurp_client/models/bounce_projection.rb +14 -24
- data/lib/mailslurp_client/models/bounce_recipient.rb +23 -43
- data/lib/mailslurp_client/models/bounced_email_dto.rb +57 -77
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +17 -32
- data/lib/mailslurp_client/models/bulk_send_email_options.rb +6 -1
- data/lib/mailslurp_client/models/condition_option.rb +3 -3
- data/lib/mailslurp_client/models/contact_dto.rb +54 -74
- data/lib/mailslurp_client/models/contact_projection.rb +43 -53
- data/lib/mailslurp_client/models/content_match_options.rb +1 -1
- data/lib/mailslurp_client/models/count_dto.rb +206 -0
- data/lib/mailslurp_client/models/create_alias_options.rb +1 -1
- data/lib/mailslurp_client/models/create_contact_options.rb +43 -43
- data/lib/mailslurp_client/models/create_domain_options.rb +22 -17
- data/lib/mailslurp_client/models/create_group_options.rb +1 -6
- data/lib/mailslurp_client/models/create_inbox_dto.rb +59 -59
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +20 -15
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +24 -24
- data/lib/mailslurp_client/models/create_template_options.rb +1 -11
- data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
- data/lib/mailslurp_client/models/create_webhook_options.rb +19 -19
- data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +16 -26
- data/lib/mailslurp_client/models/dns_lookup_options.rb +25 -15
- data/lib/mailslurp_client/models/dns_lookup_result.rb +24 -43
- data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -6
- data/lib/mailslurp_client/models/domain_dto.rb +60 -81
- data/lib/mailslurp_client/models/domain_name_record.rb +12 -31
- data/lib/mailslurp_client/models/domain_preview.rb +27 -51
- data/lib/mailslurp_client/models/download_attachment_dto.rb +1 -1
- data/lib/mailslurp_client/models/email.rb +135 -136
- data/lib/mailslurp_client/models/email_analysis.rb +29 -29
- data/lib/mailslurp_client/models/email_content_match_result.rb +14 -24
- data/lib/mailslurp_client/models/email_links_result.rb +14 -24
- data/lib/mailslurp_client/models/email_preview.rb +48 -48
- data/lib/mailslurp_client/models/email_projection.rb +67 -87
- data/lib/mailslurp_client/models/email_recipients.rb +17 -16
- data/lib/mailslurp_client/models/email_text_lines_result.rb +14 -24
- data/lib/mailslurp_client/models/email_verification_result.rb +17 -37
- data/lib/mailslurp_client/models/expiration_defaults.rb +17 -27
- data/lib/mailslurp_client/models/expired_inbox_dto.rb +14 -29
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +23 -43
- data/lib/mailslurp_client/models/export_link.rb +1 -6
- data/lib/mailslurp_client/models/export_options.rb +2 -7
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +14 -24
- data/lib/mailslurp_client/models/forward_email_options.rb +37 -32
- data/lib/mailslurp_client/models/gravatar_url.rb +14 -24
- data/lib/mailslurp_client/models/group_contacts_dto.rb +14 -24
- data/lib/mailslurp_client/models/group_dto.rb +23 -38
- data/lib/mailslurp_client/models/group_projection.rb +23 -38
- data/lib/mailslurp_client/models/html_validation_result.rb +14 -15
- data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +48 -58
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -6
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +32 -62
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -6
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +14 -24
- data/lib/mailslurp_client/models/inbox_preview.rb +39 -39
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +44 -79
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -6
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +14 -19
- data/lib/mailslurp_client/models/inline_object.rb +221 -0
- data/lib/mailslurp_client/models/ip_address_result.rb +1 -11
- data/lib/mailslurp_client/models/json_schema_dto.rb +1 -6
- data/lib/mailslurp_client/models/match_option.rb +8 -3
- data/lib/mailslurp_client/models/match_options.rb +17 -17
- data/lib/mailslurp_client/models/missed_email.rb +68 -103
- data/lib/mailslurp_client/models/missed_email_projection.rb +20 -30
- data/lib/mailslurp_client/models/name_server_record.rb +11 -31
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +45 -45
- data/lib/mailslurp_client/models/page_alias.rb +50 -50
- data/lib/mailslurp_client/models/page_attachment_entity.rb +50 -50
- data/lib/mailslurp_client/models/page_bounced_email.rb +50 -50
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +50 -50
- data/lib/mailslurp_client/models/page_contact_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_email_preview.rb +50 -50
- data/lib/mailslurp_client/models/page_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_group_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +50 -50
- data/lib/mailslurp_client/models/page_inbox_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +50 -50
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_template_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_thread_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_webhook_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_webhook_result.rb +50 -50
- data/lib/mailslurp_client/models/pageable.rb +29 -29
- data/lib/mailslurp_client/models/raw_email_json.rb +1 -6
- data/lib/mailslurp_client/models/recipient.rb +14 -24
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +39 -38
- data/lib/mailslurp_client/models/reply_to_email_options.rb +52 -51
- data/lib/mailslurp_client/models/send_email_options.rb +108 -116
- data/lib/mailslurp_client/models/sender.rb +15 -24
- data/lib/mailslurp_client/models/sent_email_dto.rb +98 -103
- data/lib/mailslurp_client/models/sent_email_projection.rb +64 -103
- data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +1 -1
- data/lib/mailslurp_client/models/simple_send_email_options.rb +25 -25
- data/lib/mailslurp_client/models/sort.rb +14 -14
- data/lib/mailslurp_client/models/template_dto.rb +23 -48
- data/lib/mailslurp_client/models/template_projection.rb +26 -51
- data/lib/mailslurp_client/models/template_variable.rb +1 -11
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -11
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -11
- data/lib/mailslurp_client/models/thread_projection.rb +58 -93
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +44 -69
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +35 -55
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +20 -30
- data/lib/mailslurp_client/models/unread_count.rb +1 -6
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -6
- data/lib/mailslurp_client/models/update_alias_options.rb +1 -1
- data/lib/mailslurp_client/models/update_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/update_group_contacts.rb +1 -6
- data/lib/mailslurp_client/models/update_inbox_options.rb +27 -27
- data/lib/mailslurp_client/models/upload_attachment_options.rb +15 -15
- data/lib/mailslurp_client/models/validation_dto.rb +1 -1
- data/lib/mailslurp_client/models/validation_message.rb +2 -6
- data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -6
- data/lib/mailslurp_client/models/wait_for_conditions.rb +49 -59
- data/lib/mailslurp_client/models/webhook_dto.rb +65 -70
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +43 -43
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +50 -50
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +44 -44
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +76 -96
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +85 -85
- data/lib/mailslurp_client/models/webhook_projection.rb +35 -60
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +14 -24
- data/lib/mailslurp_client/models/webhook_result_dto.rb +77 -127
- data/lib/mailslurp_client/models/webhook_test_request.rb +22 -37
- data/lib/mailslurp_client/models/webhook_test_response.rb +14 -14
- data/lib/mailslurp_client/models/webhook_test_result.rb +14 -24
- data/lib/mailslurp_client/version.rb +2 -2
- data/lib/mailslurp_client.rb +4 -2
- metadata +5 -3
@@ -4,7 +4,7 @@
|
|
4
4
|
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
|
-
|
7
|
+
Contact: contact@mailslurp.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.3.1
|
10
10
|
|
@@ -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
|
@@ -4,7 +4,7 @@
|
|
4
4
|
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
|
-
|
7
|
+
Contact: contact@mailslurp.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.3.1
|
10
10
|
|
@@ -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
|
@@ -4,7 +4,7 @@
|
|
4
4
|
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
|
-
|
7
|
+
Contact: contact@mailslurp.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.3.1
|
10
10
|
|
@@ -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 :user_id
|
25
23
|
|
26
|
-
attr_accessor :
|
24
|
+
attr_accessor :email_address
|
27
25
|
|
28
|
-
attr_accessor :
|
26
|
+
attr_accessor :inbox_id
|
27
|
+
|
28
|
+
attr_accessor :created_at
|
29
29
|
|
30
30
|
attr_accessor :use_threads
|
31
31
|
|
32
|
-
attr_accessor :
|
32
|
+
attr_accessor :updated_at
|
33
33
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
|
-
:'
|
38
|
-
:'email_address' => :'emailAddress',
|
37
|
+
:'name' => :'name',
|
39
38
|
:'id' => :'id',
|
39
|
+
:'user_id' => :'userId',
|
40
|
+
:'email_address' => :'emailAddress',
|
40
41
|
:'inbox_id' => :'inboxId',
|
41
|
-
:'
|
42
|
-
:'updated_at' => :'updatedAt',
|
42
|
+
:'created_at' => :'createdAt',
|
43
43
|
:'use_threads' => :'useThreads',
|
44
|
-
:'
|
44
|
+
:'updated_at' => :'updatedAt'
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
48
48
|
# Attribute type mapping.
|
49
49
|
def self.openapi_types
|
50
50
|
{
|
51
|
-
:'
|
52
|
-
:'email_address' => :'String',
|
51
|
+
:'name' => :'String',
|
53
52
|
:'id' => :'String',
|
53
|
+
:'user_id' => :'String',
|
54
|
+
:'email_address' => :'String',
|
54
55
|
:'inbox_id' => :'String',
|
55
|
-
:'
|
56
|
-
:'updated_at' => :'DateTime',
|
56
|
+
:'created_at' => :'DateTime',
|
57
57
|
:'use_threads' => :'Boolean',
|
58
|
-
:'
|
58
|
+
:'updated_at' => :'DateTime'
|
59
59
|
}
|
60
60
|
end
|
61
61
|
|
@@ -80,36 +80,36 @@ 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?(:'
|
96
|
-
self.
|
91
|
+
if attributes.key?(:'user_id')
|
92
|
+
self.user_id = attributes[:'user_id']
|
97
93
|
end
|
98
94
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
95
|
+
if attributes.key?(:'email_address')
|
96
|
+
self.email_address = attributes[:'email_address']
|
101
97
|
end
|
102
98
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
99
|
+
if attributes.key?(:'inbox_id')
|
100
|
+
self.inbox_id = attributes[:'inbox_id']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'created_at')
|
104
|
+
self.created_at = attributes[:'created_at']
|
105
105
|
end
|
106
106
|
|
107
107
|
if attributes.key?(:'use_threads')
|
108
108
|
self.use_threads = attributes[:'use_threads']
|
109
109
|
end
|
110
110
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
111
|
+
if attributes.key?(:'updated_at')
|
112
|
+
self.updated_at = attributes[:'updated_at']
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
@@ -117,42 +117,12 @@ module MailSlurpClient
|
|
117
117
|
# @return Array for valid properties with the reasons
|
118
118
|
def list_invalid_properties
|
119
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
|
-
|
124
|
-
if @email_address.nil?
|
125
|
-
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
126
|
-
end
|
127
|
-
|
128
|
-
if @id.nil?
|
129
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
130
|
-
end
|
131
|
-
|
132
|
-
if @inbox_id.nil?
|
133
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
|
-
if @updated_at.nil?
|
137
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
138
|
-
end
|
139
|
-
|
140
|
-
if @user_id.nil?
|
141
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
142
|
-
end
|
143
|
-
|
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
|
-
|
165
|
-
email_address == o.email_address &&
|
134
|
+
name == o.name &&
|
166
135
|
id == o.id &&
|
136
|
+
user_id == o.user_id &&
|
137
|
+
email_address == o.email_address &&
|
167
138
|
inbox_id == o.inbox_id &&
|
168
|
-
|
169
|
-
updated_at == o.updated_at &&
|
139
|
+
created_at == o.created_at &&
|
170
140
|
use_threads == o.use_threads &&
|
171
|
-
|
141
|
+
updated_at == o.updated_at
|
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, user_id, email_address, inbox_id, created_at, use_threads, updated_at].hash
|
184
154
|
end
|
185
155
|
|
186
156
|
# Builds the object from hash
|