mailslurp_client 15.19.9 → 15.19.11

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 (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/models/alias_projection.rb +29 -29
  3. data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
  4. data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
  5. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
  6. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  7. data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
  8. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  9. data/lib/mailslurp_client/models/email_projection.rb +15 -15
  10. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  11. data/lib/mailslurp_client/models/imap_email_projection.rb +15 -15
  12. data/lib/mailslurp_client/models/imap_mailbox_status.rb +2 -4
  13. data/lib/mailslurp_client/models/imap_update_flags_options.rb +0 -34
  14. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
  15. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +14 -14
  16. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
  17. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  18. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  19. data/lib/mailslurp_client/models/sent_email_projection.rb +35 -35
  20. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  21. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  22. data/lib/mailslurp_client/models/thread_projection.rb +31 -31
  23. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
  24. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  25. data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
  26. data/lib/mailslurp_client/version.rb +1 -1
  27. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '07490dc21c90253a0d0cc02008952950ce2f58facd510136ef990fd2323abbe1'
4
- data.tar.gz: cbcaf4525319b657b76ef5ef6d09107a2f7ebaa1ab819d4496a972bd4356780a
3
+ metadata.gz: 67992a3536618cbe458f5a6df45f267c84c8ccf2098c6865e5857580d16ca37a
4
+ data.tar.gz: 16a3f043c05995aaba6068d3e2950da656a53ccfd074781a39ad9cd18f72076d
5
5
  SHA512:
6
- metadata.gz: e128649f733114fc22d73d8bcdd7cdc808567a11d6579fd28ac2a9c4ceeeaef8eb8ce67d0a5d738b009e38c801a2b19dbc9dff17e05be076e3d27fa6e79a204c
7
- data.tar.gz: 7cbf8d9e306c049fc87c456509fe902265ad4ade6d0cb8eec894dce9636ee9194c17ea6dacc8b80e151d12e058a34f3be89373cd244aa7b4f18096b0d95264e0
6
+ metadata.gz: e754e6552af4301f81c18f162fcdf71a9977f87a49c2885e44a4e730576933a6152d832a82efc297208a1b1e5cea8403ab477e09362006b8b6cba05d37b1dca6
7
+ data.tar.gz: 71db8d8c2167809143108bc82b8b2b9695911c0991cd6c7f4ee8a80b11f18cbc505dbf19eb94581118e5f3ca9db97e2754a4d51e652679ab90abbac507907629
@@ -15,6 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Representation of a alias
17
17
  class AliasProjection
18
+ attr_accessor :created_at
19
+
20
+ attr_accessor :updated_at
21
+
18
22
  attr_accessor :inbox_id
19
23
 
20
24
  attr_accessor :email_address
@@ -23,10 +27,6 @@ module MailSlurpClient
23
27
 
24
28
  attr_accessor :use_threads
25
29
 
26
- attr_accessor :created_at
27
-
28
- attr_accessor :updated_at
29
-
30
30
  attr_accessor :name
31
31
 
32
32
  attr_accessor :id
@@ -34,12 +34,12 @@ module MailSlurpClient
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
+ :'created_at' => :'createdAt',
38
+ :'updated_at' => :'updatedAt',
37
39
  :'inbox_id' => :'inboxId',
38
40
  :'email_address' => :'emailAddress',
39
41
  :'user_id' => :'userId',
40
42
  :'use_threads' => :'useThreads',
41
- :'created_at' => :'createdAt',
42
- :'updated_at' => :'updatedAt',
43
43
  :'name' => :'name',
44
44
  :'id' => :'id'
45
45
  }
@@ -48,12 +48,12 @@ module MailSlurpClient
48
48
  # Attribute type mapping.
49
49
  def self.openapi_types
50
50
  {
51
+ :'created_at' => :'DateTime',
52
+ :'updated_at' => :'DateTime',
51
53
  :'inbox_id' => :'String',
52
54
  :'email_address' => :'String',
53
55
  :'user_id' => :'String',
54
56
  :'use_threads' => :'Boolean',
55
- :'created_at' => :'DateTime',
56
- :'updated_at' => :'DateTime',
57
57
  :'name' => :'String',
58
58
  :'id' => :'String'
59
59
  }
