mailslurp_client 15.1.1 → 15.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47799fa1e044663717fa8f259a9b3cb77fb67dab946d725e306c8200ae561fb8
4
- data.tar.gz: 503ff1c2b18f9d96f2c15d2442afe689e79217626903c82dc3bccae6bbfae453
3
+ metadata.gz: fdc6646421d77b3ec9540b8c9ff578cb5e8cad63c4fc3d087d0f51e8ecd725ad
4
+ data.tar.gz: e3138ed5372a53c09599352cef3c60886c27dff54ab78f3e9f3a32ff8fdad54c
5
5
  SHA512:
6
- metadata.gz: 57963a33c0562b3a9f3626b5a61f529f5e3f533f160f4ab9d26b95cb73555f17d22040eab39d4fc246ea45b0fa9326678869cb2264979adbde4c0a325acc7c61
7
- data.tar.gz: 01c213b8392850b88f393138ff9a0f68bbebf35ea3665c72f814d534da238027726b39b5d323e2270e4c5cc37a183049c807b5d3d903dbd14cff91566d37e41f
6
+ metadata.gz: 25d3f213616e923b684479b28ed82abe1c1c4efad411e1082e8cb262ec6540ced154496e22719531902f3105b5c02c350390a0f7074bc3ff25326b9aa4ee731d
7
+ data.tar.gz: 3db5df0694425d5b7c2ae2781d6a41f0e69d06d926dceff80bd3c650bbf1f7f40c7565f7a126e1edf57a12f507ec3ad70fcc632802699c3b93d03d02069d2cda
@@ -385,8 +385,8 @@ module MailSlurpClient
385
385
  # @option opts [DateTime] :since Filter by created at after the given timestamp
386
386
  # @option opts [DateTime] :before Filter by created at before the given timestamp
387
387
  # @return [PageAttachmentEntity]
388
- def get_attachments1(opts = {})
389
- data, _status_code, _headers = get_attachments1_with_http_info(opts)
388
+ def get_attachments(opts = {})
389
+ data, _status_code, _headers = get_attachments_with_http_info(opts)
390
390
  data
391
391
  end
392
392
 
@@ -400,9 +400,9 @@ module MailSlurpClient
400
400
  # @option opts [DateTime] :since Filter by created at after the given timestamp
401
401
  # @option opts [DateTime] :before Filter by created at before the given timestamp
402
402
  # @return [Array<(PageAttachmentEntity, Integer, Hash)>] PageAttachmentEntity data, response status code and response headers
403
- def get_attachments1_with_http_info(opts = {})
403
+ def get_attachments_with_http_info(opts = {})
404
404
  if @api_client.config.debugging
405
- @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.get_attachments1 ...'
405
+ @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.get_attachments ...'
406
406
  end
407
407
  allowable_values = ["ASC", "DESC"]
408
408
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
@@ -448,7 +448,7 @@ module MailSlurpClient
448
448
 
449
449
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
450
450
  if @api_client.config.debugging
451
- @api_client.config.logger.debug "API called: AttachmentControllerApi#get_attachments1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
451
+ @api_client.config.logger.debug "API called: AttachmentControllerApi#get_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
452
452
  end
453
453
  return data, status_code, headers
454
454
  end
@@ -61,7 +61,7 @@ module MailSlurpClient
61
61
  fail ArgumentError, "invalid value for \"inbox_type\", must be one of #{allowable_values}"
62
62
  end
63
63
  # resource path
64
- local_var_path = '/createInbox'
64
+ local_var_path = '/newEmailAddress'
65
65
 
66
66
  # query parameters
67
67
  query_params = opts[:query_params] || {}
@@ -123,8 +123,8 @@ module MailSlurpClient
123
123
  # @option opts [Array<String>] :tags
124
124
  # @option opts [Boolean] :favourite
125
125
  # @return [InboxDto]
126
- def create_new_email_address1(opts = {})
127
- data, _status_code, _headers = create_new_email_address1_with_http_info(opts)
126
+ def create_random_inbox(opts = {})
127
+ data, _status_code, _headers = create_random_inbox_with_http_info(opts)
128
128
  data
129
129
  end
130
130
 
