mailslurp_client 15.20.0 → 15.21.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 (67) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/attachment_controller_api.rb +6 -0
  3. data/lib/mailslurp_client/api/bounce_controller_api.rb +79 -0
  4. data/lib/mailslurp_client/api/inbox_controller_api.rb +56 -2
  5. data/lib/mailslurp_client/api/o_auth_connection_api.rb +170 -0
  6. data/lib/mailslurp_client/api/phone_controller_api.rb +269 -1
  7. data/lib/mailslurp_client/api/user_controller_api.rb +267 -0
  8. data/lib/mailslurp_client/models/alias_projection.rb +29 -29
  9. data/lib/mailslurp_client/models/alias_thread_projection.rb +39 -39
  10. data/lib/mailslurp_client/models/attachment_projection.rb +25 -25
  11. data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
  12. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
  13. data/lib/mailslurp_client/models/connector_event_projection.rb +15 -15
  14. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  15. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  16. data/lib/mailslurp_client/models/create_emergency_address_options.rb +2 -2
  17. data/lib/mailslurp_client/models/create_o_auth_connection_result.rb +211 -0
  18. data/lib/mailslurp_client/models/create_o_auth_exchange_result.rb +229 -0
  19. data/lib/mailslurp_client/models/create_phone_number_options.rb +284 -0
  20. data/lib/mailslurp_client/models/domain_dto.rb +27 -1
  21. data/lib/mailslurp_client/models/email.rb +12 -1
  22. data/lib/mailslurp_client/models/email_preview.rb +15 -5
  23. data/lib/mailslurp_client/models/email_projection.rb +42 -32
  24. data/lib/mailslurp_client/models/email_thread_projection.rb +52 -52
  25. data/lib/mailslurp_client/models/emergency_address.rb +2 -2
  26. data/lib/mailslurp_client/models/emergency_address_dto.rb +2 -2
  27. data/lib/mailslurp_client/models/entity_automation_item_projection.rb +295 -0
  28. data/lib/mailslurp_client/models/entity_event_item_projection.rb +303 -0
  29. data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +296 -0
  30. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  31. data/lib/mailslurp_client/models/guest_portal_user_projection.rb +39 -39
  32. data/lib/mailslurp_client/models/inbox_dto.rb +2 -2
  33. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
  34. data/lib/mailslurp_client/models/inbox_preview.rb +2 -2
  35. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +10 -10
  36. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
  37. data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
  38. data/lib/mailslurp_client/models/opt_in_identity_projection.rb +29 -29
  39. data/lib/mailslurp_client/models/organization_inbox_projection.rb +2 -2
  40. data/lib/mailslurp_client/models/page_entity_automation_items.rb +309 -0
  41. data/lib/mailslurp_client/models/page_entity_event_items.rb +309 -0
  42. data/lib/mailslurp_client/models/page_entity_favourite_items.rb +309 -0
  43. data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +309 -0
  44. data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +309 -0
  45. data/lib/mailslurp_client/models/page_reputation_items.rb +309 -0
  46. data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +315 -0
  47. data/lib/mailslurp_client/models/phone_message_thread_projection.rb +315 -0
  48. data/lib/mailslurp_client/models/phone_number_dto.rb +2 -2
  49. data/lib/mailslurp_client/models/phone_number_projection.rb +17 -17
  50. data/lib/mailslurp_client/models/phone_plan_availability_item.rb +2 -2
  51. data/lib/mailslurp_client/models/phone_plan_dto.rb +2 -2
  52. data/lib/mailslurp_client/models/plus_address_projection.rb +29 -29
  53. data/lib/mailslurp_client/models/reputation_item_projection.rb +317 -0
  54. data/lib/mailslurp_client/models/search_inboxes_options.rb +2 -2
  55. data/lib/mailslurp_client/models/sent_email_dto.rb +12 -1
  56. data/lib/mailslurp_client/models/sent_email_projection.rb +25 -25
  57. data/lib/mailslurp_client/models/sent_sms_projection.rb +15 -15
  58. data/lib/mailslurp_client/models/sms_preview.rb +15 -1
  59. data/lib/mailslurp_client/models/sms_projection.rb +15 -15
  60. data/lib/mailslurp_client/models/template_projection.rb +15 -15
  61. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
  62. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  63. data/lib/mailslurp_client/models/wait_for_sms_conditions.rb +1 -1
  64. data/lib/mailslurp_client/models/webhook_projection.rb +47 -47
  65. data/lib/mailslurp_client/version.rb +1 -1
  66. data/lib/mailslurp_client.rb +16 -0
  67. metadata +18 -2
