mailslurp_client 11.8.11 → 11.8.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6867c00e2f8dad1441bea7df5b91bf82411c42690c5dc9634c45fade5b7c63d2
4
- data.tar.gz: 9b3421995e3525fb513a08251b76b570d43881b395598ccc81d3c5632f53b059
3
+ metadata.gz: 5b8ec12cc64af4e0e111987ef5ad6d616bda7ace8fe5a29cfaf8400648d8d85d
4
+ data.tar.gz: afad81746b2f74eb723436057d894e6bbac968c096b86bb69c0c724e281d5dfd
5
5
  SHA512:
6
- metadata.gz: 693859869f69748f75192d1aa90dc6af9ecb1cb6028258d51c4ac502057a8fc15dcddb8035f8aef493b743d15cc0948fb49260ecb5a15869f650b69548f1ca7c
7
- data.tar.gz: ac9e5bc9858733932da00dac7172893d49d8b9884c5d2522834fccec81a0ce5f99f3184308c56775f31df2dfd243a95afbc4fbda2ed1f8cb513a6884a2fb01d9
6
+ metadata.gz: 3669c564a13c965ee1263707f1158be474ee040edee3d24b3920729c2e2c7e3786079feb1cfcadbae370bee51d39568ed7f83539795f7ef99d872c07890ad59c
7
+ data.tar.gz: 7d2aeda1275ccd92171dff607afe798b19a3a548a20234377409a545abbb82e8ef0f798e5cfe55ac59c4be503bdc7786c55617e1298e0ea341080a070d4e86a6
@@ -24,12 +24,38 @@ module MailSlurpClient
24
24
  # The top level domain you wish to use with MailSlurp. Do not specify subdomain just the top level. So `test.com` covers all subdomains such as `mail.test.com`. Don't include a protocol such as `http://`. Once added you must complete the verification steps by adding the returned records to your domain.
25
25
  attr_accessor :domain
26
26
 
27
+ # Domain type to create. HTTP or SMTP domain. HTTP domain uses MailSlurps SES MX records. SMTP uses a custom SMTP server MX record
28
+ attr_accessor :domain_type
29
+
30
+ class EnumAttributeValidator
31
+ attr_reader :datatype
32
+ attr_reader :allowable_values
33
+
34
+ def initialize(datatype, allowable_values)
35
+ @allowable_values = allowable_values.map do |value|
36
+ case datatype.to_s
37
+ when /Integer/i
38
+ value.to_i
39
+ when /Float/i
40
+ value.to_f
41
+ else
42
+ value
43
+ end
44
+ end
45
+ end
46
+
47
+ def valid?(value)
48
+ !value || allowable_values.include?(value)
49
+ end
50
+ end
51
+
27
52
  # Attribute mapping from ruby-style variable name to JSON key.
28
53
  def self.attribute_map
29
54
  {
30
55
  :'created_catch_all_inbox' => :'createdCatchAllInbox',
31
56
  :'description' => :'description',
32
- :'domain' => :'domain'
57
+ :'domain' => :'domain',
58
+ :'domain_type' => :'domainType'
33
59
  }
34
60
  end
35
61
 
@@ -38,7 +64,8 @@ module MailSlurpClient
38
64
  {
39
65
  :'created_catch_all_inbox' => :'Boolean',
40
66
  :'description' => :'String',
41
- :'domain' => :'String'
67
+ :'domain' => :'String',
68
+ :'domain_type' => :'String'
42
69
  }
43
70
  end
44
71
 
@@ -74,6 +101,10 @@ module MailSlurpClient
74
101
  if attributes.key?(:'domain')
75
102
  self.domain = attributes[:'domain']
76
103
  end
104
+
105
+ if attributes.key?(:'domain_type')
106
+ self.domain_type = attributes[:'domain_type']
107
+ end
77
108
  end
78
109
 
79
110
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -86,9 +117,21 @@ module MailSlurpClient
86
117
  # Check to see if the all the properties in the model are valid
87
118
  # @return true if the model is valid
88
119
  def valid?
120
+ domain_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_DOMAIN"])
121
+ return false unless domain_type_validator.valid?(@domain_type)
89
122
  true
90
123
  end
91
124
 
125
+ # Custom attribute writer method checking allowed values (enum).
126
+ # @param [Object] domain_type Object to be assigned
127
+ def domain_type=(domain_type)
128
+ validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_DOMAIN"])
129
+ unless validator.valid?(domain_type)
130
+ fail ArgumentError, "invalid value for \"domain_type\", must be one of #{validator.allowable_values}."
131
+ end
132
+ @domain_type = domain_type
133
+ end
134
+
92
135
  # Checks equality by comparing each attribute.
