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.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/attachment_controller_api.rb +6 -0
- data/lib/mailslurp_client/api/bounce_controller_api.rb +79 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +56 -2
- data/lib/mailslurp_client/api/o_auth_connection_api.rb +170 -0
- data/lib/mailslurp_client/api/phone_controller_api.rb +269 -1
- data/lib/mailslurp_client/api/user_controller_api.rb +267 -0
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/alias_thread_projection.rb +39 -39
- data/lib/mailslurp_client/models/attachment_projection.rb +25 -25
- data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
- data/lib/mailslurp_client/models/connector_event_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/create_emergency_address_options.rb +2 -2
- data/lib/mailslurp_client/models/create_o_auth_connection_result.rb +211 -0
- data/lib/mailslurp_client/models/create_o_auth_exchange_result.rb +229 -0
- data/lib/mailslurp_client/models/create_phone_number_options.rb +284 -0
- data/lib/mailslurp_client/models/domain_dto.rb +27 -1
- data/lib/mailslurp_client/models/email.rb +12 -1
- data/lib/mailslurp_client/models/email_preview.rb +15 -5
- data/lib/mailslurp_client/models/email_projection.rb +42 -32
- data/lib/mailslurp_client/models/email_thread_projection.rb +52 -52
- data/lib/mailslurp_client/models/emergency_address.rb +2 -2
- data/lib/mailslurp_client/models/emergency_address_dto.rb +2 -2
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +295 -0
- data/lib/mailslurp_client/models/entity_event_item_projection.rb +303 -0
- data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +296 -0
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +39 -39
- data/lib/mailslurp_client/models/inbox_dto.rb +2 -2
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/inbox_preview.rb +2 -2
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +29 -29
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +2 -2
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +309 -0
- data/lib/mailslurp_client/models/page_entity_event_items.rb +309 -0
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +309 -0
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_reputation_items.rb +309 -0
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +315 -0
- data/lib/mailslurp_client/models/phone_message_thread_projection.rb +315 -0
- data/lib/mailslurp_client/models/phone_number_dto.rb +2 -2
- data/lib/mailslurp_client/models/phone_number_projection.rb +17 -17
- data/lib/mailslurp_client/models/phone_plan_availability_item.rb +2 -2
- data/lib/mailslurp_client/models/phone_plan_dto.rb +2 -2
- data/lib/mailslurp_client/models/plus_address_projection.rb +29 -29
- data/lib/mailslurp_client/models/reputation_item_projection.rb +317 -0
- data/lib/mailslurp_client/models/search_inboxes_options.rb +2 -2
- data/lib/mailslurp_client/models/sent_email_dto.rb +12 -1
- data/lib/mailslurp_client/models/sent_email_projection.rb +25 -25
- data/lib/mailslurp_client/models/sent_sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/sms_preview.rb +15 -1
- data/lib/mailslurp_client/models/sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/template_projection.rb +15 -15
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/wait_for_sms_conditions.rb +1 -1
- data/lib/mailslurp_client/models/webhook_projection.rb +47 -47
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +16 -0
- metadata +18 -2
@@ -255,7 +255,7 @@ module MailSlurpClient
|
|
255
255
|
inbox_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
|
256
256
|
return false unless inbox_type_validator.valid?(@inbox_type)
|
257
257
|
return false if @virtual_inbox.nil?
|
258
|
-
functions_as_validator = EnumAttributeValidator.new('String', ["ALIAS", "THREAD", "CATCH_ALL", "CONNECTOR", "ACCOUNT", "GUEST"])
|
258
|
+
functions_as_validator = EnumAttributeValidator.new('String', ["ALIAS", "THREAD", "CATCH_ALL", "CONNECTOR", "ACCOUNT", "GUEST", "OAUTH_CONNECTION_GMAIL"])
|
259
259
|
return false unless functions_as_validator.valid?(@functions_as)
|
260
260
|
account_region_validator = EnumAttributeValidator.new('String', ["US_WEST_2"])
|
261
261
|
return false unless account_region_validator.valid?(@account_region)
|
@@ -275,7 +275,7 @@ module MailSlurpClient
|
|
275
275
|
# Custom attribute writer method checking allowed values (enum).
|
276
276
|
# @param [Object] functions_as Object to be assigned
|
277
277
|
def functions_as=(functions_as)
|
278
|
-
validator = EnumAttributeValidator.new('String', ["ALIAS", "THREAD", "CATCH_ALL", "CONNECTOR", "ACCOUNT", "GUEST"])
|
278
|
+
validator = EnumAttributeValidator.new('String', ["ALIAS", "THREAD", "CATCH_ALL", "CONNECTOR", "ACCOUNT", "GUEST", "OAUTH_CONNECTION_GMAIL"])
|
279
279
|
unless validator.valid?(functions_as)
|
280
280
|
fail ArgumentError, "invalid value for \"functions_as\", must be one of #{validator.allowable_values}."
|
281
281
|
end
|
@@ -15,8 +15,6 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Inbox replier event
|
17
17
|
class InboxReplierEventProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
18
|
attr_accessor :recipients
|
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 :sent_id
|
29
29
|
|
30
30
|
attr_accessor :replier_id
|
@@ -60,11 +60,11 @@ 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',
|
64
63
|
:'recipients' => :'recipients',
|
65
64
|
:'user_id' => :'userId',
|
66
65
|
:'email_id' => :'emailId',
|
67
66
|
:'inbox_id' => :'inboxId',
|
67
|
+
:'created_at' => :'createdAt',
|
68
68
|
:'sent_id' => :'sentId',
|
69
69
|
:'replier_id' => :'replierId',
|
70
70
|
:'message' => :'message',
|
@@ -76,11 +76,11 @@ module MailSlurpClient
|
|
76
76
|
# Attribute type mapping.
|
77
77
|
def self.openapi_types
|
78
78
|
{
|
79
|
-
:'created_at' => :'DateTime',
|
80
79
|
:'recipients' => :'Array<String>',
|
81
80
|
:'user_id' => :'String',
|
82
81
|
:'email_id' => :'String',
|
83
82
|
:'inbox_id' => :'String',
|
83
|
+
:'created_at' => :'DateTime',
|
84
84
|
:'sent_id' => :'String',
|
85
85
|
:'replier_id' => :'String',
|
86
86
|
:'message' => :'String',
|
@@ -119,10 +119,6 @@ module MailSlurpClient
|
|
119
119
|
h[k.to_sym] = v
|
120
120
|
}
|
121
121
|
|
122
|
-
if attributes.key?(:'created_at')
|
123
|
-
self.created_at = attributes[:'created_at']
|
124
|
-
end
|
125
|
-
|
126
122
|
if attributes.key?(:'recipients')
|
127
123
|
if (value = attributes[:'recipients']).is_a?(Array)
|
128
124
|
self.recipients = value
|
@@ -141,6 +137,10 @@ module MailSlurpClient
|
|
141
137
|
self.inbox_id = attributes[:'inbox_id']
|
142
138
|
end
|
143
139
|
|
140
|
+
if attributes.key?(:'created_at')
|
141
|
+
self.created_at = attributes[:'created_at']
|
142
|
+
end
|
143
|
+
|
144
144
|
if attributes.key?(:'sent_id')
|
145
145
|
self.sent_id = attributes[:'sent_id']
|
146
146
|
end
|
@@ -197,11 +197,11 @@ module MailSlurpClient
|
|
197
197
|
def ==(o)
|
198
198
|
return true if self.equal?(o)
|
199
199
|
self.class == o.class &&
|
200
|
-
created_at == o.created_at &&
|
201
200
|
recipients == o.recipients &&
|
202
201
|
user_id == o.user_id &&
|
203
202
|
email_id == o.email_id &&
|
204
203
|
inbox_id == o.inbox_id &&
|
204
|
+
created_at == o.created_at &&
|
205
205
|
sent_id == o.sent_id &&
|
206
206
|
replier_id == o.replier_id &&
|
207
207
|
message == o.message &&
|
@@ -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
|
-
[
|
221
|
+
[recipients, user_id, email_id, inbox_id, created_at, sent_id, replier_id, message, id, status].hash
|
222
222
|
end
|
223
223
|
|
224
224
|
# Builds the object from hash
|
@@ -15,10 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# List unsubscribe recipient
|
17
17
|
class ListUnsubscribeRecipientProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
18
|
attr_accessor :email_address
|
21
19
|
|
20
|
+
attr_accessor :created_at
|
21
|
+
|
22
22
|
attr_accessor :domain_id
|
23
23
|
|
24
24
|
attr_accessor :id
|
@@ -26,8 +26,8 @@ module MailSlurpClient
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
27
|
def self.attribute_map
|
28
28
|
{
|
29
|
-
:'created_at' => :'createdAt',
|
30
29
|
:'email_address' => :'emailAddress',
|
30
|
+
:'created_at' => :'createdAt',
|
31
31
|
:'domain_id' => :'domainId',
|
32
32
|
:'id' => :'id'
|
33
33
|
}
|
@@ -36,8 +36,8 @@ module MailSlurpClient
|
|
36
36
|
# Attribute type mapping.
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
|
-
:'created_at' => :'DateTime',
|
40
39
|
:'email_address' => :'String',
|
40
|
+
:'created_at' => :'DateTime',
|
41
41
|
:'domain_id' => :'String',
|
42
42
|
:'id' => :'String'
|
43
43
|
}
|
@@ -65,14 +65,14 @@ module MailSlurpClient
|
|
65
65
|
h[k.to_sym] = v
|
66
66
|
}
|
67
67
|
|
68
|
-
if attributes.key?(:'created_at')
|
69
|
-
self.created_at = attributes[:'created_at']
|
70
|
-
end
|
71
|
-
|
72
68
|
if attributes.key?(:'email_address')
|
73
69
|
self.email_address = attributes[:'email_address']
|
74
70
|
end
|
75
71
|
|
72
|
+
if attributes.key?(:'created_at')
|
73
|
+
self.created_at = attributes[:'created_at']
|
74
|
+
end
|
75
|
+
|
76
76
|
if attributes.key?(:'domain_id')
|
77
77
|
self.domain_id = attributes[:'domain_id']
|
78
78
|
end
|
@@ -86,14 +86,14 @@ module MailSlurpClient
|
|
86
86
|
# @return Array for valid properties with the reasons
|
87
87
|
def list_invalid_properties
|
88
88
|
invalid_properties = Array.new
|
89
|
-
if @created_at.nil?
|
90
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
91
|
-
end
|
92
|
-
|
93
89
|
if @email_address.nil?
|
94
90
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
95
91
|
end
|
96
92
|
|
93
|
+
if @created_at.nil?
|
94
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
95
|
+
end
|
96
|
+
|
97
97
|
if @id.nil?
|
98
98
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
99
99
|
end
|
@@ -104,8 +104,8 @@ module MailSlurpClient
|
|
104
104
|
# Check to see if the all the properties in the model are valid
|
105
105
|
# @return true if the model is valid
|
106
106
|
def valid?
|
107
|
-
return false if @created_at.nil?
|
108
107
|
return false if @email_address.nil?
|
108
|
+
return false if @created_at.nil?
|
109
109
|
return false if @id.nil?
|
110
110
|
true
|
111
111
|
end
|
@@ -115,8 +115,8 @@ module MailSlurpClient
|
|
115
115
|
def ==(o)
|
116
116
|
return true if self.equal?(o)
|
117
117
|
self.class == o.class &&
|
118
|
-
created_at == o.created_at &&
|
119
118
|
email_address == o.email_address &&
|
119
|
+
created_at == o.created_at &&
|
120
120
|
domain_id == o.domain_id &&
|
121
121
|
id == o.id
|
122
122
|
end
|
@@ -130,7 +130,7 @@ module MailSlurpClient
|
|
130
130
|
# Calculates hash code according to all attributes.
|
131
131
|
# @return [Integer] Hash code
|
132
132
|
def hash
|
133
|
-
[
|
133
|
+
[email_address, created_at, domain_id, id].hash
|
134
134
|
end
|
135
135
|
|
136
136
|
# Builds the object from hash
|
@@ -15,11 +15,11 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Missed email data
|
17
17
|
class MissedEmailProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :user_id
|
19
19
|
|
20
20
|
attr_accessor :created_at
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :subject
|
23
23
|
|
24
24
|
attr_accessor :id
|
25
25
|
|
@@ -28,9 +28,9 @@ module MailSlurpClient
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
|
-
:'subject' => :'subject',
|
32
|
-
:'created_at' => :'createdAt',
|
33
31
|
:'user_id' => :'userId',
|
32
|
+
:'created_at' => :'createdAt',
|
33
|
+
:'subject' => :'subject',
|
34
34
|
:'id' => :'id',
|
35
35
|
:'from' => :'from'
|
36
36
|
}
|
@@ -39,9 +39,9 @@ module MailSlurpClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'subject' => :'String',
|
43
|
-
:'created_at' => :'DateTime',
|
44
42
|
:'user_id' => :'String',
|
43
|
+
:'created_at' => :'DateTime',
|
44
|
+
:'subject' => :'String',
|
45
45
|
:'id' => :'String',
|
46
46
|
:'from' => :'String'
|
47
47
|
}
|
@@ -50,8 +50,8 @@ module MailSlurpClient
|
|
50
50
|
# List of attributes with nullable: true
|
51
51
|
def self.openapi_nullable
|
52
52
|
Set.new([
|
53
|
-
:'subject',
|
54
53
|
:'user_id',
|
54
|
+
:'subject',
|
55
55
|
:'from'
|
56
56
|
])
|
57
57
|
end
|
@@ -71,16 +71,16 @@ module MailSlurpClient
|
|
71
71
|
h[k.to_sym] = v
|
72
72
|
}
|
73
73
|
|
74
|
-
if attributes.key?(:'
|
75
|
-
self.
|
74
|
+
if attributes.key?(:'user_id')
|
75
|
+
self.user_id = attributes[:'user_id']
|
76
76
|
end
|
77
77
|
|
78
78
|
if attributes.key?(:'created_at')
|
79
79
|
self.created_at = attributes[:'created_at']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
self.
|
82
|
+
if attributes.key?(:'subject')
|
83
|
+
self.subject = attributes[:'subject']
|
84
84
|
end
|
85
85
|
|
86
86
|
if attributes.key?(:'id')
|
@@ -120,9 +120,9 @@ module MailSlurpClient
|
|
120
120
|
def ==(o)
|
121
121
|
return true if self.equal?(o)
|
122
122
|
self.class == o.class &&
|
123
|
-
subject == o.subject &&
|
124
|
-
created_at == o.created_at &&
|
125
123
|
user_id == o.user_id &&
|
124
|
+
created_at == o.created_at &&
|
125
|
+
subject == o.subject &&
|
126
126
|
id == o.id &&
|
127
127
|
from == o.from
|
128
128
|
end
|
@@ -136,7 +136,7 @@ module MailSlurpClient
|
|
136
136
|
# Calculates hash code according to all attributes.
|
137
137
|
# @return [Integer] Hash code
|
138
138
|
def hash
|
139
|
-
[
|
139
|
+
[user_id, created_at, subject, id, from].hash
|
140
140
|
end
|
141
141
|
|
142
142
|
# Builds the object from hash
|
@@ -14,23 +14,23 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class OptInIdentityProjection
|
17
|
-
attr_accessor :created_at
|
18
|
-
|
19
|
-
attr_accessor :updated_at
|
20
|
-
|
21
17
|
attr_accessor :id
|
22
18
|
|
23
19
|
attr_accessor :email_address
|
24
20
|
|
21
|
+
attr_accessor :updated_at
|
22
|
+
|
23
|
+
attr_accessor :created_at
|
24
|
+
|
25
25
|
attr_accessor :verified
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
28
|
def self.attribute_map
|
29
29
|
{
|
30
|
-
:'created_at' => :'createdAt',
|
31
|
-
:'updated_at' => :'updatedAt',
|
32
30
|
:'id' => :'id',
|
33
31
|
:'email_address' => :'emailAddress',
|
32
|
+
:'updated_at' => :'updatedAt',
|
33
|
+
:'created_at' => :'createdAt',
|
34
34
|
:'verified' => :'verified'
|
35
35
|
}
|
36
36
|
end
|
@@ -38,10 +38,10 @@ module MailSlurpClient
|
|
38
38
|
# Attribute type mapping.
|
39
39
|
def self.openapi_types
|
40
40
|
{
|
41
|
-
:'created_at' => :'DateTime',
|
42
|
-
:'updated_at' => :'DateTime',
|
43
41
|
:'id' => :'String',
|
44
42
|
:'email_address' => :'String',
|
43
|
+
:'updated_at' => :'DateTime',
|
44
|
+
:'created_at' => :'DateTime',
|
45
45
|
:'verified' => :'Boolean'
|
46
46
|
}
|
47
47
|
end
|
@@ -67,14 +67,6 @@ module MailSlurpClient
|
|
67
67
|
h[k.to_sym] = v
|
68
68
|
}
|
69
69
|
|
70
|
-
if attributes.key?(:'created_at')
|
71
|
-
self.created_at = attributes[:'created_at']
|
72
|
-
end
|
73
|
-
|
74
|
-
if attributes.key?(:'updated_at')
|
75
|
-
self.updated_at = attributes[:'updated_at']
|
76
|
-
end
|
77
|
-
|
78
70
|
if attributes.key?(:'id')
|
79
71
|
self.id = attributes[:'id']
|
80
72
|
end
|
@@ -83,6 +75,14 @@ module MailSlurpClient
|
|
83
75
|
self.email_address = attributes[:'email_address']
|
84
76
|
end
|
85
77
|
|
78
|
+
if attributes.key?(:'updated_at')
|
79
|
+
self.updated_at = attributes[:'updated_at']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'created_at')
|
83
|
+
self.created_at = attributes[:'created_at']
|
84
|
+
end
|
85
|
+
|
86
86
|
if attributes.key?(:'verified')
|
87
87
|
self.verified = attributes[:'verified']
|
88
88
|
end
|
@@ -92,14 +92,6 @@ module MailSlurpClient
|
|
92
92
|
# @return Array for valid properties with the reasons
|
93
93
|
def list_invalid_properties
|
94
94
|
invalid_properties = Array.new
|
95
|
-
if @created_at.nil?
|
96
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
97
|
-
end
|
98
|
-
|
99
|
-
if @updated_at.nil?
|
100
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
101
|
-
end
|
102
|
-
|
103
95
|
if @id.nil?
|
104
96
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
105
97
|
end
|
@@ -108,16 +100,24 @@ module MailSlurpClient
|
|
108
100
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
109
101
|
end
|
110
102
|
|
103
|
+
if @updated_at.nil?
|
104
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
105
|
+
end
|
106
|
+
|
107
|
+
if @created_at.nil?
|
108
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
109
|
+
end
|
110
|
+
|
111
111
|
invalid_properties
|
112
112
|
end
|
113
113
|
|
114
114
|
# Check to see if the all the properties in the model are valid
|
115
115
|
# @return true if the model is valid
|
116
116
|
def valid?
|
117
|
-
return false if @created_at.nil?
|
118
|
-
return false if @updated_at.nil?
|
119
117
|
return false if @id.nil?
|
120
118
|
return false if @email_address.nil?
|
119
|
+
return false if @updated_at.nil?
|
120
|
+
return false if @created_at.nil?
|
121
121
|
true
|
122
122
|
end
|
123
123
|
|
@@ -126,10 +126,10 @@ module MailSlurpClient
|
|
126
126
|
def ==(o)
|
127
127
|
return true if self.equal?(o)
|
128
128
|
self.class == o.class &&
|
129
|
-
created_at == o.created_at &&
|
130
|
-
updated_at == o.updated_at &&
|
131
129
|
id == o.id &&
|
132
130
|
email_address == o.email_address &&
|
131
|
+
updated_at == o.updated_at &&
|
132
|
+
created_at == o.created_at &&
|
133
133
|
verified == o.verified
|
134
134
|
end
|
135
135
|
|
@@ -142,7 +142,7 @@ module MailSlurpClient
|
|
142
142
|
# Calculates hash code according to all attributes.
|
143
143
|
# @return [Integer] Hash code
|
144
144
|
def hash
|
145
|
-
[
|
145
|
+
[id, email_address, updated_at, created_at, verified].hash
|
146
146
|
end
|
147
147
|
|
148
148
|
# Builds the object from hash
|
@@ -272,7 +272,7 @@ module MailSlurpClient
|
|
272
272
|
return false unless inbox_type_validator.valid?(@inbox_type)
|
273
273
|
return false if @read_only.nil?
|
274
274
|
return false if @virtual_inbox.nil?
|
275
|
-
functions_as_validator = EnumAttributeValidator.new('String', ["ALIAS", "THREAD", "CATCH_ALL", "CONNECTOR", "ACCOUNT", "GUEST"])
|
275
|
+
functions_as_validator = EnumAttributeValidator.new('String', ["ALIAS", "THREAD", "CATCH_ALL", "CONNECTOR", "ACCOUNT", "GUEST", "OAUTH_CONNECTION_GMAIL"])
|
276
276
|
return false unless functions_as_validator.valid?(@functions_as)
|
277
277
|
return false if @user_id.nil?
|
278
278
|
account_region_validator = EnumAttributeValidator.new('String', ["US_WEST_2"])
|
@@ -293,7 +293,7 @@ module MailSlurpClient
|
|
293
293
|
# Custom attribute writer method checking allowed values (enum).
|
294
294
|
# @param [Object] functions_as Object to be assigned
|
295
295
|
def functions_as=(functions_as)
|
296
|
-
validator = EnumAttributeValidator.new('String', ["ALIAS", "THREAD", "CATCH_ALL", "CONNECTOR", "ACCOUNT", "GUEST"])
|
296
|
+
validator = EnumAttributeValidator.new('String', ["ALIAS", "THREAD", "CATCH_ALL", "CONNECTOR", "ACCOUNT", "GUEST", "OAUTH_CONNECTION_GMAIL"])
|
297
297
|
unless validator.valid?(functions_as)
|
298
298
|
fail ArgumentError, "invalid value for \"functions_as\", must be one of #{validator.allowable_values}."
|
299
299
|
end
|