mailslurp_client 15.12.11 → 15.12.14

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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/webhook_controller_api.rb +68 -0
  3. data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
  4. data/lib/mailslurp_client/models/create_contact_options.rb +7 -0
  5. data/lib/mailslurp_client/models/create_domain_options.rb +3 -0
  6. data/lib/mailslurp_client/models/create_inbox_dto.rb +10 -0
  7. data/lib/mailslurp_client/models/create_webhook_options.rb +15 -4
  8. data/lib/mailslurp_client/models/email.rb +15 -0
  9. data/lib/mailslurp_client/models/email_analysis.rb +5 -0
  10. data/lib/mailslurp_client/models/email_preview.rb +6 -5
  11. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  12. data/lib/mailslurp_client/models/inbox_dto.rb +7 -0
  13. data/lib/mailslurp_client/models/inbox_preview.rb +5 -0
  14. data/lib/mailslurp_client/models/organization_inbox_projection.rb +4 -0
  15. data/lib/mailslurp_client/models/page_alias.rb +10 -10
  16. data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
  17. data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
  18. data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
  19. data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
  20. data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
  21. data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
  22. data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
  23. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
  24. data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
  25. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
  26. data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
  27. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +10 -10
  28. data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
  29. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
  30. data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
  31. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  32. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
  33. data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
  34. data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
  35. data/lib/mailslurp_client/models/page_thread_projection.rb +10 -10
  36. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
  37. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
  38. data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
  39. data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
  40. data/lib/mailslurp_client/models/sent_email_projection.rb +67 -67
  41. data/lib/mailslurp_client/models/update_inbox_options.rb +5 -0
  42. data/lib/mailslurp_client/models/upload_attachment_options.rb +2 -0
  43. data/lib/mailslurp_client/models/webhook_dto.rb +18 -9
  44. data/lib/mailslurp_client/models/webhook_header_name_value.rb +228 -0
  45. data/lib/mailslurp_client/models/webhook_headers.rb +215 -0
  46. data/lib/mailslurp_client/version.rb +1 -1
  47. data/lib/mailslurp_client.rb +2 -0
  48. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e518f204d9e3f201cb3f30332af9b41ba1516c7b0365725a78ae7081ae8b241c
4
- data.tar.gz: 77a8a1c8bb636eda41fc992be082d23b8a6f761aea215301e9821da70d48d370
3
+ metadata.gz: f5115bc2f8ca0c4cbfe748f3e3c7d6eae3d8aa1ab4711fab5e3eaea505364e81
4
+ data.tar.gz: 5d8ee9139852ead5bfed33d4addfc9b30ec967516cd3f3522ca7dc4d8d0741c2
5
5
  SHA512:
6
- metadata.gz: 2948fa25b13eedc65d66fa7123dbd58f7c2ee3c1b33a5b44bfaef0fe2408b8e31c6b2bb8f5fb99de41b52f3e8dcebc74df0c0b53c65e64c4fa4e5eca78ef4c3a
7
- data.tar.gz: 47f59ce6638561e7d00c17d1b1c9a6a012949a2dadfdbd5f7849f8d57d9deb556172e29cac2469646e3fd024c28957eeb21dc76521472be0c063a811bf5a980b
6
+ metadata.gz: 3a375671aad02955aa43a22aab055768224ef24573b433ac210035b4e9b6c6e240c64bd5ecd5594213b35e6660dd52169dc40fb7360562ada40a90b7ad453d95
7
+ data.tar.gz: db485fe77b62ddb0d681faee23296f505ad7d9dc957b5380a12e73af8832d97ed0b8d33102e2b53bd7a4a54d26392e8d92f3f13464370c55bc41bff949515227
@@ -1648,6 +1648,74 @@ module MailSlurpClient
1648
1648
  return data, status_code, headers
1649
1649
  end
1650
1650
 
