mailslurp_client 15.17.5 → 15.17.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/SECURITY.md +1 -1
  3. data/SUPPORT.md +2 -2
  4. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +6 -10
  5. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  6. data/lib/mailslurp_client/models/attachment_projection.rb +15 -15
  7. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  8. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
  9. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +21 -21
  10. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +0 -5
  11. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  12. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  13. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  14. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  15. data/lib/mailslurp_client/models/page_complaint.rb +19 -19
  16. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  17. data/lib/mailslurp_client/models/page_delivery_status.rb +19 -19
  18. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  19. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  20. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  21. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  22. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  23. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  24. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +19 -19
  25. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  26. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +19 -19
  27. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +19 -19
  28. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  29. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +19 -19
  30. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  31. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  32. data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
  33. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +19 -19
  34. data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
  35. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  36. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  37. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  38. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  39. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  40. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  41. data/lib/mailslurp_client/models/phone_number_projection.rb +19 -19
  42. data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
  43. data/lib/mailslurp_client/models/thread_projection.rb +16 -16
  44. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  45. data/lib/mailslurp_client/version.rb +1 -1
  46. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 149f2c5c5313e83e2d76af88446e613e1962f04813c8d90c6bf2d498bc518391
4
- data.tar.gz: a92a1a75bd63c89e776571f2e957ab7bb8f413164940c48c924a2eb430f3b5d7
3
+ metadata.gz: 37d8da22bc5ca288df790fd14fe17d6189aa7a3e0f09a1086b479a3230536059
4
+ data.tar.gz: 13396dd20ebc8d45b51b4c6a0375fd7680201c03d910c1759d64f1322c46a36e
5
5
  SHA512:
6
- metadata.gz: e5bc422e3bd1f4725d398a7cdc336e3bd67411ee767a3ecac88dc8aa97295da6991d525fa692aaf94f55c52740ada934440b219b1e9aa33b17d1ed7951c4380d
7
- data.tar.gz: 5ecd707e8995424f22bd521088ae3d93d767e4d55ec58ba7c81c1c8dd83b15af9b6d0a3389a6183d1bb4e89932baca1b81cb55b94d08b323e7dfb795b7d1c452
6
+ metadata.gz: 1392e6dfff1ab302f5a7b1123b2197204adfd595acba49ae318ef29c39073eb0e5f47b6b36310752f6048318f85f0f3e9f2b08374c46026d0ec705b57d4e0183
7
+ data.tar.gz: '0808749ae854a7d3122e33b05475db02333887182b77d64d9c28c9f7833a904b5bf2b09461cde70402f15060d019c8786dd56edf19eed39ce8f41a731e9f1268'
data/SECURITY.md CHANGED
@@ -1,4 +1,4 @@
1
1
  # Security
2
2
 
3
3
  This client calls the MailSlurp API endpoints. Connections should be made over secure HTTPS using your secure API Token. Do not share or commit the token if you can avoid doing so.
4
- To report security issues or talk with MailSlurp support please email [support@mailslurp.zendesk.com](mailto:support@mailslurp.zendesk.com).
4
+ To report security issues or talk with MailSlurp support please email [contact@mailslurp.dev](mailto:contact@mailslurp.dev).
data/SUPPORT.md CHANGED
@@ -1,4 +1,4 @@
1
1
  # Support
2
2
 
