mailslurp_client 17.3.0 → 17.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/attachment_controller_api.rb +5 -5
  3. data/lib/mailslurp_client/api/email_controller_api.rb +2 -2
  4. data/lib/mailslurp_client/api/email_verification_controller_api.rb +64 -0
  5. data/lib/mailslurp_client/api/inbox_controller_api.rb +229 -0
  6. data/lib/mailslurp_client/api/phone_controller_api.rb +334 -0
  7. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +13 -13
  8. data/lib/mailslurp_client/models/alias_projection.rb +29 -29
  9. data/lib/mailslurp_client/models/alias_thread_projection.rb +16 -16
  10. data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
  11. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
  12. data/lib/mailslurp_client/models/connector_event_projection.rb +30 -30
  13. data/lib/mailslurp_client/models/connector_projection.rb +10 -10
  14. data/lib/mailslurp_client/models/contact_projection.rb +15 -15
  15. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +58 -29
  16. data/lib/mailslurp_client/models/create_inbox_replier_options.rb +39 -33
  17. data/lib/mailslurp_client/models/create_phone_number_options.rb +37 -4
  18. data/lib/mailslurp_client/models/email_intelligence_list_result.rb +285 -0
  19. data/lib/mailslurp_client/models/email_intelligence_options.rb +308 -0
  20. data/lib/mailslurp_client/models/email_intelligence_result_dto.rb +256 -0
  21. data/lib/mailslurp_client/models/email_intelligence_score_breakdown_dto.rb +296 -0
  22. data/lib/mailslurp_client/models/email_intelligence_signals_dto.rb +352 -0
  23. data/lib/mailslurp_client/models/email_intelligence_tests_options.rb +253 -0
  24. data/lib/mailslurp_client/models/email_thread_projection.rb +16 -16
  25. data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +13 -13
  26. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  27. data/lib/mailslurp_client/models/extract_attachment_text_options.rb +1 -1
  28. data/lib/mailslurp_client/models/extract_attachment_text_result.rb +1 -1
  29. data/lib/mailslurp_client/models/group_projection.rb +14 -14
  30. data/lib/mailslurp_client/models/guest_portal_user_projection.rb +24 -24
  31. data/lib/mailslurp_client/models/import_email_options.rb +269 -0
  32. data/lib/mailslurp_client/models/inbox_automation_match_option.rb +308 -0
  33. data/lib/mailslurp_client/models/inbox_automation_match_options.rb +273 -0
  34. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +65 -17
  35. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +16 -16
  36. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +17 -9
  37. data/lib/mailslurp_client/models/inbox_replier_dto.rb +41 -16
  38. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +16 -16
  39. data/lib/mailslurp_client/models/inline_object.rb +12 -58
  40. data/lib/mailslurp_client/models/inline_object1.rb +58 -12
  41. data/lib/mailslurp_client/models/inline_object2.rb +211 -0
  42. data/lib/mailslurp_client/models/opt_in_identity_projection.rb +18 -18
  43. data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +24 -24
  44. data/lib/mailslurp_client/models/page_ai_transform_projection.rb +24 -24
  45. data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +24 -24
  46. data/lib/mailslurp_client/models/page_alias.rb +24 -24
  47. data/lib/mailslurp_client/models/page_alias_thread_projection.rb +24 -24
  48. data/lib/mailslurp_client/models/page_attachment_entity.rb +24 -24
  49. data/lib/mailslurp_client/models/page_bounced_email.rb +24 -24
  50. data/lib/mailslurp_client/models/page_bounced_recipients.rb +24 -24
  51. data/lib/mailslurp_client/models/page_complaint.rb +24 -24
  52. data/lib/mailslurp_client/models/page_connector.rb +24 -24
  53. data/lib/mailslurp_client/models/page_connector_events.rb +24 -24
  54. data/lib/mailslurp_client/models/page_contact_projection.rb +24 -24
  55. data/lib/mailslurp_client/models/page_delivery_status.rb +24 -24
  56. data/lib/mailslurp_client/models/page_device_preview_run_projection.rb +24 -24
  57. data/lib/mailslurp_client/models/page_email_preview.rb +24 -24
  58. data/lib/mailslurp_client/models/page_email_projection.rb +24 -24
  59. data/lib/mailslurp_client/models/page_email_thread_projection.rb +24 -24
  60. data/lib/mailslurp_client/models/page_email_validation_request.rb +24 -24
  61. data/lib/mailslurp_client/models/page_entity_automation_items.rb +24 -24
  62. data/lib/mailslurp_client/models/page_entity_event_items.rb +24 -24
  63. data/lib/mailslurp_client/models/page_entity_favourite_items.rb +24 -24
  64. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +24 -24
  65. data/lib/mailslurp_client/models/page_group_projection.rb +24 -24
  66. data/lib/mailslurp_client/models/page_guest_portal_users.rb +24 -24
  67. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +24 -24
  68. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +24 -24
  69. data/lib/mailslurp_client/models/page_inbox_projection.rb +24 -24
  70. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +24 -24
  71. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +24 -24
  72. data/lib/mailslurp_client/models/page_inbox_tags.rb +24 -24
  73. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +24 -24
  74. data/lib/mailslurp_client/models/page_missed_email_projection.rb +24 -24
  75. data/lib/mailslurp_client/models/page_missed_sms_projection.rb +24 -24
  76. data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +24 -24
  77. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +24 -24
  78. data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +24 -24
  79. data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +24 -24
  80. data/lib/mailslurp_client/models/page_phone_number_projection.rb +24 -24
  81. data/lib/mailslurp_client/models/page_phone_number_release_projection.rb +24 -24
  82. data/lib/mailslurp_client/models/page_plus_address_projection.rb +24 -24
  83. data/lib/mailslurp_client/models/page_reputation_items.rb +24 -24
  84. data/lib/mailslurp_client/models/page_ruleset_dto.rb +24 -24
  85. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +24 -24
  86. data/lib/mailslurp_client/models/page_sent_email_projection.rb +24 -24
  87. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +24 -24
  88. data/lib/mailslurp_client/models/page_sent_sms_projection.rb +24 -24
  89. data/lib/mailslurp_client/models/page_sms_projection.rb +24 -24
  90. data/lib/mailslurp_client/models/page_template_projection.rb +24 -24
  91. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +24 -24
  92. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +24 -24
  93. data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +24 -24
  94. data/lib/mailslurp_client/models/page_webhook_projection.rb +24 -24
  95. data/lib/mailslurp_client/models/page_webhook_result.rb +24 -24
  96. data/lib/mailslurp_client/models/pageable_object.rb +13 -13
  97. data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +15 -15
  98. data/lib/mailslurp_client/models/phone_number_dto.rb +17 -1
  99. data/lib/mailslurp_client/models/phone_number_tags_options.rb +213 -0
  100. data/lib/mailslurp_client/models/plus_address_projection.rb +15 -15
  101. data/lib/mailslurp_client/models/reputation_item_projection.rb +13 -13
  102. data/lib/mailslurp_client/models/template_projection.rb +15 -15
  103. data/lib/mailslurp_client/models/update_inbox_replier_options.rb +39 -33
  104. data/lib/mailslurp_client/models/webhook_projection.rb +15 -15
  105. data/lib/mailslurp_client/version.rb +1 -1
  106. data/lib/mailslurp_client.rb +11 -0
  107. metadata +13 -2