@@ -142,16 +142,16 @@ module MailSlurpClient
142
142
  # @option opts [Array<String>] :tags
143
143
  # @option opts [Boolean] :favourite
144
144
  # @return [Array<(InboxDto, Integer, Hash)>] InboxDto data, response status code and response headers
145
- def create_new_email_address1_with_http_info(opts = {})
145
+ def create_random_inbox_with_http_info(opts = {})
146
146
  if @api_client.config.debugging
147
- @api_client.config.logger.debug 'Calling API: CommonActionsControllerApi.create_new_email_address1 ...'
147
+ @api_client.config.logger.debug 'Calling API: CommonActionsControllerApi.create_random_inbox ...'
148
148
  end
149
149
  allowable_values = ["HTTP_INBOX", "SMTP_INBOX"]
150
150
  if @api_client.config.client_side_validation && opts[:'inbox_type'] && !allowable_values.include?(opts[:'inbox_type'])
151
151
  fail ArgumentError, "invalid value for \"inbox_type\", must be one of #{allowable_values}"
152
152
  end
153
153
  # resource path
154
- local_var_path = '/newEmailAddress'
154
+ local_var_path = '/createInbox'
155
155
 
156
156
  # query parameters
157
157
  query_params = opts[:query_params] || {}
@@ -194,7 +194,7 @@ module MailSlurpClient
194
194
 
195
195
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
196
196
  if @api_client.config.debugging
197
- @api_client.config.logger.debug "API called: CommonActionsControllerApi#create_new_email_address1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
197
+ @api_client.config.logger.debug "API called: CommonActionsControllerApi#create_random_inbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
198
198
  end
199
199
  return data, status_code, headers
200
200
  end
@@ -534,34 +534,37 @@ module MailSlurpClient
534
534
  return data, status_code, headers
535
535
  end
536
536
 
537
- # Get all email attachment metadata. Metadata includes name and size of attachments.
538
- # Returns an array of attachment metadata such as name and content-type for a given email if present.
539
- # @param email_id [String] ID of email
537
+ # Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController.
538
+ # Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints
539
+ # @param email_id [String]
540
540
  # @param [Hash] opts the optional parameters
541
- # @return [Array<AttachmentMetaData>]
542
- def get_attachments(email_id, opts = {})
543
- data, _status_code, _headers = get_attachments_with_http_info(email_id, opts)
541
+ # @option opts [Boolean] :decode Decode email body quoted-printable encoding to plain text. SMTP servers often encode text using quoted-printable format (for instance &#x60;&#x3D;D7&#x60;). This can be a pain for testing (default to false)
542
+ # @return [Email]
543
+ def get_email(email_id, opts = {})
544
+ data, _status_code, _headers = get_email_with_http_info(email_id, opts)
544
545
  data
545
546
  end
546
547
 
547
- # Get all email attachment metadata. Metadata includes name and size of attachments.
548
- # Returns an array of attachment metadata such as name and content-type for a given email if present.
549
- # @param email_id [String] ID of email
548
+ # Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController.
549
+ # Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints
550
+ # @param email_id [String]
550
551
  # @param [Hash] opts the optional parameters
551
- # @return [Array<(Array<AttachmentMetaData>, Integer, Hash)>] Array<AttachmentMetaData> data, response status code and response headers
552
- def get_attachments_with_http_info(email_id, opts = {})
552
+ # @option opts [Boolean] :decode Decode email body quoted-printable encoding to plain text. SMTP servers often encode text using quoted-printable format (for instance &#x60;&#x3D;D7&#x60;). This can be a pain for testing
553
+ # @return [Array<(Email, Integer, Hash)>] Email data, response status code and response headers
554
+ def get_email_with_http_info(email_id, opts = {})
553
555
  if @api_client.config.debugging
554
- @api_client.config.logger.debug 'Calling API: EmailControllerApi.get_attachments ...'
556
+ @api_client.config.logger.debug 'Calling API: EmailControllerApi.get_email ...'
555
557
  end
556
558
  # verify the required parameter 'email_id' is set
557
559
  if @api_client.config.client_side_validation && email_id.nil?
558
- fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.get_attachments"
560
+ fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.get_email"
559
561
  end