1651
+ # Update a webhook request headers
1652
+ # @param webhook_id [String]
1653
+ # @param webhook_headers [WebhookHeaders]
1654
+ # @param [Hash] opts the optional parameters
1655
+ # @return [WebhookDto]
1656
+ def update_webhook_headers(webhook_id, webhook_headers, opts = {})
1657
+ data, _status_code, _headers = update_webhook_headers_with_http_info(webhook_id, webhook_headers, opts)
1658
+ data
1659
+ end
1660
+
1661
+ # Update a webhook request headers
1662
+ # @param webhook_id [String]
1663
+ # @param webhook_headers [WebhookHeaders]
1664
+ # @param [Hash] opts the optional parameters
1665
+ # @return [Array<(WebhookDto, Integer, Hash)>] WebhookDto data, response status code and response headers
1666
+ def update_webhook_headers_with_http_info(webhook_id, webhook_headers, opts = {})
1667
+ if @api_client.config.debugging
1668
+ @api_client.config.logger.debug 'Calling API: WebhookControllerApi.update_webhook_headers ...'
1669
+ end
1670
+ # verify the required parameter 'webhook_id' is set
1671
+ if @api_client.config.client_side_validation && webhook_id.nil?
1672
+ fail ArgumentError, "Missing the required parameter 'webhook_id' when calling WebhookControllerApi.update_webhook_headers"
1673
+ end
1674
+ # verify the required parameter 'webhook_headers' is set
1675
+ if @api_client.config.client_side_validation && webhook_headers.nil?
1676
+ fail ArgumentError, "Missing the required parameter 'webhook_headers' when calling WebhookControllerApi.update_webhook_headers"
1677
+ end
1678
+ # resource path
1679
+ local_var_path = '/webhooks/{webhookId}/headers'.sub('{' + 'webhookId' + '}', CGI.escape(webhook_id.to_s))
1680
+
1681
+ # query parameters
1682
+ query_params = opts[:query_params] || {}
1683
+
1684
+ # header parameters
1685
+ header_params = opts[:header_params] || {}
1686
+ # HTTP header 'Accept' (if needed)
1687
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1688
+ # HTTP header 'Content-Type'
1689
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1690
+
1691
+ # form parameters
1692
+ form_params = opts[:form_params] || {}
1693
+
1694
+ # http body (model)
1695
+ post_body = opts[:body] || @api_client.object_to_http_body(webhook_headers)
1696
+
1697
+ # return_type
1698
+ return_type = opts[:return_type] || 'WebhookDto'
1699
+
1700
+ # auth_names
1701
+ auth_names = opts[:auth_names] || ['API_KEY']
1702
+
1703
+ new_options = opts.merge(
1704
+ :header_params => header_params,
1705
+ :query_params => query_params,
1706
+ :form_params => form_params,
1707
+ :body => post_body,
1708
+ :auth_names => auth_names,
1709
+ :return_type => return_type
1710
+ )
1711
+
1712
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1713
+ if @api_client.config.debugging
1714
+ @api_client.config.logger.debug "API called: WebhookControllerApi#update_webhook_headers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1715
+ end
1716
+ return data, status_code, headers
1717
+ end
1718
+
1651
1719
  # Verify a webhook payload signature
1652
1720
  # Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server.
1653
1721
  # @param verify_webhook_signature_options [VerifyWebhookSignatureOptions]
@@ -17,25 +17,25 @@ module MailSlurpClient
17
17
  class BounceProjection
18
18
  attr_accessor :id
19
19
 
20
- attr_accessor :sender
21
-
22
20
  attr_accessor :subject
23
21
 
24
- attr_accessor :created_at
22
+ attr_accessor :sender
25
23
 
26
- attr_accessor :bounce_type
24
+ attr_accessor :created_at
27
25
 
28
26
  attr_accessor :bounce_mta
29
27
 
28
+ attr_accessor :bounce_type
29
+
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
33
  :'id' => :'id',
34
- :'sender' => :'sender',
35
34
  :'subject' => :'subject',
35
+ :'sender' => :'sender',
36
36
  :'created_at' => :'createdAt',
37
- :'bounce_type' => :'bounceType',
38
- :'bounce_mta' => :'bounceMta'
37
+ :'bounce_mta' => :'bounceMta',
38
+ :'bounce_type' => :'bounceType'
39
39
  }
40
40
  end
41
41
 
@@ -43,11 +43,11 @@ module MailSlurpClient
43
43
  def self.openapi_types
