mailslurp_client 17.2.0 → 17.4.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/attachment_controller_api.rb +5 -5
- 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 +126 -2
- data/lib/mailslurp_client/api/email_verification_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +233 -4
- data/lib/mailslurp_client/api/phone_controller_api.rb +2091 -526
- 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 +18 -18
- 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 +36 -36
- 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 +66 -66
- 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 +24 -24
- 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 +65 -65
- data/lib/mailslurp_client/models/connector_projection.rb +36 -36
- data/lib/mailslurp_client/models/contact_projection.rb +29 -29
- data/lib/mailslurp_client/models/create_email_audit_options.rb +394 -0
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +58 -29
- data/lib/mailslurp_client/models/create_inbox_replier_options.rb +39 -33
- data/lib/mailslurp_client/models/create_phone_number_options.rb +58 -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_intelligence_list_result.rb +285 -0
- data/lib/mailslurp_client/models/email_intelligence_options.rb +308 -0
- data/lib/mailslurp_client/models/email_intelligence_result_dto.rb +256 -0
- data/lib/mailslurp_client/models/email_intelligence_score_breakdown_dto.rb +296 -0
- data/lib/mailslurp_client/models/email_intelligence_signals_dto.rb +352 -0
- data/lib/mailslurp_client/models/email_intelligence_tests_options.rb +253 -0
- data/lib/mailslurp_client/models/email_projection.rb +88 -88
- data/lib/mailslurp_client/models/email_thread_projection.rb +57 -57
- 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 +32 -32
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +18 -18
- data/lib/mailslurp_client/models/extract_attachment_text_options.rb +1 -1
- data/lib/mailslurp_client/models/extract_attachment_text_result.rb +1 -1
- 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 +19 -19
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +41 -41
- data/lib/mailslurp_client/models/imap_email_projection.rb +18 -18
- data/lib/mailslurp_client/models/import_email_options.rb +269 -0
- data/lib/mailslurp_client/models/inbox_automation_match_option.rb +308 -0
- data/lib/mailslurp_client/models/inbox_automation_match_options.rb +273 -0
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +65 -17
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +36 -36
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +17 -9
- data/lib/mailslurp_client/models/inbox_replier_dto.rb +41 -16
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +48 -48
- data/lib/mailslurp_client/models/inline_object.rb +12 -58
- data/lib/mailslurp_client/models/inline_object1.rb +58 -12
- data/lib/mailslurp_client/models/inline_object2.rb +211 -0
- 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 +15 -15
- data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_ai_transform_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_alias.rb +36 -36
- data/lib/mailslurp_client/models/page_alias_thread_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_attachment_entity.rb +36 -36
- data/lib/mailslurp_client/models/page_bounced_email.rb +36 -36
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +36 -36
- data/lib/mailslurp_client/models/page_complaint.rb +36 -36
- data/lib/mailslurp_client/models/page_connector.rb +36 -36
- data/lib/mailslurp_client/models/page_connector_events.rb +36 -36
- data/lib/mailslurp_client/models/page_contact_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_delivery_status.rb +36 -36
- data/lib/mailslurp_client/models/page_device_preview_run_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_email_preview.rb +36 -36
- data/lib/mailslurp_client/models/page_email_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_email_thread_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_email_validation_request.rb +36 -36
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +36 -36
- data/lib/mailslurp_client/models/page_entity_event_items.rb +36 -36
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +36 -36
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_group_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_guest_portal_users.rb +36 -36
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +36 -36
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +36 -36
- data/lib/mailslurp_client/models/page_inbox_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +36 -36
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +36 -36
- data/lib/mailslurp_client/models/page_inbox_tags.rb +36 -36
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +36 -36
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_missed_sms_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_phone_number_release_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_reputation_items.rb +36 -36
- data/lib/mailslurp_client/models/page_ruleset_dto.rb +36 -36
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +36 -36
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_sent_sms_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_sms_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_template_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_webhook_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_webhook_result.rb +36 -36
- data/lib/mailslurp_client/models/pageable_object.rb +28 -28
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +32 -32
- data/lib/mailslurp_client/models/phone_number_dto.rb +65 -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_number_tags_options.rb +213 -0
- 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 +53 -53
- 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 +32 -32
- 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_inbox_replier_options.rb +39 -33
- 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 +50 -50
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +78 -0
- metadata +80 -2
|
@@ -15,9 +15,11 @@ require 'date'
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
# Representation of a guest portal user
|
|
17
17
|
class GuestPortalUserProjection
|
|
18
|
-
attr_accessor :
|
|
18
|
+
attr_accessor :name
|
|
19
19
|
|
|
20
|
-
attr_accessor :
|
|
20
|
+
attr_accessor :id
|
|
21
|
+
|
|
22
|
+
attr_accessor :username
|
|
21
23
|
|
|
22
24
|
attr_accessor :user_id
|
|
23
25
|
|
|
@@ -25,41 +27,39 @@ module MailSlurpClient
|
|
|
25
27
|
|
|
26
28
|
attr_accessor :inbox_id
|
|
27
29
|
|
|
30
|
+
attr_accessor :updated_at
|
|
31
|
+
|
|
28
32
|
attr_accessor :created_at
|
|
29
33
|
|
|
30
34
|
attr_accessor :portal_id
|
|
31
35
|
|
|
32
|
-
attr_accessor :name
|
|
33
|
-
|
|
34
|
-
attr_accessor :id
|
|
35
|
-
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
39
|
+
:'name' => :'name',
|
|
40
|
+
:'id' => :'id',
|
|
39
41
|
:'username' => :'username',
|
|
40
|
-
:'updated_at' => :'updatedAt',
|
|
41
42
|
:'user_id' => :'userId',
|
|
42
43
|
:'email_address' => :'emailAddress',
|
|
43
44
|
:'inbox_id' => :'inboxId',
|
|
45
|
+
:'updated_at' => :'updatedAt',
|
|
44
46
|
:'created_at' => :'createdAt',
|
|
45
|
-
:'portal_id' => :'portalId'
|
|
46
|
-
:'name' => :'name',
|
|
47
|
-
:'id' => :'id'
|
|
47
|
+
:'portal_id' => :'portalId'
|
|
48
48
|
}
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
# Attribute type mapping.
|
|
52
52
|
def self.openapi_types
|
|
53
53
|
{
|
|
54
|
+
:'name' => :'String',
|
|
55
|
+
:'id' => :'String',
|
|
54
56
|
:'username' => :'String',
|
|
55
|
-
:'updated_at' => :'DateTime',
|
|
56
57
|
:'user_id' => :'String',
|
|
57
58
|
:'email_address' => :'String',
|
|
58
59
|
:'inbox_id' => :'String',
|
|
60
|
+
:'updated_at' => :'DateTime',
|
|
59
61
|
:'created_at' => :'DateTime',
|
|
60
|
-
:'portal_id' => :'String'
|
|
61
|
-
:'name' => :'String',
|
|
62
|
-
:'id' => :'String'
|
|
62
|
+
:'portal_id' => :'String'
|
|
63
63
|
}
|
|
64
64
|
end
|
|
65
65
|
|
|
@@ -84,12 +84,16 @@ module MailSlurpClient
|
|
|
84
84
|
h[k.to_sym] = v
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
if attributes.key?(:'
|
|
88
|
-
self.
|
|
87
|
+
if attributes.key?(:'name')
|
|
88
|
+
self.name = attributes[:'name']
|
|
89
89
|
end
|
|
90
90
|
|
|
91
|
-
if attributes.key?(:'
|
|
92
|
-
self.
|
|
91
|
+
if attributes.key?(:'id')
|
|
92
|
+
self.id = attributes[:'id']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'username')
|
|
96
|
+
self.username = attributes[:'username']
|
|
93
97
|
end
|
|
94
98
|
|
|
95
99
|
if attributes.key?(:'user_id')
|
|
@@ -104,6 +108,10 @@ module MailSlurpClient
|
|
|
104
108
|
self.inbox_id = attributes[:'inbox_id']
|
|
105
109
|
end
|
|
106
110
|
|
|
111
|
+
if attributes.key?(:'updated_at')
|
|
112
|
+
self.updated_at = attributes[:'updated_at']
|
|
113
|
+
end
|
|
114
|
+
|
|
107
115
|
if attributes.key?(:'created_at')
|
|
108
116
|
self.created_at = attributes[:'created_at']
|
|
109
117
|
end
|
|
@@ -111,32 +119,28 @@ module MailSlurpClient
|
|
|
111
119
|
if attributes.key?(:'portal_id')
|
|
112
120
|
self.portal_id = attributes[:'portal_id']
|
|
113
121
|
end
|
|
114
|
-
|
|
115
|
-
if attributes.key?(:'name')
|
|
116
|
-
self.name = attributes[:'name']
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
if attributes.key?(:'id')
|
|
120
|
-
self.id = attributes[:'id']
|
|
121
|
-
end
|
|
122
122
|
end
|
|
123
123
|
|
|
124
124
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
125
125
|
# @return Array for valid properties with the reasons
|
|
126
126
|
def list_invalid_properties
|
|
127
127
|
invalid_properties = Array.new
|
|
128
|
-
if @
|
|
129
|
-
invalid_properties.push('invalid value for "
|
|
128
|
+
if @id.nil?
|
|
129
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
130
130
|
end
|
|
131
131
|
|
|
132
|
-
if @
|
|
133
|
-
invalid_properties.push('invalid value for "
|
|
132
|
+
if @username.nil?
|
|
133
|
+
invalid_properties.push('invalid value for "username", username cannot be nil.')
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
if @user_id.nil?
|
|
137
137
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
+
if @updated_at.nil?
|
|
141
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
142
|
+
end
|
|
143
|
+
|
|
140
144
|
if @created_at.nil?
|
|
141
145
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
142
146
|
end
|
|
@@ -145,22 +149,18 @@ module MailSlurpClient
|
|
|
145
149
|
invalid_properties.push('invalid value for "portal_id", portal_id cannot be nil.')
|
|
146
150
|
end
|
|
147
151
|
|
|
148
|
-
if @id.nil?
|
|
149
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
150
|
-
end
|
|
151
|
-
|
|
152
152
|
invalid_properties
|
|
153
153
|
end
|
|
154
154
|
|
|
155
155
|
# Check to see if the all the properties in the model are valid
|
|
156
156
|
# @return true if the model is valid
|
|
157
157
|
def valid?
|
|
158
|
+
return false if @id.nil?
|
|
158
159
|
return false if @username.nil?
|
|
159
|
-
return false if @updated_at.nil?
|
|
160
160
|
return false if @user_id.nil?
|
|
161
|
+
return false if @updated_at.nil?
|
|
161
162
|
return false if @created_at.nil?
|
|
162
163
|
return false if @portal_id.nil?
|
|
163
|
-
return false if @id.nil?
|
|
164
164
|
true
|
|
165
165
|
end
|
|
166
166
|
|
|
@@ -169,15 +169,15 @@ module MailSlurpClient
|
|
|
169
169
|
def ==(o)
|
|
170
170
|
return true if self.equal?(o)
|
|
171
171
|
self.class == o.class &&
|
|
172
|
+
name == o.name &&
|
|
173
|
+
id == o.id &&
|
|
172
174
|
username == o.username &&
|
|
173
|
-
updated_at == o.updated_at &&
|
|
174
175
|
user_id == o.user_id &&
|
|
175
176
|
email_address == o.email_address &&
|
|
176
177
|
inbox_id == o.inbox_id &&
|
|
178
|
+
updated_at == o.updated_at &&
|
|
177
179
|
created_at == o.created_at &&
|
|
178
|
-
portal_id == o.portal_id
|
|
179
|
-
name == o.name &&
|
|
180
|
-
id == o.id
|
|
180
|
+
portal_id == o.portal_id
|
|
181
181
|
end
|
|
182
182
|
|
|
183
183
|
# @see the `==` method
|
|
@@ -189,7 +189,7 @@ module MailSlurpClient
|
|
|
189
189
|
# Calculates hash code according to all attributes.
|
|
190
190
|
# @return [Integer] Hash code
|
|
191
191
|
def hash
|
|
192
|
-
[
|
|
192
|
+
[name, id, username, user_id, email_address, inbox_id, updated_at, created_at, portal_id].hash
|
|
193
193
|
end
|
|
194
194
|
|
|
195
195
|
# Builds the object from hash
|
|
@@ -14,6 +14,8 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
class ImapEmailProjection
|
|
17
|
+
attr_accessor :id
|
|
18
|
+
|
|
17
19
|
attr_accessor :created_at
|
|
18
20
|
|
|
19
21
|
attr_accessor :read
|
|
@@ -22,27 +24,25 @@ module MailSlurpClient
|
|
|
22
24
|
|
|
23
25
|
attr_accessor :seq_num
|
|
24
26
|
|
|
25
|
-
attr_accessor :id
|
|
26
|
-
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
28
|
def self.attribute_map
|
|
29
29
|
{
|
|
30
|
+
:'id' => :'id',
|
|
30
31
|
:'created_at' => :'createdAt',
|
|
31
32
|
:'read' => :'read',
|
|
32
33
|
:'uid' => :'uid',
|
|
33
|
-
:'seq_num' => :'seqNum'
|
|
34
|
-
:'id' => :'id'
|
|
34
|
+
:'seq_num' => :'seqNum'
|
|
35
35
|
}
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
# Attribute type mapping.
|
|
39
39
|
def self.openapi_types
|
|
40
40
|
{
|
|
41
|
+
:'id' => :'String',
|
|
41
42
|
:'created_at' => :'DateTime',
|
|
42
43
|
:'read' => :'Boolean',
|
|
43
44
|
:'uid' => :'Integer',
|
|
44
|
-
:'seq_num' => :'Integer'
|
|
45
|
-
:'id' => :'String'
|
|
45
|
+
:'seq_num' => :'Integer'
|
|
46
46
|
}
|
|
47
47
|
end
|
|
48
48
|
|
|
@@ -68,6 +68,10 @@ module MailSlurpClient
|
|
|
68
68
|
h[k.to_sym] = v
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
if attributes.key?(:'id')
|
|
72
|
+
self.id = attributes[:'id']
|
|
73
|
+
end
|
|
74
|
+
|
|
71
75
|
if attributes.key?(:'created_at')
|
|
72
76
|
self.created_at = attributes[:'created_at']
|
|
73
77
|
end
|
|
@@ -83,16 +87,16 @@ module MailSlurpClient
|
|
|
83
87
|
if attributes.key?(:'seq_num')
|
|
84
88
|
self.seq_num = attributes[:'seq_num']
|
|
85
89
|
end
|
|
86
|
-
|
|
87
|
-
if attributes.key?(:'id')
|
|
88
|
-
self.id = attributes[:'id']
|
|
89
|
-
end
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
93
93
|
# @return Array for valid properties with the reasons
|
|
94
94
|
def list_invalid_properties
|
|
95
95
|
invalid_properties = Array.new
|
|
96
|
+
if @id.nil?
|
|
97
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
98
|
+
end
|
|
99
|
+
|
|
96
100
|
if @created_at.nil?
|
|
97
101
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
98
102
|
end
|
|
@@ -105,20 +109,16 @@ module MailSlurpClient
|
|
|
105
109
|
invalid_properties.push('invalid value for "seq_num", seq_num cannot be nil.')
|
|
106
110
|
end
|
|
107
111
|
|
|
108
|
-
if @id.nil?
|
|
109
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
110
|
-
end
|
|
111
|
-
|
|
112
112
|
invalid_properties
|
|
113
113
|
end
|
|
114
114
|
|
|
115
115
|
# Check to see if the all the properties in the model are valid
|
|
116
116
|
# @return true if the model is valid
|
|
117
117
|
def valid?
|
|
118
|
+
return false if @id.nil?
|
|
118
119
|
return false if @created_at.nil?
|
|
119
120
|
return false if @uid.nil?
|
|
120
121
|
return false if @seq_num.nil?
|
|
121
|
-
return false if @id.nil?
|
|
122
122
|
true
|
|
123
123
|
end
|
|
124
124
|
|
|
@@ -127,11 +127,11 @@ module MailSlurpClient
|
|
|
127
127
|
def ==(o)
|
|
128
128
|
return true if self.equal?(o)
|
|
129
129
|
self.class == o.class &&
|
|
130
|
+
id == o.id &&
|
|
130
131
|
created_at == o.created_at &&
|
|
131
132
|
read == o.read &&
|
|
132
133
|
uid == o.uid &&
|
|
133
|
-
seq_num == o.seq_num
|
|
134
|
-
id == o.id
|
|
134
|
+
seq_num == o.seq_num
|
|
135
135
|
end
|
|
136
136
|
|
|
137
137
|
# @see the `==` method
|
|
@@ -143,7 +143,7 @@ module MailSlurpClient
|
|
|
143
143
|
# Calculates hash code according to all attributes.
|
|
144
144
|
# @return [Integer] Hash code
|
|
145
145
|
def hash
|
|
146
|
-
[created_at, read, uid, seq_num
|
|
146
|
+
[id, created_at, read, uid, seq_num].hash
|
|
147
147
|
end
|
|
148
148
|
|
|
149
149
|
# Builds the object from hash
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#MailSlurp API
|
|
3
|
+
|
|
4
|
+
#MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. 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://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 6.5.2
|
|
7
|
+
Contact: contact@mailslurp.dev
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.3.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module MailSlurpClient
|
|
16
|
+
# Options for importing a raw RFC822/MIME email into a specific inbox. V1 supports MIME-family formats such as `.eml`, `message/rfc822`, and raw MIME bytes. Outlook `.msg`, `mbox`, and `maildir` are not supported in V1.
|
|
17
|
+
class ImportEmailOptions
|
|
18
|
+
# Base64 encoded RFC822/MIME email contents. This should be the full raw email including headers and body, such as the bytes from an `.eml` file.
|
|
19
|
+
attr_accessor :raw_email_base64
|
|
20
|
+
|
|
21
|
+
# Optional external identifier for the imported email source. Useful for correlating imports back to another system.
|
|
22
|
+
attr_accessor :external_id
|
|
23
|
+
|
|
24
|
+
# When true the normal inbound receive pipeline runs after persistence, including automations, webhooks, transformers, forwarders, repliers, and related fanout. When false the email is stored only.
|
|
25
|
+
attr_accessor :run_pipeline
|
|
26
|
+
|
|
27
|
+
# When true MailSlurp rewrites the MIME `Message-ID` header before storing and parsing the email so imported messages do not collide with existing message identities.
|
|
28
|
+
attr_accessor :override_message_id
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'raw_email_base64' => :'rawEmailBase64',
|
|
34
|
+
:'external_id' => :'externalId',
|
|
35
|
+
:'run_pipeline' => :'runPipeline',
|
|
36
|
+
:'override_message_id' => :'overrideMessageId'
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Attribute type mapping.
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'raw_email_base64' => :'String',
|
|
44
|
+
:'external_id' => :'String',
|
|
45
|
+
:'run_pipeline' => :'Boolean',
|
|
46
|
+
:'override_message_id' => :'Boolean'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# List of attributes with nullable: true
|
|
51
|
+
def self.openapi_nullable
|
|
52
|
+
Set.new([
|
|
53
|
+
:'external_id',
|
|
54
|
+
:'run_pipeline',
|
|
55
|
+
:'override_message_id'
|
|
56
|
+
])
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Initializes the object
|
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
61
|
+
def initialize(attributes = {})
|
|
62
|
+
if (!attributes.is_a?(Hash))
|
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::ImportEmailOptions` initialize method"
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::ImportEmailOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
70
|
+
end
|
|
71
|
+
h[k.to_sym] = v
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'raw_email_base64')
|
|
75
|
+
self.raw_email_base64 = attributes[:'raw_email_base64']
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'external_id')
|
|
79
|
+
self.external_id = attributes[:'external_id']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'run_pipeline')
|
|
83
|
+
self.run_pipeline = attributes[:'run_pipeline']
|
|
84
|
+
else
|
|
85
|
+
self.run_pipeline = false
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'override_message_id')
|
|
89
|
+
self.override_message_id = attributes[:'override_message_id']
|
|
90
|
+
else
|
|
91
|
+
self.override_message_id = true
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
96
|
+
# @return Array for valid properties with the reasons
|
|
97
|
+
def list_invalid_properties
|
|
98
|
+
invalid_properties = Array.new
|
|
99
|
+
if @raw_email_base64.nil?
|
|
100
|
+
invalid_properties.push('invalid value for "raw_email_base64", raw_email_base64 cannot be nil.')
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if @raw_email_base64.to_s.length < 1
|
|
104
|
+
invalid_properties.push('invalid value for "raw_email_base64", the character length must be great than or equal to 1.')
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
invalid_properties
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Check to see if the all the properties in the model are valid
|
|
111
|
+
# @return true if the model is valid
|
|
112
|
+
def valid?
|
|
113
|
+
return false if @raw_email_base64.nil?
|
|
114
|
+
return false if @raw_email_base64.to_s.length < 1
|
|
115
|
+
true
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Custom attribute writer method with validation
|
|
119
|
+
# @param [Object] raw_email_base64 Value to be assigned
|
|
120
|
+
def raw_email_base64=(raw_email_base64)
|
|
121
|
+
if raw_email_base64.nil?
|
|
122
|
+
fail ArgumentError, 'raw_email_base64 cannot be nil'
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if raw_email_base64.to_s.length < 1
|
|
126
|
+
fail ArgumentError, 'invalid value for "raw_email_base64", the character length must be great than or equal to 1.'
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
@raw_email_base64 = raw_email_base64
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Checks equality by comparing each attribute.
|
|
133
|
+
# @param [Object] Object to be compared
|
|
134
|
+
def ==(o)
|
|
135
|
+
return true if self.equal?(o)
|
|
136
|
+
self.class == o.class &&
|
|
137
|
+
raw_email_base64 == o.raw_email_base64 &&
|
|
138
|
+
external_id == o.external_id &&
|
|
139
|
+
run_pipeline == o.run_pipeline &&
|
|
140
|
+
override_message_id == o.override_message_id
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# @see the `==` method
|
|
144
|
+
# @param [Object] Object to be compared
|
|
145
|
+
def eql?(o)
|
|
146
|
+
self == o
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Calculates hash code according to all attributes.
|
|
150
|
+
# @return [Integer] Hash code
|
|
151
|
+
def hash
|
|
152
|
+
[raw_email_base64, external_id, run_pipeline, override_message_id].hash
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Builds the object from hash
|
|
156
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
157
|
+
# @return [Object] Returns the model itself
|
|
158
|
+
def self.build_from_hash(attributes)
|
|
159
|
+
new.build_from_hash(attributes)
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Builds the object from hash
|
|
163
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
164
|
+
# @return [Object] Returns the model itself
|
|
165
|
+
def build_from_hash(attributes)
|
|
166
|
+
return nil unless attributes.is_a?(Hash)
|
|
167
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
168
|
+
if type =~ /\AArray<(.*)>/i
|
|
169
|
+
# check to ensure the input is an array given that the attribute
|
|
170
|
+
# is documented as an array but the input is not
|
|
171
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
172
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
173
|
+
end
|
|
174
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
175
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
176
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
self
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Deserializes the data based on type
|
|
183
|
+
# @param string type Data type
|
|
184
|
+
# @param string value Value to be deserialized
|
|
185
|
+
# @return [Object] Deserialized data
|
|
186
|
+
def _deserialize(type, value)
|
|
187
|
+
case type.to_sym
|
|
188
|
+
when :DateTime
|
|
189
|
+
DateTime.parse(value)
|
|
190
|
+
when :Date
|
|
191
|
+
Date.parse(value)
|
|
192
|
+
when :String
|
|
193
|
+
value.to_s
|
|
194
|
+
when :Integer
|
|
195
|
+
value.to_i
|
|
196
|
+
when :Float
|
|
197
|
+
value.to_f
|
|
198
|
+
when :Boolean
|
|
199
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
200
|
+
true
|
|
201
|
+
else
|
|
202
|
+
false
|
|
203
|
+
end
|
|
204
|
+
when :Object
|
|
205
|
+
# generic object (usually a Hash), return directly
|
|
206
|
+
value
|
|
207
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
208
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
209
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
210
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
211
|
+
k_type = Regexp.last_match[:k_type]
|
|
212
|
+
v_type = Regexp.last_match[:v_type]
|
|
213
|
+
{}.tap do |hash|
|
|
214
|
+
value.each do |k, v|
|
|
215
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
else # model
|
|
219
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Returns the string representation of the object
|
|
224
|
+
# @return [String] String presentation of the object
|
|
225
|
+
def to_s
|
|
226
|
+
to_hash.to_s
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
230
|
+
# @return [Hash] Returns the object in the form of hash
|
|
231
|
+
def to_body
|
|
232
|
+
to_hash
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Returns the object in the form of hash
|
|
236
|
+
# @return [Hash] Returns the object in the form of hash
|
|
237
|
+
def to_hash
|
|
238
|
+
hash = {}
|
|
239
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
240
|
+
value = self.send(attr)
|
|
241
|
+
if value.nil?
|
|
242
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
243
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
hash[param] = _to_hash(value)
|
|
247
|
+
end
|
|
248
|
+
hash
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# Outputs non-array value in the form of hash
|
|
252
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
253
|
+
# @param [Object] value Any valid value
|
|
254
|
+
# @return [Hash] Returns the value in the form of hash
|
|
255
|
+
def _to_hash(value)
|
|
256
|
+
if value.is_a?(Array)
|
|
257
|
+
value.compact.map { |v| _to_hash(v) }
|
|
258
|
+
elsif value.is_a?(Hash)
|
|
259
|
+
{}.tap do |hash|
|
|
260
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
261
|
+
end
|
|
262
|
+
elsif value.respond_to? :to_hash
|
|
263
|
+
value.to_hash
|
|
264
|
+
else
|
|
265
|
+
value
|
|
266
|
+
end
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
end
|