mailslurp_client 16.2.5 → 17.0.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/inbox_controller_api.rb +15 -15
- data/lib/mailslurp_client/api/{inbox_ruleset_controller_api.rb → ruleset_controller_api.rb} +184 -175
- data/lib/mailslurp_client/api/tools_controller_api.rb +62 -0
- data/lib/mailslurp_client/api/webhook_controller_api.rb +82 -0
- data/lib/mailslurp_client/models/ai_transform_dto.rb +19 -5
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/alias_thread_projection.rb +26 -26
- data/lib/mailslurp_client/models/attachment_projection.rb +21 -21
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- data/lib/mailslurp_client/models/{create_inbox_ruleset_options.rb → create_ruleset_options.rb} +5 -5
- data/lib/mailslurp_client/models/email.rb +13 -13
- data/lib/mailslurp_client/models/email_thread_projection.rb +23 -23
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +10 -10
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +24 -24
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/lookup_mx_records_options.rb +211 -0
- data/lib/mailslurp_client/models/lookup_mx_records_results.rb +245 -0
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +21 -21
- data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_ai_transform_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_alias.rb +10 -10
- data/lib/mailslurp_client/models/page_alias_thread_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
- data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
- data/lib/mailslurp_client/models/page_complaint.rb +10 -10
- data/lib/mailslurp_client/models/page_connector.rb +10 -10
- data/lib/mailslurp_client/models/page_connector_events.rb +10 -10
- data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
- data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
- data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_email_thread_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +10 -10
- data/lib/mailslurp_client/models/page_entity_event_items.rb +10 -10
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +10 -10
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_guest_portal_users.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_tags.rb +10 -10
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +10 -10
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_reputation_items.rb +10 -10
- data/lib/mailslurp_client/models/{page_inbox_ruleset_dto.rb → page_ruleset_dto.rb} +15 -15
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +10 -10
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_sent_sms_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
- data/lib/mailslurp_client/models/pageable_object.rb +13 -13
- data/lib/mailslurp_client/models/phone_message_thread_projection.rb +27 -27
- data/lib/mailslurp_client/models/plus_address_projection.rb +24 -24
- data/lib/mailslurp_client/models/{inbox_ruleset_dto.rb → ruleset_dto.rb} +17 -7
- data/lib/mailslurp_client/models/{inbox_ruleset_test_options.rb → ruleset_test_options.rb} +3 -3
- data/lib/mailslurp_client/models/sent_email_projection.rb +45 -45
- data/lib/mailslurp_client/models/template_projection.rb +15 -15
- data/lib/mailslurp_client/models/test_inbox_ruleset_sending_options.rb +13 -7
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +11 -11
- data/lib/mailslurp_client/models/{test_inbox_ruleset_receiving_options.rb → test_ruleset_receiving_options.rb} +16 -10
- data/lib/mailslurp_client/models/{test_inbox_ruleset_receiving_result.rb → test_ruleset_receiving_result.rb} +3 -3
- data/lib/mailslurp_client/models/{test_inbox_ruleset_sending_result.rb → test_ruleset_sending_result.rb} +3 -3
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/webhook_projection.rb +39 -30
- data/lib/mailslurp_client/models/webhook_result_dto.rb +15 -5
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +10 -8
- metadata +12 -10
@@ -27,14 +27,14 @@ module MailSlurpClient
|
|
27
27
|
|
28
28
|
attr_accessor :number_of_elements
|
29
29
|
|
30
|
+
attr_accessor :sort
|
31
|
+
|
30
32
|
attr_accessor :first
|
31
33
|
|
32
34
|
attr_accessor :size
|
33
35
|
|
34
36
|
attr_accessor :number
|
35
37
|
|
36
|
-
attr_accessor :sort
|
37
|
-
|
38
38
|
attr_accessor :empty
|
39
39
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -46,10 +46,10 @@ module MailSlurpClient
|
|
46
46
|
:'total_pages' => :'totalPages',
|
47
47
|
:'last' => :'last',
|
48
48
|
:'number_of_elements' => :'numberOfElements',
|
49
|
+
:'sort' => :'sort',
|
49
50
|
:'first' => :'first',
|
50
51
|
:'size' => :'size',
|
51
52
|
:'number' => :'number',
|
52
|
-
:'sort' => :'sort',
|
53
53
|
:'empty' => :'empty'
|
54
54
|
}
|
55
55
|
end
|
@@ -63,10 +63,10 @@ module MailSlurpClient
|
|
63
63
|
:'total_pages' => :'Integer',
|
64
64
|
:'last' => :'Boolean',
|
65
65
|
:'number_of_elements' => :'Integer',
|
66
|
+
:'sort' => :'SortObject',
|
66
67
|
:'first' => :'Boolean',
|
67
68
|
:'size' => :'Integer',
|
68
69
|
:'number' => :'Integer',
|
69
|
-
:'sort' => :'SortObject',
|
70
70
|
:'empty' => :'Boolean'
|
71
71
|
}
|
72
72
|
end
|
@@ -118,6 +118,10 @@ module MailSlurpClient
|
|
118
118
|
self.number_of_elements = attributes[:'number_of_elements']
|
119
119
|
end
|
120
120
|
|
121
|
+
if attributes.key?(:'sort')
|
122
|
+
self.sort = attributes[:'sort']
|
123
|
+
end
|
124
|
+
|
121
125
|
if attributes.key?(:'first')
|
122
126
|
self.first = attributes[:'first']
|
123
127
|
end
|
@@ -130,10 +134,6 @@ module MailSlurpClient
|
|
130
134
|
self.number = attributes[:'number']
|
131
135
|
end
|
132
136
|
|
133
|
-
if attributes.key?(:'sort')
|
134
|
-
self.sort = attributes[:'sort']
|
135
|
-
end
|
136
|
-
|
137
137
|
if attributes.key?(:'empty')
|
138
138
|
self.empty = attributes[:'empty']
|
139
139
|
end
|
@@ -173,10 +173,10 @@ module MailSlurpClient
|
|
173
173
|
total_pages == o.total_pages &&
|
174
174
|
last == o.last &&
|
175
175
|
number_of_elements == o.number_of_elements &&
|
176
|
+
sort == o.sort &&
|
176
177
|
first == o.first &&
|
177
178
|
size == o.size &&
|
178
179
|
number == o.number &&
|
179
|
-
sort == o.sort &&
|
180
180
|
empty == o.empty
|
181
181
|
end
|
182
182
|
|
@@ -189,7 +189,7 @@ module MailSlurpClient
|
|
189
189
|
# Calculates hash code according to all attributes.
|
190
190
|
# @return [Integer] Hash code
|
191
191
|
def hash
|
192
|
-
[content, pageable, total_elements, total_pages, last, number_of_elements, first, size, number,
|
192
|
+
[content, pageable, total_elements, total_pages, last, number_of_elements, sort, first, size, number, empty].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|
@@ -27,14 +27,14 @@ module MailSlurpClient
|
|
27
27
|
|
28
28
|
attr_accessor :number_of_elements
|
29
29
|
|
30
|
+
attr_accessor :sort
|
31
|
+
|
30
32
|
attr_accessor :first
|
31
33
|
|
32
34
|
attr_accessor :size
|
33
35
|
|
34
36
|
attr_accessor :number
|
35
37
|
|
36
|
-
attr_accessor :sort
|
37
|
-
|
38
38
|
attr_accessor :empty
|
39
39
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -46,10 +46,10 @@ module MailSlurpClient
|
|
46
46
|
:'total_pages' => :'totalPages',
|
47
47
|
:'last' => :'last',
|
48
48
|
:'number_of_elements' => :'numberOfElements',
|
49
|
+
:'sort' => :'sort',
|
49
50
|
:'first' => :'first',
|
50
51
|
:'size' => :'size',
|
51
52
|
:'number' => :'number',
|
52
|
-
:'sort' => :'sort',
|
53
53
|
:'empty' => :'empty'
|
54
54
|
}
|
55
55
|
end
|
@@ -63,10 +63,10 @@ module MailSlurpClient
|
|
63
63
|
:'total_pages' => :'Integer',
|
64
64
|
:'last' => :'Boolean',
|
65
65
|
:'number_of_elements' => :'Integer',
|
66
|
+
:'sort' => :'SortObject',
|
66
67
|
:'first' => :'Boolean',
|
67
68
|
:'size' => :'Integer',
|
68
69
|
:'number' => :'Integer',
|
69
|
-
:'sort' => :'SortObject',
|
70
70
|
:'empty' => :'Boolean'
|
71
71
|
}
|
72
72
|
end
|
@@ -118,6 +118,10 @@ module MailSlurpClient
|
|
118
118
|
self.number_of_elements = attributes[:'number_of_elements']
|
119
119
|
end
|
120
120
|
|
121
|
+
if attributes.key?(:'sort')
|
122
|
+
self.sort = attributes[:'sort']
|
123
|
+
end
|
124
|
+
|
121
125
|
if attributes.key?(:'first')
|
122
126
|
self.first = attributes[:'first']
|
123
127
|
end
|
@@ -130,10 +134,6 @@ module MailSlurpClient
|
|
130
134
|
self.number = attributes[:'number']
|
131
135
|
end
|
132
136
|
|
133
|
-
if attributes.key?(:'sort')
|
134
|
-
self.sort = attributes[:'sort']
|
135
|
-
end
|
136
|
-
|
137
137
|
if attributes.key?(:'empty')
|
138
138
|
self.empty = attributes[:'empty']
|
139
139
|
end
|
@@ -173,10 +173,10 @@ module MailSlurpClient
|
|
173
173
|
total_pages == o.total_pages &&
|
174
174
|
last == o.last &&
|
175
175
|
number_of_elements == o.number_of_elements &&
|
176
|
+
sort == o.sort &&
|
176
177
|
first == o.first &&
|
177
178
|
size == o.size &&
|
178
179
|
number == o.number &&
|
179
|
-
sort == o.sort &&
|
180
180
|
empty == o.empty
|
181
181
|
end
|
182
182
|
|
@@ -189,7 +189,7 @@ module MailSlurpClient
|
|
189
189
|
# Calculates hash code according to all attributes.
|
190
190
|
# @return [Integer] Hash code
|
191
191
|
def hash
|
192
|
-
[content, pageable, total_elements, total_pages, last, number_of_elements, first, size, number,
|
192
|
+
[content, pageable, total_elements, total_pages, last, number_of_elements, sort, first, size, number, empty].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|
@@ -27,14 +27,14 @@ module MailSlurpClient
|
|
27
27
|
|
28
28
|
attr_accessor :number_of_elements
|
29
29
|
|
30
|
+
attr_accessor :sort
|
31
|
+
|
30
32
|
attr_accessor :first
|
31
33
|
|
32
34
|
attr_accessor :size
|
33
35
|
|
34
36
|
attr_accessor :number
|
35
37
|
|
36
|
-
attr_accessor :sort
|
37
|
-
|
38
38
|
attr_accessor :empty
|
39
39
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -46,10 +46,10 @@ module MailSlurpClient
|
|
46
46
|
:'total_pages' => :'totalPages',
|
47
47
|
:'last' => :'last',
|
48
48
|
:'number_of_elements' => :'numberOfElements',
|
49
|
+
:'sort' => :'sort',
|
49
50
|
:'first' => :'first',
|
50
51
|
:'size' => :'size',
|
51
52
|
:'number' => :'number',
|
52
|
-
:'sort' => :'sort',
|
53
53
|
:'empty' => :'empty'
|
54
54
|
}
|
55
55
|
end
|
@@ -63,10 +63,10 @@ module MailSlurpClient
|
|
63
63
|
:'total_pages' => :'Integer',
|
64
64
|
:'last' => :'Boolean',
|
65
65
|
:'number_of_elements' => :'Integer',
|
66
|
+
:'sort' => :'SortObject',
|
66
67
|
:'first' => :'Boolean',
|
67
68
|
:'size' => :'Integer',
|
68
69
|
:'number' => :'Integer',
|
69
|
-
:'sort' => :'SortObject',
|
70
70
|
:'empty' => :'Boolean'
|
71
71
|
}
|
72
72
|
end
|
@@ -118,6 +118,10 @@ module MailSlurpClient
|
|
118
118
|
self.number_of_elements = attributes[:'number_of_elements']
|
119
119
|
end
|
120
120
|
|
121
|
+
if attributes.key?(:'sort')
|
122
|
+
self.sort = attributes[:'sort']
|
123
|
+
end
|
124
|
+
|
121
125
|
if attributes.key?(:'first')
|
122
126
|
self.first = attributes[:'first']
|
123
127
|
end
|
@@ -130,10 +134,6 @@ module MailSlurpClient
|
|
130
134
|
self.number = attributes[:'number']
|
131
135
|
end
|
132
136
|
|
133
|
-
if attributes.key?(:'sort')
|
134
|
-
self.sort = attributes[:'sort']
|
135
|
-
end
|
136
|
-
|
137
137
|
if attributes.key?(:'empty')
|
138
138
|
self.empty = attributes[:'empty']
|
139
139
|
end
|
@@ -173,10 +173,10 @@ module MailSlurpClient
|
|
173
173
|
total_pages == o.total_pages &&
|
174
174
|
last == o.last &&
|
175
175
|
number_of_elements == o.number_of_elements &&
|
176
|
+
sort == o.sort &&
|
176
177
|
first == o.first &&
|
177
178
|
size == o.size &&
|
178
179
|
number == o.number &&
|
179
|
-
sort == o.sort &&
|
180
180
|
empty == o.empty
|
181
181
|
end
|
182
182
|
|
@@ -189,7 +189,7 @@ module MailSlurpClient
|
|
189
189
|
# Calculates hash code according to all attributes.
|
190
190
|
# @return [Integer] Hash code
|
191
191
|
def hash
|
192
|
-
[content, pageable, total_elements, total_pages, last, number_of_elements, first, size, number,
|
192
|
+
[content, pageable, total_elements, total_pages, last, number_of_elements, sort, first, size, number, empty].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|
@@ -16,6 +16,8 @@ module MailSlurpClient
|
|
16
16
|
class PageableObject
|
17
17
|
attr_accessor :page_size
|
18
18
|
|
19
|
+
attr_accessor :sort
|
20
|
+
|
19
21
|
attr_accessor :paged
|
20
22
|
|
21
23
|
attr_accessor :page_number
|
@@ -24,17 +26,15 @@ module MailSlurpClient
|
|
24
26
|
|
25
27
|
attr_accessor :offset
|
26
28
|
|
27
|
-
attr_accessor :sort
|
28
|
-
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
32
|
:'page_size' => :'pageSize',
|
33
|
+
:'sort' => :'sort',
|
33
34
|
:'paged' => :'paged',
|
34
35
|
:'page_number' => :'pageNumber',
|
35
36
|
:'unpaged' => :'unpaged',
|
36
|
-
:'offset' => :'offset'
|
37
|
-
:'sort' => :'sort'
|
37
|
+
:'offset' => :'offset'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -42,11 +42,11 @@ module MailSlurpClient
|
|
42
42
|
def self.openapi_types
|
43
43
|
{
|
44
44
|
:'page_size' => :'Integer',
|
45
|
+
:'sort' => :'SortObject',
|
45
46
|
:'paged' => :'Boolean',
|
46
47
|
:'page_number' => :'Integer',
|
47
48
|
:'unpaged' => :'Boolean',
|
48
|
-
:'offset' => :'Integer'
|
49
|
-
:'sort' => :'SortObject'
|
49
|
+
:'offset' => :'Integer'
|
50
50
|
}
|
51
51
|
end
|
52
52
|
|
@@ -75,6 +75,10 @@ module MailSlurpClient
|
|
75
75
|
self.page_size = attributes[:'page_size']
|
76
76
|
end
|
77
77
|
|
78
|
+
if attributes.key?(:'sort')
|
79
|
+
self.sort = attributes[:'sort']
|
80
|
+
end
|
81
|
+
|
78
82
|
if attributes.key?(:'paged')
|
79
83
|
self.paged = attributes[:'paged']
|
80
84
|
end
|
@@ -90,10 +94,6 @@ module MailSlurpClient
|
|
90
94
|
if attributes.key?(:'offset')
|
91
95
|
self.offset = attributes[:'offset']
|
92
96
|
end
|
93
|
-
|
94
|
-
if attributes.key?(:'sort')
|
95
|
-
self.sort = attributes[:'sort']
|
96
|
-
end
|
97
97
|
end
|
98
98
|
|
99
99
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -115,11 +115,11 @@ module MailSlurpClient
|
|
115
115
|
return true if self.equal?(o)
|
116
116
|
self.class == o.class &&
|
117
117
|
page_size == o.page_size &&
|
118
|
+
sort == o.sort &&
|
118
119
|
paged == o.paged &&
|
119
120
|
page_number == o.page_number &&
|
120
121
|
unpaged == o.unpaged &&
|
121
|
-
offset == o.offset
|
122
|
-
sort == o.sort
|
122
|
+
offset == o.offset
|
123
123
|
end
|
124
124
|
|
125
125
|
# @see the `==` method
|
@@ -131,7 +131,7 @@ module MailSlurpClient
|
|
131
131
|
# Calculates hash code according to all attributes.
|
132
132
|
# @return [Integer] Hash code
|
133
133
|
def hash
|
134
|
-
[page_size, paged, page_number, unpaged, offset
|
134
|
+
[page_size, sort, paged, page_number, unpaged, offset].hash
|
135
135
|
end
|
136
136
|
|
137
137
|
# Builds the object from hash
|
@@ -14,10 +14,6 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class PhoneMessageThreadProjection
|
17
|
-
attr_accessor :phone_number
|
18
|
-
|
19
|
-
attr_accessor :phone_number_id
|
20
|
-
|
21
17
|
attr_accessor :other_phone_number
|
22
18
|
|
23
19
|
attr_accessor :last_message_direction
|
@@ -26,6 +22,10 @@ module MailSlurpClient
|
|
26
22
|
|
27
23
|
attr_accessor :last_created
|
28
24
|
|
25
|
+
attr_accessor :phone_number
|
26
|
+
|
27
|
+
attr_accessor :phone_number_id
|
28
|
+
|
29
29
|
class EnumAttributeValidator
|
30
30
|
attr_reader :datatype
|
31
31
|
attr_reader :allowable_values
|
@@ -51,24 +51,24 @@ module MailSlurpClient
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
52
|
def self.attribute_map
|
53
53
|
{
|
54
|
-
:'phone_number' => :'phoneNumber',
|
55
|
-
:'phone_number_id' => :'phoneNumberId',
|
56
54
|
:'other_phone_number' => :'otherPhoneNumber',
|
57
55
|
:'last_message_direction' => :'lastMessageDirection',
|
58
56
|
:'last_body' => :'lastBody',
|
59
|
-
:'last_created' => :'lastCreated'
|
57
|
+
:'last_created' => :'lastCreated',
|
58
|
+
:'phone_number' => :'phoneNumber',
|
59
|
+
:'phone_number_id' => :'phoneNumberId'
|
60
60
|
}
|
61
61
|
end
|
62
62
|
|
63
63
|
# Attribute type mapping.
|
64
64
|
def self.openapi_types
|
65
65
|
{
|
66
|
-
:'phone_number' => :'String',
|
67
|
-
:'phone_number_id' => :'String',
|
68
66
|
:'other_phone_number' => :'String',
|
69
67
|
:'last_message_direction' => :'String',
|
70
68
|
:'last_body' => :'String',
|
71
|
-
:'last_created' => :'DateTime'
|
69
|
+
:'last_created' => :'DateTime',
|
70
|
+
:'phone_number' => :'String',
|
71
|
+
:'phone_number_id' => :'String'
|
72
72
|
}
|
73
73
|
end
|
74
74
|
|
@@ -93,14 +93,6 @@ module MailSlurpClient
|
|
93
93
|
h[k.to_sym] = v
|
94
94
|
}
|
95
95
|
|
96
|
-
if attributes.key?(:'phone_number')
|
97
|
-
self.phone_number = attributes[:'phone_number']
|
98
|
-
end
|
99
|
-
|
100
|
-
if attributes.key?(:'phone_number_id')
|
101
|
-
self.phone_number_id = attributes[:'phone_number_id']
|
102
|
-
end
|
103
|
-
|
104
96
|
if attributes.key?(:'other_phone_number')
|
105
97
|
self.other_phone_number = attributes[:'other_phone_number']
|
106
98
|
end
|
@@ -116,16 +108,20 @@ module MailSlurpClient
|
|
116
108
|
if attributes.key?(:'last_created')
|
117
109
|
self.last_created = attributes[:'last_created']
|
118
110
|
end
|
111
|
+
|
112
|
+
if attributes.key?(:'phone_number')
|
113
|
+
self.phone_number = attributes[:'phone_number']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'phone_number_id')
|
117
|
+
self.phone_number_id = attributes[:'phone_number_id']
|
118
|
+
end
|
119
119
|
end
|
120
120
|
|
121
121
|
# Show invalid properties with the reasons. Usually used together with valid?
|
122
122
|
# @return Array for valid properties with the reasons
|
123
123
|
def list_invalid_properties
|
124
124
|
invalid_properties = Array.new
|
125
|
-
if @phone_number_id.nil?
|
126
|
-
invalid_properties.push('invalid value for "phone_number_id", phone_number_id cannot be nil.')
|
127
|
-
end
|
128
|
-
|
129
125
|
if @last_message_direction.nil?
|
130
126
|
invalid_properties.push('invalid value for "last_message_direction", last_message_direction cannot be nil.')
|
131
127
|
end
|
@@ -138,18 +134,22 @@ module MailSlurpClient
|
|
138
134
|
invalid_properties.push('invalid value for "last_created", last_created cannot be nil.')
|
139
135
|
end
|
140
136
|
|
137
|
+
if @phone_number_id.nil?
|
138
|
+
invalid_properties.push('invalid value for "phone_number_id", phone_number_id cannot be nil.')
|
139
|
+
end
|
140
|
+
|
141
141
|
invalid_properties
|
142
142
|
end
|
143
143
|
|
144
144
|
# Check to see if the all the properties in the model are valid
|
145
145
|
# @return true if the model is valid
|
146
146
|
def valid?
|
147
|
-
return false if @phone_number_id.nil?
|
148
147
|
return false if @last_message_direction.nil?
|
149
148
|
last_message_direction_validator = EnumAttributeValidator.new('String', ["OUTBOUND", "INBOUND"])
|
150
149
|
return false unless last_message_direction_validator.valid?(@last_message_direction)
|
151
150
|
return false if @last_body.nil?
|
152
151
|
return false if @last_created.nil?
|
152
|
+
return false if @phone_number_id.nil?
|
153
153
|
true
|
154
154
|
end
|
155
155
|
|
@@ -168,12 +168,12 @@ module MailSlurpClient
|
|
168
168
|
def ==(o)
|
169
169
|
return true if self.equal?(o)
|
170
170
|
self.class == o.class &&
|
171
|
-
phone_number == o.phone_number &&
|
172
|
-
phone_number_id == o.phone_number_id &&
|
173
171
|
other_phone_number == o.other_phone_number &&
|
174
172
|
last_message_direction == o.last_message_direction &&
|
175
173
|
last_body == o.last_body &&
|
176
|
-
last_created == o.last_created
|
174
|
+
last_created == o.last_created &&
|
175
|
+
phone_number == o.phone_number &&
|
176
|
+
phone_number_id == o.phone_number_id
|
177
177
|
end
|
178
178
|
|
179
179
|
# @see the `==` method
|
@@ -185,7 +185,7 @@ module MailSlurpClient
|
|
185
185
|
# Calculates hash code according to all attributes.
|
186
186
|
# @return [Integer] Hash code
|
187
187
|
def hash
|
188
|
-
[
|
188
|
+
[other_phone_number, last_message_direction, last_body, last_created, phone_number, phone_number_id].hash
|
189
189
|
end
|
190
190
|
|
191
191
|
# Builds the object from hash
|
@@ -14,14 +14,14 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class PlusAddressProjection
|
17
|
-
attr_accessor :inbox_id
|
18
|
-
|
19
17
|
attr_accessor :user_id
|
20
18
|
|
21
|
-
attr_accessor :
|
19
|
+
attr_accessor :inbox_id
|
22
20
|
|
23
21
|
attr_accessor :created_at
|
24
22
|
|
23
|
+
attr_accessor :updated_at
|
24
|
+
|
25
25
|
attr_accessor :plus_address
|
26
26
|
|
27
27
|
attr_accessor :full_address
|
@@ -31,10 +31,10 @@ module MailSlurpClient
|
|
31
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
32
|
def self.attribute_map
|
33
33
|
{
|
34
|
-
:'inbox_id' => :'inboxId',
|
35
34
|
:'user_id' => :'userId',
|
36
|
-
:'
|
35
|
+
:'inbox_id' => :'inboxId',
|
37
36
|
:'created_at' => :'createdAt',
|
37
|
+
:'updated_at' => :'updatedAt',
|
38
38
|
:'plus_address' => :'plusAddress',
|
39
39
|
:'full_address' => :'fullAddress',
|
40
40
|
:'id' => :'id'
|
@@ -44,10 +44,10 @@ module MailSlurpClient
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
-
:'inbox_id' => :'String',
|
48
47
|
:'user_id' => :'String',
|
49
|
-
:'
|
48
|
+
:'inbox_id' => :'String',
|
50
49
|
:'created_at' => :'DateTime',
|
50
|
+
:'updated_at' => :'DateTime',
|
51
51
|
:'plus_address' => :'String',
|
52
52
|
:'full_address' => :'String',
|
53
53
|
:'id' => :'String'
|
@@ -75,22 +75,22 @@ module MailSlurpClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'inbox_id')
|
79
|
-
self.inbox_id = attributes[:'inbox_id']
|
80
|
-
end
|
81
|
-
|
82
78
|
if attributes.key?(:'user_id')
|
83
79
|
self.user_id = attributes[:'user_id']
|
84
80
|
end
|
85
81
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
82
|
+
if attributes.key?(:'inbox_id')
|
83
|
+
self.inbox_id = attributes[:'inbox_id']
|
88
84
|
end
|
89
85
|
|
90
86
|
if attributes.key?(:'created_at')
|
91
87
|
self.created_at = attributes[:'created_at']
|
92
88
|
end
|
93
89
|
|
90
|
+
if attributes.key?(:'updated_at')
|
91
|
+
self.updated_at = attributes[:'updated_at']
|
92
|
+
end
|
93
|
+
|
94
94
|
if attributes.key?(:'plus_address')
|
95
95
|
self.plus_address = attributes[:'plus_address']
|
96
96
|
end
|
@@ -108,22 +108,22 @@ module MailSlurpClient
|
|
108
108
|
# @return Array for valid properties with the reasons
|
109
109
|
def list_invalid_properties
|
110
110
|
invalid_properties = Array.new
|
111
|
-
if @inbox_id.nil?
|
112
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
113
|
-
end
|
114
|
-
|
115
111
|
if @user_id.nil?
|
116
112
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
117
113
|
end
|
118
114
|
|
119
|
-
if @
|
120
|
-
invalid_properties.push('invalid value for "
|
115
|
+
if @inbox_id.nil?
|
116
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
121
117
|
end
|
122
118
|
|
123
119
|
if @created_at.nil?
|
124
120
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
125
121
|
end
|
126
122
|
|
123
|
+
if @updated_at.nil?
|
124
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
125
|
+
end
|
126
|
+
|
127
127
|
if @plus_address.nil?
|
128
128
|
invalid_properties.push('invalid value for "plus_address", plus_address cannot be nil.')
|
129
129
|
end
|
@@ -142,10 +142,10 @@ module MailSlurpClient
|
|
142
142
|
# Check to see if the all the properties in the model are valid
|
143
143
|
# @return true if the model is valid
|
144
144
|
def valid?
|
145
|
-
return false if @inbox_id.nil?
|
146
145
|
return false if @user_id.nil?
|
147
|
-
return false if @
|
146
|
+
return false if @inbox_id.nil?
|
148
147
|
return false if @created_at.nil?
|
148
|
+
return false if @updated_at.nil?
|
149
149
|
return false if @plus_address.nil?
|
150
150
|
return false if @full_address.nil?
|
151
151
|
return false if @id.nil?
|
@@ -157,10 +157,10 @@ module MailSlurpClient
|
|
157
157
|
def ==(o)
|
158
158
|
return true if self.equal?(o)
|
159
159
|
self.class == o.class &&
|
160
|
-
inbox_id == o.inbox_id &&
|
161
160
|
user_id == o.user_id &&
|
162
|
-
|
161
|
+
inbox_id == o.inbox_id &&
|
163
162
|
created_at == o.created_at &&
|
163
|
+
updated_at == o.updated_at &&
|
164
164
|
plus_address == o.plus_address &&
|
165
165
|
full_address == o.full_address &&
|
166
166
|
id == o.id
|
@@ -175,7 +175,7 @@ module MailSlurpClient
|
|
175
175
|
# Calculates hash code according to all attributes.
|
176
176
|
# @return [Integer] Hash code
|
177
177
|
def hash
|
178
|
-
[inbox_id,
|
178
|
+
[user_id, inbox_id, created_at, updated_at, plus_address, full_address, id].hash
|
179
179
|
end
|
180
180
|
|
181
181
|
# Builds the object from hash
|