mailslurp_client 15.18.5 → 15.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/connector_controller_api.rb +260 -0
  3. data/lib/mailslurp_client/api/domain_controller_api.rb +126 -0
  4. data/lib/mailslurp_client/api/email_controller_api.rb +138 -0
  5. data/lib/mailslurp_client/api/imap_controller_api.rb +279 -0
  6. data/lib/mailslurp_client/api/inbox_controller_api.rb +114 -0
  7. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +3 -0
  8. data/lib/mailslurp_client/api/mail_server_controller_api.rb +62 -0
  9. data/lib/mailslurp_client/models/alias_projection.rb +29 -29
  10. data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
  11. data/lib/mailslurp_client/models/bounce_projection.rb +29 -29
  12. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +22 -22
  13. data/lib/mailslurp_client/models/connector_dto.rb +42 -108
  14. data/lib/mailslurp_client/models/connector_imap_connection_dto.rb +311 -0
  15. data/lib/mailslurp_client/models/connector_projection.rb +39 -43
  16. data/lib/mailslurp_client/models/connector_smtp_connection_dto.rb +293 -0
  17. data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
  18. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  19. data/lib/mailslurp_client/models/create_connector_imap_connection_options.rb +286 -0
  20. data/lib/mailslurp_client/models/create_connector_options.rb +38 -87
  21. data/lib/mailslurp_client/models/create_connector_smtp_connection_options.rb +256 -0
  22. data/lib/mailslurp_client/models/dns_lookup_options.rb +1 -1
  23. data/lib/mailslurp_client/models/dns_lookups_options.rb +214 -0
  24. data/lib/mailslurp_client/models/domain_group.rb +261 -0
  25. data/lib/mailslurp_client/models/domain_groups_dto.rb +213 -0
  26. data/lib/mailslurp_client/models/domain_information.rb +274 -0
  27. data/lib/mailslurp_client/models/email_preview_urls.rb +18 -4
  28. data/lib/mailslurp_client/models/email_projection.rb +19 -19
  29. data/lib/mailslurp_client/models/email_screenshot_result.rb +211 -0
  30. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  31. data/lib/mailslurp_client/models/get_email_screenshot_options.rb +220 -0
  32. data/lib/mailslurp_client/models/imap_access_details.rb +273 -0
  33. data/lib/mailslurp_client/models/imap_email_projection.rb +239 -0
  34. data/lib/mailslurp_client/models/{create_connector_imap_options.rb → imap_server_fetch_item.rb} +55 -49
  35. data/lib/mailslurp_client/models/imap_server_fetch_result.rb +208 -0
  36. data/lib/mailslurp_client/models/{create_connector_imap_fetch_options.rb → imap_server_list_options.rb} +18 -16
  37. data/lib/mailslurp_client/models/imap_server_list_result.rb +213 -0
  38. data/lib/mailslurp_client/models/imap_server_search_options.rb +318 -0
  39. data/lib/mailslurp_client/models/imap_server_search_result.rb +213 -0
  40. data/lib/mailslurp_client/models/imap_smtp_access_details.rb +16 -1
  41. data/lib/mailslurp_client/models/imap_update_flags_options.rb +277 -0
  42. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
  43. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +10 -10
  44. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
  45. data/lib/mailslurp_client/models/match_option.rb +4 -4
  46. data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
  47. data/lib/mailslurp_client/models/page_alias.rb +15 -15
  48. data/lib/mailslurp_client/models/page_attachment_entity.rb +15 -15
  49. data/lib/mailslurp_client/models/page_bounced_email.rb +15 -15
  50. data/lib/mailslurp_client/models/page_bounced_recipients.rb +15 -15
  51. data/lib/mailslurp_client/models/page_complaint.rb +15 -15
  52. data/lib/mailslurp_client/models/page_connector.rb +15 -15
  53. data/lib/mailslurp_client/models/page_connector_sync_events.rb +15 -15
  54. data/lib/mailslurp_client/models/page_contact_projection.rb +15 -15
  55. data/lib/mailslurp_client/models/page_delivery_status.rb +15 -15
  56. data/lib/mailslurp_client/models/page_email_preview.rb +15 -15
  57. data/lib/mailslurp_client/models/page_email_projection.rb +15 -15
  58. data/lib/mailslurp_client/models/page_email_validation_request.rb +15 -15
  59. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +15 -15
  60. data/lib/mailslurp_client/models/page_group_projection.rb +15 -15
  61. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +15 -15
  62. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +15 -15
  63. data/lib/mailslurp_client/models/page_inbox_projection.rb +15 -15
  64. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +15 -15
  65. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +15 -15
  66. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +15 -15
  67. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +15 -15
  68. data/lib/mailslurp_client/models/page_missed_email_projection.rb +15 -15
  69. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +15 -15
  70. data/lib/mailslurp_client/models/page_phone_number_projection.rb +15 -15
  71. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +15 -15
  72. data/lib/mailslurp_client/models/page_sent_email_projection.rb +15 -15
  73. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +15 -15
  74. data/lib/mailslurp_client/models/page_sms_projection.rb +15 -15
  75. data/lib/mailslurp_client/models/page_template_projection.rb +15 -15
  76. data/lib/mailslurp_client/models/page_thread_projection.rb +15 -15
  77. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +15 -15
  78. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +15 -15
  79. data/lib/mailslurp_client/models/page_webhook_projection.rb +15 -15
  80. data/lib/mailslurp_client/models/page_webhook_result.rb +15 -15
  81. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  82. data/lib/mailslurp_client/models/sent_email_projection.rb +35 -35
  83. data/lib/mailslurp_client/models/sms_match_option.rb +2 -2
  84. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  85. data/lib/mailslurp_client/models/smtp_access_details.rb +329 -0
  86. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  87. data/lib/mailslurp_client/models/thread_projection.rb +35 -35
  88. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
  89. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
  90. data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
  91. data/lib/mailslurp_client/version.rb +1 -1
  92. data/lib/mailslurp_client.rb +21 -2
  93. metadata +23 -4
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_pages
23
-
24
22
  attr_accessor :total_elements