3
- To report issues or talk with MailSlurp support please email [support@mailslurp.zendesk.com](mailto:support@mailslurp.zendesk.com).
4
- Alternatively you can visit our [support portal](https://mailslurp.zendesk.com) or open a ticket in the corresponding [Github repository](https://www.github.com/mailslurp).
3
+ To report issues or talk with MailSlurp support please email [contact@mailslurp.dev](mailto:contact@mailslurp.dev).
4
+ Alternatively you can visit our [support portal](https://www.mailslurp.com/support/) or open a ticket in the corresponding [Github repository](https://www.github.com/mailslurp).
@@ -21,29 +21,25 @@ module MailSlurpClient
21
21
  end
22
22
  # Create an inbox ruleset
23
23
  # Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving
24
- # @param inbox_id [String] Inbox id to attach ruleset to
25
24
  # @param create_inbox_ruleset_options [CreateInboxRulesetOptions]
26
25
  # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :inbox_id Inbox id to attach ruleset to
27
27
  # @return [InboxRulesetDto]
28
- def create_new_inbox_ruleset(inbox_id, create_inbox_ruleset_options, opts = {})
29
- data, _status_code, _headers = create_new_inbox_ruleset_with_http_info(inbox_id, create_inbox_ruleset_options, opts)
28
+ def create_new_inbox_ruleset(create_inbox_ruleset_options, opts = {})
29
+ data, _status_code, _headers = create_new_inbox_ruleset_with_http_info(create_inbox_ruleset_options, opts)
30
30
  data
31
31
  end
32
32
 
33
33
  # Create an inbox ruleset
34
34
  # Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving
35
- # @param inbox_id [String] Inbox id to attach ruleset to
36
35
  # @param create_inbox_ruleset_options [CreateInboxRulesetOptions]
37
36
  # @param [Hash] opts the optional parameters
37
+ # @option opts [String] :inbox_id Inbox id to attach ruleset to
38
38
  # @return [Array<(InboxRulesetDto, Integer, Hash)>] InboxRulesetDto data, response status code and response headers
39
- def create_new_inbox_ruleset_with_http_info(inbox_id, create_inbox_ruleset_options, opts = {})
39
+ def create_new_inbox_ruleset_with_http_info(create_inbox_ruleset_options, opts = {})
40
40
  if @api_client.config.debugging
41
41
  @api_client.config.logger.debug 'Calling API: InboxRulesetControllerApi.create_new_inbox_ruleset ...'
42
42
  end
43
- # verify the required parameter 'inbox_id' is set
44
- if @api_client.config.client_side_validation && inbox_id.nil?
45
- fail ArgumentError, "Missing the required parameter 'inbox_id' when calling InboxRulesetControllerApi.create_new_inbox_ruleset"
46
- end
47
43
  # verify the required parameter 'create_inbox_ruleset_options' is set
48
44
  if @api_client.config.client_side_validation && create_inbox_ruleset_options.nil?
49
45
  fail ArgumentError, "Missing the required parameter 'create_inbox_ruleset_options' when calling InboxRulesetControllerApi.create_new_inbox_ruleset"
@@ -53,7 +49,7 @@ module MailSlurpClient
53
49
 
54
50
  # query parameters
55
51
  query_params = opts[:query_params] || {}
56
- query_params[:'inboxId'] = inbox_id
52
+ query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
57
53
 
58
54
  # header parameters
59
55
  header_params = opts[:header_params] || {}
@@ -19,12 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
+ attr_accessor :inbox_id
23
+
22
24
  attr_accessor :user_id
23
25
 
24
26
  attr_accessor :email_address
25
27
 
26
- attr_accessor :inbox_id
27
-
28
28
  attr_accessor :created_at
29
29
 
30
30
  attr_accessor :updated_at
@@ -36,9 +36,9 @@ module MailSlurpClient
36
36
  {
37
37
  :'name' => :'name',
38
38
  :'id' => :'id',
39
+ :'inbox_id' => :'inboxId',
39
40
  :'user_id' => :'userId',
40
41
  :'email_address' => :'emailAddress',
41
- :'inbox_id' => :'inboxId',
42
42
  :'created_at' => :'createdAt',
43
43
  :'updated_at' => :'updatedAt',
44
44
  :'use_threads' => :'useThreads'
@@ -50,9 +50,9 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'id' => :'String',
53
+ :'inbox_id' => :'String',
53
54
  :'user_id' => :'String',
54
55
  :'email_address' => :'String',
55
- :'inbox_id' => :'String',
56
56
  :'created_at' => :'DateTime',
57
57
  :'updated_at' => :'DateTime',
58
58
  :'use_threads' => :'Boolean'
@@ -88,6 +88,10 @@ module MailSlurpClient
88
88
  self.id = attributes[:'id']
89
89
  end
90
90
 
91
+ if attributes.key?(:'inbox_id')
92
+ self.inbox_id = attributes[:'inbox_id']
93
+ end
94
+
91
95
  if attributes.key?(:'user_id')
92
96
  self.user_id = attributes[:'user_id']
93
97
  end
@@ -96,10 +100,6 @@ module MailSlurpClient
96
100
  self.email_address = attributes[:'email_address']
97
101
  end
98
102
 
99
- if attributes.key?(:'inbox_id')
100
- self.inbox_id = attributes[:'inbox_id']
101
- end
102
-
103
103
  if attributes.key?(:'created_at')
104
104
  self.created_at = attributes[:'created_at']
105
105
  end
@@ -121,6 +121,10 @@ module MailSlurpClient
121
121
  invalid_properties.push('invalid value for "id", id cannot be nil.')
122
122
  end
123
123
 
124
+ if @inbox_id.nil?
125
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
126
+ end
127
+
124
128
  if @user_id.nil?
125
129
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
126
130
  end
@@ -129,10 +133,6 @@ module MailSlurpClient
129
133
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
130
134
  end
131
135
 
132
- if @inbox_id.nil?
133
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
134
- end
135
-
136
136
  if @created_at.nil?
137
137
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
138
  end
@@ -148,9 +148,9 @@ module MailSlurpClient
148
148
  # @return true if the model is valid
149
149
  def valid?
150
150
  return false if @id.nil?
151
+ return false if @inbox_id.nil?
151
152
  return false if @user_id.nil?
152
153
  return false if @email_address.nil?
153
- return false if @inbox_id.nil?
154
154
  return false if @created_at.nil?
155
155
  return false if @updated_at.nil?
156
156
  true
@@ -163,9 +163,9 @@ module MailSlurpClient
163
163
  self.class == o.class &&
164
164
  name == o.name &&
165
165
  id == o.id &&
166
+ inbox_id == o.inbox_id &&
166
167
  user_id == o.user_id &&
167
168
  email_address == o.email_address &&
168
- inbox_id == o.inbox_id &&
169
169
  created_at == o.created_at &&
170
170
  updated_at == o.updated_at &&
171
171
  use_threads == o.use_threads
@@ -180,7 +180,7 @@ module MailSlurpClient
180
180
  # Calculates hash code according to all attributes.
181
181
  # @return [Integer] Hash code
182
182
  def hash
183
- [name, id, user_id, email_address, inbox_id, created_at, updated_at, use_threads].hash
183
+ [name, id, inbox_id, user_id, email_address, created_at, updated_at, use_threads].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -20,6 +20,9 @@ module MailSlurpClient
20
20
  # Content length of attachment in bytes
21
21
  attr_accessor :content_length
22
22
 
23
+ # Content type of attachment.
24
+ attr_accessor :content_type
25
+
23
26
  attr_accessor :user_id
24
27
 
25
28
  attr_accessor :created_at
@@ -29,19 +32,16 @@ module MailSlurpClient
29
32
  # Attachment ID
30
33
  attr_accessor :attachment_id
31
34
 
32
- # Content type of attachment.
33
- attr_accessor :content_type
34
-
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
36
36
  def self.attribute_map
37
37
  {
38
38
  :'name' => :'name',
39
39
  :'content_length' => :'contentLength',
40
+ :'content_type' => :'contentType',
40
41
  :'user_id' => :'userId',
41
42
  :'created_at' => :'createdAt',
42
43
  :'updated_at' => :'updatedAt',
43
- :'attachment_id' => :'attachmentId',
44
- :'content_type' => :'contentType'
44
+ :'attachment_id' => :'attachmentId'
45
45
  }
46
46
  end
47
47
 
@@ -50,11 +50,11 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'content_length' => :'Integer',
53
+ :'content_type' => :'String',
53
54
  :'user_id' => :'String',
54
55
  :'created_at' => :'DateTime',
55
56
  :'updated_at' => :'DateTime',
56
- :'attachment_id' => :'String',
57
- :'content_type' => :'String'
57
+ :'attachment_id' => :'String'
58
58
  }
59
59
  end
60
60
 
@@ -63,7 +63,7 @@ module MailSlurpClient
63
63
  Set.new([
64
64
  :'name',
65
65
  :'content_length',
66
- :'content_type'
66
+ :'content_type',
67
67
  ])
68
68
  end
69
69
 
@@ -90,6 +90,10 @@ module MailSlurpClient
90
90
  self.content_length = attributes[:'content_length']
91
91
  end
92
92
 
93
+ if attributes.key?(:'content_type')
94
+ self.content_type = attributes[:'content_type']
95
+ end
96
+
93
97
  if attributes.key?(:'user_id')
94
98
  self.user_id = attributes[:'user_id']
95
99
  end
@@ -105,10 +109,6 @@ module MailSlurpClient
105
109
  if attributes.key?(:'attachment_id')
106
110
  self.attachment_id = attributes[:'attachment_id']
107
111
  end
108
-
109
- if attributes.key?(:'content_type')
110
- self.content_type = attributes[:'content_type']
111
- end
112
112
  end
113
113
 
114
114
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -151,11 +151,11 @@ module MailSlurpClient
151
151
  self.class == o.class &&
152
152
  name == o.name &&
153
153
  content_length == o.content_length &&
154
+ content_type == o.content_type &&
154
155
  user_id == o.user_id &&
155
156
  created_at == o.created_at &&
156
157
  updated_at == o.updated_at &&
157
- attachment_id == o.attachment_id &&
158
- content_type == o.content_type
158
+ attachment_id == o.attachment_id
159
159
  end
160
160
 
161
161
  # @see the `==` method
@@ -167,7 +167,7 @@ module MailSlurpClient
167
167
  # Calculates hash code according to all attributes.
168
168
  # @return [Integer] Hash code
169
169
  def hash
170
- [name, content_length, user_id, created_at, updated_at, attachment_id, content_type].hash
170
+ [name, content_length, content_type, user_id, created_at, updated_at, attachment_id].hash
171
171
  end
172
172
 
173
173
  # Builds the object from hash
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :from
21
21
 
22
- attr_accessor :subject
23
-
24
22
  attr_accessor :inbox_id
25
23
 
24
+ attr_accessor :subject
25
+
26
26
  attr_accessor :attachments
27
27
 
28
28
  attr_accessor :created_at
@@ -48,8 +48,8 @@ module MailSlurpClient
48
48
  {
49
49
  :'id' => :'id',
50
50
  :'from' => :'from',
51
- :'subject' => :'subject',
52
51
  :'inbox_id' => :'inboxId',
52
+ :'subject' => :'subject',
53
53
  :'attachments' => :'attachments',
54
54
  :'created_at' => :'createdAt',
55
55
  :'to' => :'to',
@@ -68,8 +68,8 @@ module MailSlurpClient
68
68
  {
69
69
  :'id' => :'String',
70
70
  :'from' => :'String',
71
- :'subject' => :'String',
72
71
  :'inbox_id' => :'String',
72
+ :'subject' => :'String',
73
73
  :'attachments' => :'Array<String>',
74
74
  :'created_at' => :'DateTime',
75
75
  :'to' => :'Array<String>',
@@ -120,14 +120,14 @@ module MailSlurpClient
120
120
  self.from = attributes[:'from']
121
121
  end
122
122
 
123
- if attributes.key?(:'subject')
124
- self.subject = attributes[:'subject']
125
- end
126
-
127
123
  if attributes.key?(:'inbox_id')
128
124
  self.inbox_id = attributes[:'inbox_id']
129
125
  end
130
126
 
127
+ if attributes.key?(:'subject')
128
+ self.subject = attributes[:'subject']
129
+ end
130
+
131
131
  if attributes.key?(:'attachments')
132
132
  if (value = attributes[:'attachments']).is_a?(Array)
133
133
  self.attachments = value
@@ -227,8 +227,8 @@ module MailSlurpClient
227
227
  self.class == o.class &&
228
228
  id == o.id &&
229
229
  from == o.from &&
230
- subject == o.subject &&
231
230
  inbox_id == o.inbox_id &&
231
+ subject == o.subject &&
232
232
  attachments == o.attachments &&
233
233
  created_at == o.created_at &&
234
234
  to == o.to &&
@@ -250,7 +250,7 @@ module MailSlurpClient
250
250
  # Calculates hash code according to all attributes.
251
251
  # @return [Integer] Hash code
252
252
  def hash
253
- [id, from, subject, inbox_id, attachments, created_at, to, bcc, cc, domain_id, read, body_excerpt, team_access, body_md5_hash].hash
253
+ [id, from, inbox_id, subject, attachments, created_at, to, bcc, cc, domain_id, read, body_excerpt, team_access, body_md5_hash].hash
254
254
  end
255
255
 
256
256
  # Builds the object from hash
@@ -21,12 +21,12 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :status
23
23
 
24
- attr_accessor :user_id
25
-
26
24
  attr_accessor :email_id
27
25
 
28
26
  attr_accessor :inbox_id
29
27
 
28
+ attr_accessor :user_id
29
+
30
30
  attr_accessor :created_at
31
31
 
32
32
  attr_accessor :forwarder_id
@@ -59,9 +59,9 @@ module MailSlurpClient
59
59
  :'message' => :'message',
60
60
  :'id' => :'id',
61
61
  :'status' => :'status',
62
- :'user_id' => :'userId',
63
62
  :'email_id' => :'emailId',
64
63
  :'inbox_id' => :'inboxId',
64
+ :'user_id' => :'userId',
65
65
  :'created_at' => :'createdAt',
66
66
  :'forwarder_id' => :'forwarderId'
67
67
  }
@@ -73,9 +73,9 @@ module MailSlurpClient
73
73
  :'message' => :'String',
74
74
  :'id' => :'String',
75
75
  :'status' => :'String',
76
- :'user_id' => :'String',
77
76
  :'email_id' => :'String',
78
77
  :'inbox_id' => :'String',
78
+ :'user_id' => :'String',
79
79
  :'created_at' => :'DateTime',
80
80
  :'forwarder_id' => :'String'
81
81
  }
@@ -87,9 +87,9 @@ module MailSlurpClient
87
87
  :'message',
88
88
  :'id',
89
89
  :'status',
90
- :'user_id',
91
90
  :'email_id',
92
91
  :'inbox_id',
92
+ :'user_id',
93
93
  :'forwarder_id'
94
94
  ])
