mailslurp_client 15.12.11 → 15.12.14

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -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
@@ -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
@@ -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,21 +23,21 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :subject
25
25
 
26
- attr_accessor :created_at
26
+ attr_accessor :body_md5_hash
27
27
 
28
- attr_accessor :attachments
28
+ attr_accessor :bcc
29
29
 
30
- attr_accessor :inbox_id
30
+ attr_accessor :cc
31
31
 
32
- attr_accessor :to
32
+ attr_accessor :virtual_send
33
33
 
34
- attr_accessor :bcc
34
+ attr_accessor :inbox_id
35
35
 
36
- attr_accessor :cc
36
+ attr_accessor :attachments
37
37
 
38
- attr_accessor :body_md5_hash
38
+ attr_accessor :to
39
39
 
40
- attr_accessor :virtual_send
40
+ attr_accessor :created_at
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
43
43
  def self.attribute_map
@@ -46,14 +46,14 @@ module MailSlurpClient
46
46
  :'from' => :'from',
47
47
  :'user_id' => :'userId',
48
48
  :'subject' => :'subject',
49
- :'created_at' => :'createdAt',
50
- :'attachments' => :'attachments',
51
- :'inbox_id' => :'inboxId',
52
- :'to' => :'to',
49
+ :'body_md5_hash' => :'bodyMD5Hash',
53
50
  :'bcc' => :'bcc',
54
51
  :'cc' => :'cc',
55
- :'body_md5_hash' => :'bodyMD5Hash',
56
- :'virtual_send' => :'virtualSend'
52
+ :'virtual_send' => :'virtualSend',
53
+ :'inbox_id' => :'inboxId',
54
+ :'attachments' => :'attachments',
55
+ :'to' => :'to',
56
+ :'created_at' => :'createdAt'
57
57
  }
58
58
  end
59
59
 
@@ -64,14 +64,14 @@ module MailSlurpClient
64
64
  :'from' => :'String',
65
65
  :'user_id' => :'String',
66
66
  :'subject' => :'String',
67
- :'created_at' => :'DateTime',
68
- :'attachments' => :'Array<String>',
69
- :'inbox_id' => :'String',
70
- :'to' => :'Array<String>',
67
+ :'body_md5_hash' => :'String',
71
68
  :'bcc' => :'Array<String>',
72
69
  :'cc' => :'Array<String>',
73
- :'body_md5_hash' => :'String',
74
- :'virtual_send' => :'Boolean'
70
+ :'virtual_send' => :'Boolean',
71
+ :'inbox_id' => :'String',
72
+ :'attachments' => :'Array<String>',
73
+ :'to' => :'Array<String>',
74
+ :'created_at' => :'DateTime'
75
75
  }
76
76
  end
77
77
 
@@ -112,24 +112,8 @@ module MailSlurpClient
112
112
  self.subject = attributes[:'subject']
113
113
  end
114
114
 
115
- if attributes.key?(:'created_at')
116
- self.created_at = attributes[:'created_at']
117
- end
118
-
119
- if attributes.key?(:'attachments')
120
- if (value = attributes[:'attachments']).is_a?(Array)
121
- self.attachments = value
122
- end
123
- end
124
-
125
- if attributes.key?(:'inbox_id')
126
- self.inbox_id = attributes[:'inbox_id']
127
- end
128
-
129
- if attributes.key?(:'to')
130
- if (value = attributes[:'to']).is_a?(Array)
131
- self.to = value
132
- end
115
+ if attributes.key?(:'body_md5_hash')
116
+ self.body_md5_hash = attributes[:'body_md5_hash']
133
117
  end
134
118
 
135
119
  if attributes.key?(:'bcc')
@@ -144,13 +128,29 @@ module MailSlurpClient
144
128
  end
145
129
  end
146
130
 
147
- if attributes.key?(:'body_md5_hash')
148
- self.body_md5_hash = attributes[:'body_md5_hash']
149
- end
150
-
151
131
  if attributes.key?(:'virtual_send')
152
132
  self.virtual_send = attributes[:'virtual_send']
153
133
  end