44
44
  {
45
45
  :'id' => :'String',
46
- :'sender' => :'String',
47
46
  :'subject' => :'String',
47
+ :'sender' => :'String',
48
48
  :'created_at' => :'DateTime',
49
- :'bounce_type' => :'String',
50
- :'bounce_mta' => :'String'
49
+ :'bounce_mta' => :'String',
50
+ :'bounce_type' => :'String'
51
51
  }
52
52
  end
53
53
 
@@ -76,25 +76,25 @@ module MailSlurpClient
76
76
  self.id = attributes[:'id']
77
77
  end
78
78
 
79
- if attributes.key?(:'sender')
80
- self.sender = attributes[:'sender']
81
- end
82
-
83
79
  if attributes.key?(:'subject')
84
80
  self.subject = attributes[:'subject']
85
81
  end
86
82
 
87
- if attributes.key?(:'created_at')
88
- self.created_at = attributes[:'created_at']
83
+ if attributes.key?(:'sender')
84
+ self.sender = attributes[:'sender']
89
85
  end
90
86
 
91
- if attributes.key?(:'bounce_type')
92
- self.bounce_type = attributes[:'bounce_type']
87
+ if attributes.key?(:'created_at')
88
+ self.created_at = attributes[:'created_at']
93
89
  end
94
90
 
95
91
  if attributes.key?(:'bounce_mta')
96
92
  self.bounce_mta = attributes[:'bounce_mta']
97
93
  end
94
+
95
+ if attributes.key?(:'bounce_type')
96
+ self.bounce_type = attributes[:'bounce_type']
97
+ end
98
98
  end
99
99
 
100
100
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -126,11 +126,11 @@ module MailSlurpClient
126
126
  return true if self.equal?(o)
127
127
  self.class == o.class &&
128
128
  id == o.id &&
129
- sender == o.sender &&
130
129
  subject == o.subject &&
130
+ sender == o.sender &&
131
131
  created_at == o.created_at &&
132
- bounce_type == o.bounce_type &&
133
- bounce_mta == o.bounce_mta
132
+ bounce_mta == o.bounce_mta &&
133
+ bounce_type == o.bounce_type
134
134
  end
135
135
 
136
136
  # @see the `==` method
@@ -142,7 +142,7 @@ module MailSlurpClient
142
142
  # Calculates hash code according to all attributes.
143
143
  # @return [Integer] Hash code
144
144
  def hash
145
- [id, sender, subject, created_at, bounce_type, bounce_mta].hash
145
+ [id, subject, sender, created_at, bounce_mta, bounce_type].hash
146
146
  end
147
147
 
148
148
  # Builds the object from hash
@@ -66,6 +66,13 @@ module MailSlurpClient
66
66
  # List of attributes with nullable: true
67
67
  def self.openapi_nullable
68
68
  Set.new([
69
+ :'first_name',
70
+ :'last_name',
71
+ :'company',
72
+ :'email_addresses',
73
+ :'tags',
74
+ :'opt_out',
75
+ :'group_id'
69
76
  ])
70
77
  end
71
78
 
@@ -72,6 +72,9 @@ module MailSlurpClient
72
72
  # List of attributes with nullable: true
73
73
  def self.openapi_nullable
74
74
  Set.new([
75
+ :'description',
76
+ :'created_catch_all_inbox',
77
+ :'domain_type'
75
78
  ])
76
79
  end
77
80
 
@@ -107,6 +107,16 @@ module MailSlurpClient
107
107
  # List of attributes with nullable: true
108
108
  def self.openapi_nullable
109
109
  Set.new([
110
+ :'name',
111
+ :'description',
112
+ :'use_domain_pool',
113
+ :'tags',
114
+ :'expires_at',
115
+ :'favourite',
116
+ :'expires_in',
117
+ :'allow_team_access',
118
+ :'inbox_type',
119
+ :'virtual_inbox'
110
120
  ])
111
121
  end
112
122
 
@@ -26,6 +26,8 @@ module MailSlurpClient
26
26
  # Optional webhook event name. Default is `EMAIL_RECEIVED` and is triggered when an email is received by the inbox associated with the webhook. Payload differ according to the webhook event name. The other events are `NEW_EMAIL`, `NEW_CONTACT`, and `NEW_ATTACHMENT` and `EMAIL_OPENED`. `EMAIL_OPENED` requires the use of tracking pixels when sending. See the email tracking guide for more information.
