mailslurp_client 17.2.0 → 17.3.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/campaign_probe_controller_api.rb +138 -0
- data/lib/mailslurp_client/api/domain_monitor_controller_api.rb +264 -0
- data/lib/mailslurp_client/api/email_audit_controller_api.rb +334 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +124 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +4 -4
- data/lib/mailslurp_client/api/phone_controller_api.rb +1312 -81
- data/lib/mailslurp_client/api/sms_controller_api.rb +125 -0
- data/lib/mailslurp_client/api/tools_controller_api.rb +806 -0
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +15 -15
- data/lib/mailslurp_client/models/acquire_phone_pool_lease_options.rb +233 -0
- data/lib/mailslurp_client/models/add_phone_pool_numbers_options.rb +213 -0
- data/lib/mailslurp_client/models/ai_transform_mapping_projection.rb +27 -27
- data/lib/mailslurp_client/models/ai_transform_projection.rb +28 -28
- data/lib/mailslurp_client/models/alias_projection.rb +45 -45
- data/lib/mailslurp_client/models/alias_thread_projection.rb +42 -42
- data/lib/mailslurp_client/models/analyze_dmarc_report_options.rb +248 -0
- data/lib/mailslurp_client/models/analyze_dmarc_report_results.rb +386 -0
- data/lib/mailslurp_client/models/analyze_email_headers_options.rb +240 -0
- data/lib/mailslurp_client/models/analyze_email_headers_results.rb +275 -0
- data/lib/mailslurp_client/models/attachment_projection.rb +50 -50
- data/lib/mailslurp_client/models/available_phone_number_dto.rb +325 -0
- data/lib/mailslurp_client/models/available_phone_numbers_result.rb +236 -0
- data/lib/mailslurp_client/models/bounce_projection.rb +28 -28
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
- data/lib/mailslurp_client/models/campaign_probe_run_comparison_dto.rb +397 -0
- data/lib/mailslurp_client/models/check_campaign_probe_options.rb +371 -0
- data/lib/mailslurp_client/models/check_campaign_probe_results.rb +482 -0
- data/lib/mailslurp_client/models/check_dns_propagation_options.rb +297 -0
- data/lib/mailslurp_client/models/check_dns_propagation_results.rb +361 -0
- data/lib/mailslurp_client/models/check_domain_monitor_options.rb +243 -0
- data/lib/mailslurp_client/models/check_domain_monitor_results.rb +398 -0
- data/lib/mailslurp_client/models/check_email_audit_options.rb +405 -0
- data/lib/mailslurp_client/models/check_email_auth_stack_options.rb +248 -0
- data/lib/mailslurp_client/models/check_email_auth_stack_results.rb +462 -0
- data/lib/mailslurp_client/models/check_email_blacklist_options.rb +241 -0
- data/lib/mailslurp_client/models/check_email_blacklist_results.rb +366 -0
- data/lib/mailslurp_client/models/connector_event_projection.rb +42 -42
- data/lib/mailslurp_client/models/connector_projection.rb +42 -42
- data/lib/mailslurp_client/models/contact_projection.rb +15 -15
- data/lib/mailslurp_client/models/create_email_audit_options.rb +394 -0
- data/lib/mailslurp_client/models/create_phone_number_options.rb +25 -4
- data/lib/mailslurp_client/models/create_phone_pool_options.rb +220 -0
- data/lib/mailslurp_client/models/create_phone_provisioning_job_item_options.rb +256 -0
- data/lib/mailslurp_client/models/create_phone_provisioning_job_options.rb +284 -0
- data/lib/mailslurp_client/models/dmarc_report_metadata.rb +308 -0
- data/lib/mailslurp_client/models/dmarc_report_source_summary.rb +274 -0
- data/lib/mailslurp_client/models/dns_propagation_resolver_result.rb +252 -0
- data/lib/mailslurp_client/models/domain_monitor_run_comparison_dto.rb +369 -0
- data/lib/mailslurp_client/models/domain_monitor_summary_dto.rb +248 -0
- data/lib/mailslurp_client/models/email_audit_analysis_result.rb +620 -0
- data/lib/mailslurp_client/models/email_audit_comparison_dto.rb +411 -0
- data/lib/mailslurp_client/models/email_audit_dto.rb +308 -0
- data/lib/mailslurp_client/models/email_audit_spelling_issue.rb +276 -0
- data/lib/mailslurp_client/models/email_audit_url_issue.rb +236 -0
- data/lib/mailslurp_client/models/email_blacklist_ip_result.rb +242 -0
- data/lib/mailslurp_client/models/email_blacklist_listing_result.rb +258 -0
- data/lib/mailslurp_client/models/email_header_analysis_summary.rb +242 -0
- data/lib/mailslurp_client/models/email_header_received_hop.rb +242 -0
- data/lib/mailslurp_client/models/email_projection.rb +88 -88
- data/lib/mailslurp_client/models/email_thread_projection.rb +54 -54
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +33 -33
- data/lib/mailslurp_client/models/entity_event_item_projection.rb +42 -42
- data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +29 -29
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +27 -27
- data/lib/mailslurp_client/models/generate_spf_record_options.rb +357 -0
- data/lib/mailslurp_client/models/generate_spf_record_results.rb +318 -0
- data/lib/mailslurp_client/models/get_or_create_phone_pool_options.rb +220 -0
- data/lib/mailslurp_client/models/group_projection.rb +15 -15
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +47 -47
- data/lib/mailslurp_client/models/imap_email_projection.rb +18 -18
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +21 -21
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +33 -33
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +19 -19
- data/lib/mailslurp_client/models/lookup_dkim_domain_options.rb +275 -0
- data/lib/mailslurp_client/models/lookup_dkim_domain_results.rb +304 -0
- data/lib/mailslurp_client/models/lookup_ptr_options.rb +241 -0
- data/lib/mailslurp_client/models/lookup_ptr_results.rb +305 -0
- data/lib/mailslurp_client/models/lookup_spf_domain_options.rb +240 -0
- data/lib/mailslurp_client/models/lookup_spf_domain_results.rb +305 -0
- data/lib/mailslurp_client/models/missed_email_projection.rb +28 -28
- data/lib/mailslurp_client/models/missed_sms_projection.rb +32 -32
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +18 -18
- data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_ai_transform_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_alias.rb +19 -19
- data/lib/mailslurp_client/models/page_alias_thread_projection.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_connector.rb +19 -19
- data/lib/mailslurp_client/models/page_connector_events.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_device_preview_run_projection.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_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_event_items.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_favourite_items.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_guest_portal_users.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_tags.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_missed_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_number_release_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_reputation_items.rb +19 -19
- data/lib/mailslurp_client/models/page_ruleset_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_sms_projection.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_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_endpoint_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/pageable_object.rb +22 -22
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +18 -18
- data/lib/mailslurp_client/models/phone_number_dto.rb +49 -4
- data/lib/mailslurp_client/models/phone_number_line_type_intelligence_dto.rb +242 -0
- data/lib/mailslurp_client/models/phone_number_line_type_lookup_dto.rb +286 -0
- data/lib/mailslurp_client/models/phone_number_projection.rb +80 -35
- data/lib/mailslurp_client/models/phone_number_release_projection.rb +39 -39
- data/lib/mailslurp_client/models/phone_pool_detail_dto.rb +334 -0
- data/lib/mailslurp_client/models/phone_pool_dto.rb +318 -0
- data/lib/mailslurp_client/models/phone_pool_lease_dto.rb +351 -0
- data/lib/mailslurp_client/models/phone_pool_member_dto.rb +333 -0
- data/lib/mailslurp_client/models/phone_provider_capabilities_result.rb +284 -0
- data/lib/mailslurp_client/models/phone_provisioning_job_dto.rb +434 -0
- data/lib/mailslurp_client/models/phone_provisioning_job_item_dto.rb +336 -0
- data/lib/mailslurp_client/models/phone_sms_prepaid_credit_dto.rb +340 -0
- data/lib/mailslurp_client/models/phone_sms_prepaid_credits_dto.rb +241 -0
- data/lib/mailslurp_client/models/plus_address_projection.rb +27 -27
- data/lib/mailslurp_client/models/recipient_projection.rb +13 -13
- data/lib/mailslurp_client/models/reputation_item_projection.rb +41 -41
- data/lib/mailslurp_client/models/search_available_phone_numbers_options.rb +377 -0
- data/lib/mailslurp_client/models/sender_projection.rb +13 -13
- data/lib/mailslurp_client/models/sent_email_projection.rb +63 -63
- data/lib/mailslurp_client/models/sent_sms_projection.rb +18 -18
- data/lib/mailslurp_client/models/sms_projection.rb +18 -18
- data/lib/mailslurp_client/models/smtp_auth_diagnostic_result.rb +235 -0
- data/lib/mailslurp_client/models/smtp_diagnostic_step.rb +236 -0
- data/lib/mailslurp_client/models/smtp_tls_diagnostic_result.rb +245 -0
- data/lib/mailslurp_client/models/sort_object.rb +10 -10
- data/lib/mailslurp_client/models/spf_mechanism_result.rb +229 -0
- data/lib/mailslurp_client/models/template_projection.rb +41 -41
- data/lib/mailslurp_client/models/test_smtp_server_options.rb +337 -0
- data/lib/mailslurp_client/models/test_smtp_server_results.rb +297 -0
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +27 -27
- data/lib/mailslurp_client/models/update_phone_pool_options.rb +215 -0
- data/lib/mailslurp_client/models/validation_dto.rb +1 -5
- data/lib/mailslurp_client/models/webhook_projection.rb +45 -45
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +67 -0
- metadata +69 -2
|
@@ -14,39 +14,39 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
class PageableObject
|
|
17
|
-
attr_accessor :
|
|
17
|
+
attr_accessor :offset
|
|
18
18
|
|
|
19
19
|
attr_accessor :page_size
|
|
20
20
|
|
|
21
|
+
attr_accessor :sort
|
|
22
|
+
|
|
21
23
|
attr_accessor :paged
|
|
22
24
|
|
|
23
25
|
attr_accessor :page_number
|
|
24
26
|
|
|
25
|
-
attr_accessor :
|
|
26
|
-
|
|
27
|
-
attr_accessor :offset
|
|
27
|
+
attr_accessor :unpaged
|
|
28
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
|
+
:'sort' => :'sort',
|
|
34
35
|
:'paged' => :'paged',
|
|
35
36
|
:'page_number' => :'pageNumber',
|
|
36
|
-
:'
|
|
37
|
-
:'offset' => :'offset'
|
|
37
|
+
:'unpaged' => :'unpaged'
|
|
38
38
|
}
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
# Attribute type mapping.
|
|
42
42
|
def self.openapi_types
|
|
43
43
|
{
|
|
44
|
-
:'
|
|
44
|
+
:'offset' => :'Integer',
|
|
45
45
|
:'page_size' => :'Integer',
|
|
46
|
+
:'sort' => :'SortObject',
|
|
46
47
|
:'paged' => :'Boolean',
|
|
47
48
|
:'page_number' => :'Integer',
|
|
48
|
-
:'
|
|
49
|
-
:'offset' => :'Integer'
|
|
49
|
+
:'unpaged' => :'Boolean'
|
|
50
50
|
}
|
|
51
51
|
end
|
|
52
52
|
|
|
@@ -71,14 +71,18 @@ module MailSlurpClient
|
|
|
71
71
|
h[k.to_sym] = v
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
if attributes.key?(:'
|
|
75
|
-
self.
|
|
74
|
+
if attributes.key?(:'offset')
|
|
75
|
+
self.offset = attributes[:'offset']
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
if attributes.key?(:'page_size')
|
|
79
79
|
self.page_size = attributes[:'page_size']
|
|
80
80
|
end
|
|
81
81
|
|
|
82
|
+
if attributes.key?(:'sort')
|
|
83
|
+
self.sort = attributes[:'sort']
|
|
84
|
+
end
|
|
85
|
+
|
|
82
86
|
if attributes.key?(:'paged')
|
|
83
87
|
self.paged = attributes[:'paged']
|
|
84
88
|
end
|
|
@@ -87,12 +91,8 @@ module MailSlurpClient
|
|
|
87
91
|
self.page_number = attributes[:'page_number']
|
|
88
92
|
end
|
|
89
93
|
|
|
90
|
-
if attributes.key?(:'
|
|
91
|
-
self.
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
if attributes.key?(:'offset')
|
|
95
|
-
self.offset = attributes[:'offset']
|
|
94
|
+
if attributes.key?(:'unpaged')
|
|
95
|
+
self.unpaged = attributes[:'unpaged']
|
|
96
96
|
end
|
|
97
97
|
end
|
|
98
98
|
|
|
@@ -114,12 +114,12 @@ module MailSlurpClient
|
|
|
114
114
|
def ==(o)
|
|
115
115
|
return true if self.equal?(o)
|
|
116
116
|
self.class == o.class &&
|
|
117
|
-
|
|
117
|
+
offset == o.offset &&
|
|
118
118
|
page_size == o.page_size &&
|
|
119
|
+
sort == o.sort &&
|
|
119
120
|
paged == o.paged &&
|
|
120
121
|
page_number == o.page_number &&
|
|
121
|
-
|
|
122
|
-
offset == o.offset
|
|
122
|
+
unpaged == o.unpaged
|
|
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
|
-
[
|
|
134
|
+
[offset, page_size, sort, paged, page_number, unpaged].hash
|
|
135
135
|
end
|
|
136
136
|
|
|
137
137
|
# Builds the object from hash
|
|
@@ -14,6 +14,8 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
class PhoneMessageThreadItemProjection
|
|
17
|
+
attr_accessor :id
|
|
18
|
+
|
|
17
19
|
attr_accessor :body
|
|
18
20
|
|
|
19
21
|
attr_accessor :phone_number_id
|
|
@@ -26,8 +28,6 @@ module MailSlurpClient
|
|
|
26
28
|
|
|
27
29
|
attr_accessor :to_phone_number
|
|
28
30
|
|
|
29
|
-
attr_accessor :id
|
|
30
|
-
|
|
31
31
|
class EnumAttributeValidator
|
|
32
32
|
attr_reader :datatype
|
|
33
33
|
attr_reader :allowable_values
|
|
@@ -53,26 +53,26 @@ module MailSlurpClient
|
|
|
53
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
54
54
|
def self.attribute_map
|
|
55
55
|
{
|
|
56
|
+
:'id' => :'id',
|
|
56
57
|
:'body' => :'body',
|
|
57
58
|
:'phone_number_id' => :'phoneNumberId',
|
|
58
59
|
:'created' => :'created',
|
|
59
60
|
:'message_direction' => :'messageDirection',
|
|
60
61
|
:'from_phone_number' => :'fromPhoneNumber',
|
|
61
|
-
:'to_phone_number' => :'toPhoneNumber'
|
|
62
|
-
:'id' => :'id'
|
|
62
|
+
:'to_phone_number' => :'toPhoneNumber'
|
|
63
63
|
}
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
# Attribute type mapping.
|
|
67
67
|
def self.openapi_types
|
|
68
68
|
{
|
|
69
|
+
:'id' => :'String',
|
|
69
70
|
:'body' => :'String',
|
|
70
71
|
:'phone_number_id' => :'String',
|
|
71
72
|
:'created' => :'DateTime',
|
|
72
73
|
:'message_direction' => :'String',
|
|
73
74
|
:'from_phone_number' => :'String',
|
|
74
|
-
:'to_phone_number' => :'String'
|
|
75
|
-
:'id' => :'String'
|
|
75
|
+
:'to_phone_number' => :'String'
|
|
76
76
|
}
|
|
77
77
|
end
|
|
78
78
|
|
|
@@ -97,6 +97,10 @@ module MailSlurpClient
|
|
|
97
97
|
h[k.to_sym] = v
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
if attributes.key?(:'id')
|
|
101
|
+
self.id = attributes[:'id']
|
|
102
|
+
end
|
|
103
|
+
|
|
100
104
|
if attributes.key?(:'body')
|
|
101
105
|
self.body = attributes[:'body']
|
|
102
106
|
end
|
|
@@ -120,16 +124,16 @@ module MailSlurpClient
|
|
|
120
124
|
if attributes.key?(:'to_phone_number')
|
|
121
125
|
self.to_phone_number = attributes[:'to_phone_number']
|
|
122
126
|
end
|
|
123
|
-
|
|
124
|
-
if attributes.key?(:'id')
|
|
125
|
-
self.id = attributes[:'id']
|
|
126
|
-
end
|
|
127
127
|
end
|
|
128
128
|
|
|
129
129
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
130
130
|
# @return Array for valid properties with the reasons
|
|
131
131
|
def list_invalid_properties
|
|
132
132
|
invalid_properties = Array.new
|
|
133
|
+
if @id.nil?
|
|
134
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
135
|
+
end
|
|
136
|
+
|
|
133
137
|
if @body.nil?
|
|
134
138
|
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
|
135
139
|
end
|
|
@@ -154,16 +158,13 @@ module MailSlurpClient
|
|
|
154
158
|
invalid_properties.push('invalid value for "to_phone_number", to_phone_number cannot be nil.')
|
|
155
159
|
end
|
|
156
160
|
|
|
157
|
-
if @id.nil?
|
|
158
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
159
|
-
end
|
|
160
|
-
|
|
161
161
|
invalid_properties
|
|
162
162
|
end
|
|
163
163
|
|
|
164
164
|
# Check to see if the all the properties in the model are valid
|
|
165
165
|
# @return true if the model is valid
|
|
166
166
|
def valid?
|
|
167
|
+
return false if @id.nil?
|
|
167
168
|
return false if @body.nil?
|
|
168
169
|
return false if @phone_number_id.nil?
|
|
169
170
|
return false if @created.nil?
|
|
@@ -172,7 +173,6 @@ module MailSlurpClient
|
|
|
172
173
|
return false unless message_direction_validator.valid?(@message_direction)
|
|
173
174
|
return false if @from_phone_number.nil?
|
|
174
175
|
return false if @to_phone_number.nil?
|
|
175
|
-
return false if @id.nil?
|
|
176
176
|
true
|
|
177
177
|
end
|
|
178
178
|
|
|
@@ -191,13 +191,13 @@ module MailSlurpClient
|
|
|
191
191
|
def ==(o)
|
|
192
192
|
return true if self.equal?(o)
|
|
193
193
|
self.class == o.class &&
|
|
194
|
+
id == o.id &&
|
|
194
195
|
body == o.body &&
|
|
195
196
|
phone_number_id == o.phone_number_id &&
|
|
196
197
|
created == o.created &&
|
|
197
198
|
message_direction == o.message_direction &&
|
|
198
199
|
from_phone_number == o.from_phone_number &&
|
|
199
|
-
to_phone_number == o.to_phone_number
|
|
200
|
-
id == o.id
|
|
200
|
+
to_phone_number == o.to_phone_number
|
|
201
201
|
end
|
|
202
202
|
|
|
203
203
|
# @see the `==` method
|
|
@@ -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
|
-
[body, phone_number_id, created, message_direction, from_phone_number, to_phone_number
|
|
212
|
+
[id, body, phone_number_id, created, message_direction, from_phone_number, to_phone_number].hash
|
|
213
213
|
end
|
|
214
214
|
|
|
215
215
|
# Builds the object from hash
|
|
@@ -40,6 +40,16 @@ module MailSlurpClient
|
|
|
40
40
|
|
|
41
41
|
attr_accessor :phone_variant
|
|
42
42
|
|
|
43
|
+
attr_accessor :line_type
|
|
44
|
+
|
|
45
|
+
attr_accessor :carrier_name
|
|
46
|
+
|
|
47
|
+
attr_accessor :mobile_country_code
|
|
48
|
+
|
|
49
|
+
attr_accessor :mobile_network_code
|
|
50
|
+
|
|
51
|
+
attr_accessor :provider_label
|
|
52
|
+
|
|
43
53
|
class EnumAttributeValidator
|
|
44
54
|
attr_reader :datatype
|
|
45
55
|
attr_reader :allowable_values
|
|
@@ -77,7 +87,12 @@ module MailSlurpClient
|
|
|
77
87
|
:'created_at' => :'createdAt',
|
|
78
88
|
:'updated_at' => :'updatedAt',
|
|
79
89
|
:'favourite' => :'favourite',
|
|
80
|
-
:'phone_variant' => :'phoneVariant'
|
|
90
|
+
:'phone_variant' => :'phoneVariant',
|
|
91
|
+
:'line_type' => :'lineType',
|
|
92
|
+
:'carrier_name' => :'carrierName',
|
|
93
|
+
:'mobile_country_code' => :'mobileCountryCode',
|
|
94
|
+
:'mobile_network_code' => :'mobileNetworkCode',
|
|
95
|
+
:'provider_label' => :'providerLabel'
|
|
81
96
|
}
|
|
82
97
|
end
|
|
83
98
|
|
|
@@ -96,7 +111,12 @@ module MailSlurpClient
|
|
|
96
111
|
:'created_at' => :'DateTime',
|
|
97
112
|
:'updated_at' => :'DateTime',
|
|
98
113
|
:'favourite' => :'Boolean',
|
|
99
|
-
:'phone_variant' => :'String'
|
|
114
|
+
:'phone_variant' => :'String',
|
|
115
|
+
:'line_type' => :'String',
|
|
116
|
+
:'carrier_name' => :'String',
|
|
117
|
+
:'mobile_country_code' => :'String',
|
|
118
|
+
:'mobile_network_code' => :'String',
|
|
119
|
+
:'provider_label' => :'String'
|
|
100
120
|
}
|
|
101
121
|
end
|
|
102
122
|
|
|
@@ -172,6 +192,26 @@ module MailSlurpClient
|
|
|
172
192
|
if attributes.key?(:'phone_variant')
|
|
173
193
|
self.phone_variant = attributes[:'phone_variant']
|
|
174
194
|
end
|
|
195
|
+
|
|
196
|
+
if attributes.key?(:'line_type')
|
|
197
|
+
self.line_type = attributes[:'line_type']
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if attributes.key?(:'carrier_name')
|
|
201
|
+
self.carrier_name = attributes[:'carrier_name']
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'mobile_country_code')
|
|
205
|
+
self.mobile_country_code = attributes[:'mobile_country_code']
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'mobile_network_code')
|
|
209
|
+
self.mobile_network_code = attributes[:'mobile_network_code']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'provider_label')
|
|
213
|
+
self.provider_label = attributes[:'provider_label']
|
|
214
|
+
end
|
|
175
215
|
end
|
|
176
216
|
|
|
177
217
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -268,7 +308,12 @@ module MailSlurpClient
|
|
|
268
308
|
created_at == o.created_at &&
|
|
269
309
|
updated_at == o.updated_at &&
|
|
270
310
|
favourite == o.favourite &&
|
|
271
|
-
phone_variant == o.phone_variant
|
|
311
|
+
phone_variant == o.phone_variant &&
|
|
312
|
+
line_type == o.line_type &&
|
|
313
|
+
carrier_name == o.carrier_name &&
|
|
314
|
+
mobile_country_code == o.mobile_country_code &&
|
|
315
|
+
mobile_network_code == o.mobile_network_code &&
|
|
316
|
+
provider_label == o.provider_label
|
|
272
317
|
end
|
|
273
318
|
|
|
274
319
|
# @see the `==` method
|
|
@@ -280,7 +325,7 @@ module MailSlurpClient
|
|
|
280
325
|
# Calculates hash code according to all attributes.
|
|
281
326
|
# @return [Integer] Hash code
|
|
282
327
|
def hash
|
|
283
|
-
[id, name, description, user_id, compliance_address, emergency_address, phone_number, phone_country, phone_plan, created_at, updated_at, favourite, phone_variant].hash
|
|
328
|
+
[id, name, description, user_id, compliance_address, emergency_address, phone_number, phone_country, phone_plan, created_at, updated_at, favourite, phone_variant, line_type, carrier_name, mobile_country_code, mobile_network_code, provider_label].hash
|
|
284
329
|
end
|
|
285
330
|
|
|
286
331
|
# Builds the object from hash
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#MailSlurp API
|
|
3
|
+
|
|
4
|
+
#MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 6.5.2
|
|
7
|
+
Contact: contact@mailslurp.dev
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.3.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module MailSlurpClient
|
|
16
|
+
class PhoneNumberLineTypeIntelligenceDto
|
|
17
|
+
attr_accessor :type
|
|
18
|
+
|
|
19
|
+
attr_accessor :carrier_name
|
|
20
|
+
|
|
21
|
+
attr_accessor :mobile_country_code
|
|
22
|
+
|
|
23
|
+
attr_accessor :mobile_network_code
|
|
24
|
+
|
|
25
|
+
attr_accessor :error_code
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'type' => :'type',
|
|
31
|
+
:'carrier_name' => :'carrierName',
|
|
32
|
+
:'mobile_country_code' => :'mobileCountryCode',
|
|
33
|
+
:'mobile_network_code' => :'mobileNetworkCode',
|
|
34
|
+
:'error_code' => :'errorCode'
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Attribute type mapping.
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'type' => :'String',
|
|
42
|
+
:'carrier_name' => :'String',
|
|
43
|
+
:'mobile_country_code' => :'String',
|
|
44
|
+
:'mobile_network_code' => :'String',
|
|
45
|
+
:'error_code' => :'Integer'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# List of attributes with nullable: true
|
|
50
|
+
def self.openapi_nullable
|
|
51
|
+
Set.new([
|
|
52
|
+
])
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
57
|
+
def initialize(attributes = {})
|
|
58
|
+
if (!attributes.is_a?(Hash))
|
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::PhoneNumberLineTypeIntelligenceDto` initialize method"
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::PhoneNumberLineTypeIntelligenceDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
66
|
+
end
|
|
67
|
+
h[k.to_sym] = v
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'type')
|
|
71
|
+
self.type = attributes[:'type']
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'carrier_name')
|
|
75
|
+
self.carrier_name = attributes[:'carrier_name']
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'mobile_country_code')
|
|
79
|
+
self.mobile_country_code = attributes[:'mobile_country_code']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'mobile_network_code')
|
|
83
|
+
self.mobile_network_code = attributes[:'mobile_network_code']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'error_code')
|
|
87
|
+
self.error_code = attributes[:'error_code']
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
92
|
+
# @return Array for valid properties with the reasons
|
|
93
|
+
def list_invalid_properties
|
|
94
|
+
invalid_properties = Array.new
|
|
95
|
+
invalid_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Check to see if the all the properties in the model are valid
|
|
99
|
+
# @return true if the model is valid
|
|
100
|
+
def valid?
|
|
101
|
+
true
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Checks equality by comparing each attribute.
|
|
105
|
+
# @param [Object] Object to be compared
|
|
106
|
+
def ==(o)
|
|
107
|
+
return true if self.equal?(o)
|
|
108
|
+
self.class == o.class &&
|
|
109
|
+
type == o.type &&
|
|
110
|
+
carrier_name == o.carrier_name &&
|
|
111
|
+
mobile_country_code == o.mobile_country_code &&
|
|
112
|
+
mobile_network_code == o.mobile_network_code &&
|
|
113
|
+
error_code == o.error_code
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# @see the `==` method
|
|
117
|
+
# @param [Object] Object to be compared
|
|
118
|
+
def eql?(o)
|
|
119
|
+
self == o
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Calculates hash code according to all attributes.
|
|
123
|
+
# @return [Integer] Hash code
|
|
124
|
+
def hash
|
|
125
|
+
[type, carrier_name, mobile_country_code, mobile_network_code, error_code].hash
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Builds the object from hash
|
|
129
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
130
|
+
# @return [Object] Returns the model itself
|
|
131
|
+
def self.build_from_hash(attributes)
|
|
132
|
+
new.build_from_hash(attributes)
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Builds the object from hash
|
|
136
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
137
|
+
# @return [Object] Returns the model itself
|
|
138
|
+
def build_from_hash(attributes)
|
|
139
|
+
return nil unless attributes.is_a?(Hash)
|
|
140
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
141
|
+
if type =~ /\AArray<(.*)>/i
|
|
142
|
+
# check to ensure the input is an array given that the attribute
|
|
143
|
+
# is documented as an array but the input is not
|
|
144
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
145
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
146
|
+
end
|
|
147
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
148
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
149
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
self
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Deserializes the data based on type
|
|
156
|
+
# @param string type Data type
|
|
157
|
+
# @param string value Value to be deserialized
|
|
158
|
+
# @return [Object] Deserialized data
|
|
159
|
+
def _deserialize(type, value)
|
|
160
|
+
case type.to_sym
|
|
161
|
+
when :DateTime
|
|
162
|
+
DateTime.parse(value)
|
|
163
|
+
when :Date
|
|
164
|
+
Date.parse(value)
|
|
165
|
+
when :String
|
|
166
|
+
value.to_s
|
|
167
|
+
when :Integer
|
|
168
|
+
value.to_i
|
|
169
|
+
when :Float
|
|
170
|
+
value.to_f
|
|
171
|
+
when :Boolean
|
|
172
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
173
|
+
true
|
|
174
|
+
else
|
|
175
|
+
false
|
|
176
|
+
end
|
|
177
|
+
when :Object
|
|
178
|
+
# generic object (usually a Hash), return directly
|
|
179
|
+
value
|
|
180
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
181
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
182
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
183
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
184
|
+
k_type = Regexp.last_match[:k_type]
|
|
185
|
+
v_type = Regexp.last_match[:v_type]
|
|
186
|
+
{}.tap do |hash|
|
|
187
|
+
value.each do |k, v|
|
|
188
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
else # model
|
|
192
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Returns the string representation of the object
|
|
197
|
+
# @return [String] String presentation of the object
|
|
198
|
+
def to_s
|
|
199
|
+
to_hash.to_s
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
|
204
|
+
def to_body
|
|
205
|
+
to_hash
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Returns the object in the form of hash
|
|
209
|
+
# @return [Hash] Returns the object in the form of hash
|
|
210
|
+
def to_hash
|
|
211
|
+
hash = {}
|
|
212
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
213
|
+
value = self.send(attr)
|
|
214
|
+
if value.nil?
|
|
215
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
216
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
hash[param] = _to_hash(value)
|
|
220
|
+
end
|
|
221
|
+
hash
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Outputs non-array value in the form of hash
|
|
225
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
226
|
+
# @param [Object] value Any valid value
|
|
227
|
+
# @return [Hash] Returns the value in the form of hash
|
|
228
|
+
def _to_hash(value)
|
|
229
|
+
if value.is_a?(Array)
|
|
230
|
+
value.compact.map { |v| _to_hash(v) }
|
|
231
|
+
elsif value.is_a?(Hash)
|
|
232
|
+
{}.tap do |hash|
|
|
233
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
234
|
+
end
|
|
235
|
+
elsif value.respond_to? :to_hash
|
|
236
|
+
value.to_hash
|
|
237
|
+
else
|
|
238
|
+
value
|
|
239
|
+
end
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
end
|