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,23 +15,23 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Links found in HTML
17
17
  class EmailLinksResult
18
- attr_accessor :body
19
-
20
18
  attr_accessor :links
21
19
 
20
+ attr_accessor :body
21
+
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
25
- :'body' => :'body',
26
- :'links' => :'links'
25
+ :'links' => :'links',
26
+ :'body' => :'body'
27
27
  }
28
28
  end
29
29
 
30
30
  # Attribute type mapping.
31
31
  def self.openapi_types
32
32
  {
33
- :'body' => :'String',
34
- :'links' => :'Array<String>'
33
+ :'links' => :'Array<String>',
34
+ :'body' => :'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?(:'body')
60
- self.body = attributes[:'body']
61
- end
62
-
63
59
  if attributes.key?(:'links')
64
60
  if (value = attributes[:'links']).is_a?(Array)
65
61
  self.links = value
66
62
  end
67
63
  end
64
+
65
+ if attributes.key?(:'body')
66
+ self.body = attributes[:'body']
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 @body.nil?
75
- invalid_properties.push('invalid value for "body", body cannot be nil.')
76
- end
77
-
78
- if @links.nil?
79
- invalid_properties.push('invalid value for "links", links 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 @body.nil?
89
- return false if @links.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
- body == o.body &&
99
- links == o.links
88
+ links == o.links &&
89
+ body == o.body
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
- [body, links].hash
101
+ [links, body].hash
112
102
  end
113
103
 
114
104
  # 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,8 +15,17 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Preview of an email message. For full message (including body and attachments) call the `getEmail` or other email endpoints with the provided email ID.
17
17
  class EmailPreview
18
- # 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.
19
- attr_accessor :attachments
18
+ # ID of the email entity
19
+ attr_accessor :id
20
+
21
+ # The subject line of the email message as specified by SMTP subject header
22
+ attr_accessor :subject
23
+
24
+ # List of `To` recipient email addresses that the email was addressed to. See recipients object for names.
25
+ attr_accessor :to
26
+
27
+ # Who the email was sent from. An email address - see fromName for the sender name.
28
+ attr_accessor :from
20
29
 
21
30
  # List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names.
22
31
  attr_accessor :bcc
@@ -27,48 +36,39 @@ module MailSlurpClient
27
36
  # When was the email received by MailSlurp
28
37
  attr_accessor :created_at
29
38
 
30
- # Who the email was sent from. An email address - see fromName for the sender name.
31
- attr_accessor :from
32
-
33
- # ID of the email entity
34
- attr_accessor :id
35
-
36
39
  # 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.
37
40
  attr_accessor :read
38
41
 
39
- # The subject line of the email message as specified by SMTP subject header
40
- attr_accessor :subject
41
-
42
- # List of `To` recipient email addresses that the email was addressed to. See recipients object for names.
43
- attr_accessor :to
42
+ # 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.
43
+ attr_accessor :attachments
44
44
 
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
- :'attachments' => :'attachments',
48
+ :'id' => :'id',
49
+ :'subject' => :'subject',
50
+ :'to' => :'to',
51
+ :'from' => :'from',
49
52
  :'bcc' => :'bcc',
50
53
  :'cc' => :'cc',
51
54
  :'created_at' => :'createdAt',
52
- :'from' => :'from',
53
- :'id' => :'id',
54
55
  :'read' => :'read',
55
- :'subject' => :'subject',
56
- :'to' => :'to'
56
+ :'attachments' => :'attachments'
57
57
  }
58
58
  end
59
59
 
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
- :'attachments' => :'Array<String>',
63
+ :'id' => :'String',
64
+ :'subject' => :'String',
65
+ :'to' => :'Array<String>',
66
+ :'from' => :'String',
64
67
  :'bcc' => :'Array<String>',
65
68
  :'cc' => :'Array<String>',
66
69
  :'created_at' => :'DateTime',
67
- :'from' => :'String',
68
- :'id' => :'String',
69
70
  :'read' => :'Boolean',
70
- :'subject' => :'String',
71
- :'to' => :'Array<String>'
71
+ :'attachments' => :'Array<String>'
72
72
  }
73
73
  end
74
74
 
@@ -93,12 +93,24 @@ module MailSlurpClient
93
93
  h[k.to_sym] = v
94
94
  }
95
95
 
96
- if attributes.key?(:'attachments')
97
- if (value = attributes[:'attachments']).is_a?(Array)
98
- self.attachments = value
96
+ if attributes.key?(:'id')
97
+ self.id = attributes[:'id']
98
+ end
99
+
100
+ if attributes.key?(:'subject')
101
+ self.subject = attributes[:'subject']
102
+ end
103
+
104
+ if attributes.key?(:'to')
105
+ if (value = attributes[:'to']).is_a?(Array)
106
+ self.to = value
99
107
  end
100
108
  end
101
109
 
110
+ if attributes.key?(:'from')
111
+ self.from = attributes[:'from']
112
+ end
113
+
102
114
  if attributes.key?(:'bcc')
103
115
  if (value = attributes[:'bcc']).is_a?(Array)
104
116
  self.bcc = value
@@ -115,25 +127,13 @@ module MailSlurpClient
115
127
  self.created_at = attributes[:'created_at']
116
128
  end
117
129
 
118
- if attributes.key?(:'from')
119
- self.from = attributes[:'from']
120
- end
121
-
122
- if attributes.key?(:'id')
123
- self.id = attributes[:'id']
124
- end
125
-
126
130
  if attributes.key?(:'read')
127
131
  self.read = attributes[:'read']
128
132
  end
129
133
 
130
- if attributes.key?(:'subject')
131
- self.subject = attributes[:'subject']
132
- end
133
-
134
- if attributes.key?(:'to')
135
- if (value = attributes[:'to']).is_a?(Array)
136
- self.to = value
134
+ if attributes.key?(:'attachments')
135
+ if (value = attributes[:'attachments']).is_a?(Array)
136
+ self.attachments = value
137
137
  end
138
138
  end
139
139
  end
@@ -156,15 +156,15 @@ module MailSlurpClient
156
156
  def ==(o)
157
157
  return true if self.equal?(o)
158
158
  self.class == o.class &&
159
- attachments == o.attachments &&
159
+ id == o.id &&
160
+ subject == o.subject &&
161
+ to == o.to &&
162
+ from == o.from &&
160
163
  bcc == o.bcc &&
161
164
  cc == o.cc &&
162
165
  created_at == o.created_at &&
163
- from == o.from &&
164
- id == o.id &&
165
166
  read == o.read &&
166
- subject == o.subject &&
167
- to == o.to
167
+ attachments == o.attachments
168
168
  end
169
169
 
170
170
  # @see the `==` method
@@ -176,7 +176,7 @@ module MailSlurpClient
176
176
  # Calculates hash code according to all attributes.
177
177
  # @return [Integer] Hash code
178
178
  def hash
179
- [attachments, bcc, cc, created_at, from, id, read, subject, to].hash
179
+ [id, subject, to, from, bcc, cc, created_at, read, attachments].hash
180
180
  end
181
181
 
182
182
  # 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,67 +15,67 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # A compact representation of a full email. Used in list endpoints to keep response sizes low. Body and attachments are not included. To get all fields of the email use the `getEmail` method with the email projection's ID. See `EmailDto` for documentation on projection properties.
17
17
  class EmailProjection
18
- attr_accessor :attachments
18
+ attr_accessor :id
19
19
 
20
- attr_accessor :bcc
20
+ attr_accessor :from
21
21
 
22
- attr_accessor :body_excerpt
22
+ attr_accessor :subject
23
23
 
24
- attr_accessor :body_md5_hash
24
+ attr_accessor :inbox_id
25
25
 
26
- attr_accessor :cc
26
+ attr_accessor :to
27
27
 
28
- attr_accessor :created_at
28
+ attr_accessor :attachments
29
29
 
30
- attr_accessor :from
30
+ attr_accessor :bcc
31
31
 
32
- attr_accessor :id
32
+ attr_accessor :cc
33
33
 
34
- attr_accessor :inbox_id
34
+ attr_accessor :created_at
35
35
 
36
- attr_accessor :read
36
+ attr_accessor :team_access
37
37
 
38
- attr_accessor :subject
38
+ attr_accessor :read
39
39
 
40
- attr_accessor :team_access
40
+ attr_accessor :body_md5_hash
41
41
 
42
- attr_accessor :to
42
+ attr_accessor :body_excerpt
43
43
 
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
+ :'id' => :'id',
48
+ :'from' => :'from',
49
+ :'subject' => :'subject',
50
+ :'inbox_id' => :'inboxId',
51
+ :'to' => :'to',
47
52
  :'attachments' => :'attachments',
48
53
  :'bcc' => :'bcc',
49
- :'body_excerpt' => :'bodyExcerpt',
50
- :'body_md5_hash' => :'bodyMD5Hash',
51
54
  :'cc' => :'cc',
52
55
  :'created_at' => :'createdAt',
53
- :'from' => :'from',
54
- :'id' => :'id',
55
- :'inbox_id' => :'inboxId',
56
- :'read' => :'read',
57
- :'subject' => :'subject',
58
56
  :'team_access' => :'teamAccess',