27
27
  attr_accessor :event_name
28
28
 
29
+ attr_accessor :include_headers
30
+
29
31
  class EnumAttributeValidator
30
32
  attr_reader :datatype
31
33
  attr_reader :allowable_values
@@ -54,7 +56,8 @@ module MailSlurpClient
54
56
  :'url' => :'url',
55
57
  :'basic_auth' => :'basicAuth',
56
58
  :'name' => :'name',
57
- :'event_name' => :'eventName'
59
+ :'event_name' => :'eventName',
60
+ :'include_headers' => :'includeHeaders'
58
61
  }
59
62
  end
60
63
 
@@ -64,13 +67,16 @@ module MailSlurpClient
64
67
  :'url' => :'String',
65
68
  :'basic_auth' => :'BasicAuthOptions',
66
69
  :'name' => :'String',
67
- :'event_name' => :'String'
70
+ :'event_name' => :'String',
71
+ :'include_headers' => :'WebhookHeaders'
68
72
  }
69
73
  end
70
74
 
71
75
  # List of attributes with nullable: true
72
76
  def self.openapi_nullable
73
77
  Set.new([
78
+ :'basic_auth',
79
+ :'event_name',
74
80
  ])
75
81
  end
76
82
 
@@ -104,6 +110,10 @@ module MailSlurpClient
104
110
  if attributes.key?(:'event_name')
105
111
  self.event_name = attributes[:'event_name']
106
112
  end
113
+
114
+ if attributes.key?(:'include_headers')
115
+ self.include_headers = attributes[:'include_headers']
116
+ end
107
117
  end
108
118
 
109
119
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -144,7 +154,8 @@ module MailSlurpClient
144
154
  url == o.url &&
145
155
  basic_auth == o.basic_auth &&
146
156
  name == o.name &&
147
- event_name == o.event_name
157
+ event_name == o.event_name &&
158
+ include_headers == o.include_headers
148
159
  end
149
160
 
150
161
  # @see the `==` method
@@ -156,7 +167,7 @@ module MailSlurpClient
156
167
  # Calculates hash code according to all attributes.
157
168
  # @return [Integer] Hash code
158
169
  def hash
159
- [url, basic_auth, name, event_name].hash
170
+ [url, basic_auth, name, event_name, include_headers].hash
160
171
  end
161
172
 
162
173
  # Builds the object from hash
@@ -146,6 +146,21 @@ module MailSlurpClient
146
146
  # List of attributes with nullable: true
147
147
  def self.openapi_nullable
148
148
  Set.new([
149
+ :'from',
150
+ :'sender',
151
+ :'recipients',
152
+ :'reply_to',
153
+ :'cc',
154
+ :'bcc',
155
+ :'headers',
156
+ :'attachments',
157
+ :'subject',
158
+ :'body',
159
+ :'body_excerpt',
160
+ :'body_md5_hash',
161
+ :'is_html',
162
+ :'charset',
163
+ :'analysis',
149
164
  ])
150
165
  end
151
166
 
@@ -55,6 +55,11 @@ module MailSlurpClient
55
55
  # List of attributes with nullable: true
56
56
  def self.openapi_nullable
57
57
  Set.new([
58
+ :'spam_verdict',
59
+ :'virus_verdict',
60
+ :'spf_verdict',
61
+ :'dkim_verdict',
62
+ :'dmarc_verdict'
58
63
  ])
59
64
  end
60
65
 
@@ -75,6 +75,12 @@ module MailSlurpClient
75
75
  # List of attributes with nullable: true
76
76
  def self.openapi_nullable
77
77
  Set.new([
78
+ :'subject',
79
+ :'to',
80
+ :'from',
81
+ :'bcc',
82
+ :'cc',
83
+ :'attachments'
78
84
  ])
79
85
  end
80
86
 
@@ -146,10 +152,6 @@ module MailSlurpClient
146
152
  invalid_properties.push('invalid value for "id", id cannot be nil.')
