mailslurp_client 16.2.0 → 16.2.3
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/ai_controller_api.rb +193 -79
- data/lib/mailslurp_client/api/attachment_controller_api.rb +6 -3
- data/lib/mailslurp_client/api/email_controller_api.rb +3 -0
- data/lib/mailslurp_client/api/form_controller_api.rb +8 -9
- data/lib/mailslurp_client/api/inbox_controller_api.rb +28 -2
- data/lib/mailslurp_client/api/mfa_controller_api.rb +88 -13
- data/lib/mailslurp_client/api/sms_controller_api.rb +3 -0
- data/lib/mailslurp_client/api/webhook_controller_api.rb +63 -9
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +2 -2
- data/lib/mailslurp_client/models/{ai_tranform_create_options.rb → ai_transform_create_options.rb} +31 -7
- data/lib/mailslurp_client/models/ai_transform_dto.rb +1 -0
- data/lib/mailslurp_client/models/ai_transform_mapping_dto.rb +18 -9
- data/lib/mailslurp_client/models/ai_transform_mapping_projection.rb +15 -6
- data/lib/mailslurp_client/models/ai_transform_projection.rb +16 -1
- data/lib/mailslurp_client/models/ai_transform_result_dto.rb +5 -1
- data/lib/mailslurp_client/models/{ai_transform_result_projection.rb → ai_transform_result_projection_dto.rb} +56 -53
- data/lib/mailslurp_client/models/alias_thread_projection.rb +11 -11
- data/lib/mailslurp_client/models/bounce_projection.rb +11 -11
- data/lib/mailslurp_client/models/conditional_structured_content_result.rb +221 -0
- data/lib/mailslurp_client/models/create_ai_transformer_mapping_options.rb +5 -10
- data/lib/mailslurp_client/models/create_domain_options.rb +19 -0
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +19 -0
- data/lib/mailslurp_client/models/create_inbox_replier_options.rb +19 -0
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +2 -2
- data/lib/mailslurp_client/models/create_totp_device_base32_secret_key_options.rb +306 -0
- data/lib/mailslurp_client/models/create_totp_device_custom_options.rb +306 -0
- data/lib/mailslurp_client/models/create_totp_device_otp_auth_url_options.rb +35 -0
- data/lib/mailslurp_client/models/create_webhook_options.rb +2 -2
- data/lib/mailslurp_client/models/describe_domain_options.rb +19 -0
- data/lib/mailslurp_client/models/dns_lookup_options.rb +19 -0
- data/lib/mailslurp_client/models/email.rb +13 -13
- data/lib/mailslurp_client/models/email_projection.rb +18 -18
- data/lib/mailslurp_client/models/email_thread_projection.rb +17 -17
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +10 -10
- data/lib/mailslurp_client/models/expiration_defaults.rb +1 -0
- data/lib/mailslurp_client/models/fake_email_dto.rb +1 -0
- data/lib/mailslurp_client/models/generate_structured_content_attachment_options.rb +1 -0
- data/lib/mailslurp_client/models/generate_structured_content_email_options.rb +1 -0
- data/lib/mailslurp_client/models/generate_structured_content_sms_options.rb +1 -0
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +26 -4
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +2 -2
- data/lib/mailslurp_client/models/inline_object.rb +58 -12
- data/lib/mailslurp_client/models/inline_object1.rb +211 -0
- data/lib/mailslurp_client/models/invoke_transformer_options.rb +329 -0
- data/lib/mailslurp_client/models/match_option.rb +19 -0
- data/lib/mailslurp_client/models/missed_email_dto.rb +1 -0
- data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +1 -1
- data/lib/mailslurp_client/models/pageable_object.rb +10 -10
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +19 -19
- data/lib/mailslurp_client/models/phone_message_thread_projection.rb +15 -25
- data/lib/mailslurp_client/models/sent_email_projection.rb +38 -53
- data/lib/mailslurp_client/models/sms_match_option.rb +19 -0
- data/lib/mailslurp_client/models/sms_preview.rb +4 -0
- data/lib/mailslurp_client/models/structured_output_schema.rb +12 -9
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/update_inbox_replier_options.rb +19 -0
- data/lib/mailslurp_client/models/upload_attachment_options.rb +19 -0
- data/lib/mailslurp_client/models/webhook_bounce_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_delivery_status_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_dto.rb +2 -2
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_new_ai_transform_result_payload.rb +389 -0
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_new_sms_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_projection.rb +2 -2
- data/lib/mailslurp_client/models/webhook_result_dto.rb +2 -2
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +8 -2
- metadata +10 -4
@@ -14,6 +14,8 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class AITransformProjection
|
17
|
+
attr_accessor :created_at
|
18
|
+
|
17
19
|
attr_accessor :conditions
|
18
20
|
|
19
21
|
attr_accessor :instructions
|
@@ -27,6 +29,7 @@ module MailSlurpClient
|
|
27
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
30
|
def self.attribute_map
|
29
31
|
{
|
32
|
+
:'created_at' => :'createdAt',
|
30
33
|
:'conditions' => :'conditions',
|
31
34
|
:'instructions' => :'instructions',
|
32
35
|
:'output_schema' => :'outputSchema',
|
@@ -38,6 +41,7 @@ module MailSlurpClient
|
|
38
41
|
# Attribute type mapping.
|
39
42
|
def self.openapi_types
|
40
43
|
{
|
44
|
+
:'created_at' => :'DateTime',
|
41
45
|
:'conditions' => :'Array<String>',
|
42
46
|
:'instructions' => :'Array<String>',
|
43
47
|
:'output_schema' => :'StructuredOutputSchema',
|
@@ -49,6 +53,7 @@ module MailSlurpClient
|
|
49
53
|
# List of attributes with nullable: true
|
50
54
|
def self.openapi_nullable
|
51
55
|
Set.new([
|
56
|
+
:'output_schema',
|
52
57
|
])
|
53
58
|
end
|
54
59
|
|
@@ -67,6 +72,10 @@ module MailSlurpClient
|
|
67
72
|
h[k.to_sym] = v
|
68
73
|
}
|
69
74
|
|
75
|
+
if attributes.key?(:'created_at')
|
76
|
+
self.created_at = attributes[:'created_at']
|
77
|
+
end
|
78
|
+
|
70
79
|
if attributes.key?(:'conditions')
|
71
80
|
if (value = attributes[:'conditions']).is_a?(Array)
|
72
81
|
self.conditions = value
|
@@ -96,6 +105,10 @@ module MailSlurpClient
|
|
96
105
|
# @return Array for valid properties with the reasons
|
97
106
|
def list_invalid_properties
|
98
107
|
invalid_properties = Array.new
|
108
|
+
if @created_at.nil?
|
109
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
110
|
+
end
|
111
|
+
|
99
112
|
if @id.nil?
|
100
113
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
101
114
|
end
|
@@ -106,6 +119,7 @@ module MailSlurpClient
|
|
106
119
|
# Check to see if the all the properties in the model are valid
|
107
120
|
# @return true if the model is valid
|
108
121
|
def valid?
|
122
|
+
return false if @created_at.nil?
|
109
123
|
return false if @id.nil?
|
110
124
|
true
|
111
125
|
end
|
@@ -115,6 +129,7 @@ module MailSlurpClient
|
|
115
129
|
def ==(o)
|
116
130
|
return true if self.equal?(o)
|
117
131
|
self.class == o.class &&
|
132
|
+
created_at == o.created_at &&
|
118
133
|
conditions == o.conditions &&
|
119
134
|
instructions == o.instructions &&
|
120
135
|
output_schema == o.output_schema &&
|
@@ -131,7 +146,7 @@ module MailSlurpClient
|
|
131
146
|
# Calculates hash code according to all attributes.
|
132
147
|
# @return [Integer] Hash code
|
133
148
|
def hash
|
134
|
-
[conditions, instructions, output_schema, name, id].hash
|
149
|
+
[created_at, conditions, instructions, output_schema, name, id].hash
|
135
150
|
end
|
136
151
|
|
137
152
|
# Builds the object from hash
|
@@ -87,7 +87,6 @@ module MailSlurpClient
|
|
87
87
|
# List of attributes with nullable: true
|
88
88
|
def self.openapi_nullable
|
89
89
|
Set.new([
|
90
|
-
:'value',
|
91
90
|
])
|
92
91
|
end
|
93
92
|
|
@@ -163,6 +162,10 @@ module MailSlurpClient
|
|
163
162
|
invalid_properties.push('invalid value for "ai_transform_mapping_id", ai_transform_mapping_id cannot be nil.')
|
164
163
|
end
|
165
164
|
|
165
|
+
if @value.nil?
|
166
|
+
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
167
|
+
end
|
168
|
+
|
166
169
|
if @entity_id.nil?
|
167
170
|
invalid_properties.push('invalid value for "entity_id", entity_id cannot be nil.')
|
168
171
|
end
|
@@ -189,6 +192,7 @@ module MailSlurpClient
|
|
189
192
|
return false if @user_id.nil?
|
190
193
|
return false if @ai_transform_id.nil?
|
191
194
|
return false if @ai_transform_mapping_id.nil?
|
195
|
+
return false if @value.nil?
|
192
196
|
return false if @entity_id.nil?
|
193
197
|
return false if @entity_type.nil?
|
194
198
|
entity_type_validator = EnumAttributeValidator.new('String', ["INBOX", "PHONE"])
|
@@ -13,20 +13,22 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
class
|
17
|
-
attr_accessor :
|
16
|
+
class AITransformResultProjectionDto
|
17
|
+
attr_accessor :id
|
18
18
|
|
19
19
|
attr_accessor :ai_transform_id
|
20
20
|
|
21
|
-
attr_accessor :entity_id
|
22
|
-
|
23
|
-
attr_accessor :entity_type
|
24
|
-
|
25
21
|
attr_accessor :ai_transform_mapping_id
|
26
22
|
|
23
|
+
attr_accessor :user_id
|
24
|
+
|
27
25
|
attr_accessor :value
|
28
26
|
|
29
|
-
attr_accessor :
|
27
|
+
attr_accessor :entity_id
|
28
|
+
|
29
|
+
attr_accessor :entity_type
|
30
|
+
|
31
|
+
attr_accessor :created_at
|
30
32
|
|
31
33
|
class EnumAttributeValidator
|
32
34
|
attr_reader :datatype
|
@@ -53,32 +55,38 @@ module MailSlurpClient
|
|
53
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
54
56
|
def self.attribute_map
|
55
57
|
{
|
56
|
-
:'
|
58
|
+
:'id' => :'id',
|
57
59
|
:'ai_transform_id' => :'aiTransformId',
|
58
|
-
:'entity_id' => :'entityId',
|
59
|
-
:'entity_type' => :'entityType',
|
60
60
|
:'ai_transform_mapping_id' => :'aiTransformMappingId',
|
61
|
+
:'user_id' => :'userId',
|
61
62
|
:'value' => :'value',
|
62
|
-
:'
|
63
|
+
:'entity_id' => :'entityId',
|
64
|
+
:'entity_type' => :'entityType',
|
65
|
+
:'created_at' => :'createdAt'
|
63
66
|
}
|
64
67
|
end
|
65
68
|
|
66
69
|
# Attribute type mapping.
|
67
70
|
def self.openapi_types
|
68
71
|
{
|
69
|
-
:'
|
72
|
+
:'id' => :'String',
|
70
73
|
:'ai_transform_id' => :'String',
|
74
|
+
:'ai_transform_mapping_id' => :'String',
|
75
|
+
:'user_id' => :'String',
|
76
|
+
:'value' => :'Object',
|
71
77
|
:'entity_id' => :'String',
|
72
78
|
:'entity_type' => :'String',
|
73
|
-
:'
|
74
|
-
:'value' => :'String',
|
75
|
-
:'id' => :'String'
|
79
|
+
:'created_at' => :'DateTime'
|
76
80
|
}
|
77
81
|
end
|
78
82
|
|
79
83
|
# List of attributes with nullable: true
|
80
84
|
def self.openapi_nullable
|
81
85
|
Set.new([
|
86
|
+
:'ai_transform_mapping_id',
|
87
|
+
:'value',
|
88
|
+
:'entity_id',
|
89
|
+
:'entity_type',
|
82
90
|
])
|
83
91
|
end
|
84
92
|
|
@@ -86,43 +94,47 @@ module MailSlurpClient
|
|
86
94
|
# @param [Hash] attributes Model attributes in the form of hash
|
87
95
|
def initialize(attributes = {})
|
88
96
|
if (!attributes.is_a?(Hash))
|
89
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::
|
97
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::AITransformResultProjectionDto` initialize method"
|
90
98
|
end
|
91
99
|
|
92
100
|
# check to see if the attribute exists and convert string to symbol for hash key
|
93
101
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
94
102
|
if (!self.class.attribute_map.key?(k.to_sym))
|
95
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::
|
103
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::AITransformResultProjectionDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
96
104
|
end
|
97
105
|
h[k.to_sym] = v
|
98
106
|
}
|
99
107
|
|
100
|
-
if attributes.key?(:'
|
101
|
-
self.
|
108
|
+
if attributes.key?(:'id')
|
109
|
+
self.id = attributes[:'id']
|
102
110
|
end
|
103
111
|
|
104
112
|
if attributes.key?(:'ai_transform_id')
|
105
113
|
self.ai_transform_id = attributes[:'ai_transform_id']
|
106
114
|
end
|
107
115
|
|
108
|
-
if attributes.key?(:'entity_id')
|
109
|
-
self.entity_id = attributes[:'entity_id']
|
110
|
-
end
|
111
|
-
|
112
|
-
if attributes.key?(:'entity_type')
|
113
|
-
self.entity_type = attributes[:'entity_type']
|
114
|
-
end
|
115
|
-
|
116
116
|
if attributes.key?(:'ai_transform_mapping_id')
|
117
117
|
self.ai_transform_mapping_id = attributes[:'ai_transform_mapping_id']
|
118
118
|
end
|
119
119
|
|
120
|
+
if attributes.key?(:'user_id')
|
121
|
+
self.user_id = attributes[:'user_id']
|
122
|
+
end
|
123
|
+
|
120
124
|
if attributes.key?(:'value')
|
121
125
|
self.value = attributes[:'value']
|
122
126
|
end
|
123
127
|
|
124
|
-
if attributes.key?(:'
|
125
|
-
self.
|
128
|
+
if attributes.key?(:'entity_id')
|
129
|
+
self.entity_id = attributes[:'entity_id']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.key?(:'entity_type')
|
133
|
+
self.entity_type = attributes[:'entity_type']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'created_at')
|
137
|
+
self.created_at = attributes[:'created_at']
|
126
138
|
end
|
127
139
|
end
|
128
140
|
|
@@ -130,28 +142,20 @@ module MailSlurpClient
|
|
130
142
|
# @return Array for valid properties with the reasons
|
131
143
|
def list_invalid_properties
|
132
144
|
invalid_properties = Array.new
|
133
|
-
if @
|
134
|
-
invalid_properties.push('invalid value for "
|
145
|
+
if @id.nil?
|
146
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
135
147
|
end
|
136
148
|
|
137
149
|
if @ai_transform_id.nil?
|
138
150
|
invalid_properties.push('invalid value for "ai_transform_id", ai_transform_id cannot be nil.')
|
139
151
|
end
|
140
152
|
|
141
|
-
if @
|
142
|
-
invalid_properties.push('invalid value for "
|
143
|
-
end
|
144
|
-
|
145
|
-
if @entity_type.nil?
|
146
|
-
invalid_properties.push('invalid value for "entity_type", entity_type cannot be nil.')
|
153
|
+
if @user_id.nil?
|
154
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
147
155
|
end
|
148
156
|
|
149
|
-
if @
|
150
|
-
invalid_properties.push('invalid value for "
|
151
|
-
end
|
152
|
-
|
153
|
-
if @id.nil?
|
154
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
157
|
+
if @created_at.nil?
|
158
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
155
159
|
end
|
156
160
|
|
157
161
|
invalid_properties
|
@@ -160,14 +164,12 @@ module MailSlurpClient
|
|
160
164
|
# Check to see if the all the properties in the model are valid
|
161
165
|
# @return true if the model is valid
|
162
166
|
def valid?
|
163
|
-
return false if @
|
167
|
+
return false if @id.nil?
|
164
168
|
return false if @ai_transform_id.nil?
|
165
|
-
return false if @
|
166
|
-
return false if @entity_type.nil?
|
169
|
+
return false if @user_id.nil?
|
167
170
|
entity_type_validator = EnumAttributeValidator.new('String', ["INBOX", "PHONE"])
|
168
171
|
return false unless entity_type_validator.valid?(@entity_type)
|
169
|
-
return false if @
|
170
|
-
return false if @id.nil?
|
172
|
+
return false if @created_at.nil?
|
171
173
|
true
|
172
174
|
end
|
173
175
|
|
@@ -186,13 +188,14 @@ module MailSlurpClient
|
|
186
188
|
def ==(o)
|
187
189
|
return true if self.equal?(o)
|
188
190
|
self.class == o.class &&
|
189
|
-
|
191
|
+
id == o.id &&
|
190
192
|
ai_transform_id == o.ai_transform_id &&
|
191
|
-
entity_id == o.entity_id &&
|
192
|
-
entity_type == o.entity_type &&
|
193
193
|
ai_transform_mapping_id == o.ai_transform_mapping_id &&
|
194
|
+
user_id == o.user_id &&
|
194
195
|
value == o.value &&
|
195
|
-
|
196
|
+
entity_id == o.entity_id &&
|
197
|
+
entity_type == o.entity_type &&
|
198
|
+
created_at == o.created_at
|
196
199
|
end
|
197
200
|
|
198
201
|
# @see the `==` method
|
@@ -204,7 +207,7 @@ module MailSlurpClient
|
|
204
207
|
# Calculates hash code according to all attributes.
|
205
208
|
# @return [Integer] Hash code
|
206
209
|
def hash
|
207
|
-
[
|
210
|
+
[id, ai_transform_id, ai_transform_mapping_id, user_id, value, entity_id, entity_type, created_at].hash
|
208
211
|
end
|
209
212
|
|
210
213
|
# Builds the object from hash
|
@@ -15,9 +15,6 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# A thread is a message thread created for a message received by an alias
|
17
17
|
class AliasThreadProjection
|
18
|
-
# Thread subject
|
19
|
-
attr_accessor :subject
|
20
|
-
|
21
18
|
# Inbox ID
|
22
19
|
attr_accessor :inbox_id
|
23
20
|
|
@@ -42,6 +39,9 @@ module MailSlurpClient
|
|
42
39
|
# Alias ID
|
43
40
|
attr_accessor :alias_id
|
44
41
|
|
42
|
+
# Thread subject
|
43
|
+
attr_accessor :subject
|
44
|
+
|
45
45
|
# Name of thread
|
46
46
|
attr_accessor :name
|
47
47
|
|
@@ -51,7 +51,6 @@ module MailSlurpClient
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
52
|
def self.attribute_map
|
53
53
|
{
|
54
|
-
:'subject' => :'subject',
|
55
54
|
:'inbox_id' => :'inboxId',
|
56
55
|
:'user_id' => :'userId',
|
57
56
|
:'updated_at' => :'updatedAt',
|
@@ -60,6 +59,7 @@ module MailSlurpClient
|
|
60
59
|
:'cc' => :'cc',
|
61
60
|
:'bcc' => :'bcc',
|
62
61
|
:'alias_id' => :'aliasId',
|
62
|
+
:'subject' => :'subject',
|
63
63
|
:'name' => :'name',
|
64
64
|
:'id' => :'id'
|
65
65
|
}
|
@@ -68,7 +68,6 @@ module MailSlurpClient
|
|
68
68
|
# Attribute type mapping.
|
69
69
|
def self.openapi_types
|
70
70
|
{
|
71
|
-
:'subject' => :'String',
|
72
71
|
:'inbox_id' => :'String',
|
73
72
|
:'user_id' => :'String',
|
74
73
|
:'updated_at' => :'DateTime',
|
@@ -77,6 +76,7 @@ module MailSlurpClient
|
|
77
76
|
:'cc' => :'Array<String>',
|
78
77
|
:'bcc' => :'Array<String>',
|
79
78
|
:'alias_id' => :'String',
|
79
|
+
:'subject' => :'String',
|
80
80
|
:'name' => :'String',
|
81
81
|
:'id' => :'String'
|
82
82
|
}
|
@@ -103,10 +103,6 @@ module MailSlurpClient
|
|
103
103
|
h[k.to_sym] = v
|
104
104
|
}
|
105
105
|
|
106
|
-
if attributes.key?(:'subject')
|
107
|
-
self.subject = attributes[:'subject']
|
108
|
-
end
|
109
|
-
|
110
106
|
if attributes.key?(:'inbox_id')
|
111
107
|
self.inbox_id = attributes[:'inbox_id']
|
112
108
|
end
|
@@ -145,6 +141,10 @@ module MailSlurpClient
|
|
145
141
|
self.alias_id = attributes[:'alias_id']
|
146
142
|
end
|
147
143
|
|
144
|
+
if attributes.key?(:'subject')
|
145
|
+
self.subject = attributes[:'subject']
|
146
|
+
end
|
147
|
+
|
148
148
|
if attributes.key?(:'name')
|
149
149
|
self.name = attributes[:'name']
|
150
150
|
end
|
@@ -207,7 +207,6 @@ module MailSlurpClient
|
|
207
207
|
def ==(o)
|
208
208
|
return true if self.equal?(o)
|
209
209
|
self.class == o.class &&
|
210
|
-
subject == o.subject &&
|
211
210
|
inbox_id == o.inbox_id &&
|
212
211
|
user_id == o.user_id &&
|
213
212
|
updated_at == o.updated_at &&
|
@@ -216,6 +215,7 @@ module MailSlurpClient
|
|
216
215
|
cc == o.cc &&
|
217
216
|
bcc == o.bcc &&
|
218
217
|
alias_id == o.alias_id &&
|
218
|
+
subject == o.subject &&
|
219
219
|
name == o.name &&
|
220
220
|
id == o.id
|
221
221
|
end
|
@@ -229,7 +229,7 @@ module MailSlurpClient
|
|
229
229
|
# Calculates hash code according to all attributes.
|
230
230
|
# @return [Integer] Hash code
|
231
231
|
def hash
|
232
|
-
[
|
232
|
+
[inbox_id, user_id, updated_at, created_at, to, cc, bcc, alias_id, subject, name, id].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|
@@ -15,8 +15,6 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Bounced email event
|
17
17
|
class BounceProjection
|
18
|
-
attr_accessor :subject
|
19
|
-
|
20
18
|
attr_accessor :sender
|
21
19
|
|
22
20
|
attr_accessor :created_at
|
@@ -25,16 +23,18 @@ module MailSlurpClient
|
|
25
23
|
|
26
24
|
attr_accessor :bounce_mta
|
27
25
|
|
26
|
+
attr_accessor :subject
|
27
|
+
|
28
28
|
attr_accessor :id
|
29
29
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
|
-
:'subject' => :'subject',
|
34
33
|
:'sender' => :'sender',
|
35
34
|
:'created_at' => :'createdAt',
|
36
35
|
:'bounce_type' => :'bounceType',
|
37
36
|
:'bounce_mta' => :'bounceMta',
|
37
|
+
:'subject' => :'subject',
|
38
38
|
:'id' => :'id'
|
39
39
|
}
|
40
40
|
end
|
@@ -42,11 +42,11 @@ module MailSlurpClient
|
|
42
42
|
# Attribute type mapping.
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
|
-
:'subject' => :'String',
|
46
45
|
:'sender' => :'String',
|
47
46
|
:'created_at' => :'DateTime',
|
48
47
|
:'bounce_type' => :'String',
|
49
48
|
:'bounce_mta' => :'String',
|
49
|
+
:'subject' => :'String',
|
50
50
|
:'id' => :'String'
|
51
51
|
}
|
52
52
|
end
|
@@ -54,9 +54,9 @@ module MailSlurpClient
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
-
:'subject',
|
58
57
|
:'bounce_type',
|
59
58
|
:'bounce_mta',
|
59
|
+
:'subject',
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,10 +75,6 @@ module MailSlurpClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'subject')
|
79
|
-
self.subject = attributes[:'subject']
|
80
|
-
end
|
81
|
-
|
82
78
|
if attributes.key?(:'sender')
|
83
79
|
self.sender = attributes[:'sender']
|
84
80
|
end
|
@@ -95,6 +91,10 @@ module MailSlurpClient
|
|
95
91
|
self.bounce_mta = attributes[:'bounce_mta']
|
96
92
|
end
|
97
93
|
|
94
|
+
if attributes.key?(:'subject')
|
95
|
+
self.subject = attributes[:'subject']
|
96
|
+
end
|
97
|
+
|
98
98
|
if attributes.key?(:'id')
|
99
99
|
self.id = attributes[:'id']
|
100
100
|
end
|
@@ -128,11 +128,11 @@ module MailSlurpClient
|
|
128
128
|
def ==(o)
|
129
129
|
return true if self.equal?(o)
|
130
130
|
self.class == o.class &&
|
131
|
-
subject == o.subject &&
|
132
131
|
sender == o.sender &&
|
133
132
|
created_at == o.created_at &&
|
134
133
|
bounce_type == o.bounce_type &&
|
135
134
|
bounce_mta == o.bounce_mta &&
|
135
|
+
subject == o.subject &&
|
136
136
|
id == o.id
|
137
137
|
end
|
138
138
|
|
@@ -145,7 +145,7 @@ module MailSlurpClient
|
|
145
145
|
# Calculates hash code according to all attributes.
|
146
146
|
# @return [Integer] Hash code
|
147
147
|
def hash
|
148
|
-
[
|
148
|
+
[sender, created_at, bounce_type, bounce_mta, subject, id].hash
|
149
149
|
end
|
150
150
|
|
151
151
|
# Builds the object from hash
|