mailslurp_client 15.0.1 → 15.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/mailslurp_client/api/alias_controller_api.rb +59 -55
- data/lib/mailslurp_client/api/attachment_controller_api.rb +49 -60
- data/lib/mailslurp_client/api/bounce_controller_api.rb +26 -18
- data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +15 -15
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +128 -67
- data/lib/mailslurp_client/api/contact_controller_api.rb +22 -22
- data/lib/mailslurp_client/api/domain_controller_api.rb +32 -32
- data/lib/mailslurp_client/api/email_controller_api.rb +190 -116
- data/lib/mailslurp_client/api/expired_controller_api.rb +19 -19
- data/lib/mailslurp_client/api/export_controller_api.rb +38 -38
- data/lib/mailslurp_client/api/form_controller_api.rb +16 -18
- data/lib/mailslurp_client/api/group_controller_api.rb +52 -52
- data/lib/mailslurp_client/api/inbox_controller_api.rb +359 -225
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +33 -29
- data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +33 -29
- data/lib/mailslurp_client/api/mail_server_controller_api.rb +26 -26
- data/lib/mailslurp_client/api/missed_email_controller_api.rb +54 -42
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +157 -47
- data/lib/mailslurp_client/api/template_controller_api.rb +21 -21
- data/lib/mailslurp_client/api/tracking_controller_api.rb +16 -16
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +128 -88
- data/lib/mailslurp_client/api/webhook_controller_api.rb +102 -86
- data/lib/mailslurp_client/configuration.rb +4 -4
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +10 -25
- data/lib/mailslurp_client/models/alias_dto.rb +45 -56
- data/lib/mailslurp_client/models/alias_projection.rb +42 -72
- data/lib/mailslurp_client/models/attachment_entity.rb +34 -54
- data/lib/mailslurp_client/models/attachment_meta_data.rb +21 -21
- data/lib/mailslurp_client/models/attachment_projection.rb +36 -51
- data/lib/mailslurp_client/models/basic_auth_options.rb +0 -10
- data/lib/mailslurp_client/models/bounce_projection.rb +13 -23
- data/lib/mailslurp_client/models/bounce_recipient.rb +22 -42
- data/lib/mailslurp_client/models/bounced_email_dto.rb +56 -76
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +16 -31
- data/lib/mailslurp_client/models/bulk_send_email_options.rb +5 -0
- data/lib/mailslurp_client/models/condition_option.rb +2 -2
- data/lib/mailslurp_client/models/contact_dto.rb +53 -73
- data/lib/mailslurp_client/models/contact_projection.rb +42 -52
- data/lib/mailslurp_client/models/count_dto.rb +206 -0
- data/lib/mailslurp_client/models/create_contact_options.rb +42 -42
- data/lib/mailslurp_client/models/create_domain_options.rb +21 -16
- data/lib/mailslurp_client/models/create_group_options.rb +0 -5
- data/lib/mailslurp_client/models/create_inbox_dto.rb +58 -58
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +19 -14
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +23 -23
- data/lib/mailslurp_client/models/create_template_options.rb +0 -10
- data/lib/mailslurp_client/models/create_webhook_options.rb +18 -18
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +15 -25
- data/lib/mailslurp_client/models/dns_lookup_options.rb +24 -14
- data/lib/mailslurp_client/models/dns_lookup_result.rb +23 -42
- data/lib/mailslurp_client/models/dns_lookup_results.rb +0 -5
- data/lib/mailslurp_client/models/domain_dto.rb +59 -80
- data/lib/mailslurp_client/models/domain_name_record.rb +11 -30
- data/lib/mailslurp_client/models/domain_preview.rb +26 -50
- data/lib/mailslurp_client/models/email.rb +134 -135
- data/lib/mailslurp_client/models/email_analysis.rb +28 -28
- data/lib/mailslurp_client/models/email_content_match_result.rb +13 -23
- data/lib/mailslurp_client/models/email_links_result.rb +13 -23
- data/lib/mailslurp_client/models/email_preview.rb +47 -47
- data/lib/mailslurp_client/models/email_projection.rb +77 -97
- data/lib/mailslurp_client/models/email_recipients.rb +16 -15
- data/lib/mailslurp_client/models/email_text_lines_result.rb +13 -23
- data/lib/mailslurp_client/models/email_verification_result.rb +16 -36
- data/lib/mailslurp_client/models/expiration_defaults.rb +16 -26
- data/lib/mailslurp_client/models/expired_inbox_dto.rb +13 -28
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +22 -42
- data/lib/mailslurp_client/models/export_link.rb +0 -5
- data/lib/mailslurp_client/models/export_options.rb +1 -6
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +13 -23
- data/lib/mailslurp_client/models/forward_email_options.rb +36 -31
- data/lib/mailslurp_client/models/gravatar_url.rb +13 -23
- data/lib/mailslurp_client/models/group_contacts_dto.rb +13 -23
- data/lib/mailslurp_client/models/group_dto.rb +22 -37
- data/lib/mailslurp_client/models/group_projection.rb +22 -37
- data/lib/mailslurp_client/models/html_validation_result.rb +13 -14
- data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +47 -57
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +0 -5
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +31 -61
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +0 -5
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +13 -23
- data/lib/mailslurp_client/models/inbox_preview.rb +38 -38
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +43 -78
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +0 -5
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +13 -18
- data/lib/mailslurp_client/models/inline_object.rb +221 -0
- data/lib/mailslurp_client/models/ip_address_result.rb +0 -10
- data/lib/mailslurp_client/models/json_schema_dto.rb +0 -5
- data/lib/mailslurp_client/models/match_option.rb +7 -2
- data/lib/mailslurp_client/models/match_options.rb +16 -16
- data/lib/mailslurp_client/models/missed_email.rb +67 -102
- data/lib/mailslurp_client/models/missed_email_projection.rb +19 -29
- data/lib/mailslurp_client/models/name_server_record.rb +10 -30
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +44 -44
- data/lib/mailslurp_client/models/page_alias.rb +52 -52
- data/lib/mailslurp_client/models/page_attachment_entity.rb +52 -52
- data/lib/mailslurp_client/models/page_bounced_email.rb +52 -52
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +52 -52
- data/lib/mailslurp_client/models/page_contact_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_email_preview.rb +52 -52
- data/lib/mailslurp_client/models/page_email_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_group_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +52 -52
- data/lib/mailslurp_client/models/page_inbox_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +52 -52
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +49 -49
- data/lib/mailslurp_client/models/page_template_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_thread_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_webhook_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_webhook_result.rb +52 -52
- data/lib/mailslurp_client/models/pageable.rb +10 -10
- data/lib/mailslurp_client/models/raw_email_json.rb +0 -5
- data/lib/mailslurp_client/models/recipient.rb +13 -23
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +38 -37
- data/lib/mailslurp_client/models/reply_to_email_options.rb +51 -50
- data/lib/mailslurp_client/models/send_email_options.rb +107 -115
- data/lib/mailslurp_client/models/sender.rb +14 -23
- data/lib/mailslurp_client/models/sent_email_dto.rb +97 -102
- data/lib/mailslurp_client/models/sent_email_projection.rb +66 -105
- data/lib/mailslurp_client/models/simple_send_email_options.rb +24 -24
- data/lib/mailslurp_client/models/template_dto.rb +22 -47
- data/lib/mailslurp_client/models/template_projection.rb +16 -41
- data/lib/mailslurp_client/models/template_variable.rb +0 -10
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +0 -10
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +0 -10
- data/lib/mailslurp_client/models/thread_projection.rb +60 -95
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +43 -68
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +34 -54
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +19 -29
- data/lib/mailslurp_client/models/unread_count.rb +0 -5
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +0 -5
- data/lib/mailslurp_client/models/update_group_contacts.rb +0 -5
- data/lib/mailslurp_client/models/update_inbox_options.rb +26 -26
- data/lib/mailslurp_client/models/upload_attachment_options.rb +14 -14
- data/lib/mailslurp_client/models/validation_message.rb +1 -5
- data/lib/mailslurp_client/models/verify_email_address_options.rb +0 -5
- data/lib/mailslurp_client/models/wait_for_conditions.rb +48 -58
- data/lib/mailslurp_client/models/webhook_dto.rb +64 -69
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +42 -42
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +49 -49
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +43 -43
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +75 -95
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +84 -84
- data/lib/mailslurp_client/models/webhook_projection.rb +36 -61
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +13 -23
- data/lib/mailslurp_client/models/webhook_result_dto.rb +76 -126
- data/lib/mailslurp_client/models/webhook_test_request.rb +21 -36
- data/lib/mailslurp_client/models/webhook_test_response.rb +13 -13
- data/lib/mailslurp_client/models/webhook_test_result.rb +13 -23
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +3 -1
- metadata +5 -3
@@ -15,35 +15,35 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Meta data associated with an attachment. Attachments are stored as byte blobs so the meta data is stored separately.
|
17
17
|
class AttachmentMetaData
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# Name of attachment if given
|
19
|
+
attr_accessor :name
|
20
20
|
|
21
21
|
# Content type of attachment such as `image/png`
|
22
22
|
attr_accessor :content_type
|
23
23
|
|
24
|
+
# Size of attachment in bytes
|
25
|
+
attr_accessor :content_length
|
26
|
+
|
24
27
|
# ID of attachment
|
25
28
|
attr_accessor :id
|
26
29
|
|
27
|
-
# Name of attachment if given
|
28
|
-
attr_accessor :name
|
29
|
-
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
|
-
:'
|
33
|
+
:'name' => :'name',
|
34
34
|
:'content_type' => :'contentType',
|
35
|
-
:'
|
36
|
-
:'
|
35
|
+
:'content_length' => :'contentLength',
|
36
|
+
:'id' => :'id'
|
37
37
|
}
|
38
38
|
end
|
39
39
|
|
40
40
|
# Attribute type mapping.
|
41
41
|
def self.openapi_types
|
42
42
|
{
|
43
|
-
:'
|
43
|
+
:'name' => :'String',
|
44
44
|
:'content_type' => :'String',
|
45
|
-
:'
|
46
|
-
:'
|
45
|
+
:'content_length' => :'Integer',
|
46
|
+
:'id' => :'String'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -68,20 +68,20 @@ module MailSlurpClient
|
|
68
68
|
h[k.to_sym] = v
|
69
69
|
}
|
70
70
|
|
71
|
-
if attributes.key?(:'
|
72
|
-
self.
|
71
|
+
if attributes.key?(:'name')
|
72
|
+
self.name = attributes[:'name']
|
73
73
|
end
|
74
74
|
|
75
75
|
if attributes.key?(:'content_type')
|
76
76
|
self.content_type = attributes[:'content_type']
|
77
77
|
end
|
78
78
|
|
79
|
-
if attributes.key?(:'
|
80
|
-
self.
|
79
|
+
if attributes.key?(:'content_length')
|
80
|
+
self.content_length = attributes[:'content_length']
|
81
81
|
end
|
82
82
|
|
83
|
-
if attributes.key?(:'
|
84
|
-
self.
|
83
|
+
if attributes.key?(:'id')
|
84
|
+
self.id = attributes[:'id']
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
@@ -103,10 +103,10 @@ module MailSlurpClient
|
|
103
103
|
def ==(o)
|
104
104
|
return true if self.equal?(o)
|
105
105
|
self.class == o.class &&
|
106
|
-
|
106
|
+
name == o.name &&
|
107
107
|
content_type == o.content_type &&
|
108
|
-
|
109
|
-
|
108
|
+
content_length == o.content_length &&
|
109
|
+
id == o.id
|
110
110
|
end
|
111
111
|
|
112
112
|
# @see the `==` method
|
@@ -118,7 +118,7 @@ module MailSlurpClient
|
|
118
118
|
# Calculates hash code according to all attributes.
|
119
119
|
# @return [Integer] Hash code
|
120
120
|
def hash
|
121
|
-
[
|
121
|
+
[name, content_type, content_length, id].hash
|
122
122
|
end
|
123
123
|
|
124
124
|
# Builds the object from hash
|
@@ -14,46 +14,46 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class AttachmentProjection
|
17
|
-
|
18
|
-
attr_accessor :attachment_id
|
17
|
+
attr_accessor :name
|
19
18
|
|
20
19
|
# Content length of attachment in bytes
|
21
20
|
attr_accessor :content_length
|
22
21
|
|
23
|
-
|
24
|
-
attr_accessor :content_type
|
22
|
+
attr_accessor :updated_at
|
25
23
|
|
26
|
-
attr_accessor :
|
24
|
+
attr_accessor :user_id
|
27
25
|
|
28
|
-
|
26
|
+
# Attachment ID
|
27
|
+
attr_accessor :attachment_id
|
29
28
|
|
30
|
-
attr_accessor :
|
29
|
+
attr_accessor :created_at
|
31
30
|
|
32
|
-
|
31
|
+
# Content type of attachment.
|
32
|
+
attr_accessor :content_type
|
33
33
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
|
-
:'attachment_id' => :'attachmentId',
|
38
|
-
:'content_length' => :'contentLength',
|
39
|
-
:'content_type' => :'contentType',
|
40
|
-
:'created_at' => :'createdAt',
|
41
37
|
:'name' => :'name',
|
38
|
+
:'content_length' => :'contentLength',
|
42
39
|
:'updated_at' => :'updatedAt',
|
43
|
-
:'user_id' => :'userId'
|
40
|
+
:'user_id' => :'userId',
|
41
|
+
:'attachment_id' => :'attachmentId',
|
42
|
+
:'created_at' => :'createdAt',
|
43
|
+
:'content_type' => :'contentType'
|
44
44
|
}
|
45
45
|
end
|
46
46
|
|
47
47
|
# Attribute type mapping.
|
48
48
|
def self.openapi_types
|
49
49
|
{
|
50
|
-
:'attachment_id' => :'String',
|
51
|
-
:'content_length' => :'Integer',
|
52
|
-
:'content_type' => :'String',
|
53
|
-
:'created_at' => :'DateTime',
|
54
50
|
:'name' => :'String',
|
51
|
+
:'content_length' => :'Integer',
|
55
52
|
:'updated_at' => :'DateTime',
|
56
|
-
:'user_id' => :'String'
|
53
|
+
:'user_id' => :'String',
|
54
|
+
:'attachment_id' => :'String',
|
55
|
+
:'created_at' => :'DateTime',
|
56
|
+
:'content_type' => :'String'
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
@@ -78,32 +78,32 @@ module MailSlurpClient
|
|
78
78
|
h[k.to_sym] = v
|
79
79
|
}
|
80
80
|
|
81
|
-
if attributes.key?(:'
|
82
|
-
self.
|
81
|
+
if attributes.key?(:'name')
|
82
|
+
self.name = attributes[:'name']
|
83
83
|
end
|
84
84
|
|
85
85
|
if attributes.key?(:'content_length')
|
86
86
|
self.content_length = attributes[:'content_length']
|
87
87
|
end
|
88
88
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
self.
|
89
|
+
if attributes.key?(:'updated_at')
|
90
|
+
self.updated_at = attributes[:'updated_at']
|
91
91
|
end
|
92
92
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
93
|
+
if attributes.key?(:'user_id')
|
94
|
+
self.user_id = attributes[:'user_id']
|
95
95
|
end
|
96
96
|
|
97
|
-
if attributes.key?(:'
|
98
|
-
self.
|
97
|
+
if attributes.key?(:'attachment_id')
|
98
|
+
self.attachment_id = attributes[:'attachment_id']
|
99
99
|
end
|
100
100
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
101
|
+
if attributes.key?(:'created_at')
|
102
|
+
self.created_at = attributes[:'created_at']
|
103
103
|
end
|
104
104
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
105
|
+
if attributes.key?(:'content_type')
|
106
|
+
self.content_type = attributes[:'content_type']
|
107
107
|
end
|
108
108
|
end
|
109
109
|
|
@@ -111,27 +111,12 @@ module MailSlurpClient
|
|
111
111
|
# @return Array for valid properties with the reasons
|
112
112
|
def list_invalid_properties
|
113
113
|
invalid_properties = Array.new
|
114
|
-
if @created_at.nil?
|
115
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
116
|
-
end
|
117
|
-
|
118
|
-
if @updated_at.nil?
|
119
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
120
|
-
end
|
121
|
-
|
122
|
-
if @user_id.nil?
|
123
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
124
|
-
end
|
125
|
-
|
126
114
|
invalid_properties
|
127
115
|
end
|
128
116
|
|
129
117
|
# Check to see if the all the properties in the model are valid
|
130
118
|
# @return true if the model is valid
|
131
119
|
def valid?
|
132
|
-
return false if @created_at.nil?
|
133
|
-
return false if @updated_at.nil?
|
134
|
-
return false if @user_id.nil?
|
135
120
|
true
|
136
121
|
end
|
137
122
|
|
@@ -140,13 +125,13 @@ module MailSlurpClient
|
|
140
125
|
def ==(o)
|
141
126
|
return true if self.equal?(o)
|
142
127
|
self.class == o.class &&
|
143
|
-
attachment_id == o.attachment_id &&
|
144
|
-
content_length == o.content_length &&
|
145
|
-
content_type == o.content_type &&
|
146
|
-
created_at == o.created_at &&
|
147
128
|
name == o.name &&
|
129
|
+
content_length == o.content_length &&
|
148
130
|
updated_at == o.updated_at &&
|
149
|
-
user_id == o.user_id
|
131
|
+
user_id == o.user_id &&
|
132
|
+
attachment_id == o.attachment_id &&
|
133
|
+
created_at == o.created_at &&
|
134
|
+
content_type == o.content_type
|
150
135
|
end
|
151
136
|
|
152
137
|
# @see the `==` method
|
@@ -158,7 +143,7 @@ module MailSlurpClient
|
|
158
143
|
# Calculates hash code according to all attributes.
|
159
144
|
# @return [Integer] Hash code
|
160
145
|
def hash
|
161
|
-
[
|
146
|
+
[name, content_length, updated_at, user_id, attachment_id, created_at, content_type].hash
|
162
147
|
end
|
163
148
|
|
164
149
|
# Builds the object from hash
|
@@ -69,22 +69,12 @@ module MailSlurpClient
|
|
69
69
|
# @return Array for valid properties with the reasons
|
70
70
|
def list_invalid_properties
|
71
71
|
invalid_properties = Array.new
|
72
|
-
if @username.nil?
|
73
|
-
invalid_properties.push('invalid value for "username", username cannot be nil.')
|
74
|
-
end
|
75
|
-
|
76
|
-
if @password.nil?
|
77
|
-
invalid_properties.push('invalid value for "password", password cannot be nil.')
|
78
|
-
end
|
79
|
-
|
80
72
|
invalid_properties
|
81
73
|
end
|
82
74
|
|
83
75
|
# Check to see if the all the properties in the model are valid
|
84
76
|
# @return true if the model is valid
|
85
77
|
def valid?
|
86
|
-
return false if @username.nil?
|
87
|
-
return false if @password.nil?
|
88
78
|
true
|
89
79
|
end
|
90
80
|
|
@@ -14,27 +14,27 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class BounceProjection
|
17
|
-
attr_accessor :created_at
|
18
|
-
|
19
17
|
attr_accessor :id
|
20
18
|
|
21
19
|
attr_accessor :sender
|
22
20
|
|
21
|
+
attr_accessor :created_at
|
22
|
+
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
24
|
def self.attribute_map
|
25
25
|
{
|
26
|
-
:'created_at' => :'createdAt',
|
27
26
|
:'id' => :'id',
|
28
|
-
:'sender' => :'sender'
|
27
|
+
:'sender' => :'sender',
|
28
|
+
:'created_at' => :'createdAt'
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
32
32
|
# Attribute type mapping.
|
33
33
|
def self.openapi_types
|
34
34
|
{
|
35
|
-
:'created_at' => :'DateTime',
|
36
35
|
:'id' => :'String',
|
37
|
-
:'sender' => :'String'
|
36
|
+
:'sender' => :'String',
|
37
|
+
:'created_at' => :'DateTime'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -59,10 +59,6 @@ module MailSlurpClient
|
|
59
59
|
h[k.to_sym] = v
|
60
60
|
}
|
61
61
|
|
62
|
-
if attributes.key?(:'created_at')
|
63
|
-
self.created_at = attributes[:'created_at']
|
64
|
-
end
|
65
|
-
|
66
62
|
if attributes.key?(:'id')
|
67
63
|
self.id = attributes[:'id']
|
68
64
|
end
|
@@ -70,28 +66,22 @@ module MailSlurpClient
|
|
70
66
|
if attributes.key?(:'sender')
|
71
67
|
self.sender = attributes[:'sender']
|
72
68
|
end
|
69
|
+
|
70
|
+
if attributes.key?(:'created_at')
|
71
|
+
self.created_at = attributes[:'created_at']
|
72
|
+
end
|
73
73
|
end
|
74
74
|
|
75
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
76
76
|
# @return Array for valid properties with the reasons
|
77
77
|
def list_invalid_properties
|
78
78
|
invalid_properties = Array.new
|
79
|
-
if @created_at.nil?
|
80
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
81
|
-
end
|
82
|
-
|
83
|
-
if @sender.nil?
|
84
|
-
invalid_properties.push('invalid value for "sender", sender cannot be nil.')
|
85
|
-
end
|
86
|
-
|
87
79
|
invalid_properties
|
88
80
|
end
|
89
81
|
|
90
82
|
# Check to see if the all the properties in the model are valid
|
91
83
|
# @return true if the model is valid
|
92
84
|
def valid?
|
93
|
-
return false if @created_at.nil?
|
94
|
-
return false if @sender.nil?
|
95
85
|
true
|
96
86
|
end
|
97
87
|
|
@@ -100,9 +90,9 @@ module MailSlurpClient
|
|
100
90
|
def ==(o)
|
101
91
|
return true if self.equal?(o)
|
102
92
|
self.class == o.class &&
|
103
|
-
created_at == o.created_at &&
|
104
93
|
id == o.id &&
|
105
|
-
sender == o.sender
|
94
|
+
sender == o.sender &&
|
95
|
+
created_at == o.created_at
|
106
96
|
end
|
107
97
|
|
108
98
|
# @see the `==` method
|
@@ -114,7 +104,7 @@ module MailSlurpClient
|
|
114
104
|
# Calculates hash code according to all attributes.
|
115
105
|
# @return [Integer] Hash code
|
116
106
|
def hash
|
117
|
-
[
|
107
|
+
[id, sender, created_at].hash
|
118
108
|
end
|
119
109
|
|
120
110
|
# Builds the object from hash
|
@@ -14,35 +14,35 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class BounceRecipient
|
17
|
-
attr_accessor :created_at
|
18
|
-
|
19
17
|
attr_accessor :id
|
20
18
|
|
19
|
+
attr_accessor :user_id
|
20
|
+
|
21
21
|
attr_accessor :recipient
|
22
22
|
|
23
|
-
attr_accessor :
|
23
|
+
attr_accessor :created_at
|
24
24
|
|
25
|
-
attr_accessor :
|
25
|
+
attr_accessor :updated_at
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
28
|
def self.attribute_map
|
29
29
|
{
|
30
|
-
:'created_at' => :'createdAt',
|
31
30
|
:'id' => :'id',
|
31
|
+
:'user_id' => :'userId',
|
32
32
|
:'recipient' => :'recipient',
|
33
|
-
:'
|
34
|
-
:'
|
33
|
+
:'created_at' => :'createdAt',
|
34
|
+
:'updated_at' => :'updatedAt'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
38
38
|
# Attribute type mapping.
|
39
39
|
def self.openapi_types
|
40
40
|
{
|
41
|
-
:'created_at' => :'DateTime',
|
42
41
|
:'id' => :'String',
|
42
|
+
:'user_id' => :'String',
|
43
43
|
:'recipient' => :'String',
|
44
|
-
:'
|
45
|
-
:'
|
44
|
+
:'created_at' => :'DateTime',
|
45
|
+
:'updated_at' => :'DateTime'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -67,24 +67,24 @@ module MailSlurpClient
|
|
67
67
|
h[k.to_sym] = v
|
68
68
|
}
|
69
69
|
|
70
|
-
if attributes.key?(:'created_at')
|
71
|
-
self.created_at = attributes[:'created_at']
|
72
|
-
end
|
73
|
-
|
74
70
|
if attributes.key?(:'id')
|
75
71
|
self.id = attributes[:'id']
|
76
72
|
end
|
77
73
|
|
74
|
+
if attributes.key?(:'user_id')
|
75
|
+
self.user_id = attributes[:'user_id']
|
76
|
+
end
|
77
|
+
|
78
78
|
if attributes.key?(:'recipient')
|
79
79
|
self.recipient = attributes[:'recipient']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
self.
|
82
|
+
if attributes.key?(:'created_at')
|
83
|
+
self.created_at = attributes[:'created_at']
|
84
84
|
end
|
85
85
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
86
|
+
if attributes.key?(:'updated_at')
|
87
|
+
self.updated_at = attributes[:'updated_at']
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
@@ -92,32 +92,12 @@ module MailSlurpClient
|
|
92
92
|
# @return Array for valid properties with the reasons
|
93
93
|
def list_invalid_properties
|
94
94
|
invalid_properties = Array.new
|
95
|
-
if @created_at.nil?
|
96
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
97
|
-
end
|
98
|
-
|
99
|
-
if @recipient.nil?
|
100
|
-
invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
|
101
|
-
end
|
102
|
-
|
103
|
-
if @updated_at.nil?
|
104
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
105
|
-
end
|
106
|
-
|
107
|
-
if @user_id.nil?
|
108
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
109
|
-
end
|
110
|
-
|
111
95
|
invalid_properties
|
112
96
|
end
|
113
97
|
|
114
98
|
# Check to see if the all the properties in the model are valid
|
115
99
|
# @return true if the model is valid
|
116
100
|
def valid?
|
117
|
-
return false if @created_at.nil?
|
118
|
-
return false if @recipient.nil?
|
119
|
-
return false if @updated_at.nil?
|
120
|
-
return false if @user_id.nil?
|
121
101
|
true
|
122
102
|
end
|
123
103
|
|
@@ -126,11 +106,11 @@ module MailSlurpClient
|
|
126
106
|
def ==(o)
|
127
107
|
return true if self.equal?(o)
|
128
108
|
self.class == o.class &&
|
129
|
-
created_at == o.created_at &&
|
130
109
|
id == o.id &&
|
110
|
+
user_id == o.user_id &&
|
131
111
|
recipient == o.recipient &&
|
132
|
-
|
133
|
-
|
112
|
+
created_at == o.created_at &&
|
113
|
+
updated_at == o.updated_at
|
134
114
|
end
|
135
115
|
|
136
116
|
# @see the `==` method
|
@@ -142,7 +122,7 @@ module MailSlurpClient
|
|
142
122
|
# Calculates hash code according to all attributes.
|
143
123
|
# @return [Integer] Hash code
|
144
124
|
def hash
|
145
|
-
[
|
125
|
+
[id, user_id, recipient, created_at, updated_at].hash
|
146
126
|
end
|
147
127
|
|
148
128
|
# Builds the object from hash
|