mailslurp_client 15.0.3 → 15.0.7
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 +145 -122
- 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 +198 -178
- 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 +22 -22
- data/lib/mailslurp_client/models/alias_dto.rb +64 -49
- data/lib/mailslurp_client/models/alias_projection.rb +50 -50
- data/lib/mailslurp_client/models/attachment_entity.rb +40 -40
- data/lib/mailslurp_client/models/attachment_meta_data.rb +42 -22
- data/lib/mailslurp_client/models/attachment_projection.rb +38 -33
- data/lib/mailslurp_client/models/basic_auth_options.rb +1 -1
- data/lib/mailslurp_client/models/bounce_projection.rb +19 -19
- data/lib/mailslurp_client/models/bounce_recipient.rb +31 -31
- data/lib/mailslurp_client/models/bounced_email_dto.rb +63 -63
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +23 -23
- data/lib/mailslurp_client/models/bulk_send_email_options.rb +11 -1
- data/lib/mailslurp_client/models/condition_option.rb +13 -3
- data/lib/mailslurp_client/models/contact_dto.rb +63 -63
- data/lib/mailslurp_client/models/contact_projection.rb +39 -39
- data/lib/mailslurp_client/models/content_match_options.rb +6 -1
- data/lib/mailslurp_client/models/count_dto.rb +1 -1
- data/lib/mailslurp_client/models/create_alias_options.rb +11 -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 -1
- data/lib/mailslurp_client/models/create_inbox_dto.rb +59 -59
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +30 -15
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +39 -24
- data/lib/mailslurp_client/models/create_template_options.rb +1 -1
- data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
- data/lib/mailslurp_client/models/create_webhook_options.rb +24 -19
- data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +21 -21
- data/lib/mailslurp_client/models/dns_lookup_options.rb +30 -15
- data/lib/mailslurp_client/models/dns_lookup_result.rb +34 -33
- data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -1
- data/lib/mailslurp_client/models/domain_dto.rb +100 -70
- data/lib/mailslurp_client/models/domain_name_record.rb +18 -17
- data/lib/mailslurp_client/models/domain_preview.rb +29 -28
- data/lib/mailslurp_client/models/download_attachment_dto.rb +16 -1
- data/lib/mailslurp_client/models/email.rb +179 -139
- data/lib/mailslurp_client/models/email_analysis.rb +29 -29
- data/lib/mailslurp_client/models/email_content_match_result.rb +19 -19
- data/lib/mailslurp_client/models/email_links_result.rb +19 -19
- data/lib/mailslurp_client/models/email_preview.rb +63 -48
- data/lib/mailslurp_client/models/email_projection.rb +77 -77
- data/lib/mailslurp_client/models/email_recipients.rb +17 -16
- data/lib/mailslurp_client/models/email_text_lines_result.rb +19 -19
- data/lib/mailslurp_client/models/email_verification_result.rb +22 -22
- data/lib/mailslurp_client/models/expiration_defaults.rb +17 -17
- data/lib/mailslurp_client/models/expired_inbox_dto.rb +19 -19
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +33 -33
- data/lib/mailslurp_client/models/export_link.rb +1 -1
- data/lib/mailslurp_client/models/export_options.rb +2 -2
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +19 -19
- data/lib/mailslurp_client/models/forward_email_options.rb +37 -32
- data/lib/mailslurp_client/models/gravatar_url.rb +19 -19
- data/lib/mailslurp_client/models/group_contacts_dto.rb +19 -19
- data/lib/mailslurp_client/models/group_dto.rb +28 -28
- data/lib/mailslurp_client/models/group_projection.rb +29 -29
- data/lib/mailslurp_client/models/html_validation_result.rb +27 -12
- data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +72 -57
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -1
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +48 -48
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -1
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +19 -19
- data/lib/mailslurp_client/models/inbox_preview.rb +59 -39
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +61 -61
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -1
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +19 -14
- data/lib/mailslurp_client/models/inline_object.rb +221 -0
- data/lib/mailslurp_client/models/ip_address_result.rb +1 -1
- data/lib/mailslurp_client/models/json_schema_dto.rb +1 -1
- data/lib/mailslurp_client/models/match_option.rb +18 -3
- data/lib/mailslurp_client/models/match_options.rb +17 -17
- data/lib/mailslurp_client/models/missed_email.rb +77 -77
- data/lib/mailslurp_client/models/missed_email_projection.rb +25 -25
- data/lib/mailslurp_client/models/name_server_record.rb +16 -16
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +70 -45
- data/lib/mailslurp_client/models/page_alias.rb +59 -50
- data/lib/mailslurp_client/models/page_attachment_entity.rb +59 -50
- data/lib/mailslurp_client/models/page_bounced_email.rb +59 -50
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +59 -50
- data/lib/mailslurp_client/models/page_contact_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_email_preview.rb +59 -50
- data/lib/mailslurp_client/models/page_email_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_group_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +59 -50
- data/lib/mailslurp_client/models/page_inbox_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +59 -50
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +86 -47
- data/lib/mailslurp_client/models/page_template_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_thread_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_webhook_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_webhook_result.rb +59 -50
- data/lib/mailslurp_client/models/{pageable.rb → pageable_object.rb} +32 -32
- data/lib/mailslurp_client/models/raw_email_json.rb +1 -1
- data/lib/mailslurp_client/models/recipient.rb +19 -19
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +47 -35
- data/lib/mailslurp_client/models/reply_to_email_options.rb +57 -45
- data/lib/mailslurp_client/models/send_email_options.rb +112 -110
- data/lib/mailslurp_client/models/sender.rb +20 -19
- data/lib/mailslurp_client/models/sent_email_dto.rb +110 -95
- data/lib/mailslurp_client/models/sent_email_projection.rb +88 -87
- data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +6 -1
- data/lib/mailslurp_client/models/simple_send_email_options.rb +30 -25
- data/lib/mailslurp_client/models/sort.rb +1 -1
- data/lib/mailslurp_client/models/template_dto.rb +33 -33
- data/lib/mailslurp_client/models/template_projection.rb +37 -37
- data/lib/mailslurp_client/models/template_variable.rb +1 -1
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -1
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -1
- data/lib/mailslurp_client/models/thread_projection.rb +71 -71
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +54 -54
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +42 -42
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +25 -25
- data/lib/mailslurp_client/models/unread_count.rb +1 -1
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -1
- 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 -1
- 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 +11 -1
- data/lib/mailslurp_client/models/validation_message.rb +2 -1
- data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -1
- data/lib/mailslurp_client/models/wait_for_conditions.rb +53 -53
- data/lib/mailslurp_client/models/webhook_dto.rb +105 -65
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +83 -43
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +85 -50
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +79 -44
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +98 -83
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +140 -85
- data/lib/mailslurp_client/models/webhook_projection.rb +47 -47
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +19 -19
- data/lib/mailslurp_client/models/webhook_result_dto.rb +102 -102
- data/lib/mailslurp_client/models/webhook_test_request.rb +28 -28
- data/lib/mailslurp_client/models/webhook_test_response.rb +14 -14
- data/lib/mailslurp_client/models/webhook_test_result.rb +19 -19
- data/lib/mailslurp_client/version.rb +2 -2
- data/lib/mailslurp_client.rb +4 -3
- metadata +5 -4
@@ -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
|
|
@@ -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,50 @@ module MailSlurpClient
|
|
138
126
|
self.tags = value
|
139
127
|
end
|
140
128
|
end
|
129
|
+
|
130
|
+
if attributes.key?(:'meta_data')
|
131
|
+
self.meta_data = attributes[:'meta_data']
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.key?(:'opt_out')
|
135
|
+
self.opt_out = attributes[:'opt_out']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'created_at')
|
139
|
+
self.created_at = attributes[:'created_at']
|
140
|
+
end
|
141
141
|
end
|
142
142
|
|
143
143
|
# Show invalid properties with the reasons. Usually used together with valid?
|
144
144
|
# @return Array for valid properties with the reasons
|
145
145
|
def list_invalid_properties
|
146
146
|
invalid_properties = Array.new
|
147
|
-
if @
|
148
|
-
invalid_properties.push('invalid value for "
|
147
|
+
if @id.nil?
|
148
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
149
149
|
end
|
150
150
|
|
151
151
|
if @email_addresses.nil?
|
152
152
|
invalid_properties.push('invalid value for "email_addresses", email_addresses cannot be nil.')
|
153
153
|
end
|
154
154
|
|
155
|
-
if @id.nil?
|
156
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
157
|
-
end
|
158
|
-
|
159
155
|
if @tags.nil?
|
160
156
|
invalid_properties.push('invalid value for "tags", tags cannot be nil.')
|
161
157
|
end
|
162
158
|
|
159
|
+
if @created_at.nil?
|
160
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
161
|
+
end
|
162
|
+
|
163
163
|
invalid_properties
|
164
164
|
end
|
165
165
|
|
166
166
|
# Check to see if the all the properties in the model are valid
|
167
167
|
# @return true if the model is valid
|
168
168
|
def valid?
|
169
|
-
return false if @created_at.nil?
|
170
|
-
return false if @email_addresses.nil?
|
171
169
|
return false if @id.nil?
|
170
|
+
return false if @email_addresses.nil?
|
172
171
|
return false if @tags.nil?
|
172
|
+
return false if @created_at.nil?
|
173
173
|
true
|
174
174
|
end
|
175
175
|
|
@@ -178,17 +178,17 @@ module MailSlurpClient
|
|
178
178
|
def ==(o)
|
179
179
|
return true if self.equal?(o)
|
180
180
|
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
181
|
id == o.id &&
|
182
|
+
group_id == o.group_id &&
|
183
|
+
first_name == o.first_name &&
|
187
184
|
last_name == o.last_name &&
|
185
|
+
company == o.company &&
|
186
|
+
email_addresses == o.email_addresses &&
|
187
|
+
primary_email_address == o.primary_email_address &&
|
188
|
+
tags == o.tags &&
|
188
189
|
meta_data == o.meta_data &&
|
189
190
|
opt_out == o.opt_out &&
|
190
|
-
|
191
|
-
tags == o.tags
|
191
|
+
created_at == o.created_at
|
192
192
|
end
|
193
193
|
|
194
194
|
# @see the `==` method
|
@@ -200,7 +200,7 @@ module MailSlurpClient
|
|
200
200
|
# Calculates hash code according to all attributes.
|
201
201
|
# @return [Integer] Hash code
|
202
202
|
def hash
|
203
|
-
[
|
203
|
+
[id, group_id, first_name, last_name, company, email_addresses, primary_email_address, tags, meta_data, opt_out, created_at].hash
|
204
204
|
end
|
205
205
|
|
206
206
|
# 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
|
|
@@ -14,32 +14,32 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class ContactProjection
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :id
|
18
18
|
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :group_id
|
20
20
|
|
21
|
-
attr_accessor :
|
21
|
+
attr_accessor :created_at
|
22
22
|
|
23
23
|
attr_accessor :first_name
|
24
24
|
|
25
|
-
attr_accessor :
|
25
|
+
attr_accessor :last_name
|
26
26
|
|
27
|
-
attr_accessor :
|
27
|
+
attr_accessor :company
|
28
28
|
|
29
|
-
attr_accessor :
|
29
|
+
attr_accessor :email_addresses
|
30
30
|
|
31
31
|
attr_accessor :opt_out
|
32
32
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
|
-
:'
|
36
|
+
:'id' => :'id',
|
37
|
+
:'group_id' => :'groupId',
|
37
38
|
:'created_at' => :'createdAt',
|
38
|
-
:'email_addresses' => :'emailAddresses',
|
39
39
|
:'first_name' => :'firstName',
|
40
|
-
:'group_id' => :'groupId',
|
41
|
-
:'id' => :'id',
|
42
40
|
:'last_name' => :'lastName',
|
41
|
+
:'company' => :'company',
|
42
|
+
:'email_addresses' => :'emailAddresses',
|
43
43
|
:'opt_out' => :'optOut'
|
44
44
|
}
|
45
45
|
end
|
@@ -47,13 +47,13 @@ module MailSlurpClient
|
|
47
47
|
# Attribute type mapping.
|
48
48
|
def self.openapi_types
|
49
49
|
{
|
50
|
-
:'
|
50
|
+
:'id' => :'String',
|
51
|
+
:'group_id' => :'String',
|
51
52
|
:'created_at' => :'DateTime',
|
52
|
-
:'email_addresses' => :'Array<String>',
|
53
53
|
:'first_name' => :'String',
|
54
|
-
:'group_id' => :'String',
|
55
|
-
:'id' => :'String',
|
56
54
|
:'last_name' => :'String',
|
55
|
+
:'company' => :'String',
|
56
|
+
:'email_addresses' => :'Array<String>',
|
57
57
|
:'opt_out' => :'Boolean'
|
58
58
|
}
|
59
59
|
end
|
@@ -79,34 +79,34 @@ module MailSlurpClient
|
|
79
79
|
h[k.to_sym] = v
|
80
80
|
}
|
81
81
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
self.
|
82
|
+
if attributes.key?(:'id')
|
83
|
+
self.id = attributes[:'id']
|
84
84
|
end
|
85
85
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
86
|
+
if attributes.key?(:'group_id')
|
87
|
+
self.group_id = attributes[:'group_id']
|
88
88
|
end
|
89
89
|
|
90
|
-
if attributes.key?(:'
|
91
|
-
|
92
|
-
self.email_addresses = value
|
93
|
-
end
|
90
|
+
if attributes.key?(:'created_at')
|
91
|
+
self.created_at = attributes[:'created_at']
|
94
92
|
end
|
95
93
|
|
96
94
|
if attributes.key?(:'first_name')
|
97
95
|
self.first_name = attributes[:'first_name']
|
98
96
|
end
|
99
97
|
|
100
|
-
if attributes.key?(:'
|
101
|
-
self.
|
98
|
+
if attributes.key?(:'last_name')
|
99
|
+
self.last_name = attributes[:'last_name']
|
102
100
|
end
|
103
101
|
|
104
|
-
if attributes.key?(:'
|
105
|
-
self.
|
102
|
+
if attributes.key?(:'company')
|
103
|
+
self.company = attributes[:'company']
|
106
104
|
end
|
107
105
|
|
108
|
-
if attributes.key?(:'
|
109
|
-
|
106
|
+
if attributes.key?(:'email_addresses')
|
107
|
+
if (value = attributes[:'email_addresses']).is_a?(Array)
|
108
|
+
self.email_addresses = value
|
109
|
+
end
|
110
110
|
end
|
111
111
|
|
112
112
|
if attributes.key?(:'opt_out')
|
@@ -118,22 +118,22 @@ module MailSlurpClient
|
|
118
118
|
# @return Array for valid properties with the reasons
|
119
119
|
def list_invalid_properties
|
120
120
|
invalid_properties = Array.new
|
121
|
-
if @created_at.nil?
|
122
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
123
|
-
end
|
124
|
-
|
125
121
|
if @id.nil?
|
126
122
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
127
123
|
end
|
128
124
|
|
125
|
+
if @created_at.nil?
|
126
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
127
|
+
end
|
128
|
+
|
129
129
|
invalid_properties
|
130
130
|
end
|
131
131
|
|
132
132
|
# Check to see if the all the properties in the model are valid
|
133
133
|
# @return true if the model is valid
|
134
134
|
def valid?
|
135
|
-
return false if @created_at.nil?
|
136
135
|
return false if @id.nil?
|
136
|
+
return false if @created_at.nil?
|
137
137
|
true
|
138
138
|
end
|
139
139
|
|
@@ -142,13 +142,13 @@ module MailSlurpClient
|
|
142
142
|
def ==(o)
|
143
143
|
return true if self.equal?(o)
|
144
144
|
self.class == o.class &&
|
145
|
-
|
145
|
+
id == o.id &&
|
146
|
+
group_id == o.group_id &&
|
146
147
|
created_at == o.created_at &&
|
147
|
-
email_addresses == o.email_addresses &&
|
148
148
|
first_name == o.first_name &&
|
149
|
-
group_id == o.group_id &&
|
150
|
-
id == o.id &&
|
151
149
|
last_name == o.last_name &&
|
150
|
+
company == o.company &&
|
151
|
+
email_addresses == o.email_addresses &&
|
152
152
|
opt_out == o.opt_out
|
153
153
|
end
|
154
154
|
|
@@ -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
|
-
[
|
164
|
+
[id, group_id, created_at, first_name, last_name, company, email_addresses, opt_out].hash
|
165
165
|
end
|
166
166
|
|
167
167
|
# 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
|
|
@@ -62,12 +62,17 @@ module MailSlurpClient
|
|
62
62
|
# @return Array for valid properties with the reasons
|
63
63
|
def list_invalid_properties
|
64
64
|
invalid_properties = Array.new
|
65
|
+
if @pattern.nil?
|
66
|
+
invalid_properties.push('invalid value for "pattern", pattern cannot be nil.')
|
67
|
+
end
|
68
|
+
|
65
69
|
invalid_properties
|
66
70
|
end
|
67
71
|
|
68
72
|
# Check to see if the all the properties in the model are valid
|
69
73
|
# @return true if the model is valid
|
70
74
|
def valid?
|
75
|
+
return false if @pattern.nil?
|
71
76
|
true
|
72
77
|
end
|
73
78
|
|
@@ -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
|
|
@@ -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
|
|
@@ -89,12 +89,22 @@ module MailSlurpClient
|
|
89
89
|
# @return Array for valid properties with the reasons
|
90
90
|
def list_invalid_properties
|
91
91
|
invalid_properties = Array.new
|
92
|
+
if @email_address.nil?
|
93
|
+
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
94
|
+
end
|
95
|
+
|
96
|
+
if @use_threads.nil?
|
97
|
+
invalid_properties.push('invalid value for "use_threads", use_threads cannot be nil.')
|
98
|
+
end
|
99
|
+
|
92
100
|
invalid_properties
|
93
101
|
end
|
94
102
|
|
95
103
|
# Check to see if the all the properties in the model are valid
|
96
104
|
# @return true if the model is valid
|
97
105
|
def valid?
|
106
|
+
return false if @email_address.nil?
|
107
|
+
return false if @use_threads.nil?
|
98
108
|
true
|
99
109
|
end
|
100
110
|
|
@@ -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
|
|
@@ -14,51 +14,51 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class CreateContactOptions
|
17
|
-
# Set of email addresses belonging to the contact
|
18
|
-
attr_accessor :email_addresses
|
19
|
-
|
20
17
|
attr_accessor :first_name
|
21
18
|
|
22
|
-
|
23
|
-
attr_accessor :group_id
|
19
|
+
attr_accessor :last_name
|
24
20
|
|
25
|
-
attr_accessor :
|
21
|
+
attr_accessor :company
|
26
22
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
23
|
+
# Set of email addresses belonging to the contact
|
24
|
+
attr_accessor :email_addresses
|
29
25
|
|
30
26
|
# Tags that can be used to search and group contacts
|
31
27
|
attr_accessor :tags
|
32
28
|
|
33
|
-
attr_accessor :
|
29
|
+
attr_accessor :meta_data
|
34
30
|
|
35
|
-
|
31
|
+
# Has the user explicitly or implicitly opted out of being contacted? If so MailSlurp will ignore them in all actions.
|
32
|
+
attr_accessor :opt_out
|
33
|
+
|
34
|
+
# Group IDs that contact belongs to
|
35
|
+
attr_accessor :group_id
|
36
36
|
|
37
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
38
|
def self.attribute_map
|
39
39
|
{
|
40
|
-
:'email_addresses' => :'emailAddresses',
|
41
40
|
:'first_name' => :'firstName',
|
42
|
-
:'
|
41
|
+
:'last_name' => :'lastName',
|
42
|
+
:'company' => :'company',
|
43
|
+
:'email_addresses' => :'emailAddresses',
|
44
|
+
:'tags' => :'tags',
|
43
45
|
:'meta_data' => :'metaData',
|
44
46
|
:'opt_out' => :'optOut',
|
45
|
-
:'
|
46
|
-
:'last_name' => :'lastName',
|
47
|
-
:'company' => :'company'
|
47
|
+
:'group_id' => :'groupId'
|
48
48
|
}
|
49
49
|
end
|
50
50
|
|
51
51
|
# Attribute type mapping.
|
52
52
|
def self.openapi_types
|
53
53
|
{
|
54
|
-
:'email_addresses' => :'Array<String>',
|
55
54
|
:'first_name' => :'String',
|
56
|
-
:'
|
55
|
+
:'last_name' => :'String',
|
56
|
+
:'company' => :'String',
|
57
|
+
:'email_addresses' => :'Array<String>',
|
58
|
+
:'tags' => :'Array<String>',
|
57
59
|
:'meta_data' => :'Object',
|
58
60
|
:'opt_out' => :'Boolean',
|
59
|
-
:'
|
60
|
-
:'last_name' => :'String',
|
61
|
-
:'company' => :'String'
|
61
|
+
:'group_id' => :'String'
|
62
62
|
}
|
63
63
|
end
|
64
64
|
|
@@ -83,26 +83,22 @@ module MailSlurpClient
|
|
83
83
|
h[k.to_sym] = v
|
84
84
|
}
|
85
85
|
|
86
|
-
if attributes.key?(:'email_addresses')
|
87
|
-
if (value = attributes[:'email_addresses']).is_a?(Array)
|
88
|
-
self.email_addresses = value
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
86
|
if attributes.key?(:'first_name')
|
93
87
|
self.first_name = attributes[:'first_name']
|
94
88
|
end
|
95
89
|
|
96
|
-
if attributes.key?(:'
|
97
|
-
self.
|
90
|
+
if attributes.key?(:'last_name')
|
91
|
+
self.last_name = attributes[:'last_name']
|
98
92
|
end
|
99
93
|
|
100
|
-
if attributes.key?(:'
|
101
|
-
self.
|
94
|
+
if attributes.key?(:'company')
|
95
|
+
self.company = attributes[:'company']
|
102
96
|
end
|
103
97
|
|
104
|
-
if attributes.key?(:'
|
105
|
-
|
98
|
+
if attributes.key?(:'email_addresses')
|
99
|
+
if (value = attributes[:'email_addresses']).is_a?(Array)
|
100
|
+
self.email_addresses = value
|
101
|
+
end
|
106
102
|
end
|
107
103
|
|
108
104
|
if attributes.key?(:'tags')
|
@@ -111,12 +107,16 @@ module MailSlurpClient
|
|
111
107
|
end
|
112
108
|
end
|
113
109
|
|
114
|
-
if attributes.key?(:'
|
115
|
-
self.
|
110
|
+
if attributes.key?(:'meta_data')
|
111
|
+
self.meta_data = attributes[:'meta_data']
|
116
112
|
end
|
117
113
|
|
118
|
-
if attributes.key?(:'
|
119
|
-
self.
|
114
|
+
if attributes.key?(:'opt_out')
|
115
|
+
self.opt_out = attributes[:'opt_out']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.key?(:'group_id')
|
119
|
+
self.group_id = attributes[:'group_id']
|
120
120
|
end
|
121
121
|
end
|
122
122
|
|
@@ -138,14 +138,14 @@ module MailSlurpClient
|
|
138
138
|
def ==(o)
|
139
139
|
return true if self.equal?(o)
|
140
140
|
self.class == o.class &&
|
141
|
-
email_addresses == o.email_addresses &&
|
142
141
|
first_name == o.first_name &&
|
143
|
-
|
142
|
+
last_name == o.last_name &&
|
143
|
+
company == o.company &&
|
144
|
+
email_addresses == o.email_addresses &&
|
145
|
+
tags == o.tags &&
|
144
146
|
meta_data == o.meta_data &&
|
145
147
|
opt_out == o.opt_out &&
|
146
|
-
|
147
|
-
last_name == o.last_name &&
|
148
|
-
company == o.company
|
148
|
+
group_id == o.group_id
|
149
149
|
end
|
150
150
|
|
151
151
|
# @see the `==` method
|
@@ -157,7 +157,7 @@ module MailSlurpClient
|
|
157
157
|
# Calculates hash code according to all attributes.
|
158
158
|
# @return [Integer] Hash code
|
159
159
|
def hash
|
160
|
-
[
|
160
|
+
[first_name, last_name, company, email_addresses, tags, meta_data, opt_out, group_id].hash
|
161
161
|
end
|
162
162
|
|
163
163
|
# Builds the object from hash
|