mailslurp_client 15.0.3 → 15.0.7

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 +145 -122
  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 +198 -178
  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 +22 -22
  29. data/lib/mailslurp_client/models/alias_dto.rb +64 -49
  30. data/lib/mailslurp_client/models/alias_projection.rb +50 -50
  31. data/lib/mailslurp_client/models/attachment_entity.rb +40 -40
  32. data/lib/mailslurp_client/models/attachment_meta_data.rb +42 -22
  33. data/lib/mailslurp_client/models/attachment_projection.rb +38 -33
  34. data/lib/mailslurp_client/models/basic_auth_options.rb +1 -1
  35. data/lib/mailslurp_client/models/bounce_projection.rb +19 -19
  36. data/lib/mailslurp_client/models/bounce_recipient.rb +31 -31
  37. data/lib/mailslurp_client/models/bounced_email_dto.rb +63 -63
  38. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +23 -23
  39. data/lib/mailslurp_client/models/bulk_send_email_options.rb +11 -1
  40. data/lib/mailslurp_client/models/condition_option.rb +13 -3
  41. data/lib/mailslurp_client/models/contact_dto.rb +63 -63
  42. data/lib/mailslurp_client/models/contact_projection.rb +39 -39
  43. data/lib/mailslurp_client/models/content_match_options.rb +6 -1
  44. data/lib/mailslurp_client/models/count_dto.rb +1 -1
  45. data/lib/mailslurp_client/models/create_alias_options.rb +11 -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 -1
  49. data/lib/mailslurp_client/models/create_inbox_dto.rb +59 -59
  50. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +30 -15
  51. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +39 -24
  52. data/lib/mailslurp_client/models/create_template_options.rb +1 -1
  53. data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
  54. data/lib/mailslurp_client/models/create_webhook_options.rb +24 -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 +21 -21
  57. data/lib/mailslurp_client/models/dns_lookup_options.rb +30 -15
  58. data/lib/mailslurp_client/models/dns_lookup_result.rb +34 -33
  59. data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -1
  60. data/lib/mailslurp_client/models/domain_dto.rb +100 -70
  61. data/lib/mailslurp_client/models/domain_name_record.rb +18 -17
  62. data/lib/mailslurp_client/models/domain_preview.rb +29 -28
  63. data/lib/mailslurp_client/models/download_attachment_dto.rb +16 -1
  64. data/lib/mailslurp_client/models/email.rb +179 -139
  65. data/lib/mailslurp_client/models/email_analysis.rb +29 -29
  66. data/lib/mailslurp_client/models/email_content_match_result.rb +19 -19
  67. data/lib/mailslurp_client/models/email_links_result.rb +19 -19
  68. data/lib/mailslurp_client/models/email_preview.rb +63 -48
  69. data/lib/mailslurp_client/models/email_projection.rb +77 -77
  70. data/lib/mailslurp_client/models/email_recipients.rb +17 -16
  71. data/lib/mailslurp_client/models/email_text_lines_result.rb +19 -19
  72. data/lib/mailslurp_client/models/email_verification_result.rb +22 -22
  73. data/lib/mailslurp_client/models/expiration_defaults.rb +17 -17
  74. data/lib/mailslurp_client/models/expired_inbox_dto.rb +19 -19
  75. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +33 -33
  76. data/lib/mailslurp_client/models/export_link.rb +1 -1
  77. data/lib/mailslurp_client/models/export_options.rb +2 -2
  78. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +19 -19
  79. data/lib/mailslurp_client/models/forward_email_options.rb +37 -32
  80. data/lib/mailslurp_client/models/gravatar_url.rb +19 -19
  81. data/lib/mailslurp_client/models/group_contacts_dto.rb +19 -19
  82. data/lib/mailslurp_client/models/group_dto.rb +28 -28
  83. data/lib/mailslurp_client/models/group_projection.rb +29 -29
  84. data/lib/mailslurp_client/models/html_validation_result.rb +27 -12
  85. data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +72 -57
  86. data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -1
  87. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +48 -48
  88. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -1
  89. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +19 -19
  90. data/lib/mailslurp_client/models/inbox_preview.rb +59 -39
  91. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +61 -61
  92. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -1
  93. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +19 -14
  94. data/lib/mailslurp_client/models/inline_object.rb +221 -0
  95. data/lib/mailslurp_client/models/ip_address_result.rb +1 -1
  96. data/lib/mailslurp_client/models/json_schema_dto.rb +1 -1
  97. data/lib/mailslurp_client/models/match_option.rb +18 -3
  98. data/lib/mailslurp_client/models/match_options.rb +17 -17
  99. data/lib/mailslurp_client/models/missed_email.rb +77 -77
  100. data/lib/mailslurp_client/models/missed_email_projection.rb +25 -25
  101. data/lib/mailslurp_client/models/name_server_record.rb +16 -16
  102. data/lib/mailslurp_client/models/organization_inbox_projection.rb +70 -45
  103. data/lib/mailslurp_client/models/page_alias.rb +59 -50
  104. data/lib/mailslurp_client/models/page_attachment_entity.rb +59 -50
  105. data/lib/mailslurp_client/models/page_bounced_email.rb +59 -50
  106. data/lib/mailslurp_client/models/page_bounced_recipients.rb +59 -50
  107. data/lib/mailslurp_client/models/page_contact_projection.rb +59 -50
  108. data/lib/mailslurp_client/models/page_email_preview.rb +59 -50
  109. data/lib/mailslurp_client/models/page_email_projection.rb +59 -50
  110. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +59 -50
  111. data/lib/mailslurp_client/models/page_group_projection.rb +59 -50
  112. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +59 -50
  113. data/lib/mailslurp_client/models/page_inbox_projection.rb +59 -50
  114. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +59 -50
  115. data/lib/mailslurp_client/models/page_missed_email_projection.rb +59 -50
  116. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +59 -50
  117. data/lib/mailslurp_client/models/page_sent_email_projection.rb +86 -47
  118. data/lib/mailslurp_client/models/page_template_projection.rb +59 -50
  119. data/lib/mailslurp_client/models/page_thread_projection.rb +59 -50
  120. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +59 -50
  121. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +59 -50
  122. data/lib/mailslurp_client/models/page_webhook_projection.rb +59 -50
  123. data/lib/mailslurp_client/models/page_webhook_result.rb +59 -50
  124. data/lib/mailslurp_client/models/{pageable.rb → pageable_object.rb} +32 -32
  125. data/lib/mailslurp_client/models/raw_email_json.rb +1 -1
  126. data/lib/mailslurp_client/models/recipient.rb +19 -19
  127. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +47 -35
  128. data/lib/mailslurp_client/models/reply_to_email_options.rb +57 -45
  129. data/lib/mailslurp_client/models/send_email_options.rb +112 -110
  130. data/lib/mailslurp_client/models/sender.rb +20 -19
  131. data/lib/mailslurp_client/models/sent_email_dto.rb +110 -95
  132. data/lib/mailslurp_client/models/sent_email_projection.rb +88 -87
  133. data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +6 -1
  134. data/lib/mailslurp_client/models/simple_send_email_options.rb +30 -25
  135. data/lib/mailslurp_client/models/sort.rb +1 -1
  136. data/lib/mailslurp_client/models/template_dto.rb +33 -33
  137. data/lib/mailslurp_client/models/template_projection.rb +37 -37
  138. data/lib/mailslurp_client/models/template_variable.rb +1 -1
  139. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -1
  140. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -1
  141. data/lib/mailslurp_client/models/thread_projection.rb +71 -71
  142. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +54 -54
  143. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +42 -42
  144. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +25 -25
  145. data/lib/mailslurp_client/models/unread_count.rb +1 -1
  146. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -1
  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 -1
  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 +11 -1
  153. data/lib/mailslurp_client/models/validation_message.rb +2 -1
  154. data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -1
  155. data/lib/mailslurp_client/models/wait_for_conditions.rb +53 -53
  156. data/lib/mailslurp_client/models/webhook_dto.rb +105 -65
  157. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +83 -43
  158. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +85 -50
  159. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +79 -44
  160. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +98 -83
  161. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +140 -85
  162. data/lib/mailslurp_client/models/webhook_projection.rb +47 -47
  163. data/lib/mailslurp_client/models/webhook_redrive_result.rb +19 -19
  164. data/lib/mailslurp_client/models/webhook_result_dto.rb +102 -102
  165. data/lib/mailslurp_client/models/webhook_test_request.rb +28 -28
  166. data/lib/mailslurp_client/models/webhook_test_response.rb +14 -14
  167. data/lib/mailslurp_client/models/webhook_test_result.rb +19 -19
  168. data/lib/mailslurp_client/version.rb +2 -2
  169. data/lib/mailslurp_client.rb +4 -3
  170. metadata +5 -4