@@ -80,6 +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
+ if attributes.key?(:'updated_at')
88
+ self.updated_at = attributes[:'updated_at']
89
+ end
90
+
83
91
  if attributes.key?(:'inbox_id')
84
92
  self.inbox_id = attributes[:'inbox_id']
85
93
  end
@@ -96,14 +104,6 @@ module MailSlurpClient
96
104
  self.use_threads = attributes[:'use_threads']
97
105
  end
98
106
 
99
- if attributes.key?(:'created_at')
100
- self.created_at = attributes[:'created_at']
101
- end
102
-
103
- if attributes.key?(:'updated_at')
104
- self.updated_at = attributes[:'updated_at']
105
- end
106
-
107
107
  if attributes.key?(:'name')
108
108
  self.name = attributes[:'name']
109
109
  end
@@ -117,6 +117,14 @@ module MailSlurpClient
117
117
  # @return Array for valid properties with the reasons
118
118
  def list_invalid_properties
119
119
  invalid_properties = Array.new
120
+ if @created_at.nil?
121
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
122
+ end
123
+
124
+ if @updated_at.nil?
125
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
126
+ end
127
+
120
128
  if @inbox_id.nil?
121
129
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
122
130
  end
@@ -129,14 +137,6 @@ module MailSlurpClient
129
137
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
130
138
  end
131
139
 
132
- if @created_at.nil?
133
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
134
- end
135
-
136
- if @updated_at.nil?
137
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
138
- end
139
-
140
140
  if @id.nil?
141
141
  invalid_properties.push('invalid value for "id", id cannot be nil.')
142
142
  end
@@ -147,11 +147,11 @@ module MailSlurpClient
147
147
  # Check to see if the all the properties in the model are valid
148
148
  # @return true if the model is valid
149
149
  def valid?
150
+ return false if @created_at.nil?
151
+ return false if @updated_at.nil?
150
152
  return false if @inbox_id.nil?
151
153
  return false if @email_address.nil?
152
154
  return false if @user_id.nil?
153
- return false if @created_at.nil?
154
- return false if @updated_at.nil?
155
155
  return false if @id.nil?
156
156
  true
157
157
  end
@@ -161,12 +161,12 @@ module MailSlurpClient
161
161
  def ==(o)
162
162
  return true if self.equal?(o)
163
163
  self.class == o.class &&
164
+ created_at == o.created_at &&
165
+ updated_at == o.updated_at &&
164
166
  inbox_id == o.inbox_id &&
165
167
  email_address == o.email_address &&
166
168
  user_id == o.user_id &&
167
169
  use_threads == o.use_threads &&
168
- created_at == o.created_at &&
169
- updated_at == o.updated_at &&
170
170
  name == o.name &&
171
171
  id == o.id
172
172
  end
@@ -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
- [inbox_id, email_address, user_id, use_threads, created_at, updated_at, name, id].hash
183
+ [created_at, updated_at, inbox_id, email_address, user_id, use_threads, name, id].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -15,6 +15,10 @@ 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
+
18
22
  attr_accessor :user_id
19
23
 
20
24
  # Content ID of attachment.
@@ -23,10 +27,6 @@ module MailSlurpClient
23
27
  # Attachment ID
24
28
  attr_accessor :attachment_id
25
29
 
26
- attr_accessor :created_at
27
-
28
- attr_accessor :updated_at
29
-
30
30
  attr_accessor :name
31
31
 
32
32
  # Content length of attachment in bytes
@@ -38,11 +38,11 @@ module MailSlurpClient
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
+ :'created_at' => :'createdAt',
42
+ :'updated_at' => :'updatedAt',
41
43
  :'user_id' => :'userId',
42
44
  :'content_id' => :'contentId',
43
45
  :'attachment_id' => :'attachmentId',
44
- :'created_at' => :'createdAt',
45
- :'updated_at' => :'updatedAt',
46
46
  :'name' => :'name',
