mailslurp_client 15.0.2 → 15.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/lib/mailslurp_client/api/alias_controller_api.rb +60 -56
  4. data/lib/mailslurp_client/api/attachment_controller_api.rb +50 -61
  5. data/lib/mailslurp_client/api/bounce_controller_api.rb +27 -19
  6. data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +16 -16
  7. data/lib/mailslurp_client/api/common_actions_controller_api.rb +129 -68
  8. data/lib/mailslurp_client/api/contact_controller_api.rb +23 -23
  9. data/lib/mailslurp_client/api/domain_controller_api.rb +33 -33
  10. data/lib/mailslurp_client/api/email_controller_api.rb +191 -117
  11. data/lib/mailslurp_client/api/expired_controller_api.rb +20 -20
  12. data/lib/mailslurp_client/api/export_controller_api.rb +39 -39
  13. data/lib/mailslurp_client/api/form_controller_api.rb +17 -19
  14. data/lib/mailslurp_client/api/group_controller_api.rb +53 -53
  15. data/lib/mailslurp_client/api/inbox_controller_api.rb +360 -226
  16. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +34 -30
  17. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +34 -30
  18. data/lib/mailslurp_client/api/mail_server_controller_api.rb +27 -27
  19. data/lib/mailslurp_client/api/missed_email_controller_api.rb +55 -43
  20. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +158 -48
  21. data/lib/mailslurp_client/api/template_controller_api.rb +22 -22
  22. data/lib/mailslurp_client/api/tracking_controller_api.rb +17 -17
  23. data/lib/mailslurp_client/api/wait_for_controller_api.rb +129 -89
  24. data/lib/mailslurp_client/api/webhook_controller_api.rb +103 -87
  25. data/lib/mailslurp_client/api_client.rb +1 -1
  26. data/lib/mailslurp_client/api_error.rb +1 -1
  27. data/lib/mailslurp_client/configuration.rb +3 -3
  28. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +11 -26
  29. data/lib/mailslurp_client/models/alias_dto.rb +46 -57
  30. data/lib/mailslurp_client/models/alias_projection.rb +38 -68
  31. data/lib/mailslurp_client/models/attachment_entity.rb +35 -55
  32. data/lib/mailslurp_client/models/attachment_meta_data.rb +22 -22
  33. data/lib/mailslurp_client/models/attachment_projection.rb +30 -45
  34. data/lib/mailslurp_client/models/basic_auth_options.rb +1 -11
  35. data/lib/mailslurp_client/models/bounce_projection.rb +14 -24
  36. data/lib/mailslurp_client/models/bounce_recipient.rb +23 -43
  37. data/lib/mailslurp_client/models/bounced_email_dto.rb +57 -77
  38. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +17 -32
  39. data/lib/mailslurp_client/models/bulk_send_email_options.rb +6 -1
  40. data/lib/mailslurp_client/models/condition_option.rb +3 -3
  41. data/lib/mailslurp_client/models/contact_dto.rb +54 -74
  42. data/lib/mailslurp_client/models/contact_projection.rb +43 -53
  43. data/lib/mailslurp_client/models/content_match_options.rb +1 -1
  44. data/lib/mailslurp_client/models/count_dto.rb +206 -0
  45. data/lib/mailslurp_client/models/create_alias_options.rb +1 -1
  46. data/lib/mailslurp_client/models/create_contact_options.rb +43 -43
  47. data/lib/mailslurp_client/models/create_domain_options.rb +22 -17
  48. data/lib/mailslurp_client/models/create_group_options.rb +1 -6
  49. data/lib/mailslurp_client/models/create_inbox_dto.rb +59 -59
  50. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +20 -15
  51. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +24 -24
  52. data/lib/mailslurp_client/models/create_template_options.rb +1 -11
  53. data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
  54. data/lib/mailslurp_client/models/create_webhook_options.rb +19 -19
  55. data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
  56. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +16 -26
  57. data/lib/mailslurp_client/models/dns_lookup_options.rb +25 -15
  58. data/lib/mailslurp_client/models/dns_lookup_result.rb +24 -43
  59. data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -6
  60. data/lib/mailslurp_client/models/domain_dto.rb +60 -81
  61. data/lib/mailslurp_client/models/domain_name_record.rb +12 -31
  62. data/lib/mailslurp_client/models/domain_preview.rb +27 -51
  63. data/lib/mailslurp_client/models/download_attachment_dto.rb +1 -1
  64. data/lib/mailslurp_client/models/email.rb +135 -136
  65. data/lib/mailslurp_client/models/email_analysis.rb +29 -29
  66. data/lib/mailslurp_client/models/email_content_match_result.rb +14 -24
  67. data/lib/mailslurp_client/models/email_links_result.rb +14 -24
  68. data/lib/mailslurp_client/models/email_preview.rb +48 -48
  69. data/lib/mailslurp_client/models/email_projection.rb +67 -87
  70. data/lib/mailslurp_client/models/email_recipients.rb +17 -16
  71. data/lib/mailslurp_client/models/email_text_lines_result.rb +14 -24
  72. data/lib/mailslurp_client/models/email_verification_result.rb +17 -37
  73. data/lib/mailslurp_client/models/expiration_defaults.rb +17 -27
  74. data/lib/mailslurp_client/models/expired_inbox_dto.rb +14 -29
  75. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +23 -43
  76. data/lib/mailslurp_client/models/export_link.rb +1 -6
  77. data/lib/mailslurp_client/models/export_options.rb +2 -7
  78. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +14 -24
  79. data/lib/mailslurp_client/models/forward_email_options.rb +37 -32
  80. data/lib/mailslurp_client/models/gravatar_url.rb +14 -24
  81. data/lib/mailslurp_client/models/group_contacts_dto.rb +14 -24
  82. data/lib/mailslurp_client/models/group_dto.rb +23 -38
  83. data/lib/mailslurp_client/models/group_projection.rb +23 -38
  84. data/lib/mailslurp_client/models/html_validation_result.rb +14 -15
  85. data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +48 -58
  86. data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -6
  87. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +32 -62
  88. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -6
  89. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +14 -24
  90. data/lib/mailslurp_client/models/inbox_preview.rb +39 -39
  91. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +44 -79
  92. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -6
  93. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +14 -19
  94. data/lib/mailslurp_client/models/inline_object.rb +221 -0
  95. data/lib/mailslurp_client/models/ip_address_result.rb +1 -11
  96. data/lib/mailslurp_client/models/json_schema_dto.rb +1 -6
  97. data/lib/mailslurp_client/models/match_option.rb +8 -3
  98. data/lib/mailslurp_client/models/match_options.rb +17 -17
  99. data/lib/mailslurp_client/models/missed_email.rb +68 -103
  100. data/lib/mailslurp_client/models/missed_email_projection.rb +20 -30
  101. data/lib/mailslurp_client/models/name_server_record.rb +11 -31
  102. data/lib/mailslurp_client/models/organization_inbox_projection.rb +45 -45
  103. data/lib/mailslurp_client/models/page_alias.rb +50 -50
  104. data/lib/mailslurp_client/models/page_attachment_entity.rb +50 -50
  105. data/lib/mailslurp_client/models/page_bounced_email.rb +50 -50
  106. data/lib/mailslurp_client/models/page_bounced_recipients.rb +50 -50
  107. data/lib/mailslurp_client/models/page_contact_projection.rb +50 -50
  108. data/lib/mailslurp_client/models/page_email_preview.rb +50 -50
  109. data/lib/mailslurp_client/models/page_email_projection.rb +50 -50
  110. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +50 -50
  111. data/lib/mailslurp_client/models/page_group_projection.rb +50 -50
  112. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +50 -50
  113. data/lib/mailslurp_client/models/page_inbox_projection.rb +50 -50
  114. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +50 -50
  115. data/lib/mailslurp_client/models/page_missed_email_projection.rb +50 -50
  116. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +50 -50
  117. data/lib/mailslurp_client/models/page_sent_email_projection.rb +50 -50
  118. data/lib/mailslurp_client/models/page_template_projection.rb +50 -50
  119. data/lib/mailslurp_client/models/page_thread_projection.rb +50 -50
  120. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +50 -50
  121. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +50 -50
  122. data/lib/mailslurp_client/models/page_webhook_projection.rb +50 -50
  123. data/lib/mailslurp_client/models/page_webhook_result.rb +50 -50
  124. data/lib/mailslurp_client/models/pageable.rb +29 -29
  125. data/lib/mailslurp_client/models/raw_email_json.rb +1 -6
  126. data/lib/mailslurp_client/models/recipient.rb +14 -24
  127. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +39 -38
  128. data/lib/mailslurp_client/models/reply_to_email_options.rb +52 -51
  129. data/lib/mailslurp_client/models/send_email_options.rb +108 -116
  130. data/lib/mailslurp_client/models/sender.rb +15 -24
  131. data/lib/mailslurp_client/models/sent_email_dto.rb +98 -103
  132. data/lib/mailslurp_client/models/sent_email_projection.rb +64 -103
  133. data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +1 -1
  134. data/lib/mailslurp_client/models/simple_send_email_options.rb +25 -25
  135. data/lib/mailslurp_client/models/sort.rb +14 -14
  136. data/lib/mailslurp_client/models/template_dto.rb +23 -48
  137. data/lib/mailslurp_client/models/template_projection.rb +26 -51
  138. data/lib/mailslurp_client/models/template_variable.rb +1 -11
  139. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -11
  140. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -11
  141. data/lib/mailslurp_client/models/thread_projection.rb +58 -93
  142. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +44 -69
  143. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +35 -55
  144. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +20 -30
  145. data/lib/mailslurp_client/models/unread_count.rb +1 -6
  146. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -6
  147. data/lib/mailslurp_client/models/update_alias_options.rb +1 -1
  148. data/lib/mailslurp_client/models/update_domain_options.rb +1 -1
  149. data/lib/mailslurp_client/models/update_group_contacts.rb +1 -6
  150. data/lib/mailslurp_client/models/update_inbox_options.rb +27 -27
  151. data/lib/mailslurp_client/models/upload_attachment_options.rb +15 -15
  152. data/lib/mailslurp_client/models/validation_dto.rb +1 -1
  153. data/lib/mailslurp_client/models/validation_message.rb +2 -6
  154. data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -6
  155. data/lib/mailslurp_client/models/wait_for_conditions.rb +49 -59
  156. data/lib/mailslurp_client/models/webhook_dto.rb +65 -70
  157. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +43 -43
  158. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +50 -50
  159. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +44 -44
  160. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +76 -96
  161. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +85 -85
  162. data/lib/mailslurp_client/models/webhook_projection.rb +35 -60
  163. data/lib/mailslurp_client/models/webhook_redrive_result.rb +14 -24
  164. data/lib/mailslurp_client/models/webhook_result_dto.rb +77 -127
  165. data/lib/mailslurp_client/models/webhook_test_request.rb +22 -37
  166. data/lib/mailslurp_client/models/webhook_test_response.rb +14 -14
  167. data/lib/mailslurp_client/models/webhook_test_result.rb +14 -24
  168. data/lib/mailslurp_client/version.rb +2 -2
  169. data/lib/mailslurp_client.rb +4 -2
  170. metadata +5 -3
