mailslurp_client 15.17.4 → 15.17.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -13
- data/lib/mailslurp_client/api/domain_controller_api.rb +59 -0
- data/lib/mailslurp_client/api/phone_controller_api.rb +1 -1
- data/lib/mailslurp_client/models/attachment_projection.rb +30 -30
- data/lib/mailslurp_client/models/create_emergency_address_options.rb +2 -2
- data/lib/mailslurp_client/models/domain_dto.rb +27 -1
- data/lib/mailslurp_client/models/domain_issues_dto.rb +211 -0
- data/lib/mailslurp_client/models/domain_preview.rb +18 -4
- data/lib/mailslurp_client/models/email_projection.rb +10 -10
- 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/inbox_replier_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
- data/lib/mailslurp_client/models/page_alias.rb +19 -19
- data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_complaint.rb +19 -19
- data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_delivery_status.rb +19 -19
- data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
- data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +19 -19
- data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
- data/lib/mailslurp_client/models/phone_number_dto.rb +2 -2
- data/lib/mailslurp_client/models/phone_number_projection.rb +21 -21
- data/lib/mailslurp_client/models/phone_plan_dto.rb +2 -2
- data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/thread_projection.rb +11 -11
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +1 -0
- metadata +3 -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_elements
|
27
25
|
|
28
26
|
attr_accessor :total_pages
|
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_elements' => :'totalElements',
|
50
49
|
:'total_pages' => :'totalPages',
|
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<UnknownMissedEmailProjection>',
|
64
64
|
:'pageable' => :'PageableObject',
|
65
65
|
:'total' => :'Integer',
|
66
|
-
:'last' => :'Boolean',
|
67
66
|
:'total_elements' => :'Integer',
|
68
67
|
:'total_pages' => :'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_elements')
|
118
114
|
self.total_elements = attributes[:'total_elements']
|
119
115
|
end
|
@@ -122,6 +118,10 @@ module MailSlurpClient
|
|
122
118
|
self.total_pages = attributes[:'total_pages']
|
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_elements == o.total_elements &&
|
173
172
|
total_pages == o.total_pages &&
|
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,
|
191
|
+
[content, pageable, total, total_elements, total_pages, 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_elements
|
27
25
|
|
28
26
|
attr_accessor :total_pages
|
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_elements' => :'totalElements',
|
50
49
|
:'total_pages' => :'totalPages',
|
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_elements' => :'Integer',
|
68
67
|
:'total_pages' => :'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_elements')
|
118
114
|
self.total_elements = attributes[:'total_elements']
|
119
115
|
end
|
@@ -122,6 +118,10 @@ module MailSlurpClient
|
|
122
118
|
self.total_pages = attributes[:'total_pages']
|
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_elements == o.total_elements &&
|
173
172
|
total_pages == o.total_pages &&
|
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,
|
191
|
+
[content, pageable, total, total_elements, total_pages, 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_elements
|
27
25
|
|
28
26
|
attr_accessor :total_pages
|
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_elements' => :'totalElements',
|
50
49
|
:'total_pages' => :'totalPages',
|
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_elements' => :'Integer',
|
68
67
|
:'total_pages' => :'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_elements')
|
118
114
|
self.total_elements = attributes[:'total_elements']
|
119
115
|
end
|
@@ -122,6 +118,10 @@ module MailSlurpClient
|
|
122
118
|
self.total_pages = attributes[:'total_pages']
|
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_elements == o.total_elements &&
|
173
172
|
total_pages == o.total_pages &&
|
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,
|
191
|
+
[content, pageable, total, total_elements, total_pages, last, size, number, sort, number_of_elements, first, empty].hash
|
192
192
|
end
|
193
193
|
|
194
194
|
# Builds the object from hash
|
@@ -184,7 +184,7 @@ module MailSlurpClient
|
|
184
184
|
return false if @user_id.nil?
|
185
185
|
return false if @phone_number.nil?
|
186
186
|
return false if @phone_country.nil?
|
187
|
-
phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB"])
|
187
|
+
phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
|
188
188
|
return false unless phone_country_validator.valid?(@phone_country)
|
189
189
|
return false if @phone_plan.nil?
|
190
190
|
return false if @created_at.nil?
|
@@ -195,7 +195,7 @@ module MailSlurpClient
|
|
195
195
|
# Custom attribute writer method checking allowed values (enum).
|
196
196
|
# @param [Object] phone_country Object to be assigned
|
197
197
|
def phone_country=(phone_country)
|
198
|
-
validator = EnumAttributeValidator.new('String', ["US", "GB"])
|
198
|
+
validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
|
199
199
|
unless validator.valid?(phone_country)
|
200
200
|
fail ArgumentError, "invalid value for \"phone_country\", must be one of #{validator.allowable_values}."
|
201
201
|
end
|
@@ -19,12 +19,12 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :user_id
|
21
21
|
|
22
|
+
attr_accessor :phone_country
|
23
|
+
|
22
24
|
attr_accessor :created_at
|
23
25
|
|
24
26
|
attr_accessor :phone_number
|
25
27
|
|
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',
|
55
56
|
:'created_at' => :'createdAt',
|
56
|
-
:'phone_number' => :'phoneNumber'
|
57
|
-
:'phone_country' => :'phoneCountry'
|
57
|
+
:'phone_number' => :'phoneNumber'
|
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',
|
66
67
|
:'created_at' => :'DateTime',
|
67
|
-
:'phone_number' => :'String'
|
68
|
-
:'phone_country' => :'String'
|
68
|
+
:'phone_number' => :'String'
|
69
69
|
}
|
70
70
|
end
|
71
71
|
|
@@ -98,6 +98,10 @@ 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
|
+
|
101
105
|
if attributes.key?(:'created_at')
|
102
106
|
self.created_at = attributes[:'created_at']
|
103
107
|
end
|
@@ -105,10 +109,6 @@ module MailSlurpClient
|
|
105
109
|
if attributes.key?(:'phone_number')
|
106
110
|
self.phone_number = attributes[:'phone_number']
|
107
111
|
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,6 +123,10 @@ 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
|
+
|
126
130
|
if @created_at.nil?
|
127
131
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
128
132
|
end
|
@@ -131,10 +135,6 @@ module MailSlurpClient
|
|
131
135
|
invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
|
132
136
|
end
|
133
137
|
|
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,18 +143,18 @@ 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 @created_at.nil?
|
147
|
-
return false if @phone_number.nil?
|
148
146
|
return false if @phone_country.nil?
|
149
|
-
phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB"])
|
147
|
+
phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
|
150
148
|
return false unless phone_country_validator.valid?(@phone_country)
|
149
|
+
return false if @created_at.nil?
|
150
|
+
return false if @phone_number.nil?
|
151
151
|
true
|
152
152
|
end
|
153
153
|
|
154
154
|
# Custom attribute writer method checking allowed values (enum).
|
155
155
|
# @param [Object] phone_country Object to be assigned
|
156
156
|
def phone_country=(phone_country)
|
157
|
-
validator = EnumAttributeValidator.new('String', ["US", "GB"])
|
157
|
+
validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
|
158
158
|
unless validator.valid?(phone_country)
|
159
159
|
fail ArgumentError, "invalid value for \"phone_country\", must be one of #{validator.allowable_values}."
|
160
160
|
end
|
@@ -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 &&
|
171
172
|
created_at == o.created_at &&
|
172
|
-
phone_number == o.phone_number
|
173
|
-
phone_country == o.phone_country
|
173
|
+
phone_number == o.phone_number
|
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, created_at, phone_number
|
185
|
+
[id, user_id, phone_country, created_at, phone_number].hash
|
186
186
|
end
|
187
187
|
|
188
188
|
# Builds the object from hash
|
@@ -131,7 +131,7 @@ module MailSlurpClient
|
|
131
131
|
return false if @id.nil?
|
132
132
|
return false if @user_id.nil?
|
133
133
|
return false if @phone_country.nil?
|
134
|
-
phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB"])
|
134
|
+
phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
|
135
135
|
return false unless phone_country_validator.valid?(@phone_country)
|
136
136
|
return false if @created_at.nil?
|
137
137
|
true
|
@@ -140,7 +140,7 @@ module MailSlurpClient
|
|
140
140
|
# Custom attribute writer method checking allowed values (enum).
|
141
141
|
# @param [Object] phone_country Object to be assigned
|
142
142
|
def phone_country=(phone_country)
|
143
|
-
validator = EnumAttributeValidator.new('String', ["US", "GB"])
|
143
|
+
validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
|
144
144
|
unless validator.valid?(phone_country)
|
145
145
|
fail ArgumentError, "invalid value for \"phone_country\", must be one of #{validator.allowable_values}."
|
146
146
|
end
|
@@ -23,10 +23,10 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :user_id
|
25
25
|
|
26
|
-
attr_accessor :attachments
|
27
|
-
|
28
26
|
attr_accessor :inbox_id
|
29
27
|
|
28
|
+
attr_accessor :attachments
|
29
|
+
|
30
30
|
attr_accessor :created_at
|
31
31
|
|
32
32
|
attr_accessor :to
|
@@ -46,8 +46,8 @@ module MailSlurpClient
|
|
46
46
|
:'from' => :'from',
|
47
47
|
:'subject' => :'subject',
|
48
48
|
:'user_id' => :'userId',
|
49
|
-
:'attachments' => :'attachments',
|
50
49
|
:'inbox_id' => :'inboxId',
|
50
|
+
:'attachments' => :'attachments',
|
51
51
|
:'created_at' => :'createdAt',
|
52
52
|
:'to' => :'to',
|
53
53
|
:'bcc' => :'bcc',
|
@@ -64,8 +64,8 @@ module MailSlurpClient
|
|
64
64
|
:'from' => :'String',
|
65
65
|
:'subject' => :'String',
|
66
66
|
:'user_id' => :'String',
|
67
|
-
:'attachments' => :'Array<String>',
|
68
67
|
:'inbox_id' => :'String',
|
68
|
+
:'attachments' => :'Array<String>',
|
69
69
|
:'created_at' => :'DateTime',
|
70
70
|
:'to' => :'Array<String>',
|
71
71
|
:'bcc' => :'Array<String>',
|
@@ -112,16 +112,16 @@ module MailSlurpClient
|
|
112
112
|
self.user_id = attributes[:'user_id']
|
113
113
|
end
|
114
114
|
|
115
|
+
if attributes.key?(:'inbox_id')
|
116
|
+
self.inbox_id = attributes[:'inbox_id']
|
117
|
+
end
|
118
|
+
|
115
119
|
if attributes.key?(:'attachments')
|
116
120
|
if (value = attributes[:'attachments']).is_a?(Array)
|
117
121
|
self.attachments = value
|
118
122
|
end
|
119
123
|
end
|
120
124
|
|
121
|
-
if attributes.key?(:'inbox_id')
|
122
|
-
self.inbox_id = attributes[:'inbox_id']
|
123
|
-
end
|
124
|
-
|
125
125
|
if attributes.key?(:'created_at')
|
126
126
|
self.created_at = attributes[:'created_at']
|
127
127
|
end
|
@@ -165,14 +165,14 @@ module MailSlurpClient
|
|
165
165
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
166
166
|
end
|
167
167
|
|
168
|
-
if @attachments.nil?
|
169
|
-
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
170
|
-
end
|
171
|
-
|
172
168
|
if @inbox_id.nil?
|
173
169
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
174
170
|
end
|
175
171
|
|
172
|
+
if @attachments.nil?
|
173
|
+
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
174
|
+
end
|
175
|
+
|
176
176
|
if @created_at.nil?
|
177
177
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
178
178
|
end
|
@@ -201,8 +201,8 @@ module MailSlurpClient
|
|
201
201
|
def valid?
|
202
202
|
return false if @id.nil?
|
203
203
|
return false if @user_id.nil?
|
204
|
-
return false if @attachments.nil?
|
205
204
|
return false if @inbox_id.nil?
|
205
|
+
return false if @attachments.nil?
|
206
206
|
return false if @created_at.nil?
|
207
207
|
return false if @to.nil?
|
208
208
|
return false if @bcc.nil?
|
@@ -220,8 +220,8 @@ module MailSlurpClient
|
|
220
220
|
from == o.from &&
|
221
221
|
subject == o.subject &&
|
222
222
|
user_id == o.user_id &&
|
223
|
-
attachments == o.attachments &&
|
224
223
|
inbox_id == o.inbox_id &&
|
224
|
+
attachments == o.attachments &&
|
225
225
|
created_at == o.created_at &&
|
226
226
|
to == o.to &&
|
227
227
|
bcc == o.bcc &&
|
@@ -239,7 +239,7 @@ module MailSlurpClient
|
|
239
239
|
# Calculates hash code according to all attributes.
|
240
240
|
# @return [Integer] Hash code
|
241
241
|
def hash
|
242
|
-
[id, from, subject, user_id,
|
242
|
+
[id, from, subject, user_id, inbox_id, attachments, created_at, to, bcc, cc, body_md5_hash, virtual_send].hash
|
243
243
|
end
|
244
244
|
|
245
245
|
# Builds the object from hash
|