47
47
  :'content_length' => :'contentLength',
48
48
  :'content_type' => :'contentType'
@@ -52,11 +52,11 @@ module MailSlurpClient
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
+ :'created_at' => :'DateTime',
56
+ :'updated_at' => :'DateTime',
55
57
  :'user_id' => :'String',
56
58
  :'content_id' => :'String',
57
59
  :'attachment_id' => :'String',
58
- :'created_at' => :'DateTime',
59
- :'updated_at' => :'DateTime',
60
60
  :'name' => :'String',
61
61
  :'content_length' => :'Integer',
62
62
  :'content_type' => :'String'
@@ -88,6 +88,14 @@ module MailSlurpClient
88
88
  h[k.to_sym] = v
89
89
  }
90
90
 
91
+ if attributes.key?(:'created_at')
92
+ self.created_at = attributes[:'created_at']
93
+ end
94
+
95
+ if attributes.key?(:'updated_at')
96
+ self.updated_at = attributes[:'updated_at']
97
+ end
98
+
91
99
  if attributes.key?(:'user_id')
92
100
  self.user_id = attributes[:'user_id']
93
101
  end
@@ -100,14 +108,6 @@ module MailSlurpClient
100
108
  self.attachment_id = attributes[:'attachment_id']
101
109
  end
102
110
 
103
- if attributes.key?(:'created_at')
104
- self.created_at = attributes[:'created_at']
105
- end
106
-
107
- if attributes.key?(:'updated_at')
108
- self.updated_at = attributes[:'updated_at']
109
- end
110
-
111
111
  if attributes.key?(:'name')
112
112
  self.name = attributes[:'name']
113
113
  end
@@ -125,14 +125,6 @@ module MailSlurpClient
125
125
  # @return Array for valid properties with the reasons
126
126
  def list_invalid_properties
127
127
  invalid_properties = Array.new
128
- if @user_id.nil?
129
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
130
- end
131
-
132
- if @attachment_id.nil?
133
- invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
134
- end
135
-
136
128
  if @created_at.nil?
137
129
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
130
  end
@@ -141,16 +133,24 @@ module MailSlurpClient
141
133
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
142
134
  end
143
135
 
136
+ if @user_id.nil?
137
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
138
+ end
139
+
140
+ if @attachment_id.nil?
141
+ invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
142
+ end
143
+
144
144
  invalid_properties
145
145
  end
146
146
 
147
147
  # Check to see if the all the properties in the model are valid
148
148
  # @return true if the model is valid
149
149
  def valid?
150
- return false if @user_id.nil?
151
- return false if @attachment_id.nil?
152
150
  return false if @created_at.nil?
153
151
  return false if @updated_at.nil?
152
+ return false if @user_id.nil?
153
+ return false if @attachment_id.nil?
154
154
  true
155
155
  end
156
156
 
@@ -159,11 +159,11 @@ module MailSlurpClient
159
159
  def ==(o)
160
160
  return true if self.equal?(o)
161
161
  self.class == o.class &&
162
+ created_at == o.created_at &&
163
+ updated_at == o.updated_at &&
162
164
  user_id == o.user_id &&
163
165
  content_id == o.content_id &&
164
166
  attachment_id == o.attachment_id &&
165
- created_at == o.created_at &&
166
- updated_at == o.updated_at &&
167
167
  name == o.name &&
168
168
  content_length == o.content_length &&
169
169
  content_type == o.content_type
@@ -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
- [user_id, content_id, attachment_id, created_at, updated_at, name, content_length, content_type].hash
181
+ [created_at, updated_at, user_id, content_id, attachment_id, name, content_length, content_type].hash
182
182
  end
183
183
 
184
184
  # Builds the object from hash
@@ -15,13 +15,13 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Bounced email event
17
17
  class BounceProjection
18
- attr_accessor :sender
18
+ attr_accessor :created_at
19
19
 
20
- attr_accessor :bounce_mta
20
+ attr_accessor :sender
21
21
 
22
22
  attr_accessor :bounce_type
23
23
 
