mailslurp_client 17.2.0 → 17.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/campaign_probe_controller_api.rb +138 -0
- data/lib/mailslurp_client/api/domain_monitor_controller_api.rb +264 -0
- data/lib/mailslurp_client/api/email_audit_controller_api.rb +334 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +124 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +4 -4
- data/lib/mailslurp_client/api/phone_controller_api.rb +1312 -81
- data/lib/mailslurp_client/api/sms_controller_api.rb +125 -0
- data/lib/mailslurp_client/api/tools_controller_api.rb +806 -0
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +15 -15
- data/lib/mailslurp_client/models/acquire_phone_pool_lease_options.rb +233 -0
- data/lib/mailslurp_client/models/add_phone_pool_numbers_options.rb +213 -0
- data/lib/mailslurp_client/models/ai_transform_mapping_projection.rb +27 -27
- data/lib/mailslurp_client/models/ai_transform_projection.rb +28 -28
- data/lib/mailslurp_client/models/alias_projection.rb +45 -45
- data/lib/mailslurp_client/models/alias_thread_projection.rb +42 -42
- data/lib/mailslurp_client/models/analyze_dmarc_report_options.rb +248 -0
- data/lib/mailslurp_client/models/analyze_dmarc_report_results.rb +386 -0
- data/lib/mailslurp_client/models/analyze_email_headers_options.rb +240 -0
- data/lib/mailslurp_client/models/analyze_email_headers_results.rb +275 -0
- data/lib/mailslurp_client/models/attachment_projection.rb +50 -50
- data/lib/mailslurp_client/models/available_phone_number_dto.rb +325 -0
- data/lib/mailslurp_client/models/available_phone_numbers_result.rb +236 -0
- data/lib/mailslurp_client/models/bounce_projection.rb +28 -28
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
- data/lib/mailslurp_client/models/campaign_probe_run_comparison_dto.rb +397 -0
- data/lib/mailslurp_client/models/check_campaign_probe_options.rb +371 -0
- data/lib/mailslurp_client/models/check_campaign_probe_results.rb +482 -0
- data/lib/mailslurp_client/models/check_dns_propagation_options.rb +297 -0
- data/lib/mailslurp_client/models/check_dns_propagation_results.rb +361 -0
- data/lib/mailslurp_client/models/check_domain_monitor_options.rb +243 -0
- data/lib/mailslurp_client/models/check_domain_monitor_results.rb +398 -0
- data/lib/mailslurp_client/models/check_email_audit_options.rb +405 -0
- data/lib/mailslurp_client/models/check_email_auth_stack_options.rb +248 -0
- data/lib/mailslurp_client/models/check_email_auth_stack_results.rb +462 -0
- data/lib/mailslurp_client/models/check_email_blacklist_options.rb +241 -0
- data/lib/mailslurp_client/models/check_email_blacklist_results.rb +366 -0
- data/lib/mailslurp_client/models/connector_event_projection.rb +42 -42
- data/lib/mailslurp_client/models/connector_projection.rb +42 -42
- data/lib/mailslurp_client/models/contact_projection.rb +15 -15
- data/lib/mailslurp_client/models/create_email_audit_options.rb +394 -0
- data/lib/mailslurp_client/models/create_phone_number_options.rb +25 -4
- data/lib/mailslurp_client/models/create_phone_pool_options.rb +220 -0
- data/lib/mailslurp_client/models/create_phone_provisioning_job_item_options.rb +256 -0
- data/lib/mailslurp_client/models/create_phone_provisioning_job_options.rb +284 -0
- data/lib/mailslurp_client/models/dmarc_report_metadata.rb +308 -0
- data/lib/mailslurp_client/models/dmarc_report_source_summary.rb +274 -0
- data/lib/mailslurp_client/models/dns_propagation_resolver_result.rb +252 -0
- data/lib/mailslurp_client/models/domain_monitor_run_comparison_dto.rb +369 -0
- data/lib/mailslurp_client/models/domain_monitor_summary_dto.rb +248 -0
- data/lib/mailslurp_client/models/email_audit_analysis_result.rb +620 -0
- data/lib/mailslurp_client/models/email_audit_comparison_dto.rb +411 -0
- data/lib/mailslurp_client/models/email_audit_dto.rb +308 -0
- data/lib/mailslurp_client/models/email_audit_spelling_issue.rb +276 -0
- data/lib/mailslurp_client/models/email_audit_url_issue.rb +236 -0
- data/lib/mailslurp_client/models/email_blacklist_ip_result.rb +242 -0
- data/lib/mailslurp_client/models/email_blacklist_listing_result.rb +258 -0
- data/lib/mailslurp_client/models/email_header_analysis_summary.rb +242 -0
- data/lib/mailslurp_client/models/email_header_received_hop.rb +242 -0
- data/lib/mailslurp_client/models/email_projection.rb +88 -88
- data/lib/mailslurp_client/models/email_thread_projection.rb +54 -54
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +33 -33
- data/lib/mailslurp_client/models/entity_event_item_projection.rb +42 -42
- data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +29 -29
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +27 -27
- data/lib/mailslurp_client/models/generate_spf_record_options.rb +357 -0
- data/lib/mailslurp_client/models/generate_spf_record_results.rb +318 -0
- data/lib/mailslurp_client/models/get_or_create_phone_pool_options.rb +220 -0
- data/lib/mailslurp_client/models/group_projection.rb +15 -15
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +47 -47
- data/lib/mailslurp_client/models/imap_email_projection.rb +18 -18
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +21 -21
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +33 -33
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +19 -19
- data/lib/mailslurp_client/models/lookup_dkim_domain_options.rb +275 -0
- data/lib/mailslurp_client/models/lookup_dkim_domain_results.rb +304 -0
- data/lib/mailslurp_client/models/lookup_ptr_options.rb +241 -0
- data/lib/mailslurp_client/models/lookup_ptr_results.rb +305 -0
- data/lib/mailslurp_client/models/lookup_spf_domain_options.rb +240 -0
- data/lib/mailslurp_client/models/lookup_spf_domain_results.rb +305 -0
- data/lib/mailslurp_client/models/missed_email_projection.rb +28 -28
- data/lib/mailslurp_client/models/missed_sms_projection.rb +32 -32
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +18 -18
- data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_ai_transform_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_alias.rb +19 -19
- data/lib/mailslurp_client/models/page_alias_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_complaint.rb +19 -19
- data/lib/mailslurp_client/models/page_connector.rb +19 -19
- data/lib/mailslurp_client/models/page_connector_events.rb +19 -19
- data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_delivery_status.rb +19 -19
- data/lib/mailslurp_client/models/page_device_preview_run_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
- data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_event_items.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +19 -19
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_guest_portal_users.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_tags.rb +19 -19
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_number_release_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_reputation_items.rb +19 -19
- data/lib/mailslurp_client/models/page_ruleset_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
- data/lib/mailslurp_client/models/pageable_object.rb +22 -22
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +18 -18
- data/lib/mailslurp_client/models/phone_number_dto.rb +49 -4
- data/lib/mailslurp_client/models/phone_number_line_type_intelligence_dto.rb +242 -0
- data/lib/mailslurp_client/models/phone_number_line_type_lookup_dto.rb +286 -0
- data/lib/mailslurp_client/models/phone_number_projection.rb +80 -35
- data/lib/mailslurp_client/models/phone_number_release_projection.rb +39 -39
- data/lib/mailslurp_client/models/phone_pool_detail_dto.rb +334 -0
- data/lib/mailslurp_client/models/phone_pool_dto.rb +318 -0
- data/lib/mailslurp_client/models/phone_pool_lease_dto.rb +351 -0
- data/lib/mailslurp_client/models/phone_pool_member_dto.rb +333 -0
- data/lib/mailslurp_client/models/phone_provider_capabilities_result.rb +284 -0
- data/lib/mailslurp_client/models/phone_provisioning_job_dto.rb +434 -0
- data/lib/mailslurp_client/models/phone_provisioning_job_item_dto.rb +336 -0
- data/lib/mailslurp_client/models/phone_sms_prepaid_credit_dto.rb +340 -0
- data/lib/mailslurp_client/models/phone_sms_prepaid_credits_dto.rb +241 -0
- data/lib/mailslurp_client/models/plus_address_projection.rb +27 -27
- data/lib/mailslurp_client/models/recipient_projection.rb +13 -13
- data/lib/mailslurp_client/models/reputation_item_projection.rb +41 -41
- data/lib/mailslurp_client/models/search_available_phone_numbers_options.rb +377 -0
- data/lib/mailslurp_client/models/sender_projection.rb +13 -13
- data/lib/mailslurp_client/models/sent_email_projection.rb +63 -63
- data/lib/mailslurp_client/models/sent_sms_projection.rb +18 -18
- data/lib/mailslurp_client/models/sms_projection.rb +18 -18
- data/lib/mailslurp_client/models/smtp_auth_diagnostic_result.rb +235 -0
- data/lib/mailslurp_client/models/smtp_diagnostic_step.rb +236 -0
- data/lib/mailslurp_client/models/smtp_tls_diagnostic_result.rb +245 -0
- data/lib/mailslurp_client/models/sort_object.rb +10 -10
- data/lib/mailslurp_client/models/spf_mechanism_result.rb +229 -0
- data/lib/mailslurp_client/models/template_projection.rb +41 -41
- data/lib/mailslurp_client/models/test_smtp_server_options.rb +337 -0
- data/lib/mailslurp_client/models/test_smtp_server_results.rb +297 -0
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +27 -27
- data/lib/mailslurp_client/models/update_phone_pool_options.rb +215 -0
- data/lib/mailslurp_client/models/validation_dto.rb +1 -5
- data/lib/mailslurp_client/models/webhook_projection.rb +45 -45
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +67 -0
- metadata +69 -2
|
@@ -14,18 +14,24 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
class SentEmailProjection
|
|
17
|
+
attr_accessor :id
|
|
18
|
+
|
|
19
|
+
attr_accessor :thread_id
|
|
20
|
+
|
|
21
|
+
attr_accessor :from
|
|
22
|
+
|
|
17
23
|
attr_accessor :subject
|
|
18
24
|
|
|
19
|
-
attr_accessor :
|
|
25
|
+
attr_accessor :sender
|
|
20
26
|
|
|
21
|
-
attr_accessor :
|
|
27
|
+
attr_accessor :recipients
|
|
22
28
|
|
|
23
29
|
attr_accessor :user_id
|
|
24
30
|
|
|
25
|
-
attr_accessor :attachments
|
|
26
|
-
|
|
27
31
|
attr_accessor :inbox_id
|
|
28
32
|
|
|
33
|
+
attr_accessor :attachments
|
|
34
|
+
|
|
29
35
|
attr_accessor :created_at
|
|
30
36
|
|
|
31
37
|
attr_accessor :to
|
|
@@ -34,11 +40,7 @@ module MailSlurpClient
|
|
|
34
40
|
|
|
35
41
|
attr_accessor :bcc
|
|
36
42
|
|
|
37
|
-
attr_accessor :
|
|
38
|
-
|
|
39
|
-
attr_accessor :sender
|
|
40
|
-
|
|
41
|
-
attr_accessor :recipients
|
|
43
|
+
attr_accessor :message_id
|
|
42
44
|
|
|
43
45
|
attr_accessor :in_reply_to
|
|
44
46
|
|
|
@@ -50,72 +52,70 @@ module MailSlurpClient
|
|
|
50
52
|
|
|
51
53
|
attr_accessor :body_md5_hash
|
|
52
54
|
|
|
53
|
-
attr_accessor :thread_id
|
|
54
|
-
|
|
55
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
56
56
|
def self.attribute_map
|
|
57
57
|
{
|
|
58
|
-
:'subject' => :'subject',
|
|
59
58
|
:'id' => :'id',
|
|
60
|
-
:'
|
|
59
|
+
:'thread_id' => :'threadId',
|
|
60
|
+
:'from' => :'from',
|
|
61
|
+
:'subject' => :'subject',
|
|
62
|
+
:'sender' => :'sender',
|
|
63
|
+
:'recipients' => :'recipients',
|
|
61
64
|
:'user_id' => :'userId',
|
|
62
|
-
:'attachments' => :'attachments',
|
|
63
65
|
:'inbox_id' => :'inboxId',
|
|
66
|
+
:'attachments' => :'attachments',
|
|
64
67
|
:'created_at' => :'createdAt',
|
|
65
68
|
:'to' => :'to',
|
|
66
69
|
:'cc' => :'cc',
|
|
67
70
|
:'bcc' => :'bcc',
|
|
68
|
-
:'
|
|
69
|
-
:'sender' => :'sender',
|
|
70
|
-
:'recipients' => :'recipients',
|
|
71
|
+
:'message_id' => :'messageId',
|
|
71
72
|
:'in_reply_to' => :'inReplyTo',
|
|
72
73
|
:'virtual_send' => :'virtualSend',
|
|
73
74
|
:'body_excerpt' => :'bodyExcerpt',
|
|
74
75
|
:'text_excerpt' => :'textExcerpt',
|
|
75
|
-
:'body_md5_hash' => :'bodyMD5Hash'
|
|
76
|
-
:'thread_id' => :'threadId'
|
|
76
|
+
:'body_md5_hash' => :'bodyMD5Hash'
|
|
77
77
|
}
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
# Attribute type mapping.
|
|
81
81
|
def self.openapi_types
|
|
82
82
|
{
|
|
83
|
-
:'subject' => :'String',
|
|
84
83
|
:'id' => :'String',
|
|
85
|
-
:'
|
|
84
|
+
:'thread_id' => :'String',
|
|
85
|
+
:'from' => :'String',
|
|
86
|
+
:'subject' => :'String',
|
|
87
|
+
:'sender' => :'Sender',
|
|
88
|
+
:'recipients' => :'EmailRecipients',
|
|
86
89
|
:'user_id' => :'String',
|
|
87
|
-
:'attachments' => :'Array<String>',
|
|
88
90
|
:'inbox_id' => :'String',
|
|
91
|
+
:'attachments' => :'Array<String>',
|
|
89
92
|
:'created_at' => :'DateTime',
|
|
90
93
|
:'to' => :'Array<String>',
|
|
91
94
|
:'cc' => :'Array<String>',
|
|
92
95
|
:'bcc' => :'Array<String>',
|
|
93
|
-
:'
|
|
94
|
-
:'sender' => :'Sender',
|
|
95
|
-
:'recipients' => :'EmailRecipients',
|
|
96
|
+
:'message_id' => :'String',
|
|
96
97
|
:'in_reply_to' => :'String',
|
|
97
98
|
:'virtual_send' => :'Boolean',
|
|
98
99
|
:'body_excerpt' => :'String',
|
|
99
100
|
:'text_excerpt' => :'String',
|
|
100
|
-
:'body_md5_hash' => :'String'
|
|
101
|
-
:'thread_id' => :'String'
|
|
101
|
+
:'body_md5_hash' => :'String'
|
|
102
102
|
}
|
|
103
103
|
end
|
|
104
104
|
|
|
105
105
|
# List of attributes with nullable: true
|
|
106
106
|
def self.openapi_nullable
|
|
107
107
|
Set.new([
|
|
108
|
-
:'
|
|
109
|
-
:'message_id',
|
|
110
|
-
:'attachments',
|
|
108
|
+
:'thread_id',
|
|
111
109
|
:'from',
|
|
110
|
+
:'subject',
|
|
112
111
|
:'sender',
|
|
113
112
|
:'recipients',
|
|
113
|
+
:'attachments',
|
|
114
|
+
:'message_id',
|
|
114
115
|
:'in_reply_to',
|
|
115
116
|
:'body_excerpt',
|
|
116
117
|
:'text_excerpt',
|
|
117
|
-
:'body_md5_hash'
|
|
118
|
-
:'thread_id'
|
|
118
|
+
:'body_md5_hash'
|
|
119
119
|
])
|
|
120
120
|
end
|
|
121
121
|
|
|
@@ -134,32 +134,44 @@ module MailSlurpClient
|
|
|
134
134
|
h[k.to_sym] = v
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
if attributes.key?(:'id')
|
|
138
|
+
self.id = attributes[:'id']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'thread_id')
|
|
142
|
+
self.thread_id = attributes[:'thread_id']
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'from')
|
|
146
|
+
self.from = attributes[:'from']
|
|
147
|
+
end
|
|
148
|
+
|
|
137
149
|
if attributes.key?(:'subject')
|
|
138
150
|
self.subject = attributes[:'subject']
|
|
139
151
|
end
|
|
140
152
|
|
|
141
|
-
if attributes.key?(:'
|
|
142
|
-
self.
|
|
153
|
+
if attributes.key?(:'sender')
|
|
154
|
+
self.sender = attributes[:'sender']
|
|
143
155
|
end
|
|
144
156
|
|
|
145
|
-
if attributes.key?(:'
|
|
146
|
-
self.
|
|
157
|
+
if attributes.key?(:'recipients')
|
|
158
|
+
self.recipients = attributes[:'recipients']
|
|
147
159
|
end
|
|
148
160
|
|
|
149
161
|
if attributes.key?(:'user_id')
|
|
150
162
|
self.user_id = attributes[:'user_id']
|
|
151
163
|
end
|
|
152
164
|
|
|
165
|
+
if attributes.key?(:'inbox_id')
|
|
166
|
+
self.inbox_id = attributes[:'inbox_id']
|
|
167
|
+
end
|
|
168
|
+
|
|
153
169
|
if attributes.key?(:'attachments')
|
|
154
170
|
if (value = attributes[:'attachments']).is_a?(Array)
|
|
155
171
|
self.attachments = value
|
|
156
172
|
end
|
|
157
173
|
end
|
|
158
174
|
|
|
159
|
-
if attributes.key?(:'inbox_id')
|
|
160
|
-
self.inbox_id = attributes[:'inbox_id']
|
|
161
|
-
end
|
|
162
|
-
|
|
163
175
|
if attributes.key?(:'created_at')
|
|
164
176
|
self.created_at = attributes[:'created_at']
|
|
165
177
|
end
|
|
@@ -182,16 +194,8 @@ module MailSlurpClient
|
|
|
182
194
|
end
|
|
183
195
|
end
|
|
184
196
|
|
|
185
|
-
if attributes.key?(:'
|
|
186
|
-
self.
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
if attributes.key?(:'sender')
|
|
190
|
-
self.sender = attributes[:'sender']
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
if attributes.key?(:'recipients')
|
|
194
|
-
self.recipients = attributes[:'recipients']
|
|
197
|
+
if attributes.key?(:'message_id')
|
|
198
|
+
self.message_id = attributes[:'message_id']
|
|
195
199
|
end
|
|
196
200
|
|
|
197
201
|
if attributes.key?(:'in_reply_to')
|
|
@@ -213,10 +217,6 @@ module MailSlurpClient
|
|
|
213
217
|
if attributes.key?(:'body_md5_hash')
|
|
214
218
|
self.body_md5_hash = attributes[:'body_md5_hash']
|
|
215
219
|
end
|
|
216
|
-
|
|
217
|
-
if attributes.key?(:'thread_id')
|
|
218
|
-
self.thread_id = attributes[:'thread_id']
|
|
219
|
-
end
|
|
220
220
|
end
|
|
221
221
|
|
|
222
222
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -262,25 +262,25 @@ module MailSlurpClient
|
|
|
262
262
|
def ==(o)
|
|
263
263
|
return true if self.equal?(o)
|
|
264
264
|
self.class == o.class &&
|
|
265
|
-
subject == o.subject &&
|
|
266
265
|
id == o.id &&
|
|
267
|
-
|
|
266
|
+
thread_id == o.thread_id &&
|
|
267
|
+
from == o.from &&
|
|
268
|
+
subject == o.subject &&
|
|
269
|
+
sender == o.sender &&
|
|
270
|
+
recipients == o.recipients &&
|
|
268
271
|
user_id == o.user_id &&
|
|
269
|
-
attachments == o.attachments &&
|
|
270
272
|
inbox_id == o.inbox_id &&
|
|
273
|
+
attachments == o.attachments &&
|
|
271
274
|
created_at == o.created_at &&
|
|
272
275
|
to == o.to &&
|
|
273
276
|
cc == o.cc &&
|
|
274
277
|
bcc == o.bcc &&
|
|
275
|
-
|
|
276
|
-
sender == o.sender &&
|
|
277
|
-
recipients == o.recipients &&
|
|
278
|
+
message_id == o.message_id &&
|
|
278
279
|
in_reply_to == o.in_reply_to &&
|
|
279
280
|
virtual_send == o.virtual_send &&
|
|
280
281
|
body_excerpt == o.body_excerpt &&
|
|
281
282
|
text_excerpt == o.text_excerpt &&
|
|
282
|
-
body_md5_hash == o.body_md5_hash
|
|
283
|
-
thread_id == o.thread_id
|
|
283
|
+
body_md5_hash == o.body_md5_hash
|
|
284
284
|
end
|
|
285
285
|
|
|
286
286
|
# @see the `==` method
|
|
@@ -292,7 +292,7 @@ module MailSlurpClient
|
|
|
292
292
|
# Calculates hash code according to all attributes.
|
|
293
293
|
# @return [Integer] Hash code
|
|
294
294
|
def hash
|
|
295
|
-
[subject,
|
|
295
|
+
[id, thread_id, from, subject, sender, recipients, user_id, inbox_id, attachments, created_at, to, cc, bcc, message_id, in_reply_to, virtual_send, body_excerpt, text_excerpt, body_md5_hash].hash
|
|
296
296
|
end
|
|
297
297
|
|
|
298
298
|
# Builds the object from hash
|
|
@@ -15,6 +15,8 @@ require 'date'
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
# Sent SMS projection
|
|
17
17
|
class SentSmsProjection
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
18
20
|
attr_accessor :body
|
|
19
21
|
|
|
20
22
|
attr_accessor :user_id
|
|
@@ -29,33 +31,31 @@ module MailSlurpClient
|
|
|
29
31
|
|
|
30
32
|
attr_accessor :reply_to_id
|
|
31
33
|
|
|
32
|
-
attr_accessor :id
|
|
33
|
-
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
35
|
def self.attribute_map
|
|
36
36
|
{
|
|
37
|
+
:'id' => :'id',
|
|
37
38
|
:'body' => :'body',
|
|
38
39
|
:'user_id' => :'userId',
|
|
39
40
|
:'created_at' => :'createdAt',
|
|
40
41
|
:'phone_number' => :'phoneNumber',
|
|
41
42
|
:'from_number' => :'fromNumber',
|
|
42
43
|
:'to_number' => :'toNumber',
|
|
43
|
-
:'reply_to_id' => :'replyToId'
|
|
44
|
-
:'id' => :'id'
|
|
44
|
+
:'reply_to_id' => :'replyToId'
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
# Attribute type mapping.
|
|
49
49
|
def self.openapi_types
|
|
50
50
|
{
|
|
51
|
+
:'id' => :'String',
|
|
51
52
|
:'body' => :'String',
|
|
52
53
|
:'user_id' => :'String',
|
|
53
54
|
:'created_at' => :'DateTime',
|
|
54
55
|
:'phone_number' => :'String',
|
|
55
56
|
:'from_number' => :'String',
|
|
56
57
|
:'to_number' => :'String',
|
|
57
|
-
:'reply_to_id' => :'String'
|
|
58
|
-
:'id' => :'String'
|
|
58
|
+
:'reply_to_id' => :'String'
|
|
59
59
|
}
|
|
60
60
|
end
|
|
61
61
|
|
|
@@ -80,6 +80,10 @@ module MailSlurpClient
|
|
|
80
80
|
h[k.to_sym] = v
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
if attributes.key?(:'id')
|
|
84
|
+
self.id = attributes[:'id']
|
|
85
|
+
end
|
|
86
|
+
|
|
83
87
|
if attributes.key?(:'body')
|
|
84
88
|
self.body = attributes[:'body']
|
|
85
89
|
end
|
|
@@ -107,16 +111,16 @@ module MailSlurpClient
|
|
|
107
111
|
if attributes.key?(:'reply_to_id')
|
|
108
112
|
self.reply_to_id = attributes[:'reply_to_id']
|
|
109
113
|
end
|
|
110
|
-
|
|
111
|
-
if attributes.key?(:'id')
|
|
112
|
-
self.id = attributes[:'id']
|
|
113
|
-
end
|
|
114
114
|
end
|
|
115
115
|
|
|
116
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
117
117
|
# @return Array for valid properties with the reasons
|
|
118
118
|
def list_invalid_properties
|
|
119
119
|
invalid_properties = Array.new
|
|
120
|
+
if @id.nil?
|
|
121
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
122
|
+
end
|
|
123
|
+
|
|
120
124
|
if @body.nil?
|
|
121
125
|
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
|
122
126
|
end
|
|
@@ -141,23 +145,19 @@ module MailSlurpClient
|
|
|
141
145
|
invalid_properties.push('invalid value for "to_number", to_number cannot be nil.')
|
|
142
146
|
end
|
|
143
147
|
|
|
144
|
-
if @id.nil?
|
|
145
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
146
|
-
end
|
|
147
|
-
|
|
148
148
|
invalid_properties
|
|
149
149
|
end
|
|
150
150
|
|
|
151
151
|
# Check to see if the all the properties in the model are valid
|
|
152
152
|
# @return true if the model is valid
|
|
153
153
|
def valid?
|
|
154
|
+
return false if @id.nil?
|
|
154
155
|
return false if @body.nil?
|
|
155
156
|
return false if @user_id.nil?
|
|
156
157
|
return false if @created_at.nil?
|
|
157
158
|
return false if @phone_number.nil?
|
|
158
159
|
return false if @from_number.nil?
|
|
159
160
|
return false if @to_number.nil?
|
|
160
|
-
return false if @id.nil?
|
|
161
161
|
true
|
|
162
162
|
end
|
|
163
163
|
|
|
@@ -166,14 +166,14 @@ module MailSlurpClient
|
|
|
166
166
|
def ==(o)
|
|
167
167
|
return true if self.equal?(o)
|
|
168
168
|
self.class == o.class &&
|
|
169
|
+
id == o.id &&
|
|
169
170
|
body == o.body &&
|
|
170
171
|
user_id == o.user_id &&
|
|
171
172
|
created_at == o.created_at &&
|
|
172
173
|
phone_number == o.phone_number &&
|
|
173
174
|
from_number == o.from_number &&
|
|
174
175
|
to_number == o.to_number &&
|
|
175
|
-
reply_to_id == o.reply_to_id
|
|
176
|
-
id == o.id
|
|
176
|
+
reply_to_id == o.reply_to_id
|
|
177
177
|
end
|
|
178
178
|
|
|
179
179
|
# @see the `==` method
|
|
@@ -185,7 +185,7 @@ module MailSlurpClient
|
|
|
185
185
|
# Calculates hash code according to all attributes.
|
|
186
186
|
# @return [Integer] Hash code
|
|
187
187
|
def hash
|
|
188
|
-
[body, user_id, created_at, phone_number, from_number, to_number, reply_to_id
|
|
188
|
+
[id, body, user_id, created_at, phone_number, from_number, to_number, reply_to_id].hash
|
|
189
189
|
end
|
|
190
190
|
|
|
191
191
|
# Builds the object from hash
|
|
@@ -15,6 +15,8 @@ require 'date'
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
# SMS projection
|
|
17
17
|
class SmsProjection
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
18
20
|
attr_accessor :body
|
|
19
21
|
|
|
20
22
|
attr_accessor :user_id
|
|
@@ -27,31 +29,29 @@ module MailSlurpClient
|
|
|
27
29
|
|
|
28
30
|
attr_accessor :read
|
|
29
31
|
|
|
30
|
-
attr_accessor :id
|
|
31
|
-
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
|
+
:'id' => :'id',
|
|
35
36
|
:'body' => :'body',
|
|
36
37
|
:'user_id' => :'userId',
|
|
37
38
|
:'created_at' => :'createdAt',
|
|
38
39
|
:'phone_number' => :'phoneNumber',
|
|
39
40
|
:'from_number' => :'fromNumber',
|
|
40
|
-
:'read' => :'read'
|
|
41
|
-
:'id' => :'id'
|
|
41
|
+
:'read' => :'read'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
# Attribute type mapping.
|
|
46
46
|
def self.openapi_types
|
|
47
47
|
{
|
|
48
|
+
:'id' => :'String',
|
|
48
49
|
:'body' => :'String',
|
|
49
50
|
:'user_id' => :'String',
|
|
50
51
|
:'created_at' => :'DateTime',
|
|
51
52
|
:'phone_number' => :'String',
|
|
52
53
|
:'from_number' => :'String',
|
|
53
|
-
:'read' => :'Boolean'
|
|
54
|
-
:'id' => :'String'
|
|
54
|
+
:'read' => :'Boolean'
|
|
55
55
|
}
|
|
56
56
|
end
|
|
57
57
|
|
|
@@ -76,6 +76,10 @@ module MailSlurpClient
|
|
|
76
76
|
h[k.to_sym] = v
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
if attributes.key?(:'id')
|
|
80
|
+
self.id = attributes[:'id']
|
|
81
|
+
end
|
|
82
|
+
|
|
79
83
|
if attributes.key?(:'body')
|
|
80
84
|
self.body = attributes[:'body']
|
|
81
85
|
end
|
|
@@ -99,16 +103,16 @@ module MailSlurpClient
|
|
|
99
103
|
if attributes.key?(:'read')
|
|
100
104
|
self.read = attributes[:'read']
|
|
101
105
|
end
|
|
102
|
-
|
|
103
|
-
if attributes.key?(:'id')
|
|
104
|
-
self.id = attributes[:'id']
|
|
105
|
-
end
|
|
106
106
|
end
|
|
107
107
|
|
|
108
108
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
109
109
|
# @return Array for valid properties with the reasons
|
|
110
110
|
def list_invalid_properties
|
|
111
111
|
invalid_properties = Array.new
|
|
112
|
+
if @id.nil?
|
|
113
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
114
|
+
end
|
|
115
|
+
|
|
112
116
|
if @body.nil?
|
|
113
117
|
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
|
114
118
|
end
|
|
@@ -133,23 +137,19 @@ module MailSlurpClient
|
|
|
133
137
|
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
|
134
138
|
end
|
|
135
139
|
|
|
136
|
-
if @id.nil?
|
|
137
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
138
|
-
end
|
|
139
|
-
|
|
140
140
|
invalid_properties
|
|
141
141
|
end
|
|
142
142
|
|
|
143
143
|
# Check to see if the all the properties in the model are valid
|
|
144
144
|
# @return true if the model is valid
|
|
145
145
|
def valid?
|
|
146
|
+
return false if @id.nil?
|
|
146
147
|
return false if @body.nil?
|
|
147
148
|
return false if @user_id.nil?
|
|
148
149
|
return false if @created_at.nil?
|
|
149
150
|
return false if @phone_number.nil?
|
|
150
151
|
return false if @from_number.nil?
|
|
151
152
|
return false if @read.nil?
|
|
152
|
-
return false if @id.nil?
|
|
153
153
|
true
|
|
154
154
|
end
|
|
155
155
|
|
|
@@ -158,13 +158,13 @@ module MailSlurpClient
|
|
|
158
158
|
def ==(o)
|
|
159
159
|
return true if self.equal?(o)
|
|
160
160
|
self.class == o.class &&
|
|
161
|
+
id == o.id &&
|
|
161
162
|
body == o.body &&
|
|
162
163
|
user_id == o.user_id &&
|
|
163
164
|
created_at == o.created_at &&
|
|
164
165
|
phone_number == o.phone_number &&
|
|
165
166
|
from_number == o.from_number &&
|
|
166
|
-
read == o.read
|
|
167
|
-
id == o.id
|
|
167
|
+
read == o.read
|
|
168
168
|
end
|
|
169
169
|
|
|
170
170
|
# @see the `==` method
|
|
@@ -176,7 +176,7 @@ module MailSlurpClient
|
|
|
176
176
|
# Calculates hash code according to all attributes.
|
|
177
177
|
# @return [Integer] Hash code
|
|
178
178
|
def hash
|
|
179
|
-
[body, user_id, created_at, phone_number, from_number, read
|
|
179
|
+
[id, body, user_id, created_at, phone_number, from_number, read].hash
|
|
180
180
|
end
|
|
181
181
|
|
|
182
182
|
# Builds the object from hash
|