95
95
  end
@@ -121,10 +121,6 @@ module MailSlurpClient
121
121
  self.status = attributes[:'status']
122
122
  end
123
123
 
124
- if attributes.key?(:'user_id')
125
- self.user_id = attributes[:'user_id']
126
- end
127
-
128
124
  if attributes.key?(:'email_id')
129
125
  self.email_id = attributes[:'email_id']
130
126
  end
@@ -133,6 +129,10 @@ module MailSlurpClient
133
129
  self.inbox_id = attributes[:'inbox_id']
134
130
  end
135
131
 
132
+ if attributes.key?(:'user_id')
133
+ self.user_id = attributes[:'user_id']
134
+ end
135
+
136
136
  if attributes.key?(:'created_at')
137
137
  self.created_at = attributes[:'created_at']
138
138
  end
@@ -180,9 +180,9 @@ module MailSlurpClient
180
180
  message == o.message &&
181
181
  id == o.id &&
182
182
  status == o.status &&
183
- user_id == o.user_id &&
184
183
  email_id == o.email_id &&
185
184
  inbox_id == o.inbox_id &&
185
+ user_id == o.user_id &&
186
186
  created_at == o.created_at &&
187
187
  forwarder_id == o.forwarder_id
188
188
  end
@@ -196,7 +196,7 @@ module MailSlurpClient
196
196
  # Calculates hash code according to all attributes.
