mailslurp_client 15.13.6 → 15.13.9

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 (51) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/webhook_controller_api.rb +87 -2
  3. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +2 -2
  4. data/lib/mailslurp_client/models/alias_projection.rb +27 -27
  5. data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
  6. data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
  7. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +13 -13
  8. data/lib/mailslurp_client/models/create_webhook_options.rb +2 -2
  9. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  10. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  11. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  12. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  13. data/lib/mailslurp_client/models/page_complaint.rb +19 -19
  14. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  15. data/lib/mailslurp_client/models/page_delivery_status.rb +19 -19
  16. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  17. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  18. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  19. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  20. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  21. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  22. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  23. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  24. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  25. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  26. data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
  27. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  28. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
  29. data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
  30. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  31. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  32. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  33. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  34. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  35. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  36. data/lib/mailslurp_client/models/phone_number_projection.rb +19 -19
  37. data/lib/mailslurp_client/models/template_projection.rb +15 -15
  38. data/lib/mailslurp_client/models/thread_projection.rb +16 -16
  39. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +19 -19
  40. data/lib/mailslurp_client/models/webhook_bounce_payload.rb +4 -2
  41. data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +2 -2
  42. data/lib/mailslurp_client/models/webhook_dto.rb +2 -2
  43. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +3 -3
  44. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +3 -3
  45. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +2 -2
  46. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +17 -2
  47. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +3 -3
  48. data/lib/mailslurp_client/models/webhook_projection.rb +12 -3
  49. data/lib/mailslurp_client/models/webhook_result_dto.rb +2 -2
  50. data/lib/mailslurp_client/version.rb +1 -1
  51. metadata +2 -2
@@ -21,22 +21,22 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :last
25
-
26
24
  attr_accessor :total_pages
27
25
 
28
26
  attr_accessor :total_elements
29
27
 
28
+ attr_accessor :last
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
33
33
 
34
34
  attr_accessor :sort
35
35
 
36
- attr_accessor :first
37
-
38
36
  attr_accessor :number_of_elements
39
37
 
38
+ attr_accessor :first
39
+
40
40
  attr_accessor :empty
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,14 +45,14 @@ module MailSlurpClient
45
45
  :'content' => :'content',
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
- :'last' => :'last',
49
48
  :'total_pages' => :'totalPages',
50
49
  :'total_elements' => :'totalElements',
50
+ :'last' => :'last',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
54
- :'first' => :'first',
55
54
  :'number_of_elements' => :'numberOfElements',
55
+ :'first' => :'first',
56
56
  :'empty' => :'empty'
57
57
  }
58
58
  end
@@ -63,14 +63,14 @@ module MailSlurpClient
63
63
  :'content' => :'Array<WebhookProjection>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
- :'last' => :'Boolean',
67
66
  :'total_pages' => :'Integer',
68
67
  :'total_elements' => :'Integer',
68
+ :'last' => :'Boolean',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
72
- :'first' => :'Boolean',
73
72
  :'number_of_elements' => :'Integer',
73
+ :'first' => :'Boolean',
74
74
  :'empty' => :'Boolean'
75
75
  }
76
76
  end
@@ -110,10 +110,6 @@ module MailSlurpClient
110
110
  self.total = attributes[:'total']
111
111
  end
112
112
 
113
- if attributes.key?(:'last')
114
- self.last = attributes[:'last']
115
- end
116
-
117
113
  if attributes.key?(:'total_pages')
118
114
  self.total_pages = attributes[:'total_pages']
119
115
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.total_elements = attributes[:'total_elements']
123
119
  end
124
120
 
121
+ if attributes.key?(:'last')
122
+ self.last = attributes[:'last']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -134,14 +134,14 @@ module MailSlurpClient
134
134
  self.sort = attributes[:'sort']
135
135
  end
136
136
 
137
- if attributes.key?(:'first')
138
- self.first = attributes[:'first']
139
- end
140
-
141
137
  if attributes.key?(:'number_of_elements')
142
138
  self.number_of_elements = attributes[:'number_of_elements']