@@ -34,6 +34,9 @@ module MailSlurpClient
34
34
  # Inbox ID
35
35
  attr_accessor :inbox_id
36
36
 
37
+ # Updated at DateTime
38
+ attr_accessor :updated_at
39
+
37
40
  # Created at DateTime
38
41
  attr_accessor :created_at
39
42
 
@@ -46,9 +49,6 @@ module MailSlurpClient
46
49
  # BCC recipients
47
50
  attr_accessor :bcc
48
51
 
49
- # Updated at DateTime
50
- attr_accessor :updated_at
51
-
52
52
  # Has attachments
53
53
  attr_accessor :has_attachments
54
54
 
@@ -82,11 +82,11 @@ module MailSlurpClient
82
82
  :'recipients' => :'recipients',
83
83
  :'user_id' => :'userId',
84
84
  :'inbox_id' => :'inboxId',
85
+ :'updated_at' => :'updatedAt',
85
86
  :'created_at' => :'createdAt',
86
87
  :'to' => :'to',
87
88
  :'cc' => :'cc',
88
89
  :'bcc' => :'bcc',
89
- :'updated_at' => :'updatedAt',
90
90
  :'has_attachments' => :'hasAttachments',
91
91
  :'unread' => :'unread',
92
92
  :'message_count' => :'messageCount',
