mailslurp_client 15.0.3 → 15.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/lib/mailslurp_client/api/alias_controller_api.rb +59 -55
  4. data/lib/mailslurp_client/api/attachment_controller_api.rb +49 -60
  5. data/lib/mailslurp_client/api/bounce_controller_api.rb +26 -18
  6. data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +15 -15
  7. data/lib/mailslurp_client/api/common_actions_controller_api.rb +128 -67
  8. data/lib/mailslurp_client/api/contact_controller_api.rb +22 -22
  9. data/lib/mailslurp_client/api/domain_controller_api.rb +32 -32
  10. data/lib/mailslurp_client/api/email_controller_api.rb +137 -117
  11. data/lib/mailslurp_client/api/expired_controller_api.rb +19 -19
  12. data/lib/mailslurp_client/api/export_controller_api.rb +38 -38
  13. data/lib/mailslurp_client/api/form_controller_api.rb +16 -18
  14. data/lib/mailslurp_client/api/group_controller_api.rb +52 -52
  15. data/lib/mailslurp_client/api/inbox_controller_api.rb +256 -236
  16. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +33 -29
  17. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +33 -29
  18. data/lib/mailslurp_client/api/mail_server_controller_api.rb +26 -26
  19. data/lib/mailslurp_client/api/missed_email_controller_api.rb +54 -42
  20. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +157 -47
  21. data/lib/mailslurp_client/api/template_controller_api.rb +21 -21
  22. data/lib/mailslurp_client/api/tracking_controller_api.rb +16 -16
  23. data/lib/mailslurp_client/api/wait_for_controller_api.rb +128 -88
  24. data/lib/mailslurp_client/api/webhook_controller_api.rb +102 -86
  25. data/lib/mailslurp_client/configuration.rb +4 -4
  26. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +10 -25
  27. data/lib/mailslurp_client/models/alias_dto.rb +45 -56
  28. data/lib/mailslurp_client/models/alias_projection.rb +42 -72
  29. data/lib/mailslurp_client/models/attachment_entity.rb +34 -54
  30. data/lib/mailslurp_client/models/attachment_meta_data.rb +21 -21
  31. data/lib/mailslurp_client/models/attachment_projection.rb +36 -51
  32. data/lib/mailslurp_client/models/basic_auth_options.rb +0 -10
  33. data/lib/mailslurp_client/models/bounce_projection.rb +13 -23
  34. data/lib/mailslurp_client/models/bounce_recipient.rb +22 -42
  35. data/lib/mailslurp_client/models/bounced_email_dto.rb +56 -76
  36. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +16 -31
  37. data/lib/mailslurp_client/models/bulk_send_email_options.rb +5 -0
  38. data/lib/mailslurp_client/models/condition_option.rb +2 -2
  39. data/lib/mailslurp_client/models/contact_dto.rb +53 -73
  40. data/lib/mailslurp_client/models/contact_projection.rb +42 -52
  41. data/lib/mailslurp_client/models/count_dto.rb +0 -5
  42. data/lib/mailslurp_client/models/create_contact_options.rb +42 -42
  43. data/lib/mailslurp_client/models/create_domain_options.rb +21 -16
  44. data/lib/mailslurp_client/models/create_group_options.rb +0 -5
  45. data/lib/mailslurp_client/models/create_inbox_dto.rb +58 -58
  46. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +19 -14
  47. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +23 -23
  48. data/lib/mailslurp_client/models/create_template_options.rb +0 -10
  49. data/lib/mailslurp_client/models/create_webhook_options.rb +18 -18
  50. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +15 -25
  51. data/lib/mailslurp_client/models/dns_lookup_options.rb +24 -14
  52. data/lib/mailslurp_client/models/dns_lookup_result.rb +23 -42
  53. data/lib/mailslurp_client/models/dns_lookup_results.rb +0 -5
  54. data/lib/mailslurp_client/models/domain_dto.rb +59 -80
  55. data/lib/mailslurp_client/models/domain_name_record.rb +11 -30
  56. data/lib/mailslurp_client/models/domain_preview.rb +26 -50
  57. data/lib/mailslurp_client/models/email.rb +134 -135
  58. data/lib/mailslurp_client/models/email_analysis.rb +28 -28
  59. data/lib/mailslurp_client/models/email_content_match_result.rb +13 -23
  60. data/lib/mailslurp_client/models/email_links_result.rb +13 -23
  61. data/lib/mailslurp_client/models/email_preview.rb +47 -47
  62. data/lib/mailslurp_client/models/email_projection.rb +77 -97
  63. data/lib/mailslurp_client/models/email_recipients.rb +16 -15
  64. data/lib/mailslurp_client/models/email_text_lines_result.rb +13 -23
  65. data/lib/mailslurp_client/models/email_verification_result.rb +16 -36
  66. data/lib/mailslurp_client/models/expiration_defaults.rb +16 -26
  67. data/lib/mailslurp_client/models/expired_inbox_dto.rb +13 -28
  68. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +22 -42
  69. data/lib/mailslurp_client/models/export_link.rb +0 -5
  70. data/lib/mailslurp_client/models/export_options.rb +1 -6
  71. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +13 -23
  72. data/lib/mailslurp_client/models/forward_email_options.rb +36 -31
  73. data/lib/mailslurp_client/models/gravatar_url.rb +13 -23
  74. data/lib/mailslurp_client/models/group_contacts_dto.rb +13 -23
  75. data/lib/mailslurp_client/models/group_dto.rb +22 -37
  76. data/lib/mailslurp_client/models/group_projection.rb +22 -37
  77. data/lib/mailslurp_client/models/html_validation_result.rb +13 -14
  78. data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +47 -57
  79. data/lib/mailslurp_client/models/inbox_exists_dto.rb +0 -5
  80. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +31 -61
  81. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +0 -5
  82. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +13 -23
  83. data/lib/mailslurp_client/models/inbox_preview.rb +38 -38
  84. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +43 -78
  85. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +0 -5
  86. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +13 -18
  87. data/lib/mailslurp_client/models/inline_object.rb +221 -0
  88. data/lib/mailslurp_client/models/ip_address_result.rb +0 -10
  89. data/lib/mailslurp_client/models/json_schema_dto.rb +0 -5
  90. data/lib/mailslurp_client/models/match_option.rb +7 -2
  91. data/lib/mailslurp_client/models/match_options.rb +16 -16
  92. data/lib/mailslurp_client/models/missed_email.rb +67 -102
  93. data/lib/mailslurp_client/models/missed_email_projection.rb +19 -29
  94. data/lib/mailslurp_client/models/name_server_record.rb +10 -30
  95. data/lib/mailslurp_client/models/organization_inbox_projection.rb +44 -44
  96. data/lib/mailslurp_client/models/page_alias.rb +52 -52
  97. data/lib/mailslurp_client/models/page_attachment_entity.rb +52 -52
  98. data/lib/mailslurp_client/models/page_bounced_email.rb +52 -52
  99. data/lib/mailslurp_client/models/page_bounced_recipients.rb +52 -52
  100. data/lib/mailslurp_client/models/page_contact_projection.rb +52 -52
  101. data/lib/mailslurp_client/models/page_email_preview.rb +52 -52
  102. data/lib/mailslurp_client/models/page_email_projection.rb +52 -52
  103. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +52 -52
  104. data/lib/mailslurp_client/models/page_group_projection.rb +52 -52
  105. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +52 -52
  106. data/lib/mailslurp_client/models/page_inbox_projection.rb +52 -52
  107. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +52 -52
  108. data/lib/mailslurp_client/models/page_missed_email_projection.rb +52 -52
  109. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +52 -52
  110. data/lib/mailslurp_client/models/page_sent_email_projection.rb +49 -49
  111. data/lib/mailslurp_client/models/page_template_projection.rb +52 -52
  112. data/lib/mailslurp_client/models/page_thread_projection.rb +52 -52
  113. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +52 -52
  114. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +52 -52
  115. data/lib/mailslurp_client/models/page_webhook_projection.rb +52 -52
  116. data/lib/mailslurp_client/models/page_webhook_result.rb +52 -52
  117. data/lib/mailslurp_client/models/pageable.rb +10 -10
  118. data/lib/mailslurp_client/models/raw_email_json.rb +0 -5
  119. data/lib/mailslurp_client/models/recipient.rb +13 -23
  120. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +38 -37
  121. data/lib/mailslurp_client/models/reply_to_email_options.rb +51 -50
  122. data/lib/mailslurp_client/models/send_email_options.rb +107 -115
  123. data/lib/mailslurp_client/models/sender.rb +14 -23
  124. data/lib/mailslurp_client/models/sent_email_dto.rb +97 -102
  125. data/lib/mailslurp_client/models/sent_email_projection.rb +66 -105
  126. data/lib/mailslurp_client/models/simple_send_email_options.rb +24 -24
  127. data/lib/mailslurp_client/models/template_dto.rb +22 -47
  128. data/lib/mailslurp_client/models/template_projection.rb +16 -41
  129. data/lib/mailslurp_client/models/template_variable.rb +0 -10
  130. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +0 -10
  131. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +0 -10
  132. data/lib/mailslurp_client/models/thread_projection.rb +60 -95
  133. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +43 -68
  134. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +34 -54
  135. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +19 -29
  136. data/lib/mailslurp_client/models/unread_count.rb +0 -5
  137. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +0 -5
  138. data/lib/mailslurp_client/models/update_group_contacts.rb +0 -5
  139. data/lib/mailslurp_client/models/update_inbox_options.rb +26 -26
  140. data/lib/mailslurp_client/models/upload_attachment_options.rb +14 -14
  141. data/lib/mailslurp_client/models/validation_message.rb +1 -5
  142. data/lib/mailslurp_client/models/verify_email_address_options.rb +0 -5
  143. data/lib/mailslurp_client/models/wait_for_conditions.rb +48 -58
  144. data/lib/mailslurp_client/models/webhook_dto.rb +64 -69
  145. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +42 -42
  146. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +49 -49
  147. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +43 -43
  148. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +75 -95
  149. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +84 -84
  150. data/lib/mailslurp_client/models/webhook_projection.rb +36 -61
  151. data/lib/mailslurp_client/models/webhook_redrive_result.rb +13 -23
  152. data/lib/mailslurp_client/models/webhook_result_dto.rb +76 -126
  153. data/lib/mailslurp_client/models/webhook_test_request.rb +21 -36
  154. data/lib/mailslurp_client/models/webhook_test_response.rb +13 -13
  155. data/lib/mailslurp_client/models/webhook_test_result.rb +13 -23
  156. data/lib/mailslurp_client/version.rb +1 -1
  157. data/lib/mailslurp_client.rb +2 -1
  158. metadata +4 -3