560
562
  # resource path
561
- local_var_path = '/emails/{emailId}/attachments'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
563
+ local_var_path = '/emails/{emailId}'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
562
564
 
563
565
  # query parameters
564
566
  query_params = opts[:query_params] || {}
567
+ query_params[:'decode'] = opts[:'decode'] if !opts[:'decode'].nil?
565
568
 
566
569
  # header parameters
567
570
  header_params = opts[:header_params] || {}
@@ -575,7 +578,7 @@ module MailSlurpClient
575
578
  post_body = opts[:body]
576
579
 
577
580
  # return_type
578
- return_type = opts[:return_type] || 'Array<AttachmentMetaData>'
581
+ return_type = opts[:return_type] || 'Email'
579
582
 
580
583
  # auth_names
581
584
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -591,42 +594,39 @@ module MailSlurpClient
591
594
 
592
595
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
593
596
  if @api_client.config.debugging
594
- @api_client.config.logger.debug "API called: EmailControllerApi#get_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
597
+ @api_client.config.logger.debug "API called: EmailControllerApi#get_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
595
598
  end
596
599
  return data, status_code, headers
597
600
  end
598
601
 
599
- # Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController.
600
- # Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints
601
- # @param email_id [String]
602
+ # Get all email attachment metadata. Metadata includes name and size of attachments.
603
+ # Returns an array of attachment metadata such as name and content-type for a given email if present.
604
+ # @param email_id [String] ID of email
602
605
  # @param [Hash] opts the optional parameters
603
- # @option opts [Boolean] :decode Decode email body quoted-printable encoding to plain text. SMTP servers often encode text using quoted-printable format (for instance &#x60;&#x3D;D7&#x60;). This can be a pain for testing (default to false)
604
- # @return [Email]
605
- def get_email(email_id, opts = {})
606
- data, _status_code, _headers = get_email_with_http_info(email_id, opts)
606
+ # @return [Array<AttachmentMetaData>]
607
+ def get_email_attachments(email_id, opts = {})
608
+ data, _status_code, _headers = get_email_attachments_with_http_info(email_id, opts)
607
609
  data
608
610
  end
609
611
 
610
- # Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController.
611
- # Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints
612
- # @param email_id [String]
612
+ # Get all email attachment metadata. Metadata includes name and size of attachments.
613
+ # Returns an array of attachment metadata such as name and content-type for a given email if present.
614
+ # @param email_id [String] ID of email
613
615
  # @param [Hash] opts the optional parameters
614
- # @option opts [Boolean] :decode Decode email body quoted-printable encoding to plain text. SMTP servers often encode text using quoted-printable format (for instance &#x60;&#x3D;D7&#x60;). This can be a pain for testing
615
- # @return [Array<(Email, Integer, Hash)>] Email data, response status code and response headers
616
- def get_email_with_http_info(email_id, opts = {})
616
+ # @return [Array<(Array<AttachmentMetaData>, Integer, Hash)>] Array<AttachmentMetaData> data, response status code and response headers
617
+ def get_email_attachments_with_http_info(email_id, opts = {})
617
618
  if @api_client.config.debugging
618
- @api_client.config.logger.debug 'Calling API: EmailControllerApi.get_email ...'
619
+ @api_client.config.logger.debug 'Calling API: EmailControllerApi.get_email_attachments ...'
619
620
  end
620
621
  # verify the required parameter 'email_id' is set
621
622
  if @api_client.config.client_side_validation && email_id.nil?
622
- fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.get_email"
623
+ fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.get_email_attachments"
623
624
  end
624
625
  # resource path
625
- local_var_path = '/emails/{emailId}'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
626
+ local_var_path = '/emails/{emailId}/attachments'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
626
627
 
627
628
  # query parameters
628
629
  query_params = opts[:query_params] || {}
629
- query_params[:'decode'] = opts[:'decode'] if !opts[:'decode'].nil?
630
630
 
631
631
  # header parameters
632
632
  header_params = opts[:header_params] || {}
@@ -640,7 +640,7 @@ module MailSlurpClient
640
640
  post_body = opts[:body]
641
641
 
642
642
  # return_type
