mailslurp_client 17.1.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/api_audit_log_controller_api.rb +237 -0
- data/lib/mailslurp_client/api/attachment_controller_api.rb +66 -0
- data/lib/mailslurp_client/api/bounce_controller_api.rb +126 -0
- data/lib/mailslurp_client/api/campaign_probe_controller_api.rb +802 -0
- data/lib/mailslurp_client/api/deliverability_test_controller_api.rb +1496 -0
- data/lib/mailslurp_client/api/device_previews_controller_api.rb +1012 -0
- data/lib/mailslurp_client/api/domain_controller_api.rb +63 -0
- data/lib/mailslurp_client/api/domain_monitor_controller_api.rb +1112 -0
- data/lib/mailslurp_client/api/email_audit_controller_api.rb +334 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +394 -138
- data/lib/mailslurp_client/api/inbox_controller_api.rb +144 -4
- data/lib/mailslurp_client/api/missed_sms_controller_api.rb +221 -0
- data/lib/mailslurp_client/api/phone_controller_api.rb +1314 -83
- data/lib/mailslurp_client/api/sms_controller_api.rb +191 -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 +39 -39
- data/lib/mailslurp_client/models/ai_transform_projection.rb +28 -28
- data/lib/mailslurp_client/models/alias_projection.rb +48 -48
- data/lib/mailslurp_client/models/alias_thread_projection.rb +44 -44
- 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/audit_log_event_dto.rb +343 -0
- data/lib/mailslurp_client/models/audit_log_page_dto.rb +222 -0
- data/lib/mailslurp_client/models/audit_log_search_options.rb +323 -0
- 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 +14 -14
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
- data/lib/mailslurp_client/models/campaign_probe_dto.rb +411 -0
- data/lib/mailslurp_client/models/campaign_probe_insights_dto.rb +408 -0
- data/lib/mailslurp_client/models/campaign_probe_run_comparison_dto.rb +397 -0
- data/lib/mailslurp_client/models/campaign_probe_run_dto.rb +644 -0
- data/lib/mailslurp_client/models/campaign_probe_run_due_result.rb +315 -0
- data/lib/mailslurp_client/models/campaign_probe_run_now_result.rb +225 -0
- data/lib/mailslurp_client/models/campaign_probe_series_dto.rb +303 -0
- data/lib/mailslurp_client/models/campaign_probe_series_point_dto.rb +295 -0
- data/lib/mailslurp_client/models/cancel_device_preview_run_options.rb +206 -0
- data/lib/mailslurp_client/models/cancel_device_preview_run_result.rb +248 -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/code_candidate.rb +303 -0
- data/lib/mailslurp_client/models/connector_event_projection.rb +33 -33
- data/lib/mailslurp_client/models/connector_projection.rb +42 -42
- data/lib/mailslurp_client/models/contact_projection.rb +24 -24
- data/lib/mailslurp_client/models/create_campaign_probe_options.rb +290 -0
- data/lib/mailslurp_client/models/create_campaign_probe_run_options.rb +264 -0
- data/lib/mailslurp_client/models/create_deliverability_simulation_job_options.rb +345 -0
- data/lib/mailslurp_client/models/create_deliverability_test_options.rb +372 -0
- data/lib/mailslurp_client/models/create_device_preview_feedback_options.rb +405 -0
- data/lib/mailslurp_client/models/create_device_preview_options.rb +241 -0
- data/lib/mailslurp_client/models/create_device_preview_run_result.rb +225 -0
- data/lib/mailslurp_client/models/create_domain_monitor_alert_sink_options.rb +308 -0
- data/lib/mailslurp_client/models/create_domain_monitor_options.rb +299 -0
- 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/delete_device_preview_run_result.rb +253 -0
- data/lib/mailslurp_client/models/delete_result.rb +245 -0
- data/lib/mailslurp_client/models/deliverability_analytics_run_dto.rb +426 -0
- data/lib/mailslurp_client/models/deliverability_analytics_series_dto.rb +342 -0
- data/lib/mailslurp_client/models/deliverability_analytics_series_point_dto.rb +240 -0
- data/lib/mailslurp_client/models/deliverability_analytics_summary_dto.rb +380 -0
- data/lib/mailslurp_client/models/deliverability_entity_result_dto.rb +360 -0
- data/lib/mailslurp_client/models/deliverability_entity_result_page_dto.rb +318 -0
- data/lib/mailslurp_client/models/deliverability_expectation.rb +276 -0
- data/lib/mailslurp_client/models/deliverability_expectation_result_dto.rb +294 -0
- data/lib/mailslurp_client/models/deliverability_failure_entity_hotspot_dto.rb +360 -0
- data/lib/mailslurp_client/models/deliverability_failure_hotspots_dto.rb +302 -0
- data/lib/mailslurp_client/models/deliverability_failure_phone_dimension_hotspot_dto.rb +306 -0
- data/lib/mailslurp_client/models/deliverability_poll_status_result_dto.rb +250 -0
- data/lib/mailslurp_client/models/deliverability_selector_options.rb +307 -0
- data/lib/mailslurp_client/models/deliverability_simulation_email_options.rb +231 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_config_dto.rb +300 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_dto.rb +494 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_error_summary_dto.rb +224 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_event_dto.rb +344 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_event_page_dto.rb +284 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_top_error_dto.rb +226 -0
- data/lib/mailslurp_client/models/deliverability_simulation_sms_options.rb +209 -0
- data/lib/mailslurp_client/models/deliverability_test_dto.rb +558 -0
- data/lib/mailslurp_client/models/deliverability_test_page_dto.rb +270 -0
- data/lib/mailslurp_client/models/device_preview_feedback_dto.rb +456 -0
- data/lib/mailslurp_client/models/device_preview_feedback_list_dto.rb +255 -0
- data/lib/mailslurp_client/models/device_preview_provider_progress_dto.rb +387 -0
- data/lib/mailslurp_client/models/device_preview_run_dto.rb +382 -0
- data/lib/mailslurp_client/models/device_preview_run_results_dto.rb +243 -0
- data/lib/mailslurp_client/models/device_preview_screenshot_dto.rb +389 -0
- data/lib/mailslurp_client/models/device_preview_target_dto.rb +368 -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_alert_sink_dto.rb +369 -0
- data/lib/mailslurp_client/models/domain_monitor_dto.rb +383 -0
- data/lib/mailslurp_client/models/domain_monitor_insights_dto.rb +422 -0
- data/lib/mailslurp_client/models/domain_monitor_run_comparison_dto.rb +369 -0
- data/lib/mailslurp_client/models/domain_monitor_run_dto.rb +492 -0
- data/lib/mailslurp_client/models/domain_monitor_run_due_result.rb +287 -0
- data/lib/mailslurp_client/models/domain_monitor_run_now_result.rb +225 -0
- data/lib/mailslurp_client/models/domain_monitor_series_dto.rb +303 -0
- data/lib/mailslurp_client/models/domain_monitor_series_point_dto.rb +309 -0
- data/lib/mailslurp_client/models/domain_monitor_summary_dto.rb +248 -0
- data/lib/mailslurp_client/models/domain_region_group.rb +261 -0
- data/lib/mailslurp_client/models/domain_region_groups_dto.rb +214 -0
- data/lib/mailslurp_client/models/domain_region_information.rb +338 -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 +66 -66
- data/lib/mailslurp_client/models/email_signature.rb +254 -0
- data/lib/mailslurp_client/models/email_signature_parse_result.rb +223 -0
- data/lib/mailslurp_client/models/email_thread_projection.rb +78 -78
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +27 -27
- data/lib/mailslurp_client/models/entity_event_item_projection.rb +45 -45
- 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/extract_attachment_text_options.rb +268 -0
- data/lib/mailslurp_client/models/extract_attachment_text_result.rb +297 -0
- data/lib/mailslurp_client/models/extract_codes_options.rb +304 -0
- data/lib/mailslurp_client/models/extract_codes_result.rb +303 -0
- 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 +50 -50
- data/lib/mailslurp_client/models/imap_email_projection.rb +18 -18
- data/lib/mailslurp_client/models/inbox_dto.rb +2 -2
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +21 -21
- data/lib/mailslurp_client/models/inbox_preview.rb +2 -2
- 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_dto.rb +320 -0
- data/lib/mailslurp_client/models/missed_sms_projection.rb +282 -0
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +24 -24
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +2 -2
- 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 +309 -0
- 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 +309 -0
- 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 +81 -36
- 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 +32 -32
- 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/search_inboxes_options.rb +1 -1
- data/lib/mailslurp_client/models/sender_projection.rb +13 -13
- data/lib/mailslurp_client/models/sent_email_projection.rb +50 -50
- 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/tenant_reputation_finding_dto.rb +322 -0
- data/lib/mailslurp_client/models/tenant_reputation_findings_dto.rb +241 -0
- data/lib/mailslurp_client/models/tenant_reputation_status_row_dto.rb +372 -0
- data/lib/mailslurp_client/models/tenant_reputation_status_summary_dto.rb +241 -0
- 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_campaign_probe_options.rb +290 -0
- data/lib/mailslurp_client/models/update_deliverability_test_options.rb +327 -0
- data/lib/mailslurp_client/models/update_device_preview_feedback_options.rb +314 -0
- data/lib/mailslurp_client/models/update_domain_monitor_options.rb +266 -0
- 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 +39 -39
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +156 -0
- metadata +158 -2
|
@@ -0,0 +1,377 @@
|
|
|
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
|
+
# Search criteria for advanced phone provisioning
|
|
17
|
+
class SearchAvailablePhoneNumbersOptions
|
|
18
|
+
attr_accessor :phone_country
|
|
19
|
+
|
|
20
|
+
attr_accessor :phone_variant
|
|
21
|
+
|
|
22
|
+
# Quality filter for advanced phone provisioning search
|
|
23
|
+
attr_accessor :quality_filter
|
|
24
|
+
|
|
25
|
+
attr_accessor :line_type
|
|
26
|
+
|
|
27
|
+
attr_accessor :carrier_name
|
|
28
|
+
|
|
29
|
+
attr_accessor :mobile_country_code
|
|
30
|
+
|
|
31
|
+
attr_accessor :mobile_network_code
|
|
32
|
+
|
|
33
|
+
attr_accessor :provider_labels
|
|
34
|
+
|
|
35
|
+
attr_accessor :limit
|
|
36
|
+
|
|
37
|
+
class EnumAttributeValidator
|
|
38
|
+
attr_reader :datatype
|
|
39
|
+
attr_reader :allowable_values
|
|
40
|
+
|
|
41
|
+
def initialize(datatype, allowable_values)
|
|
42
|
+
@allowable_values = allowable_values.map do |value|
|
|
43
|
+
case datatype.to_s
|
|
44
|
+
when /Integer/i
|
|
45
|
+
value.to_i
|
|
46
|
+
when /Float/i
|
|
47
|
+
value.to_f
|
|
48
|
+
else
|
|
49
|
+
value
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def valid?(value)
|
|
55
|
+
!value || allowable_values.include?(value)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
60
|
+
def self.attribute_map
|
|
61
|
+
{
|
|
62
|
+
:'phone_country' => :'phoneCountry',
|
|
63
|
+
:'phone_variant' => :'phoneVariant',
|
|
64
|
+
:'quality_filter' => :'qualityFilter',
|
|
65
|
+
:'line_type' => :'lineType',
|
|
66
|
+
:'carrier_name' => :'carrierName',
|
|
67
|
+
:'mobile_country_code' => :'mobileCountryCode',
|
|
68
|
+
:'mobile_network_code' => :'mobileNetworkCode',
|
|
69
|
+
:'provider_labels' => :'providerLabels',
|
|
70
|
+
:'limit' => :'limit'
|
|
71
|
+
}
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Attribute type mapping.
|
|
75
|
+
def self.openapi_types
|
|
76
|
+
{
|
|
77
|
+
:'phone_country' => :'String',
|
|
78
|
+
:'phone_variant' => :'String',
|
|
79
|
+
:'quality_filter' => :'String',
|
|
80
|
+
:'line_type' => :'String',
|
|
81
|
+
:'carrier_name' => :'String',
|
|
82
|
+
:'mobile_country_code' => :'String',
|
|
83
|
+
:'mobile_network_code' => :'String',
|
|
84
|
+
:'provider_labels' => :'Array<String>',
|
|
85
|
+
:'limit' => :'Integer'
|
|
86
|
+
}
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# List of attributes with nullable: true
|
|
90
|
+
def self.openapi_nullable
|
|
91
|
+
Set.new([
|
|
92
|
+
:'phone_variant',
|
|
93
|
+
:'quality_filter',
|
|
94
|
+
:'line_type',
|
|
95
|
+
:'carrier_name',
|
|
96
|
+
:'mobile_country_code',
|
|
97
|
+
:'mobile_network_code',
|
|
98
|
+
:'provider_labels',
|
|
99
|
+
:'limit'
|
|
100
|
+
])
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Initializes the object
|
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
105
|
+
def initialize(attributes = {})
|
|
106
|
+
if (!attributes.is_a?(Hash))
|
|
107
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::SearchAvailablePhoneNumbersOptions` initialize method"
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
111
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
112
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
113
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::SearchAvailablePhoneNumbersOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
114
|
+
end
|
|
115
|
+
h[k.to_sym] = v
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'phone_country')
|
|
119
|
+
self.phone_country = attributes[:'phone_country']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'phone_variant')
|
|
123
|
+
self.phone_variant = attributes[:'phone_variant']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'quality_filter')
|
|
127
|
+
self.quality_filter = attributes[:'quality_filter']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'line_type')
|
|
131
|
+
self.line_type = attributes[:'line_type']
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.key?(:'carrier_name')
|
|
135
|
+
self.carrier_name = attributes[:'carrier_name']
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'mobile_country_code')
|
|
139
|
+
self.mobile_country_code = attributes[:'mobile_country_code']
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if attributes.key?(:'mobile_network_code')
|
|
143
|
+
self.mobile_network_code = attributes[:'mobile_network_code']
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if attributes.key?(:'provider_labels')
|
|
147
|
+
if (value = attributes[:'provider_labels']).is_a?(Array)
|
|
148
|
+
self.provider_labels = value
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
if attributes.key?(:'limit')
|
|
153
|
+
self.limit = attributes[:'limit']
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
158
|
+
# @return Array for valid properties with the reasons
|
|
159
|
+
def list_invalid_properties
|
|
160
|
+
invalid_properties = Array.new
|
|
161
|
+
if @phone_country.nil?
|
|
162
|
+
invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if !@limit.nil? && @limit > 100
|
|
166
|
+
invalid_properties.push('invalid value for "limit", must be smaller than or equal to 100.')
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
if !@limit.nil? && @limit < 1
|
|
170
|
+
invalid_properties.push('invalid value for "limit", must be greater than or equal to 1.')
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
invalid_properties
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Check to see if the all the properties in the model are valid
|
|
177
|
+
# @return true if the model is valid
|
|
178
|
+
def valid?
|
|
179
|
+
return false if @phone_country.nil?
|
|
180
|
+
phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU", "CA", "EE", "HK", "PL", "PT", "NL", "IL", "FI", "SE"])
|
|
181
|
+
return false unless phone_country_validator.valid?(@phone_country)
|
|
182
|
+
phone_variant_validator = EnumAttributeValidator.new('String', ["LOCAL", "MOBILE", "TOLL_FREE"])
|
|
183
|
+
return false unless phone_variant_validator.valid?(@phone_variant)
|
|
184
|
+
quality_filter_validator = EnumAttributeValidator.new('String', ["OTP", "NON_VOIP", "MOBILE_ONLY", "ANY"])
|
|
185
|
+
return false unless quality_filter_validator.valid?(@quality_filter)
|
|
186
|
+
return false if !@limit.nil? && @limit > 100
|
|
187
|
+
return false if !@limit.nil? && @limit < 1
|
|
188
|
+
true
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
192
|
+
# @param [Object] phone_country Object to be assigned
|
|
193
|
+
def phone_country=(phone_country)
|
|
194
|
+
validator = EnumAttributeValidator.new('String', ["US", "GB", "AU", "CA", "EE", "HK", "PL", "PT", "NL", "IL", "FI", "SE"])
|
|
195
|
+
unless validator.valid?(phone_country)
|
|
196
|
+
fail ArgumentError, "invalid value for \"phone_country\", must be one of #{validator.allowable_values}."
|
|
197
|
+
end
|
|
198
|
+
@phone_country = phone_country
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
202
|
+
# @param [Object] phone_variant Object to be assigned
|
|
203
|
+
def phone_variant=(phone_variant)
|
|
204
|
+
validator = EnumAttributeValidator.new('String', ["LOCAL", "MOBILE", "TOLL_FREE"])
|
|
205
|
+
unless validator.valid?(phone_variant)
|
|
206
|
+
fail ArgumentError, "invalid value for \"phone_variant\", must be one of #{validator.allowable_values}."
|
|
207
|
+
end
|
|
208
|
+
@phone_variant = phone_variant
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
212
|
+
# @param [Object] quality_filter Object to be assigned
|
|
213
|
+
def quality_filter=(quality_filter)
|
|
214
|
+
validator = EnumAttributeValidator.new('String', ["OTP", "NON_VOIP", "MOBILE_ONLY", "ANY"])
|
|
215
|
+
unless validator.valid?(quality_filter)
|
|
216
|
+
fail ArgumentError, "invalid value for \"quality_filter\", must be one of #{validator.allowable_values}."
|
|
217
|
+
end
|
|
218
|
+
@quality_filter = quality_filter
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Custom attribute writer method with validation
|
|
222
|
+
# @param [Object] limit Value to be assigned
|
|
223
|
+
def limit=(limit)
|
|
224
|
+
if !limit.nil? && limit > 100
|
|
225
|
+
fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 100.'
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
if !limit.nil? && limit < 1
|
|
229
|
+
fail ArgumentError, 'invalid value for "limit", must be greater than or equal to 1.'
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
@limit = limit
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Checks equality by comparing each attribute.
|
|
236
|
+
# @param [Object] Object to be compared
|
|
237
|
+
def ==(o)
|
|
238
|
+
return true if self.equal?(o)
|
|
239
|
+
self.class == o.class &&
|
|
240
|
+
phone_country == o.phone_country &&
|
|
241
|
+
phone_variant == o.phone_variant &&
|
|
242
|
+
quality_filter == o.quality_filter &&
|
|
243
|
+
line_type == o.line_type &&
|
|
244
|
+
carrier_name == o.carrier_name &&
|
|
245
|
+
mobile_country_code == o.mobile_country_code &&
|
|
246
|
+
mobile_network_code == o.mobile_network_code &&
|
|
247
|
+
provider_labels == o.provider_labels &&
|
|
248
|
+
limit == o.limit
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# @see the `==` method
|
|
252
|
+
# @param [Object] Object to be compared
|
|
253
|
+
def eql?(o)
|
|
254
|
+
self == o
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Calculates hash code according to all attributes.
|
|
258
|
+
# @return [Integer] Hash code
|
|
259
|
+
def hash
|
|
260
|
+
[phone_country, phone_variant, quality_filter, line_type, carrier_name, mobile_country_code, mobile_network_code, provider_labels, limit].hash
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
# Builds the object from hash
|
|
264
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
265
|
+
# @return [Object] Returns the model itself
|
|
266
|
+
def self.build_from_hash(attributes)
|
|
267
|
+
new.build_from_hash(attributes)
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# Builds the object from hash
|
|
271
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
272
|
+
# @return [Object] Returns the model itself
|
|
273
|
+
def build_from_hash(attributes)
|
|
274
|
+
return nil unless attributes.is_a?(Hash)
|
|
275
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
276
|
+
if type =~ /\AArray<(.*)>/i
|
|
277
|
+
# check to ensure the input is an array given that the attribute
|
|
278
|
+
# is documented as an array but the input is not
|
|
279
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
280
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
281
|
+
end
|
|
282
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
283
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
284
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
self
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
# Deserializes the data based on type
|
|
291
|
+
# @param string type Data type
|
|
292
|
+
# @param string value Value to be deserialized
|
|
293
|
+
# @return [Object] Deserialized data
|
|
294
|
+
def _deserialize(type, value)
|
|
295
|
+
case type.to_sym
|
|
296
|
+
when :DateTime
|
|
297
|
+
DateTime.parse(value)
|
|
298
|
+
when :Date
|
|
299
|
+
Date.parse(value)
|
|
300
|
+
when :String
|
|
301
|
+
value.to_s
|
|
302
|
+
when :Integer
|
|
303
|
+
value.to_i
|
|
304
|
+
when :Float
|
|
305
|
+
value.to_f
|
|
306
|
+
when :Boolean
|
|
307
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
308
|
+
true
|
|
309
|
+
else
|
|
310
|
+
false
|
|
311
|
+
end
|
|
312
|
+
when :Object
|
|
313
|
+
# generic object (usually a Hash), return directly
|
|
314
|
+
value
|
|
315
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
316
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
317
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
318
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
319
|
+
k_type = Regexp.last_match[:k_type]
|
|
320
|
+
v_type = Regexp.last_match[:v_type]
|
|
321
|
+
{}.tap do |hash|
|
|
322
|
+
value.each do |k, v|
|
|
323
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
324
|
+
end
|
|
325
|
+
end
|
|
326
|
+
else # model
|
|
327
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
|
328
|
+
end
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
# Returns the string representation of the object
|
|
332
|
+
# @return [String] String presentation of the object
|
|
333
|
+
def to_s
|
|
334
|
+
to_hash.to_s
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
338
|
+
# @return [Hash] Returns the object in the form of hash
|
|
339
|
+
def to_body
|
|
340
|
+
to_hash
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# Returns the object in the form of hash
|
|
344
|
+
# @return [Hash] Returns the object in the form of hash
|
|
345
|
+
def to_hash
|
|
346
|
+
hash = {}
|
|
347
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
348
|
+
value = self.send(attr)
|
|
349
|
+
if value.nil?
|
|
350
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
351
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
hash[param] = _to_hash(value)
|
|
355
|
+
end
|
|
356
|
+
hash
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
# Outputs non-array value in the form of hash
|
|
360
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
361
|
+
# @param [Object] value Any valid value
|
|
362
|
+
# @return [Hash] Returns the value in the form of hash
|
|
363
|
+
def _to_hash(value)
|
|
364
|
+
if value.is_a?(Array)
|
|
365
|
+
value.compact.map { |v| _to_hash(v) }
|
|
366
|
+
elsif value.is_a?(Hash)
|
|
367
|
+
{}.tap do |hash|
|
|
368
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
369
|
+
end
|
|
370
|
+
elsif value.respond_to? :to_hash
|
|
371
|
+
value.to_hash
|
|
372
|
+
else
|
|
373
|
+
value
|
|
374
|
+
end
|
|
375
|
+
end
|
|
376
|
+
end
|
|
377
|
+
end
|
|
@@ -26,7 +26,7 @@ module MailSlurpClient
|
|
|
26
26
|
# Optionally filter results for favourites only
|
|
27
27
|
attr_accessor :favourite
|
|
28
28
|
|
|
29
|
-
# Optionally filter by search words partial matching
|
|
29
|
+
# Optionally filter by search words partial matching name and email address
|
|
30
30
|
attr_accessor :search
|
|
31
31
|
|
|
32
32
|
# Optionally filter by tags. Will return inboxes that include given tags
|
|
@@ -15,27 +15,27 @@ require 'date'
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
# Last sender object
|
|
17
17
|
class SenderProjection
|
|
18
|
+
attr_accessor :name
|
|
19
|
+
|
|
18
20
|
attr_accessor :email_address
|
|
19
21
|
|
|
20
22
|
attr_accessor :raw_value
|
|
21
23
|
|
|
22
|
-
attr_accessor :name
|
|
23
|
-
|
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
25
|
def self.attribute_map
|
|
26
26
|
{
|
|
27
|
+
:'name' => :'name',
|
|
27
28
|
:'email_address' => :'emailAddress',
|
|
28
|
-
:'raw_value' => :'rawValue'
|
|
29
|
-
:'name' => :'name'
|
|
29
|
+
:'raw_value' => :'rawValue'
|
|
30
30
|
}
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
# Attribute type mapping.
|
|
34
34
|
def self.openapi_types
|
|
35
35
|
{
|
|
36
|
+
:'name' => :'String',
|
|
36
37
|
:'email_address' => :'String',
|
|
37
|
-
:'raw_value' => :'String'
|
|
38
|
-
:'name' => :'String'
|
|
38
|
+
:'raw_value' => :'String'
|
|
39
39
|
}
|
|
40
40
|
end
|
|
41
41
|
|
|
@@ -60,6 +60,10 @@ module MailSlurpClient
|
|
|
60
60
|
h[k.to_sym] = v
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
if attributes.key?(:'name')
|
|
64
|
+
self.name = attributes[:'name']
|
|
65
|
+
end
|
|
66
|
+
|
|
63
67
|
if attributes.key?(:'email_address')
|
|
64
68
|
self.email_address = attributes[:'email_address']
|
|
65
69
|
end
|
|
@@ -67,10 +71,6 @@ module MailSlurpClient
|
|
|
67
71
|
if attributes.key?(:'raw_value')
|
|
68
72
|
self.raw_value = attributes[:'raw_value']
|
|
69
73
|
end
|
|
70
|
-
|
|
71
|
-
if attributes.key?(:'name')
|
|
72
|
-
self.name = attributes[:'name']
|
|
73
|
-
end
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -101,9 +101,9 @@ module MailSlurpClient
|
|
|
101
101
|
def ==(o)
|
|
102
102
|
return true if self.equal?(o)
|
|
103
103
|
self.class == o.class &&
|
|
104
|
+
name == o.name &&
|
|
104
105
|
email_address == o.email_address &&
|
|
105
|
-
raw_value == o.raw_value
|
|
106
|
-
name == o.name
|
|
106
|
+
raw_value == o.raw_value
|
|
107
107
|
end
|
|
108
108
|
|
|
109
109
|
# @see the `==` method
|
|
@@ -115,7 +115,7 @@ module MailSlurpClient
|
|
|
115
115
|
# Calculates hash code according to all attributes.
|
|
116
116
|
# @return [Integer] Hash code
|
|
117
117
|
def hash
|
|
118
|
-
[email_address, raw_value
|
|
118
|
+
[name, email_address, raw_value].hash
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
# Builds the object from hash
|
|
@@ -14,22 +14,24 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
class SentEmailProjection
|
|
17
|
-
attr_accessor :subject
|
|
18
|
-
|
|
19
17
|
attr_accessor :id
|
|
20
18
|
|
|
21
|
-
attr_accessor :
|
|
22
|
-
|
|
23
|
-
attr_accessor :inbox_id
|
|
24
|
-
|
|
25
|
-
attr_accessor :attachments
|
|
19
|
+
attr_accessor :thread_id
|
|
26
20
|
|
|
27
21
|
attr_accessor :from
|
|
28
22
|
|
|
23
|
+
attr_accessor :subject
|
|
24
|
+
|
|
29
25
|
attr_accessor :sender
|
|
30
26
|
|
|
31
27
|
attr_accessor :recipients
|
|
32
28
|
|
|
29
|
+
attr_accessor :user_id
|
|
30
|
+
|
|
31
|
+
attr_accessor :inbox_id
|
|
32
|
+
|
|
33
|
+
attr_accessor :attachments
|
|
34
|
+
|
|
33
35
|
attr_accessor :created_at
|
|
34
36
|
|
|
35
37
|
attr_accessor :to
|
|
@@ -50,19 +52,18 @@ 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
|
-
:'
|
|
61
|
-
:'inbox_id' => :'inboxId',
|
|
62
|
-
:'attachments' => :'attachments',
|
|
59
|
+
:'thread_id' => :'threadId',
|
|
63
60
|
:'from' => :'from',
|
|
61
|
+
:'subject' => :'subject',
|
|
64
62
|
:'sender' => :'sender',
|
|
65
63
|
:'recipients' => :'recipients',
|
|
64
|
+
:'user_id' => :'userId',
|
|
65
|
+
:'inbox_id' => :'inboxId',
|
|
66
|
+
:'attachments' => :'attachments',
|
|
66
67
|
:'created_at' => :'createdAt',
|
|
67
68
|
:'to' => :'to',
|
|
68
69
|
:'cc' => :'cc',
|
|
@@ -72,22 +73,22 @@ module MailSlurpClient
|
|
|
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
|
-
:'
|
|
86
|
-
:'inbox_id' => :'String',
|
|
87
|
-
:'attachments' => :'Array<String>',
|
|
84
|
+
:'thread_id' => :'String',
|
|
88
85
|
:'from' => :'String',
|
|
86
|
+
:'subject' => :'String',
|
|
89
87
|
:'sender' => :'Sender',
|
|
90
88
|
:'recipients' => :'EmailRecipients',
|
|
89
|
+
:'user_id' => :'String',
|
|
90
|
+
:'inbox_id' => :'String',
|
|
91
|
+
:'attachments' => :'Array<String>',
|
|
91
92
|
:'created_at' => :'DateTime',
|
|
92
93
|
:'to' => :'Array<String>',
|
|
93
94
|
:'cc' => :'Array<String>',
|
|
@@ -97,25 +98,24 @@ module MailSlurpClient
|
|
|
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
|
-
:'attachments',
|
|
108
|
+
:'thread_id',
|
|
110
109
|
:'from',
|
|
110
|
+
:'subject',
|
|
111
111
|
:'sender',
|
|
112
112
|
:'recipients',
|
|
113
|
+
:'attachments',
|
|
113
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,12 +134,28 @@ 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']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'recipients')
|
|
158
|
+
self.recipients = attributes[:'recipients']
|
|
143
159
|
end
|
|
144
160
|
|
|
145
161
|
if attributes.key?(:'user_id')
|
|
@@ -156,18 +172,6 @@ module MailSlurpClient
|
|
|
156
172
|
end
|
|
157
173
|
end
|
|
158
174
|
|
|
159
|
-
if attributes.key?(:'from')
|
|
160
|
-
self.from = attributes[:'from']
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
if attributes.key?(:'sender')
|
|
164
|
-
self.sender = attributes[:'sender']
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
if attributes.key?(:'recipients')
|
|
168
|
-
self.recipients = attributes[:'recipients']
|
|
169
|
-
end
|
|
170
|
-
|
|
171
175
|
if attributes.key?(:'created_at')
|
|
172
176
|
self.created_at = attributes[:'created_at']
|
|
173
177
|
end
|
|
@@ -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,14 +262,15 @@ 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
|
-
|
|
268
|
-
inbox_id == o.inbox_id &&
|
|
269
|
-
attachments == o.attachments &&
|
|
266
|
+
thread_id == o.thread_id &&
|
|
270
267
|
from == o.from &&
|
|
268
|
+
subject == o.subject &&
|
|
271
269
|
sender == o.sender &&
|
|
272
270
|
recipients == o.recipients &&
|
|
271
|
+
user_id == o.user_id &&
|
|
272
|
+
inbox_id == o.inbox_id &&
|
|
273
|
+
attachments == o.attachments &&
|
|
273
274
|
created_at == o.created_at &&
|
|
274
275
|
to == o.to &&
|
|
275
276
|
cc == o.cc &&
|
|
@@ -279,8 +280,7 @@ module MailSlurpClient
|
|
|
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
|
-
[
|
|
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
|