197
197
  # @return [Integer] Hash code
198
198
  def hash
199
- [message, id, status, user_id, email_id, inbox_id, created_at, forwarder_id].hash
199
+ [message, id, status, email_id, inbox_id, user_id, created_at, forwarder_id].hash
200
200
  end
201
201
 
202
202
  # Builds the object from hash
@@ -21,14 +21,14 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :status
23
23
 
24
- attr_accessor :user_id
25
-
26
- attr_accessor :recipients
27
-
28
24
  attr_accessor :email_id
29
25
 
30
26
  attr_accessor :inbox_id
31
27
 
28
+ attr_accessor :user_id
29
+
30
+ attr_accessor :recipients
31
+
32
32
  attr_accessor :created_at
33
33
 
34
34
  attr_accessor :sent_id
@@ -63,10 +63,10 @@ module MailSlurpClient
63
63
  :'message' => :'message',
64
64
  :'id' => :'id',
65
65
  :'status' => :'status',
66
- :'user_id' => :'userId',
67
- :'recipients' => :'recipients',
68
66
  :'email_id' => :'emailId',
69
67
  :'inbox_id' => :'inboxId',
68
+ :'user_id' => :'userId',
69
+ :'recipients' => :'recipients',
70
70
  :'created_at' => :'createdAt',
71
71
  :'sent_id' => :'sentId',
72
72
  :'replier_id' => :'replierId'
@@ -79,10 +79,10 @@ module MailSlurpClient
79
79
  :'message' => :'String',
80
80
  :'id' => :'String',
81
81
  :'status' => :'String',
82
- :'user_id' => :'String',
83
- :'recipients' => :'Array<String>',
84
82
  :'email_id' => :'String',
85
83
  :'inbox_id' => :'String',
84
+ :'user_id' => :'String',
85
+ :'recipients' => :'Array<String>',
86
86
  :'created_at' => :'DateTime',
87
87
  :'sent_id' => :'String',
88
88
  :'replier_id' => :'String'
@@ -95,10 +95,10 @@ module MailSlurpClient
95
95
  :'message',
96
96
  :'id',
97
97
  :'status',
98
- :'user_id',
99
- :'recipients',
100
98
  :'email_id',
101
99
  :'inbox_id',
100
+ :'user_id',
101
+ :'recipients',
102
102
  :'sent_id',
103
103
  :'replier_id'
104
104
  ])
@@ -131,6 +131,14 @@ module MailSlurpClient
131
131
  self.status = attributes[:'status']
132
132
  end
133
133
 
134
+ if attributes.key?(:'email_id')
135
+ self.email_id = attributes[:'email_id']
136
+ end
137
+
138
+ if attributes.key?(:'inbox_id')
139
+ self.inbox_id = attributes[:'inbox_id']
140
+ end
141
+
134
142
  if attributes.key?(:'user_id')
135
143
  self.user_id = attributes[:'user_id']
136
144
  end
@@ -141,14 +149,6 @@ module MailSlurpClient
141
149
  end
142
150
  end
143
151
 
144
- if attributes.key?(:'email_id')
145
- self.email_id = attributes[:'email_id']
146
- end
147
-
148
- if attributes.key?(:'inbox_id')
149
- self.inbox_id = attributes[:'inbox_id']
150
- end
151
-
152
152
  if attributes.key?(:'created_at')
153
153
  self.created_at = attributes[:'created_at']
154
154
  end
@@ -200,10 +200,10 @@ module MailSlurpClient
200
200
  message == o.message &&
201
201
  id == o.id &&
202
202
  status == o.status &&
203
- user_id == o.user_id &&
204
- recipients == o.recipients &&
205
203
  email_id == o.email_id &&
206
204
  inbox_id == o.inbox_id &&
205
+ user_id == o.user_id &&
206
+ recipients == o.recipients &&
207
207
  created_at == o.created_at &&
208
208
  sent_id == o.sent_id &&
209
209
  replier_id == o.replier_id
@@ -218,7 +218,7 @@ module MailSlurpClient
218
218
  # Calculates hash code according to all attributes.
219
219
  # @return [Integer] Hash code
220
220
  def hash
221
- [message, id, status, user_id, recipients, email_id, inbox_id, created_at, sent_id, replier_id].hash
221
+ [message, id, status, email_id, inbox_id, user_id, recipients, created_at, sent_id, replier_id].hash
222
222
  end
223
223
 
224
224
  # Builds the object from hash
@@ -135,10 +135,6 @@ module MailSlurpClient
135
135
  invalid_properties.push('invalid value for "id", id cannot be nil.')
136
136
  end
137
137
 
138
- if @inbox_id.nil?
139
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
140
- end
141
-
142
138
  if @scope.nil?
143
139
  invalid_properties.push('invalid value for "scope", scope cannot be nil.')
144
140
  end
@@ -166,7 +162,6 @@ module MailSlurpClient
166
162
  # @return true if the model is valid
167
163
  def valid?
168
164
  return false if @id.nil?
169
- return false if @inbox_id.nil?
170
165
  return false if @scope.nil?
171
166
  scope_validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
172
167
  return false unless scope_validator.valid?(@scope)