643
- return_type = opts[:return_type] || 'Email'
643
+ return_type = opts[:return_type] || 'Array<AttachmentMetaData>'
644
644
 
645
645
  # auth_names
646
646
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -656,7 +656,7 @@ module MailSlurpClient
656
656
 
657
657
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
658
658
  if @api_client.config.debugging
659
- @api_client.config.logger.debug "API called: EmailControllerApi#get_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
659
+ @api_client.config.logger.debug "API called: EmailControllerApi#get_email_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
660
660
  end
661
661
  return data, status_code, headers
662
662
  end
@@ -19,12 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :user_id
23
-
24
22
  attr_accessor :email_address
25
23
 
26
24
  attr_accessor :inbox_id
27
25
 
26
+ attr_accessor :user_id
27
+
28
28
  attr_accessor :created_at
29
29
 
30
30
  attr_accessor :use_threads
@@ -36,9 +36,9 @@ module MailSlurpClient
36
36
  {
37
37
  :'name' => :'name',
38
38
  :'id' => :'id',
39
- :'user_id' => :'userId',
40
39
  :'email_address' => :'emailAddress',
41
40
  :'inbox_id' => :'inboxId',
41
+ :'user_id' => :'userId',
42
42
  :'created_at' => :'createdAt',
43
43
  :'use_threads' => :'useThreads',
44
44
  :'updated_at' => :'updatedAt'
@@ -50,9 +50,9 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'id' => :'String',
53
- :'user_id' => :'String',
54
53
  :'email_address' => :'String',
55
54
  :'inbox_id' => :'String',
55
+ :'user_id' => :'String',
56
56
  :'created_at' => :'DateTime',
57
57
  :'use_threads' => :'Boolean',
58
58
  :'updated_at' => :'DateTime'
@@ -88,10 +88,6 @@ module MailSlurpClient
88
88
  self.id = attributes[:'id']
89
89
  end
90
90
 
91
- if attributes.key?(:'user_id')
92
- self.user_id = attributes[:'user_id']
93
- end
94
-
95
91
  if attributes.key?(:'email_address')
96
92
  self.email_address = attributes[:'email_address']
97
93
  end
@@ -100,6 +96,10 @@ module MailSlurpClient
100
96
  self.inbox_id = attributes[:'inbox_id']
101
97
  end
102
98
 
99
+ if attributes.key?(:'user_id')
100
+ self.user_id = attributes[:'user_id']
101
+ end
102
+
103
103
  if attributes.key?(:'created_at')
104
104
  self.created_at = attributes[:'created_at']
105
105
  end
@@ -121,10 +121,6 @@ module MailSlurpClient
121
121
  invalid_properties.push('invalid value for "id", id cannot be nil.')
122
122
  end
123
123
 
124
- if @user_id.nil?
125
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
126
- end
127
-
128
124
  if @email_address.nil?
129
125
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
130
126
  end
@@ -133,6 +129,10 @@ module MailSlurpClient
133
129
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
134
130
  end
135
131
 
132
+ if @user_id.nil?
133
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
134
+ end
135
+
136
136
  if @created_at.nil?
137
137
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
138
  end
@@ -148,9 +148,9 @@ module MailSlurpClient
148
148
  # @return true if the model is valid
149
149
  def valid?
150
150
  return false if @id.nil?
151
- return false if @user_id.nil?
152
151
  return false if @email_address.nil?
153
152
  return false if @inbox_id.nil?
153
+ return false if @user_id.nil?
154
154
  return false if @created_at.nil?
155
155
  return false if @updated_at.nil?
156
156
  true
@@ -163,9 +163,9 @@ module MailSlurpClient
163
163
  self.class == o.class &&
164
164
  name == o.name &&
165
165
  id == o.id &&
166
- user_id == o.user_id &&
167
166
  email_address == o.email_address &&
168
167
  inbox_id == o.inbox_id &&
168
+ user_id == o.user_id &&
169
169
  created_at == o.created_at &&
170
170
  use_threads == o.use_threads &&
171
171
  updated_at == o.updated_at
@@ -180,7 +180,7 @@ module MailSlurpClient
180
180
  # Calculates hash code according to all attributes.
181
181
  # @return [Integer] Hash code
182
182
  def hash
183
- [name, id, user_id, email_address, inbox_id, created_at, use_threads, updated_at].hash
183
+ [name, id, email_address, inbox_id, user_id, created_at, use_threads, updated_at].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -16,18 +16,18 @@ module MailSlurpClient
16
16
  class ExpiredInboxRecordProjection
17
17
  attr_accessor :id
18
18
 
19
- attr_accessor :user_id
20
-
21
19
  attr_accessor :email_address
22
20
 
21
+ attr_accessor :user_id
22
+
23
23
  attr_accessor :created_at
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
28
  :'id' => :'id',
29
- :'user_id' => :'userId',
30
29
  :'email_address' => :'emailAddress',
30
+ :'user_id' => :'userId',
31
31
  :'created_at' => :'createdAt'
32
32
  }