@@ -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,37 @@ 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
74
  if @pattern.nil?
79
75
  invalid_properties.push('invalid value for "pattern", pattern cannot be nil.')
80
76
  end
81
77
 
78
+ if @matches.nil?
79
+ invalid_properties.push('invalid value for "matches", matches cannot be nil.')
80
+ end
81
+
82
82
  invalid_properties
83
83
  end
84
84
 
85
85
  # Check to see if the all the properties in the model are valid
86
86
  # @return true if the model is valid
87
87
  def valid?
88
- return false if @matches.nil?
89
88
  return false if @pattern.nil?
89
+ return false if @matches.nil?
90
90
  true
91
91
  end
92
92
 
@@ -95,8 +95,8 @@ module MailSlurpClient
95
95
  def ==(o)
96
96
  return true if self.equal?(o)
97
97
  self.class == o.class &&
98
- matches == o.matches &&
99
- pattern == o.pattern
98
+ pattern == o.pattern &&
99
+ matches == o.matches
100
100
  end
101
101
 
102
102
  # @see the `==` method
@@ -108,7 +108,7 @@ module MailSlurpClient
108
108
  # Calculates hash code according to all attributes.
109
109
  # @return [Integer] Hash code
110
110
  def hash
111
- [matches, pattern].hash
111
+ [pattern, matches].hash
112
112
  end
113
113
 
114
114
  # 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
  # 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,37 @@ 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
74
  if @links.nil?
79
75
  invalid_properties.push('invalid value for "links", links cannot be nil.')
80
76
  end
81
77
 
78
+ if @body.nil?
79
+ invalid_properties.push('invalid value for "body", body cannot be nil.')
80
+ end
81
+
82
82
  invalid_properties
83
83
  end
84
84
 
85
85
  # Check to see if the all the properties in the model are valid
86
86
  # @return true if the model is valid
87
87
  def valid?
88
- return false if @body.nil?
89
88
  return false if @links.nil?
89
+ return false if @body.nil?
90
90
  true
91
91
  end
92
92
 
@@ -95,8 +95,8 @@ module MailSlurpClient
95
95
  def ==(o)
96
96
  return true if self.equal?(o)
97
97
  self.class == o.class &&
98
- body == o.body &&
99
- links == o.links
98
+ links == o.links &&
99
+ body == o.body
100
100
  end
101
101
 
102
102
  # @see the `==` method
@@ -108,7 +108,7 @@ module MailSlurpClient
108
108
  # Calculates hash code according to all attributes.
109
109
  # @return [Integer] Hash code
110
110
  def hash
111
- [body, links].hash
111
+ [links, body].hash
112
112
  end
113
113
 
114
114
  # 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
@@ -142,12 +142,27 @@ module MailSlurpClient
142
142
  # @return Array for valid properties with the reasons
143
143
  def list_invalid_properties
144
144
  invalid_properties = Array.new
145
+ if @id.nil?
146
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
147
+ end
148
+
149
+ if @to.nil?
150
+ invalid_properties.push('invalid value for "to", to cannot be nil.')
151
+ end
152
+
153
+ if @created_at.nil?
154
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
155
+ end
156
+
145
157
  invalid_properties
146
158
  end
147
159
 
148
160
  # Check to see if the all the properties in the model are valid
149
161
  # @return true if the model is valid
150
162
  def valid?
163
+ return false if @id.nil?
164
+ return false if @to.nil?
165
+ return false if @created_at.nil?
151
166
  true
152
167
  end
153
168
 
@@ -156,15 +171,15 @@ module MailSlurpClient
156
171
  def ==(o)
157
172
  return true if self.equal?(o)
158
173
  self.class == o.class &&
159
- attachments == o.attachments &&
174
+ id == o.id &&
175
+ subject == o.subject &&
176
+ to == o.to &&
177
+ from == o.from &&
160
178
  bcc == o.bcc &&
161
179
  cc == o.cc &&
162
180
  created_at == o.created_at &&
163
- from == o.from &&
164
- id == o.id &&
165
181
  read == o.read &&
166
- subject == o.subject &&
167
- to == o.to
182
+ attachments == o.attachments
168
183
  end
169
184
 
170
185
  # @see the `==` method
@@ -176,7 +191,7 @@ module MailSlurpClient
176
191
  # Calculates hash code according to all attributes.
177
192
  # @return [Integer] Hash code
178
193
  def hash
179
- [attachments, bcc, cc, created_at, from, id, read, subject, to].hash
194
+ [id, subject, to, from, bcc, cc, created_at, read, attachments].hash
180
195
  end
181
196
 
182
197
  # 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
+
28
+ attr_accessor :attachments
27
29
 
28
30
  attr_accessor :created_at
29
31
 
30
- attr_accessor :from
32
+ attr_accessor :bcc
31
33
 
32
- attr_accessor :id
34
+ attr_accessor :cc
33
35
 
34
- attr_accessor :inbox_id
36
+ attr_accessor :team_access
35
37
 
36
38
  attr_accessor :read
37
39
 
38
- attr_accessor :subject
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',
53
+ :'created_at' => :'createdAt',
48
54
  :'bcc' => :'bcc',
49
- :'body_excerpt' => :'bodyExcerpt',
50
- :'body_md5_hash' => :'bodyMD5Hash',
51
55
  :'cc' => :'cc',
52
- :'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>',
72
+ :'created_at' => :'DateTime',
67
73
  :'bcc' => :'Array<String>',