@@ -15,17 +15,18 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Preview object for domain entity
17
17
  class DomainPreview
18
+ attr_accessor :id
19
+
20
+ attr_accessor :domain
21
+
18
22
  attr_accessor :catch_all_inbox_id
19
23
 
20
24
  attr_accessor :created_at
21
25
 
22
- attr_accessor :domain
23
-
26
+ # Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails.
24
27
  attr_accessor :domain_type
25
28
 
26
- attr_accessor :id
27
-
28
- attr_accessor :is_verified
29
+ attr_accessor :verified
29
30
 
30
31
  class EnumAttributeValidator
31
32
  attr_reader :datatype
@@ -52,24 +53,24 @@ module MailSlurpClient
52
53
  # Attribute mapping from ruby-style variable name to JSON key.
53
54
  def self.attribute_map
54
55
  {
56
+ :'id' => :'id',
57
+ :'domain' => :'domain',
55
58
  :'catch_all_inbox_id' => :'catchAllInboxId',
56
59
  :'created_at' => :'createdAt',
57
- :'domain' => :'domain',
58
60
  :'domain_type' => :'domainType',
59
- :'id' => :'id',
60
- :'is_verified' => :'isVerified'
61
+ :'verified' => :'verified'
61
62
  }
62
63
  end
63
64
 
