mailslurp_client 15.1.4 → 15.2.4

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: be190abc4e4e6cfb3ce29fe7007d2244ef5d4f405362c96af50ce683cb35117d
4
- data.tar.gz: 9c943299957575628e8479fd0fc914299e81f316e345dbf4e568e3ceef874b6c
3
+ metadata.gz: d23f1af39f138cf440c5aa7bebfc5a0c5cf1ad233db57e238845f632eb76e9da
4
+ data.tar.gz: 7feeba58428d6373846b01d56af99fa09f6358510cafbf68acfe11f377762e1f
5
5
  SHA512:
6
- metadata.gz: fb13772e325b407bc22b994972f29e3677d66a1c84694a55e004a5bdb73e4536dcdee0b474ea76029faf52c132af800d1b1590b78614f0731c83eafacf551dbf
7
- data.tar.gz: 7c678f7691759b589bcc147c9da9c294681e37aab5ef9c9248222d5607b507e6d3d4f7ae9525b9bf2cbf36f8ff62801e6a54c260e3048eec0fc476a0d9ee3de6
6
+ metadata.gz: d52b684c4e4f36f50e11c1e31101d50163b79b5bf08737412fc934260c12fa59437e4142090049e048fd2aee75b8a7de17a8f19170197836da6c31c336660b23
7
+ data.tar.gz: 8c1a29c9a9c5f211bccc4cad87ef03cb61e29c3b555659db10d178c415fc5f4c5f34e8471c24ff868a2268c3e551a5e94bdeb02a0fa8c811dd5554192ea0ce28
@@ -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,14 +19,14 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :created_at
23
-
24
- attr_accessor :user_id
25
-
26
22
  attr_accessor :email_address
27
23
 
28
24
  attr_accessor :inbox_id
29
25
 
26
+ attr_accessor :user_id
27
+
28
+ attr_accessor :created_at
29
+
30
30
  attr_accessor :use_threads
31
31
 
32
32
  attr_accessor :updated_at
@@ -36,10 +36,10 @@ module MailSlurpClient
36
36
  {
37
37
  :'name' => :'name',
38
38
  :'id' => :'id',
39
- :'created_at' => :'createdAt',
40
- :'user_id' => :'userId',
41
39
  :'email_address' => :'emailAddress',
42
40
  :'inbox_id' => :'inboxId',
41
+ :'user_id' => :'userId',
42
+ :'created_at' => :'createdAt',
43
43
  :'use_threads' => :'useThreads',
44
44
  :'updated_at' => :'updatedAt'
45
45
  }
@@ -50,10 +50,10 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'id' => :'String',
53
- :'created_at' => :'DateTime',
54
- :'user_id' => :'String',
55
53
  :'email_address' => :'String',
56
54
  :'inbox_id' => :'String',
55
+ :'user_id' => :'String',
56
+ :'created_at' => :'DateTime',
57
57
  :'use_threads' => :'Boolean',
58
58
  :'updated_at' => :'DateTime'
59
59
  }
@@ -88,14 +88,6 @@ module MailSlurpClient
88
88
  self.id = attributes[:'id']
89
89
  end
90
90
 
91
- if attributes.key?(:'created_at')
92
- self.created_at = attributes[:'created_at']
93
- end
94
-
95
- if attributes.key?(:'user_id')
96
- self.user_id = attributes[:'user_id']
97
- end
98
-
99
91
  if attributes.key?(:'email_address')
100
92
  self.email_address = attributes[:'email_address']
101
93
  end
@@ -104,6 +96,14 @@ module MailSlurpClient
104
96
  self.inbox_id = attributes[:'inbox_id']
105
97
  end
106
98
 
99
+ if attributes.key?(:'user_id')
100
+ self.user_id = attributes[:'user_id']
101
+ end
102
+
103
+ if attributes.key?(:'created_at')
104
+ self.created_at = attributes[:'created_at']
105
+ end
106
+
107
107
  if attributes.key?(:'use_threads')
108
108
  self.use_threads = attributes[:'use_threads']
109
109
  end
@@ -121,14 +121,6 @@ module MailSlurpClient
121
121
  invalid_properties.push('invalid value for "id", id cannot be nil.')
122
122
  end
123
123
 
124
- if @created_at.nil?
125
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
126
- end
127
-
128
- if @user_id.nil?
129
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
130
- end
131
-
132
124
  if @email_address.nil?
133
125
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
134
126
  end
@@ -137,6 +129,14 @@ module MailSlurpClient
137
129
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
138
130
  end
139
131
 
132
+ if @user_id.nil?
133
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
134
+ end
135
+
136
+ if @created_at.nil?
137
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
+ end
139
+
140
140
  if @updated_at.nil?
141
141
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
142
142
  end
@@ -148,10 +148,10 @@ 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 @created_at.nil?
152
- return false if @user_id.nil?
153
151
  return false if @email_address.nil?
154
152
  return false if @inbox_id.nil?
153
+ return false if @user_id.nil?
154
+ return false if @created_at.nil?
155
155
  return false if @updated_at.nil?
156
156
  true
157
157
  end