24
- attr_accessor :created_at
24
+ attr_accessor :bounce_mta
25
25
 
26
26
  attr_accessor :subject
27
27
 
@@ -30,10 +30,10 @@ module MailSlurpClient
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
+ :'created_at' => :'createdAt',
33
34
  :'sender' => :'sender',
34
- :'bounce_mta' => :'bounceMta',
35
35
  :'bounce_type' => :'bounceType',
36
- :'created_at' => :'createdAt',
36
+ :'bounce_mta' => :'bounceMta',
37
37
  :'subject' => :'subject',
38
38
  :'id' => :'id'
39
39
  }
@@ -42,10 +42,10 @@ module MailSlurpClient
42
42
  # Attribute type mapping.
43
43
  def self.openapi_types
44
44
  {
45
+ :'created_at' => :'DateTime',
45
46
  :'sender' => :'String',
46
- :'bounce_mta' => :'String',
47
47
  :'bounce_type' => :'String',
48
- :'created_at' => :'DateTime',
48
+ :'bounce_mta' => :'String',
49
49
  :'subject' => :'String',
50
50
  :'id' => :'String'
51
51
  }
@@ -54,8 +54,8 @@ module MailSlurpClient
54
54
  # List of attributes with nullable: true
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
- :'bounce_mta',
58
57
  :'bounce_type',
58
+ :'bounce_mta',
59
59
  :'subject',
60
60
  ])
61
61
  end
@@ -75,20 +75,20 @@ module MailSlurpClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'sender')
79
- self.sender = attributes[:'sender']
78
+ if attributes.key?(:'created_at')
79
+ self.created_at = attributes[:'created_at']
80
80
  end
81
81
 
82
- if attributes.key?(:'bounce_mta')
83
- self.bounce_mta = attributes[:'bounce_mta']
82
+ if attributes.key?(:'sender')
83
+ self.sender = attributes[:'sender']
84
84
  end
85
85
 
86
86
  if attributes.key?(:'bounce_type')
87
87
  self.bounce_type = attributes[:'bounce_type']
88
88
  end
89
89
 
90
- if attributes.key?(:'created_at')
91
- self.created_at = attributes[:'created_at']
90
+ if attributes.key?(:'bounce_mta')
91
+ self.bounce_mta = attributes[:'bounce_mta']
92
92
  end
93
93
 
94
94
  if attributes.key?(:'subject')
@@ -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 @sender.nil?
108
- invalid_properties.push('invalid value for "sender", sender cannot be nil.')
109
- end
110
-
111
107
  if @created_at.nil?
112
108
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
113
109
  end
114
110
 
111
+ if @sender.nil?
112
+ invalid_properties.push('invalid value for "sender", sender 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 @sender.nil?
122
121
  return false if @created_at.nil?
122
+ return false if @sender.nil?
123
123
  true
124
124
  end
125
125
 
@@ -128,10 +128,10 @@ module MailSlurpClient
128
128
  def ==(o)
129
129
  return true if self.equal?(o)
130
130
  self.class == o.class &&
131
+ created_at == o.created_at &&
131
132
  sender == o.sender &&
132
- bounce_mta == o.bounce_mta &&
133
133
  bounce_type == o.bounce_type &&
134
- created_at == o.created_at &&
134
+ bounce_mta == o.bounce_mta &&
135
135
  subject == o.subject &&
136
136
  id == o.id
137
137
  end
@@ -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
- [sender, bounce_mta, bounce_type, created_at, subject, id].hash
148
+ [created_at, sender, bounce_type, bounce_mta, subject, id].hash
149
149
  end
150
150
 
151
151
  # Builds the object from hash
@@ -15,6 +15,8 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Bounced recipient
17
17
  class BounceRecipientProjection
18
+ attr_accessor :created_at
19
+
18
20
  attr_accessor :sent_email_id
19
21
 
20
22
  attr_accessor :recipient
@@ -23,8 +25,6 @@ module MailSlurpClient
23
25
 
24
26
  attr_accessor :bounce_type
25
27
 
26
- attr_accessor :created_at
27
-
28
28
  attr_accessor :id
29
29
 
30
30
  attr_accessor :status
@@ -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',
35
36
  :'sent_email_id' => :'sentEmailId',
36
37
  :'recipient' => :'recipient',
37
38
  :'action' => :'action',
38
39
  :'bounce_type' => :'bounceType',
39
- :'created_at' => :'createdAt',
40
40
  :'id' => :'id',
41
41
  :'status' => :'status'
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',
48
49
  :'sent_email_id' => :'String',
49
50
  :'recipient' => :'String',
50
51
  :'action' => :'String',
51
52
  :'bounce_type' => :'String',
52
- :'created_at' => :'DateTime',
53
53
  :'id' => :'String',
54
54
  :'status' => :'String'
55
55
  }