25
23
 
24
+ attr_accessor :total_pages
25
+
26
26
  attr_accessor :last
27
27
 
28
28
  attr_accessor :number_of_elements
@@ -42,8 +42,8 @@ module MailSlurpClient
42
42
  {
43
43
  :'content' => :'content',
44
44
  :'pageable' => :'pageable',
45
- :'total_pages' => :'totalPages',
46
45
  :'total_elements' => :'totalElements',
46
+ :'total_pages' => :'totalPages',
47
47
  :'last' => :'last',
48
48
  :'number_of_elements' => :'numberOfElements',
49
49
  :'first' => :'first',
@@ -59,8 +59,8 @@ module MailSlurpClient
59
59
  {
60
60
  :'content' => :'Array<UnknownMissedEmailProjection>',
61
61
  :'pageable' => :'PageableObject',
62
- :'total_pages' => :'Integer',
63
62
  :'total_elements' => :'Integer',
63
+ :'total_pages' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'number_of_elements' => :'Integer',
66
66
  :'first' => :'Boolean',
@@ -102,14 +102,14 @@ module MailSlurpClient
102
102
  self.pageable = attributes[:'pageable']
103
103
  end
104
104
 
105
- if attributes.key?(:'total_pages')
106
- self.total_pages = attributes[:'total_pages']
107
- end
108
-
109
105
  if attributes.key?(:'total_elements')
110
106
  self.total_elements = attributes[:'total_elements']
111
107
  end
112
108
 
109
+ if attributes.key?(:'total_pages')
110
+ self.total_pages = attributes[:'total_pages']
111
+ end
112
+
113
113
  if attributes.key?(:'last')
114
114
  self.last = attributes[:'last']
115
115
  end
@@ -143,22 +143,22 @@ module MailSlurpClient
143
143
  # @return Array for valid properties with the reasons
144
144
  def list_invalid_properties
145
145
  invalid_properties = Array.new
146
- if @total_pages.nil?
147
- invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
- end
149
-
150
146
  if @total_elements.nil?
151
147
  invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
148
  end
153
149
 
150
+ if @total_pages.nil?
151
+ invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
152
+ end
153
+
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
- return false if @total_pages.nil?
161
160
  return false if @total_elements.nil?
161
+ return false if @total_pages.nil?
162
162
  true
163
163
  end
164
164
 
@@ -169,8 +169,8 @@ module MailSlurpClient
169
169
  self.class == o.class &&
170
170
  content == o.content &&
171
171
  pageable == o.pageable &&
172
- total_pages == o.total_pages &&
173
172
  total_elements == o.total_elements &&
173
+ total_pages == o.total_pages &&
174
174
  last == o.last &&
175
175
  number_of_elements == o.number_of_elements &&
176
176
  first == o.first &&
@@ -189,7 +189,7 @@ module MailSlurpClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_pages
23
-
24
22
  attr_accessor :total_elements
25
23
 
24
+ attr_accessor :total_pages
25
+
26
26
  attr_accessor :last
27
27
 
28
28
  attr_accessor :number_of_elements
@@ -42,8 +42,8 @@ module MailSlurpClient
42
42
  {
43
43
  :'content' => :'content',
44
44
  :'pageable' => :'pageable',
45
- :'total_pages' => :'totalPages',
46
45
  :'total_elements' => :'totalElements',
46
+ :'total_pages' => :'totalPages',
47
47
  :'last' => :'last',
48
48
  :'number_of_elements' => :'numberOfElements',
49
49
  :'first' => :'first',
@@ -59,8 +59,8 @@ module MailSlurpClient
59
59
  {
60
60
  :'content' => :'Array<WebhookProjection>',
61
61
  :'pageable' => :'PageableObject',
62
- :'total_pages' => :'Integer',
63
62
  :'total_elements' => :'Integer',
63
+ :'total_pages' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'number_of_elements' => :'Integer',
66
66
  :'first' => :'Boolean',
@@ -102,14 +102,14 @@ module MailSlurpClient
102
102
  self.pageable = attributes[:'pageable']
103
103
  end
104
104
 
105
- if attributes.key?(:'total_pages')
106
- self.total_pages = attributes[:'total_pages']
107
- end
108
-
109
105
  if attributes.key?(:'total_elements')
110
106
  self.total_elements = attributes[:'total_elements']
111
107
  end
112
108
 
109
+ if attributes.key?(:'total_pages')
110
+ self.total_pages = attributes[:'total_pages']
111
+ end
112
+
113
113
  if attributes.key?(:'last')
114
114
  self.last = attributes[:'last']
115
115
  end
@@ -143,22 +143,22 @@ module MailSlurpClient
143
143
  # @return Array for valid properties with the reasons
144
144
  def list_invalid_properties
145
145
  invalid_properties = Array.new
146
- if @total_pages.nil?
147
- invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
- end
149
-
150
146
  if @total_elements.nil?
151
147
  invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
148
  end
153
149
 
150
+ if @total_pages.nil?
151
+ invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
152
+ end
153
+
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
- return false if @total_pages.nil?
161
160
  return false if @total_elements.nil?
161
+ return false if @total_pages.nil?
162
162
  true
163
163
  end
164
164
 
@@ -169,8 +169,8 @@ module MailSlurpClient
169
169
  self.class == o.class &&
170
170
  content == o.content &&
171
171
  pageable == o.pageable &&
172
- total_pages == o.total_pages &&
173
172
  total_elements == o.total_elements &&
173
+ total_pages == o.total_pages &&
174
174
  last == o.last &&
175
175
  number_of_elements == o.number_of_elements &&
176
176
  first == o.first &&
@@ -189,7 +189,7 @@ module MailSlurpClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_pages
23
-
24
22
  attr_accessor :total_elements
25
23
 
24
+ attr_accessor :total_pages
25
+
26
26
  attr_accessor :last
27
27
 
28
28
  attr_accessor :number_of_elements
@@ -42,8 +42,8 @@ module MailSlurpClient
42
42
  {
43
43
  :'content' => :'content',
44
44
  :'pageable' => :'pageable',
45
- :'total_pages' => :'totalPages',
46
45
  :'total_elements' => :'totalElements',
46
+ :'total_pages' => :'totalPages',
47
47
  :'last' => :'last',
48
48
  :'number_of_elements' => :'numberOfElements',
49
49
  :'first' => :'first',
@@ -59,8 +59,8 @@ module MailSlurpClient
59
59
  {
60
60
  :'content' => :'Array<WebhookResultDto>',
61
61
  :'pageable' => :'PageableObject',
62
- :'total_pages' => :'Integer',
63
62
  :'total_elements' => :'Integer',
63
+ :'total_pages' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'number_of_elements' => :'Integer',
66
66
  :'first' => :'Boolean',
@@ -102,14 +102,14 @@ module MailSlurpClient
102
102
  self.pageable = attributes[:'pageable']
103
103
  end
104
104
 
105
- if attributes.key?(:'total_pages')
106
- self.total_pages = attributes[:'total_pages']
107
- end
108
-
109
105
  if attributes.key?(:'total_elements')
110
106
  self.total_elements = attributes[:'total_elements']
111
107
  end
112
108
 
109
+ if attributes.key?(:'total_pages')
110
+ self.total_pages = attributes[:'total_pages']
111
+ end
112
+
113
113
  if attributes.key?(:'last')
114
114
  self.last = attributes[:'last']
115
115
  end
@@ -143,22 +143,22 @@ module MailSlurpClient
143
143
  # @return Array for valid properties with the reasons
144
144
  def list_invalid_properties
145
145
  invalid_properties = Array.new
146
- if @total_pages.nil?
147
- invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
- end
149
-
150
146
  if @total_elements.nil?
151
147
  invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
148
  end
153
149
 
150
+ if @total_pages.nil?
151
+ invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
152
+ end
153
+
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
- return false if @total_pages.nil?
161
160
  return false if @total_elements.nil?
161
+ return false if @total_pages.nil?
162
162
  true
163
163
  end
164
164
 
@@ -169,8 +169,8 @@ module MailSlurpClient
169
169
  self.class == o.class &&
170
170
  content == o.content &&
171
171
  pageable == o.pageable &&
172
- total_pages == o.total_pages &&
173
172
  total_elements == o.total_elements &&
173
+ total_pages == o.total_pages &&
174
174
  last == o.last &&
175
175
  number_of_elements == o.number_of_elements &&
176
176
  first == o.first &&
@@ -189,7 +189,7 @@ module MailSlurpClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -15,14 +15,14 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Phone number projection
17
17
  class PhoneNumberProjection
18
- attr_accessor :created_at
19
-
20
18
  attr_accessor :user_id
21
19
 
22
20
  attr_accessor :phone_number
23
21
 
24
22
  attr_accessor :phone_country
25
23
 
24
+ attr_accessor :created_at
25
+
26
26
  attr_accessor :id
27
27
 
28
28
  class EnumAttributeValidator
@@ -50,10 +50,10 @@ module MailSlurpClient
50
50
  # Attribute mapping from ruby-style variable name to JSON key.
51
51
  def self.attribute_map
52
52
  {
53
- :'created_at' => :'createdAt',
54
53
  :'user_id' => :'userId',
55
54
  :'phone_number' => :'phoneNumber',
56
55
  :'phone_country' => :'phoneCountry',
56
+ :'created_at' => :'createdAt',
57
57
  :'id' => :'id'
58
58
  }
59
59
  end
@@ -61,10 +61,10 @@ module MailSlurpClient
61
61
  # Attribute type mapping.
62
62
  def self.openapi_types
63
63
  {
64
- :'created_at' => :'DateTime',
65
64
  :'user_id' => :'String',
66
65
  :'phone_number' => :'String',
67
66
  :'phone_country' => :'String',
67
+ :'created_at' => :'DateTime',
68
68
  :'id' => :'String'
69
69
  }
70
70
  end
@@ -90,10 +90,6 @@ module MailSlurpClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
- if attributes.key?(:'created_at')
94
- self.created_at = attributes[:'created_at']
95
- end
96
-
97
93
  if attributes.key?(:'user_id')
98
94
  self.user_id = attributes[:'user_id']
99
95
  end
@@ -106,6 +102,10 @@ module MailSlurpClient
106
102
  self.phone_country = attributes[:'phone_country']
107
103
  end
108
104
 
105
+ if attributes.key?(:'created_at')
106
+ self.created_at = attributes[:'created_at']
107
+ end
108
+
109
109
  if attributes.key?(:'id')
110
110
  self.id = attributes[:'id']
111
111
  end
@@ -115,10 +115,6 @@ module MailSlurpClient
115
115
  # @return Array for valid properties with the reasons
116
116
  def list_invalid_properties
117
117
  invalid_properties = Array.new
118
- if @created_at.nil?
119
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
120
- end
121
-
122
118
  if @user_id.nil?
123
119
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
124
120
  end
@@ -131,6 +127,10 @@ module MailSlurpClient
131
127
  invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
132
128
  end
133
129
 
130
+ if @created_at.nil?
131
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
132
+ end
133
+
134
134
  if @id.nil?
135
135
  invalid_properties.push('invalid value for "id", id cannot be nil.')
136
136
  end
@@ -141,12 +141,12 @@ module MailSlurpClient
141
141
  # Check to see if the all the properties in the model are valid
142
142
  # @return true if the model is valid
143
143
  def valid?
144
- return false if @created_at.nil?
145
144
  return false if @user_id.nil?
146
145
  return false if @phone_number.nil?
147
146
  return false if @phone_country.nil?
148
147
  phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
149
148
  return false unless phone_country_validator.valid?(@phone_country)
149
+ return false if @created_at.nil?
150
150
  return false if @id.nil?
151
151
  true
152
152
  end
@@ -166,10 +166,10 @@ module MailSlurpClient
166
166
  def ==(o)
167
167
  return true if self.equal?(o)
168
168
  self.class == o.class &&
169
- created_at == o.created_at &&
170
169
  user_id == o.user_id &&
171
170
  phone_number == o.phone_number &&
172
171
  phone_country == o.phone_country &&
172
+ created_at == o.created_at &&
173
173
  id == o.id
174
174
  end
175
175
 
@@ -182,7 +182,7 @@ module MailSlurpClient
182
182
  # Calculates hash code according to all attributes.
183
183
  # @return [Integer] Hash code
184
184
  def hash
185
- [created_at, user_id, phone_number, phone_country, id].hash
185
+ [user_id, phone_number, phone_country, created_at, id].hash
186
186
  end
187
187
 
188
188
  # Builds the object from hash
@@ -14,20 +14,18 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class SentEmailProjection
17
- attr_accessor :created_at
17
+ attr_accessor :subject
18
18
 
19
19
  attr_accessor :id
20
20
 
21
21
  attr_accessor :body_md5_hash
22
22
 
23
- attr_accessor :user_id
24
-
25
23
  attr_accessor :from
26
24
 
27
- attr_accessor :subject
28
-
29
25
  attr_accessor :inbox_id
30
26
 
27
+ attr_accessor :user_id
28
+
31
29
  attr_accessor :attachments
32
30
 
33
31
  attr_accessor :to
@@ -36,22 +34,24 @@ module MailSlurpClient
36
34
 
37
35
  attr_accessor :cc
38
36
 
37
+ attr_accessor :created_at
38
+
39
39
  attr_accessor :virtual_send
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'created_at' => :'createdAt',
44
+ :'subject' => :'subject',
45
45
  :'id' => :'id',
46
46
  :'body_md5_hash' => :'bodyMD5Hash',
47
- :'user_id' => :'userId',
48
47
  :'from' => :'from',
49
- :'subject' => :'subject',
50
48
  :'inbox_id' => :'inboxId',
49
+ :'user_id' => :'userId',
51
50
  :'attachments' => :'attachments',
52
51
  :'to' => :'to',
53
52
  :'bcc' => :'bcc',
54
53
  :'cc' => :'cc',
54
+ :'created_at' => :'createdAt',
55
55
  :'virtual_send' => :'virtualSend'
56
56
  }
57
57
  end
@@ -59,17 +59,17 @@ module MailSlurpClient
59
59
  # Attribute type mapping.
60
60
  def self.openapi_types
61
61
  {
62
- :'created_at' => :'DateTime',
62
+ :'subject' => :'String',
63
63
  :'id' => :'String',
64
64
  :'body_md5_hash' => :'String',
65
- :'user_id' => :'String',
66
65
  :'from' => :'String',
67
- :'subject' => :'String',
68
66
  :'inbox_id' => :'String',
67
+ :'user_id' => :'String',
69
68
  :'attachments' => :'Array<String>',
70
69
  :'to' => :'Array<String>',
71
70
  :'bcc' => :'Array<String>',
72
71
  :'cc' => :'Array<String>',
72
+ :'created_at' => :'DateTime',
73
73
  :'virtual_send' => :'Boolean'
74
74
  }
75
75
  end
@@ -95,8 +95,8 @@ module MailSlurpClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'created_at')
99
- self.created_at = attributes[:'created_at']
98
+ if attributes.key?(:'subject')
99
+ self.subject = attributes[:'subject']
100
100
  end
101
101
 
102
102
  if attributes.key?(:'id')
@@ -107,22 +107,18 @@ module MailSlurpClient
107
107
  self.body_md5_hash = attributes[:'body_md5_hash']
108
108
  end
109
109
 
110
- if attributes.key?(:'user_id')
111
- self.user_id = attributes[:'user_id']
112
- end
113
-
114
110
  if attributes.key?(:'from')
115
111
  self.from = attributes[:'from']
116
112
  end
117
113
 
118
- if attributes.key?(:'subject')
119
- self.subject = attributes[:'subject']
120
- end
121
-
122
114
  if attributes.key?(:'inbox_id')
123
115
  self.inbox_id = attributes[:'inbox_id']
124
116
  end
125
117
 
118
+ if attributes.key?(:'user_id')
119
+ self.user_id = attributes[:'user_id']
120
+ end
121
+
126
122
  if attributes.key?(:'attachments')
127
123
  if (value = attributes[:'attachments']).is_a?(Array)
128
124
  self.attachments = value
@@ -147,6 +143,10 @@ module MailSlurpClient
147
143
  end
148
144
  end
149
145
 
146
+ if attributes.key?(:'created_at')
147
+ self.created_at = attributes[:'created_at']
148
+ end
149
+
150
150
  if attributes.key?(:'virtual_send')
151
151
  self.virtual_send = attributes[:'virtual_send']
152
152
  end
@@ -156,22 +156,18 @@ module MailSlurpClient
156
156
  # @return Array for valid properties with the reasons
157
157
  def list_invalid_properties
158
158
  invalid_properties = Array.new
159
- if @created_at.nil?
160
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
161
- end
162
-
163
159
  if @id.nil?
164
160
  invalid_properties.push('invalid value for "id", id cannot be nil.')
165
161
  end
166
162
 
167
- if @user_id.nil?
168
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
169
- end
170
-
171
163
  if @inbox_id.nil?
172
164
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
173
165
  end
174
166
 
167
+ if @user_id.nil?
168
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
169
+ end
170
+
175
171
  if @attachments.nil?
176
172
  invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
177
173
  end
@@ -188,6 +184,10 @@ module MailSlurpClient
188
184
  invalid_properties.push('invalid value for "cc", cc cannot be nil.')
189
185
  end
190
186
 
187
+ if @created_at.nil?
188
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
189
+ end
190
+
191
191
  if @virtual_send.nil?
192
192
  invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
193
193
  end
@@ -198,14 +198,14 @@ module MailSlurpClient
198
198
  # Check to see if the all the properties in the model are valid
199
199
  # @return true if the model is valid
200
200
  def valid?
201
- return false if @created_at.nil?
202
201
  return false if @id.nil?
203
- return false if @user_id.nil?
204
202
  return false if @inbox_id.nil?
203
+ return false if @user_id.nil?
205
204
  return false if @attachments.nil?
206
205
  return false if @to.nil?
207
206
  return false if @bcc.nil?
208
207
  return false if @cc.nil?
208
+ return false if @created_at.nil?
209
209
  return false if @virtual_send.nil?
210
210
  true
211
211
  end
@@ -215,17 +215,17 @@ module MailSlurpClient
215
215
  def ==(o)
216
216
  return true if self.equal?(o)
217
217
  self.class == o.class &&
218
- created_at == o.created_at &&
218
+ subject == o.subject &&
219
219
  id == o.id &&
220
220
  body_md5_hash == o.body_md5_hash &&
221
- user_id == o.user_id &&
222
221
  from == o.from &&
223
- subject == o.subject &&
224
222
  inbox_id == o.inbox_id &&
223
+ user_id == o.user_id &&
225
224
  attachments == o.attachments &&
226
225
  to == o.to &&
227
226
  bcc == o.bcc &&
228
227
  cc == o.cc &&
228
+ created_at == o.created_at &&
229
229
  virtual_send == o.virtual_send
230
230
  end
231
231
 
@@ -238,7 +238,7 @@ module MailSlurpClient
238
238
  # Calculates hash code according to all attributes.
239
239
  # @return [Integer] Hash code
240
240
  def hash
241
- [created_at, id, body_md5_hash, user_id, from, subject, inbox_id, attachments, to, bcc, cc, virtual_send].hash
241
+ [subject, id, body_md5_hash, from, inbox_id, user_id, attachments, to, bcc, cc, created_at, virtual_send].hash
242
242
  end
243
243
 
244
244
  # Builds the object from hash
@@ -124,7 +124,7 @@ module MailSlurpClient
124
124
  field_validator = EnumAttributeValidator.new('String', ["BODY", "FROM"])
125
125
  return false unless field_validator.valid?(@field)
126
126
  return false if @should.nil?
127
- should_validator = EnumAttributeValidator.new('String', ["CONTAIN", "EQUAL"])
127
+ should_validator = EnumAttributeValidator.new('String', ["MATCH", "CONTAIN", "EQUAL"])
128
128
  return false unless should_validator.valid?(@should)
129
129
  return false if @value.nil?
130
130
  true
@@ -143,7 +143,7 @@ module MailSlurpClient
143
143
  # Custom attribute writer method checking allowed values (enum).
144
144
  # @param [Object] should Object to be assigned
145
145
  def should=(should)
146
- validator = EnumAttributeValidator.new('String', ["CONTAIN", "EQUAL"])
146
+ validator = EnumAttributeValidator.new('String', ["MATCH", "CONTAIN", "EQUAL"])
147
147
  unless validator.valid?(should)
148
148
  fail ArgumentError, "invalid value for \"should\", must be one of #{validator.allowable_values}."
149
149
  end