33
33
  end
@@ -36,8 +36,8 @@ module MailSlurpClient
36
36
  def self.openapi_types
37
37
  {
38
38
  :'id' => :'String',
39
- :'user_id' => :'String',
40
39
  :'email_address' => :'String',
40
+ :'user_id' => :'String',
41
41
  :'created_at' => :'DateTime'
42
42
  }
43
43
  end
@@ -67,14 +67,14 @@ module MailSlurpClient
67
67
  self.id = attributes[:'id']
68
68
  end
69
69
 
70
- if attributes.key?(:'user_id')
71
- self.user_id = attributes[:'user_id']
72
- end
73
-
74
70
  if attributes.key?(:'email_address')
75
71
  self.email_address = attributes[:'email_address']
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?(:'created_at')
79
79
  self.created_at = attributes[:'created_at']
80
80
  end
@@ -88,14 +88,14 @@ module MailSlurpClient
88
88
  invalid_properties.push('invalid value for "id", id cannot be nil.')
89
89
  end
90
90
 
91
- if @user_id.nil?
92
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
93
- end
94
-
95
91
  if @email_address.nil?
96
92
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
97
93
  end
98
94
 
95
+ if @user_id.nil?
96
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
97
+ end
98
+
99
99
  if @created_at.nil?
100
100
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
101
101
  end
@@ -107,8 +107,8 @@ module MailSlurpClient
107
107
  # @return true if the model is valid
108
108
  def valid?
109
109
  return false if @id.nil?
110
- return false if @user_id.nil?
111
110
  return false if @email_address.nil?
111
+ return false if @user_id.nil?
112
112
  return false if @created_at.nil?
113
113
  true
114
114
  end
@@ -119,8 +119,8 @@ module MailSlurpClient
119
119
  return true if self.equal?(o)
120
120
  self.class == o.class &&
121
121
  id == o.id &&
122
- user_id == o.user_id &&
123
122
  email_address == o.email_address &&
123
+ user_id == o.user_id &&
124
124
  created_at == o.created_at
125
125
  end
126
126
 
@@ -133,7 +133,7 @@ module MailSlurpClient
133
133
  # Calculates hash code according to all attributes.
134
134
  # @return [Integer] Hash code
135
135
  def hash
136
- [id, user_id, email_address, created_at].hash
136
+ [id, email_address, user_id, created_at].hash
137
137
  end
138
138
 
139
139
  # Builds the object from hash
@@ -18,10 +18,10 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :from
20
20
 
21
- attr_accessor :user_id
22
-
23
21
  attr_accessor :subject
24
22
 
23
+ attr_accessor :user_id
24
+
25
25
  attr_accessor :created_at
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -29,8 +29,8 @@ module MailSlurpClient
29
29
  {
30
30
  :'id' => :'id',
31
31
  :'from' => :'from',
32
- :'user_id' => :'userId',
33
32
  :'subject' => :'subject',
33
+ :'user_id' => :'userId',
34
34
  :'created_at' => :'createdAt'
35
35
  }
36
36
  end
@@ -40,8 +40,8 @@ module MailSlurpClient
40
40
  {
41
41
  :'id' => :'String',
42
42
  :'from' => :'String',
43
- :'user_id' => :'String',
44
43
  :'subject' => :'String',
44
+ :'user_id' => :'String',
45
45
  :'created_at' => :'DateTime'
46
46
  }