59
- :'to' => :'to'
57
+ :'read' => :'read',
58
+ :'body_md5_hash' => :'bodyMD5Hash',
59
+ :'body_excerpt' => :'bodyExcerpt'
60
60
  }
61
61
  end
62
62
 
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
+ :'id' => :'String',
67
+ :'from' => :'String',
68
+ :'subject' => :'String',
69
+ :'inbox_id' => :'String',
70
+ :'to' => :'Array<String>',
66
71
  :'attachments' => :'Array<String>',
67
72
  :'bcc' => :'Array<String>',
68
- :'body_excerpt' => :'String',
69
- :'body_md5_hash' => :'String',
70
73
  :'cc' => :'Array<String>',
71
74
  :'created_at' => :'DateTime',
72
- :'from' => :'String',
73
- :'id' => :'String',
74
- :'inbox_id' => :'String',
75
- :'read' => :'Boolean',
76
- :'subject' => :'String',
77
75
  :'team_access' => :'Boolean',
78
- :'to' => :'Array<String>'
76
+ :'read' => :'Boolean',
77
+ :'body_md5_hash' => :'String',
78
+ :'body_excerpt' => :'String'
79
79
  }
80
80
  end
81
81
 
@@ -100,6 +100,28 @@ module MailSlurpClient
100
100
  h[k.to_sym] = v
101
101
  }
102
102
 
103
+ if attributes.key?(:'id')
104
+ self.id = attributes[:'id']
105
+ end
106
+
107
+ if attributes.key?(:'from')
108
+ self.from = attributes[:'from']
109
+ end
110
+
111
+ if attributes.key?(:'subject')
112
+ self.subject = attributes[:'subject']
113
+ end
114
+
115
+ if attributes.key?(:'inbox_id')
116
+ self.inbox_id = attributes[:'inbox_id']
117
+ end
118
+
119
+ if attributes.key?(:'to')
120
+ if (value = attributes[:'to']).is_a?(Array)
121
+ self.to = value
122
+ end
123
+ end
124
+
103
125
  if attributes.key?(:'attachments')
104
126
  if (value = attributes[:'attachments']).is_a?(Array)
105
127
  self.attachments = value
@@ -112,14 +134,6 @@ module MailSlurpClient
112
134
  end
113
135
  end
114
136
 
115
- if attributes.key?(:'body_excerpt')
116
- self.body_excerpt = attributes[:'body_excerpt']
117
- end
118
-
119
- if attributes.key?(:'body_md5_hash')
120
- self.body_md5_hash = attributes[:'body_md5_hash']
121
- end
122
-
123
137
  if attributes.key?(:'cc')
124
138
  if (value = attributes[:'cc']).is_a?(Array)
125
139
  self.cc = value
@@ -130,34 +144,20 @@ module MailSlurpClient
130
144
  self.created_at = attributes[:'created_at']
131
145
  end
132
146
 
133
- if attributes.key?(:'from')
134
- self.from = attributes[:'from']
135
- end
136
-
137
- if attributes.key?(:'id')
138
- self.id = attributes[:'id']
139
- end
140
-
141
- if attributes.key?(:'inbox_id')
142
- self.inbox_id = attributes[:'inbox_id']
147
+ if attributes.key?(:'team_access')
148
+ self.team_access = attributes[:'team_access']
143
149
  end
144
150
 
145
151
  if attributes.key?(:'read')
146
152
  self.read = attributes[:'read']
147
153
  end
148
154
 
149
- if attributes.key?(:'subject')
150
- self.subject = attributes[:'subject']
151
- end
152
-
153
- if attributes.key?(:'team_access')
154
- self.team_access = attributes[:'team_access']
155
+ if attributes.key?(:'body_md5_hash')
156
+ self.body_md5_hash = attributes[:'body_md5_hash']
155
157
  end
156
158
 
157
- if attributes.key?(:'to')
158
- if (value = attributes[:'to']).is_a?(Array)
159
- self.to = value
160
- end
159
+ if attributes.key?(:'body_excerpt')
160
+ self.body_excerpt = attributes[:'body_excerpt']
161
161
  end
162
162
  end
163
163
 
@@ -165,32 +165,12 @@ module MailSlurpClient
165
165
  # @return Array for valid properties with the reasons
166
166
  def list_invalid_properties
167
167
  invalid_properties = Array.new
168
- if @created_at.nil?
169
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
170
- end
171
-
172
- if @id.nil?
173
- invalid_properties.push('invalid value for "id", id cannot be nil.')
174
- end
175
-
176
- if @inbox_id.nil?
177
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
178
- end
179
-
180
- if @to.nil?
181
- invalid_properties.push('invalid value for "to", to cannot be nil.')
182
- end
183
-
184
168
  invalid_properties
185
169
  end
186
170
 
187
171
  # Check to see if the all the properties in the model are valid
