mailslurp_client 11.15.0 → 12.1.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mailslurp_client.rb +2 -1
- data/lib/mailslurp_client/api/attachment_controller_api.rb +3 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +10 -10
- data/lib/mailslurp_client/api/inbox_controller_api.rb +17 -10
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +2 -2
- data/lib/mailslurp_client/models/{attachment_entity.rb → attachment_projection.rb} +7 -18
- data/lib/mailslurp_client/models/condition_option.rb +264 -0
- data/lib/mailslurp_client/models/create_domain_options.rb +2 -2
- data/lib/mailslurp_client/models/create_inbox_dto.rb +6 -6
- data/lib/mailslurp_client/models/domain_dto.rb +45 -1
- data/lib/mailslurp_client/models/domain_name_record.rb +1 -1
- data/lib/mailslurp_client/models/forward_email_options.rb +24 -4
- data/lib/mailslurp_client/models/inbox.rb +48 -4
- data/lib/mailslurp_client/models/inbox_projection.rb +44 -1
- data/lib/mailslurp_client/models/match_options.rb +15 -3
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +47 -3
- data/lib/mailslurp_client/models/page_attachment_entity.rb +1 -1
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +6 -0
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +14 -4
- data/lib/mailslurp_client/models/reply_to_email_options.rb +14 -4
- data/lib/mailslurp_client/models/send_email_options.rb +27 -7
- data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +1 -1
- data/lib/mailslurp_client/models/update_inbox_options.rb +2 -2
- data/lib/mailslurp_client/models/upload_attachment_options.rb +5 -0
- data/lib/mailslurp_client/models/wait_for_conditions.rb +1 -1
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +4 -3
@@ -13,14 +13,18 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
# Optional filter for matching emails based on fields. For instance filter results to only include emails whose `SUBJECT` value does `CONTAIN` given match value. An example payload would be `{ matches: [{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }] }`. If you wish to extract regex matches inside the email content see the `getEmailContentMatch` method in the EmailController.
|
16
|
+
# Optional filter for matching emails based on fields. For instance filter results to only include emails whose `SUBJECT` value does `CONTAIN` given match value. An example payload would be `{ matches: [{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }] }`. You can also pass conditions such as `HAS_ATTACHMENT`. If you wish to extract regex matches inside the email content see the `getEmailContentMatch` method in the EmailController.
|
17
17
|
class MatchOptions
|
18
|
-
#
|
18
|
+
# Zero or more conditions such as `{ condition: 'HAS_ATTACHMENTS', value: 'TRUE' }`. Note the values are the strings `TRUE|FALSE` not booleans.
|
19
|
+
attr_accessor :conditions
|
20
|
+
|
21
|
+
# Zero or more match options such as `{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }`. Options are additive so if one does not match the email is excluded from results
|
19
22
|
attr_accessor :matches
|
20
23
|
|
21
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
25
|
def self.attribute_map
|
23
26
|
{
|
27
|
+
:'conditions' => :'conditions',
|
24
28
|
:'matches' => :'matches'
|
25
29
|
}
|
26
30
|
end
|
@@ -28,6 +32,7 @@ module MailSlurpClient
|
|
28
32
|
# Attribute type mapping.
|
29
33
|
def self.openapi_types
|
30
34
|
{
|
35
|
+
:'conditions' => :'Array<ConditionOption>',
|
31
36
|
:'matches' => :'Array<MatchOption>'
|
32
37
|
}
|
33
38
|
end
|
@@ -53,6 +58,12 @@ module MailSlurpClient
|
|
53
58
|
h[k.to_sym] = v
|
54
59
|
}
|
55
60
|
|
61
|
+
if attributes.key?(:'conditions')
|
62
|
+
if (value = attributes[:'conditions']).is_a?(Array)
|
63
|
+
self.conditions = value
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
56
67
|
if attributes.key?(:'matches')
|
57
68
|
if (value = attributes[:'matches']).is_a?(Array)
|
58
69
|
self.matches = value
|
@@ -78,6 +89,7 @@ module MailSlurpClient
|
|
78
89
|
def ==(o)
|
79
90
|
return true if self.equal?(o)
|
80
91
|
self.class == o.class &&
|
92
|
+
conditions == o.conditions &&
|
81
93
|
matches == o.matches
|
82
94
|
end
|
83
95
|
|
@@ -90,7 +102,7 @@ module MailSlurpClient
|
|
90
102
|
# Calculates hash code according to all attributes.
|
91
103
|
# @return [Integer] Hash code
|
92
104
|
def hash
|
93
|
-
[matches].hash
|
105
|
+
[conditions, matches].hash
|
94
106
|
end
|
95
107
|
|
96
108
|
# Builds the object from hash
|
@@ -20,13 +20,16 @@ module MailSlurpClient
|
|
20
20
|
# The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID.
|
21
21
|
attr_accessor :email_address
|
22
22
|
|
23
|
-
# Is the inbox
|
23
|
+
# Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering
|
24
24
|
attr_accessor :favourite
|
25
25
|
|
26
26
|
# ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically.
|
27
27
|
attr_accessor :id
|
28
28
|
|
29
|
-
#
|
29
|
+
# Type of inbox - either HTTP (default) or SMTP. HTTP inboxes are great for testing. SMTP inboxes are processed by a custom SMTP mail server and are better for public facing inboxes that receive emails from Gmail and other large providers. If using a custom domain the domain type must match the inbox type. Use an SMTP domain for SMTP inboxes that includes an MX record pointing to `10 mx.mailslurp.com` for inbound messages.
|
30
|
+
attr_accessor :inbox_type
|
31
|
+
|
32
|
+
# Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search
|
30
33
|
attr_accessor :name
|
31
34
|
|
32
35
|
# Is the inbox readOnly for the caller. Read only means can not be deleted or modified. This flag is present when using team accounts and shared inboxes.
|
@@ -38,6 +41,28 @@ module MailSlurpClient
|
|
38
41
|
# Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it. See the team access guide at https://www.mailslurp.com/guides/team-email-account-sharing/
|
39
42
|
attr_accessor :team_access
|
40
43
|
|
44
|
+
class EnumAttributeValidator
|
45
|
+
attr_reader :datatype
|
46
|
+
attr_reader :allowable_values
|
47
|
+
|
48
|
+
def initialize(datatype, allowable_values)
|
49
|
+
@allowable_values = allowable_values.map do |value|
|
50
|
+
case datatype.to_s
|
51
|
+
when /Integer/i
|
52
|
+
value.to_i
|
53
|
+
when /Float/i
|
54
|
+
value.to_f
|
55
|
+
else
|
56
|
+
value
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
def valid?(value)
|
62
|
+
!value || allowable_values.include?(value)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
41
66
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
67
|
def self.attribute_map
|
43
68
|
{
|
@@ -45,6 +70,7 @@ module MailSlurpClient
|
|
45
70
|
:'email_address' => :'emailAddress',
|
46
71
|
:'favourite' => :'favourite',
|
47
72
|
:'id' => :'id',
|
73
|
+
:'inbox_type' => :'inboxType',
|
48
74
|
:'name' => :'name',
|
49
75
|
:'read_only' => :'readOnly',
|
50
76
|
:'tags' => :'tags',
|
@@ -59,6 +85,7 @@ module MailSlurpClient
|
|
59
85
|
:'email_address' => :'String',
|
60
86
|
:'favourite' => :'Boolean',
|
61
87
|
:'id' => :'String',
|
88
|
+
:'inbox_type' => :'String',
|
62
89
|
:'name' => :'String',
|
63
90
|
:'read_only' => :'Boolean',
|
64
91
|
:'tags' => :'Array<String>',
|
@@ -103,6 +130,10 @@ module MailSlurpClient
|
|
103
130
|
self.id = attributes[:'id']
|
104
131
|
end
|
105
132
|
|
133
|
+
if attributes.key?(:'inbox_type')
|
134
|
+
self.inbox_type = attributes[:'inbox_type']
|
135
|
+
end
|
136
|
+
|
106
137
|
if attributes.key?(:'name')
|
107
138
|
self.name = attributes[:'name']
|
108
139
|
end
|
@@ -132,9 +163,21 @@ module MailSlurpClient
|
|
132
163
|
# Check to see if the all the properties in the model are valid
|
133
164
|
# @return true if the model is valid
|
134
165
|
def valid?
|
166
|
+
inbox_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
|
167
|
+
return false unless inbox_type_validator.valid?(@inbox_type)
|
135
168
|
true
|
136
169
|
end
|
137
170
|
|
171
|
+
# Custom attribute writer method checking allowed values (enum).
|
172
|
+
# @param [Object] inbox_type Object to be assigned
|
173
|
+
def inbox_type=(inbox_type)
|
174
|
+
validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
|
175
|
+
unless validator.valid?(inbox_type)
|
176
|
+
fail ArgumentError, "invalid value for \"inbox_type\", must be one of #{validator.allowable_values}."
|
177
|
+
end
|
178
|
+
@inbox_type = inbox_type
|
179
|
+
end
|
180
|
+
|
138
181
|
# Checks equality by comparing each attribute.
|
139
182
|
# @param [Object] Object to be compared
|
140
183
|
def ==(o)
|
@@ -144,6 +187,7 @@ module MailSlurpClient
|
|
144
187
|
email_address == o.email_address &&
|
145
188
|
favourite == o.favourite &&
|
146
189
|
id == o.id &&
|
190
|
+
inbox_type == o.inbox_type &&
|
147
191
|
name == o.name &&
|
148
192
|
read_only == o.read_only &&
|
149
193
|
tags == o.tags &&
|
@@ -159,7 +203,7 @@ module MailSlurpClient
|
|
159
203
|
# Calculates hash code according to all attributes.
|
160
204
|
# @return [Integer] Hash code
|
161
205
|
def hash
|
162
|
-
[created_at, email_address, favourite, id, name, read_only, tags, team_access].hash
|
206
|
+
[created_at, email_address, favourite, id, inbox_type, name, read_only, tags, team_access].hash
|
163
207
|
end
|
164
208
|
|
165
209
|
# Builds the object from hash
|
@@ -15,6 +15,7 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Paginated sent email results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full sent email entity use the projection ID with individual method calls.
|
17
17
|
class PageSentEmailProjection
|
18
|
+
# Collection of items
|
18
19
|
attr_accessor :content
|
19
20
|
|
20
21
|
attr_accessor :empty
|
@@ -23,18 +24,23 @@ module MailSlurpClient
|
|
23
24
|
|
24
25
|
attr_accessor :last
|
25
26
|
|
27
|
+
# Page number starting at 0
|
26
28
|
attr_accessor :number
|
27
29
|
|
30
|
+
# Number of items returned
|
28
31
|
attr_accessor :number_of_elements
|
29
32
|
|
30
33
|
attr_accessor :pageable
|
31
34
|
|
35
|
+
# Size of page requested
|
32
36
|
attr_accessor :size
|
33
37
|
|
34
38
|
attr_accessor :sort
|
35
39
|
|
40
|
+
# Total number of items available for querying
|
36
41
|
attr_accessor :total_elements
|
37
42
|
|
43
|
+
# Total number of pages available
|
38
44
|
attr_accessor :total_pages
|
39
45
|
|
40
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -36,6 +36,9 @@ module MailSlurpClient
|
|
36
36
|
# Template variables if using a template
|
37
37
|
attr_accessor :template_variables
|
38
38
|
|
39
|
+
# Optionally use inbox name as display name for sender email address
|
40
|
+
attr_accessor :use_inbox_name
|
41
|
+
|
39
42
|
class EnumAttributeValidator
|
40
43
|
attr_reader :datatype
|
41
44
|
attr_reader :allowable_values
|
@@ -67,7 +70,8 @@ module MailSlurpClient
|
|
67
70
|
:'is_html' => :'isHTML',
|
68
71
|
:'send_strategy' => :'sendStrategy',
|
69
72
|
:'template' => :'template',
|
70
|
-
:'template_variables' => :'templateVariables'
|
73
|
+
:'template_variables' => :'templateVariables',
|
74
|
+
:'use_inbox_name' => :'useInboxName'
|
71
75
|
}
|
72
76
|
end
|
73
77
|
|
@@ -80,7 +84,8 @@ module MailSlurpClient
|
|
80
84
|
:'is_html' => :'Boolean',
|
81
85
|
:'send_strategy' => :'String',
|
82
86
|
:'template' => :'String',
|
83
|
-
:'template_variables' => :'Object'
|
87
|
+
:'template_variables' => :'Object',
|
88
|
+
:'use_inbox_name' => :'Boolean'
|
84
89
|
}
|
85
90
|
end
|
86
91
|
|
@@ -134,6 +139,10 @@ module MailSlurpClient
|
|
134
139
|
if attributes.key?(:'template_variables')
|
135
140
|
self.template_variables = attributes[:'template_variables']
|
136
141
|
end
|
142
|
+
|
143
|
+
if attributes.key?(:'use_inbox_name')
|
144
|
+
self.use_inbox_name = attributes[:'use_inbox_name']
|
145
|
+
end
|
137
146
|
end
|
138
147
|
|
139
148
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -172,7 +181,8 @@ module MailSlurpClient
|
|
172
181
|
is_html == o.is_html &&
|
173
182
|
send_strategy == o.send_strategy &&
|
174
183
|
template == o.template &&
|
175
|
-
template_variables == o.template_variables
|
184
|
+
template_variables == o.template_variables &&
|
185
|
+
use_inbox_name == o.use_inbox_name
|
176
186
|
end
|
177
187
|
|
178
188
|
# @see the `==` method
|
@@ -184,7 +194,7 @@ module MailSlurpClient
|
|
184
194
|
# Calculates hash code according to all attributes.
|
185
195
|
# @return [Integer] Hash code
|
186
196
|
def hash
|
187
|
-
[attachments, body, charset, is_html, send_strategy, template, template_variables].hash
|
197
|
+
[attachments, body, charset, is_html, send_strategy, template, template_variables, use_inbox_name].hash
|
188
198
|
end
|
189
199
|
|
190
200
|
# Builds the object from hash
|
@@ -42,6 +42,9 @@ module MailSlurpClient
|
|
42
42
|
# Template variables if using a template
|
43
43
|
attr_accessor :template_variables
|
44
44
|
|
45
|
+
# Optionally use inbox name as display name for sender email address
|
46
|
+
attr_accessor :use_inbox_name
|
47
|
+
|
45
48
|
class EnumAttributeValidator
|
46
49
|
attr_reader :datatype
|
47
50
|
attr_reader :allowable_values
|
@@ -75,7 +78,8 @@ module MailSlurpClient
|
|
75
78
|
:'reply_to' => :'replyTo',
|
76
79
|
:'send_strategy' => :'sendStrategy',
|
77
80
|
:'template' => :'template',
|
78
|
-
:'template_variables' => :'templateVariables'
|
81
|
+
:'template_variables' => :'templateVariables',
|
82
|
+
:'use_inbox_name' => :'useInboxName'
|
79
83
|
}
|
80
84
|
end
|
81
85
|
|
@@ -90,7 +94,8 @@ module MailSlurpClient
|
|
90
94
|
:'reply_to' => :'String',
|
91
95
|
:'send_strategy' => :'String',
|
92
96
|
:'template' => :'String',
|
93
|
-
:'template_variables' => :'Object'
|
97
|
+
:'template_variables' => :'Object',
|
98
|
+
:'use_inbox_name' => :'Boolean'
|
94
99
|
}
|
95
100
|
end
|
96
101
|
|
@@ -152,6 +157,10 @@ module MailSlurpClient
|
|
152
157
|
if attributes.key?(:'template_variables')
|
153
158
|
self.template_variables = attributes[:'template_variables']
|
154
159
|
end
|
160
|
+
|
161
|
+
if attributes.key?(:'use_inbox_name')
|
162
|
+
self.use_inbox_name = attributes[:'use_inbox_name']
|
163
|
+
end
|
155
164
|
end
|
156
165
|
|
157
166
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -192,7 +201,8 @@ module MailSlurpClient
|
|
192
201
|
reply_to == o.reply_to &&
|
193
202
|
send_strategy == o.send_strategy &&
|
194
203
|
template == o.template &&
|
195
|
-
template_variables == o.template_variables
|
204
|
+
template_variables == o.template_variables &&
|
205
|
+
use_inbox_name == o.use_inbox_name
|
196
206
|
end
|
197
207
|
|
198
208
|
# @see the `==` method
|
@@ -204,7 +214,7 @@ module MailSlurpClient
|
|
204
214
|
# Calculates hash code according to all attributes.
|
205
215
|
# @return [Integer] Hash code
|
206
216
|
def hash
|
207
|
-
[attachments, body, charset, from, is_html, reply_to, send_strategy, template, template_variables].hash
|
217
|
+
[attachments, body, charset, from, is_html, reply_to, send_strategy, template, template_variables, use_inbox_name].hash
|
208
218
|
end
|
209
219
|
|
210
220
|
# Builds the object from hash
|
@@ -15,7 +15,7 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Options for sending an email message from an inbox. You must provide one of: `to`, `toGroup`, or `toContacts` to send an email. All other parameters are optional.
|
17
17
|
class SendEmailOptions
|
18
|
-
# Optional list of attachment IDs to send with this email. You must first upload each attachment separately in order to obtain attachment IDs. This way you can reuse attachments with different emails once uploaded.
|
18
|
+
# Optional list of attachment IDs to send with this email. You must first upload each attachment separately via method call or dashboard in order to obtain attachment IDs. This way you can reuse attachments with different emails once uploaded. There are several ways to upload that support `multi-part form`, `base64 file encoding`, and octet stream binary uploads. See the `UploadController` for available methods.
|
19
19
|
attr_accessor :attachments
|
20
20
|
|
21
21
|
# Optional list of bcc destination email addresses
|
@@ -30,9 +30,12 @@ module MailSlurpClient
|
|
30
30
|
# Optional charset
|
31
31
|
attr_accessor :charset
|
32
32
|
|
33
|
-
# Optional from address. If
|
33
|
+
# Optional from address. Email address is RFC 5322 format and may include a display name and email in angle brackets (`my@address.com` or `My inbox <my@address.com>`). If no sender is set the source inbox address will be used for this field. If you set `useInboxName` to `true` the from field will include the inbox name as a display name: `inbox_name <inbox@address.com>`. For this to work use the name field when creating an inbox. Beware of potential spam penalties when setting the from field to an address not used by the inbox. Your emails may get blocked by services if you impersonate another address. To use a custom email addresses use a custom domain. You can create domains with the DomainController. The domain must be verified in the dashboard before it can be used.
|
34
34
|
attr_accessor :from
|
35
35
|
|
36
|
+
# Optional HTML flag to indicate that contents is HTML. Set's a `content-type: text/html` for email. (Deprecated: use `isHTML` instead.)
|
37
|
+
attr_accessor :html
|
38
|
+
|
36
39
|
# Optional HTML flag. If true the `content-type` of the email will be `text/html`. Set to true when sending HTML to ensure proper rending on email clients
|
37
40
|
attr_accessor :is_html
|
38
41
|
|
@@ -51,7 +54,7 @@ module MailSlurpClient
|
|
51
54
|
# Optional map of template variables. Will replace moustache syntax variables in subject and body or template with the associated values if found.
|
52
55
|
attr_accessor :template_variables
|
53
56
|
|
54
|
-
# List of destination email addresses. Even single recipients must be in array form. Maximum recipients per email depends on your plan. If you need to send many emails try using contacts or contact groups or use a non standard sendStrategy to ensure that spam filters are not triggered (many recipients in one email can affect your spam rating).
|
57
|
+
# List of destination email addresses. Each email address must be RFC 5322 format. Even single recipients must be in array form. Maximum recipients per email depends on your plan. If you need to send many emails try using contacts or contact groups or use a non standard sendStrategy to ensure that spam filters are not triggered (many recipients in one email can affect your spam rating). Be cautious when sending emails that your recipients exist. High bounce rates (meaning a high percentage of emails cannot be delivered because an address does not exist) can result in account freezing.
|
55
58
|
attr_accessor :to
|
56
59
|
|
57
60
|
# Optional list of contact IDs to send email to. Manage your contacts via the API or dashboard. When contacts are used the email is sent to each contact separately so they will not see other recipients.
|
@@ -60,6 +63,9 @@ module MailSlurpClient
|
|
60
63
|
# Optional contact group ID to send email to. You can create contacts and contact groups in the API or dashboard and use them for email campaigns. When contact groups are used the email is sent to each contact separately so they will not see other recipients
|
61
64
|
attr_accessor :to_group
|
62
65
|
|
66
|
+
# Use name of inbox as sender email address name. Will construct RFC 5322 email address with `Inbox name <inbox@address.com>` if the inbox has a name.
|
67
|
+
attr_accessor :use_inbox_name
|
68
|
+
|
63
69
|
class EnumAttributeValidator
|
64
70
|
attr_reader :datatype
|
65
71
|
attr_reader :allowable_values
|
@@ -91,6 +97,7 @@ module MailSlurpClient
|
|
91
97
|
:'cc' => :'cc',
|
92
98
|
:'charset' => :'charset',
|
93
99
|
:'from' => :'from',
|
100
|
+
:'html' => :'html',
|
94
101
|
:'is_html' => :'isHTML',
|
95
102
|
:'reply_to' => :'replyTo',
|
96
103
|
:'send_strategy' => :'sendStrategy',
|
@@ -99,7 +106,8 @@ module MailSlurpClient
|
|
99
106
|
:'template_variables' => :'templateVariables',
|
100
107
|
:'to' => :'to',
|
101
108
|
:'to_contacts' => :'toContacts',
|
102
|
-
:'to_group' => :'toGroup'
|
109
|
+
:'to_group' => :'toGroup',
|
110
|
+
:'use_inbox_name' => :'useInboxName'
|
103
111
|
}
|
104
112
|
end
|
105
113
|
|
@@ -112,6 +120,7 @@ module MailSlurpClient
|
|
112
120
|
:'cc' => :'Array<String>',
|
113
121
|
:'charset' => :'String',
|
114
122
|
:'from' => :'String',
|
123
|
+
:'html' => :'Boolean',
|
115
124
|
:'is_html' => :'Boolean',
|
116
125
|
:'reply_to' => :'String',
|
117
126
|
:'send_strategy' => :'String',
|
@@ -120,7 +129,8 @@ module MailSlurpClient
|
|
120
129
|
:'template_variables' => :'Object',
|
121
130
|
:'to' => :'Array<String>',
|
122
131
|
:'to_contacts' => :'Array<String>',
|
123
|
-
:'to_group' => :'String'
|
132
|
+
:'to_group' => :'String',
|
133
|
+
:'use_inbox_name' => :'Boolean'
|
124
134
|
}
|
125
135
|
end
|
126
136
|
|
@@ -175,6 +185,10 @@ module MailSlurpClient
|
|
175
185
|
self.from = attributes[:'from']
|
176
186
|
end
|
177
187
|
|
188
|
+
if attributes.key?(:'html')
|
189
|
+
self.html = attributes[:'html']
|
190
|
+
end
|
191
|
+
|
178
192
|
if attributes.key?(:'is_html')
|
179
193
|
self.is_html = attributes[:'is_html']
|
180
194
|
end
|
@@ -214,6 +228,10 @@ module MailSlurpClient
|
|
214
228
|
if attributes.key?(:'to_group')
|
215
229
|
self.to_group = attributes[:'to_group']
|
216
230
|
end
|
231
|
+
|
232
|
+
if attributes.key?(:'use_inbox_name')
|
233
|
+
self.use_inbox_name = attributes[:'use_inbox_name']
|
234
|
+
end
|
217
235
|
end
|
218
236
|
|
219
237
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -252,6 +270,7 @@ module MailSlurpClient
|
|
252
270
|
cc == o.cc &&
|
253
271
|
charset == o.charset &&
|
254
272
|
from == o.from &&
|
273
|
+
html == o.html &&
|
255
274
|
is_html == o.is_html &&
|
256
275
|
reply_to == o.reply_to &&
|
257
276
|
send_strategy == o.send_strategy &&
|
@@ -260,7 +279,8 @@ module MailSlurpClient
|
|
260
279
|
template_variables == o.template_variables &&
|
261
280
|
to == o.to &&
|
262
281
|
to_contacts == o.to_contacts &&
|
263
|
-
to_group == o.to_group
|
282
|
+
to_group == o.to_group &&
|
283
|
+
use_inbox_name == o.use_inbox_name
|
264
284
|
end
|
265
285
|
|
266
286
|
# @see the `==` method
|
@@ -272,7 +292,7 @@ module MailSlurpClient
|
|
272
292
|
# Calculates hash code according to all attributes.
|
273
293
|
# @return [Integer] Hash code
|
274
294
|
def hash
|
275
|
-
[attachments, bcc, body, cc, charset, from, is_html, reply_to, send_strategy, subject, template, template_variables, to, to_contacts, to_group].hash
|
295
|
+
[attachments, bcc, body, cc, charset, from, html, is_html, reply_to, send_strategy, subject, template, template_variables, to, to_contacts, to_group, use_inbox_name].hash
|
276
296
|
end
|
277
297
|
|
278
298
|
# Builds the object from hash
|