@@ -15,15 +15,15 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Email attachment data
17
17
  class AttachmentProjection
18
- attr_accessor :created_at
19
-
20
- attr_accessor :updated_at
21
-
22
18
  attr_accessor :user_id
23
19
 
24
20
  # Inbox ID
25
21
  attr_accessor :inbox_id
26
22
 
23
+ attr_accessor :updated_at
24
+
25
+ attr_accessor :created_at
26
+
27
27
  # Content ID of attachment.
28
28
  attr_accessor :content_id
29
29
 
@@ -44,10 +44,10 @@ module MailSlurpClient
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
- :'created_at' => :'createdAt',
48
- :'updated_at' => :'updatedAt',
49
47
  :'user_id' => :'userId',
50
48
  :'inbox_id' => :'inboxId',
49
+ :'updated_at' => :'updatedAt',
50
+ :'created_at' => :'createdAt',
51
51
  :'content_id' => :'contentId',
52
52
  :'attachment_id' => :'attachmentId',
53
53
  :'name' => :'name',
@@ -60,10 +60,10 @@ module MailSlurpClient
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
- :'created_at' => :'DateTime',
64
- :'updated_at' => :'DateTime',
65
63
  :'user_id' => :'String',
66
64
  :'inbox_id' => :'String',
65
+ :'updated_at' => :'DateTime',
66
+ :'created_at' => :'DateTime',
67
67
  :'content_id' => :'String',
68
68
  :'attachment_id' => :'String',
69
69
  :'name' => :'String',
@@ -98,14 +98,6 @@ module MailSlurpClient
98
98
  h[k.to_sym] = v
99
99
  }
100
100
 
101
- if attributes.key?(:'created_at')
102
- self.created_at = attributes[:'created_at']
103
- end
104
-
105
- if attributes.key?(:'updated_at')
106
- self.updated_at = attributes[:'updated_at']
107
- end
108
-
109
101
  if attributes.key?(:'user_id')
110
102
  self.user_id = attributes[:'user_id']
111
103
  end
@@ -114,6 +106,14 @@ module MailSlurpClient
114
106
  self.inbox_id = attributes[:'inbox_id']
115
107
  end
116
108
 
109
+ if attributes.key?(:'updated_at')
110
+ self.updated_at = attributes[:'updated_at']
111
+ end
112
+
113
+ if attributes.key?(:'created_at')
114
+ self.created_at = attributes[:'created_at']
115
+ end
116
+
117
117
  if attributes.key?(:'content_id')
118
118
  self.content_id = attributes[:'content_id']
119
119
  end
@@ -143,16 +143,16 @@ 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 @created_at.nil?
147
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
146
+ if @user_id.nil?
147
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
148
148
  end
149
149
 
150
150
  if @updated_at.nil?
151
151
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
152
152
  end
153
153
 
154
- if @user_id.nil?
155
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
154
+ if @created_at.nil?
155
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
156
156
  end
157
157
 
158
158
  if @attachment_id.nil?
@@ -169,9 +169,9 @@ module MailSlurpClient
169
169
  # Check to see if the all the properties in the model are valid
170
170
  # @return true if the model is valid
171
171
  def valid?
172
- return false if @created_at.nil?
173
- return false if @updated_at.nil?
174
172
  return false if @user_id.nil?
173
+ return false if @updated_at.nil?
174
+ return false if @created_at.nil?
175
175
  return false if @attachment_id.nil?
176
176
  return false if @id.nil?
177
177
  true