143
139
  end
144
140
 
141
+ if attributes.key?(:'first')
142
+ self.first = attributes[:'first']
143
+ end
144
+
145
145
  if attributes.key?(:'empty')
146
146
  self.empty = attributes[:'empty']
147
147
  end
@@ -168,14 +168,14 @@ module MailSlurpClient
168
168
  content == o.content &&
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
- last == o.last &&
172
171
  total_pages == o.total_pages &&
173
172
  total_elements == o.total_elements &&
173
+ last == o.last &&
174
174
  size == o.size &&
175
175
  number == o.number &&
176
176
  sort == o.sort &&
177
- first == o.first &&
178
177
  number_of_elements == o.number_of_elements &&
178
+ first == o.first &&
179
179
  empty == o.empty
180
180
  end
181
181
 
@@ -188,7 +188,7 @@ module MailSlurpClient
188
188
  # Calculates hash code according to all attributes.
189
189
  # @return [Integer] Hash code
190
190
  def hash
191
- [content, pageable, total, last, total_pages, total_elements, size, number, sort, first, number_of_elements, empty].hash
191
+ [content, pageable, total, total_pages, total_elements, last, size, number, sort, number_of_elements, first, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash
@@ -21,22 +21,22 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :last
25
-
26
24
  attr_accessor :total_pages
27
25
 
28
26
  attr_accessor :total_elements
29
27
 
28
+ attr_accessor :last
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
33
33
 
34
34
  attr_accessor :sort
35
35
 
36
- attr_accessor :first
37
-
38
36
  attr_accessor :number_of_elements
39
37
 
38
+ attr_accessor :first
39
+
40
40
  attr_accessor :empty
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,14 +45,14 @@ module MailSlurpClient
45
45
  :'content' => :'content',
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
- :'last' => :'last',
49
48
  :'total_pages' => :'totalPages',
50
49
  :'total_elements' => :'totalElements',
50
+ :'last' => :'last',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
54
- :'first' => :'first',
55
54
  :'number_of_elements' => :'numberOfElements',
55
+ :'first' => :'first',
56
56
  :'empty' => :'empty'
57
57
  }
58
58
  end
@@ -63,14 +63,14 @@ module MailSlurpClient
63
63
  :'content' => :'Array<WebhookResultDto>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
- :'last' => :'Boolean',
67
66
  :'total_pages' => :'Integer',
68
67
  :'total_elements' => :'Integer',
68
+ :'last' => :'Boolean',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
72
- :'first' => :'Boolean',
73
72
  :'number_of_elements' => :'Integer',
73
+ :'first' => :'Boolean',
74
74
  :'empty' => :'Boolean'
75
75
  }
76
76
  end
@@ -110,10 +110,6 @@ module MailSlurpClient
110
110
  self.total = attributes[:'total']
111
111
  end
112
112
 
113
- if attributes.key?(:'last')
114
- self.last = attributes[:'last']
115
- end
116
-
117
113
  if attributes.key?(:'total_pages')
118
114
  self.total_pages = attributes[:'total_pages']
119
115
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.total_elements = attributes[:'total_elements']
123
119
  end
124
120
 
121
+ if attributes.key?(:'last')
122
+ self.last = attributes[:'last']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -134,14 +134,14 @@ module MailSlurpClient
134
134
  self.sort = attributes[:'sort']
135
135
  end
136
136
 
137
- if attributes.key?(:'first')
138
- self.first = attributes[:'first']
139
- end
140
-
141
137
  if attributes.key?(:'number_of_elements')
142
138
  self.number_of_elements = attributes[:'number_of_elements']
143
139
  end
144
140
 
141
+ if attributes.key?(:'first')
142
+ self.first = attributes[:'first']
143
+ end
144
+
145
145
  if attributes.key?(:'empty')
146
146
  self.empty = attributes[:'empty']
147
147
  end
@@ -168,14 +168,14 @@ module MailSlurpClient
168
168
  content == o.content &&
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
- last == o.last &&
172
171
  total_pages == o.total_pages &&
173
172
  total_elements == o.total_elements &&
173
+ last == o.last &&
174
174
  size == o.size &&
175
175
  number == o.number &&
176
176
  sort == o.sort &&
177
- first == o.first &&
178
177
  number_of_elements == o.number_of_elements &&
178
+ first == o.first &&
179
179
  empty == o.empty
180
180
  end
181
181
 
@@ -188,7 +188,7 @@ module MailSlurpClient
188
188
  # Calculates hash code according to all attributes.
189
189
  # @return [Integer] Hash code
190
190
  def hash
191
- [content, pageable, total, last, total_pages, total_elements, size, number, sort, first, number_of_elements, empty].hash
191
+ [content, pageable, total, total_pages, total_elements, last, size, number, sort, number_of_elements, first, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash
@@ -19,12 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :user_id
21
21
 
22
- attr_accessor :phone_country
23
-
24
22
  attr_accessor :phone_number
25
23
 
26
24
  attr_accessor :created_at
27
25
 
26
+ attr_accessor :phone_country
27
+
28
28
  class EnumAttributeValidator
29
29
  attr_reader :datatype
30
30
  attr_reader :allowable_values
@@ -52,9 +52,9 @@ module MailSlurpClient
52
52
  {
53
53
  :'id' => :'id',
54
54
  :'user_id' => :'userId',
55
- :'phone_country' => :'phoneCountry',
56
55
  :'phone_number' => :'phoneNumber',
57
- :'created_at' => :'createdAt'
56
+ :'created_at' => :'createdAt',
57
+ :'phone_country' => :'phoneCountry'
58
58
  }
59
59
  end
60
60
 
@@ -63,9 +63,9 @@ module MailSlurpClient
63
63
  {
64
64
  :'id' => :'String',
65
65
  :'user_id' => :'String',
66
- :'phone_country' => :'String',
67
66
  :'phone_number' => :'String',
68
- :'created_at' => :'DateTime'
67
+ :'created_at' => :'DateTime',
68
+ :'phone_country' => :'String'
69
69
  }
70
70
  end
71
71
 
@@ -98,10 +98,6 @@ module MailSlurpClient
98
98
  self.user_id = attributes[:'user_id']
99
99
  end
100
100
 
101
- if attributes.key?(:'phone_country')
102
- self.phone_country = attributes[:'phone_country']
103
- end
104
-
105
101
  if attributes.key?(:'phone_number')
106
102
  self.phone_number = attributes[:'phone_number']
107
103
  end
@@ -109,6 +105,10 @@ module MailSlurpClient
109
105
  if attributes.key?(:'created_at')
110
106
  self.created_at = attributes[:'created_at']
111
107
  end
108
+
109
+ if attributes.key?(:'phone_country')
110
+ self.phone_country = attributes[:'phone_country']
111
+ end
112
112
  end
113
113
 
114
114
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -123,10 +123,6 @@ module MailSlurpClient
123
123
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
124
124
  end
125
125
 
126
- if @phone_country.nil?
127
- invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
128
- end
129
-
130
126
  if @phone_number.nil?
131
127
  invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
132
128
  end
@@ -135,6 +131,10 @@ module MailSlurpClient
135
131
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
136
132
  end
137
133
 
134
+ if @phone_country.nil?
135
+ invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
136
+ end
137
+
138
138
  invalid_properties
139
139
  end
140
140
 
@@ -143,11 +143,11 @@ module MailSlurpClient
143
143
  def valid?
144
144
  return false if @id.nil?
145
145
  return false if @user_id.nil?
146
+ return false if @phone_number.nil?
147
+ return false if @created_at.nil?
146
148
  return false if @phone_country.nil?
147
149
  phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB"])
148
150
  return false unless phone_country_validator.valid?(@phone_country)
149
- return false if @phone_number.nil?
150
- return false if @created_at.nil?
151
151
  true
152
152
  end
153
153
 
@@ -168,9 +168,9 @@ module MailSlurpClient
168
168
  self.class == o.class &&
169
169
  id == o.id &&
170
170
  user_id == o.user_id &&
171
- phone_country == o.phone_country &&
172
171
  phone_number == o.phone_number &&
173
- created_at == o.created_at
172
+ created_at == o.created_at &&
173
+ phone_country == o.phone_country
174
174
  end
175
175
 
176
176
  # @see the `==` method
@@ -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
- [id, user_id, phone_country, phone_number, created_at].hash
185
+ [id, user_id, phone_number, created_at, phone_country].hash
186
186
  end
187
187
 
188
188
  # Builds the object from hash
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :variables
23
-
24
22
  attr_accessor :created_at
25
23
 
24
+ attr_accessor :variables
25
+
26
26
  attr_accessor :updated_at
27
27
 
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -30,8 +30,8 @@ module MailSlurpClient
30
30
  {
31
31
  :'name' => :'name',
32
32
  :'id' => :'id',
33
- :'variables' => :'variables',
34
33
  :'created_at' => :'createdAt',
34
+ :'variables' => :'variables',
35
35
  :'updated_at' => :'updatedAt'
36
36
  }
37
37
  end
@@ -41,8 +41,8 @@ module MailSlurpClient
41
41
  {
42
42
  :'name' => :'String',
43
43
  :'id' => :'String',
44
- :'variables' => :'Array<String>',
45
44
  :'created_at' => :'DateTime',
45
+ :'variables' => :'Array<String>',
46
46
  :'updated_at' => :'DateTime'
47
47
  }
48
48
  end
@@ -76,16 +76,16 @@ module MailSlurpClient
76
76
  self.id = attributes[:'id']
77
77
  end
78
78
 
79
+ if attributes.key?(:'created_at')
80
+ self.created_at = attributes[:'created_at']
81
+ end
82
+
79
83
  if attributes.key?(:'variables')
80
84
  if (value = attributes[:'variables']).is_a?(Array)
81
85
  self.variables = value
82
86
  end
83
87
  end
84
88
 
85
- if attributes.key?(:'created_at')
86
- self.created_at = attributes[:'created_at']
87
- end
88
-
89
89
  if attributes.key?(:'updated_at')
90
90
  self.updated_at = attributes[:'updated_at']
91
91
  end
@@ -103,14 +103,14 @@ module MailSlurpClient
103
103
  invalid_properties.push('invalid value for "id", id cannot be nil.')
104
104
  end
105
105
 
106
- if @variables.nil?
107
- invalid_properties.push('invalid value for "variables", variables cannot be nil.')
108
- end
109
-
110
106
  if @created_at.nil?
111
107
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
112
108
  end
113
109
 
110
+ if @variables.nil?
111
+ invalid_properties.push('invalid value for "variables", variables cannot be nil.')
112
+ end
113
+
114
114
  if @updated_at.nil?
115
115
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
116
116
  end
@@ -123,8 +123,8 @@ module MailSlurpClient
123
123
  def valid?
124
124
  return false if @name.nil?
125
125
  return false if @id.nil?
126
- return false if @variables.nil?
127
126
  return false if @created_at.nil?
127
+ return false if @variables.nil?
128
128
  return false if @updated_at.nil?
129
129
  true
130
130
  end
@@ -136,8 +136,8 @@ module MailSlurpClient
136
136
  self.class == o.class &&
137
137
  name == o.name &&
138
138
  id == o.id &&
139
- variables == o.variables &&
140
139
  created_at == o.created_at &&
140
+ variables == o.variables &&
141
141
  updated_at == o.updated_at
142
142
  end
143
143
 
@@ -150,7 +150,7 @@ module MailSlurpClient
150
150
  # Calculates hash code according to all attributes.
151
151
  # @return [Integer] Hash code
152
152
  def hash
153
- [name, id, variables, created_at, updated_at].hash
153
+ [name, id, created_at, variables, updated_at].hash
154
154
  end
155
155
 
156
156
  # Builds the object from hash
@@ -24,12 +24,12 @@ module MailSlurpClient
24
24
  # Thread subject
25
25
  attr_accessor :subject
26
26
 
27
- # Inbox ID
28
- attr_accessor :inbox_id
29
-
30
27
  # User ID
31
28
  attr_accessor :user_id
32
29
 
30
+ # Inbox ID
31
+ attr_accessor :inbox_id
32
+
33
33
  # To recipients
34
34
  attr_accessor :to
35
35
 
@@ -54,8 +54,8 @@ module MailSlurpClient
54
54
  :'name' => :'name',
55
55
  :'id' => :'id',
56
56
  :'subject' => :'subject',
57
- :'inbox_id' => :'inboxId',
58
57
  :'user_id' => :'userId',
58
+ :'inbox_id' => :'inboxId',
59
59
  :'to' => :'to',
60
60
  :'bcc' => :'bcc',
61
61
  :'cc' => :'cc',
@@ -71,8 +71,8 @@ module MailSlurpClient
71
71
  :'name' => :'String',
72
72
  :'id' => :'String',
73
73
  :'subject' => :'String',
74
- :'inbox_id' => :'String',
75
74
  :'user_id' => :'String',
75
+ :'inbox_id' => :'String',
76
76
  :'to' => :'Array<String>',
77
77
  :'bcc' => :'Array<String>',
78
78
  :'cc' => :'Array<String>',
@@ -115,14 +115,14 @@ module MailSlurpClient
115
115
  self.subject = attributes[:'subject']
116
116
  end
117
117
 
118
- if attributes.key?(:'inbox_id')
119
- self.inbox_id = attributes[:'inbox_id']
120
- end
121
-
122
118
  if attributes.key?(:'user_id')
123
119
  self.user_id = attributes[:'user_id']
124
120
  end
125
121
 
122
+ if attributes.key?(:'inbox_id')
123
+ self.inbox_id = attributes[:'inbox_id']
124
+ end
125
+
126
126
  if attributes.key?(:'to')
127
127
  if (value = attributes[:'to']).is_a?(Array)
128
128
  self.to = value
@@ -162,14 +162,14 @@ module MailSlurpClient
162
162
  invalid_properties.push('invalid value for "id", id cannot be nil.')
163
163
  end
164
164
 
165
- if @inbox_id.nil?
166
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
167
- end
168
-
169
165
  if @user_id.nil?
170
166
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
171
167
  end
172
168
 
169
+ if @inbox_id.nil?
170
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
171
+ end
172
+
173
173
  if @to.nil?
174
174
  invalid_properties.push('invalid value for "to", to cannot be nil.')
175
175
  end
@@ -193,8 +193,8 @@ module MailSlurpClient
193
193
  # @return true if the model is valid
194
194
  def valid?
195
195
  return false if @id.nil?
196
- return false if @inbox_id.nil?
197
196
  return false if @user_id.nil?
197
+ return false if @inbox_id.nil?
198
198
  return false if @to.nil?
199
199
  return false if @created_at.nil?
200
200
  return false if @updated_at.nil?
@@ -210,8 +210,8 @@ module MailSlurpClient
210
210
  name == o.name &&
211
211
  id == o.id &&
212
212
  subject == o.subject &&
213
- inbox_id == o.inbox_id &&
214
213
  user_id == o.user_id &&
214
+ inbox_id == o.inbox_id &&
215
215
  to == o.to &&
216
216
  bcc == o.bcc &&
217
217
  cc == o.cc &&
@@ -229,7 +229,7 @@ module MailSlurpClient
229
229
  # Calculates hash code according to all attributes.
230
230
  # @return [Integer] Hash code
231
231
  def hash
232
- [name, id, subject, inbox_id, user_id, to, bcc, cc, created_at, updated_at, alias_id].hash
232
+ [name, id, subject, user_id, inbox_id, to, bcc, cc, created_at, updated_at, alias_id].hash
233
233
  end
234
234
 
235
235
  # Builds the object from hash
@@ -19,18 +19,18 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :inbox_id
23
-
24
22
  attr_accessor :user_id
25
23
 
24
+ attr_accessor :inbox_id
25
+
26
26
  attr_accessor :sent_email_id
27
27
 
28
28
  attr_accessor :created_at
29
29
 
30
- attr_accessor :seen
31
-
32
30
  attr_accessor :recipient
33
31
 
32
+ attr_accessor :seen
33
+
34
34
  attr_accessor :seen_at
35
35
 
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -38,12 +38,12 @@ module MailSlurpClient
38
38
  {
39
39
  :'name' => :'name',
40
40
  :'id' => :'id',
41
- :'inbox_id' => :'inboxId',
42
41
  :'user_id' => :'userId',
42
+ :'inbox_id' => :'inboxId',
43
43
  :'sent_email_id' => :'sentEmailId',
44
44
  :'created_at' => :'createdAt',
45
- :'seen' => :'seen',
46
45
  :'recipient' => :'recipient',
46
+ :'seen' => :'seen',
47
47
  :'seen_at' => :'seenAt'
48
48
  }
49
49
  end
@@ -53,12 +53,12 @@ module MailSlurpClient
53
53
  {
54
54
  :'name' => :'String',
55
55
  :'id' => :'String',
56
- :'inbox_id' => :'String',
57
56
  :'user_id' => :'String',
57
+ :'inbox_id' => :'String',
58
58
  :'sent_email_id' => :'String',
59
59
  :'created_at' => :'DateTime',
60
- :'seen' => :'Boolean',
61
60
  :'recipient' => :'String',
61
+ :'seen' => :'Boolean',
62
62
  :'seen_at' => :'DateTime'
63
63
  }
64
64
  end
@@ -92,14 +92,14 @@ module MailSlurpClient
92
92
  self.id = attributes[:'id']
93
93
  end
94
94
 
95
- if attributes.key?(:'inbox_id')
96
- self.inbox_id = attributes[:'inbox_id']
97
- end
98
-
99
95
  if attributes.key?(:'user_id')
100
96
  self.user_id = attributes[:'user_id']
101
97
  end
102
98
 
99
+ if attributes.key?(:'inbox_id')
100
+ self.inbox_id = attributes[:'inbox_id']
101
+ end
102
+
103
103
  if attributes.key?(:'sent_email_id')
104
104
  self.sent_email_id = attributes[:'sent_email_id']
105
105
  end
@@ -108,14 +108,14 @@ module MailSlurpClient
108
108
  self.created_at = attributes[:'created_at']
109
109
  end
110
110
 
111
- if attributes.key?(:'seen')
112
- self.seen = attributes[:'seen']
113
- end
114
-
115
111
  if attributes.key?(:'recipient')
116
112
  self.recipient = attributes[:'recipient']
117
113
  end
118
114
 
115
+ if attributes.key?(:'seen')
116
+ self.seen = attributes[:'seen']
117
+ end
118
+
119
119
  if attributes.key?(:'seen_at')
120
120
  self.seen_at = attributes[:'seen_at']
121
121
  end
@@ -161,12 +161,12 @@ module MailSlurpClient
161
161
  self.class == o.class &&
162
162
  name == o.name &&
163
163
  id == o.id &&
164
- inbox_id == o.inbox_id &&
165
164
  user_id == o.user_id &&
165
+ inbox_id == o.inbox_id &&
166
166
  sent_email_id == o.sent_email_id &&
167
167
  created_at == o.created_at &&
168
- seen == o.seen &&
169
168
  recipient == o.recipient &&
169
+ seen == o.seen &&
170
170
  seen_at == o.seen_at
171
171
  end
172
172
 
@@ -179,7 +179,7 @@ module MailSlurpClient
179
179
  # Calculates hash code according to all attributes.
180
180
  # @return [Integer] Hash code
181
181
  def hash
182
- [name, id, inbox_id, user_id, sent_email_id, created_at, seen, recipient, seen_at].hash
182
+ [name, id, user_id, inbox_id, sent_email_id, created_at, recipient, seen, seen_at].hash
183
183
  end
184
184
 
185
185
  # Builds the object from hash