@@ -4,7 +4,7 @@
4
4
  #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
-
7
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -15,14 +15,43 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Email entity (also known as EmailDto). When an SMTP email message is received by MailSlurp it is parsed. The body and attachments are written to disk and the fields such as to, from, subject etc are stored in a database. The `body` contains the email content. If you want the original SMTP message see the `getRawEmail` endpoints. The attachments can be fetched using the AttachmentController
17
17
  class Email
18
- attr_accessor :analysis
18
+ # ID of the email entity
19
+ attr_accessor :id
19
20
 
20
- # List of IDs of attachments found in the email. Use these IDs with the Inbox and Email Controllers to download attachments and attachment meta data such as filesize, name, extension.
21
- attr_accessor :attachments
21
+ # ID of user that email belongs to
22
+ attr_accessor :user_id
23
+
24
+ # ID of the inbox that received the email
25
+ attr_accessor :inbox_id
26
+
27
+ # List of `To` recipient email addresses that the email was addressed to. See recipients object for names.
28
+ attr_accessor :to
29
+
30
+ # Who the email was sent from. An email address - see fromName for the sender name.
31
+ attr_accessor :from
32
+
33
+ attr_accessor :sender
34
+
35
+ attr_accessor :recipients
36
+
37
+ # The `replyTo` field on the received email message
38
+ attr_accessor :reply_to
39
+
40
+ # List of `CC` recipients email addresses that the email was addressed to. See recipients object for names.
41
+ attr_accessor :cc
22
42
 