68
- :'body_excerpt' => :'String',
69
- :'body_md5_hash' => :'String',
70
74
  :'cc' => :'Array<String>',
71
- :'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,29 +100,31 @@ module MailSlurpClient
100
100
  h[k.to_sym] = v
101
101
  }
102
102
 
103
- if attributes.key?(:'attachments')
104
- if (value = attributes[:'attachments']).is_a?(Array)
105
- self.attachments = value
106
- end
103
+ if attributes.key?(:'id')
104
+ self.id = attributes[:'id']
107
105
  end
108
106
 
109
- if attributes.key?(:'bcc')
110
- if (value = attributes[:'bcc']).is_a?(Array)
111
- self.bcc = value
112
- end
107
+ if attributes.key?(:'from')
108
+ self.from = attributes[:'from']
113
109
  end
114
110
 
115
- if attributes.key?(:'body_excerpt')
116
- self.body_excerpt = attributes[:'body_excerpt']
111
+ if attributes.key?(:'subject')
112
+ self.subject = attributes[:'subject']
117
113
  end
118
114
 
119
- if attributes.key?(:'body_md5_hash')
120
- self.body_md5_hash = attributes[:'body_md5_hash']
115
+ if attributes.key?(:'inbox_id')
116
+ self.inbox_id = attributes[:'inbox_id']
121
117
  end
122
118
 
123
- if attributes.key?(:'cc')
124
- if (value = attributes[:'cc']).is_a?(Array)
125
- self.cc = value
119
+ if attributes.key?(:'to')
120
+ if (value = attributes[:'to']).is_a?(Array)
121
+ self.to = value
122
+ end
123
+ end
124
+
125
+ if attributes.key?(:'attachments')
126
+ if (value = attributes[:'attachments']).is_a?(Array)
127
+ self.attachments = value
126
128
  end
127
129
  end
128
130
 
@@ -130,34 +132,32 @@ module MailSlurpClient
130
132
  self.created_at = attributes[:'created_at']
131
133
  end
132
134
 
133
- if attributes.key?(:'from')
134
- self.from = attributes[:'from']
135
+ if attributes.key?(:'bcc')
136
+ if (value = attributes[:'bcc']).is_a?(Array)
137
+ self.bcc = value
138
+ end
135
139
  end
136
140
 
137
- if attributes.key?(:'id')
138
- self.id = attributes[:'id']
141
+ if attributes.key?(:'cc')
142
+ if (value = attributes[:'cc']).is_a?(Array)
143
+ self.cc = value
144
+ end
139
145
  end
140
146
 
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,10 +165,6 @@ 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
168
  if @id.nil?
173
169
  invalid_properties.push('invalid value for "id", id cannot be nil.')
174
170
  end
@@ -181,16 +177,20 @@ module MailSlurpClient
181
177
  invalid_properties.push('invalid value for "to", to cannot be nil.')
182
178
  end
183
179
 
180
+ if @created_at.nil?
181
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
182
+ end
183
+
184
184
  invalid_properties
185
185
  end
186
186
 
187
187
  # Check to see if the all the properties in the model are valid
188
188
  # @return true if the model is valid
189
189
  def valid?
190
- return false if @created_at.nil?
191
190
  return false if @id.nil?
192
191
  return false if @inbox_id.nil?
193
192
  return false if @to.nil?
193
+ return false if @created_at.nil?
194
194
  true
195
195
  end
196
196
 
@@ -199,19 +199,19 @@ module MailSlurpClient
199
199
  def ==(o)
200
200
  return true if self.equal?(o)
201
201
  self.class == o.class &&
202
+ id == o.id &&
203
+ from == o.from &&
204
+ subject == o.subject &&
205
+ inbox_id == o.inbox_id &&
206
+ to == o.to &&
202
207
  attachments == o.attachments &&
208
+ created_at == o.created_at &&
203
209
  bcc == o.bcc &&
204
- body_excerpt == o.body_excerpt &&
205
- body_md5_hash == o.body_md5_hash &&
206
210
  cc == o.cc &&
207
- 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
211
  team_access == o.team_access &&
214
- to == o.to
212
+ read == o.read &&
213
+ body_md5_hash == o.body_md5_hash &&
214
+ body_excerpt == o.body_excerpt
215
215
  end
216
216
 
217
217
  # @see the `==` method
@@ -223,7 +223,7 @@ module MailSlurpClient
223
223
  # Calculates hash code according to all attributes.
224
224
  # @return [Integer] Hash code
225
225
  def hash
226
- [attachments, bcc, body_excerpt, body_md5_hash, cc, created_at, from, id, inbox_id, read, subject, team_access, to].hash
226
+ [id, from, subject, inbox_id, to, attachments, created_at, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
227
227
  end
228
228
 
229
229
  # Builds the object from hash