@@ -182,10 +182,10 @@ module MailSlurpClient
182
182
  def ==(o)
183
183
  return true if self.equal?(o)
184
184
  self.class == o.class &&
185
- created_at == o.created_at &&
186
- updated_at == o.updated_at &&
187
185
  user_id == o.user_id &&
188
186
  inbox_id == o.inbox_id &&
187
+ updated_at == o.updated_at &&
188
+ created_at == o.created_at &&
189
189
  content_id == o.content_id &&
190
190
  attachment_id == o.attachment_id &&
191
191
  name == o.name &&
@@ -203,7 +203,7 @@ module MailSlurpClient
203
203
  # Calculates hash code according to all attributes.
204
204
  # @return [Integer] Hash code
205
205
  def hash
206
- [created_at, updated_at, user_id, inbox_id, content_id, attachment_id, name, id, content_length, content_type].hash
206
+ [user_id, inbox_id, updated_at, created_at, content_id, attachment_id, name, id, content_length, content_type].hash
207
207
  end
208
208
 
209
209
  # Builds the object from hash
@@ -15,26 +15,26 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Bounced email event
17
17
  class BounceProjection
18
- attr_accessor :subject
18
+ attr_accessor :sender
19
19
 
20
20
  attr_accessor :created_at
21
21
 
22
- attr_accessor :sender
23
-
24
22
  attr_accessor :bounce_type
25
23
 
26
24
  attr_accessor :bounce_mta
27
25
 
26
+ attr_accessor :subject
27
+
28
28
  attr_accessor :id
29
29
 
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
- :'subject' => :'subject',
34
- :'created_at' => :'createdAt',
35
33
  :'sender' => :'sender',
34
+ :'created_at' => :'createdAt',
36
35
  :'bounce_type' => :'bounceType',
37
36
  :'bounce_mta' => :'bounceMta',
37
+ :'subject' => :'subject',
38
38
  :'id' => :'id'
39
39
  }
40
40
  end
@@ -42,11 +42,11 @@ module MailSlurpClient
42
42
  # Attribute type mapping.
43
43
  def self.openapi_types
44
44
  {
45
- :'subject' => :'String',
46
- :'created_at' => :'DateTime',
47
45
  :'sender' => :'String',
46
+ :'created_at' => :'DateTime',
48
47
  :'bounce_type' => :'String',
49
48
  :'bounce_mta' => :'String',
49
+ :'subject' => :'String',
50
50
  :'id' => :'String'
51
51
  }
52
52
  end
@@ -54,9 +54,9 @@ module MailSlurpClient
54
54
  # List of attributes with nullable: true
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
- :'subject',
58
57
  :'bounce_type',
59
58
  :'bounce_mta',
59
+ :'subject',
60
60
  ])
61
61
  end
62
62
 
@@ -75,18 +75,14 @@ module MailSlurpClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'subject')
79
- self.subject = attributes[:'subject']
78
+ if attributes.key?(:'sender')
79
+ self.sender = attributes[:'sender']
80
80
  end
81
81
 
82
82
  if attributes.key?(:'created_at')
83
83
  self.created_at = attributes[:'created_at']
84
84
  end
85
85
 
86
- if attributes.key?(:'sender')
87
- self.sender = attributes[:'sender']
88
- end
89
-
90
86
  if attributes.key?(:'bounce_type')
91
87
  self.bounce_type = attributes[:'bounce_type']
92
88
  end
@@ -95,6 +91,10 @@ module MailSlurpClient
95
91
  self.bounce_mta = attributes[:'bounce_mta']
96
92
  end
97
93
 
94
+ if attributes.key?(:'subject')
95
+ self.subject = attributes[:'subject']
96
+ end
97
+
98
98
  if attributes.key?(:'id')
99
99
  self.id = attributes[:'id']
100
100
  end
@@ -104,22 +104,22 @@ module MailSlurpClient
104
104
  # @return Array for valid properties with the reasons
105
105
  def list_invalid_properties
106
106
  invalid_properties = Array.new