23
43
  # List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names.
24
44
  attr_accessor :bcc
25
45
 
46
+ # Collection of SMTP headers attached to email
47
+ attr_accessor :headers
48
+
49
+ # List of IDs of attachments found in the email. Use these IDs with the Inbox and Email Controllers to download attachments and attachment meta data such as filesize, name, extension.
50
+ attr_accessor :attachments
51
+
52
+ # The subject line of the email message as specified by SMTP subject header
53
+ attr_accessor :subject
54
+
26
55
  # The body of the email message as text parsed from the SMTP message body (does not include attachments). Fetch the raw content to access the SMTP message and use the attachments property to access attachments. The body is stored separately to the email entity so the body is not returned in paginated results only in full single email or wait requests.
27
56
  attr_accessor :body
28
57
 
@@ -32,110 +61,80 @@ module MailSlurpClient
32
61
  # A hash signature of the email message using MD5. Useful for comparing emails without fetching full body.
33
62
  attr_accessor :body_md5_hash
34
63
 
35
- # List of `CC` recipients email addresses that the email was addressed to. See recipients object for names.
36
- attr_accessor :cc
37
-
38
64
  # Detected character set of the email body such as UTF-8
39
65
  attr_accessor :charset
40
66
 
67
+ attr_accessor :analysis
68
+
41
69
  # When was the email received by MailSlurp