@@ -163,10 +163,10 @@ module MailSlurpClient
163
163
  self.class == o.class &&
164
164
  name == o.name &&
165
165
  id == o.id &&
166
- created_at == o.created_at &&
167
- user_id == o.user_id &&
168
166
  email_address == o.email_address &&
169
167
  inbox_id == o.inbox_id &&
168
+ user_id == o.user_id &&
169
+ created_at == o.created_at &&
170
170
  use_threads == o.use_threads &&
171
171
  updated_at == o.updated_at
172
172
  end
@@ -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, created_at, user_id, email_address, inbox_id, 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
@@ -22,13 +22,13 @@ module MailSlurpClient
22
22
  # Content type of attachment.
23
23
  attr_accessor :content_type
24
24
 
25
- attr_accessor :created_at
26
-
27
25
  attr_accessor :user_id
28
26
 
29
27
  # Attachment ID
30
28
  attr_accessor :attachment_id
31
29
 
30
+ attr_accessor :created_at
31
+
32
32
  attr_accessor :updated_at
33
33
 
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -37,9 +37,9 @@ module MailSlurpClient
37
37
  :'name' => :'name',
38
38
  :'content_length' => :'contentLength',
39
39
  :'content_type' => :'contentType',
40
- :'created_at' => :'createdAt',
41
40
  :'user_id' => :'userId',
42
41
  :'attachment_id' => :'attachmentId',
42
+ :'created_at' => :'createdAt',
43
43
  :'updated_at' => :'updatedAt'
44
44
  }
45
45
  end
@@ -50,9 +50,9 @@ module MailSlurpClient
50
50
  :'name' => :'String',
51
51
  :'content_length' => :'Integer',
52
52
  :'content_type' => :'String',
53
- :'created_at' => :'DateTime',
54
53
  :'user_id' => :'String',
55
54
  :'attachment_id' => :'String',
55
+ :'created_at' => :'DateTime',
56
56
  :'updated_at' => :'DateTime'
57
57
  }
58
58
  end
@@ -90,10 +90,6 @@ module MailSlurpClient
90
90
  self.content_type = attributes[:'content_type']
91
91
  end
92
92
 
93
- if attributes.key?(:'created_at')
94
- self.created_at = attributes[:'created_at']
95
- end
96
-
97
93
  if attributes.key?(:'user_id')
98
94
  self.user_id = attributes[:'user_id']
99
95
  end
@@ -102,6 +98,10 @@ module MailSlurpClient
102
98
  self.attachment_id = attributes[:'attachment_id']
103
99
  end
104
100
 
101
+ if attributes.key?(:'created_at')
102
+ self.created_at = attributes[:'created_at']
103
+ end
104
+
105
105
  if attributes.key?(:'updated_at')
106
106
  self.updated_at = attributes[:'updated_at']
107
107
  end
@@ -111,10 +111,6 @@ 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
114
  if @user_id.nil?
119
115
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
120
116
  end
@@ -123,6 +119,10 @@ module MailSlurpClient
123
119
  invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
124
120
  end
125
121
 
122
+ if @created_at.nil?
123
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
124
+ end
125
+
126
126
  if @updated_at.nil?
127
127
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
128
128
  end
@@ -133,9 +133,9 @@ module MailSlurpClient
133
133
  # Check to see if the all the properties in the model are valid
134
134
  # @return true if the model is valid
135
135
  def valid?
136
- return false if @created_at.nil?
137
136
  return false if @user_id.nil?
138
137
  return false if @attachment_id.nil?
138
+ return false if @created_at.nil?
139
139
  return false if @updated_at.nil?
140
140
  true
141
141
  end
@@ -148,9 +148,9 @@ module MailSlurpClient
148
148
  name == o.name &&
149
149
  content_length == o.content_length &&
150
150
  content_type == o.content_type &&
151
- created_at == o.created_at &&
152
151
  user_id == o.user_id &&
153
152
  attachment_id == o.attachment_id &&
153
+ created_at == o.created_at &&
154
154
  updated_at == o.updated_at
155
155
  end
156
156
 
@@ -163,7 +163,7 @@ module MailSlurpClient
163
163
  # Calculates hash code according to all attributes.
164
164
  # @return [Integer] Hash code
165
165
  def hash
166
- [name, content_length, content_type, created_at, user_id, attachment_id, updated_at].hash
166
+ [name, content_length, content_type, user_id, attachment_id, created_at, updated_at].hash
167
167
  end
168
168
 
169
169
  # Builds the object from hash
@@ -16,16 +16,16 @@ module MailSlurpClient
16
16
  class BounceProjection
17
17
  attr_accessor :id
18
18
 
19
- attr_accessor :created_at
20
-
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
26
  :'id' => :'id',
27
- :'created_at' => :'createdAt',
28
- :'sender' => :'sender'
27
+ :'sender' => :'sender',
28
+ :'created_at' => :'createdAt'
29
29
  }
30
30
  end
31
31
 
@@ -33,8 +33,8 @@ module MailSlurpClient
33
33
  def self.openapi_types