107
- if @created_at.nil?
108
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
109
- end
110
-
111
107
  if @sender.nil?
112
108
  invalid_properties.push('invalid value for "sender", sender cannot be nil.')
113
109
  end
114
110
 
111
+ if @created_at.nil?
112
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
113
+ end
114
+
115
115
  invalid_properties
116
116
  end
117
117
 
118
118
  # Check to see if the all the properties in the model are valid
119
119
  # @return true if the model is valid
120
120
  def valid?
121
- return false if @created_at.nil?
122
121
  return false if @sender.nil?
122
+ return false if @created_at.nil?
123
123
  true
124
124
  end
125
125
 
@@ -128,11 +128,11 @@ module MailSlurpClient
128
128
  def ==(o)
129
129
  return true if self.equal?(o)
130
130
  self.class == o.class &&
131
- subject == o.subject &&
132
- created_at == o.created_at &&
133
131
  sender == o.sender &&
132
+ created_at == o.created_at &&
134
133
  bounce_type == o.bounce_type &&
135
134
  bounce_mta == o.bounce_mta &&
135
+ subject == o.subject &&
136
136
  id == o.id
137
137
  end
138
138
 
@@ -145,7 +145,7 @@ module MailSlurpClient
145
145
  # Calculates hash code according to all attributes.
146
146
  # @return [Integer] Hash code
147
147
  def hash
148
- [subject, created_at, sender, bounce_type, bounce_mta, id].hash
148
+ [sender, created_at, bounce_type, bounce_mta, subject, id].hash
149
149
  end
150
150
 
151
151
  # Builds the object from hash
@@ -15,10 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Bounced recipient
17
17
  class BounceRecipientProjection
18
- attr_accessor :created_at
19
-
20
18
  attr_accessor :sent_email_id
21
19
 
20
+ attr_accessor :created_at
21
+
22
22
  attr_accessor :recipient
23
23
 
24
24
  attr_accessor :bounce_type
@@ -32,8 +32,8 @@ module MailSlurpClient
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'created_at' => :'createdAt',
36
35
  :'sent_email_id' => :'sentEmailId',
36
+ :'created_at' => :'createdAt',
37
37
  :'recipient' => :'recipient',
38
38
  :'bounce_type' => :'bounceType',
39
39
  :'action' => :'action',
@@ -45,8 +45,8 @@ module MailSlurpClient
45
45
  # Attribute type mapping.
46
46
  def self.openapi_types
47
47
  {
48
- :'created_at' => :'DateTime',
49
48
  :'sent_email_id' => :'String',
49
+ :'created_at' => :'DateTime',
50
50
  :'recipient' => :'String',
51
51
  :'bounce_type' => :'String',
52
52
  :'action' => :'String',
@@ -80,14 +80,14 @@ module MailSlurpClient
80
80
  h[k.to_sym] = v
81
81
  }
82
82
 
83
- if attributes.key?(:'created_at')
84
- self.created_at = attributes[:'created_at']
85
- end
86
-
87
83
  if attributes.key?(:'sent_email_id')
88
84
  self.sent_email_id = attributes[:'sent_email_id']
89
85
  end
90
86
 
87
+ if attributes.key?(:'created_at')
88
+ self.created_at = attributes[:'created_at']
89
+ end
90
+
91
91
  if attributes.key?(:'recipient')
92
92
  self.recipient = attributes[:'recipient']
93
93
  end
@@ -137,8 +137,8 @@ module MailSlurpClient
137
137
  def ==(o)
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
- created_at == o.created_at &&
141
140
  sent_email_id == o.sent_email_id &&
141
+ created_at == o.created_at &&
142
142
  recipient == o.recipient &&
143
143
  bounce_type == o.bounce_type &&
144
144
  action == o.action &&
@@ -155,7 +155,7 @@ module MailSlurpClient
155
155
  # Calculates hash code according to all attributes.
156
156
  # @return [Integer] Hash code
157
157
  def hash
158
- [created_at, sent_email_id, recipient, bounce_type, action, id, status].hash
158
+ [sent_email_id, created_at, recipient, bounce_type, action, id, status].hash
159
159
  end
