mailslurp_client 17.3.0 → 17.4.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 +5 -5
- data/lib/mailslurp_client/api/email_controller_api.rb +2 -2
- data/lib/mailslurp_client/api/email_verification_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +229 -0
- data/lib/mailslurp_client/api/phone_controller_api.rb +334 -0
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +13 -13
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/alias_thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_event_projection.rb +30 -30
- data/lib/mailslurp_client/models/connector_projection.rb +10 -10
- data/lib/mailslurp_client/models/contact_projection.rb +15 -15
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +58 -29
- data/lib/mailslurp_client/models/create_inbox_replier_options.rb +39 -33
- data/lib/mailslurp_client/models/create_phone_number_options.rb +37 -4
- data/lib/mailslurp_client/models/email_intelligence_list_result.rb +285 -0
- data/lib/mailslurp_client/models/email_intelligence_options.rb +308 -0
- data/lib/mailslurp_client/models/email_intelligence_result_dto.rb +256 -0
- data/lib/mailslurp_client/models/email_intelligence_score_breakdown_dto.rb +296 -0
- data/lib/mailslurp_client/models/email_intelligence_signals_dto.rb +352 -0
- data/lib/mailslurp_client/models/email_intelligence_tests_options.rb +253 -0
- data/lib/mailslurp_client/models/email_thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +13 -13
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/extract_attachment_text_options.rb +1 -1
- data/lib/mailslurp_client/models/extract_attachment_text_result.rb +1 -1
- data/lib/mailslurp_client/models/group_projection.rb +14 -14
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +24 -24
- data/lib/mailslurp_client/models/import_email_options.rb +269 -0
- data/lib/mailslurp_client/models/inbox_automation_match_option.rb +308 -0
- data/lib/mailslurp_client/models/inbox_automation_match_options.rb +273 -0
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +65 -17
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +16 -16
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +17 -9
- data/lib/mailslurp_client/models/inbox_replier_dto.rb +41 -16
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +16 -16
- data/lib/mailslurp_client/models/inline_object.rb +12 -58
- data/lib/mailslurp_client/models/inline_object1.rb +58 -12
- data/lib/mailslurp_client/models/inline_object2.rb +211 -0
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +18 -18
- data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_ai_transform_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_alias.rb +24 -24
- data/lib/mailslurp_client/models/page_alias_thread_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_attachment_entity.rb +24 -24
- data/lib/mailslurp_client/models/page_bounced_email.rb +24 -24
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +24 -24
- data/lib/mailslurp_client/models/page_complaint.rb +24 -24
- data/lib/mailslurp_client/models/page_connector.rb +24 -24
- data/lib/mailslurp_client/models/page_connector_events.rb +24 -24
- data/lib/mailslurp_client/models/page_contact_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_delivery_status.rb +24 -24
- data/lib/mailslurp_client/models/page_device_preview_run_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_email_preview.rb +24 -24
- data/lib/mailslurp_client/models/page_email_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_email_thread_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_email_validation_request.rb +24 -24
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +24 -24
- data/lib/mailslurp_client/models/page_entity_event_items.rb +24 -24
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +24 -24
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_group_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_guest_portal_users.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_tags.rb +24 -24
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +24 -24
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_missed_sms_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_phone_number_release_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_reputation_items.rb +24 -24
- data/lib/mailslurp_client/models/page_ruleset_dto.rb +24 -24
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +24 -24
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_sent_sms_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_sms_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_template_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_webhook_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_webhook_result.rb +24 -24
- data/lib/mailslurp_client/models/pageable_object.rb +13 -13
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +15 -15
- data/lib/mailslurp_client/models/phone_number_dto.rb +17 -1
- data/lib/mailslurp_client/models/phone_number_tags_options.rb +213 -0
- data/lib/mailslurp_client/models/plus_address_projection.rb +15 -15
- data/lib/mailslurp_client/models/reputation_item_projection.rb +13 -13
- data/lib/mailslurp_client/models/template_projection.rb +15 -15
- data/lib/mailslurp_client/models/update_inbox_replier_options.rb +39 -33
- data/lib/mailslurp_client/models/webhook_projection.rb +15 -15
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +11 -0
- metadata +13 -2
|
@@ -19,22 +19,22 @@ module MailSlurpClient
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :pageable
|
|
21
21
|
|
|
22
|
-
attr_accessor :total_elements
|
|
23
|
-
|
|
24
22
|
attr_accessor :total_pages
|
|
25
23
|
|
|
24
|
+
attr_accessor :total_elements
|
|
25
|
+
|
|
26
26
|
attr_accessor :last
|
|
27
27
|
|
|
28
28
|
attr_accessor :size
|
|
29
29
|
|
|
30
30
|
attr_accessor :number
|
|
31
31
|
|
|
32
|
+
attr_accessor :first
|
|
33
|
+
|
|
32
34
|
attr_accessor :number_of_elements
|
|
33
35
|
|
|
34
36
|
attr_accessor :sort
|
|
35
37
|
|
|
36
|
-
attr_accessor :first
|
|
37
|
-
|
|
38
38
|
attr_accessor :empty
|
|
39
39
|
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -42,14 +42,14 @@ module MailSlurpClient
|
|
|
42
42
|
{
|
|
43
43
|
:'content' => :'content',
|
|
44
44
|
:'pageable' => :'pageable',
|
|
45
|
-
:'total_elements' => :'totalElements',
|
|
46
45
|
:'total_pages' => :'totalPages',
|
|
46
|
+
:'total_elements' => :'totalElements',
|
|
47
47
|
:'last' => :'last',
|
|
48
48
|
:'size' => :'size',
|
|
49
49
|
:'number' => :'number',
|
|
50
|
+
:'first' => :'first',
|
|
50
51
|
:'number_of_elements' => :'numberOfElements',
|
|
51
52
|
:'sort' => :'sort',
|
|
52
|
-
:'first' => :'first',
|
|
53
53
|
:'empty' => :'empty'
|
|
54
54
|
}
|
|
55
55
|
end
|
|
@@ -59,14 +59,14 @@ module MailSlurpClient
|
|
|
59
59
|
{
|
|
60
60
|
:'content' => :'Array<WebhookEndpointProjection>',
|
|
61
61
|
:'pageable' => :'PageableObject',
|
|
62
|
-
:'total_elements' => :'Integer',
|
|
63
62
|
:'total_pages' => :'Integer',
|
|
63
|
+
:'total_elements' => :'Integer',
|
|
64
64
|
:'last' => :'Boolean',
|
|
65
65
|
:'size' => :'Integer',
|
|
66
66
|
:'number' => :'Integer',
|
|
67
|
+
:'first' => :'Boolean',
|
|
67
68
|
:'number_of_elements' => :'Integer',
|
|
68
69
|
:'sort' => :'SortObject',
|
|
69
|
-
:'first' => :'Boolean',
|
|
70
70
|
:'empty' => :'Boolean'
|
|
71
71
|
}
|
|
72
72
|
end
|
|
@@ -102,14 +102,14 @@ module MailSlurpClient
|
|
|
102
102
|
self.pageable = attributes[:'pageable']
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
-
if attributes.key?(:'total_elements')
|
|
106
|
-
self.total_elements = attributes[:'total_elements']
|
|
107
|
-
end
|
|
108
|
-
|
|
109
105
|
if attributes.key?(:'total_pages')
|
|
110
106
|
self.total_pages = attributes[:'total_pages']
|
|
111
107
|
end
|
|
112
108
|
|
|
109
|
+
if attributes.key?(:'total_elements')
|
|
110
|
+
self.total_elements = attributes[:'total_elements']
|
|
111
|
+
end
|
|
112
|
+
|
|
113
113
|
if attributes.key?(:'last')
|
|
114
114
|
self.last = attributes[:'last']
|
|
115
115
|
end
|
|
@@ -122,6 +122,10 @@ module MailSlurpClient
|
|
|
122
122
|
self.number = attributes[:'number']
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
+
if attributes.key?(:'first')
|
|
126
|
+
self.first = attributes[:'first']
|
|
127
|
+
end
|
|
128
|
+
|
|
125
129
|
if attributes.key?(:'number_of_elements')
|
|
126
130
|
self.number_of_elements = attributes[:'number_of_elements']
|
|
127
131
|
end
|
|
@@ -130,10 +134,6 @@ module MailSlurpClient
|
|
|
130
134
|
self.sort = attributes[:'sort']
|
|
131
135
|
end
|
|
132
136
|
|
|
133
|
-
if attributes.key?(:'first')
|
|
134
|
-
self.first = attributes[:'first']
|
|
135
|
-
end
|
|
136
|
-
|
|
137
137
|
if attributes.key?(:'empty')
|
|
138
138
|
self.empty = attributes[:'empty']
|
|
139
139
|
end
|
|
@@ -143,22 +143,22 @@ module MailSlurpClient
|
|
|
143
143
|
# @return Array for valid properties with the reasons
|
|
144
144
|
def list_invalid_properties
|
|
145
145
|
invalid_properties = Array.new
|
|
146
|
-
if @total_elements.nil?
|
|
147
|
-
invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
|
|
148
|
-
end
|
|
149
|
-
|
|
150
146
|
if @total_pages.nil?
|
|
151
147
|
invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
|
|
152
148
|
end
|
|
153
149
|
|
|
150
|
+
if @total_elements.nil?
|
|
151
|
+
invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
|
|
152
|
+
end
|
|
153
|
+
|
|
154
154
|
invalid_properties
|
|
155
155
|
end
|
|
156
156
|
|
|
157
157
|
# Check to see if the all the properties in the model are valid
|
|
158
158
|
# @return true if the model is valid
|
|
159
159
|
def valid?
|
|
160
|
-
return false if @total_elements.nil?
|
|
161
160
|
return false if @total_pages.nil?
|
|
161
|
+
return false if @total_elements.nil?
|
|
162
162
|
true
|
|
163
163
|
end
|
|
164
164
|
|
|
@@ -169,14 +169,14 @@ module MailSlurpClient
|
|
|
169
169
|
self.class == o.class &&
|
|
170
170
|
content == o.content &&
|
|
171
171
|
pageable == o.pageable &&
|
|
172
|
-
total_elements == o.total_elements &&
|
|
173
172
|
total_pages == o.total_pages &&
|
|
173
|
+
total_elements == o.total_elements &&
|
|
174
174
|
last == o.last &&
|
|
175
175
|
size == o.size &&
|
|
176
176
|
number == o.number &&
|
|
177
|
+
first == o.first &&
|
|
177
178
|
number_of_elements == o.number_of_elements &&
|
|
178
179
|
sort == o.sort &&
|
|
179
|
-
first == o.first &&
|
|
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,
|
|
192
|
+
[content, pageable, total_pages, total_elements, last, size, number, first, number_of_elements, sort, empty].hash
|
|
193
193
|
end
|
|
194
194
|
|
|
195
195
|
# Builds the object from hash
|
|
@@ -19,22 +19,22 @@ module MailSlurpClient
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :pageable
|
|
21
21
|
|
|
22
|
-
attr_accessor :total_elements
|
|
23
|
-
|
|
24
22
|
attr_accessor :total_pages
|
|
25
23
|
|
|
24
|
+
attr_accessor :total_elements
|
|
25
|
+
|
|
26
26
|
attr_accessor :last
|
|
27
27
|
|
|
28
28
|
attr_accessor :size
|
|
29
29
|
|
|
30
30
|
attr_accessor :number
|
|
31
31
|
|
|
32
|
+
attr_accessor :first
|
|
33
|
+
|
|
32
34
|
attr_accessor :number_of_elements
|
|
33
35
|
|
|
34
36
|
attr_accessor :sort
|
|
35
37
|
|
|
36
|
-
attr_accessor :first
|
|
37
|
-
|
|
38
38
|
attr_accessor :empty
|
|
39
39
|
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -42,14 +42,14 @@ module MailSlurpClient
|
|
|
42
42
|
{
|
|
43
43
|
:'content' => :'content',
|
|
44
44
|
:'pageable' => :'pageable',
|
|
45
|
-
:'total_elements' => :'totalElements',
|
|
46
45
|
:'total_pages' => :'totalPages',
|
|
46
|
+
:'total_elements' => :'totalElements',
|
|
47
47
|
:'last' => :'last',
|
|
48
48
|
:'size' => :'size',
|
|
49
49
|
:'number' => :'number',
|
|
50
|
+
:'first' => :'first',
|
|
50
51
|
:'number_of_elements' => :'numberOfElements',
|
|
51
52
|
:'sort' => :'sort',
|
|
52
|
-
:'first' => :'first',
|
|
53
53
|
:'empty' => :'empty'
|
|
54
54
|
}
|
|
55
55
|
end
|
|
@@ -59,14 +59,14 @@ module MailSlurpClient
|
|
|
59
59
|
{
|
|
60
60
|
:'content' => :'Array<WebhookProjection>',
|
|
61
61
|
:'pageable' => :'PageableObject',
|
|
62
|
-
:'total_elements' => :'Integer',
|
|
63
62
|
:'total_pages' => :'Integer',
|
|
63
|
+
:'total_elements' => :'Integer',
|
|
64
64
|
:'last' => :'Boolean',
|
|
65
65
|
:'size' => :'Integer',
|
|
66
66
|
:'number' => :'Integer',
|
|
67
|
+
:'first' => :'Boolean',
|
|
67
68
|
:'number_of_elements' => :'Integer',
|
|
68
69
|
:'sort' => :'SortObject',
|
|
69
|
-
:'first' => :'Boolean',
|
|
70
70
|
:'empty' => :'Boolean'
|
|
71
71
|
}
|
|
72
72
|
end
|
|
@@ -102,14 +102,14 @@ module MailSlurpClient
|
|
|
102
102
|
self.pageable = attributes[:'pageable']
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
-
if attributes.key?(:'total_elements')
|
|
106
|
-
self.total_elements = attributes[:'total_elements']
|
|
107
|
-
end
|
|
108
|
-
|
|
109
105
|
if attributes.key?(:'total_pages')
|
|
110
106
|
self.total_pages = attributes[:'total_pages']
|
|
111
107
|
end
|
|
112
108
|
|
|
109
|
+
if attributes.key?(:'total_elements')
|
|
110
|
+
self.total_elements = attributes[:'total_elements']
|
|
111
|
+
end
|
|
112
|
+
|
|
113
113
|
if attributes.key?(:'last')
|
|
114
114
|
self.last = attributes[:'last']
|
|
115
115
|
end
|
|
@@ -122,6 +122,10 @@ module MailSlurpClient
|
|
|
122
122
|
self.number = attributes[:'number']
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
+
if attributes.key?(:'first')
|
|
126
|
+
self.first = attributes[:'first']
|
|
127
|
+
end
|
|
128
|
+
|
|
125
129
|
if attributes.key?(:'number_of_elements')
|
|
126
130
|
self.number_of_elements = attributes[:'number_of_elements']
|
|
127
131
|
end
|
|
@@ -130,10 +134,6 @@ module MailSlurpClient
|
|
|
130
134
|
self.sort = attributes[:'sort']
|
|
131
135
|
end
|
|
132
136
|
|
|
133
|
-
if attributes.key?(:'first')
|
|
134
|
-
self.first = attributes[:'first']
|
|
135
|
-
end
|
|
136
|
-
|
|
137
137
|
if attributes.key?(:'empty')
|
|
138
138
|
self.empty = attributes[:'empty']
|
|
139
139
|
end
|
|
@@ -143,22 +143,22 @@ module MailSlurpClient
|
|
|
143
143
|
# @return Array for valid properties with the reasons
|
|
144
144
|
def list_invalid_properties
|
|
145
145
|
invalid_properties = Array.new
|
|
146
|
-
if @total_elements.nil?
|
|
147
|
-
invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
|
|
148
|
-
end
|
|
149
|
-
|
|
150
146
|
if @total_pages.nil?
|
|
151
147
|
invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
|
|
152
148
|
end
|
|
153
149
|
|
|
150
|
+
if @total_elements.nil?
|
|
151
|
+
invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
|
|
152
|
+
end
|
|
153
|
+
|
|
154
154
|
invalid_properties
|
|
155
155
|
end
|
|
156
156
|
|
|
157
157
|
# Check to see if the all the properties in the model are valid
|
|
158
158
|
# @return true if the model is valid
|
|
159
159
|
def valid?
|
|
160
|
-
return false if @total_elements.nil?
|
|
161
160
|
return false if @total_pages.nil?
|
|
161
|
+
return false if @total_elements.nil?
|
|
162
162
|
true
|
|
163
163
|
end
|
|
164
164
|
|
|
@@ -169,14 +169,14 @@ module MailSlurpClient
|
|
|
169
169
|
self.class == o.class &&
|
|
170
170
|
content == o.content &&
|
|
171
171
|
pageable == o.pageable &&
|
|
172
|
-
total_elements == o.total_elements &&
|
|
173
172
|
total_pages == o.total_pages &&
|
|
173
|
+
total_elements == o.total_elements &&
|
|
174
174
|
last == o.last &&
|
|
175
175
|
size == o.size &&
|
|
176
176
|
number == o.number &&
|
|
177
|
+
first == o.first &&
|
|
177
178
|
number_of_elements == o.number_of_elements &&
|
|
178
179
|
sort == o.sort &&
|
|
179
|
-
first == o.first &&
|
|
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,
|
|
192
|
+
[content, pageable, total_pages, total_elements, last, size, number, first, number_of_elements, sort, empty].hash
|
|
193
193
|
end
|
|
194
194
|
|
|
195
195
|
# Builds the object from hash
|
|
@@ -19,22 +19,22 @@ module MailSlurpClient
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :pageable
|
|
21
21
|
|
|
22
|
-
attr_accessor :total_elements
|
|
23
|
-
|
|
24
22
|
attr_accessor :total_pages
|
|
25
23
|
|
|
24
|
+
attr_accessor :total_elements
|
|
25
|
+
|
|
26
26
|
attr_accessor :last
|
|
27
27
|
|
|
28
28
|
attr_accessor :size
|
|
29
29
|
|
|
30
30
|
attr_accessor :number
|
|
31
31
|
|
|
32
|
+
attr_accessor :first
|
|
33
|
+
|
|
32
34
|
attr_accessor :number_of_elements
|
|
33
35
|
|
|
34
36
|
attr_accessor :sort
|
|
35
37
|
|
|
36
|
-
attr_accessor :first
|
|
37
|
-
|
|
38
38
|
attr_accessor :empty
|
|
39
39
|
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -42,14 +42,14 @@ module MailSlurpClient
|
|
|
42
42
|
{
|
|
43
43
|
:'content' => :'content',
|
|
44
44
|
:'pageable' => :'pageable',
|
|
45
|
-
:'total_elements' => :'totalElements',
|
|
46
45
|
:'total_pages' => :'totalPages',
|
|
46
|
+
:'total_elements' => :'totalElements',
|
|
47
47
|
:'last' => :'last',
|
|
48
48
|
:'size' => :'size',
|
|
49
49
|
:'number' => :'number',
|
|
50
|
+
:'first' => :'first',
|
|
50
51
|
:'number_of_elements' => :'numberOfElements',
|
|
51
52
|
:'sort' => :'sort',
|
|
52
|
-
:'first' => :'first',
|
|
53
53
|
:'empty' => :'empty'
|
|
54
54
|
}
|
|
55
55
|
end
|
|
@@ -59,14 +59,14 @@ module MailSlurpClient
|
|
|
59
59
|
{
|
|
60
60
|
:'content' => :'Array<WebhookResultDto>',
|
|
61
61
|
:'pageable' => :'PageableObject',
|
|
62
|
-
:'total_elements' => :'Integer',
|
|
63
62
|
:'total_pages' => :'Integer',
|
|
63
|
+
:'total_elements' => :'Integer',
|
|
64
64
|
:'last' => :'Boolean',
|
|
65
65
|
:'size' => :'Integer',
|
|
66
66
|
:'number' => :'Integer',
|
|
67
|
+
:'first' => :'Boolean',
|
|
67
68
|
:'number_of_elements' => :'Integer',
|
|
68
69
|
:'sort' => :'SortObject',
|
|
69
|
-
:'first' => :'Boolean',
|
|
70
70
|
:'empty' => :'Boolean'
|
|
71
71
|
}
|
|
72
72
|
end
|
|
@@ -102,14 +102,14 @@ module MailSlurpClient
|
|
|
102
102
|
self.pageable = attributes[:'pageable']
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
-
if attributes.key?(:'total_elements')
|
|
106
|
-
self.total_elements = attributes[:'total_elements']
|
|
107
|
-
end
|
|
108
|
-
|
|
109
105
|
if attributes.key?(:'total_pages')
|
|
110
106
|
self.total_pages = attributes[:'total_pages']
|
|
111
107
|
end
|
|
112
108
|
|
|
109
|
+
if attributes.key?(:'total_elements')
|
|
110
|
+
self.total_elements = attributes[:'total_elements']
|
|
111
|
+
end
|
|
112
|
+
|
|
113
113
|
if attributes.key?(:'last')
|
|
114
114
|
self.last = attributes[:'last']
|
|
115
115
|
end
|
|
@@ -122,6 +122,10 @@ module MailSlurpClient
|
|
|
122
122
|
self.number = attributes[:'number']
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
+
if attributes.key?(:'first')
|
|
126
|
+
self.first = attributes[:'first']
|
|
127
|
+
end
|
|
128
|
+
|
|
125
129
|
if attributes.key?(:'number_of_elements')
|
|
126
130
|
self.number_of_elements = attributes[:'number_of_elements']
|
|
127
131
|
end
|
|
@@ -130,10 +134,6 @@ module MailSlurpClient
|
|
|
130
134
|
self.sort = attributes[:'sort']
|
|
131
135
|
end
|
|
132
136
|
|
|
133
|
-
if attributes.key?(:'first')
|
|
134
|
-
self.first = attributes[:'first']
|
|
135
|
-
end
|
|
136
|
-
|
|
137
137
|
if attributes.key?(:'empty')
|
|
138
138
|
self.empty = attributes[:'empty']
|
|
139
139
|
end
|
|
@@ -143,22 +143,22 @@ module MailSlurpClient
|
|
|
143
143
|
# @return Array for valid properties with the reasons
|
|
144
144
|
def list_invalid_properties
|
|
145
145
|
invalid_properties = Array.new
|
|
146
|
-
if @total_elements.nil?
|
|
147
|
-
invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
|
|
148
|
-
end
|
|
149
|
-
|
|
150
146
|
if @total_pages.nil?
|
|
151
147
|
invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
|
|
152
148
|
end
|
|
153
149
|
|
|
150
|
+
if @total_elements.nil?
|
|
151
|
+
invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
|
|
152
|
+
end
|
|
153
|
+
|
|
154
154
|
invalid_properties
|
|
155
155
|
end
|
|
156
156
|
|
|
157
157
|
# Check to see if the all the properties in the model are valid
|
|
158
158
|
# @return true if the model is valid
|
|
159
159
|
def valid?
|
|
160
|
-
return false if @total_elements.nil?
|
|
161
160
|
return false if @total_pages.nil?
|
|
161
|
+
return false if @total_elements.nil?
|
|
162
162
|
true
|
|
163
163
|
end
|
|
164
164
|
|
|
@@ -169,14 +169,14 @@ module MailSlurpClient
|
|
|
169
169
|
self.class == o.class &&
|
|
170
170
|
content == o.content &&
|
|
171
171
|
pageable == o.pageable &&
|
|
172
|
-
total_elements == o.total_elements &&
|
|
173
172
|
total_pages == o.total_pages &&
|
|
173
|
+
total_elements == o.total_elements &&
|
|
174
174
|
last == o.last &&
|
|
175
175
|
size == o.size &&
|
|
176
176
|
number == o.number &&
|
|
177
|
+
first == o.first &&
|
|
177
178
|
number_of_elements == o.number_of_elements &&
|
|
178
179
|
sort == o.sort &&
|
|
179
|
-
first == o.first &&
|
|
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,
|
|
192
|
+
[content, pageable, total_pages, total_elements, last, size, number, first, number_of_elements, sort, empty].hash
|
|
193
193
|
end
|
|
194
194
|
|
|
195
195
|
# Builds the object from hash
|
|
@@ -18,23 +18,23 @@ module MailSlurpClient
|
|
|
18
18
|
|
|
19
19
|
attr_accessor :page_size
|
|
20
20
|
|
|
21
|
+
attr_accessor :unpaged
|
|
22
|
+
|
|
21
23
|
attr_accessor :sort
|
|
22
24
|
|
|
23
25
|
attr_accessor :paged
|
|
24
26
|
|
|
25
27
|
attr_accessor :page_number
|
|
26
28
|
|
|
27
|
-
attr_accessor :unpaged
|
|
28
|
-
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
30
|
def self.attribute_map
|
|
31
31
|
{
|
|
32
32
|
:'offset' => :'offset',
|
|
33
33
|
:'page_size' => :'pageSize',
|
|
34
|
+
:'unpaged' => :'unpaged',
|
|
34
35
|
:'sort' => :'sort',
|
|
35
36
|
:'paged' => :'paged',
|
|
36
|
-
:'page_number' => :'pageNumber'
|
|
37
|
-
:'unpaged' => :'unpaged'
|
|
37
|
+
:'page_number' => :'pageNumber'
|
|
38
38
|
}
|
|
39
39
|
end
|
|
40
40
|
|
|
@@ -43,10 +43,10 @@ module MailSlurpClient
|
|
|
43
43
|
{
|
|
44
44
|
:'offset' => :'Integer',
|
|
45
45
|
:'page_size' => :'Integer',
|
|
46
|
+
:'unpaged' => :'Boolean',
|
|
46
47
|
:'sort' => :'SortObject',
|
|
47
48
|
:'paged' => :'Boolean',
|
|
48
|
-
:'page_number' => :'Integer'
|
|
49
|
-
:'unpaged' => :'Boolean'
|
|
49
|
+
:'page_number' => :'Integer'
|
|
50
50
|
}
|
|
51
51
|
end
|
|
52
52
|
|
|
@@ -79,6 +79,10 @@ module MailSlurpClient
|
|
|
79
79
|
self.page_size = attributes[:'page_size']
|
|
80
80
|
end
|
|
81
81
|
|
|
82
|
+
if attributes.key?(:'unpaged')
|
|
83
|
+
self.unpaged = attributes[:'unpaged']
|
|
84
|
+
end
|
|
85
|
+
|
|
82
86
|
if attributes.key?(:'sort')
|
|
83
87
|
self.sort = attributes[:'sort']
|
|
84
88
|
end
|
|
@@ -90,10 +94,6 @@ module MailSlurpClient
|
|
|
90
94
|
if attributes.key?(:'page_number')
|
|
91
95
|
self.page_number = attributes[:'page_number']
|
|
92
96
|
end
|
|
93
|
-
|
|
94
|
-
if attributes.key?(:'unpaged')
|
|
95
|
-
self.unpaged = attributes[:'unpaged']
|
|
96
|
-
end
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -116,10 +116,10 @@ module MailSlurpClient
|
|
|
116
116
|
self.class == o.class &&
|
|
117
117
|
offset == o.offset &&
|
|
118
118
|
page_size == o.page_size &&
|
|
119
|
+
unpaged == o.unpaged &&
|
|
119
120
|
sort == o.sort &&
|
|
120
121
|
paged == o.paged &&
|
|
121
|
-
page_number == o.page_number
|
|
122
|
-
unpaged == o.unpaged
|
|
122
|
+
page_number == o.page_number
|
|
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
|
-
[offset, page_size, sort, paged, page_number
|
|
134
|
+
[offset, page_size, unpaged, sort, paged, page_number].hash
|
|
135
135
|
end
|
|
136
136
|
|
|
137
137
|
# Builds the object from hash
|
|
@@ -18,10 +18,10 @@ module MailSlurpClient
|
|
|
18
18
|
|
|
19
19
|
attr_accessor :body
|
|
20
20
|
|
|
21
|
-
attr_accessor :phone_number_id
|
|
22
|
-
|
|
23
21
|
attr_accessor :created
|
|
24
22
|
|
|
23
|
+
attr_accessor :phone_number_id
|
|
24
|
+
|
|
25
25
|
attr_accessor :message_direction
|
|
26
26
|
|
|
27
27
|
attr_accessor :from_phone_number
|
|
@@ -55,8 +55,8 @@ module MailSlurpClient
|
|
|
55
55
|
{
|
|
56
56
|
:'id' => :'id',
|
|
57
57
|
:'body' => :'body',
|
|
58
|
-
:'phone_number_id' => :'phoneNumberId',
|
|
59
58
|
:'created' => :'created',
|
|
59
|
+
:'phone_number_id' => :'phoneNumberId',
|
|
60
60
|
:'message_direction' => :'messageDirection',
|
|
61
61
|
:'from_phone_number' => :'fromPhoneNumber',
|
|
62
62
|
:'to_phone_number' => :'toPhoneNumber'
|
|
@@ -68,8 +68,8 @@ module MailSlurpClient
|
|
|
68
68
|
{
|
|
69
69
|
:'id' => :'String',
|
|
70
70
|
:'body' => :'String',
|
|
71
|
-
:'phone_number_id' => :'String',
|
|
72
71
|
:'created' => :'DateTime',
|
|
72
|
+
:'phone_number_id' => :'String',
|
|
73
73
|
:'message_direction' => :'String',
|
|
74
74
|
:'from_phone_number' => :'String',
|
|
75
75
|
:'to_phone_number' => :'String'
|
|
@@ -105,14 +105,14 @@ module MailSlurpClient
|
|
|
105
105
|
self.body = attributes[:'body']
|
|
106
106
|
end
|
|
107
107
|
|
|
108
|
-
if attributes.key?(:'phone_number_id')
|
|
109
|
-
self.phone_number_id = attributes[:'phone_number_id']
|
|
110
|
-
end
|
|
111
|
-
|
|
112
108
|
if attributes.key?(:'created')
|
|
113
109
|
self.created = attributes[:'created']
|
|
114
110
|
end
|
|
115
111
|
|
|
112
|
+
if attributes.key?(:'phone_number_id')
|
|
113
|
+
self.phone_number_id = attributes[:'phone_number_id']
|
|
114
|
+
end
|
|
115
|
+
|
|
116
116
|
if attributes.key?(:'message_direction')
|
|
117
117
|
self.message_direction = attributes[:'message_direction']
|
|
118
118
|
end
|
|
@@ -138,14 +138,14 @@ module MailSlurpClient
|
|
|
138
138
|
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
|
139
139
|
end
|
|
140
140
|
|
|
141
|
-
if @phone_number_id.nil?
|
|
142
|
-
invalid_properties.push('invalid value for "phone_number_id", phone_number_id cannot be nil.')
|
|
143
|
-
end
|
|
144
|
-
|
|
145
141
|
if @created.nil?
|
|
146
142
|
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
|
147
143
|
end
|
|
148
144
|
|
|
145
|
+
if @phone_number_id.nil?
|
|
146
|
+
invalid_properties.push('invalid value for "phone_number_id", phone_number_id cannot be nil.')
|
|
147
|
+
end
|
|
148
|
+
|
|
149
149
|
if @message_direction.nil?
|
|
150
150
|
invalid_properties.push('invalid value for "message_direction", message_direction cannot be nil.')
|
|
151
151
|
end
|
|
@@ -166,8 +166,8 @@ module MailSlurpClient
|
|
|
166
166
|
def valid?
|
|
167
167
|
return false if @id.nil?
|
|
168
168
|
return false if @body.nil?
|
|
169
|
-
return false if @phone_number_id.nil?
|
|
170
169
|
return false if @created.nil?
|
|
170
|
+
return false if @phone_number_id.nil?
|
|
171
171
|
return false if @message_direction.nil?
|
|
172
172
|
message_direction_validator = EnumAttributeValidator.new('String', ["OUTBOUND", "INBOUND"])
|
|
173
173
|
return false unless message_direction_validator.valid?(@message_direction)
|
|
@@ -193,8 +193,8 @@ module MailSlurpClient
|
|
|
193
193
|
self.class == o.class &&
|
|
194
194
|
id == o.id &&
|
|
195
195
|
body == o.body &&
|
|
196
|
-
phone_number_id == o.phone_number_id &&
|
|
197
196
|
created == o.created &&
|
|
197
|
+
phone_number_id == o.phone_number_id &&
|
|
198
198
|
message_direction == o.message_direction &&
|
|
199
199
|
from_phone_number == o.from_phone_number &&
|
|
200
200
|
to_phone_number == o.to_phone_number
|
|
@@ -209,7 +209,7 @@ module MailSlurpClient
|
|
|
209
209
|
# Calculates hash code according to all attributes.
|
|
210
210
|
# @return [Integer] Hash code
|
|
211
211
|
def hash
|
|
212
|
-
[id, body,
|
|
212
|
+
[id, body, created, phone_number_id, message_direction, from_phone_number, to_phone_number].hash
|
|
213
213
|
end
|
|
214
214
|
|
|
215
215
|
# Builds the object from hash
|