42
70
  attr_accessor :created_at
43
71
 
44
- # Who the email was sent from. An email address - see fromName for the sender name.
45
- attr_accessor :from
46
-
47
- # Collection of SMTP headers attached to email
48
- attr_accessor :headers
49
-
50
- # ID of the email entity
51
- attr_accessor :id
52
-
53
- # ID of the inbox that received the email
54
- attr_accessor :inbox_id
55
-
56
- # Is the email body HTML
57
- attr_accessor :is_html
72
+ # When was the email last updated
73
+ attr_accessor :updated_at
58
74
 
59
75
  # Read flag. Has the email ever been viewed in the dashboard or fetched via the API with a hydrated body? If so the email is marked as read. Paginated results do not affect read status. Read status is different to email opened event as it depends on your own account accessing the email. Email opened is determined by tracking pixels sent to other uses if enable during sending. You can listened for both email read and email opened events using webhooks.
60
76
  attr_accessor :read
61
77
 
62
- attr_accessor :recipients
63
-
64
- # The `replyTo` field on the received email message
65
- attr_accessor :reply_to
66
-
67
- attr_accessor :sender
68
-
69
- # The subject line of the email message as specified by SMTP subject header
70
- attr_accessor :subject
71
-
72
78
  # Can the email be accessed by organization team members
73
79
  attr_accessor :team_access
74
80
 
75
- # List of `To` recipient email addresses that the email was addressed to. See recipients object for names.
76
- attr_accessor :to
77
-
78
- # When was the email last updated
79
- attr_accessor :updated_at
80
-
81
- # ID of user that email belongs to
82
- attr_accessor :user_id
81
+ attr_accessor :html
83
82
 
84
83
  # Attribute mapping from ruby-style variable name to JSON key.
85
84
  def self.attribute_map
86
85
  {
87
- :'analysis' => :'analysis',
88
- :'attachments' => :'attachments',
86
+ :'id' => :'id',
87
+ :'user_id' => :'userId',
88
+ :'inbox_id' => :'inboxId',
89
+ :'to' => :'to',
90
+ :'from' => :'from',
91
+ :'sender' => :'sender',
92
+ :'recipients' => :'recipients',
93
+ :'reply_to' => :'replyTo',
94
+ :'cc' => :'cc',
89
95
  :'bcc' => :'bcc',
96
+ :'headers' => :'headers',
97
+ :'attachments' => :'attachments',
98
+ :'subject' => :'subject',
90
99
  :'body' => :'body',
91
100
  :'body_excerpt' => :'bodyExcerpt',
92
101
  :'body_md5_hash' => :'bodyMD5Hash',
93
- :'cc' => :'cc',
94
102
  :'charset' => :'charset',
103
+ :'analysis' => :'analysis',
95
104
  :'created_at' => :'createdAt',
96
- :'from' => :'from',
97
- :'headers' => :'headers',
98
- :'id' => :'id',
99
- :'inbox_id' => :'inboxId',
100
- :'is_html' => :'isHTML',
105
+ :'updated_at' => :'updatedAt',
101
106
  :'read' => :'read',
102
- :'recipients' => :'recipients',
103
- :'reply_to' => :'replyTo',
104
- :'sender' => :'sender',
105
- :'subject' => :'subject',
106
107
  :'team_access' => :'teamAccess',
107
- :'to' => :'to',
108
- :'updated_at' => :'updatedAt',
109
- :'user_id' => :'userId'
108
+ :'html' => :'html'
110
109
  }