160
160
 
161
161
  # Builds the object from hash
@@ -15,10 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # ConnectorEventProjection
17
17
  class ConnectorEventProjection
18
- attr_accessor :created_at
19
-
20
18
  attr_accessor :event_type
21
19
 
20
+ attr_accessor :created_at
21
+
22
22
  attr_accessor :connector_id
23
23
 
24
24
  attr_accessor :seen
@@ -56,8 +56,8 @@ module MailSlurpClient
56
56
  # Attribute mapping from ruby-style variable name to JSON key.
57
57
  def self.attribute_map
58
58
  {
59
- :'created_at' => :'createdAt',
60
59
  :'event_type' => :'eventType',
60
+ :'created_at' => :'createdAt',
61
61
  :'connector_id' => :'connectorId',
62
62
  :'seen' => :'seen',
63
63
  :'message' => :'message',
@@ -70,8 +70,8 @@ module MailSlurpClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'created_at' => :'DateTime',
74
73
  :'event_type' => :'String',
74
+ :'created_at' => :'DateTime',
75
75
  :'connector_id' => :'String',
76
76
  :'seen' => :'Boolean',
77
77
  :'message' => :'String',
@@ -102,14 +102,14 @@ module MailSlurpClient
102
102
  h[k.to_sym] = v
103
103
  }
104
104
 
105
- if attributes.key?(:'created_at')
106
- self.created_at = attributes[:'created_at']
107
- end
108
-
109
105
  if attributes.key?(:'event_type')
110
106
  self.event_type = attributes[:'event_type']
111
107
  end
112
108
 
109
+ if attributes.key?(:'created_at')
110
+ self.created_at = attributes[:'created_at']
111
+ end
112
+
113
113
  if attributes.key?(:'connector_id')
114
114
  self.connector_id = attributes[:'connector_id']
115
115
  end
@@ -139,14 +139,14 @@ module MailSlurpClient
139
139
  # @return Array for valid properties with the reasons
140
140
  def list_invalid_properties
141
141
  invalid_properties = Array.new
142
- if @created_at.nil?
143
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
144
- end
145
-
146
142
  if @event_type.nil?
147
143
  invalid_properties.push('invalid value for "event_type", event_type cannot be nil.')
148
144
  end
149
145
 
146
+ if @created_at.nil?
147
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
148
+ end
149
+
150
150
  if @connector_id.nil?
151
151
  invalid_properties.push('invalid value for "connector_id", connector_id cannot be nil.')
152
152
  end
@@ -165,10 +165,10 @@ module MailSlurpClient
165
165
  # Check to see if the all the properties in the model are valid
166
166
  # @return true if the model is valid
167
167
  def valid?
168
- return false if @created_at.nil?
169
168
  return false if @event_type.nil?
170
169
  event_type_validator = EnumAttributeValidator.new('String', ["SEND", "SYNC"])
171
170
  return false unless event_type_validator.valid?(@event_type)
171
+ return false if @created_at.nil?
172
172
  return false if @connector_id.nil?
173
173
  return false if @size.nil?
174
174
  return false if @status.nil?
@@ -202,8 +202,8 @@ module MailSlurpClient
202
202
  def ==(o)
203
203
  return true if self.equal?(o)
204
204
  self.class == o.class &&
205
- created_at == o.created_at &&
206
205
  event_type == o.event_type &&
206
+ created_at == o.created_at &&
207
207
  connector_id == o.connector_id &&
208
208
  seen == o.seen &&
209
209
  message == o.message &&
@@ -221,7 +221,7 @@ module MailSlurpClient
221
221
  # Calculates hash code according to all attributes.
222
222
  # @return [Integer] Hash code
223
223
  def hash
224
- [created_at, event_type, connector_id, seen, message, id, size, status].hash
224
+ [event_type, created_at, connector_id, seen, message, id, size, status].hash
225
225
  end
226
226
 
227
227
  # Builds the object from hash
@@ -15,8 +15,6 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Connector
17
17
  class ConnectorProjection
18
- attr_accessor :created_at
19
-
20
18
  attr_accessor :enabled
21
19
 
22
20
  attr_accessor :user_id
@@ -25,6 +23,8 @@ module MailSlurpClient
25
23
 
26
24
  attr_accessor :inbox_id
27
25
 
26
+ attr_accessor :created_at
27
+
28
28
  attr_accessor :name
29
29
 
30
30
  attr_accessor :id
@@ -32,11 +32,11 @@ module MailSlurpClient
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'created_at' => :'createdAt',
36
35
  :'enabled' => :'enabled',
37
36
  :'user_id' => :'userId',
38
37
  :'email_address' => :'emailAddress',
39
38
  :'inbox_id' => :'inboxId',
39
+ :'created_at' => :'createdAt',
40
40
  :'name' => :'name',
41
41
  :'id' => :'id'
42
42
  }
@@ -45,11 +45,11 @@ module MailSlurpClient
45
45
  # Attribute type mapping.
46
46
  def self.openapi_types
47
47
  {
48
- :'created_at' => :'DateTime',
49
48
  :'enabled' => :'Boolean',
50
49
  :'user_id' => :'String',
51
50
  :'email_address' => :'String',
52
51
  :'inbox_id' => :'String',
52
+ :'created_at' => :'DateTime',
53
53
  :'name' => :'String',
54
54
  :'id' => :'String'
55
55
  }
@@ -76,10 +76,6 @@ module MailSlurpClient
76
76
  h[k.to_sym] = v
77
77
  }
78
78
 
79
- if attributes.key?(:'created_at')
80
- self.created_at = attributes[:'created_at']
81
- end
82
-
83
79
  if attributes.key?(:'enabled')
84
80
  self.enabled = attributes[:'enabled']
85
81
  end
@@ -96,6 +92,10 @@ module MailSlurpClient
96
92
  self.inbox_id = attributes[:'inbox_id']
97
93
  end
98
94
 
95
+ if attributes.key?(:'created_at')
96
+ self.created_at = attributes[:'created_at']
97
+ end
98
+
99
99
  if attributes.key?(:'name')
100
100
  self.name = attributes[:'name']
101
101
  end
@@ -109,10 +109,6 @@ module MailSlurpClient
109
109
  # @return Array for valid properties with the reasons
110
110
  def list_invalid_properties
111
111
  invalid_properties = Array.new
112
- if @created_at.nil?
113
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
114
- end
115
-
116
112
  if @user_id.nil?
117
113
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
118
114
  end
@@ -121,6 +117,10 @@ module MailSlurpClient
121
117
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
122
118
  end
123
119
 
120
+ if @created_at.nil?
121
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
122
+ end
123
+
124
124
  if @id.nil?
125
125
  invalid_properties.push('invalid value for "id", id cannot be nil.')
126
126
  end
@@ -131,9 +131,9 @@ module MailSlurpClient
131
131
  # Check to see if the all the properties in the model are valid
132
132
  # @return true if the model is valid
133
133
  def valid?
134
- return false if @created_at.nil?
135
134
  return false if @user_id.nil?
136
135
  return false if @inbox_id.nil?
136
+ return false if @created_at.nil?
137
137
  return false if @id.nil?
138
138
  true
139
139
  end
@@ -143,11 +143,11 @@ module MailSlurpClient
143
143
  def ==(o)
144
144
  return true if self.equal?(o)
145
145
  self.class == o.class &&
146
- created_at == o.created_at &&
147
146
  enabled == o.enabled &&
148
147
  user_id == o.user_id &&
149
148
  email_address == o.email_address &&
150
149
  inbox_id == o.inbox_id &&
150
+ created_at == o.created_at &&
151
151
  name == o.name &&
152
152
  id == o.id
153
153
  end
@@ -161,7 +161,7 @@ module MailSlurpClient
161
161
  # Calculates hash code according to all attributes.
162
162
  # @return [Integer] Hash code
163
163
  def hash