147
153
  end
148
154
 
149
- if @to.nil?
150
- invalid_properties.push('invalid value for "to", to cannot be nil.')
151
- end
152
-
153
155
  if @created_at.nil?
154
156
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
155
157
  end
@@ -165,7 +167,6 @@ module MailSlurpClient
165
167
  # @return true if the model is valid
166
168
  def valid?
167
169
  return false if @id.nil?
168
- return false if @to.nil?
169
170
  return false if @created_at.nil?
170
171
  return false if @read.nil?
171
172
  true
@@ -21,10 +21,10 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :subject
23
23
 
24
- attr_accessor :attachments
25
-
26
24
  attr_accessor :inbox_id
27
25
 
26
+ attr_accessor :attachments
27
+
28
28
  attr_accessor :to
29
29
 
30
30
  attr_accessor :created_at
@@ -47,8 +47,8 @@ module MailSlurpClient
47
47
  :'id' => :'id',
48
48
  :'from' => :'from',
49
49
  :'subject' => :'subject',
50
- :'attachments' => :'attachments',
51
50
  :'inbox_id' => :'inboxId',
51
+ :'attachments' => :'attachments',
52
52
  :'to' => :'to',
53
53
  :'created_at' => :'createdAt',
54
54
  :'bcc' => :'bcc',
@@ -66,8 +66,8 @@ module MailSlurpClient
66
66
  :'id' => :'String',
67
67
  :'from' => :'String',
68
68
  :'subject' => :'String',
69
- :'attachments' => :'Array<String>',
70
69
  :'inbox_id' => :'String',
70
+ :'attachments' => :'Array<String>',
71
71
  :'to' => :'Array<String>',
72
72
  :'created_at' => :'DateTime',
73
73
  :'bcc' => :'Array<String>',
@@ -112,16 +112,16 @@ module MailSlurpClient
112
112
  self.subject = attributes[:'subject']
113
113
  end
114
114
 
115
+ if attributes.key?(:'inbox_id')
116
+ self.inbox_id = attributes[:'inbox_id']
117
+ end
118
+
115
119
  if attributes.key?(:'attachments')
116
120
  if (value = attributes[:'attachments']).is_a?(Array)
117
121
  self.attachments = value
118
122
  end
119
123
  end
120
124
 
121
- if attributes.key?(:'inbox_id')
122
- self.inbox_id = attributes[:'inbox_id']
123
- end
124
-
125
125
  if attributes.key?(:'to')
126
126
  if (value = attributes[:'to']).is_a?(Array)
127
127
  self.to = value
@@ -212,8 +212,8 @@ module MailSlurpClient
212
212
  id == o.id &&
213
213
  from == o.from &&
214
214
  subject == o.subject &&
215
- attachments == o.attachments &&
216
215
  inbox_id == o.inbox_id &&
216
+ attachments == o.attachments &&
217
217
  to == o.to &&
218
218
  created_at == o.created_at &&
219
219
  bcc == o.bcc &&
@@ -233,7 +233,7 @@ module MailSlurpClient
233
233
  # Calculates hash code according to all attributes.
234
234
  # @return [Integer] Hash code
235
235
  def hash
236
- [id, from, subject, attachments, inbox_id, to, created_at, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
236
+ [id, from, subject, inbox_id, attachments, to, created_at, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
237
237
  end
238
238
 
239
239
  # Builds the object from hash
@@ -117,6 +117,13 @@ module MailSlurpClient
117
117
  # List of attributes with nullable: true
118
118
  def self.openapi_nullable
119
119
  Set.new([
120
+ :'user_id',
121
+ :'name',
122
+ :'domain_id',
123
+ :'description',
124
+ :'expires_at',
125
+ :'tags',
126
+ :'inbox_type',
120
127
  ])
121
128
  end
122
129
 
@@ -102,6 +102,11 @@ module MailSlurpClient
102
102
  # List of attributes with nullable: true
103
103
  def self.openapi_nullable
104
104
  Set.new([
105
+ :'email_address',
106
+ :'name',
107
+ :'tags',
108
+ :'inbox_type',
109
+ :'expires_at'
105
110
  ])
106
111
  end
107
112
 
@@ -102,6 +102,10 @@ module MailSlurpClient
102
102
  # List of attributes with nullable: true
103
103
  def self.openapi_nullable
104
104
  Set.new([
105
+ :'name',
106
+ :'email_address',
107
+ :'tags',
108
+ :'inbox_type',
105
109
  ])
106
110
  end
107
111
 
@@ -23,10 +23,10 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :last
25
25
 
26
- attr_accessor :total_pages
27
-
28
26
  attr_accessor :total_elements
29
27
 
28
+ attr_accessor :total_pages
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
@@ -46,8 +46,8 @@ module MailSlurpClient
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
48
  :'last' => :'last',
49
- :'total_pages' => :'totalPages',
50
49
  :'total_elements' => :'totalElements',
50
+ :'total_pages' => :'totalPages',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
@@ -64,8 +64,8 @@ module MailSlurpClient
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
66
  :'last' => :'Boolean',
67
- :'total_pages' => :'Integer',
68
67
  :'total_elements' => :'Integer',
68
+ :'total_pages' => :'Integer',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
@@ -114,14 +114,14 @@ module MailSlurpClient
114
114
  self.last = attributes[:'last']
115
115
  end
116
116
 
117
- if attributes.key?(:'total_pages')
118
- self.total_pages = attributes[:'total_pages']
119
- end
120
-
121
117
  if attributes.key?(:'total_elements')
122
118
  self.total_elements = attributes[:'total_elements']
123
119
  end
124
120
 
121
+ if attributes.key?(:'total_pages')
122
+ self.total_pages = attributes[:'total_pages']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -169,8 +169,8 @@ module MailSlurpClient
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
171
  last == o.last &&
172
- total_pages == o.total_pages &&
173
172
  total_elements == o.total_elements &&
173
+ total_pages == o.total_pages &&
174
174
  size == o.size &&
175
175
  number == o.number &&
176
176
  sort == o.sort &&
@@ -188,7 +188,7 @@ module MailSlurpClient
188
188
  # Calculates hash code according to all attributes.
189
189
  # @return [Integer] Hash code
190
190
  def hash
191
- [content, pageable, total, last, total_pages, total_elements, size, number, sort, first, number_of_elements, empty].hash
191
+ [content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash
@@ -23,10 +23,10 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :last
25
25
 
26
- attr_accessor :total_pages
27
-
28
26
  attr_accessor :total_elements
29
27
 
28
+ attr_accessor :total_pages
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
@@ -46,8 +46,8 @@ module MailSlurpClient
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
48
  :'last' => :'last',
49
- :'total_pages' => :'totalPages',
50
49
  :'total_elements' => :'totalElements',
50
+ :'total_pages' => :'totalPages',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
@@ -64,8 +64,8 @@ module MailSlurpClient
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
66
  :'last' => :'Boolean',
67
- :'total_pages' => :'Integer',
68
67
  :'total_elements' => :'Integer',
68
+ :'total_pages' => :'Integer',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
@@ -114,14 +114,14 @@ module MailSlurpClient
114
114
  self.last = attributes[:'last']
115
115
  end
116
116
 
117
- if attributes.key?(:'total_pages')
118
- self.total_pages = attributes[:'total_pages']
119
- end
120
-
121
117
  if attributes.key?(:'total_elements')
122
118
  self.total_elements = attributes[:'total_elements']
123
119
  end
124
120
 
121
+ if attributes.key?(:'total_pages')
122
+ self.total_pages = attributes[:'total_pages']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -169,8 +169,8 @@ module MailSlurpClient
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
171
  last == o.last &&
172
- total_pages == o.total_pages &&
173
172
  total_elements == o.total_elements &&
173
+ total_pages == o.total_pages &&
174
174
  size == o.size &&
175
175
  number == o.number &&
176
176
  sort == o.sort &&
@@ -188,7 +188,7 @@ module MailSlurpClient
188
188
  # Calculates hash code according to all attributes.
189
189
  # @return [Integer] Hash code
190
190
  def hash
191
- [content, pageable, total, last, total_pages, total_elements, size, number, sort, first, number_of_elements, empty].hash
191
+ [content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash