mailslurp_client 15.19.22 → 15.20.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/LICENSE +1 -1
- data/README.md +1 -1
- data/lib/mailslurp_client/api/alias_controller_api.rb +10 -10
- data/lib/mailslurp_client/api/attachment_controller_api.rb +22 -6
- data/lib/mailslurp_client/api/bounce_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +5 -5
- data/lib/mailslurp_client/api/connector_controller_api.rb +1250 -122
- data/lib/mailslurp_client/api/consent_controller_api.rb +269 -0
- data/lib/mailslurp_client/api/contact_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/domain_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/email_controller_api.rb +471 -12
- data/lib/mailslurp_client/api/email_verification_controller_api.rb +9 -1
- data/lib/mailslurp_client/api/expired_controller_api.rb +4 -1
- data/lib/mailslurp_client/api/export_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/form_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/group_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/guest_portal_controller_api.rb +569 -0
- data/lib/mailslurp_client/api/imap_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/inbox_controller_api.rb +886 -126
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +13 -11
- data/lib/mailslurp_client/api/inbox_replier_controller_api.rb +82 -1
- data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/mail_server_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/missed_email_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/phone_controller_api.rb +675 -1
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/sms_controller_api.rb +494 -44
- data/lib/mailslurp_client/api/sse_controller_api.rb +81 -0
- data/lib/mailslurp_client/api/template_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/tools_controller_api.rb +192 -1
- data/lib/mailslurp_client/api/tracking_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/user_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/webhook_controller_api.rb +274 -12
- data/lib/mailslurp_client/api_client.rb +1 -1
- data/lib/mailslurp_client/api_error.rb +1 -1
- data/lib/mailslurp_client/configuration.rb +1 -1
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +3 -3
- data/lib/mailslurp_client/models/account_bounce_block_dto.rb +16 -2
- data/lib/mailslurp_client/models/alias_dto.rb +1 -1
- data/lib/mailslurp_client/models/alias_projection.rb +20 -20
- data/lib/mailslurp_client/models/{thread_projection.rb → alias_thread_projection.rb} +42 -42
- data/lib/mailslurp_client/models/{attachment_entity.rb → attachment_entity_dto.rb} +26 -14
- data/lib/mailslurp_client/models/attachment_meta_data.rb +1 -1
- data/lib/mailslurp_client/models/attachment_projection.rb +27 -2
- data/lib/mailslurp_client/models/basic_auth_options.rb +1 -1
- data/lib/mailslurp_client/models/bounce_projection.rb +12 -12
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +1 -1
- data/lib/mailslurp_client/models/bounced_email_dto.rb +1 -1
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +1 -1
- data/lib/mailslurp_client/models/bulk_send_email_options.rb +1 -1
- data/lib/mailslurp_client/models/can_send_email_results.rb +1 -1
- data/lib/mailslurp_client/models/check_email_body_feature_support_results.rb +1 -1
- data/lib/mailslurp_client/models/check_email_body_results.rb +1 -1
- data/lib/mailslurp_client/models/check_email_client_support_options.rb +1 -1
- data/lib/mailslurp_client/models/check_email_client_support_results.rb +1 -1
- data/lib/mailslurp_client/models/check_email_features_client_support_options.rb +1 -1
- data/lib/mailslurp_client/models/check_email_features_client_support_results.rb +1 -1
- data/lib/mailslurp_client/models/complaint.rb +1 -1
- data/lib/mailslurp_client/models/condition_option.rb +1 -1
- data/lib/mailslurp_client/models/connector_dto.rb +12 -98
- data/lib/mailslurp_client/models/connector_event_dto.rb +354 -0
- data/lib/mailslurp_client/models/{connector_sync_event_projection.rb → connector_event_projection.rb} +72 -37
- data/lib/mailslurp_client/models/connector_imap_connection_dto.rb +83 -2
- data/lib/mailslurp_client/models/{connector_sync_request_result_exception_cause.rb → connector_imap_connection_test_result.rb} +33 -19
- data/lib/mailslurp_client/models/connector_projection.rb +22 -83
- data/lib/mailslurp_client/models/connector_provider_settings_dto.rb +225 -0
- data/lib/mailslurp_client/models/connector_smtp_connection_dto.rb +96 -2
- data/lib/mailslurp_client/models/{connector_sync_request_result_exception.rb → connector_smtp_connection_test_result.rb} +29 -35
- data/lib/mailslurp_client/models/connector_sync_request_result.rb +2 -2
- data/lib/mailslurp_client/models/connector_sync_result.rb +20 -9
- data/lib/mailslurp_client/models/{connector_sync_event_dto.rb → connector_sync_settings_dto.rb} +50 -53
- data/lib/mailslurp_client/models/consent_status_dto.rb +211 -0
- data/lib/mailslurp_client/models/contact_dto.rb +1 -1
- data/lib/mailslurp_client/models/contact_projection.rb +1 -1
- data/lib/mailslurp_client/models/content_match_options.rb +1 -1
- data/lib/mailslurp_client/models/count_dto.rb +1 -1
- data/lib/mailslurp_client/models/create_alias_options.rb +1 -1
- data/lib/mailslurp_client/models/create_connector_imap_connection_options.rb +93 -7
- data/lib/mailslurp_client/models/create_connector_options.rb +2 -69
- data/lib/mailslurp_client/models/create_connector_smtp_connection_options.rb +94 -5
- data/lib/mailslurp_client/models/create_connector_sync_settings_options.rb +265 -0
- data/lib/mailslurp_client/models/create_connector_with_options.rb +239 -0
- data/lib/mailslurp_client/models/create_contact_options.rb +1 -1
- data/lib/mailslurp_client/models/create_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/create_emergency_address_options.rb +1 -1
- data/lib/mailslurp_client/models/create_group_options.rb +1 -1
- data/lib/mailslurp_client/models/create_inbox_dto.rb +1 -1
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +1 -1
- data/lib/mailslurp_client/models/create_inbox_replier_options.rb +2 -6
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +1 -1
- data/lib/mailslurp_client/models/create_portal_options.rb +233 -0
- data/lib/mailslurp_client/models/create_portal_user_options.rb +251 -0
- data/lib/mailslurp_client/models/create_template_options.rb +1 -1
- data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
- data/lib/mailslurp_client/models/create_webhook_options.rb +21 -8
- data/lib/mailslurp_client/models/delivery_status_dto.rb +1 -1
- data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +1 -1
- data/lib/mailslurp_client/models/dns_lookup_options.rb +1 -1
- data/lib/mailslurp_client/models/dns_lookup_result.rb +1 -1
- data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -1
- data/lib/mailslurp_client/models/dns_lookups_options.rb +1 -1
- data/lib/mailslurp_client/models/domain_dto.rb +1 -1
- data/lib/mailslurp_client/models/domain_group.rb +1 -1
- data/lib/mailslurp_client/models/domain_groups_dto.rb +1 -1
- data/lib/mailslurp_client/models/domain_information.rb +1 -1
- data/lib/mailslurp_client/models/domain_issues_dto.rb +1 -1
- data/lib/mailslurp_client/models/domain_name_record.rb +1 -1
- data/lib/mailslurp_client/models/domain_preview.rb +1 -1
- data/lib/mailslurp_client/models/download_attachment_dto.rb +1 -1
- data/lib/mailslurp_client/models/email.rb +57 -2
- data/lib/mailslurp_client/models/email_analysis.rb +1 -1
- data/lib/mailslurp_client/models/email_available_result.rb +1 -1
- data/lib/mailslurp_client/models/email_content_match_result.rb +1 -1
- data/lib/mailslurp_client/models/email_content_part_result.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_category_name.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_family_name.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_family_statistics.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_names.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_overview.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_platform_name.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_platform_statistics.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_support_flags.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_support_result.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_support_status_percentage.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_version_statistics.rb +1 -1
- data/lib/mailslurp_client/models/email_html_dto.rb +1 -1
- data/lib/mailslurp_client/models/email_links_result.rb +1 -1
- data/lib/mailslurp_client/models/email_preview.rb +102 -6
- data/lib/mailslurp_client/models/email_preview_urls.rb +1 -1
- data/lib/mailslurp_client/models/email_projection.rb +123 -41
- data/lib/mailslurp_client/models/email_recipients.rb +1 -1
- data/lib/mailslurp_client/models/email_recipients_projection.rb +231 -0
- data/lib/mailslurp_client/models/email_screenshot_result.rb +1 -1
- data/lib/mailslurp_client/models/email_text_lines_result.rb +1 -1
- data/lib/mailslurp_client/models/email_thread_dto.rb +348 -0
- data/lib/mailslurp_client/models/email_thread_item.rb +429 -0
- data/lib/mailslurp_client/models/email_thread_items_dto.rb +213 -0
- data/lib/mailslurp_client/models/email_thread_projection.rb +441 -0
- data/lib/mailslurp_client/models/email_validation_request_dto.rb +1 -1
- data/lib/mailslurp_client/models/email_verification_result.rb +1 -1
- data/lib/mailslurp_client/models/emergency_address.rb +6 -1
- data/lib/mailslurp_client/models/emergency_address_dto.rb +1 -1
- data/lib/mailslurp_client/models/empty_response_dto.rb +1 -1
- data/lib/mailslurp_client/models/expiration_defaults.rb +1 -1
- data/lib/mailslurp_client/models/expired_inbox_dto.rb +1 -1
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +16 -16
- data/lib/mailslurp_client/models/export_link.rb +1 -1
- data/lib/mailslurp_client/models/export_options.rb +1 -1
- data/lib/mailslurp_client/models/fake_email_dto.rb +49 -5
- data/lib/mailslurp_client/models/fake_email_preview.rb +16 -2
- data/lib/mailslurp_client/models/fake_email_result.rb +1 -1
- data/lib/mailslurp_client/models/filter_bounced_recipients_options.rb +1 -1
- data/lib/mailslurp_client/models/filter_bounced_recipients_result.rb +1 -1
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +1 -1
- data/lib/mailslurp_client/models/forward_email_options.rb +1 -1
- data/lib/mailslurp_client/models/generate_bimi_record_options.rb +1 -1
- data/lib/mailslurp_client/models/generate_bimi_record_results.rb +1 -1
- data/lib/mailslurp_client/models/generate_dmarc_record_options.rb +1 -1
- data/lib/mailslurp_client/models/generate_dmarc_record_results.rb +1 -1
- data/lib/mailslurp_client/models/generate_mta_sts_record_options.rb +1 -1
- data/lib/mailslurp_client/models/generate_mta_sts_record_results.rb +1 -1
- data/lib/mailslurp_client/models/generate_tls_reporting_record_options.rb +1 -1
- data/lib/mailslurp_client/models/generate_tls_reporting_record_results.rb +1 -1
- data/lib/mailslurp_client/models/get_email_screenshot_options.rb +1 -1
- data/lib/mailslurp_client/models/gravatar_url.rb +1 -1
- data/lib/mailslurp_client/models/group_contacts_dto.rb +1 -1
- data/lib/mailslurp_client/models/group_dto.rb +1 -1
- data/lib/mailslurp_client/models/group_projection.rb +1 -1
- data/lib/mailslurp_client/models/guest_portal_dto.rb +303 -0
- data/lib/mailslurp_client/models/guest_portal_user_create_dto.rb +225 -0
- data/lib/mailslurp_client/models/guest_portal_user_dto.rb +322 -0
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +309 -0
- data/lib/mailslurp_client/models/html_validation_result.rb +1 -1
- data/lib/mailslurp_client/models/image_issue.rb +1 -1
- data/lib/mailslurp_client/models/imap_access_details.rb +1 -1
- data/lib/mailslurp_client/models/imap_email_projection.rb +1 -1
- data/lib/mailslurp_client/models/imap_flag_operation_options.rb +1 -1
- data/lib/mailslurp_client/models/imap_mailbox_status.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_fetch_item.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_fetch_result.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_get_result.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_list_options.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_list_result.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_mailbox_result.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_search_options.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_search_result.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_status_options.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_status_result.rb +1 -1
- data/lib/mailslurp_client/models/imap_smtp_access_details.rb +17 -2
- data/lib/mailslurp_client/models/imap_smtp_access_servers.rb +1 -1
- data/lib/mailslurp_client/models/imap_update_flags_options.rb +1 -1
- data/lib/mailslurp_client/models/inbox_by_email_address_result.rb +1 -1
- data/lib/mailslurp_client/models/inbox_by_name_result.rb +1 -1
- data/lib/mailslurp_client/models/inbox_dto.rb +54 -9
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -1
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +2 -6
- data/lib/mailslurp_client/models/inbox_forwarder_event_dto.rb +12 -2
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +19 -9
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -1
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +1 -1
- data/lib/mailslurp_client/models/inbox_id_item.rb +1 -1
- data/lib/mailslurp_client/models/inbox_ids_result.rb +1 -1
- data/lib/mailslurp_client/models/inbox_preview.rb +54 -9
- data/lib/mailslurp_client/models/inbox_replier_dto.rb +2 -6
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +22 -22
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +1 -1
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -1
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +1 -1
- data/lib/mailslurp_client/models/inline_object.rb +2 -12
- data/lib/mailslurp_client/models/ip_address_result.rb +1 -1
- data/lib/mailslurp_client/models/json_schema_dto.rb +1 -1
- data/lib/mailslurp_client/models/link_issue.rb +1 -1
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +1 -1
- data/lib/mailslurp_client/models/lookup_bimi_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/lookup_bimi_domain_results.rb +1 -1
- data/lib/mailslurp_client/models/lookup_dmarc_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/lookup_dmarc_domain_results.rb +1 -1
- data/lib/mailslurp_client/models/lookup_mta_sts_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/lookup_mta_sts_domain_results.rb +1 -1
- data/lib/mailslurp_client/models/lookup_tls_reporting_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/lookup_tls_reporting_domain_results.rb +1 -1
- data/lib/mailslurp_client/models/match_option.rb +1 -1
- data/lib/mailslurp_client/models/match_options.rb +1 -1
- data/lib/mailslurp_client/models/missed_email_dto.rb +1 -1
- data/lib/mailslurp_client/models/missed_email_projection.rb +12 -12
- data/lib/mailslurp_client/models/name_server_record.rb +1 -1
- data/lib/mailslurp_client/models/new_fake_email_address_result.rb +1 -1
- data/lib/mailslurp_client/models/opt_in_consent_options.rb +229 -0
- data/lib/mailslurp_client/models/opt_in_consent_send_result.rb +211 -0
- data/lib/mailslurp_client/models/{connector_sync_request_result_exception_cause_stack_trace.rb → opt_in_identity_projection.rb} +54 -61
- data/lib/mailslurp_client/models/opt_in_sending_consent_dto.rb +239 -0
- data/lib/mailslurp_client/models/optional_connector_dto.rb +220 -0
- data/lib/mailslurp_client/models/optional_connector_imap_connection_dto.rb +220 -0
- data/lib/mailslurp_client/models/optional_connector_smtp_connection_dto.rb +220 -0
- data/lib/mailslurp_client/models/optional_connector_sync_settings_dto.rb +220 -0
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +68 -8
- data/lib/mailslurp_client/models/page_alias.rb +16 -16
- data/lib/mailslurp_client/models/{page_connector_sync_events.rb → page_alias_thread_projection.rb} +21 -21
- data/lib/mailslurp_client/models/page_attachment_entity.rb +16 -16
- data/lib/mailslurp_client/models/page_bounced_email.rb +16 -16
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +16 -16
- data/lib/mailslurp_client/models/page_complaint.rb +16 -16
- data/lib/mailslurp_client/models/page_connector.rb +16 -16
- data/lib/mailslurp_client/models/page_connector_events.rb +309 -0
- data/lib/mailslurp_client/models/page_contact_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_delivery_status.rb +16 -16
- data/lib/mailslurp_client/models/page_email_preview.rb +16 -16
- data/lib/mailslurp_client/models/page_email_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_email_thread_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_email_validation_request.rb +16 -16
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_group_projection.rb +16 -16
- data/lib/mailslurp_client/models/{page_thread_projection.rb → page_guest_portal_users.rb} +21 -21
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +16 -16
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +16 -16
- data/lib/mailslurp_client/models/page_inbox_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +16 -16
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +16 -16
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +16 -16
- data/lib/mailslurp_client/models/page_inbox_tags.rb +309 -0
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +16 -16
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +16 -16
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_sent_sms_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_sms_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_template_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_webhook_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_webhook_result.rb +16 -16
- data/lib/mailslurp_client/models/pageable_object.rb +20 -20
- data/lib/mailslurp_client/models/phone_number_dto.rb +37 -5
- data/lib/mailslurp_client/models/phone_number_projection.rb +11 -2
- data/lib/mailslurp_client/models/phone_number_validation_dto.rb +254 -0
- data/lib/mailslurp_client/models/phone_plan_availability.rb +213 -0
- data/lib/mailslurp_client/models/phone_plan_availability_item.rb +271 -0
- data/lib/mailslurp_client/models/phone_plan_dto.rb +1 -1
- data/lib/mailslurp_client/models/plus_address_dto.rb +295 -0
- data/lib/mailslurp_client/models/plus_address_projection.rb +295 -0
- data/lib/mailslurp_client/models/provider_settings.rb +347 -0
- data/lib/mailslurp_client/models/raw_email_json.rb +1 -1
- data/lib/mailslurp_client/models/recipient.rb +1 -1
- data/lib/mailslurp_client/models/recipient_projection.rb +234 -0
- data/lib/mailslurp_client/models/reply_for_sms.rb +1 -1
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +1 -1
- data/lib/mailslurp_client/models/reply_to_email_options.rb +1 -1
- data/lib/mailslurp_client/models/scheduled_job.rb +1 -1
- data/lib/mailslurp_client/models/scheduled_job_dto.rb +1 -1
- data/lib/mailslurp_client/models/search_emails_options.rb +1 -1
- data/lib/mailslurp_client/models/search_inboxes_options.rb +3 -3
- data/lib/mailslurp_client/models/send_email_body_part.rb +1 -1
- data/lib/mailslurp_client/models/send_email_options.rb +13 -2
- data/lib/mailslurp_client/models/send_opt_in_consent_email_options.rb +234 -0
- data/lib/mailslurp_client/models/send_smtp_envelope_options.rb +1 -1
- data/lib/mailslurp_client/models/send_with_queue_result.rb +1 -1
- data/lib/mailslurp_client/models/sender.rb +1 -1
- data/lib/mailslurp_client/models/sender_projection.rb +235 -0
- data/lib/mailslurp_client/models/sent_email_dto.rb +92 -2
- data/lib/mailslurp_client/models/sent_email_projection.rb +110 -41
- data/lib/mailslurp_client/models/sent_sms_dto.rb +1 -11
- data/lib/mailslurp_client/models/sent_sms_projection.rb +305 -0
- data/lib/mailslurp_client/models/server_endpoints.rb +1 -1
- data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +1 -1
- data/lib/mailslurp_client/models/set_phone_favourited_options.rb +213 -0
- data/lib/mailslurp_client/models/simple_send_email_options.rb +1 -1
- data/lib/mailslurp_client/models/sms_dto.rb +25 -2
- data/lib/mailslurp_client/models/sms_match_option.rb +1 -1
- data/lib/mailslurp_client/models/sms_preview.rb +1 -1
- data/lib/mailslurp_client/models/sms_projection.rb +1 -1
- data/lib/mailslurp_client/models/sms_reply_options.rb +1 -1
- data/lib/mailslurp_client/models/sms_send_options.rb +225 -0
- data/lib/mailslurp_client/models/smtp_access_details.rb +1 -1
- data/lib/mailslurp_client/models/sort_object.rb +1 -1
- data/lib/mailslurp_client/models/spelling_issue.rb +1 -1
- data/lib/mailslurp_client/models/template_dto.rb +1 -1
- data/lib/mailslurp_client/models/template_preview.rb +1 -1
- data/lib/mailslurp_client/models/template_projection.rb +1 -1
- data/lib/mailslurp_client/models/template_variable.rb +1 -1
- data/lib/mailslurp_client/models/test_inbox_ruleset_receiving_options.rb +1 -1
- data/lib/mailslurp_client/models/test_inbox_ruleset_receiving_result.rb +1 -1
- data/lib/mailslurp_client/models/test_inbox_ruleset_sending_options.rb +1 -1
- data/lib/mailslurp_client/models/test_inbox_ruleset_sending_result.rb +1 -1
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -1
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -1
- data/lib/mailslurp_client/models/test_phone_number_options.rb +1 -1
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +1 -1
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +11 -11
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +11 -11
- data/lib/mailslurp_client/models/unread_count.rb +1 -1
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -1
- data/lib/mailslurp_client/models/update_alias_options.rb +1 -1
- data/lib/mailslurp_client/models/update_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/update_group_contacts.rb +1 -1
- data/lib/mailslurp_client/models/update_imap_access_options.rb +1 -1
- data/lib/mailslurp_client/models/update_inbox_options.rb +1 -1
- data/lib/mailslurp_client/models/update_inbox_replier_options.rb +1 -1
- data/lib/mailslurp_client/models/update_phone_number_options.rb +215 -0
- data/lib/mailslurp_client/models/update_smtp_access_options.rb +1 -1
- data/lib/mailslurp_client/models/upload_attachment_options.rb +1 -1
- data/lib/mailslurp_client/models/user_info_dto.rb +1 -1
- data/lib/mailslurp_client/models/validate_email_address_list_options.rb +1 -1
- data/lib/mailslurp_client/models/validate_email_address_list_result.rb +1 -1
- data/lib/mailslurp_client/models/validate_phone_number_options.rb +211 -0
- data/lib/mailslurp_client/models/validation_dto.rb +1 -1
- data/lib/mailslurp_client/models/validation_message.rb +1 -1
- data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -1
- data/lib/mailslurp_client/models/verify_webhook_signature_options.rb +1 -1
- data/lib/mailslurp_client/models/verify_webhook_signature_results.rb +1 -1
- data/lib/mailslurp_client/models/wait_for_conditions.rb +1 -1
- data/lib/mailslurp_client/models/wait_for_single_sms_options.rb +1 -1
- data/lib/mailslurp_client/models/wait_for_sms_conditions.rb +1 -1
- data/lib/mailslurp_client/models/webhook_bounce_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_delivery_status_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_dto.rb +31 -8
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_endpoint_projection.rb +259 -0
- data/lib/mailslurp_client/models/webhook_header_name_value.rb +1 -1
- data/lib/mailslurp_client/models/webhook_headers.rb +1 -1
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_new_sms_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_projection.rb +60 -7
- data/lib/mailslurp_client/models/webhook_redrive_all_result.rb +1 -1
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +1 -1
- data/lib/mailslurp_client/models/webhook_result_dto.rb +3 -3
- data/lib/mailslurp_client/models/webhook_test_request.rb +1 -1
- data/lib/mailslurp_client/models/webhook_test_response.rb +1 -1
- data/lib/mailslurp_client/models/webhook_test_result.rb +1 -1
- data/lib/mailslurp_client/version.rb +2 -2
- data/lib/mailslurp_client.rb +58 -10
- metadata +59 -11
@@ -0,0 +1,441 @@
|
|
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
|
+
# An email thread is a message thread created for a email based on Message-ID, In-Reply-To, and References headers
|
17
|
+
class EmailThreadProjection
|
18
|
+
# Thread topic subject
|
19
|
+
attr_accessor :subject
|
20
|
+
|
21
|
+
# Created at DateTime
|
22
|
+
attr_accessor :created_at
|
23
|
+
|
24
|
+
# Updated at DateTime
|
25
|
+
attr_accessor :updated_at
|
26
|
+
|
27
|
+
# Has unread
|
28
|
+
attr_accessor :unread
|
29
|
+
|
30
|
+
attr_accessor :sender
|
31
|
+
|
32
|
+
attr_accessor :recipients
|
33
|
+
|
34
|
+
# User ID
|
35
|
+
attr_accessor :user_id
|
36
|
+
|
37
|
+
# Inbox ID
|
38
|
+
attr_accessor :inbox_id
|
39
|
+
|
40
|
+
# To recipients
|
41
|
+
attr_accessor :to
|
42
|
+
|
43
|
+
# CC recipients
|
44
|
+
attr_accessor :cc
|
45
|
+
|
46
|
+
# BCC recipients
|
47
|
+
attr_accessor :bcc
|
48
|
+
|
49
|
+
# Has attachments
|
50
|
+
attr_accessor :has_attachments
|
51
|
+
|
52
|
+
# Number of messages in the thread
|
53
|
+
attr_accessor :message_count
|
54
|
+
|
55
|
+
# Last body excerpt
|
56
|
+
attr_accessor :last_body_excerpt
|
57
|
+
|
58
|
+
# Last text excerpt
|
59
|
+
attr_accessor :last_text_excerpt
|
60
|
+
|
61
|
+
# Last email created time
|
62
|
+
attr_accessor :last_created_at
|
63
|
+
|
64
|
+
# Last sender
|
65
|
+
attr_accessor :last_from
|
66
|
+
|
67
|
+
attr_accessor :last_sender
|
68
|
+
|
69
|
+
# ID of email thread
|
70
|
+
attr_accessor :id
|
71
|
+
|
72
|
+
# From sender
|
73
|
+
attr_accessor :from
|
74
|
+
|
75
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
76
|
+
def self.attribute_map
|
77
|
+
{
|
78
|
+
:'subject' => :'subject',
|
79
|
+
:'created_at' => :'createdAt',
|
80
|
+
:'updated_at' => :'updatedAt',
|
81
|
+
:'unread' => :'unread',
|
82
|
+
:'sender' => :'sender',
|
83
|
+
:'recipients' => :'recipients',
|
84
|
+
:'user_id' => :'userId',
|
85
|
+
:'inbox_id' => :'inboxId',
|
86
|
+
:'to' => :'to',
|
87
|
+
:'cc' => :'cc',
|
88
|
+
:'bcc' => :'bcc',
|
89
|
+
:'has_attachments' => :'hasAttachments',
|
90
|
+
:'message_count' => :'messageCount',
|
91
|
+
:'last_body_excerpt' => :'lastBodyExcerpt',
|
92
|
+
:'last_text_excerpt' => :'lastTextExcerpt',
|
93
|
+
:'last_created_at' => :'lastCreatedAt',
|
94
|
+
:'last_from' => :'lastFrom',
|
95
|
+
:'last_sender' => :'lastSender',
|
96
|
+
:'id' => :'id',
|
97
|
+
:'from' => :'from'
|
98
|
+
}
|
99
|
+
end
|
100
|
+
|
101
|
+
# Attribute type mapping.
|
102
|
+
def self.openapi_types
|
103
|
+
{
|
104
|
+
:'subject' => :'String',
|
105
|
+
:'created_at' => :'DateTime',
|
106
|
+
:'updated_at' => :'DateTime',
|
107
|
+
:'unread' => :'Boolean',
|
108
|
+
:'sender' => :'SenderProjection',
|
109
|
+
:'recipients' => :'EmailRecipientsProjection',
|
110
|
+
:'user_id' => :'String',
|
111
|
+
:'inbox_id' => :'String',
|
112
|
+
:'to' => :'Array<String>',
|
113
|
+
:'cc' => :'Array<String>',
|
114
|
+
:'bcc' => :'Array<String>',
|
115
|
+
:'has_attachments' => :'Boolean',
|
116
|
+
:'message_count' => :'Integer',
|
117
|
+
:'last_body_excerpt' => :'String',
|
118
|
+
:'last_text_excerpt' => :'String',
|
119
|
+
:'last_created_at' => :'DateTime',
|
120
|
+
:'last_from' => :'String',
|
121
|
+
:'last_sender' => :'SenderProjection',
|
122
|
+
:'id' => :'String',
|
123
|
+
:'from' => :'String'
|
124
|
+
}
|
125
|
+
end
|
126
|
+
|
127
|
+
# List of attributes with nullable: true
|
128
|
+
def self.openapi_nullable
|
129
|
+
Set.new([
|
130
|
+
])
|
131
|
+
end
|
132
|
+
|
133
|
+
# Initializes the object
|
134
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
135
|
+
def initialize(attributes = {})
|
136
|
+
if (!attributes.is_a?(Hash))
|
137
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::EmailThreadProjection` initialize method"
|
138
|
+
end
|
139
|
+
|
140
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
141
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
142
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
143
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::EmailThreadProjection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
144
|
+
end
|
145
|
+
h[k.to_sym] = v
|
146
|
+
}
|
147
|
+
|
148
|
+
if attributes.key?(:'subject')
|
149
|
+
self.subject = attributes[:'subject']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'created_at')
|
153
|
+
self.created_at = attributes[:'created_at']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.key?(:'updated_at')
|
157
|
+
self.updated_at = attributes[:'updated_at']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'unread')
|
161
|
+
self.unread = attributes[:'unread']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.key?(:'sender')
|
165
|
+
self.sender = attributes[:'sender']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'recipients')
|
169
|
+
self.recipients = attributes[:'recipients']
|
170
|
+
end
|
171
|
+
|
172
|
+
if attributes.key?(:'user_id')
|
173
|
+
self.user_id = attributes[:'user_id']
|
174
|
+
end
|
175
|
+
|
176
|
+
if attributes.key?(:'inbox_id')
|
177
|
+
self.inbox_id = attributes[:'inbox_id']
|
178
|
+
end
|
179
|
+
|
180
|
+
if attributes.key?(:'to')
|
181
|
+
if (value = attributes[:'to']).is_a?(Array)
|
182
|
+
self.to = value
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
if attributes.key?(:'cc')
|
187
|
+
if (value = attributes[:'cc']).is_a?(Array)
|
188
|
+
self.cc = value
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
if attributes.key?(:'bcc')
|
193
|
+
if (value = attributes[:'bcc']).is_a?(Array)
|
194
|
+
self.bcc = value
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
if attributes.key?(:'has_attachments')
|
199
|
+
self.has_attachments = attributes[:'has_attachments']
|
200
|
+
end
|
201
|
+
|
202
|
+
if attributes.key?(:'message_count')
|
203
|
+
self.message_count = attributes[:'message_count']
|
204
|
+
end
|
205
|
+
|
206
|
+
if attributes.key?(:'last_body_excerpt')
|
207
|
+
self.last_body_excerpt = attributes[:'last_body_excerpt']
|
208
|
+
end
|
209
|
+
|
210
|
+
if attributes.key?(:'last_text_excerpt')
|
211
|
+
self.last_text_excerpt = attributes[:'last_text_excerpt']
|
212
|
+
end
|
213
|
+
|
214
|
+
if attributes.key?(:'last_created_at')
|
215
|
+
self.last_created_at = attributes[:'last_created_at']
|
216
|
+
end
|
217
|
+
|
218
|
+
if attributes.key?(:'last_from')
|
219
|
+
self.last_from = attributes[:'last_from']
|
220
|
+
end
|
221
|
+
|
222
|
+
if attributes.key?(:'last_sender')
|
223
|
+
self.last_sender = attributes[:'last_sender']
|
224
|
+
end
|
225
|
+
|
226
|
+
if attributes.key?(:'id')
|
227
|
+
self.id = attributes[:'id']
|
228
|
+
end
|
229
|
+
|
230
|
+
if attributes.key?(:'from')
|
231
|
+
self.from = attributes[:'from']
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
236
|
+
# @return Array for valid properties with the reasons
|
237
|
+
def list_invalid_properties
|
238
|
+
invalid_properties = Array.new
|
239
|
+
if @created_at.nil?
|
240
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
241
|
+
end
|
242
|
+
|
243
|
+
if @updated_at.nil?
|
244
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
245
|
+
end
|
246
|
+
|
247
|
+
if @unread.nil?
|
248
|
+
invalid_properties.push('invalid value for "unread", unread cannot be nil.')
|
249
|
+
end
|
250
|
+
|
251
|
+
if @user_id.nil?
|
252
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
253
|
+
end
|
254
|
+
|
255
|
+
if @to.nil?
|
256
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
257
|
+
end
|
258
|
+
|
259
|
+
if @has_attachments.nil?
|
260
|
+
invalid_properties.push('invalid value for "has_attachments", has_attachments cannot be nil.')
|
261
|
+
end
|
262
|
+
|
263
|
+
if @message_count.nil?
|
264
|
+
invalid_properties.push('invalid value for "message_count", message_count cannot be nil.')
|
265
|
+
end
|
266
|
+
|
267
|
+
if @id.nil?
|
268
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
269
|
+
end
|
270
|
+
|
271
|
+
invalid_properties
|
272
|
+
end
|
273
|
+
|
274
|
+
# Check to see if the all the properties in the model are valid
|
275
|
+
# @return true if the model is valid
|
276
|
+
def valid?
|
277
|
+
return false if @created_at.nil?
|
278
|
+
return false if @updated_at.nil?
|
279
|
+
return false if @unread.nil?
|
280
|
+
return false if @user_id.nil?
|
281
|
+
return false if @to.nil?
|
282
|
+
return false if @has_attachments.nil?
|
283
|
+
return false if @message_count.nil?
|
284
|
+
return false if @id.nil?
|
285
|
+
true
|
286
|
+
end
|
287
|
+
|
288
|
+
# Checks equality by comparing each attribute.
|
289
|
+
# @param [Object] Object to be compared
|
290
|
+
def ==(o)
|
291
|
+
return true if self.equal?(o)
|
292
|
+
self.class == o.class &&
|
293
|
+
subject == o.subject &&
|
294
|
+
created_at == o.created_at &&
|
295
|
+
updated_at == o.updated_at &&
|
296
|
+
unread == o.unread &&
|
297
|
+
sender == o.sender &&
|
298
|
+
recipients == o.recipients &&
|
299
|
+
user_id == o.user_id &&
|
300
|
+
inbox_id == o.inbox_id &&
|
301
|
+
to == o.to &&
|
302
|
+
cc == o.cc &&
|
303
|
+
bcc == o.bcc &&
|
304
|
+
has_attachments == o.has_attachments &&
|
305
|
+
message_count == o.message_count &&
|
306
|
+
last_body_excerpt == o.last_body_excerpt &&
|
307
|
+
last_text_excerpt == o.last_text_excerpt &&
|
308
|
+
last_created_at == o.last_created_at &&
|
309
|
+
last_from == o.last_from &&
|
310
|
+
last_sender == o.last_sender &&
|
311
|
+
id == o.id &&
|
312
|
+
from == o.from
|
313
|
+
end
|
314
|
+
|
315
|
+
# @see the `==` method
|
316
|
+
# @param [Object] Object to be compared
|
317
|
+
def eql?(o)
|
318
|
+
self == o
|
319
|
+
end
|
320
|
+
|
321
|
+
# Calculates hash code according to all attributes.
|
322
|
+
# @return [Integer] Hash code
|
323
|
+
def hash
|
324
|
+
[subject, created_at, updated_at, unread, sender, recipients, user_id, inbox_id, to, cc, bcc, has_attachments, message_count, last_body_excerpt, last_text_excerpt, last_created_at, last_from, last_sender, id, from].hash
|
325
|
+
end
|
326
|
+
|
327
|
+
# Builds the object from hash
|
328
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
329
|
+
# @return [Object] Returns the model itself
|
330
|
+
def self.build_from_hash(attributes)
|
331
|
+
new.build_from_hash(attributes)
|
332
|
+
end
|
333
|
+
|
334
|
+
# Builds the object from hash
|
335
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
336
|
+
# @return [Object] Returns the model itself
|
337
|
+
def build_from_hash(attributes)
|
338
|
+
return nil unless attributes.is_a?(Hash)
|
339
|
+
self.class.openapi_types.each_pair do |key, type|
|
340
|
+
if type =~ /\AArray<(.*)>/i
|
341
|
+
# check to ensure the input is an array given that the attribute
|
342
|
+
# is documented as an array but the input is not
|
343
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
344
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
345
|
+
end
|
346
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
347
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
348
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
349
|
+
end
|
350
|
+
|
351
|
+
self
|
352
|
+
end
|
353
|
+
|
354
|
+
# Deserializes the data based on type
|
355
|
+
# @param string type Data type
|
356
|
+
# @param string value Value to be deserialized
|
357
|
+
# @return [Object] Deserialized data
|
358
|
+
def _deserialize(type, value)
|
359
|
+
case type.to_sym
|
360
|
+
when :DateTime
|
361
|
+
DateTime.parse(value)
|
362
|
+
when :Date
|
363
|
+
Date.parse(value)
|
364
|
+
when :String
|
365
|
+
value.to_s
|
366
|
+
when :Integer
|
367
|
+
value.to_i
|
368
|
+
when :Float
|
369
|
+
value.to_f
|
370
|
+
when :Boolean
|
371
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
372
|
+
true
|
373
|
+
else
|
374
|
+
false
|
375
|
+
end
|
376
|
+
when :Object
|
377
|
+
# generic object (usually a Hash), return directly
|
378
|
+
value
|
379
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
380
|
+
inner_type = Regexp.last_match[:inner_type]
|
381
|
+
value.map { |v| _deserialize(inner_type, v) }
|
382
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
383
|
+
k_type = Regexp.last_match[:k_type]
|
384
|
+
v_type = Regexp.last_match[:v_type]
|
385
|
+
{}.tap do |hash|
|
386
|
+
value.each do |k, v|
|
387
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
388
|
+
end
|
389
|
+
end
|
390
|
+
else # model
|
391
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
392
|
+
end
|
393
|
+
end
|
394
|
+
|
395
|
+
# Returns the string representation of the object
|
396
|
+
# @return [String] String presentation of the object
|
397
|
+
def to_s
|
398
|
+
to_hash.to_s
|
399
|
+
end
|
400
|
+
|
401
|
+
# to_body is an alias to to_hash (backward compatibility)
|
402
|
+
# @return [Hash] Returns the object in the form of hash
|
403
|
+
def to_body
|
404
|
+
to_hash
|
405
|
+
end
|
406
|
+
|
407
|
+
# Returns the object in the form of hash
|
408
|
+
# @return [Hash] Returns the object in the form of hash
|
409
|
+
def to_hash
|
410
|
+
hash = {}
|
411
|
+
self.class.attribute_map.each_pair do |attr, param|
|
412
|
+
value = self.send(attr)
|
413
|
+
if value.nil?
|
414
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
415
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
416
|
+
end
|
417
|
+
|
418
|
+
hash[param] = _to_hash(value)
|
419
|
+
end
|
420
|
+
hash
|
421
|
+
end
|
422
|
+
|
423
|
+
# Outputs non-array value in the form of hash
|
424
|
+
# For object, use to_hash. Otherwise, just return the value
|
425
|
+
# @param [Object] value Any valid value
|
426
|
+
# @return [Hash] Returns the value in the form of hash
|
427
|
+
def _to_hash(value)
|
428
|
+
if value.is_a?(Array)
|
429
|
+
value.compact.map { |v| _to_hash(v) }
|
430
|
+
elsif value.is_a?(Hash)
|
431
|
+
{}.tap do |hash|
|
432
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
433
|
+
end
|
434
|
+
elsif value.respond_to? :to_hash
|
435
|
+
value.to_hash
|
436
|
+
else
|
437
|
+
value
|
438
|
+
end
|
439
|
+
end
|
440
|
+
end
|
441
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#MailSlurp API
|
3
3
|
|
4
|
-
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
7
|
Contact: contact@mailslurp.dev
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#MailSlurp API
|
3
3
|
|
4
|
-
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
7
|
Contact: contact@mailslurp.dev
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#MailSlurp API
|
3
3
|
|
4
|
-
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
7
|
Contact: contact@mailslurp.dev
|
@@ -178,6 +178,10 @@ module MailSlurpClient
|
|
178
178
|
# @return Array for valid properties with the reasons
|
179
179
|
def list_invalid_properties
|
180
180
|
invalid_properties = Array.new
|
181
|
+
if @id.nil?
|
182
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
183
|
+
end
|
184
|
+
|
181
185
|
if @sid.nil?
|
182
186
|
invalid_properties.push('invalid value for "sid", sid cannot be nil.')
|
183
187
|
end
|
@@ -232,6 +236,7 @@ module MailSlurpClient
|
|
232
236
|
# Check to see if the all the properties in the model are valid
|
233
237
|
# @return true if the model is valid
|
234
238
|
def valid?
|
239
|
+
return false if @id.nil?
|
235
240
|
return false if @sid.nil?
|
236
241
|
return false if @user_id.nil?
|
237
242
|
return false if @display_name.nil?
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#MailSlurp API
|
3
3
|
|
4
|
-
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
7
|
Contact: contact@mailslurp.dev
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#MailSlurp API
|
3
3
|
|
4
|
-
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
7
|
Contact: contact@mailslurp.dev
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#MailSlurp API
|
3
3
|
|
4
|
-
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
7
|
Contact: contact@mailslurp.dev
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#MailSlurp API
|
3
3
|
|
4
|
-
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
7
|
Contact: contact@mailslurp.dev
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#MailSlurp API
|
3
3
|
|
4
|
-
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
7
|
Contact: contact@mailslurp.dev
|
@@ -17,18 +17,18 @@ module MailSlurpClient
|
|
17
17
|
class ExpiredInboxRecordProjection
|
18
18
|
attr_accessor :created_at
|
19
19
|
|
20
|
-
attr_accessor :email_address
|
21
|
-
|
22
20
|
attr_accessor :user_id
|
23
21
|
|
22
|
+
attr_accessor :email_address
|
23
|
+
|
24
24
|
attr_accessor :id
|
25
25
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
27
|
def self.attribute_map
|
28
28
|
{
|
29
29
|
:'created_at' => :'createdAt',
|
30
|
-
:'email_address' => :'emailAddress',
|
31
30
|
:'user_id' => :'userId',
|
31
|
+
:'email_address' => :'emailAddress',
|
32
32
|
:'id' => :'id'
|
33
33
|
}
|
34
34
|
end
|
@@ -37,8 +37,8 @@ module MailSlurpClient
|
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
39
|
:'created_at' => :'DateTime',
|
40
|
-
:'email_address' => :'String',
|
41
40
|
:'user_id' => :'String',
|
41
|
+
:'email_address' => :'String',
|
42
42
|
:'id' => :'String'
|
43
43
|
}
|
44
44
|
end
|
@@ -68,14 +68,14 @@ module MailSlurpClient
|
|
68
68
|
self.created_at = attributes[:'created_at']
|
69
69
|
end
|
70
70
|
|
71
|
-
if attributes.key?(:'email_address')
|
72
|
-
self.email_address = attributes[:'email_address']
|
73
|
-
end
|
74
|
-
|
75
71
|
if attributes.key?(:'user_id')
|
76
72
|
self.user_id = attributes[:'user_id']
|
77
73
|
end
|
78
74
|
|
75
|
+
if attributes.key?(:'email_address')
|
76
|
+
self.email_address = attributes[:'email_address']
|
77
|
+
end
|
78
|
+
|
79
79
|
if attributes.key?(:'id')
|
80
80
|
self.id = attributes[:'id']
|
81
81
|
end
|
@@ -89,14 +89,14 @@ module MailSlurpClient
|
|
89
89
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
90
90
|
end
|
91
91
|
|
92
|
-
if @email_address.nil?
|
93
|
-
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
94
|
-
end
|
95
|
-
|
96
92
|
if @user_id.nil?
|
97
93
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
98
94
|
end
|
99
95
|
|
96
|
+
if @email_address.nil?
|
97
|
+
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
98
|
+
end
|
99
|
+
|
100
100
|
if @id.nil?
|
101
101
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
102
102
|
end
|
@@ -108,8 +108,8 @@ module MailSlurpClient
|
|
108
108
|
# @return true if the model is valid
|
109
109
|
def valid?
|
110
110
|
return false if @created_at.nil?
|
111
|
-
return false if @email_address.nil?
|
112
111
|
return false if @user_id.nil?
|
112
|
+
return false if @email_address.nil?
|
113
113
|
return false if @id.nil?
|
114
114
|
true
|
115
115
|
end
|
@@ -120,8 +120,8 @@ module MailSlurpClient
|
|
120
120
|
return true if self.equal?(o)
|
121
121
|
self.class == o.class &&
|
122
122
|
created_at == o.created_at &&
|
123
|
-
email_address == o.email_address &&
|
124
123
|
user_id == o.user_id &&
|
124
|
+
email_address == o.email_address &&
|
125
125
|
id == o.id
|
126
126
|
end
|
127
127
|
|
@@ -134,7 +134,7 @@ module MailSlurpClient
|
|
134
134
|
# Calculates hash code according to all attributes.
|
135
135
|
# @return [Integer] Hash code
|
136
136
|
def hash
|
137
|
-
[created_at,
|
137
|
+
[created_at, user_id, email_address, id].hash
|
138
138
|
end
|
139
139
|
|
140
140
|
# Builds the object from hash
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#MailSlurp API
|
3
3
|
|
4
|
-
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
7
|
Contact: contact@mailslurp.dev
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#MailSlurp API
|
3
3
|
|
4
|
-
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
7
|
Contact: contact@mailslurp.dev
|