164
- [created_at, enabled, user_id, email_address, inbox_id, name, id].hash
164
+ [enabled, user_id, email_address, inbox_id, created_at, name, id].hash
165
165
  end
166
166
 
167
167
  # Builds the object from hash
@@ -15,10 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Email contact for address book
17
17
  class ContactProjection
18
- attr_accessor :created_at
19
-
20
18
  attr_accessor :email_address
21
19
 
20
+ attr_accessor :created_at
21
+
22
22
  attr_accessor :email_addresses
23
23
 
24
24
  attr_accessor :first_name
@@ -36,8 +36,8 @@ module MailSlurpClient
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
39
- :'created_at' => :'createdAt',
40
39
  :'email_address' => :'emailAddress',
40
+ :'created_at' => :'createdAt',
41
41
  :'email_addresses' => :'emailAddresses',
42
42
  :'first_name' => :'firstName',
43
43
  :'last_name' => :'lastName',
@@ -51,8 +51,8 @@ module MailSlurpClient
51
51
  # Attribute type mapping.
52
52
  def self.openapi_types
53
53
  {
54
- :'created_at' => :'DateTime',
55
54
  :'email_address' => :'String',
55
+ :'created_at' => :'DateTime',
56
56
  :'email_addresses' => :'Array<String>',
57
57
  :'first_name' => :'String',
58
58
  :'last_name' => :'String',
@@ -91,14 +91,14 @@ module MailSlurpClient
91
91
  h[k.to_sym] = v
92
92
  }
93
93
 
94
- if attributes.key?(:'created_at')
95
- self.created_at = attributes[:'created_at']
96
- end
97
-
98
94
  if attributes.key?(:'email_address')
99
95
  self.email_address = attributes[:'email_address']
100
96
  end
101
97
 
98
+ if attributes.key?(:'created_at')
99
+ self.created_at = attributes[:'created_at']
100
+ end
101
+
102
102
  if attributes.key?(:'email_addresses')
103
103
  if (value = attributes[:'email_addresses']).is_a?(Array)
104
104
  self.email_addresses = value
@@ -158,8 +158,8 @@ module MailSlurpClient
158
158
  def ==(o)
159
159
  return true if self.equal?(o)
160
160
  self.class == o.class &&
161
- created_at == o.created_at &&
162
161
  email_address == o.email_address &&
162
+ created_at == o.created_at &&
163
163
  email_addresses == o.email_addresses &&
164
164
  first_name == o.first_name &&
165
165
  last_name == o.last_name &&
@@ -178,7 +178,7 @@ module MailSlurpClient
178
178
  # Calculates hash code according to all attributes.
179
179
  # @return [Integer] Hash code
180
180
  def hash
181
- [created_at, email_address, email_addresses, first_name, last_name, company, opt_out, id, group_id].hash
181
+ [email_address, created_at, email_addresses, first_name, last_name, company, opt_out, id, group_id].hash
182
182
  end
183
183
 
184
184
  # Builds the object from hash
@@ -166,7 +166,7 @@ module MailSlurpClient
166
166
  return false if @region.nil?
167
167
  return false if @postal_code.nil?
168
168
  return false if @iso_country_code.nil?
169
- iso_country_code_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
169
+ iso_country_code_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU", "CA", "EE", "HK", "PL", "CH", "PT", "NL", "IL", "SE"])
170
170
  return false unless iso_country_code_validator.valid?(@iso_country_code)
171
171
  true
172
172
  end
@@ -174,7 +174,7 @@ module MailSlurpClient
174
174
  # Custom attribute writer method checking allowed values (enum).
175
175
  # @param [Object] iso_country_code Object to be assigned
176
176
  def iso_country_code=(iso_country_code)
177
- validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
177
+ validator = EnumAttributeValidator.new('String', ["US", "GB", "AU", "CA", "EE", "HK", "PL", "CH", "PT", "NL", "IL", "SE"])
178
178
  unless validator.valid?(iso_country_code)
179
179
  fail ArgumentError, "invalid value for \"iso_country_code\", must be one of #{validator.allowable_values}."
180
180
  end