@@ -108,11 +108,11 @@ module MailSlurpClient
108
108
  :'recipients' => :'EmailRecipientsProjection',
109
109
  :'user_id' => :'String',
110
110
  :'inbox_id' => :'String',
111
+ :'updated_at' => :'DateTime',
111
112
  :'created_at' => :'DateTime',
112
113
  :'to' => :'Array<String>',
113
114
  :'cc' => :'Array<String>',
114
115
  :'bcc' => :'Array<String>',
115
- :'updated_at' => :'DateTime',
116
116
  :'has_attachments' => :'Boolean',
117
117
  :'unread' => :'Boolean',
118
118
  :'message_count' => :'Integer',
@@ -173,6 +173,10 @@ module MailSlurpClient
173
173
  self.inbox_id = attributes[:'inbox_id']
174
174
  end
175
175
 
176
+ if attributes.key?(:'updated_at')
177
+ self.updated_at = attributes[:'updated_at']
178
+ end
179
+
176
180
  if attributes.key?(:'created_at')
177
181
  self.created_at = attributes[:'created_at']
178
182
  end
@@ -195,10 +199,6 @@ module MailSlurpClient
195
199
  end
196
200
  end
197
201
 
198
- if attributes.key?(:'updated_at')
199
- self.updated_at = attributes[:'updated_at']
200
- end
201
-
202
202
  if attributes.key?(:'has_attachments')
203
203
  self.has_attachments = attributes[:'has_attachments']
204
204
  end
@@ -244,6 +244,10 @@ module MailSlurpClient
244
244
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
245
245
  end
246
246
 
247
+ if @updated_at.nil?
248
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
249
+ end
250
+
247
251
  if @created_at.nil?
248
252
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
249
253
  end
@@ -252,10 +256,6 @@ module MailSlurpClient
252
256
  invalid_properties.push('invalid value for "to", to cannot be nil.')
253
257
  end
254
258
 
255
- if @updated_at.nil?
256
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
257
- end
258
-
259
259
  if @has_attachments.nil?
260
260
  invalid_properties.push('invalid value for "has_attachments", has_attachments cannot be nil.')
261
261
  end
@@ -276,9 +276,9 @@ module MailSlurpClient
276
276
  def valid?
277
277
  return false if @id.nil?
278
278
  return false if @user_id.nil?
279
+ return false if @updated_at.nil?
279
280
  return false if @created_at.nil?
280
281
  return false if @to.nil?
281
- return false if @updated_at.nil?
282
282
  return false if @has_attachments.nil?
283
283
  return false if @unread.nil?
284
284
  return false if @message_count.nil?
@@ -297,11 +297,11 @@ module MailSlurpClient
297
297
  recipients == o.recipients &&
298
298
  user_id == o.user_id &&
299
299
  inbox_id == o.inbox_id &&
300
+ updated_at == o.updated_at &&
300
301
  created_at == o.created_at &&
301
302
  to == o.to &&
302
303
  cc == o.cc &&
303
304
  bcc == o.bcc &&
304
- updated_at == o.updated_at &&
305
305
  has_attachments == o.has_attachments &&
306
306
  unread == o.unread &&
307
307
  message_count == o.message_count &&
@@ -321,7 +321,7 @@ module MailSlurpClient
321
321
  # Calculates hash code according to all attributes.
322
322
  # @return [Integer] Hash code
323
323
  def hash
324
- [id, from, subject, sender, recipients, user_id, inbox_id, created_at, to, cc, bcc, updated_at, has_attachments, unread, message_count, last_body_excerpt, last_text_excerpt, last_created_at, last_from, last_sender].hash
324
+ [id, from, subject, sender, recipients, user_id, inbox_id, updated_at, created_at, to, cc, bcc, has_attachments, unread, message_count, last_body_excerpt, last_text_excerpt, last_created_at, last_from, last_sender].hash
325
325
  end
326
326
 
327
327
  # Builds the object from hash
@@ -18,12 +18,12 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :id
20
20
 
21
+ attr_accessor :description
22
+
21
23
  attr_accessor :created_at
22
24
 
23
25
  attr_accessor :entity_type
24
26
 
25
- attr_accessor :description
26
-
27
27
  class EnumAttributeValidator
28
28
  attr_reader :datatype
29
29
  attr_reader :allowable_values
@@ -51,9 +51,9 @@ module MailSlurpClient
51
51
  {
52
52
  :'name' => :'name',
53
53
  :'id' => :'id',
54
+ :'description' => :'description',
54
55
  :'created_at' => :'createdAt',
55
- :'entity_type' => :'entityType',
56
- :'description' => :'description'
56
+ :'entity_type' => :'entityType'
57
57
  }
58
58
  end
59
59
 
@@ -62,9 +62,9 @@ module MailSlurpClient
62
62
  {
63
63
  :'name' => :'String',
64
64
  :'id' => :'String',
65
+ :'description' => :'String',
65
66
  :'created_at' => :'DateTime',
66
- :'entity_type' => :'String',
67
- :'description' => :'String'
67
+ :'entity_type' => :'String'
68
68
  }
69
69
  end
70
70
 
@@ -97,6 +97,10 @@ module MailSlurpClient
97
97
  self.id = attributes[:'id']
98
98
  end
99
99
 
100
+ if attributes.key?(:'description')
101
+ self.description = attributes[:'description']
102
+ end
103
+
100
104
  if attributes.key?(:'created_at')
101
105
  self.created_at = attributes[:'created_at']
102
106
  end
@@ -104,10 +108,6 @@ module MailSlurpClient
104
108
  if attributes.key?(:'entity_type')
105
109
  self.entity_type = attributes[:'entity_type']
106
110
  end
107
-
108
- if attributes.key?(:'description')
109
- self.description = attributes[:'description']
110
- end
111
111
  end
112
112
 
113
113
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -162,9 +162,9 @@ module MailSlurpClient
162
162
  self.class == o.class &&
163
163
  name == o.name &&
164
164
  id == o.id &&
165
+ description == o.description &&
165
166
  created_at == o.created_at &&
166
- entity_type == o.entity_type &&
167
- description == o.description
167
+ entity_type == o.entity_type
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
- [name, id, created_at, entity_type, description].hash
179
+ [name, id, description, created_at, entity_type].hash
180
180
  end
181
181
 
182
182
  # Builds the object from hash
@@ -17,18 +17,18 @@ module MailSlurpClient
17
17
  class ExpiredInboxRecordProjection
18
18
  attr_accessor :id
19
19
 
20
- attr_accessor :email_address
21
-
22
20
  attr_accessor :user_id
23
21
 
22
+ attr_accessor :email_address
23
+
24
24
  attr_accessor :created_at
25
25
 
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
27
27
  def self.attribute_map
28
28
  {
29
29
  :'id' => :'id',
30
- :'email_address' => :'emailAddress',
31
30
  :'user_id' => :'userId',
31
+ :'email_address' => :'emailAddress',
32
32
  :'created_at' => :'createdAt'
33
33
  }
34
34
  end
@@ -37,8 +37,8 @@ module MailSlurpClient
37
37
  def self.openapi_types
38
38
  {
39
39
  :'id' => :'String',
40
- :'email_address' => :'String',
41
40
  :'user_id' => :'String',
41
+ :'email_address' => :'String',
42
42
  :'created_at' => :'DateTime'
43
43
  }
44
44
  end
@@ -68,14 +68,14 @@ module MailSlurpClient
68
68
  self.id = attributes[:'id']
69
69
  end
70
70
 
71
- if attributes.key?(:'email_address')
72
- self.email_address = attributes[:'email_address']
73
- end
74
-
75
71
  if attributes.key?(:'user_id')
76
72
  self.user_id = attributes[:'user_id']
77
73
  end
78
74
 
75
+ if attributes.key?(:'email_address')
76
+ self.email_address = attributes[:'email_address']
77
+ end
78
+
79
79
  if attributes.key?(:'created_at')
80
80
  self.created_at = attributes[:'created_at']
81
81
  end
@@ -89,14 +89,14 @@ module MailSlurpClient
89
89
  invalid_properties.push('invalid value for "id", id cannot be nil.')
90
90
  end
91
91
 
92
- if @email_address.nil?
93
- invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
94
- end
95
-
96
92
  if @user_id.nil?
97
93
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
98
94
  end
99
95
 
96
+ if @email_address.nil?
97
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
98
+ end
99
+
100
100
  if @created_at.nil?
101
101
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
102
102
  end
@@ -108,8 +108,8 @@ module MailSlurpClient
108
108
  # @return true if the model is valid
109
109
  def valid?
110
110
  return false if @id.nil?
111
- return false if @email_address.nil?
112
111
  return false if @user_id.nil?
112
+ return false if @email_address.nil?
113
113
  return false if @created_at.nil?
114
114
  true
115
115
  end
@@ -120,8 +120,8 @@ module MailSlurpClient
120
120
  return true if self.equal?(o)
121
121
  self.class == o.class &&
122
122
  id == o.id &&
123
- email_address == o.email_address &&
124
123
  user_id == o.user_id &&
124
+ email_address == o.email_address &&
125
125
  created_at == o.created_at
126
126
  end
127
127
 
@@ -134,7 +134,7 @@ module MailSlurpClient
134
134
  # Calculates hash code according to all attributes.
135
135
  # @return [Integer] Hash code
136
136
  def hash
137
- [id, email_address, user_id, created_at].hash
137
+ [id, user_id, email_address, created_at].hash
138
138
  end
139
139
 
140
140
  # Builds the object from hash
@@ -15,7 +15,7 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Options for extracting text from an attachment. Choose a method and whether fallback is allowed.
17
17
  class ExtractAttachmentTextOptions
18
- # Method for extracting text from attachments. OCR/LLM methods are reserved for advanced extraction.
18
+ # Method for extracting text from attachments.
19
19
  attr_accessor :method
20
20
 
21
21
  # Allow fallback to native extraction when the selected method is unavailable.
@@ -21,7 +21,7 @@ module MailSlurpClient
21
21
  # Extracted text when present
22
22
  attr_accessor :text
23
23
 
24
- # Method for extracting text from attachments. OCR/LLM methods are reserved for advanced extraction.
24
+ # Method for extracting text from attachments.
25
25
  attr_accessor :method_used
26
26
 
27
27
  # Detected attachment content type
@@ -19,17 +19,17 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :created_at
23
-
24
22
  attr_accessor :description
25
23
 
24
+ attr_accessor :created_at
25
+
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
27
27
  def self.attribute_map
28
28
  {
29
29
  :'name' => :'name',
30
30
  :'id' => :'id',
31
- :'created_at' => :'createdAt',
32
- :'description' => :'description'
31
+ :'description' => :'description',
32
+ :'created_at' => :'createdAt'
33
33
  }
34
34
  end
35
35
 
@@ -38,15 +38,15 @@ module MailSlurpClient
38
38
  {
39
39
  :'name' => :'String',
40
40
  :'id' => :'String',
41
- :'created_at' => :'DateTime',
42
- :'description' => :'String'
41
+ :'description' => :'String',
42
+ :'created_at' => :'DateTime'
43
43
  }
44
44
  end
45
45
 
46
46
  # List of attributes with nullable: true
47
47
  def self.openapi_nullable
48
48
  Set.new([
49
- :'description'
49
+ :'description',
50
50
  ])
51
51
  end
52
52
 
@@ -73,13 +73,13 @@ module MailSlurpClient
73
73
  self.id = attributes[:'id']
74
74
  end
75
75
 
76
- if attributes.key?(:'created_at')
77
- self.created_at = attributes[:'created_at']
78
- end
79
-
80
76
  if attributes.key?(:'description')
81
77
  self.description = attributes[:'description']
82
78
  end
79
+
80
+ if attributes.key?(:'created_at')
81
+ self.created_at = attributes[:'created_at']
82
+ end
83
83
  end
84
84
 
85
85
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -117,8 +117,8 @@ module MailSlurpClient
117
117
  self.class == o.class &&
118
118
  name == o.name &&
119
119
  id == o.id &&
120
- created_at == o.created_at &&
121
- description == o.description
120
+ description == o.description &&
121
+ created_at == o.created_at
122
122
  end
123
123
 
124
124
  # @see the `==` method
@@ -130,7 +130,7 @@ module MailSlurpClient
130
130
  # Calculates hash code according to all attributes.
131
131
  # @return [Integer] Hash code
132
132
  def hash
133
- [name, id, created_at, description].hash
133
+ [name, id, description, created_at].hash
134
134
  end
135
135
 
136
136
  # Builds the object from hash
@@ -21,16 +21,16 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :username
23
23
 
24
- attr_accessor :email_address
25
-
26
24
  attr_accessor :user_id
27
25
 
28
- attr_accessor :inbox_id
26
+ attr_accessor :email_address
29
27
 
30
- attr_accessor :created_at
28
+ attr_accessor :inbox_id
31
29
 
32
30
  attr_accessor :updated_at
33
31
 
32
+ attr_accessor :created_at
33
+
34
34
  attr_accessor :portal_id
35
35
 
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -39,11 +39,11 @@ module MailSlurpClient
39
39
  :'name' => :'name',
40
40
  :'id' => :'id',
41
41
  :'username' => :'username',
42
- :'email_address' => :'emailAddress',
43
42
  :'user_id' => :'userId',
43
+ :'email_address' => :'emailAddress',
44
44
  :'inbox_id' => :'inboxId',
45
- :'created_at' => :'createdAt',
46
45
  :'updated_at' => :'updatedAt',
46
+ :'created_at' => :'createdAt',
47
47
  :'portal_id' => :'portalId'
48
48
  }
49
49
  end
@@ -54,11 +54,11 @@ module MailSlurpClient
54
54
  :'name' => :'String',
55
55
  :'id' => :'String',
56
56
  :'username' => :'String',
57
- :'email_address' => :'String',
58
57
  :'user_id' => :'String',
58
+ :'email_address' => :'String',
59
59
  :'inbox_id' => :'String',
60
- :'created_at' => :'DateTime',
61
60
  :'updated_at' => :'DateTime',
61
+ :'created_at' => :'DateTime',
62
62
  :'portal_id' => :'String'
63
63
  }
64
64
  end
@@ -96,26 +96,26 @@ module MailSlurpClient
96
96
  self.username = attributes[:'username']
97
97
  end
98
98
 
99
- if attributes.key?(:'email_address')
100
- self.email_address = attributes[:'email_address']
101
- end
102
-
103
99
  if attributes.key?(:'user_id')
104
100
  self.user_id = attributes[:'user_id']
105
101
  end
106
102
 
107
- if attributes.key?(:'inbox_id')
108
- self.inbox_id = attributes[:'inbox_id']
103
+ if attributes.key?(:'email_address')
104
+ self.email_address = attributes[:'email_address']
109
105
  end
110
106
 
111
- if attributes.key?(:'created_at')
112
- self.created_at = attributes[:'created_at']
107
+ if attributes.key?(:'inbox_id')
108
+ self.inbox_id = attributes[:'inbox_id']
113
109
  end
114
110
 
115
111
  if attributes.key?(:'updated_at')
116
112
  self.updated_at = attributes[:'updated_at']
117
113
  end
118
114
 
115
+ if attributes.key?(:'created_at')
116
+ self.created_at = attributes[:'created_at']
117
+ end
118
+
119
119
  if attributes.key?(:'portal_id')
120
120
  self.portal_id = attributes[:'portal_id']
121
121
  end
@@ -137,14 +137,14 @@ module MailSlurpClient
137
137
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
138
138
  end
139
139
 
140
- if @created_at.nil?
141
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
142
- end
143
-
144
140
  if @updated_at.nil?
145
141
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
146
142
  end
147
143
 
144
+ if @created_at.nil?
145
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
146
+ end
147
+
148
148
  if @portal_id.nil?
149
149
  invalid_properties.push('invalid value for "portal_id", portal_id cannot be nil.')
150
150
  end
@@ -158,8 +158,8 @@ module MailSlurpClient
158
158
  return false if @id.nil?
159
159
  return false if @username.nil?
160
160
  return false if @user_id.nil?
161
- return false if @created_at.nil?
162
161
  return false if @updated_at.nil?
162
+ return false if @created_at.nil?
163
163
  return false if @portal_id.nil?
164
164
  true
165
165
  end
@@ -172,11 +172,11 @@ module MailSlurpClient
172
172
  name == o.name &&
173
173
  id == o.id &&
174
174
  username == o.username &&
175
- email_address == o.email_address &&
176
175
  user_id == o.user_id &&
176
+ email_address == o.email_address &&
177
177
  inbox_id == o.inbox_id &&
178
- created_at == o.created_at &&
179
178
  updated_at == o.updated_at &&
179
+ created_at == o.created_at &&
180
180
  portal_id == o.portal_id
181
181
  end
182
182
 
@@ -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
- [name, id, username, email_address, user_id, inbox_id, created_at, updated_at, portal_id].hash
192
+ [name, id, username, user_id, email_address, inbox_id, updated_at, created_at, portal_id].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash