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
|
@@ -17,6 +17,8 @@ module MailSlurpClient
|
|
|
17
17
|
class ContactProjection
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
|
+
attr_accessor :group_id
|
|
21
|
+
|
|
20
22
|
attr_accessor :email_address
|
|
21
23
|
|
|
22
24
|
attr_accessor :created_at
|
|
@@ -31,20 +33,18 @@ module MailSlurpClient
|
|
|
31
33
|
|
|
32
34
|
attr_accessor :opt_out
|
|
33
35
|
|
|
34
|
-
attr_accessor :group_id
|
|
35
|
-
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
39
39
|
:'id' => :'id',
|
|
40
|
+
:'group_id' => :'groupId',
|
|
40
41
|
:'email_address' => :'emailAddress',
|
|
41
42
|
:'created_at' => :'createdAt',
|
|
42
43
|
:'email_addresses' => :'emailAddresses',
|
|
43
44
|
:'first_name' => :'firstName',
|
|
44
45
|
:'last_name' => :'lastName',
|
|
45
46
|
:'company' => :'company',
|
|
46
|
-
:'opt_out' => :'optOut'
|
|
47
|
-
:'group_id' => :'groupId'
|
|
47
|
+
:'opt_out' => :'optOut'
|
|
48
48
|
}
|
|
49
49
|
end
|
|
50
50
|
|
|
@@ -52,27 +52,27 @@ module MailSlurpClient
|
|
|
52
52
|
def self.openapi_types
|
|
53
53
|
{
|
|
54
54
|
:'id' => :'String',
|
|
55
|
+
:'group_id' => :'String',
|
|
55
56
|
:'email_address' => :'String',
|
|
56
57
|
:'created_at' => :'DateTime',
|
|
57
58
|
:'email_addresses' => :'Array<String>',
|
|
58
59
|
:'first_name' => :'String',
|
|
59
60
|
:'last_name' => :'String',
|
|
60
61
|
:'company' => :'String',
|
|
61
|
-
:'opt_out' => :'Boolean'
|
|
62
|
-
:'group_id' => :'String'
|
|
62
|
+
:'opt_out' => :'Boolean'
|
|
63
63
|
}
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
# List of attributes with nullable: true
|
|
67
67
|
def self.openapi_nullable
|
|
68
68
|
Set.new([
|
|
69
|
+
:'group_id',
|
|
69
70
|
:'email_address',
|
|
70
71
|
:'email_addresses',
|
|
71
72
|
:'first_name',
|
|
72
73
|
:'last_name',
|
|
73
74
|
:'company',
|
|
74
|
-
:'opt_out'
|
|
75
|
-
:'group_id'
|
|
75
|
+
:'opt_out'
|
|
76
76
|
])
|
|
77
77
|
end
|
|
78
78
|
|
|
@@ -95,6 +95,10 @@ module MailSlurpClient
|
|
|
95
95
|
self.id = attributes[:'id']
|
|
96
96
|
end
|
|
97
97
|
|
|
98
|
+
if attributes.key?(:'group_id')
|
|
99
|
+
self.group_id = attributes[:'group_id']
|
|
100
|
+
end
|
|
101
|
+
|
|
98
102
|
if attributes.key?(:'email_address')
|
|
99
103
|
self.email_address = attributes[:'email_address']
|
|
100
104
|
end
|
|
@@ -124,10 +128,6 @@ module MailSlurpClient
|
|
|
124
128
|
if attributes.key?(:'opt_out')
|
|
125
129
|
self.opt_out = attributes[:'opt_out']
|
|
126
130
|
end
|
|
127
|
-
|
|
128
|
-
if attributes.key?(:'group_id')
|
|
129
|
-
self.group_id = attributes[:'group_id']
|
|
130
|
-
end
|
|
131
131
|
end
|
|
132
132
|
|
|
133
133
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -159,14 +159,14 @@ module MailSlurpClient
|
|
|
159
159
|
return true if self.equal?(o)
|
|
160
160
|
self.class == o.class &&
|
|
161
161
|
id == o.id &&
|
|
162
|
+
group_id == o.group_id &&
|
|
162
163
|
email_address == o.email_address &&
|
|
163
164
|
created_at == o.created_at &&
|
|
164
165
|
email_addresses == o.email_addresses &&
|
|
165
166
|
first_name == o.first_name &&
|
|
166
167
|
last_name == o.last_name &&
|
|
167
168
|
company == o.company &&
|
|
168
|
-
opt_out == o.opt_out
|
|
169
|
-
group_id == o.group_id
|
|
169
|
+
opt_out == o.opt_out
|
|
170
170
|
end
|
|
171
171
|
|
|
172
172
|
# @see the `==` method
|
|
@@ -178,7 +178,7 @@ module MailSlurpClient
|
|
|
178
178
|
# Calculates hash code according to all attributes.
|
|
179
179
|
# @return [Integer] Hash code
|
|
180
180
|
def hash
|
|
181
|
-
[id, email_address, created_at, email_addresses, first_name, last_name, company, opt_out
|
|
181
|
+
[id, group_id, email_address, created_at, email_addresses, first_name, last_name, company, opt_out].hash
|
|
182
182
|
end
|
|
183
183
|
|
|
184
184
|
# Builds the object from hash
|
|
@@ -24,6 +24,14 @@ module MailSlurpClient
|
|
|
24
24
|
# Email addresses to forward an email to if it matches the field and match criteria of the forwarder
|
|
25
25
|
attr_accessor :forward_to_recipients
|
|
26
26
|
|
|
27
|
+
# Comparison mode for inbox automation matching.
|
|
28
|
+
attr_accessor :should
|
|
29
|
+
|
|
30
|
+
attr_accessor :match_options
|
|
31
|
+
|
|
32
|
+
# Method for extracting text from attachments.
|
|
33
|
+
attr_accessor :attachment_text_extraction_method
|
|
34
|
+
|
|
27
35
|
class EnumAttributeValidator
|
|
28
36
|
attr_reader :datatype
|
|
29
37
|
attr_reader :allowable_values
|
|
@@ -51,7 +59,10 @@ module MailSlurpClient
|
|
|
51
59
|
{
|
|
52
60
|
:'field' => :'field',
|
|
53
61
|
:'match' => :'match',
|
|
54
|
-
:'forward_to_recipients' => :'forwardToRecipients'
|
|
62
|
+
:'forward_to_recipients' => :'forwardToRecipients',
|
|
63
|
+
:'should' => :'should',
|
|
64
|
+
:'match_options' => :'matchOptions',
|
|
65
|
+
:'attachment_text_extraction_method' => :'attachmentTextExtractionMethod'
|
|
55
66
|
}
|
|
56
67
|
end
|
|
57
68
|
|
|
@@ -60,13 +71,21 @@ module MailSlurpClient
|
|
|
60
71
|
{
|
|
61
72
|
:'field' => :'String',
|
|
62
73
|
:'match' => :'String',
|
|
63
|
-
:'forward_to_recipients' => :'Array<String>'
|
|
74
|
+
:'forward_to_recipients' => :'Array<String>',
|
|
75
|
+
:'should' => :'String',
|
|
76
|
+
:'match_options' => :'InboxAutomationMatchOptions',
|
|
77
|
+
:'attachment_text_extraction_method' => :'String'
|
|
64
78
|
}
|
|
65
79
|
end
|
|
66
80
|
|
|
67
81
|
# List of attributes with nullable: true
|
|
68
82
|
def self.openapi_nullable
|
|
69
83
|
Set.new([
|
|
84
|
+
:'field',
|
|
85
|
+
:'match',
|
|
86
|
+
:'should',
|
|
87
|
+
:'match_options',
|
|
88
|
+
:'attachment_text_extraction_method'
|
|
70
89
|
])
|
|
71
90
|
end
|
|
72
91
|
|
|
@@ -98,24 +117,24 @@ module MailSlurpClient
|
|
|
98
117
|
self.forward_to_recipients = value
|
|
99
118
|
end
|
|
100
119
|
end
|
|
101
|
-
end
|
|
102
120
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
def list_invalid_properties
|
|
106
|
-
invalid_properties = Array.new
|
|
107
|
-
if @field.nil?
|
|
108
|
-
invalid_properties.push('invalid value for "field", field cannot be nil.')
|
|
121
|
+
if attributes.key?(:'should')
|
|
122
|
+
self.should = attributes[:'should']
|
|
109
123
|
end
|
|
110
124
|
|
|
111
|
-
if
|
|
112
|
-
|
|
125
|
+
if attributes.key?(:'match_options')
|
|
126
|
+
self.match_options = attributes[:'match_options']
|
|
113
127
|
end
|
|
114
128
|
|
|
115
|
-
if
|
|
116
|
-
|
|
129
|
+
if attributes.key?(:'attachment_text_extraction_method')
|
|
130
|
+
self.attachment_text_extraction_method = attributes[:'attachment_text_extraction_method']
|
|
117
131
|
end
|
|
132
|
+
end
|
|
118
133
|
|
|
134
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
135
|
+
# @return Array for valid properties with the reasons
|
|
136
|
+
def list_invalid_properties
|
|
137
|
+
invalid_properties = Array.new
|
|
119
138
|
if @forward_to_recipients.nil?
|
|
120
139
|
invalid_properties.push('invalid value for "forward_to_recipients", forward_to_recipients cannot be nil.')
|
|
121
140
|
end
|
|
@@ -126,37 +145,44 @@ module MailSlurpClient
|
|
|
126
145
|
# Check to see if the all the properties in the model are valid
|
|
127
146
|
# @return true if the model is valid
|
|
128
147
|
def valid?
|
|
129
|
-
|
|
130
|
-
field_validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS"])
|
|
148
|
+
field_validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS", "ATTACHMENT_FILENAME", "ATTACHMENT_TEXT"])
|
|
131
149
|
return false unless field_validator.valid?(@field)
|
|
132
|
-
return false if @match.nil?
|
|
133
|
-
return false if @match.to_s.length < 1
|
|
134
150
|
return false if @forward_to_recipients.nil?
|
|
151
|
+
should_validator = EnumAttributeValidator.new('String', ["WILDCARD", "MATCH", "CONTAIN", "EQUAL"])
|
|
152
|
+
return false unless should_validator.valid?(@should)
|
|
153
|
+
attachment_text_extraction_method_validator = EnumAttributeValidator.new('String', ["AUTO", "NATIVE", "OCR", "LLM", "OCR_THEN_LLM"])
|
|
154
|
+
return false unless attachment_text_extraction_method_validator.valid?(@attachment_text_extraction_method)
|
|
135
155
|
true
|
|
136
156
|
end
|
|
137
157
|
|
|
138
158
|
# Custom attribute writer method checking allowed values (enum).
|
|
139
159
|
# @param [Object] field Object to be assigned
|
|
140
160
|
def field=(field)
|
|
141
|
-
validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS"])
|
|
161
|
+
validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS", "ATTACHMENT_FILENAME", "ATTACHMENT_TEXT"])
|
|
142
162
|
unless validator.valid?(field)
|
|
143
163
|
fail ArgumentError, "invalid value for \"field\", must be one of #{validator.allowable_values}."
|
|
144
164
|
end
|
|
145
165
|
@field = field
|
|
146
166
|
end
|
|
147
167
|
|
|
148
|
-
# Custom attribute writer method
|
|
149
|
-
# @param [Object]
|
|
150
|
-
def
|
|
151
|
-
|
|
152
|
-
|
|
168
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
169
|
+
# @param [Object] should Object to be assigned
|
|
170
|
+
def should=(should)
|
|
171
|
+
validator = EnumAttributeValidator.new('String', ["WILDCARD", "MATCH", "CONTAIN", "EQUAL"])
|
|
172
|
+
unless validator.valid?(should)
|
|
173
|
+
fail ArgumentError, "invalid value for \"should\", must be one of #{validator.allowable_values}."
|
|
153
174
|
end
|
|
175
|
+
@should = should
|
|
176
|
+
end
|
|
154
177
|
|
|
155
|
-
|
|
156
|
-
|
|
178
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
179
|
+
# @param [Object] attachment_text_extraction_method Object to be assigned
|
|
180
|
+
def attachment_text_extraction_method=(attachment_text_extraction_method)
|
|
181
|
+
validator = EnumAttributeValidator.new('String', ["AUTO", "NATIVE", "OCR", "LLM", "OCR_THEN_LLM"])
|
|
182
|
+
unless validator.valid?(attachment_text_extraction_method)
|
|
183
|
+
fail ArgumentError, "invalid value for \"attachment_text_extraction_method\", must be one of #{validator.allowable_values}."
|
|
157
184
|
end
|
|
158
|
-
|
|
159
|
-
@match = match
|
|
185
|
+
@attachment_text_extraction_method = attachment_text_extraction_method
|
|
160
186
|
end
|
|
161
187
|
|
|
162
188
|
# Checks equality by comparing each attribute.
|
|
@@ -166,7 +192,10 @@ module MailSlurpClient
|
|
|
166
192
|
self.class == o.class &&
|
|
167
193
|
field == o.field &&
|
|
168
194
|
match == o.match &&
|
|
169
|
-
forward_to_recipients == o.forward_to_recipients
|
|
195
|
+
forward_to_recipients == o.forward_to_recipients &&
|
|
196
|
+
should == o.should &&
|
|
197
|
+
match_options == o.match_options &&
|
|
198
|
+
attachment_text_extraction_method == o.attachment_text_extraction_method
|
|
170
199
|
end
|
|
171
200
|
|
|
172
201
|
# @see the `==` method
|
|
@@ -178,7 +207,7 @@ module MailSlurpClient
|
|
|
178
207
|
# Calculates hash code according to all attributes.
|
|
179
208
|
# @return [Integer] Hash code
|
|
180
209
|
def hash
|
|
181
|
-
[field, match, forward_to_recipients].hash
|
|
210
|
+
[field, match, forward_to_recipients, should, match_options, attachment_text_extraction_method].hash
|
|
182
211
|
end
|
|
183
212
|
|
|
184
213
|
# Builds the object from hash
|
|
@@ -54,6 +54,11 @@ module MailSlurpClient
|
|
|
54
54
|
# Template variable values
|
|
55
55
|
attr_accessor :template_variables
|
|
56
56
|
|
|
57
|
+
# Comparison mode for inbox automation matching.
|
|
58
|
+
attr_accessor :should
|
|
59
|
+
|
|
60
|
+
attr_accessor :match_options
|
|
61
|
+
|
|
57
62
|
class EnumAttributeValidator
|
|
58
63
|
attr_reader :datatype
|
|
59
64
|
attr_reader :allowable_values
|
|
@@ -91,7 +96,9 @@ module MailSlurpClient
|
|
|
91
96
|
:'is_html' => :'isHTML',
|
|
92
97
|
:'body' => :'body',
|
|
93
98
|
:'template_id' => :'templateId',
|
|
94
|
-
:'template_variables' => :'templateVariables'
|
|
99
|
+
:'template_variables' => :'templateVariables',
|
|
100
|
+
:'should' => :'should',
|
|
101
|
+
:'match_options' => :'matchOptions'
|
|
95
102
|
}
|
|
96
103
|
end
|
|
97
104
|
|
|
@@ -110,7 +117,9 @@ module MailSlurpClient
|
|
|
110
117
|
:'is_html' => :'Boolean',
|
|
111
118
|
:'body' => :'String',
|
|
112
119
|
:'template_id' => :'String',
|
|
113
|
-
:'template_variables' => :'Hash<String, Object>'
|
|
120
|
+
:'template_variables' => :'Hash<String, Object>',
|
|
121
|
+
:'should' => :'String',
|
|
122
|
+
:'match_options' => :'InboxAutomationMatchOptions'
|
|
114
123
|
}
|
|
115
124
|
end
|
|
116
125
|
|
|
@@ -119,6 +128,8 @@ module MailSlurpClient
|
|
|
119
128
|
Set.new([
|
|
120
129
|
:'inbox_id',
|
|
121
130
|
:'name',
|
|
131
|
+
:'field',
|
|
132
|
+
:'match',
|
|
122
133
|
:'reply_to',
|
|
123
134
|
:'subject',
|
|
124
135
|
:'from',
|
|
@@ -127,7 +138,9 @@ module MailSlurpClient
|
|
|
127
138
|
:'is_html',
|
|
128
139
|
:'body',
|
|
129
140
|
:'template_id',
|
|
130
|
-
:'template_variables'
|
|
141
|
+
:'template_variables',
|
|
142
|
+
:'should',
|
|
143
|
+
:'match_options'
|
|
131
144
|
])
|
|
132
145
|
end
|
|
133
146
|
|
|
@@ -199,60 +212,51 @@ module MailSlurpClient
|
|
|
199
212
|
self.template_variables = value
|
|
200
213
|
end
|
|
201
214
|
end
|
|
215
|
+
|
|
216
|
+
if attributes.key?(:'should')
|
|
217
|
+
self.should = attributes[:'should']
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if attributes.key?(:'match_options')
|
|
221
|
+
self.match_options = attributes[:'match_options']
|
|
222
|
+
end
|
|
202
223
|
end
|
|
203
224
|
|
|
204
225
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
205
226
|
# @return Array for valid properties with the reasons
|
|
206
227
|
def list_invalid_properties
|
|
207
228
|
invalid_properties = Array.new
|
|
208
|
-
if @field.nil?
|
|
209
|
-
invalid_properties.push('invalid value for "field", field cannot be nil.')
|
|
210
|
-
end
|
|
211
|
-
|
|
212
|
-
if @match.nil?
|
|
213
|
-
invalid_properties.push('invalid value for "match", match cannot be nil.')
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
if @match.to_s.length < 1
|
|
217
|
-
invalid_properties.push('invalid value for "match", the character length must be great than or equal to 1.')
|
|
218
|
-
end
|
|
219
|
-
|
|
220
229
|
invalid_properties
|
|
221
230
|
end
|
|
222
231
|
|
|
223
232
|
# Check to see if the all the properties in the model are valid
|
|
224
233
|
# @return true if the model is valid
|
|
225
234
|
def valid?
|
|
226
|
-
|
|
227
|
-
field_validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS"])
|
|
235
|
+
field_validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS", "ATTACHMENT_FILENAME", "ATTACHMENT_TEXT"])
|
|
228
236
|
return false unless field_validator.valid?(@field)
|
|
229
|
-
|
|
230
|
-
return false
|
|
237
|
+
should_validator = EnumAttributeValidator.new('String', ["WILDCARD", "MATCH", "CONTAIN", "EQUAL"])
|
|
238
|
+
return false unless should_validator.valid?(@should)
|
|
231
239
|
true
|
|
232
240
|
end
|
|
233
241
|
|
|
234
242
|
# Custom attribute writer method checking allowed values (enum).
|
|
235
243
|
# @param [Object] field Object to be assigned
|
|
236
244
|
def field=(field)
|
|
237
|
-
validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS"])
|
|
245
|
+
validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS", "ATTACHMENT_FILENAME", "ATTACHMENT_TEXT"])
|
|
238
246
|
unless validator.valid?(field)
|
|
239
247
|
fail ArgumentError, "invalid value for \"field\", must be one of #{validator.allowable_values}."
|
|
240
248
|
end
|
|
241
249
|
@field = field
|
|
242
250
|
end
|
|
243
251
|
|
|
244
|
-
# Custom attribute writer method
|
|
245
|
-
# @param [Object]
|
|
246
|
-
def
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
if match.to_s.length < 1
|
|
252
|
-
fail ArgumentError, 'invalid value for "match", the character length must be great than or equal to 1.'
|
|
252
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
253
|
+
# @param [Object] should Object to be assigned
|
|
254
|
+
def should=(should)
|
|
255
|
+
validator = EnumAttributeValidator.new('String', ["WILDCARD", "MATCH", "CONTAIN", "EQUAL"])
|
|
256
|
+
unless validator.valid?(should)
|
|
257
|
+
fail ArgumentError, "invalid value for \"should\", must be one of #{validator.allowable_values}."
|
|
253
258
|
end
|
|
254
|
-
|
|
255
|
-
@match = match
|
|
259
|
+
@should = should
|
|
256
260
|
end
|
|
257
261
|
|
|
258
262
|
# Checks equality by comparing each attribute.
|
|
@@ -272,7 +276,9 @@ module MailSlurpClient
|
|
|
272
276
|
is_html == o.is_html &&
|
|
273
277
|
body == o.body &&
|
|
274
278
|
template_id == o.template_id &&
|
|
275
|
-
template_variables == o.template_variables
|
|
279
|
+
template_variables == o.template_variables &&
|
|
280
|
+
should == o.should &&
|
|
281
|
+
match_options == o.match_options
|
|
276
282
|
end
|
|
277
283
|
|
|
278
284
|
# @see the `==` method
|
|
@@ -284,7 +290,7 @@ module MailSlurpClient
|
|
|
284
290
|
# Calculates hash code according to all attributes.
|
|
285
291
|
# @return [Integer] Hash code
|
|
286
292
|
def hash
|
|
287
|
-
[inbox_id, name, field, match, reply_to, subject, from, charset, ignore_reply_to, is_html, body, template_id, template_variables].hash
|
|
293
|
+
[inbox_id, name, field, match, reply_to, subject, from, charset, ignore_reply_to, is_html, body, template_id, template_variables, should, match_options].hash
|
|
288
294
|
end
|
|
289
295
|
|
|
290
296
|
# Builds the object from hash
|
|
@@ -20,6 +20,8 @@ module MailSlurpClient
|
|
|
20
20
|
|
|
21
21
|
attr_accessor :description
|
|
22
22
|
|
|
23
|
+
attr_accessor :tags
|
|
24
|
+
|
|
23
25
|
attr_accessor :schedule
|
|
24
26
|
|
|
25
27
|
attr_accessor :phone_number_endpoint_override
|
|
@@ -28,6 +30,9 @@ module MailSlurpClient
|
|
|
28
30
|
|
|
29
31
|
attr_accessor :phone_provider
|
|
30
32
|
|
|
33
|
+
# Line-quality preference for simple phone number provisioning
|
|
34
|
+
attr_accessor :phone_line_filter
|
|
35
|
+
|
|
31
36
|
class EnumAttributeValidator
|
|
32
37
|
attr_reader :datatype
|
|
33
38
|
attr_reader :allowable_values
|
|
@@ -56,10 +61,12 @@ module MailSlurpClient
|
|
|
56
61
|
:'phone_country' => :'phoneCountry',
|
|
57
62
|
:'name' => :'name',
|
|
58
63
|
:'description' => :'description',
|
|
64
|
+
:'tags' => :'tags',
|
|
59
65
|
:'schedule' => :'schedule',
|
|
60
66
|
:'phone_number_endpoint_override' => :'phoneNumberEndpointOverride',
|
|
61
67
|
:'phone_number_variant' => :'phoneNumberVariant',
|
|
62
|
-
:'phone_provider' => :'phoneProvider'
|
|
68
|
+
:'phone_provider' => :'phoneProvider',
|
|
69
|
+
:'phone_line_filter' => :'phoneLineFilter'
|
|
63
70
|
}
|
|
64
71
|
end
|
|
65
72
|
|
|
@@ -69,10 +76,12 @@ module MailSlurpClient
|
|
|
69
76
|
:'phone_country' => :'String',
|
|
70
77
|
:'name' => :'String',
|
|
71
78
|
:'description' => :'String',
|
|
79
|
+
:'tags' => :'Array<String>',
|
|
72
80
|
:'schedule' => :'String',
|
|
73
81
|
:'phone_number_endpoint_override' => :'String',
|
|
74
82
|
:'phone_number_variant' => :'String',
|
|
75
|
-
:'phone_provider' => :'String'
|
|
83
|
+
:'phone_provider' => :'String',
|
|
84
|
+
:'phone_line_filter' => :'String'
|
|
76
85
|
}
|
|
77
86
|
end
|
|
78
87
|
|
|
@@ -109,6 +118,12 @@ module MailSlurpClient
|
|
|
109
118
|
self.description = attributes[:'description']
|
|
110
119
|
end
|
|
111
120
|
|
|
121
|
+
if attributes.key?(:'tags')
|
|
122
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
123
|
+
self.tags = value
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
112
127
|
if attributes.key?(:'schedule')
|
|
113
128
|
self.schedule = attributes[:'schedule']
|
|
114
129
|
end
|
|
@@ -124,6 +139,10 @@ module MailSlurpClient
|
|
|
124
139
|
if attributes.key?(:'phone_provider')
|
|
125
140
|
self.phone_provider = attributes[:'phone_provider']
|
|
126
141
|
end
|
|
142
|
+
|
|
143
|
+
if attributes.key?(:'phone_line_filter')
|
|
144
|
+
self.phone_line_filter = attributes[:'phone_line_filter']
|
|
145
|
+
end
|
|
127
146
|
end
|
|
128
147
|
|
|
129
148
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -149,6 +168,8 @@ module MailSlurpClient
|
|
|
149
168
|
return false unless phone_number_variant_validator.valid?(@phone_number_variant)
|
|
150
169
|
phone_provider_validator = EnumAttributeValidator.new('String', ["TWILIO", "TELNYX"])
|
|
151
170
|
return false unless phone_provider_validator.valid?(@phone_provider)
|
|
171
|
+
phone_line_filter_validator = EnumAttributeValidator.new('String', ["ANY", "OTP_FRIENDLY", "NON_VOIP"])
|
|
172
|
+
return false unless phone_line_filter_validator.valid?(@phone_line_filter)
|
|
152
173
|
true
|
|
153
174
|
end
|
|
154
175
|
|
|
@@ -192,6 +213,16 @@ module MailSlurpClient
|
|
|
192
213
|
@phone_provider = phone_provider
|
|
193
214
|
end
|
|
194
215
|
|
|
216
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
217
|
+
# @param [Object] phone_line_filter Object to be assigned
|
|
218
|
+
def phone_line_filter=(phone_line_filter)
|
|
219
|
+
validator = EnumAttributeValidator.new('String', ["ANY", "OTP_FRIENDLY", "NON_VOIP"])
|
|
220
|
+
unless validator.valid?(phone_line_filter)
|
|
221
|
+
fail ArgumentError, "invalid value for \"phone_line_filter\", must be one of #{validator.allowable_values}."
|
|
222
|
+
end
|
|
223
|
+
@phone_line_filter = phone_line_filter
|
|
224
|
+
end
|
|
225
|
+
|
|
195
226
|
# Checks equality by comparing each attribute.
|
|
196
227
|
# @param [Object] Object to be compared
|
|
197
228
|
def ==(o)
|
|
@@ -200,10 +231,12 @@ module MailSlurpClient
|
|
|
200
231
|
phone_country == o.phone_country &&
|
|
201
232
|
name == o.name &&
|
|
202
233
|
description == o.description &&
|
|
234
|
+
tags == o.tags &&
|
|
203
235
|
schedule == o.schedule &&
|
|
204
236
|
phone_number_endpoint_override == o.phone_number_endpoint_override &&
|
|
205
237
|
phone_number_variant == o.phone_number_variant &&
|
|
206
|
-
phone_provider == o.phone_provider
|
|
238
|
+
phone_provider == o.phone_provider &&
|
|
239
|
+
phone_line_filter == o.phone_line_filter
|
|
207
240
|
end
|
|
208
241
|
|
|
209
242
|
# @see the `==` method
|
|
@@ -215,7 +248,7 @@ module MailSlurpClient
|
|
|
215
248
|
# Calculates hash code according to all attributes.
|
|
216
249
|
# @return [Integer] Hash code
|
|
217
250
|
def hash
|
|
218
|
-
[phone_country, name, description, schedule, phone_number_endpoint_override, phone_number_variant, phone_provider].hash
|
|
251
|
+
[phone_country, name, description, tags, schedule, phone_number_endpoint_override, phone_number_variant, phone_provider, phone_line_filter].hash
|
|
219
252
|
end
|
|
220
253
|
|
|
221
254
|
# Builds the object from hash
|