64
65
  # Attribute type mapping.
65
66
  def self.openapi_types
66
67
  {
68
+ :'id' => :'String',
69
+ :'domain' => :'String',
67
70
  :'catch_all_inbox_id' => :'String',
68
71
  :'created_at' => :'DateTime',
69
- :'domain' => :'String',
70
72
  :'domain_type' => :'String',
71
- :'id' => :'String',
72
- :'is_verified' => :'Boolean'
73
+ :'verified' => :'Boolean'
73
74
  }
74
75
  end
75
76
 
@@ -94,6 +95,14 @@ module MailSlurpClient
94
95
  h[k.to_sym] = v
95
96
  }
96
97
 
98
+ if attributes.key?(:'id')
99
+ self.id = attributes[:'id']
100
+ end
101
+
102
+ if attributes.key?(:'domain')
103
+ self.domain = attributes[:'domain']
104
+ end
105
+
97
106
  if attributes.key?(:'catch_all_inbox_id')
98
107
  self.catch_all_inbox_id = attributes[:'catch_all_inbox_id']
99
108
  end
@@ -102,20 +111,12 @@ module MailSlurpClient
102
111
  self.created_at = attributes[:'created_at']
103
112
  end
104
113
 
105
- if attributes.key?(:'domain')
106
- self.domain = attributes[:'domain']
107
- end
108
-
109
114
  if attributes.key?(:'domain_type')