134
+
135
+ if attributes.key?(:'inbox_id')
136
+ self.inbox_id = attributes[:'inbox_id']
137
+ end
138
+
139
+ if attributes.key?(:'attachments')
140
+ if (value = attributes[:'attachments']).is_a?(Array)
141
+ self.attachments = value
142
+ end
143
+ end
144
+
145
+ if attributes.key?(:'to')
146
+ if (value = attributes[:'to']).is_a?(Array)
147
+ self.to = value
148
+ end
149
+ end
150
+
151
+ if attributes.key?(:'created_at')
152
+ self.created_at = attributes[:'created_at']
153
+ end
154
154
  end
155
155
 
156
156
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -165,32 +165,32 @@ module MailSlurpClient
165
165
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
166
166
  end
167
167
 
168
- if @created_at.nil?
169
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
168
+ if @bcc.nil?
169
+ invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
170
170
  end
171
171
 
172
- if @attachments.nil?
173
- invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
172
+ if @cc.nil?
173
+ invalid_properties.push('invalid value for "cc", cc cannot be nil.')
174
174
  end
175
175
 
176
- if @inbox_id.nil?
177
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
176
+ if @virtual_send.nil?
177
+ invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
178
178
  end
179
179
 
180
- if @to.nil?
181
- invalid_properties.push('invalid value for "to", to cannot be nil.')
180
+ if @inbox_id.nil?
181
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
182
182
  end
183
183
 
184
- if @bcc.nil?
185
- invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
184
+ if @attachments.nil?
185
+ invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
186
186
  end
187
187
 
188
- if @cc.nil?
189
- invalid_properties.push('invalid value for "cc", cc cannot be nil.')
188
+ if @to.nil?
189
+ invalid_properties.push('invalid value for "to", to cannot be nil.')
190
190
  end
191
191
 
192
- if @virtual_send.nil?
193
- invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
192
+ if @created_at.nil?
193
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
194
194
  end
195
195
 
196
196
  invalid_properties
@@ -201,13 +201,13 @@ module MailSlurpClient
201
201
  def valid?
202
202
  return false if @id.nil?
203
203
  return false if @user_id.nil?
204
- return false if @created_at.nil?
205
- return false if @attachments.nil?
206
- return false if @inbox_id.nil?
207
- return false if @to.nil?
208
204
  return false if @bcc.nil?
209
205
  return false if @cc.nil?
210
206
  return false if @virtual_send.nil?
207
+ return false if @inbox_id.nil?
208
+ return false if @attachments.nil?
209
+ return false if @to.nil?
210
+ return false if @created_at.nil?
211
211
  true
212
212
  end
213
213
 
@@ -220,14 +220,14 @@ module MailSlurpClient
220
220
  from == o.from &&
221
221
  user_id == o.user_id &&
222
222
  subject == o.subject &&
223
- created_at == o.created_at &&
224
- attachments == o.attachments &&
225
- inbox_id == o.inbox_id &&
226
- to == o.to &&
223
+ body_md5_hash == o.body_md5_hash &&
227
224
  bcc == o.bcc &&
228
225
  cc == o.cc &&
229
- body_md5_hash == o.body_md5_hash &&
230
- virtual_send == o.virtual_send
226
+ virtual_send == o.virtual_send &&
227
+ inbox_id == o.inbox_id &&
228
+ attachments == o.attachments &&
229
+ to == o.to &&
230
+ created_at == o.created_at
231
231
  end
232
232
 
233
233
  # @see the `==` method
@@ -239,7 +239,7 @@ module MailSlurpClient
239
239
  # Calculates hash code according to all attributes.
240
240
  # @return [Integer] Hash code
241
241
  def hash
242
- [id, from, user_id, subject, created_at, attachments, inbox_id, to, bcc, cc, body_md5_hash, virtual_send].hash
242
+ [id, from, user_id, subject, body_md5_hash, bcc, cc, virtual_send, inbox_id, attachments, to, created_at].hash
243
243
  end
244
244
 
245
245
  # Builds the object from hash