111
110
  end
112
111
 
113
112
  # Attribute type mapping.
114
113
  def self.openapi_types
115
114
  {
116
- :'analysis' => :'EmailAnalysis',
117
- :'attachments' => :'Array<String>',
115
+ :'id' => :'String',
116
+ :'user_id' => :'String',
117
+ :'inbox_id' => :'String',
118
+ :'to' => :'Array<String>',
119
+ :'from' => :'String',
120
+ :'sender' => :'Sender',
121
+ :'recipients' => :'EmailRecipients',
122
+ :'reply_to' => :'String',
123
+ :'cc' => :'Array<String>',
118
124
  :'bcc' => :'Array<String>',
125
+ :'headers' => :'Hash<String, String>',
126
+ :'attachments' => :'Array<String>',
127
+ :'subject' => :'String',
119
128
  :'body' => :'String',
120
129
  :'body_excerpt' => :'String',
121
130
  :'body_md5_hash' => :'String',
122
- :'cc' => :'Array<String>',
123
131
  :'charset' => :'String',
132
+ :'analysis' => :'EmailAnalysis',
124
133
  :'created_at' => :'DateTime',
125
- :'from' => :'String',
126
- :'headers' => :'Hash<String, String>',
127
- :'id' => :'String',
128
- :'inbox_id' => :'String',
129
- :'is_html' => :'Boolean',
134
+ :'updated_at' => :'DateTime',
130
135
  :'read' => :'Boolean',
131
- :'recipients' => :'EmailRecipients',
132
- :'reply_to' => :'String',
133
- :'sender' => :'Sender',
134
- :'subject' => :'String',
135
136
  :'team_access' => :'Boolean',
136
- :'to' => :'Array<String>',
137
- :'updated_at' => :'DateTime',
138
- :'user_id' => :'String'
137
+ :'html' => :'Boolean'
139
138
  }
140
139
  end
141
140
 
@@ -160,32 +159,38 @@ module MailSlurpClient
160
159
  h[k.to_sym] = v
161
160
  }
162
161
 
163
- if attributes.key?(:'analysis')
164
- self.analysis = attributes[:'analysis']
162
+ if attributes.key?(:'id')
163
+ self.id = attributes[:'id']
165
164
  end
166
165
 
167
- if attributes.key?(:'attachments')
168
- if (value = attributes[:'attachments']).is_a?(Array)
169
- self.attachments = value
170
- end
166
+ if attributes.key?(:'user_id')
167
+ self.user_id = attributes[:'user_id']
171
168
  end
172
169
 
173
- if attributes.key?(:'bcc')
174
- if (value = attributes[:'bcc']).is_a?(Array)
175
- self.bcc = value
170
+ if attributes.key?(:'inbox_id')
171
+ self.inbox_id = attributes[:'inbox_id']
172
+ end
173
+
174
+ if attributes.key?(:'to')
175
+ if (value = attributes[:'to']).is_a?(Array)
176
+ self.to = value
176
177
  end
177
178
  end
178
179
 
179
- if attributes.key?(:'body')
180
- self.body = attributes[:'body']
180
+ if attributes.key?(:'from')
181
+ self.from = attributes[:'from']
181
182
  end
182
183
 
183
- if attributes.key?(:'body_excerpt')
184
- self.body_excerpt = attributes[:'body_excerpt']
184
+ if attributes.key?(:'sender')
185
+ self.sender = attributes[:'sender']
185
186
  end
186
187
 
187
- if attributes.key?(:'body_md5_hash')
188
- self.body_md5_hash = attributes[:'body_md5_hash']
188
+ if attributes.key?(:'recipients')
189
+ self.recipients = attributes[:'recipients']
190
+ end
191
+
192
+ if attributes.key?(:'reply_to')
193
+ self.reply_to = attributes[:'reply_to']
189
194
  end
190
195
 
191
196
  if attributes.key?(:'cc')
@@ -194,16 +199,10 @@ module MailSlurpClient
194
199
  end
195
200
  end
196
201
 
197
- if attributes.key?(:'charset')
198
- self.charset = attributes[:'charset']
199
- end
200
-
201
- if attributes.key?(:'created_at')
202
- self.created_at = attributes[:'created_at']
203
- end
204
-
205
- if attributes.key?(:'from')
206
- self.from = attributes[:'from']
202
+ if attributes.key?(:'bcc')
203
+ if (value = attributes[:'bcc']).is_a?(Array)
204
+ self.bcc = value
205
+ end
207
206
  end