47
47
  end
@@ -75,14 +75,14 @@ module MailSlurpClient
75
75
  self.from = attributes[:'from']
76
76
  end
77
77
 
78
- if attributes.key?(:'user_id')
79
- self.user_id = attributes[:'user_id']
80
- end
81
-
82
78
  if attributes.key?(:'subject')
83
79
  self.subject = attributes[:'subject']
84
80
  end
85
81
 
82
+ if attributes.key?(:'user_id')
83
+ self.user_id = attributes[:'user_id']
84
+ end
85
+
86
86
  if attributes.key?(:'created_at')
87
87
  self.created_at = attributes[:'created_at']
88
88
  end
@@ -118,8 +118,8 @@ module MailSlurpClient
118
118
  self.class == o.class &&
119
119
  id == o.id &&
120
120
  from == o.from &&
121
- user_id == o.user_id &&
122
121
  subject == o.subject &&
122
+ user_id == o.user_id &&
123
123
  created_at == o.created_at
124
124
  end
125
125
 
@@ -132,7 +132,7 @@ module MailSlurpClient
132
132
  # Calculates hash code according to all attributes.
133
133
  # @return [Integer] Hash code
134
134
  def hash
135
- [id, from, user_id, subject, created_at].hash
135
+ [id, from, subject, user_id, created_at].hash
136
136
  end
137
137
 
138
138
  # Builds the object from hash
@@ -19,12 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :user_id
23
-
24
22
  attr_accessor :subject
25
23
 
26
24
  attr_accessor :inbox_id
27
25
 
26
+ attr_accessor :user_id
27
+
28
28
  attr_accessor :to
29
29
 
30
30
  attr_accessor :bcc