93
136
  # @param [Object] Object to be compared
94
137
  def ==(o)
@@ -96,7 +139,8 @@ module MailSlurpClient
96
139
  self.class == o.class &&
97
140
  created_catch_all_inbox == o.created_catch_all_inbox &&
98
141
  description == o.description &&
99
- domain == o.domain
142
+ domain == o.domain &&
143
+ domain_type == o.domain_type
100
144
  end
101
145
 
102
146
  # @see the `==` method
@@ -108,7 +152,7 @@ module MailSlurpClient
108
152
  # Calculates hash code according to all attributes.
109
153
  # @return [Integer] Hash code
110
154
  def hash
111
- [created_catch_all_inbox, description, domain].hash
155
+ [created_catch_all_inbox, description, domain, domain_type].hash
112
156
  end
113
157
 
114
158
  # Builds the object from hash
@@ -33,6 +33,9 @@ module MailSlurpClient
33
33
  # Is the inbox favorited. Favouriting inboxes is typically done in the dashboard for quick access or filtering
34
34
  attr_accessor :favourite
35
35
 
36
+ # HTTP or SMTP inbox
37
+ attr_accessor :inbox_type
38
+
36
39
  # Optional name of the inbox. Displayed in the dashboard for easier search
37
40
  attr_accessor :name
38
41
 
@@ -42,6 +45,28 @@ module MailSlurpClient
42
45
  # Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field.
43
46
  attr_accessor :use_domain_pool
44
47
 
48
+ class EnumAttributeValidator
49
+ attr_reader :datatype
50
+ attr_reader :allowable_values
51
+
52
+ def initialize(datatype, allowable_values)
53
+ @allowable_values = allowable_values.map do |value|
54
+ case datatype.to_s
55
+ when /Integer/i
56
+ value.to_i
57
+ when /Float/i
58
+ value.to_f
59
+ else
60
+ value
61
+ end
62
+ end
63
+ end
64
+
65
+ def valid?(value)
66
+ !value || allowable_values.include?(value)
67
+ end
68
+ end
69
+
45
70
  # Attribute mapping from ruby-style variable name to JSON key.
46
71
  def self.attribute_map