@@ -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
+ :'name',
59
+ :'description',
60
+ :'tags',
61
+ :'expires_at',
62
+ :'favourite'
58
63
  ])
59
64
  end
60
65
 
@@ -45,6 +45,8 @@ module MailSlurpClient
45
45
  # List of attributes with nullable: true
46
46
  def self.openapi_nullable
47
47
  Set.new([
48
+ :'content_type',
49
+ :'filename',
48
50
  ])
49
51
  end
50
52
 
@@ -44,8 +44,11 @@ module MailSlurpClient
44
44
 
45
45
  attr_accessor :updated_at
46
46
 
47
+ # Webhook trigger event name
47
48
  attr_accessor :event_name
48
49
 
50
+ attr_accessor :request_headers
51
+
49
52
  class EnumAttributeValidator
50
53
  attr_reader :datatype
51
54
  attr_reader :allowable_values
@@ -81,7 +84,8 @@ module MailSlurpClient
81
84
  :'payload_json_schema' => :'payloadJsonSchema',
82
85
  :'created_at' => :'createdAt',
83
86
  :'updated_at' => :'updatedAt',
84
- :'event_name' => :'eventName'
87
+ :'event_name' => :'eventName',
88
+ :'request_headers' => :'requestHeaders'
85
89
  }
86
90
  end
87
91
 
@@ -98,13 +102,18 @@ module MailSlurpClient
98
102
  :'payload_json_schema' => :'String',
99
103
  :'created_at' => :'DateTime',
100
104
  :'updated_at' => :'DateTime',
101
- :'event_name' => :'String'
105
+ :'event_name' => :'String',
106
+ :'request_headers' => :'WebhookHeaders'
102
107
  }
103
108
  end
104
109
 
105
110
  # List of attributes with nullable: true
106
111
  def self.openapi_nullable
107
112
  Set.new([
113
+ :'name',
114
+ :'inbox_id',
115
+ :'created_at',
116
+ :'event_name',
108
117
  ])
109
118
  end
110
119
 
@@ -166,6 +175,10 @@ module MailSlurpClient
166
175
  if attributes.key?(:'event_name')
167
176
  self.event_name = attributes[:'event_name']
168
177
  end
178
+
179
+ if attributes.key?(:'request_headers')
180
+ self.request_headers = attributes[:'request_headers']
181
+ end
169
182
  end
170
183
 
171
184
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -196,10 +209,6 @@ module MailSlurpClient
196
209
  invalid_properties.push('invalid value for "payload_json_schema", payload_json_schema cannot be nil.')
197
210
  end
198
211
 
199
- if @created_at.nil?
200
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
201
- end
202
-
203
212
  if @updated_at.nil?
204
213
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
205
214
  end
@@ -218,7 +227,6 @@ module MailSlurpClient
218
227
  method_validator = EnumAttributeValidator.new('String', ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "TRACE"])
219
228
  return false unless method_validator.valid?(@method)
220
229
  return false if @payload_json_schema.nil?
221
- return false if @created_at.nil?
222
230
  return false if @updated_at.nil?
223
231
  event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
224
232
  return false unless event_name_validator.valid?(@event_name)
@@ -260,7 +268,8 @@ module MailSlurpClient
260
268
  payload_json_schema == o.payload_json_schema &&
261
269
  created_at == o.created_at &&
262
270
  updated_at == o.updated_at &&
263
- event_name == o.event_name
271
+ event_name == o.event_name &&
272
+ request_headers == o.request_headers
264
273
  end
265
274
 
266
275
  # @see the `==` method
@@ -272,7 +281,7 @@ module MailSlurpClient
272
281
  # Calculates hash code according to all attributes.
273
282
  # @return [Integer] Hash code
274
283
  def hash
275
- [id, user_id, basic_auth, name, inbox_id, url, method, payload_json_schema, created_at, updated_at, event_name].hash
284
+ [id, user_id, basic_auth, name, inbox_id, url, method, payload_json_schema, created_at, updated_at, event_name, request_headers].hash
276
285
  end
277
286
 
278
287
  # Builds the object from hash