@@ -80,6 +80,10 @@ 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
+
83
87
  if attributes.key?(:'sent_email_id')
84
88
  self.sent_email_id = attributes[:'sent_email_id']
85
89
  end
@@ -96,10 +100,6 @@ module MailSlurpClient
96
100
  self.bounce_type = attributes[:'bounce_type']
97
101
  end
98
102
 
99
- if attributes.key?(:'created_at')
100
- self.created_at = attributes[:'created_at']
101
- end
102
-
103
103
  if attributes.key?(:'id')
104
104
  self.id = attributes[:'id']
105
105
  end
@@ -113,22 +113,22 @@ module MailSlurpClient
113
113
  # @return Array for valid properties with the reasons
114
114
  def list_invalid_properties
115
115
  invalid_properties = Array.new
116
- if @recipient.nil?
117
- invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
118
- end
119
-
120
116
  if @created_at.nil?
121
117
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
122
118
  end
123
119
 
120
+ if @recipient.nil?
121
+ invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
122
+ end
123
+
124
124
  invalid_properties
125
125
  end
126
126
 
127
127
  # Check to see if the all the properties in the model are valid
128
128
  # @return true if the model is valid
129
129
  def valid?
130
- return false if @recipient.nil?
131
130
  return false if @created_at.nil?
131
+ return false if @recipient.nil?
132
132
  true
133
133
  end
134
134
 
@@ -137,11 +137,11 @@ 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 &&
140
141
  sent_email_id == o.sent_email_id &&
141
142
  recipient == o.recipient &&
142
143
  action == o.action &&
143
144
  bounce_type == o.bounce_type &&
144
- created_at == o.created_at &&
145
145
  id == o.id &&
146
146
  status == o.status
147
147
  end
@@ -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
- [sent_email_id, recipient, action, bounce_type, created_at, id, status].hash
158
+ [created_at, sent_email_id, recipient, action, bounce_type, id, status].hash
159
159
  end
160
160
 
161
161
  # Builds the object from hash
@@ -15,6 +15,8 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Connector
17
17
  class ConnectorProjection
18
+ attr_accessor :created_at
19
+
18
20
  attr_accessor :enabled
19
21
 
20
22
  attr_accessor :inbox_id
@@ -29,8 +31,6 @@ module MailSlurpClient
29
31
 
30
32
  attr_accessor :sync_interval
31
33
 
32
- attr_accessor :created_at
33
-
34
34
  attr_accessor :name
35
35
 
36
36
  attr_accessor :id
@@ -60,6 +60,7 @@ module MailSlurpClient
60
60
  # Attribute mapping from ruby-style variable name to JSON key.
61
61
  def self.attribute_map
62
62
  {
63
+ :'created_at' => :'createdAt',
63
64
  :'enabled' => :'enabled',
64
65
  :'inbox_id' => :'inboxId',
65
66
  :'email_address' => :'emailAddress',
@@ -67,7 +68,6 @@ module MailSlurpClient
67
68
  :'sync_enabled' => :'syncEnabled',
68
69
  :'sync_schedule_type' => :'syncScheduleType',
69
70
  :'sync_interval' => :'syncInterval',
70
- :'created_at' => :'createdAt',
71
71
  :'name' => :'name',
72
72
  :'id' => :'id'
73
73
  }