47
72
  {
@@ -51,6 +76,7 @@ module MailSlurpClient
51
76
  :'expires_at' => :'expiresAt',
52
77
  :'expires_in' => :'expiresIn',
53
78
  :'favourite' => :'favourite',
79
+ :'inbox_type' => :'inboxType',
54
80
  :'name' => :'name',
55
81
  :'tags' => :'tags',
56
82
  :'use_domain_pool' => :'useDomainPool'
@@ -66,6 +92,7 @@ module MailSlurpClient
66
92
  :'expires_at' => :'DateTime',
67
93
  :'expires_in' => :'Integer',
68
94
  :'favourite' => :'Boolean',
95
+ :'inbox_type' => :'String',
69
96
  :'name' => :'String',
70
97
  :'tags' => :'Array<String>',
71
98
  :'use_domain_pool' => :'Boolean'
@@ -117,6 +144,10 @@ module MailSlurpClient
117
144
  self.favourite = attributes[:'favourite']
118
145
  end
119
146
 
147
+ if attributes.key?(:'inbox_type')
148
+ self.inbox_type = attributes[:'inbox_type']
149
+ end
150
+
120
151
  if attributes.key?(:'name')
121
152
  self.name = attributes[:'name']
122
153
  end
@@ -142,9 +173,21 @@ module MailSlurpClient
142
173
  # Check to see if the all the properties in the model are valid
143
174
  # @return true if the model is valid
144
175
  def valid?
176
+ inbox_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
177
+ return false unless inbox_type_validator.valid?(@inbox_type)
145
178
  true
146
179
  end
147
180
 
181
+ # Custom attribute writer method checking allowed values (enum).
182
+ # @param [Object] inbox_type Object to be assigned
183
+ def inbox_type=(inbox_type)
184
+ validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
185
+ unless validator.valid?(inbox_type)
186
+ fail ArgumentError, "invalid value for \"inbox_type\", must be one of #{validator.allowable_values}."
187
+ end
188
+ @inbox_type = inbox_type
189
+ end
190
+
148
191
  # Checks equality by comparing each attribute.
149
192
  # @param [Object] Object to be compared
150
193
  def ==(o)
@@ -156,6 +199,7 @@ module MailSlurpClient
156
199
  expires_at == o.expires_at &&
157
200
  expires_in == o.expires_in &&
158
201
  favourite == o.favourite &&
202
+ inbox_type == o.inbox_type &&
159
203
  name == o.name &&
160
204
  tags == o.tags &&
161
205
  use_domain_pool == o.use_domain_pool
@@ -170,7 +214,7 @@ module MailSlurpClient
170
214
  # Calculates hash code according to all attributes.
171
215
  # @return [Integer] Hash code
172
216
  def hash
173
- [allow_team_access, description, email_address, expires_at, expires_in, favourite, name, tags, use_domain_pool].hash
217
+ [allow_team_access, description, email_address, expires_at, expires_in, favourite, inbox_type, name, tags, use_domain_pool].hash
174
218
  end
175
219
 
176
220
  # Builds the object from hash
@@ -36,12 +36,12 @@ module MailSlurpClient
36
36
  # Who the email was sent from
37
37
  attr_accessor :from
38
38
 
39
- # Idempotent message ID. Store this ID locally or in a database to prevent message duplication.
40
- attr_accessor :id
41
-
42
39
  # Id of the inbox that receive an email
43
40
  attr_accessor :inbox_id
44
41
 
42
+ # Idempotent message ID. Store this ID locally or in a database to prevent message duplication.
43
+ attr_accessor :message_id
44
+
45
45
  # The subject line of the email message
46
46
  attr_accessor :subject
47
47
 
@@ -86,8 +86,8 @@ module MailSlurpClient
86
86
  :'email_id' => :'emailId',
87
87
  :'event_name' => :'eventName',
88
88
  :'from' => :'from',
89
- :'id' => :'id',
90
89
  :'inbox_id' => :'inboxId',
90
+ :'message_id' => :'messageId',
91
91
  :'subject' => :'subject',
92
92
  :'to' => :'to',
93
93
  :'webhook_id' => :'webhookId',
@@ -105,8 +105,8 @@ module MailSlurpClient
105
105
  :'email_id' => :'String',
106
106
  :'event_name' => :'String',
107
107
  :'from' => :'String',
108
- :'id' => :'String',
109
108
  :'inbox_id' => :'String',
109
+ :'message_id' => :'String',
110
110
  :'subject' => :'String',
111
111
  :'to' => :'Array<String>',
112
112
  :'webhook_id' => :'String',
@@ -169,14 +169,14 @@ module MailSlurpClient
169
169
  self.from = attributes[:'from']
170
170
  end
171
171
 
172
- if attributes.key?(:'id')
173
- self.id = attributes[:'id']
174
- end
175
-
176
172
  if attributes.key?(:'inbox_id')
177
173
  self.inbox_id = attributes[:'inbox_id']
178
174
  end
179
175
 
176
+ if attributes.key?(:'message_id')
177
+ self.message_id = attributes[:'message_id']
178
+ end
179
+
180
180
  if attributes.key?(:'subject')
181
181
  self.subject = attributes[:'subject']
182
182
  end
@@ -233,8 +233,8 @@ module MailSlurpClient
233
233
  email_id == o.email_id &&
234
234
  event_name == o.event_name &&
235
235
  from == o.from &&
236
- id == o.id &&
237
236
  inbox_id == o.inbox_id &&
237
+ message_id == o.message_id &&
238
238
  subject == o.subject &&
239
239
  to == o.to &&
240
240
  webhook_id == o.webhook_id &&
@@ -250,7 +250,7 @@ module MailSlurpClient
250
250
  # Calculates hash code according to all attributes.
251
251
  # @return [Integer] Hash code
252
252
  def hash
253
- [attachment_meta_datas, bcc, cc, created_at, email_id, event_name, from, id, inbox_id, subject, to, webhook_id, webhook_name].hash
253
+ [attachment_meta_datas, bcc, cc, created_at, email_id, event_name, from, inbox_id, message_id, subject, to, webhook_id, webhook_name].hash
254
254
  end
255
255
 
256
256
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '11.8.11'
14
+ VERSION = '11.8.12'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailslurp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.8.11
4
+ version: 11.8.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-29 00:00:00.000000000 Z
11
+ date: 2021-04-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Create emails addresses in Ruby then send and receive real emails and
14
14
  attachments. See https://www.mailslurp.com/docs/ruby/ for full Ruby documentation.