208
207
 
209
208
  if attributes.key?(:'headers')
@@ -212,54 +211,54 @@ module MailSlurpClient
212
211
  end
213
212
  end
214
213
 
215
- if attributes.key?(:'id')
216
- self.id = attributes[:'id']
214
+ if attributes.key?(:'attachments')
215
+ if (value = attributes[:'attachments']).is_a?(Array)
216
+ self.attachments = value
217
+ end
217
218
  end
218
219
 
219
- if attributes.key?(:'inbox_id')
220
- self.inbox_id = attributes[:'inbox_id']
220
+ if attributes.key?(:'subject')
221
+ self.subject = attributes[:'subject']
221
222
  end
222
223
 
223
- if attributes.key?(:'is_html')
224
- self.is_html = attributes[:'is_html']
224
+ if attributes.key?(:'body')
225
+ self.body = attributes[:'body']
225
226
  end
226
227
 
227
- if attributes.key?(:'read')
228
- self.read = attributes[:'read']
228
+ if attributes.key?(:'body_excerpt')
229
+ self.body_excerpt = attributes[:'body_excerpt']
229
230
  end
230
231
 
231
- if attributes.key?(:'recipients')
232
- self.recipients = attributes[:'recipients']
232
+ if attributes.key?(:'body_md5_hash')
233
+ self.body_md5_hash = attributes[:'body_md5_hash']
233
234
  end
234
235
 
235
- if attributes.key?(:'reply_to')
236
- self.reply_to = attributes[:'reply_to']
236
+ if attributes.key?(:'charset')
237
+ self.charset = attributes[:'charset']
237
238
  end
238
239
 
239
- if attributes.key?(:'sender')
240
- self.sender = attributes[:'sender']
240
+ if attributes.key?(:'analysis')
241
+ self.analysis = attributes[:'analysis']
241
242
  end
242
243
 
243
- if attributes.key?(:'subject')
244
- self.subject = attributes[:'subject']
244
+ if attributes.key?(:'created_at')
245
+ self.created_at = attributes[:'created_at']
245
246
  end
246
247
 
247
- if attributes.key?(:'team_access')
248
- self.team_access = attributes[:'team_access']
248
+ if attributes.key?(:'updated_at')
249
+ self.updated_at = attributes[:'updated_at']
249
250
  end
250
251
 
251
- if attributes.key?(:'to')
252
- if (value = attributes[:'to']).is_a?(Array)
253
- self.to = value
254
- end
252
+ if attributes.key?(:'read')
253
+ self.read = attributes[:'read']
255
254
  end
256
255
 
257
- if attributes.key?(:'updated_at')
258
- self.updated_at = attributes[:'updated_at']
256
+ if attributes.key?(:'team_access')
257
+ self.team_access = attributes[:'team_access']
259
258
  end
260
259
 
261
- if attributes.key?(:'user_id')
262
- self.user_id = attributes[:'user_id']
260
+ if attributes.key?(:'html')
261
+ self.html = attributes[:'html']
263
262
  end
264
263
  end
265
264
 
@@ -281,29 +280,29 @@ module MailSlurpClient
281
280
  def ==(o)
282
281
  return true if self.equal?(o)
283
282
  self.class == o.class &&
284
- analysis == o.analysis &&
285
- attachments == o.attachments &&
283
+ id == o.id &&
284
+ user_id == o.user_id &&
285
+ inbox_id == o.inbox_id &&
286
+ to == o.to &&
287
+ from == o.from &&
288
+ sender == o.sender &&
289
+ recipients == o.recipients &&
290
+ reply_to == o.reply_to &&
291
+ cc == o.cc &&
286
292
  bcc == o.bcc &&
293
+ headers == o.headers &&
294
+ attachments == o.attachments &&
295
+ subject == o.subject &&
287
296
  body == o.body &&
288
297
  body_excerpt == o.body_excerpt &&
289
298
  body_md5_hash == o.body_md5_hash &&
290
- cc == o.cc &&
291
299
  charset == o.charset &&
300
+ analysis == o.analysis &&
292
301
  created_at == o.created_at &&
293
- from == o.from &&
294
- headers == o.headers &&
295
- id == o.id &&
296
- inbox_id == o.inbox_id &&
297
- is_html == o.is_html &&
302
+ updated_at == o.updated_at &&
298
303
  read == o.read &&
