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
@@ -15,10 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Email template data
|
17
17
|
class TemplateProjection
|
18
|
-
attr_accessor :updated_at
|
19
|
-
|
20
18
|
attr_accessor :created_at
|
21
19
|
|
20
|
+
attr_accessor :updated_at
|
21
|
+
|
22
22
|
attr_accessor :variables
|
23
23
|
|
24
24
|
attr_accessor :name
|
@@ -28,8 +28,8 @@ module MailSlurpClient
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
|
-
:'updated_at' => :'updatedAt',
|
32
31
|
:'created_at' => :'createdAt',
|
32
|
+
:'updated_at' => :'updatedAt',
|
33
33
|
:'variables' => :'variables',
|
34
34
|
:'name' => :'name',
|
35
35
|
:'id' => :'id'
|
@@ -39,8 +39,8 @@ module MailSlurpClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'updated_at' => :'DateTime',
|
43
42
|
:'created_at' => :'DateTime',
|
43
|
+
:'updated_at' => :'DateTime',
|
44
44
|
:'variables' => :'Array<String>',
|
45
45
|
:'name' => :'String',
|
46
46
|
:'id' => :'String'
|
@@ -68,14 +68,14 @@ module MailSlurpClient
|
|
68
68
|
h[k.to_sym] = v
|
69
69
|
}
|
70
70
|
|
71
|
-
if attributes.key?(:'updated_at')
|
72
|
-
self.updated_at = attributes[:'updated_at']
|
73
|
-
end
|
74
|
-
|
75
71
|
if attributes.key?(:'created_at')
|
76
72
|
self.created_at = attributes[:'created_at']
|
77
73
|
end
|
78
74
|
|
75
|
+
if attributes.key?(:'updated_at')
|
76
|
+
self.updated_at = attributes[:'updated_at']
|
77
|
+
end
|
78
|
+
|
79
79
|
if attributes.key?(:'variables')
|
80
80
|
if (value = attributes[:'variables']).is_a?(Array)
|
81
81
|
self.variables = value
|
@@ -95,14 +95,14 @@ module MailSlurpClient
|
|
95
95
|
# @return Array for valid properties with the reasons
|
96
96
|
def list_invalid_properties
|
97
97
|
invalid_properties = Array.new
|
98
|
-
if @updated_at.nil?
|
99
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
100
|
-
end
|
101
|
-
|
102
98
|
if @created_at.nil?
|
103
99
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
104
100
|
end
|
105
101
|
|
102
|
+
if @updated_at.nil?
|
103
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
104
|
+
end
|
105
|
+
|
106
106
|
if @variables.nil?
|
107
107
|
invalid_properties.push('invalid value for "variables", variables cannot be nil.')
|
108
108
|
end
|
@@ -121,8 +121,8 @@ module MailSlurpClient
|
|
121
121
|
# Check to see if the all the properties in the model are valid
|
122
122
|
# @return true if the model is valid
|
123
123
|
def valid?
|
124
|
-
return false if @updated_at.nil?
|
125
124
|
return false if @created_at.nil?
|
125
|
+
return false if @updated_at.nil?
|
126
126
|
return false if @variables.nil?
|
127
127
|
return false if @name.nil?
|
128
128
|
return false if @id.nil?
|
@@ -134,8 +134,8 @@ module MailSlurpClient
|
|
134
134
|
def ==(o)
|
135
135
|
return true if self.equal?(o)
|
136
136
|
self.class == o.class &&
|
137
|
-
updated_at == o.updated_at &&
|
138
137
|
created_at == o.created_at &&
|
138
|
+
updated_at == o.updated_at &&
|
139
139
|
variables == o.variables &&
|
140
140
|
name == o.name &&
|
141
141
|
id == o.id
|
@@ -150,7 +150,7 @@ module MailSlurpClient
|
|
150
150
|
# Calculates hash code according to all attributes.
|
151
151
|
# @return [Integer] Hash code
|
152
152
|
def hash
|
153
|
-
[
|
153
|
+
[created_at, updated_at, variables, name, id].hash
|
154
154
|
end
|
155
155
|
|
156
156
|
# Builds the object from hash
|
@@ -13,16 +13,19 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
# Test options for
|
16
|
+
# Test options for ruleset sending test
|
17
17
|
class TestInboxRulesetSendingOptions
|
18
18
|
attr_accessor :inbox_id
|
19
19
|
|
20
|
+
attr_accessor :phone_id
|
21
|
+
|
20
22
|
attr_accessor :recipient
|
21
23
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
25
|
def self.attribute_map
|
24
26
|
{
|
25
27
|
:'inbox_id' => :'inboxId',
|
28
|
+
:'phone_id' => :'phoneId',
|
26
29
|
:'recipient' => :'recipient'
|
27
30
|
}
|
28
31
|
end
|
@@ -31,6 +34,7 @@ module MailSlurpClient
|
|
31
34
|
def self.openapi_types
|
32
35
|
{
|
33
36
|
:'inbox_id' => :'String',
|
37
|
+
:'phone_id' => :'String',
|
34
38
|
:'recipient' => :'String'
|
35
39
|
}
|
36
40
|
end
|
@@ -38,6 +42,8 @@ module MailSlurpClient
|
|
38
42
|
# List of attributes with nullable: true
|
39
43
|
def self.openapi_nullable
|
40
44
|
Set.new([
|
45
|
+
:'inbox_id',
|
46
|
+
:'phone_id',
|
41
47
|
])
|
42
48
|
end
|
43
49
|
|
@@ -60,6 +66,10 @@ module MailSlurpClient
|
|
60
66
|
self.inbox_id = attributes[:'inbox_id']
|
61
67
|
end
|
62
68
|
|
69
|
+
if attributes.key?(:'phone_id')
|
70
|
+
self.phone_id = attributes[:'phone_id']
|
71
|
+
end
|
72
|
+
|
63
73
|
if attributes.key?(:'recipient')
|
64
74
|
self.recipient = attributes[:'recipient']
|
65
75
|
end
|
@@ -69,10 +79,6 @@ module MailSlurpClient
|
|
69
79
|
# @return Array for valid properties with the reasons
|
70
80
|
def list_invalid_properties
|
71
81
|
invalid_properties = Array.new
|
72
|
-
if @inbox_id.nil?
|
73
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
74
|
-
end
|
75
|
-
|
76
82
|
if @recipient.nil?
|
77
83
|
invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
|
78
84
|
end
|
@@ -83,7 +89,6 @@ module MailSlurpClient
|
|
83
89
|
# Check to see if the all the properties in the model are valid
|
84
90
|
# @return true if the model is valid
|
85
91
|
def valid?
|
86
|
-
return false if @inbox_id.nil?
|
87
92
|
return false if @recipient.nil?
|
88
93
|
true
|
89
94
|
end
|
@@ -94,6 +99,7 @@ module MailSlurpClient
|
|
94
99
|
return true if self.equal?(o)
|
95
100
|
self.class == o.class &&
|
96
101
|
inbox_id == o.inbox_id &&
|
102
|
+
phone_id == o.phone_id &&
|
97
103
|
recipient == o.recipient
|
98
104
|
end
|
99
105
|
|
@@ -106,7 +112,7 @@ module MailSlurpClient
|
|
106
112
|
# Calculates hash code according to all attributes.
|
107
113
|
# @return [Integer] Hash code
|
108
114
|
def hash
|
109
|
-
[inbox_id, recipient].hash
|
115
|
+
[inbox_id, phone_id, recipient].hash
|
110
116
|
end
|
111
117
|
|
112
118
|
# Builds the object from hash
|
@@ -17,21 +17,21 @@ module MailSlurpClient
|
|
17
17
|
class TestNewInboxRulesetOptions
|
18
18
|
attr_accessor :inbox_ruleset_test_options
|
19
19
|
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :create_ruleset_options
|
21
21
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
23
|
def self.attribute_map
|
24
24
|
{
|
25
25
|
:'inbox_ruleset_test_options' => :'inboxRulesetTestOptions',
|
26
|
-
:'
|
26
|
+
:'create_ruleset_options' => :'createRulesetOptions'
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
30
30
|
# Attribute type mapping.
|
31
31
|
def self.openapi_types
|
32
32
|
{
|
33
|
-
:'inbox_ruleset_test_options' => :'
|
34
|
-
:'
|
33
|
+
:'inbox_ruleset_test_options' => :'RulesetTestOptions',
|
34
|
+
:'create_ruleset_options' => :'CreateRulesetOptions'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
@@ -60,8 +60,8 @@ module MailSlurpClient
|
|
60
60
|
self.inbox_ruleset_test_options = attributes[:'inbox_ruleset_test_options']
|
61
61
|
end
|
62
62
|
|
63
|
-
if attributes.key?(:'
|
64
|
-
self.
|
63
|
+
if attributes.key?(:'create_ruleset_options')
|
64
|
+
self.create_ruleset_options = attributes[:'create_ruleset_options']
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
@@ -73,8 +73,8 @@ module MailSlurpClient
|
|
73
73
|
invalid_properties.push('invalid value for "inbox_ruleset_test_options", inbox_ruleset_test_options cannot be nil.')
|
74
74
|
end
|
75
75
|
|
76
|
-
if @
|
77
|
-
invalid_properties.push('invalid value for "
|
76
|
+
if @create_ruleset_options.nil?
|
77
|
+
invalid_properties.push('invalid value for "create_ruleset_options", create_ruleset_options cannot be nil.')
|
78
78
|
end
|
79
79
|
|
80
80
|
invalid_properties
|
@@ -84,7 +84,7 @@ module MailSlurpClient
|
|
84
84
|
# @return true if the model is valid
|
85
85
|
def valid?
|
86
86
|
return false if @inbox_ruleset_test_options.nil?
|
87
|
-
return false if @
|
87
|
+
return false if @create_ruleset_options.nil?
|
88
88
|
true
|
89
89
|
end
|
90
90
|
|
@@ -94,7 +94,7 @@ module MailSlurpClient
|
|
94
94
|
return true if self.equal?(o)
|
95
95
|
self.class == o.class &&
|
96
96
|
inbox_ruleset_test_options == o.inbox_ruleset_test_options &&
|
97
|
-
|
97
|
+
create_ruleset_options == o.create_ruleset_options
|
98
98
|
end
|
99
99
|
|
100
100
|
# @see the `==` method
|
@@ -106,7 +106,7 @@ module MailSlurpClient
|
|
106
106
|
# Calculates hash code according to all attributes.
|
107
107
|
# @return [Integer] Hash code
|
108
108
|
def hash
|
109
|
-
[inbox_ruleset_test_options,
|
109
|
+
[inbox_ruleset_test_options, create_ruleset_options].hash
|
110
110
|
end
|
111
111
|
|
112
112
|
# Builds the object from hash
|
@@ -13,16 +13,19 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
# Test options for inbox ruleset receiving test
|
17
|
-
class
|
16
|
+
# Test options for inbox ruleset receiving test or phone number receiving test
|
17
|
+
class TestRulesetReceivingOptions
|
18
18
|
attr_accessor :inbox_id
|
19
19
|
|
20
|
+
attr_accessor :phone_id
|
21
|
+
|
20
22
|
attr_accessor :from_sender
|
21
23
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
25
|
def self.attribute_map
|
24
26
|
{
|
25
27
|
:'inbox_id' => :'inboxId',
|
28
|
+
:'phone_id' => :'phoneId',
|
26
29
|
:'from_sender' => :'fromSender'
|
27
30
|
}
|
28
31
|
end
|
@@ -31,6 +34,7 @@ module MailSlurpClient
|
|
31
34
|
def self.openapi_types
|
32
35
|
{
|
33
36
|
:'inbox_id' => :'String',
|
37
|
+
:'phone_id' => :'String',
|
34
38
|
:'from_sender' => :'String'
|
35
39
|
}
|
36
40
|
end
|
@@ -38,6 +42,8 @@ module MailSlurpClient
|
|
38
42
|
# List of attributes with nullable: true
|
39
43
|
def self.openapi_nullable
|
40
44
|
Set.new([
|
45
|
+
:'inbox_id',
|
46
|
+
:'phone_id',
|
41
47
|
])
|
42
48
|
end
|
43
49
|
|
@@ -45,13 +51,13 @@ module MailSlurpClient
|
|
45
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
46
52
|
def initialize(attributes = {})
|
47
53
|
if (!attributes.is_a?(Hash))
|
48
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::TestRulesetReceivingOptions` initialize method"
|
49
55
|
end
|
50
56
|
|
51
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
52
58
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
53
59
|
if (!self.class.attribute_map.key?(k.to_sym))
|
54
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::TestRulesetReceivingOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
55
61
|
end
|
56
62
|
h[k.to_sym] = v
|
57
63
|
}
|
@@ -60,6 +66,10 @@ module MailSlurpClient
|
|
60
66
|
self.inbox_id = attributes[:'inbox_id']
|
61
67
|
end
|
62
68
|
|
69
|
+
if attributes.key?(:'phone_id')
|
70
|
+
self.phone_id = attributes[:'phone_id']
|
71
|
+
end
|
72
|
+
|
63
73
|
if attributes.key?(:'from_sender')
|
64
74
|
self.from_sender = attributes[:'from_sender']
|
65
75
|
end
|
@@ -69,10 +79,6 @@ module MailSlurpClient
|
|
69
79
|
# @return Array for valid properties with the reasons
|
70
80
|
def list_invalid_properties
|
71
81
|
invalid_properties = Array.new
|
72
|
-
if @inbox_id.nil?
|
73
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
74
|
-
end
|
75
|
-
|
76
82
|
if @from_sender.nil?
|
77
83
|
invalid_properties.push('invalid value for "from_sender", from_sender cannot be nil.')
|
78
84
|
end
|
@@ -83,7 +89,6 @@ module MailSlurpClient
|
|
83
89
|
# Check to see if the all the properties in the model are valid
|
84
90
|
# @return true if the model is valid
|
85
91
|
def valid?
|
86
|
-
return false if @inbox_id.nil?
|
87
92
|
return false if @from_sender.nil?
|
88
93
|
true
|
89
94
|
end
|
@@ -94,6 +99,7 @@ module MailSlurpClient
|
|
94
99
|
return true if self.equal?(o)
|
95
100
|
self.class == o.class &&
|
96
101
|
inbox_id == o.inbox_id &&
|
102
|
+
phone_id == o.phone_id &&
|
97
103
|
from_sender == o.from_sender
|
98
104
|
end
|
99
105
|
|
@@ -106,7 +112,7 @@ module MailSlurpClient
|
|
106
112
|
# Calculates hash code according to all attributes.
|
107
113
|
# @return [Integer] Hash code
|
108
114
|
def hash
|
109
|
-
[inbox_id, from_sender].hash
|
115
|
+
[inbox_id, phone_id, from_sender].hash
|
110
116
|
end
|
111
117
|
|
112
118
|
# Builds the object from hash
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
class
|
16
|
+
class TestRulesetReceivingResult
|
17
17
|
attr_accessor :can_receive
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -40,13 +40,13 @@ module MailSlurpClient
|
|
40
40
|
# @param [Hash] attributes Model attributes in the form of hash
|
41
41
|
def initialize(attributes = {})
|
42
42
|
if (!attributes.is_a?(Hash))
|
43
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::
|
43
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::TestRulesetReceivingResult` initialize method"
|
44
44
|
end
|
45
45
|
|
46
46
|
# check to see if the attribute exists and convert string to symbol for hash key
|
47
47
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
48
48
|
if (!self.class.attribute_map.key?(k.to_sym))
|
49
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::
|
49
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::TestRulesetReceivingResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
50
50
|
end
|
51
51
|
h[k.to_sym] = v
|
52
52
|
}
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
class
|
16
|
+
class TestRulesetSendingResult
|
17
17
|
attr_accessor :can_send
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -40,13 +40,13 @@ module MailSlurpClient
|
|
40
40
|
# @param [Hash] attributes Model attributes in the form of hash
|
41
41
|
def initialize(attributes = {})
|
42
42
|
if (!attributes.is_a?(Hash))
|
43
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::
|
43
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::TestRulesetSendingResult` initialize method"
|
44
44
|
end
|
45
45
|
|
46
46
|
# check to see if the attribute exists and convert string to symbol for hash key
|
47
47
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
48
48
|
if (!self.class.attribute_map.key?(k.to_sym))
|
49
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::
|
49
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::TestRulesetSendingResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
50
50
|
end
|
51
51
|
h[k.to_sym] = v
|
52
52
|
}
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Tracking pixel data
|
17
17
|
class TrackingPixelProjection
|
18
|
-
attr_accessor :inbox_id
|
19
|
-
|
20
18
|
attr_accessor :user_id
|
21
19
|
|
22
20
|
attr_accessor :sent_email_id
|
23
21
|
|
22
|
+
attr_accessor :inbox_id
|
23
|
+
|
24
24
|
attr_accessor :created_at
|
25
25
|
|
26
26
|
attr_accessor :recipient
|
@@ -36,9 +36,9 @@ module MailSlurpClient
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
37
|
def self.attribute_map
|
38
38
|
{
|
39
|
-
:'inbox_id' => :'inboxId',
|
40
39
|
:'user_id' => :'userId',
|
41
40
|
:'sent_email_id' => :'sentEmailId',
|
41
|
+
:'inbox_id' => :'inboxId',
|
42
42
|
:'created_at' => :'createdAt',
|
43
43
|
:'recipient' => :'recipient',
|
44
44
|
:'seen' => :'seen',
|
@@ -51,9 +51,9 @@ module MailSlurpClient
|
|
51
51
|
# Attribute type mapping.
|
52
52
|
def self.openapi_types
|
53
53
|
{
|
54
|
-
:'inbox_id' => :'String',
|
55
54
|
:'user_id' => :'String',
|
56
55
|
:'sent_email_id' => :'String',
|
56
|
+
:'inbox_id' => :'String',
|
57
57
|
:'created_at' => :'DateTime',
|
58
58
|
:'recipient' => :'String',
|
59
59
|
:'seen' => :'Boolean',
|
@@ -84,10 +84,6 @@ module MailSlurpClient
|
|
84
84
|
h[k.to_sym] = v
|
85
85
|
}
|
86
86
|
|
87
|
-
if attributes.key?(:'inbox_id')
|
88
|
-
self.inbox_id = attributes[:'inbox_id']
|
89
|
-
end
|
90
|
-
|
91
87
|
if attributes.key?(:'user_id')
|
92
88
|
self.user_id = attributes[:'user_id']
|
93
89
|
end
|
@@ -96,6 +92,10 @@ module MailSlurpClient
|
|
96
92
|
self.sent_email_id = attributes[:'sent_email_id']
|
97
93
|
end
|
98
94
|
|
95
|
+
if attributes.key?(:'inbox_id')
|
96
|
+
self.inbox_id = attributes[:'inbox_id']
|
97
|
+
end
|
98
|
+
|
99
99
|
if attributes.key?(:'created_at')
|
100
100
|
self.created_at = attributes[:'created_at']
|
101
101
|
end
|
@@ -159,9 +159,9 @@ module MailSlurpClient
|
|
159
159
|
def ==(o)
|
160
160
|
return true if self.equal?(o)
|
161
161
|
self.class == o.class &&
|
162
|
-
inbox_id == o.inbox_id &&
|
163
162
|
user_id == o.user_id &&
|
164
163
|
sent_email_id == o.sent_email_id &&
|
164
|
+
inbox_id == o.inbox_id &&
|
165
165
|
created_at == o.created_at &&
|
166
166
|
recipient == o.recipient &&
|
167
167
|
seen == o.seen &&
|
@@ -179,7 +179,7 @@ module MailSlurpClient
|
|
179
179
|
# Calculates hash code according to all attributes.
|
180
180
|
# @return [Integer] Hash code
|
181
181
|
def hash
|
182
|
-
[
|
182
|
+
[user_id, sent_email_id, inbox_id, created_at, recipient, seen, seen_at, name, id].hash
|
183
183
|
end
|
184
184
|
|
185
185
|
# Builds the object from hash
|
@@ -21,20 +21,22 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :username
|
23
23
|
|
24
|
-
attr_accessor :inbox_id
|
25
|
-
|
26
24
|
attr_accessor :user_id
|
27
25
|
|
28
|
-
attr_accessor :
|
26
|
+
attr_accessor :inbox_id
|
29
27
|
|
30
|
-
attr_accessor :
|
28
|
+
attr_accessor :event_name
|
31
29
|
|
32
30
|
attr_accessor :created_at
|
33
31
|
|
34
|
-
attr_accessor :
|
32
|
+
attr_accessor :updated_at
|
35
33
|
|
36
34
|
attr_accessor :health_status
|
37
35
|
|
36
|
+
attr_accessor :ai_transformer_id
|
37
|
+
|
38
|
+
attr_accessor :ai_transform_id
|
39
|
+
|
38
40
|
attr_accessor :phone_number_id
|
39
41
|
|
40
42
|
attr_accessor :name
|
@@ -69,13 +71,14 @@ module MailSlurpClient
|
|
69
71
|
:'url' => :'url',
|
70
72
|
:'password' => :'password',
|
71
73
|
:'username' => :'username',
|
72
|
-
:'inbox_id' => :'inboxId',
|
73
74
|
:'user_id' => :'userId',
|
75
|
+
:'inbox_id' => :'inboxId',
|
74
76
|
:'event_name' => :'eventName',
|
75
|
-
:'updated_at' => :'updatedAt',
|
76
77
|
:'created_at' => :'createdAt',
|
77
|
-
:'
|
78
|
+
:'updated_at' => :'updatedAt',
|
78
79
|
:'health_status' => :'healthStatus',
|
80
|
+
:'ai_transformer_id' => :'aiTransformerId',
|
81
|
+
:'ai_transform_id' => :'aiTransformId',
|
79
82
|
:'phone_number_id' => :'phoneNumberId',
|
80
83
|
:'name' => :'name',
|
81
84
|
:'id' => :'id'
|
@@ -88,13 +91,14 @@ module MailSlurpClient
|
|
88
91
|
:'url' => :'String',
|
89
92
|
:'password' => :'String',
|
90
93
|
:'username' => :'String',
|
91
|
-
:'inbox_id' => :'String',
|
92
94
|
:'user_id' => :'String',
|
95
|
+
:'inbox_id' => :'String',
|
93
96
|
:'event_name' => :'String',
|
94
|
-
:'updated_at' => :'DateTime',
|
95
97
|
:'created_at' => :'DateTime',
|
96
|
-
:'
|
98
|
+
:'updated_at' => :'DateTime',
|
97
99
|
:'health_status' => :'String',
|
100
|
+
:'ai_transformer_id' => :'String',
|
101
|
+
:'ai_transform_id' => :'String',
|
98
102
|
:'phone_number_id' => :'String',
|
99
103
|
:'name' => :'String',
|
100
104
|
:'id' => :'String'
|
@@ -134,34 +138,38 @@ module MailSlurpClient
|
|
134
138
|
self.username = attributes[:'username']
|
135
139
|
end
|
136
140
|
|
137
|
-
if attributes.key?(:'inbox_id')
|
138
|
-
self.inbox_id = attributes[:'inbox_id']
|
139
|
-
end
|
140
|
-
|
141
141
|
if attributes.key?(:'user_id')
|
142
142
|
self.user_id = attributes[:'user_id']
|
143
143
|
end
|
144
144
|
|
145
|
-
if attributes.key?(:'
|
146
|
-
self.
|
145
|
+
if attributes.key?(:'inbox_id')
|
146
|
+
self.inbox_id = attributes[:'inbox_id']
|
147
147
|
end
|
148
148
|
|
149
|
-
if attributes.key?(:'
|
150
|
-
self.
|
149
|
+
if attributes.key?(:'event_name')
|
150
|
+
self.event_name = attributes[:'event_name']
|
151
151
|
end
|
152
152
|
|
153
153
|
if attributes.key?(:'created_at')
|
154
154
|
self.created_at = attributes[:'created_at']
|
155
155
|
end
|
156
156
|
|
157
|
-
if attributes.key?(:'
|
158
|
-
self.
|
157
|
+
if attributes.key?(:'updated_at')
|
158
|
+
self.updated_at = attributes[:'updated_at']
|
159
159
|
end
|
160
160
|
|
161
161
|
if attributes.key?(:'health_status')
|
162
162
|
self.health_status = attributes[:'health_status']
|
163
163
|
end
|
164
164
|
|
165
|
+
if attributes.key?(:'ai_transformer_id')
|
166
|
+
self.ai_transformer_id = attributes[:'ai_transformer_id']
|
167
|
+
end
|
168
|
+
|
169
|
+
if attributes.key?(:'ai_transform_id')
|
170
|
+
self.ai_transform_id = attributes[:'ai_transform_id']
|
171
|
+
end
|
172
|
+
|
165
173
|
if attributes.key?(:'phone_number_id')
|
166
174
|
self.phone_number_id = attributes[:'phone_number_id']
|
167
175
|
end
|
@@ -187,14 +195,14 @@ module MailSlurpClient
|
|
187
195
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
188
196
|
end
|
189
197
|
|
190
|
-
if @updated_at.nil?
|
191
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
192
|
-
end
|
193
|
-
|
194
198
|
if @created_at.nil?
|
195
199
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
196
200
|
end
|
197
201
|
|
202
|
+
if @updated_at.nil?
|
203
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
204
|
+
end
|
205
|
+
|
198
206
|
if @id.nil?
|
199
207
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
200
208
|
end
|
@@ -209,8 +217,8 @@ module MailSlurpClient
|
|
209
217
|
return false if @user_id.nil?
|
210
218
|
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_AI_TRANSFORM_RESULT", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS", "NEW_GUEST_USER"])
|
211
219
|
return false unless event_name_validator.valid?(@event_name)
|
212
|
-
return false if @updated_at.nil?
|
213
220
|
return false if @created_at.nil?
|
221
|
+
return false if @updated_at.nil?
|
214
222
|
health_status_validator = EnumAttributeValidator.new('String', ["HEALTHY", "UNHEALTHY"])
|
215
223
|
return false unless health_status_validator.valid?(@health_status)
|
216
224
|
return false if @id.nil?
|
@@ -245,13 +253,14 @@ module MailSlurpClient
|
|
245
253
|
url == o.url &&
|
246
254
|
password == o.password &&
|
247
255
|
username == o.username &&
|
248
|
-
inbox_id == o.inbox_id &&
|
249
256
|
user_id == o.user_id &&
|
257
|
+
inbox_id == o.inbox_id &&
|
250
258
|
event_name == o.event_name &&
|
251
|
-
updated_at == o.updated_at &&
|
252
259
|
created_at == o.created_at &&
|
253
|
-
|
260
|
+
updated_at == o.updated_at &&
|
254
261
|
health_status == o.health_status &&
|
262
|
+
ai_transformer_id == o.ai_transformer_id &&
|
263
|
+
ai_transform_id == o.ai_transform_id &&
|
255
264
|
phone_number_id == o.phone_number_id &&
|
256
265
|
name == o.name &&
|
257
266
|
id == o.id
|
@@ -266,7 +275,7 @@ module MailSlurpClient
|
|
266
275
|
# Calculates hash code according to all attributes.
|
267
276
|
# @return [Integer] Hash code
|
268
277
|
def hash
|
269
|
-
[url, password, username,
|
278
|
+
[url, password, username, user_id, inbox_id, event_name, created_at, updated_at, health_status, ai_transformer_id, ai_transform_id, phone_number_id, name, id].hash
|
270
279
|
end
|
271
280
|
|
272
281
|
# Builds the object from hash
|