@@ -76,6 +76,7 @@ module MailSlurpClient
76
76
  # Attribute type mapping.
77
77
  def self.openapi_types
78
78
  {
79
+ :'created_at' => :'DateTime',
79
80
  :'enabled' => :'Boolean',
80
81
  :'inbox_id' => :'String',
81
82
  :'email_address' => :'String',
@@ -83,7 +84,6 @@ module MailSlurpClient
83
84
  :'sync_enabled' => :'Boolean',
84
85
  :'sync_schedule_type' => :'String',
85
86
  :'sync_interval' => :'Integer',
86
- :'created_at' => :'DateTime',
87
87
  :'name' => :'String',
88
88
  :'id' => :'String'
89
89
  }
@@ -110,6 +110,10 @@ module MailSlurpClient
110
110
  h[k.to_sym] = v
111
111
  }
112
112
 
113
+ if attributes.key?(:'created_at')
114
+ self.created_at = attributes[:'created_at']
115
+ end
116
+
113
117
  if attributes.key?(:'enabled')
114
118
  self.enabled = attributes[:'enabled']
115
119
  end
@@ -138,10 +142,6 @@ module MailSlurpClient
138
142
  self.sync_interval = attributes[:'sync_interval']
139
143
  end
140
144
 
141
- if attributes.key?(:'created_at')
142
- self.created_at = attributes[:'created_at']
143
- end
144
-
145
145
  if attributes.key?(:'name')
146
146
  self.name = attributes[:'name']
147
147
  end
@@ -155,6 +155,10 @@ module MailSlurpClient
155
155
  # @return Array for valid properties with the reasons
156
156
  def list_invalid_properties
157
157
  invalid_properties = Array.new
158
+ if @created_at.nil?
159
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
160
+ end
161
+
158
162
  if @inbox_id.nil?
159
163
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
160
164
  end
@@ -167,22 +171,18 @@ module MailSlurpClient
167
171
  invalid_properties.push('invalid value for "sync_schedule_type", sync_schedule_type cannot be nil.')
168
172
  end
169
173
 
170
- if @created_at.nil?
171
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
172
- end
173
-
174
174
  invalid_properties
175
175
  end
176
176
 
177
177
  # Check to see if the all the properties in the model are valid
178
178
  # @return true if the model is valid
179
179
  def valid?
180
+ return false if @created_at.nil?
180
181
  return false if @inbox_id.nil?
181
182
  return false if @user_id.nil?
182
183
  return false if @sync_schedule_type.nil?
183
184
  sync_schedule_type_validator = EnumAttributeValidator.new('String', ["INTERVAL"])
184
185
  return false unless sync_schedule_type_validator.valid?(@sync_schedule_type)
185
- return false if @created_at.nil?
186
186
  true
187
187
  end
188
188
 
@@ -201,6 +201,7 @@ module MailSlurpClient
201
201
  def ==(o)
202
202
  return true if self.equal?(o)
203
203
  self.class == o.class &&
204
+ created_at == o.created_at &&
204
205
  enabled == o.enabled &&
205
206
  inbox_id == o.inbox_id &&
206
207
  email_address == o.email_address &&
@@ -208,7 +209,6 @@ module MailSlurpClient
208
209
  sync_enabled == o.sync_enabled &&
209
210
  sync_schedule_type == o.sync_schedule_type &&
210
211
  sync_interval == o.sync_interval &&
211
- created_at == o.created_at &&
212
212
  name == o.name &&
213
213
  id == o.id
214
214
  end
@@ -222,7 +222,7 @@ module MailSlurpClient
222
222
  # Calculates hash code according to all attributes.
223
223
  # @return [Integer] Hash code
224
224
  def hash
225
- [enabled, inbox_id, email_address, user_id, sync_enabled, sync_schedule_type, sync_interval, created_at, name, id].hash
225
+ [created_at, enabled, inbox_id, email_address, user_id, sync_enabled, sync_schedule_type, sync_interval, name, id].hash
226
226
  end
227
227
 
228
228
  # Builds the object from hash