299
- recipients == o.recipients &&
300
- reply_to == o.reply_to &&
301
- sender == o.sender &&
302
- subject == o.subject &&
303
304
  team_access == o.team_access &&
304
- to == o.to &&
305
- updated_at == o.updated_at &&
306
- user_id == o.user_id
305
+ html == o.html
307
306
  end
308
307
 
309
308
  # @see the `==` method
@@ -315,7 +314,7 @@ module MailSlurpClient
315
314
  # Calculates hash code according to all attributes.
316
315
  # @return [Integer] Hash code
317
316
  def hash
318
- [analysis, attachments, bcc, body, body_excerpt, body_md5_hash, cc, charset, created_at, from, headers, id, inbox_id, is_html, read, recipients, reply_to, sender, subject, team_access, to, updated_at, user_id].hash
317
+ [id, user_id, inbox_id, to, from, sender, recipients, reply_to, cc, bcc, headers, attachments, subject, body, body_excerpt, body_md5_hash, charset, analysis, created_at, updated_at, read, team_access, html].hash
319
318
  end
320
319
 
321
320
  # Builds the object from hash
@@ -4,7 +4,7 @@
4
4
  #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
-
7
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -15,40 +15,40 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Analysis result for email. Each verdict property is a string PASS|FAIL|GRAY or dynamic error message
17
17
  class EmailAnalysis
18
- # Verdict of DomainKeys Identified Mail analysis
19
- attr_accessor :dkim_verdict
20
-
21
- # Verdict of Domain-based Message Authentication Reporting and Conformance analysis
22
- attr_accessor :dmarc_verdict
23
-
24
18
  # Verdict of spam ranking analysis
25
19
  attr_accessor :spam_verdict
26
20
 
21
+ # Verdict of virus scan analysis
22
+ attr_accessor :virus_verdict
23
+
27
24
  # Verdict of Send Policy Framework record spoofing analysis
28
25
  attr_accessor :spf_verdict
29
26
 
30
- # Verdict of virus scan analysis
31
- attr_accessor :virus_verdict
27
+ # Verdict of DomainKeys Identified Mail analysis
28
+ attr_accessor :dkim_verdict
29
+
30
+ # Verdict of Domain-based Message Authentication Reporting and Conformance analysis
31
+ attr_accessor :dmarc_verdict
32
32
 
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
- :'dkim_verdict' => :'dkimVerdict',
37
- :'dmarc_verdict' => :'dmarcVerdict',
38
36
  :'spam_verdict' => :'spamVerdict',
37
+ :'virus_verdict' => :'virusVerdict',
39
38
  :'spf_verdict' => :'spfVerdict',
40
- :'virus_verdict' => :'virusVerdict'
39
+ :'dkim_verdict' => :'dkimVerdict',
40
+ :'dmarc_verdict' => :'dmarcVerdict'
41
41
  }
42
42
  end
43
43
 
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
- :'dkim_verdict' => :'String',
48
- :'dmarc_verdict' => :'String',
49
47
  :'spam_verdict' => :'String',
48
+ :'virus_verdict' => :'String',
50
49
  :'spf_verdict' => :'String',
51
- :'virus_verdict' => :'String'
50
+ :'dkim_verdict' => :'String',
51
+ :'dmarc_verdict' => :'String'
52
52
  }
53
53
  end
54
54
 
@@ -73,24 +73,24 @@ module MailSlurpClient
73
73
  h[k.to_sym] = v
74
74
  }
75
75
 
76
- if attributes.key?(:'dkim_verdict')
77
- self.dkim_verdict = attributes[:'dkim_verdict']
78
- end
79
-
80
- if attributes.key?(:'dmarc_verdict')
81
- self.dmarc_verdict = attributes[:'dmarc_verdict']
82
- end
83
-
84
76
  if attributes.key?(:'spam_verdict')
85
77
  self.spam_verdict = attributes[:'spam_verdict']
86
78
  end
87
79
 
80
+ if attributes.key?(:'virus_verdict')
81
+ self.virus_verdict = attributes[:'virus_verdict']
82
+ end
83
+
88
84
  if attributes.key?(:'spf_verdict')
89
85
  self.spf_verdict = attributes[:'spf_verdict']
90
86
  end
91
87
 