110
115
  self.domain_type = attributes[:'domain_type']
111
116
  end
112
117
 
113
- if attributes.key?(:'id')
114
- self.id = attributes[:'id']
115
- end
116
-
117
- if attributes.key?(:'is_verified')
118
- self.is_verified = attributes[:'is_verified']
118
+ if attributes.key?(:'verified')
119
+ self.verified = attributes[:'verified']
119
120
  end
120
121
  end
121
122
 
@@ -123,39 +124,14 @@ module MailSlurpClient
123
124
  # @return Array for valid properties with the reasons
124
125
  def list_invalid_properties
125
126
  invalid_properties = Array.new
126
- if @created_at.nil?
127
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
128
- end
129
-
130
- if @domain.nil?
131
- invalid_properties.push('invalid value for "domain", domain cannot be nil.')
132
- end
133
-
134
- if @domain_type.nil?
135
- invalid_properties.push('invalid value for "domain_type", domain_type cannot be nil.')
136
- end
137
-
138
- if @id.nil?
139
- invalid_properties.push('invalid value for "id", id cannot be nil.')
140
- end
141
-
142
- if @is_verified.nil?
143
- invalid_properties.push('invalid value for "is_verified", is_verified cannot be nil.')
144
- end
145
-
146
127
  invalid_properties
147
128
  end
148
129
 
149
130
  # Check to see if the all the properties in the model are valid
150
131
  # @return true if the model is valid
151
132
  def valid?
152
- return false if @created_at.nil?
153
- return false if @domain.nil?
154
- return false if @domain_type.nil?
155
133
  domain_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_DOMAIN"])
156
134
  return false unless domain_type_validator.valid?(@domain_type)
157
- return false if @id.nil?
158
- return false if @is_verified.nil?
159
135
  true
160
136
  end
161
137
 
@@ -174,12 +150,12 @@ module MailSlurpClient
174
150
  def ==(o)
175
151
  return true if self.equal?(o)
176
152
  self.class == o.class &&
153
+ id == o.id &&
154
+ domain == o.domain &&
177
155
  catch_all_inbox_id == o.catch_all_inbox_id &&
178
156
  created_at == o.created_at &&
179
- domain == o.domain &&
180
157
  domain_type == o.domain_type &&
181
- id == o.id &&
182
- is_verified == o.is_verified
158
+ verified == o.verified
183
159
  end
184
160
 
185
161
  # @see the `==` method
@@ -191,7 +167,7 @@ module MailSlurpClient
191
167
  # Calculates hash code according to all attributes.
192
168
  # @return [Integer] Hash code
193
169
  def hash
194
- [catch_all_inbox_id, created_at, domain, domain_type, id, is_verified].hash
170
+ [id, domain, catch_all_inbox_id, created_at, domain_type, verified].hash
195
171
  end
196
172
 
197
173
  # Builds the object from hash
@@ -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
@@ -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