mailslurp_client 16.2.4 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/inbox_controller_api.rb +15 -15
- data/lib/mailslurp_client/api/{inbox_ruleset_controller_api.rb → ruleset_controller_api.rb} +184 -175
- data/lib/mailslurp_client/api/tools_controller_api.rb +62 -0
- data/lib/mailslurp_client/api/webhook_controller_api.rb +82 -0
- data/lib/mailslurp_client/models/ai_transform_dto.rb +19 -5
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/alias_thread_projection.rb +26 -26
- data/lib/mailslurp_client/models/attachment_projection.rb +21 -21
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- data/lib/mailslurp_client/models/{create_inbox_ruleset_options.rb → create_ruleset_options.rb} +5 -5
- data/lib/mailslurp_client/models/email.rb +13 -13
- data/lib/mailslurp_client/models/email_projection.rb +11 -11
- data/lib/mailslurp_client/models/email_thread_projection.rb +29 -29
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +10 -10
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +24 -24
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/lookup_mx_records_options.rb +211 -0
- data/lib/mailslurp_client/models/lookup_mx_records_results.rb +245 -0
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +21 -21
- data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_ai_transform_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_alias.rb +10 -10
- data/lib/mailslurp_client/models/page_alias_thread_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
- data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
- data/lib/mailslurp_client/models/page_complaint.rb +10 -10
- data/lib/mailslurp_client/models/page_connector.rb +10 -10
- data/lib/mailslurp_client/models/page_connector_events.rb +10 -10
- data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
- data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
- data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_email_thread_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +10 -10
- data/lib/mailslurp_client/models/page_entity_event_items.rb +10 -10
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +10 -10
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_guest_portal_users.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_tags.rb +10 -10
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +10 -10
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_reputation_items.rb +10 -10
- data/lib/mailslurp_client/models/{page_inbox_ruleset_dto.rb → page_ruleset_dto.rb} +15 -15
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +10 -10
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_sent_sms_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
- data/lib/mailslurp_client/models/pageable_object.rb +13 -13
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +19 -19
- data/lib/mailslurp_client/models/phone_message_thread_projection.rb +27 -27
- data/lib/mailslurp_client/models/plus_address_projection.rb +24 -24
- data/lib/mailslurp_client/models/{inbox_ruleset_dto.rb → ruleset_dto.rb} +17 -7
- data/lib/mailslurp_client/models/{inbox_ruleset_test_options.rb → ruleset_test_options.rb} +3 -3
- data/lib/mailslurp_client/models/sent_email_projection.rb +52 -52
- data/lib/mailslurp_client/models/template_projection.rb +15 -15
- data/lib/mailslurp_client/models/test_inbox_ruleset_sending_options.rb +13 -7
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +11 -11
- data/lib/mailslurp_client/models/{test_inbox_ruleset_receiving_options.rb → test_ruleset_receiving_options.rb} +16 -10
- data/lib/mailslurp_client/models/{test_inbox_ruleset_receiving_result.rb → test_ruleset_receiving_result.rb} +3 -3
- data/lib/mailslurp_client/models/{test_inbox_ruleset_sending_result.rb → test_ruleset_sending_result.rb} +3 -3
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/webhook_projection.rb +39 -30
- data/lib/mailslurp_client/models/webhook_result_dto.rb +15 -5
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +10 -8
- metadata +12 -10
@@ -14,10 +14,6 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class PhoneMessageThreadProjection
|
17
|
-
attr_accessor :phone_number
|
18
|
-
|
19
|
-
attr_accessor :phone_number_id
|
20
|
-
|
21
17
|
attr_accessor :other_phone_number
|
22
18
|
|
23
19
|
attr_accessor :last_message_direction
|
@@ -26,6 +22,10 @@ module MailSlurpClient
|
|
26
22
|
|
27
23
|
attr_accessor :last_created
|
28
24
|
|
25
|
+
attr_accessor :phone_number
|
26
|
+
|
27
|
+
attr_accessor :phone_number_id
|
28
|
+
|
29
29
|
class EnumAttributeValidator
|
30
30
|
attr_reader :datatype
|
31
31
|
attr_reader :allowable_values
|
@@ -51,24 +51,24 @@ module MailSlurpClient
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
52
|
def self.attribute_map
|
53
53
|
{
|
54
|
-
:'phone_number' => :'phoneNumber',
|
55
|
-
:'phone_number_id' => :'phoneNumberId',
|
56
54
|
:'other_phone_number' => :'otherPhoneNumber',
|
57
55
|
:'last_message_direction' => :'lastMessageDirection',
|
58
56
|
:'last_body' => :'lastBody',
|
59
|
-
:'last_created' => :'lastCreated'
|
57
|
+
:'last_created' => :'lastCreated',
|
58
|
+
:'phone_number' => :'phoneNumber',
|
59
|
+
:'phone_number_id' => :'phoneNumberId'
|
60
60
|
}
|
61
61
|
end
|
62
62
|
|
63
63
|
# Attribute type mapping.
|
64
64
|
def self.openapi_types
|
65
65
|
{
|
66
|
-
:'phone_number' => :'String',
|
67
|
-
:'phone_number_id' => :'String',
|
68
66
|
:'other_phone_number' => :'String',
|
69
67
|
:'last_message_direction' => :'String',
|
70
68
|
:'last_body' => :'String',
|
71
|
-
:'last_created' => :'DateTime'
|
69
|
+
:'last_created' => :'DateTime',
|
70
|
+
:'phone_number' => :'String',
|
71
|
+
:'phone_number_id' => :'String'
|
72
72
|
}
|
73
73
|
end
|
74
74
|
|
@@ -93,14 +93,6 @@ module MailSlurpClient
|
|
93
93
|
h[k.to_sym] = v
|
94
94
|
}
|
95
95
|
|
96
|
-
if attributes.key?(:'phone_number')
|
97
|
-
self.phone_number = attributes[:'phone_number']
|
98
|
-
end
|
99
|
-
|
100
|
-
if attributes.key?(:'phone_number_id')
|
101
|
-
self.phone_number_id = attributes[:'phone_number_id']
|
102
|
-
end
|
103
|
-
|
104
96
|
if attributes.key?(:'other_phone_number')
|
105
97
|
self.other_phone_number = attributes[:'other_phone_number']
|
106
98
|
end
|
@@ -116,16 +108,20 @@ module MailSlurpClient
|
|
116
108
|
if attributes.key?(:'last_created')
|
117
109
|
self.last_created = attributes[:'last_created']
|
118
110
|
end
|
111
|
+
|
112
|
+
if attributes.key?(:'phone_number')
|
113
|
+
self.phone_number = attributes[:'phone_number']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'phone_number_id')
|
117
|
+
self.phone_number_id = attributes[:'phone_number_id']
|
118
|
+
end
|
119
119
|
end
|
120
120
|
|
121
121
|
# Show invalid properties with the reasons. Usually used together with valid?
|
122
122
|
# @return Array for valid properties with the reasons
|
123
123
|
def list_invalid_properties
|
124
124
|
invalid_properties = Array.new
|
125
|
-
if @phone_number_id.nil?
|
126
|
-
invalid_properties.push('invalid value for "phone_number_id", phone_number_id cannot be nil.')
|
127
|
-
end
|
128
|
-
|
129
125
|
if @last_message_direction.nil?
|
130
126
|
invalid_properties.push('invalid value for "last_message_direction", last_message_direction cannot be nil.')
|
131
127
|
end
|
@@ -138,18 +134,22 @@ module MailSlurpClient
|
|
138
134
|
invalid_properties.push('invalid value for "last_created", last_created cannot be nil.')
|
139
135
|
end
|
140
136
|
|
137
|
+
if @phone_number_id.nil?
|
138
|
+
invalid_properties.push('invalid value for "phone_number_id", phone_number_id cannot be nil.')
|
139
|
+
end
|
140
|
+
|
141
141
|
invalid_properties
|
142
142
|
end
|
143
143
|
|
144
144
|
# Check to see if the all the properties in the model are valid
|
145
145
|
# @return true if the model is valid
|
146
146
|
def valid?
|
147
|
-
return false if @phone_number_id.nil?
|
148
147
|
return false if @last_message_direction.nil?
|
149
148
|
last_message_direction_validator = EnumAttributeValidator.new('String', ["OUTBOUND", "INBOUND"])
|
150
149
|
return false unless last_message_direction_validator.valid?(@last_message_direction)
|
151
150
|
return false if @last_body.nil?
|
152
151
|
return false if @last_created.nil?
|
152
|
+
return false if @phone_number_id.nil?
|
153
153
|
true
|
154
154
|
end
|
155
155
|
|
@@ -168,12 +168,12 @@ module MailSlurpClient
|
|
168
168
|
def ==(o)
|
169
169
|
return true if self.equal?(o)
|
170
170
|
self.class == o.class &&
|
171
|
-
phone_number == o.phone_number &&
|
172
|
-
phone_number_id == o.phone_number_id &&
|
173
171
|
other_phone_number == o.other_phone_number &&
|
174
172
|
last_message_direction == o.last_message_direction &&
|
175
173
|
last_body == o.last_body &&
|
176
|
-
last_created == o.last_created
|
174
|
+
last_created == o.last_created &&
|
175
|
+
phone_number == o.phone_number &&
|
176
|
+
phone_number_id == o.phone_number_id
|
177
177
|
end
|
178
178
|
|
179
179
|
# @see the `==` method
|
@@ -185,7 +185,7 @@ module MailSlurpClient
|
|
185
185
|
# Calculates hash code according to all attributes.
|
186
186
|
# @return [Integer] Hash code
|
187
187
|
def hash
|
188
|
-
[
|
188
|
+
[other_phone_number, last_message_direction, last_body, last_created, phone_number, phone_number_id].hash
|
189
189
|
end
|
190
190
|
|
191
191
|
# Builds the object from hash
|
@@ -14,14 +14,14 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class PlusAddressProjection
|
17
|
-
attr_accessor :inbox_id
|
18
|
-
|
19
17
|
attr_accessor :user_id
|
20
18
|
|
21
|
-
attr_accessor :
|
19
|
+
attr_accessor :inbox_id
|
22
20
|
|
23
21
|
attr_accessor :created_at
|
24
22
|
|
23
|
+
attr_accessor :updated_at
|
24
|
+
|
25
25
|
attr_accessor :plus_address
|
26
26
|
|
27
27
|
attr_accessor :full_address
|
@@ -31,10 +31,10 @@ module MailSlurpClient
|
|
31
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
32
|
def self.attribute_map
|
33
33
|
{
|
34
|
-
:'inbox_id' => :'inboxId',
|
35
34
|
:'user_id' => :'userId',
|
36
|
-
:'
|
35
|
+
:'inbox_id' => :'inboxId',
|
37
36
|
:'created_at' => :'createdAt',
|
37
|
+
:'updated_at' => :'updatedAt',
|
38
38
|
:'plus_address' => :'plusAddress',
|
39
39
|
:'full_address' => :'fullAddress',
|
40
40
|
:'id' => :'id'
|
@@ -44,10 +44,10 @@ module MailSlurpClient
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
-
:'inbox_id' => :'String',
|
48
47
|
:'user_id' => :'String',
|
49
|
-
:'
|
48
|
+
:'inbox_id' => :'String',
|
50
49
|
:'created_at' => :'DateTime',
|
50
|
+
:'updated_at' => :'DateTime',
|
51
51
|
:'plus_address' => :'String',
|
52
52
|
:'full_address' => :'String',
|
53
53
|
:'id' => :'String'
|
@@ -75,22 +75,22 @@ module MailSlurpClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'inbox_id')
|
79
|
-
self.inbox_id = attributes[:'inbox_id']
|
80
|
-
end
|
81
|
-
|
82
78
|
if attributes.key?(:'user_id')
|
83
79
|
self.user_id = attributes[:'user_id']
|
84
80
|
end
|
85
81
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
82
|
+
if attributes.key?(:'inbox_id')
|
83
|
+
self.inbox_id = attributes[:'inbox_id']
|
88
84
|
end
|
89
85
|
|
90
86
|
if attributes.key?(:'created_at')
|
91
87
|
self.created_at = attributes[:'created_at']
|
92
88
|
end
|
93
89
|
|
90
|
+
if attributes.key?(:'updated_at')
|
91
|
+
self.updated_at = attributes[:'updated_at']
|
92
|
+
end
|
93
|
+
|
94
94
|
if attributes.key?(:'plus_address')
|
95
95
|
self.plus_address = attributes[:'plus_address']
|
96
96
|
end
|
@@ -108,22 +108,22 @@ module MailSlurpClient
|
|
108
108
|
# @return Array for valid properties with the reasons
|
109
109
|
def list_invalid_properties
|
110
110
|
invalid_properties = Array.new
|
111
|
-
if @inbox_id.nil?
|
112
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
113
|
-
end
|
114
|
-
|
115
111
|
if @user_id.nil?
|
116
112
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
117
113
|
end
|
118
114
|
|
119
|
-
if @
|
120
|
-
invalid_properties.push('invalid value for "
|
115
|
+
if @inbox_id.nil?
|
116
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
121
117
|
end
|
122
118
|
|
123
119
|
if @created_at.nil?
|
124
120
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
125
121
|
end
|
126
122
|
|
123
|
+
if @updated_at.nil?
|
124
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
125
|
+
end
|
126
|
+
|
127
127
|
if @plus_address.nil?
|
128
128
|
invalid_properties.push('invalid value for "plus_address", plus_address cannot be nil.')
|
129
129
|
end
|
@@ -142,10 +142,10 @@ module MailSlurpClient
|
|
142
142
|
# Check to see if the all the properties in the model are valid
|
143
143
|
# @return true if the model is valid
|
144
144
|
def valid?
|
145
|
-
return false if @inbox_id.nil?
|
146
145
|
return false if @user_id.nil?
|
147
|
-
return false if @
|
146
|
+
return false if @inbox_id.nil?
|
148
147
|
return false if @created_at.nil?
|
148
|
+
return false if @updated_at.nil?
|
149
149
|
return false if @plus_address.nil?
|
150
150
|
return false if @full_address.nil?
|
151
151
|
return false if @id.nil?
|
@@ -157,10 +157,10 @@ module MailSlurpClient
|
|
157
157
|
def ==(o)
|
158
158
|
return true if self.equal?(o)
|
159
159
|
self.class == o.class &&
|
160
|
-
inbox_id == o.inbox_id &&
|
161
160
|
user_id == o.user_id &&
|
162
|
-
|
161
|
+
inbox_id == o.inbox_id &&
|
163
162
|
created_at == o.created_at &&
|
163
|
+
updated_at == o.updated_at &&
|
164
164
|
plus_address == o.plus_address &&
|
165
165
|
full_address == o.full_address &&
|
166
166
|
id == o.id
|
@@ -175,7 +175,7 @@ module MailSlurpClient
|
|
175
175
|
# Calculates hash code according to all attributes.
|
176
176
|
# @return [Integer] Hash code
|
177
177
|
def hash
|
178
|
-
[inbox_id,
|
178
|
+
[user_id, inbox_id, created_at, updated_at, plus_address, full_address, id].hash
|
179
179
|
end
|
180
180
|
|
181
181
|
# Builds the object from hash
|
@@ -13,12 +13,14 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
# Rules for inbox
|
17
|
-
class
|
16
|
+
# Rules for an inbox or phone number. Rulesets can be used to block, allow, filter, or bounce emails or SMS when sending or receiving.
|
17
|
+
class RulesetDto
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
20
|
attr_accessor :inbox_id
|
21
21
|
|
22
|
+
attr_accessor :phone_id
|
23
|
+
|
22
24
|
attr_accessor :scope
|
23
25
|
|
24
26
|
attr_accessor :action
|
@@ -56,6 +58,7 @@ module MailSlurpClient
|
|
56
58
|
{
|
57
59
|
:'id' => :'id',
|
58
60
|
:'inbox_id' => :'inboxId',
|
61
|
+
:'phone_id' => :'phoneId',
|
59
62
|
:'scope' => :'scope',
|
60
63
|
:'action' => :'action',
|
61
64
|
:'target' => :'target',
|
@@ -69,6 +72,7 @@ module MailSlurpClient
|
|
69
72
|
{
|
70
73
|
:'id' => :'String',
|
71
74
|
:'inbox_id' => :'String',
|
75
|
+
:'phone_id' => :'String',
|
72
76
|
:'scope' => :'String',
|
73
77
|
:'action' => :'String',
|
74
78
|
:'target' => :'String',
|
@@ -81,6 +85,7 @@ module MailSlurpClient
|
|
81
85
|
def self.openapi_nullable
|
82
86
|
Set.new([
|
83
87
|
:'inbox_id',
|
88
|
+
:'phone_id',
|
84
89
|
])
|
85
90
|
end
|
86
91
|
|
@@ -88,13 +93,13 @@ module MailSlurpClient
|
|
88
93
|
# @param [Hash] attributes Model attributes in the form of hash
|
89
94
|
def initialize(attributes = {})
|
90
95
|
if (!attributes.is_a?(Hash))
|
91
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::
|
96
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::RulesetDto` initialize method"
|
92
97
|
end
|
93
98
|
|
94
99
|
# check to see if the attribute exists and convert string to symbol for hash key
|
95
100
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
96
101
|
if (!self.class.attribute_map.key?(k.to_sym))
|
97
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::
|
102
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::RulesetDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
98
103
|
end
|
99
104
|
h[k.to_sym] = v
|
100
105
|
}
|
@@ -107,6 +112,10 @@ module MailSlurpClient
|
|
107
112
|
self.inbox_id = attributes[:'inbox_id']
|
108
113
|
end
|
109
114
|
|
115
|
+
if attributes.key?(:'phone_id')
|
116
|
+
self.phone_id = attributes[:'phone_id']
|
117
|
+
end
|
118
|
+
|
110
119
|
if attributes.key?(:'scope')
|
111
120
|
self.scope = attributes[:'scope']
|
112
121
|
end
|
@@ -164,7 +173,7 @@ module MailSlurpClient
|
|
164
173
|
def valid?
|
165
174
|
return false if @id.nil?
|
166
175
|
return false if @scope.nil?
|
167
|
-
scope_validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
|
176
|
+
scope_validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS", "RECEIVING_SMS", "SENDING_SMS"])
|
168
177
|
return false unless scope_validator.valid?(@scope)
|
169
178
|
return false if @action.nil?
|
170
179
|
action_validator = EnumAttributeValidator.new('String', ["BLOCK", "ALLOW", "FILTER_REMOVE", "BOUNCE_SOFT", "BOUNCE_HARD"])
|
@@ -180,7 +189,7 @@ module MailSlurpClient
|
|
180
189
|
# Custom attribute writer method checking allowed values (enum).
|
181
190
|
# @param [Object] scope Object to be assigned
|
182
191
|
def scope=(scope)
|
183
|
-
validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
|
192
|
+
validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS", "RECEIVING_SMS", "SENDING_SMS"])
|
184
193
|
unless validator.valid?(scope)
|
185
194
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{validator.allowable_values}."
|
186
195
|
end
|
@@ -214,6 +223,7 @@ module MailSlurpClient
|
|
214
223
|
self.class == o.class &&
|
215
224
|
id == o.id &&
|
216
225
|
inbox_id == o.inbox_id &&
|
226
|
+
phone_id == o.phone_id &&
|
217
227
|
scope == o.scope &&
|
218
228
|
action == o.action &&
|
219
229
|
target == o.target &&
|
@@ -230,7 +240,7 @@ module MailSlurpClient
|
|
230
240
|
# Calculates hash code according to all attributes.
|
231
241
|
# @return [Integer] Hash code
|
232
242
|
def hash
|
233
|
-
[id, inbox_id, scope, action, target, handler, created_at].hash
|
243
|
+
[id, inbox_id, phone_id, scope, action, target, handler, created_at].hash
|
234
244
|
end
|
235
245
|
|
236
246
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Test options for inbox ruleset
|
17
|
-
class
|
17
|
+
class RulesetTestOptions
|
18
18
|
attr_accessor :test_target
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -41,13 +41,13 @@ module MailSlurpClient
|
|
41
41
|
# @param [Hash] attributes Model attributes in the form of hash
|
42
42
|
def initialize(attributes = {})
|
43
43
|
if (!attributes.is_a?(Hash))
|
44
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::
|
44
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::RulesetTestOptions` initialize method"
|
45
45
|
end
|
46
46
|
|
47
47
|
# check to see if the attribute exists and convert string to symbol for hash key
|
48
48
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
49
49
|
if (!self.class.attribute_map.key?(k.to_sym))
|
50
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::
|
50
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::RulesetTestOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
51
51
|
end
|
52
52
|
h[k.to_sym] = v
|
53
53
|
}
|
@@ -16,20 +16,24 @@ module MailSlurpClient
|
|
16
16
|
class SentEmailProjection
|
17
17
|
attr_accessor :id
|
18
18
|
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :thread_id
|
20
|
+
|
21
|
+
attr_accessor :in_reply_to
|
20
22
|
|
21
23
|
attr_accessor :from
|
22
24
|
|
23
25
|
attr_accessor :sender
|
24
26
|
|
27
|
+
attr_accessor :recipients
|
28
|
+
|
25
29
|
attr_accessor :subject
|
26
30
|
|
31
|
+
attr_accessor :user_id
|
32
|
+
|
27
33
|
attr_accessor :attachments
|
28
34
|
|
29
35
|
attr_accessor :inbox_id
|
30
36
|
|
31
|
-
attr_accessor :user_id
|
32
|
-
|
33
37
|
attr_accessor :created_at
|
34
38
|
|
35
39
|
attr_accessor :to
|
@@ -40,7 +44,7 @@ module MailSlurpClient
|
|
40
44
|
|
41
45
|
attr_accessor :message_id
|
42
46
|
|
43
|
-
attr_accessor :
|
47
|
+
attr_accessor :virtual_send
|
44
48
|
|
45
49
|
attr_accessor :body_excerpt
|
46
50
|
|
@@ -48,32 +52,28 @@ module MailSlurpClient
|
|
48
52
|
|
49
53
|
attr_accessor :body_md5_hash
|
50
54
|
|
51
|
-
attr_accessor :virtual_send
|
52
|
-
|
53
|
-
attr_accessor :thread_id
|
54
|
-
|
55
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
56
|
def self.attribute_map
|
57
57
|
{
|
58
58
|
:'id' => :'id',
|
59
|
-
:'
|
59
|
+
:'thread_id' => :'threadId',
|
60
|
+
:'in_reply_to' => :'inReplyTo',
|
60
61
|
:'from' => :'from',
|
61
62
|
:'sender' => :'sender',
|
63
|
+
:'recipients' => :'recipients',
|
62
64
|
:'subject' => :'subject',
|
65
|
+
:'user_id' => :'userId',
|
63
66
|
:'attachments' => :'attachments',
|
64
67
|
:'inbox_id' => :'inboxId',
|
65
|
-
:'user_id' => :'userId',
|
66
68
|
:'created_at' => :'createdAt',
|
67
69
|
:'to' => :'to',
|
68
70
|
:'cc' => :'cc',
|
69
71
|
:'bcc' => :'bcc',
|
70
72
|
:'message_id' => :'messageId',
|
71
|
-
:'
|
73
|
+
:'virtual_send' => :'virtualSend',
|
72
74
|
:'body_excerpt' => :'bodyExcerpt',
|
73
75
|
:'text_excerpt' => :'textExcerpt',
|
74
|
-
:'body_md5_hash' => :'bodyMD5Hash'
|
75
|
-
:'virtual_send' => :'virtualSend',
|
76
|
-
:'thread_id' => :'threadId'
|
76
|
+
:'body_md5_hash' => :'bodyMD5Hash'
|
77
77
|
}
|
78
78
|
end
|
79
79
|
|
@@ -81,41 +81,41 @@ module MailSlurpClient
|
|
81
81
|
def self.openapi_types
|
82
82
|
{
|
83
83
|
:'id' => :'String',
|
84
|
-
:'
|
84
|
+
:'thread_id' => :'String',
|
85
|
+
:'in_reply_to' => :'String',
|
85
86
|
:'from' => :'String',
|
86
87
|
:'sender' => :'Sender',
|
88
|
+
:'recipients' => :'EmailRecipients',
|
87
89
|
:'subject' => :'String',
|
90
|
+
:'user_id' => :'String',
|
88
91
|
:'attachments' => :'Array<String>',
|
89
92
|
:'inbox_id' => :'String',
|
90
|
-
:'user_id' => :'String',
|
91
93
|
:'created_at' => :'DateTime',
|
92
94
|
:'to' => :'Array<String>',
|
93
95
|
:'cc' => :'Array<String>',
|
94
96
|
:'bcc' => :'Array<String>',
|
95
97
|
:'message_id' => :'String',
|
96
|
-
:'
|
98
|
+
:'virtual_send' => :'Boolean',
|
97
99
|
:'body_excerpt' => :'String',
|
98
100
|
:'text_excerpt' => :'String',
|
99
|
-
:'body_md5_hash' => :'String'
|
100
|
-
:'virtual_send' => :'Boolean',
|
101
|
-
:'thread_id' => :'String'
|
101
|
+
:'body_md5_hash' => :'String'
|
102
102
|
}
|
103
103
|
end
|
104
104
|
|
105
105
|
# List of attributes with nullable: true
|
106
106
|
def self.openapi_nullable
|
107
107
|
Set.new([
|
108
|
-
:'
|
108
|
+
:'thread_id',
|
109
|
+
:'in_reply_to',
|
109
110
|
:'from',
|
110
111
|
:'sender',
|
112
|
+
:'recipients',
|
111
113
|
:'subject',
|
112
114
|
:'attachments',
|
113
115
|
:'message_id',
|
114
|
-
:'in_reply_to',
|
115
116
|
:'body_excerpt',
|
116
117
|
:'text_excerpt',
|
117
|
-
:'body_md5_hash'
|
118
|
-
:'thread_id'
|
118
|
+
:'body_md5_hash'
|
119
119
|
])
|
120
120
|
end
|
121
121
|
|
@@ -138,8 +138,12 @@ module MailSlurpClient
|
|
138
138
|
self.id = attributes[:'id']
|
139
139
|
end
|
140
140
|
|
141
|
-
if attributes.key?(:'
|
142
|
-
self.
|
141
|
+
if attributes.key?(:'thread_id')
|
142
|
+
self.thread_id = attributes[:'thread_id']
|
143
|
+
end
|
144
|
+
|
145
|
+
if attributes.key?(:'in_reply_to')
|
146
|
+
self.in_reply_to = attributes[:'in_reply_to']
|
143
147
|
end
|
144
148
|
|
145
149
|
if attributes.key?(:'from')
|
@@ -150,10 +154,18 @@ module MailSlurpClient
|
|
150
154
|
self.sender = attributes[:'sender']
|
151
155
|
end
|
152
156
|
|
157
|
+
if attributes.key?(:'recipients')
|
158
|
+
self.recipients = attributes[:'recipients']
|
159
|
+
end
|
160
|
+
|
153
161
|
if attributes.key?(:'subject')
|
154
162
|
self.subject = attributes[:'subject']
|
155
163
|
end
|
156
164
|
|
165
|
+
if attributes.key?(:'user_id')
|
166
|
+
self.user_id = attributes[:'user_id']
|
167
|
+
end
|
168
|
+
|
157
169
|
if attributes.key?(:'attachments')
|
158
170
|
if (value = attributes[:'attachments']).is_a?(Array)
|
159
171
|
self.attachments = value
|
@@ -164,10 +176,6 @@ module MailSlurpClient
|
|
164
176
|
self.inbox_id = attributes[:'inbox_id']
|
165
177
|
end
|
166
178
|
|
167
|
-
if attributes.key?(:'user_id')
|
168
|
-
self.user_id = attributes[:'user_id']
|
169
|
-
end
|
170
|
-
|
171
179
|
if attributes.key?(:'created_at')
|
172
180
|
self.created_at = attributes[:'created_at']
|
173
181
|
end
|
@@ -194,8 +202,8 @@ module MailSlurpClient
|
|
194
202
|
self.message_id = attributes[:'message_id']
|
195
203
|
end
|
196
204
|
|
197
|
-
if attributes.key?(:'
|
198
|
-
self.
|
205
|
+
if attributes.key?(:'virtual_send')
|
206
|
+
self.virtual_send = attributes[:'virtual_send']
|
199
207
|
end
|
200
208
|
|
201
209
|
if attributes.key?(:'body_excerpt')
|
@@ -209,14 +217,6 @@ module MailSlurpClient
|
|
209
217
|
if attributes.key?(:'body_md5_hash')
|
210
218
|
self.body_md5_hash = attributes[:'body_md5_hash']
|
211
219
|
end
|
212
|
-
|
213
|
-
if attributes.key?(:'virtual_send')
|
214
|
-
self.virtual_send = attributes[:'virtual_send']
|
215
|
-
end
|
216
|
-
|
217
|
-
if attributes.key?(:'thread_id')
|
218
|
-
self.thread_id = attributes[:'thread_id']
|
219
|
-
end
|
220
220
|
end
|
221
221
|
|
222
222
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -227,14 +227,14 @@ module MailSlurpClient
|
|
227
227
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
228
228
|
end
|
229
229
|
|
230
|
-
if @inbox_id.nil?
|
231
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
232
|
-
end
|
233
|
-
|
234
230
|
if @user_id.nil?
|
235
231
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
236
232
|
end
|
237
233
|
|
234
|
+
if @inbox_id.nil?
|
235
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
236
|
+
end
|
237
|
+
|
238
238
|
if @created_at.nil?
|
239
239
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
240
240
|
end
|
@@ -250,8 +250,8 @@ module MailSlurpClient
|
|
250
250
|
# @return true if the model is valid
|
251
251
|
def valid?
|
252
252
|
return false if @id.nil?
|
253
|
-
return false if @inbox_id.nil?
|
254
253
|
return false if @user_id.nil?
|
254
|
+
return false if @inbox_id.nil?
|
255
255
|
return false if @created_at.nil?
|
256
256
|
return false if @virtual_send.nil?
|
257
257
|
true
|
@@ -263,24 +263,24 @@ module MailSlurpClient
|
|
263
263
|
return true if self.equal?(o)
|
264
264
|
self.class == o.class &&
|
265
265
|
id == o.id &&
|
266
|
-
|
266
|
+
thread_id == o.thread_id &&
|
267
|
+
in_reply_to == o.in_reply_to &&
|
267
268
|
from == o.from &&
|
268
269
|
sender == o.sender &&
|
270
|
+
recipients == o.recipients &&
|
269
271
|
subject == o.subject &&
|
272
|
+
user_id == o.user_id &&
|
270
273
|
attachments == o.attachments &&
|
271
274
|
inbox_id == o.inbox_id &&
|
272
|
-
user_id == o.user_id &&
|
273
275
|
created_at == o.created_at &&
|
274
276
|
to == o.to &&
|
275
277
|
cc == o.cc &&
|
276
278
|
bcc == o.bcc &&
|
277
279
|
message_id == o.message_id &&
|
278
|
-
|
280
|
+
virtual_send == o.virtual_send &&
|
279
281
|
body_excerpt == o.body_excerpt &&
|
280
282
|
text_excerpt == o.text_excerpt &&
|
281
|
-
body_md5_hash == o.body_md5_hash
|
282
|
-
virtual_send == o.virtual_send &&
|
283
|
-
thread_id == o.thread_id
|
283
|
+
body_md5_hash == o.body_md5_hash
|
284
284
|
end
|
285
285
|
|
286
286
|
# @see the `==` method
|
@@ -292,7 +292,7 @@ module MailSlurpClient
|
|
292
292
|
# Calculates hash code according to all attributes.
|
293
293
|
# @return [Integer] Hash code
|
294
294
|
def hash
|
295
|
-
[id,
|
295
|
+
[id, thread_id, in_reply_to, from, sender, recipients, subject, user_id, attachments, inbox_id, created_at, to, cc, bcc, message_id, virtual_send, body_excerpt, text_excerpt, body_md5_hash].hash
|
296
296
|
end
|
297
297
|
|
298
298
|
# Builds the object from hash
|