34
34
  {
35
35
  :'id' => :'String',
36
- :'created_at' => :'DateTime',
37
- :'sender' => :'String'
36
+ :'sender' => :'String',
37
+ :'created_at' => :'DateTime'
38
38
  }
39
39
  end
40
40
 
@@ -63,35 +63,35 @@ module MailSlurpClient
63
63
  self.id = attributes[:'id']
64
64
  end
65
65
 
66
- if attributes.key?(:'created_at')
67
- self.created_at = attributes[:'created_at']
68
- end
69
-
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
79
  if @sender.nil?
84
80
  invalid_properties.push('invalid value for "sender", sender cannot be nil.')
85
81
  end
86
82
 
83
+ if @created_at.nil?
84
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
85
+ end
86
+
87
87
  invalid_properties
88
88
  end
89
89
 
90
90
  # Check to see if the all the properties in the model are valid
91
91
  # @return true if the model is valid
92
92
  def valid?
93
- return false if @created_at.nil?
94
93
  return false if @sender.nil?
94
+ return false if @created_at.nil?
95
95
  true
96
96
  end
97
97
 
@@ -101,8 +101,8 @@ module MailSlurpClient
101
101
  return true if self.equal?(o)
102
102
  self.class == o.class &&
103
103
  id == o.id &&
104
- created_at == o.created_at &&
105
- sender == o.sender
104
+ sender == o.sender &&
105
+ created_at == o.created_at
106
106
  end
107
107
 
108
108
  # @see the `==` method
@@ -114,7 +114,7 @@ module MailSlurpClient
114
114
  # Calculates hash code according to all attributes.
115
115
  # @return [Integer] Hash code
116
116
  def hash
117
- [id, created_at, sender].hash
117
+ [id, sender, created_at].hash
118
118
  end
119
119
 
120
120
  # Builds the object from hash
@@ -16,8 +16,6 @@ module MailSlurpClient
16
16
  class ContactProjection
17
17
  attr_accessor :id
18
18
 
19
- attr_accessor :created_at
20
-
21
19
  attr_accessor :group_id
22
20
 
23
21
  attr_accessor :first_name
@@ -30,17 +28,19 @@ module MailSlurpClient
30
28
 
31
29
  attr_accessor :opt_out
32
30
 
31
+ attr_accessor :created_at
32
+
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
36
  :'id' => :'id',
37
- :'created_at' => :'createdAt',
38
37
  :'group_id' => :'groupId',
39
38
  :'first_name' => :'firstName',
40
39
  :'last_name' => :'lastName',
41
40
  :'company' => :'company',
42
41
  :'email_addresses' => :'emailAddresses',
43
- :'opt_out' => :'optOut'
42
+ :'opt_out' => :'optOut',
43
+ :'created_at' => :'createdAt'
44
44
  }
45
45
  end
46
46
 
@@ -48,13 +48,13 @@ module MailSlurpClient
48
48
  def self.openapi_types
49
49
  {
50
50
  :'id' => :'String',
51
- :'created_at' => :'DateTime',
52
51
  :'group_id' => :'String',
53
52
  :'first_name' => :'String',
54
53
  :'last_name' => :'String',
55
54
  :'company' => :'String',
56
55
  :'email_addresses' => :'Array<String>',
57
- :'opt_out' => :'Boolean'
56
+ :'opt_out' => :'Boolean',
57
+ :'created_at' => :'DateTime'
58
58
  }
59
59
  end
60
60
 
@@ -83,10 +83,6 @@ module MailSlurpClient
83
83
  self.id = attributes[:'id']
84
84
  end
85
85
 
86
- if attributes.key?(:'created_at')
87
- self.created_at = attributes[:'created_at']
88
- end
89
-
90
86
  if attributes.key?(:'group_id')
91
87
  self.group_id = attributes[:'group_id']
92
88
  end
@@ -112,6 +108,10 @@ module MailSlurpClient
112
108
  if attributes.key?(:'opt_out')
113
109
  self.opt_out = attributes[:'opt_out']
114
110
  end
111
+
112
+ if attributes.key?(:'created_at')
113
+ self.created_at = attributes[:'created_at']
114
+ end
115
115
  end
116
116
 
117
117
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -143,13 +143,13 @@ module MailSlurpClient
143
143
  return true if self.equal?(o)
144
144
  self.class == o.class &&
145
145
  id == o.id &&
146
- created_at == o.created_at &&
147
146
  group_id == o.group_id &&
148
147
  first_name == o.first_name &&
149
148
  last_name == o.last_name &&
150
149
  company == o.company &&
151
150
  email_addresses == o.email_addresses &&
152
- opt_out == o.opt_out
151
+ opt_out == o.opt_out &&
152
+ created_at == o.created_at
153
153
  end
154
154
 
155
155
  # @see the `==` method
@@ -161,7 +161,7 @@ module MailSlurpClient
161
161
  # Calculates hash code according to all attributes.
162
162
  # @return [Integer] Hash code
163
163
  def hash
164
- [id, created_at, group_id, first_name, last_name, company, email_addresses, opt_out].hash
164
+ [id, group_id, first_name, last_name, company, email_addresses, opt_out, created_at].hash
165
165
  end
166
166
 
167
167
  # Builds the object from hash