@@ -42,9 +42,9 @@ module MailSlurpClient
42
42
  {
43
43
  :'name' => :'name',
44
44
  :'id' => :'id',
45
- :'user_id' => :'userId',
46
45
  :'subject' => :'subject',
47
46
  :'inbox_id' => :'inboxId',
47
+ :'user_id' => :'userId',
48
48
  :'to' => :'to',
49
49
  :'bcc' => :'bcc',
50
50
  :'cc' => :'cc',
@@ -59,9 +59,9 @@ module MailSlurpClient
59
59
  {
60
60
  :'name' => :'String',
61
61
  :'id' => :'String',
62
- :'user_id' => :'String',
63
62
  :'subject' => :'String',
64
63
  :'inbox_id' => :'String',
64
+ :'user_id' => :'String',
65
65
  :'to' => :'Array<String>',
66
66
  :'bcc' => :'Array<String>',
67
67
  :'cc' => :'Array<String>',
@@ -100,10 +100,6 @@ module MailSlurpClient
100
100
  self.id = attributes[:'id']
101
101
  end
102
102
 
103
- if attributes.key?(:'user_id')
104
- self.user_id = attributes[:'user_id']
105
- end
106
-
107
103
  if attributes.key?(:'subject')
108
104
  self.subject = attributes[:'subject']
109
105
  end
@@ -112,6 +108,10 @@ module MailSlurpClient
112
108
  self.inbox_id = attributes[:'inbox_id']
113
109
  end
114
110
 
111
+ if attributes.key?(:'user_id')
112
+ self.user_id = attributes[:'user_id']
113
+ end
114
+
115
115
  if attributes.key?(:'to')
116
116
  if (value = attributes[:'to']).is_a?(Array)
117
117
  self.to = value
@@ -151,14 +151,14 @@ module MailSlurpClient
151
151
  invalid_properties.push('invalid value for "id", id cannot be nil.')
152
152
  end
153
153
 
154
- if @user_id.nil?
155
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
156
- end
157
-
158
154
  if @inbox_id.nil?
159
155
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
160
156
  end
161
157
 
158
+ if @user_id.nil?
159
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
160
+ end
161
+
162
162
  if @to.nil?
163
163
  invalid_properties.push('invalid value for "to", to cannot be nil.')
164
164
  end
@@ -182,8 +182,8 @@ module MailSlurpClient
182
182
  # @return true if the model is valid
183
183
  def valid?
184
184
  return false if @id.nil?
185
- return false if @user_id.nil?
186
185
  return false if @inbox_id.nil?
186
+ return false if @user_id.nil?
187
187
  return false if @to.nil?
188
188
  return false if @created_at.nil?
189
189
  return false if @updated_at.nil?
@@ -198,9 +198,9 @@ module MailSlurpClient
198
198
  self.class == o.class &&
199
199
  name == o.name &&
200
200
  id == o.id &&
201
- user_id == o.user_id &&
202
201
  subject == o.subject &&
203
202
  inbox_id == o.inbox_id &&
203
+ user_id == o.user_id &&
204
204
  to == o.to &&
205
205
  bcc == o.bcc &&
206
206
  cc == o.cc &&
@@ -218,7 +218,7 @@ module MailSlurpClient
218
218
  # Calculates hash code according to all attributes.
219
219
  # @return [Integer] Hash code
220
220
  def hash
221
- [name, id, user_id, subject, inbox_id, to, bcc, cc, created_at, updated_at, alias_id].hash
221
+ [name, id, subject, inbox_id, user_id, to, bcc, cc, created_at, updated_at, alias_id].hash
222
222
  end
223
223
 
224
224
  # Builds the object from hash
@@ -18,10 +18,10 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :id
20
20
 
21
- attr_accessor :user_id
22
-
23
21
  attr_accessor :inbox_id
24
22
 
23
+ attr_accessor :user_id
24
+
25
25
  attr_accessor :created_at
26
26
 
27
27
  attr_accessor :seen
@@ -37,8 +37,8 @@ module MailSlurpClient
37
37
  {
38
38
  :'name' => :'name',
39
39
  :'id' => :'id',
40
- :'user_id' => :'userId',
41
40
  :'inbox_id' => :'inboxId',
41
+ :'user_id' => :'userId',
42
42
  :'created_at' => :'createdAt',
43
43
  :'seen' => :'seen',
44
44
  :'recipient' => :'recipient',
@@ -52,8 +52,8 @@ module MailSlurpClient
52
52
  {
53
53
  :'name' => :'String',
54
54
  :'id' => :'String',
55
- :'user_id' => :'String',
56
55
  :'inbox_id' => :'String',
56
+ :'user_id' => :'String',
57
57
  :'created_at' => :'DateTime',
58
58
  :'seen' => :'Boolean',
59
59
  :'recipient' => :'String',
@@ -91,14 +91,14 @@ module MailSlurpClient
91
91
  self.id = attributes[:'id']
92
92
  end
93
93
 
94
- if attributes.key?(:'user_id')
95
- self.user_id = attributes[:'user_id']
96
- end
97
-
98
94
  if attributes.key?(:'inbox_id')
99
95
  self.inbox_id = attributes[:'inbox_id']
100
96
  end
101
97
 
98
+ if attributes.key?(:'user_id')
99
+ self.user_id = attributes[:'user_id']
100
+ end
101
+
102
102
  if attributes.key?(:'created_at')
103
103
  self.created_at = attributes[:'created_at']
104
104
  end
@@ -160,8 +160,8 @@ module MailSlurpClient
160
160
  self.class == o.class &&
161
161
  name == o.name &&
162
162
  id == o.id &&
163
- user_id == o.user_id &&
164
163
  inbox_id == o.inbox_id &&
164
+ user_id == o.user_id &&
165
165
  created_at == o.created_at &&
166
166
  seen == o.seen &&
167
167
  recipient == o.recipient &&
@@ -178,7 +178,7 @@ module MailSlurpClient
178
178
  # Calculates hash code according to all attributes.
179
179
  # @return [Integer] Hash code
180
180
  def hash
181
- [name, id, user_id, inbox_id, created_at, seen, recipient, seen_at, sent_email_id].hash
181
+ [name, id, inbox_id, user_id, created_at, seen, recipient, seen_at, sent_email_id].hash
182
182
  end
183
183
 
184
184
  # 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 = '15.1.1'
14
+ VERSION = '15.2.0'
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: 15.1.1
4
+ version: 15.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-06 00:00:00.000000000 Z
11
+ date: 2022-01-11 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.