188
172
  # @return true if the model is valid
189
173
  def valid?
190
- return false if @created_at.nil?
191
- return false if @id.nil?
192
- return false if @inbox_id.nil?
193
- return false if @to.nil?
194
174
  true
195
175
  end
196
176
 
@@ -199,19 +179,19 @@ module MailSlurpClient
199
179
  def ==(o)
200
180
  return true if self.equal?(o)
201
181
  self.class == o.class &&
182
+ id == o.id &&
183
+ from == o.from &&
184
+ subject == o.subject &&
185
+ inbox_id == o.inbox_id &&
186
+ to == o.to &&
202
187
  attachments == o.attachments &&
203
188
  bcc == o.bcc &&
204
- body_excerpt == o.body_excerpt &&
205
- body_md5_hash == o.body_md5_hash &&
206
189
  cc == o.cc &&
207
190
  created_at == o.created_at &&
208
- from == o.from &&
209
- id == o.id &&
210
- inbox_id == o.inbox_id &&
211
- read == o.read &&
212
- subject == o.subject &&
213
191
  team_access == o.team_access &&
214
- to == o.to
192
+ read == o.read &&
193
+ body_md5_hash == o.body_md5_hash &&
194
+ body_excerpt == o.body_excerpt
215
195
  end
216
196
 
217
197
  # @see the `==` method
@@ -223,7 +203,7 @@ module MailSlurpClient
223
203
  # Calculates hash code according to all attributes.
224
204
  # @return [Integer] Hash code
225
205
  def hash
226
- [attachments, bcc, body_excerpt, body_md5_hash, cc, created_at, from, id, inbox_id, read, subject, team_access, to].hash
206
+ [id, from, subject, inbox_id, to, attachments, bcc, cc, created_at, team_access, read, body_md5_hash, body_excerpt].hash
227
207
  end
228
208
 
229
209
  # 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
 
@@ -13,28 +13,29 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # The `To`,`CC`,`BCC` recipients stored in object form with email address and name accessible.
16
17
  class EmailRecipients
17
- attr_accessor :bcc
18
+ attr_accessor :to
18
19
 
19
20
  attr_accessor :cc
20
21
 
21
- attr_accessor :to
22
+ attr_accessor :bcc
22
23
 
23
24
  # Attribute mapping from ruby-style variable name to JSON key.
24
25
  def self.attribute_map
25
26
  {
26
- :'bcc' => :'bcc',
27
+ :'to' => :'to',
27
28
  :'cc' => :'cc',
28
- :'to' => :'to'
29
+ :'bcc' => :'bcc'
29
30
  }
30
31
  end
31
32
 
32
33
  # Attribute type mapping.
33
34
  def self.openapi_types
34
35
  {
35
- :'bcc' => :'Array<Recipient>',
36
+ :'to' => :'Array<Recipient>',
36
37
  :'cc' => :'Array<Recipient>',
37
- :'to' => :'Array<Recipient>'
38
+ :'bcc' => :'Array<Recipient>'
38
39
  }
39
40
  end
40
41
 
@@ -59,9 +60,9 @@ module MailSlurpClient
59
60
  h[k.to_sym] = v
60
61
  }
61
62
 
62
- if attributes.key?(:'bcc')
63
- if (value = attributes[:'bcc']).is_a?(Array)
64
- self.bcc = value
63
+ if attributes.key?(:'to')
64
+ if (value = attributes[:'to']).is_a?(Array)
65
+ self.to = value
65
66
  end
66
67
  end
67
68
 
@@ -71,9 +72,9 @@ module MailSlurpClient
71
72
  end
72
73
  end
73
74
 
74
- if attributes.key?(:'to')
75
- if (value = attributes[:'to']).is_a?(Array)
76
- self.to = value
75
+ if attributes.key?(:'bcc')
76
+ if (value = attributes[:'bcc']).is_a?(Array)
77
+ self.bcc = value
77
78
  end
78
79
  end
79
80
  end
@@ -96,9 +97,9 @@ module MailSlurpClient
96
97
  def ==(o)
97
98
  return true if self.equal?(o)
98
99
  self.class == o.class &&
99
- bcc == o.bcc &&
100
+ to == o.to &&
100
101
  cc == o.cc &&
101
- to == o.to
102
+ bcc == o.bcc
102
103
  end
103
104
 
104
105
  # @see the `==` method
@@ -110,7 +111,7 @@ module MailSlurpClient
110
111
  # Calculates hash code according to all attributes.
111
112
  # @return [Integer] Hash code
112
113
  def hash
113
- [bcc, cc, to].hash
114
+ [to, cc, bcc].hash
114
115
  end
115
116
 
116
117
  # Builds the object from hash