92
- if attributes.key?(:'virus_verdict')
93
- self.virus_verdict = attributes[:'virus_verdict']
88
+ if attributes.key?(:'dkim_verdict')
89
+ self.dkim_verdict = attributes[:'dkim_verdict']
90
+ end
91
+
92
+ if attributes.key?(:'dmarc_verdict')
93
+ self.dmarc_verdict = attributes[:'dmarc_verdict']
94
94
  end
95
95
  end
96
96
 
@@ -112,11 +112,11 @@ module MailSlurpClient
112
112
  def ==(o)
113
113
  return true if self.equal?(o)
114
114
  self.class == o.class &&
115
- dkim_verdict == o.dkim_verdict &&
116
- dmarc_verdict == o.dmarc_verdict &&
117
115
  spam_verdict == o.spam_verdict &&
116
+ virus_verdict == o.virus_verdict &&
118
117
  spf_verdict == o.spf_verdict &&
119
- virus_verdict == o.virus_verdict
118
+ dkim_verdict == o.dkim_verdict &&
119
+ dmarc_verdict == o.dmarc_verdict
120
120
  end
121
121
 
122
122
  # @see the `==` method
@@ -128,7 +128,7 @@ module MailSlurpClient
128
128
  # Calculates hash code according to all attributes.
129
129
  # @return [Integer] Hash code
130
130
  def hash
131
- [dkim_verdict, dmarc_verdict, spam_verdict, spf_verdict, virus_verdict].hash
131
+ [spam_verdict, virus_verdict, spf_verdict, dkim_verdict, dmarc_verdict].hash
132
132
  end
133
133
 
134
134
  # Builds the object from hash
@@ -4,7 +4,7 @@
4
4
  #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
-
7
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -15,23 +15,23 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Matches for the given pattern
17
17
  class EmailContentMatchResult
18
- attr_accessor :matches
19
-
20
18
  attr_accessor :pattern
21
19
 
20
+ attr_accessor :matches
21
+
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
25
- :'matches' => :'matches',
26
- :'pattern' => :'pattern'
25
+ :'pattern' => :'pattern',
26
+ :'matches' => :'matches'
27
27
  }
28
28
  end
29
29
 
30
30
  # Attribute type mapping.
31
31
  def self.openapi_types
32
32
  {
33
- :'matches' => :'Array<String>',
34
- :'pattern' => :'String'
33
+ :'pattern' => :'String',
34
+ :'matches' => :'Array<String>'
35
35
  }
36
36
  end
37
37
 
@@ -56,37 +56,27 @@ module MailSlurpClient
56
56
  h[k.to_sym] = v
57
57
  }
58
58
 
59
+ if attributes.key?(:'pattern')
60
+ self.pattern = attributes[:'pattern']
61
+ end
62
+
59
63
  if attributes.key?(:'matches')
60
64
  if (value = attributes[:'matches']).is_a?(Array)
61
65
  self.matches = value
62
66
  end
63
67
  end
64
-
65
- if attributes.key?(:'pattern')
66
- self.pattern = attributes[:'pattern']
67
- end
68
68
  end
69
69
 
70
70
  # Show invalid properties with the reasons. Usually used together with valid?
71
71
  # @return Array for valid properties with the reasons
72
72
  def list_invalid_properties
73
73
  invalid_properties = Array.new
74
- if @matches.nil?
75
- invalid_properties.push('invalid value for "matches", matches cannot be nil.')
76
- end
77
-
78
- if @pattern.nil?
79
- invalid_properties.push('invalid value for "pattern", pattern cannot be nil.')
80
- end
81
-
82
74
  invalid_properties
83
75
  end
84
76
 
85
77
  # Check to see if the all the properties in the model are valid
86
78
  # @return true if the model is valid
87
79
  def valid?
88
- return false if @matches.nil?
89
- return false if @pattern.nil?
90
80
  true
91
81
  end
92
82
 
@@ -95,8 +85,8 @@ module MailSlurpClient
95
85
  def ==(o)
96
86
  return true if self.equal?(o)
97
87
  self.class == o.class &&
98
- matches == o.matches &&
99
- pattern == o.pattern
88
+ pattern == o.pattern &&
89
+ matches == o.matches
100
90
  end
101
91
 
102
92
  # @see the `==` method
@@ -108,7 +98,7 @@ module MailSlurpClient
108
98
  # Calculates hash code according to all attributes.
109
99
  # @return [Integer] Hash code
110
100
  def hash
111
- [matches, pattern].hash
101
+ [pattern, matches].hash
112
102
  end
113
103
 
114
104
  # Builds the object from hash