mailslurp_client 15.0.0 → 15.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/lib/mailslurp_client/api/alias_controller_api.rb +59 -55
  4. data/lib/mailslurp_client/api/attachment_controller_api.rb +49 -60
  5. data/lib/mailslurp_client/api/bounce_controller_api.rb +26 -18
  6. data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +15 -15
  7. data/lib/mailslurp_client/api/common_actions_controller_api.rb +128 -67
  8. data/lib/mailslurp_client/api/contact_controller_api.rb +22 -22
  9. data/lib/mailslurp_client/api/domain_controller_api.rb +32 -32
  10. data/lib/mailslurp_client/api/email_controller_api.rb +190 -116
  11. data/lib/mailslurp_client/api/expired_controller_api.rb +19 -19
  12. data/lib/mailslurp_client/api/export_controller_api.rb +38 -38
  13. data/lib/mailslurp_client/api/form_controller_api.rb +16 -18
  14. data/lib/mailslurp_client/api/group_controller_api.rb +52 -52
  15. data/lib/mailslurp_client/api/inbox_controller_api.rb +359 -225
  16. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +33 -29
  17. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +33 -29
  18. data/lib/mailslurp_client/api/mail_server_controller_api.rb +26 -26
  19. data/lib/mailslurp_client/api/missed_email_controller_api.rb +54 -42
  20. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +157 -47
  21. data/lib/mailslurp_client/api/template_controller_api.rb +21 -21
  22. data/lib/mailslurp_client/api/tracking_controller_api.rb +16 -16
  23. data/lib/mailslurp_client/api/wait_for_controller_api.rb +128 -88
  24. data/lib/mailslurp_client/api/webhook_controller_api.rb +102 -86
  25. data/lib/mailslurp_client/configuration.rb +4 -4
  26. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +10 -25
  27. data/lib/mailslurp_client/models/alias_dto.rb +45 -56
  28. data/lib/mailslurp_client/models/alias_projection.rb +42 -72
  29. data/lib/mailslurp_client/models/attachment_entity.rb +34 -54
  30. data/lib/mailslurp_client/models/attachment_meta_data.rb +21 -21
  31. data/lib/mailslurp_client/models/attachment_projection.rb +36 -51
  32. data/lib/mailslurp_client/models/basic_auth_options.rb +0 -10
  33. data/lib/mailslurp_client/models/bounce_projection.rb +13 -23
  34. data/lib/mailslurp_client/models/bounce_recipient.rb +22 -42
  35. data/lib/mailslurp_client/models/bounced_email_dto.rb +56 -76
  36. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +16 -31
  37. data/lib/mailslurp_client/models/bulk_send_email_options.rb +5 -0
  38. data/lib/mailslurp_client/models/condition_option.rb +2 -2
  39. data/lib/mailslurp_client/models/contact_dto.rb +53 -73
  40. data/lib/mailslurp_client/models/contact_projection.rb +42 -52
  41. data/lib/mailslurp_client/models/count_dto.rb +206 -0
  42. data/lib/mailslurp_client/models/create_contact_options.rb +42 -42
  43. data/lib/mailslurp_client/models/create_domain_options.rb +21 -16
  44. data/lib/mailslurp_client/models/create_group_options.rb +0 -5
  45. data/lib/mailslurp_client/models/create_inbox_dto.rb +58 -58
  46. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +19 -14
  47. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +23 -23
  48. data/lib/mailslurp_client/models/create_template_options.rb +0 -10
  49. data/lib/mailslurp_client/models/create_webhook_options.rb +18 -18
  50. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +15 -25
  51. data/lib/mailslurp_client/models/dns_lookup_options.rb +24 -14
  52. data/lib/mailslurp_client/models/dns_lookup_result.rb +23 -42
  53. data/lib/mailslurp_client/models/dns_lookup_results.rb +0 -5
  54. data/lib/mailslurp_client/models/domain_dto.rb +59 -80
  55. data/lib/mailslurp_client/models/domain_name_record.rb +11 -30
  56. data/lib/mailslurp_client/models/domain_preview.rb +26 -50
  57. data/lib/mailslurp_client/models/email.rb +134 -135
  58. data/lib/mailslurp_client/models/email_analysis.rb +28 -28
  59. data/lib/mailslurp_client/models/email_content_match_result.rb +13 -23
  60. data/lib/mailslurp_client/models/email_links_result.rb +13 -23
  61. data/lib/mailslurp_client/models/email_preview.rb +47 -47
  62. data/lib/mailslurp_client/models/email_projection.rb +77 -97
  63. data/lib/mailslurp_client/models/email_recipients.rb +16 -15
  64. data/lib/mailslurp_client/models/email_text_lines_result.rb +13 -23
  65. data/lib/mailslurp_client/models/email_verification_result.rb +16 -36
  66. data/lib/mailslurp_client/models/expiration_defaults.rb +16 -26
  67. data/lib/mailslurp_client/models/expired_inbox_dto.rb +13 -28
  68. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +22 -42
  69. data/lib/mailslurp_client/models/export_link.rb +0 -5
  70. data/lib/mailslurp_client/models/export_options.rb +1 -6
  71. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +13 -23
  72. data/lib/mailslurp_client/models/forward_email_options.rb +36 -31
  73. data/lib/mailslurp_client/models/gravatar_url.rb +13 -23
  74. data/lib/mailslurp_client/models/group_contacts_dto.rb +13 -23
  75. data/lib/mailslurp_client/models/group_dto.rb +22 -37
  76. data/lib/mailslurp_client/models/group_projection.rb +22 -37
  77. data/lib/mailslurp_client/models/html_validation_result.rb +13 -14
  78. data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +47 -57
  79. data/lib/mailslurp_client/models/inbox_exists_dto.rb +0 -5
  80. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +31 -61
  81. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +0 -5
  82. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +13 -23
  83. data/lib/mailslurp_client/models/inbox_preview.rb +38 -38
  84. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +43 -78
  85. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +0 -5
  86. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +13 -18
  87. data/lib/mailslurp_client/models/inline_object.rb +221 -0
  88. data/lib/mailslurp_client/models/ip_address_result.rb +0 -10
  89. data/lib/mailslurp_client/models/json_schema_dto.rb +0 -5
  90. data/lib/mailslurp_client/models/match_option.rb +7 -2
  91. data/lib/mailslurp_client/models/match_options.rb +16 -16
  92. data/lib/mailslurp_client/models/missed_email.rb +67 -102
  93. data/lib/mailslurp_client/models/missed_email_projection.rb +19 -29
  94. data/lib/mailslurp_client/models/name_server_record.rb +10 -30
  95. data/lib/mailslurp_client/models/organization_inbox_projection.rb +44 -44
  96. data/lib/mailslurp_client/models/page_alias.rb +52 -52
  97. data/lib/mailslurp_client/models/page_attachment_entity.rb +52 -52
  98. data/lib/mailslurp_client/models/page_bounced_email.rb +52 -52
  99. data/lib/mailslurp_client/models/page_bounced_recipients.rb +52 -52
  100. data/lib/mailslurp_client/models/page_contact_projection.rb +52 -52
  101. data/lib/mailslurp_client/models/page_email_preview.rb +52 -52
  102. data/lib/mailslurp_client/models/page_email_projection.rb +52 -52
  103. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +52 -52
  104. data/lib/mailslurp_client/models/page_group_projection.rb +52 -52
  105. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +52 -52
  106. data/lib/mailslurp_client/models/page_inbox_projection.rb +52 -52
  107. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +52 -52
  108. data/lib/mailslurp_client/models/page_missed_email_projection.rb +52 -52
  109. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +52 -52
  110. data/lib/mailslurp_client/models/page_sent_email_projection.rb +49 -49
  111. data/lib/mailslurp_client/models/page_template_projection.rb +52 -52
  112. data/lib/mailslurp_client/models/page_thread_projection.rb +52 -52
  113. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +52 -52
  114. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +52 -52
  115. data/lib/mailslurp_client/models/page_webhook_projection.rb +52 -52
  116. data/lib/mailslurp_client/models/page_webhook_result.rb +52 -52
  117. data/lib/mailslurp_client/models/pageable.rb +10 -10
  118. data/lib/mailslurp_client/models/raw_email_json.rb +0 -5
  119. data/lib/mailslurp_client/models/recipient.rb +13 -23
  120. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +38 -37
  121. data/lib/mailslurp_client/models/reply_to_email_options.rb +51 -50
  122. data/lib/mailslurp_client/models/send_email_options.rb +107 -115
  123. data/lib/mailslurp_client/models/sender.rb +14 -23
  124. data/lib/mailslurp_client/models/sent_email_dto.rb +97 -102
  125. data/lib/mailslurp_client/models/sent_email_projection.rb +66 -105
  126. data/lib/mailslurp_client/models/simple_send_email_options.rb +24 -24
  127. data/lib/mailslurp_client/models/template_dto.rb +22 -47
  128. data/lib/mailslurp_client/models/template_projection.rb +16 -41
  129. data/lib/mailslurp_client/models/template_variable.rb +0 -10
  130. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +0 -10
  131. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +0 -10
  132. data/lib/mailslurp_client/models/thread_projection.rb +60 -95
  133. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +43 -68
  134. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +34 -54
  135. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +19 -29
  136. data/lib/mailslurp_client/models/unread_count.rb +0 -5
  137. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +0 -5
  138. data/lib/mailslurp_client/models/update_group_contacts.rb +0 -5
  139. data/lib/mailslurp_client/models/update_inbox_options.rb +26 -26
  140. data/lib/mailslurp_client/models/upload_attachment_options.rb +14 -14
  141. data/lib/mailslurp_client/models/validation_message.rb +1 -5
  142. data/lib/mailslurp_client/models/verify_email_address_options.rb +0 -5
  143. data/lib/mailslurp_client/models/wait_for_conditions.rb +48 -58
  144. data/lib/mailslurp_client/models/webhook_dto.rb +64 -69
  145. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +42 -42
  146. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +49 -49
  147. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +43 -43
  148. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +75 -95
  149. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +84 -84
  150. data/lib/mailslurp_client/models/webhook_projection.rb +36 -61
  151. data/lib/mailslurp_client/models/webhook_redrive_result.rb +13 -23
  152. data/lib/mailslurp_client/models/webhook_result_dto.rb +76 -126
  153. data/lib/mailslurp_client/models/webhook_test_request.rb +21 -36
  154. data/lib/mailslurp_client/models/webhook_test_response.rb +13 -13
  155. data/lib/mailslurp_client/models/webhook_test_result.rb +13 -23
  156. data/lib/mailslurp_client/version.rb +1 -1
  157. data/lib/mailslurp_client.rb +3 -1
  158. metadata +5 -3
@@ -15,20 +15,20 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Representation of a webhook
17
17
  class WebhookProjection
18
- attr_accessor :created_at
19
-
20
- attr_accessor :event_name
18
+ attr_accessor :name
21
19
 
22
20
  attr_accessor :id
23
21
 
24
- attr_accessor :inbox_id
25
-
26
- attr_accessor :name
27
-
28
22
  attr_accessor :updated_at
29
23
 
30
24
  attr_accessor :url
31
25
 
26
+ attr_accessor :inbox_id
27
+
28
+ attr_accessor :event_name
29
+
30
+ attr_accessor :created_at
31
+
32
32
  class EnumAttributeValidator
33
33
  attr_reader :datatype
34
34
  attr_reader :allowable_values
@@ -54,26 +54,26 @@ module MailSlurpClient
54
54
  # Attribute mapping from ruby-style variable name to JSON key.
55
55
  def self.attribute_map
56
56
  {
57
- :'created_at' => :'createdAt',
58
- :'event_name' => :'eventName',
59
- :'id' => :'id',
60
- :'inbox_id' => :'inboxId',
61
57
  :'name' => :'name',
58
+ :'id' => :'id',
62
59
  :'updated_at' => :'updatedAt',
63
- :'url' => :'url'
60
+ :'url' => :'url',
61
+ :'inbox_id' => :'inboxId',
62
+ :'event_name' => :'eventName',
63
+ :'created_at' => :'createdAt'
64
64
  }
65
65
  end
66
66
 
67
67
  # Attribute type mapping.
68
68
  def self.openapi_types
69
69
  {
70
- :'created_at' => :'DateTime',
71
- :'event_name' => :'String',
72
- :'id' => :'String',
73
- :'inbox_id' => :'String',
74
70
  :'name' => :'String',
71
+ :'id' => :'String',
75
72
  :'updated_at' => :'DateTime',
76
- :'url' => :'String'
73
+ :'url' => :'String',
74
+ :'inbox_id' => :'String',
75
+ :'event_name' => :'String',
76
+ :'created_at' => :'DateTime'
77
77
  }
78
78
  end
79
79
 
@@ -98,26 +98,14 @@ module MailSlurpClient
98
98
  h[k.to_sym] = v
99
99
  }
100
100
 
101
- if attributes.key?(:'created_at')
102
- self.created_at = attributes[:'created_at']
103
- end
104
-
105
- if attributes.key?(:'event_name')
106
- self.event_name = attributes[:'event_name']
101
+ if attributes.key?(:'name')
102
+ self.name = attributes[:'name']
107
103
  end
108
104
 
109
105
  if attributes.key?(:'id')
110
106
  self.id = attributes[:'id']
111
107
  end
112
108
 
113
- if attributes.key?(:'inbox_id')
114
- self.inbox_id = attributes[:'inbox_id']
115
- end
116
-
117
- if attributes.key?(:'name')
118
- self.name = attributes[:'name']
119
- end
120
-
121
109
  if attributes.key?(:'updated_at')
122
110
  self.updated_at = attributes[:'updated_at']
123
111
  end
@@ -125,45 +113,32 @@ module MailSlurpClient
125
113
  if attributes.key?(:'url')
126
114
  self.url = attributes[:'url']
127
115
  end
128
- end
129
-
130
- # Show invalid properties with the reasons. Usually used together with valid?
131
- # @return Array for valid properties with the reasons
132
- def list_invalid_properties
133
- invalid_properties = Array.new
134
- if @created_at.nil?
135
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
136
- end
137
-
138
- if @id.nil?
139
- invalid_properties.push('invalid value for "id", id cannot be nil.')
140
- end
141
116
 
142
- if @inbox_id.nil?
143
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
117
+ if attributes.key?(:'inbox_id')
118
+ self.inbox_id = attributes[:'inbox_id']
144
119
  end
145
120
 
146
- if @updated_at.nil?
147
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
121
+ if attributes.key?(:'event_name')
122
+ self.event_name = attributes[:'event_name']
148
123
  end
149
124
 
150
- if @url.nil?
151
- invalid_properties.push('invalid value for "url", url cannot be nil.')
125
+ if attributes.key?(:'created_at')
126
+ self.created_at = attributes[:'created_at']
152
127
  end
128
+ end
153
129
 
130
+ # Show invalid properties with the reasons. Usually used together with valid?
131
+ # @return Array for valid properties with the reasons
132
+ def list_invalid_properties
133
+ invalid_properties = Array.new
154
134
  invalid_properties
155
135
  end
156
136
 
157
137
  # Check to see if the all the properties in the model are valid
158
138
  # @return true if the model is valid
159
139
  def valid?
160
- return false if @created_at.nil?
161
140
  event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
162
141
  return false unless event_name_validator.valid?(@event_name)
163
- return false if @id.nil?
164
- return false if @inbox_id.nil?
165
- return false if @updated_at.nil?
166
- return false if @url.nil?
167
142
  true
168
143
  end
169
144
 
@@ -182,13 +157,13 @@ module MailSlurpClient
182
157
  def ==(o)
183
158
  return true if self.equal?(o)
184
159
  self.class == o.class &&
185
- created_at == o.created_at &&
186
- event_name == o.event_name &&
187
- id == o.id &&
188
- inbox_id == o.inbox_id &&
189
160
  name == o.name &&
161
+ id == o.id &&
190
162
  updated_at == o.updated_at &&
191
- url == o.url
163
+ url == o.url &&
164
+ inbox_id == o.inbox_id &&
165
+ event_name == o.event_name &&
166
+ created_at == o.created_at
192
167
  end
193
168
 
194
169
  # @see the `==` method
@@ -200,7 +175,7 @@ module MailSlurpClient
200
175
  # Calculates hash code according to all attributes.
201
176
  # @return [Integer] Hash code
202
177
  def hash
203
- [created_at, event_name, id, inbox_id, name, updated_at, url].hash
178
+ [name, id, updated_at, url, inbox_id, event_name, created_at].hash
204
179
  end
205
180
 
206
181
  # Builds the object from hash
@@ -14,27 +14,27 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class WebhookRedriveResult
17
- attr_accessor :message
17
+ attr_accessor :webhook_result_id
18
18
 
19
19
  attr_accessor :success
20
20
 
21
- attr_accessor :webhook_result_id
21
+ attr_accessor :message
22
22
 
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
- :'message' => :'message',
26
+ :'webhook_result_id' => :'webhookResultId',
27
27
  :'success' => :'success',
28
- :'webhook_result_id' => :'webhookResultId'
28
+ :'message' => :'message'
29
29
  }
30
30
  end
31
31
 
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'message' => :'String',
35
+ :'webhook_result_id' => :'String',
36
36
  :'success' => :'Boolean',
37
- :'webhook_result_id' => :'String'
37
+ :'message' => :'String'
38
38
  }
39
39
  end
40
40
 
@@ -59,16 +59,16 @@ module MailSlurpClient
59
59
  h[k.to_sym] = v
60
60
  }
61
61
 
62
- if attributes.key?(:'message')
63
- self.message = attributes[:'message']
62
+ if attributes.key?(:'webhook_result_id')
63
+ self.webhook_result_id = attributes[:'webhook_result_id']
64
64
  end
65
65
 
66
66
  if attributes.key?(:'success')
67
67
  self.success = attributes[:'success']
68
68
  end
69
69
 
70
- if attributes.key?(:'webhook_result_id')
71
- self.webhook_result_id = attributes[:'webhook_result_id']
70
+ if attributes.key?(:'message')
71
+ self.message = attributes[:'message']
72
72
  end
73
73
  end
74
74
 
@@ -76,22 +76,12 @@ module MailSlurpClient
76
76
  # @return Array for valid properties with the reasons
77
77
  def list_invalid_properties
78
78
  invalid_properties = Array.new
79
- if @success.nil?
80
- invalid_properties.push('invalid value for "success", success cannot be nil.')
81
- end
82
-
83
- if @webhook_result_id.nil?
84
- invalid_properties.push('invalid value for "webhook_result_id", webhook_result_id cannot be nil.')
85
- end
86
-
87
79
  invalid_properties
88
80
  end
89
81
 
90
82
  # Check to see if the all the properties in the model are valid
91
83
  # @return true if the model is valid
92
84
  def valid?
93
- return false if @success.nil?
94
- return false if @webhook_result_id.nil?
95
85
  true
96
86
  end
97
87
 
@@ -100,9 +90,9 @@ module MailSlurpClient
100
90
  def ==(o)
101
91
  return true if self.equal?(o)
102
92
  self.class == o.class &&
103
- message == o.message &&
93
+ webhook_result_id == o.webhook_result_id &&
104
94
  success == o.success &&
105
- webhook_result_id == o.webhook_result_id
95
+ message == o.message
106
96
  end
107
97
 
108
98
  # @see the `==` method
@@ -114,7 +104,7 @@ module MailSlurpClient
114
104
  # Calculates hash code according to all attributes.
115
105
  # @return [Integer] Hash code
116
106
  def hash
117
- [message, success, webhook_result_id].hash
107
+ [webhook_result_id, success, message].hash
118
108
  end
119
109
 
120
110
  # Builds the object from hash
@@ -14,37 +14,37 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class WebhookResultDto
17
- attr_accessor :created_at
18
-
19
- attr_accessor :http_method
20
-
21
17
  attr_accessor :id
22
18
 
19
+ attr_accessor :user_id
20
+
23
21
  attr_accessor :inbox_id
24
22
 
23
+ attr_accessor :webhook_id
24
+
25
+ attr_accessor :webhook_url
26
+
25
27
  attr_accessor :message_id
26
28
 
27
29
  attr_accessor :redrive_id
28
30
 
29
- attr_accessor :response_body_extract
31
+ attr_accessor :http_method
32
+
33
+ attr_accessor :webhook_event
30
34
 
31
35
  attr_accessor :response_status
32
36
 
33
37
  attr_accessor :response_time_millis
34
38
 
39
+ attr_accessor :response_body_extract
40
+
35
41
  attr_accessor :result_type
36
42
 
37
- attr_accessor :seen
43
+ attr_accessor :created_at
38
44
 
39
45
  attr_accessor :updated_at
40
46
 
41
- attr_accessor :user_id
42
-
43
- attr_accessor :webhook_event
44
-
45
- attr_accessor :webhook_id
46
-
47
- attr_accessor :webhook_url
47
+ attr_accessor :seen
48
48
 
49
49
  class EnumAttributeValidator
50
50
  attr_reader :datatype
@@ -71,44 +71,44 @@ module MailSlurpClient
71
71
  # Attribute mapping from ruby-style variable name to JSON key.
72
72
  def self.attribute_map
73
73
  {
74
- :'created_at' => :'createdAt',
75
- :'http_method' => :'httpMethod',
76
74
  :'id' => :'id',
75
+ :'user_id' => :'userId',
77
76
  :'inbox_id' => :'inboxId',
77
+ :'webhook_id' => :'webhookId',
78
+ :'webhook_url' => :'webhookUrl',
78
79
  :'message_id' => :'messageId',
79
80
  :'redrive_id' => :'redriveId',
80
- :'response_body_extract' => :'responseBodyExtract',
81
+ :'http_method' => :'httpMethod',
82
+ :'webhook_event' => :'webhookEvent',
81
83
  :'response_status' => :'responseStatus',
82
84
  :'response_time_millis' => :'responseTimeMillis',
85
+ :'response_body_extract' => :'responseBodyExtract',
83
86
  :'result_type' => :'resultType',
84
- :'seen' => :'seen',
87
+ :'created_at' => :'createdAt',
85
88
  :'updated_at' => :'updatedAt',
86
- :'user_id' => :'userId',
87
- :'webhook_event' => :'webhookEvent',
88
- :'webhook_id' => :'webhookId',
89
- :'webhook_url' => :'webhookUrl'
89
+ :'seen' => :'seen'
90
90
  }
91
91
  end
92
92
 
93
93
  # Attribute type mapping.
94
94
  def self.openapi_types
95
95
  {
96
- :'created_at' => :'DateTime',
97
- :'http_method' => :'String',
98
96
  :'id' => :'String',
97
+ :'user_id' => :'String',
99
98
  :'inbox_id' => :'String',
99
+ :'webhook_id' => :'String',
100
+ :'webhook_url' => :'String',
100
101
  :'message_id' => :'String',
101
102
  :'redrive_id' => :'String',
102
- :'response_body_extract' => :'String',
103
+ :'http_method' => :'String',
104
+ :'webhook_event' => :'String',
103
105
  :'response_status' => :'Integer',
104
106
  :'response_time_millis' => :'Integer',
107
+ :'response_body_extract' => :'String',
105
108
  :'result_type' => :'String',
106
- :'seen' => :'Boolean',
109
+ :'created_at' => :'DateTime',
107
110
  :'updated_at' => :'DateTime',
108
- :'user_id' => :'String',
109
- :'webhook_event' => :'String',
110
- :'webhook_id' => :'String',
111
- :'webhook_url' => :'String'
111
+ :'seen' => :'Boolean'
112
112
  }
113
113
  end
114
114
 
@@ -133,22 +133,26 @@ module MailSlurpClient
133
133
  h[k.to_sym] = v
134
134
  }
135
135
 
136
- if attributes.key?(:'created_at')
137
- self.created_at = attributes[:'created_at']
138
- end
139
-
140
- if attributes.key?(:'http_method')
141
- self.http_method = attributes[:'http_method']
142
- end
143
-
144
136
  if attributes.key?(:'id')
145
137
  self.id = attributes[:'id']
146
138
  end
147
139
 
140
+ if attributes.key?(:'user_id')
141
+ self.user_id = attributes[:'user_id']
142
+ end
143
+
148
144
  if attributes.key?(:'inbox_id')
149
145
  self.inbox_id = attributes[:'inbox_id']
150
146
  end
151
147
 
148
+ if attributes.key?(:'webhook_id')
149
+ self.webhook_id = attributes[:'webhook_id']
150
+ end
151
+
152
+ if attributes.key?(:'webhook_url')
153
+ self.webhook_url = attributes[:'webhook_url']
154
+ end
155
+
152
156
  if attributes.key?(:'message_id')
153
157
  self.message_id = attributes[:'message_id']
154
158
  end
@@ -157,8 +161,12 @@ module MailSlurpClient
157
161
  self.redrive_id = attributes[:'redrive_id']
158
162
  end
159
163
 
160
- if attributes.key?(:'response_body_extract')
161
- self.response_body_extract = attributes[:'response_body_extract']
164
+ if attributes.key?(:'http_method')
165
+ self.http_method = attributes[:'http_method']
166
+ end
167
+
168
+ if attributes.key?(:'webhook_event')
169
+ self.webhook_event = attributes[:'webhook_event']
162
170
  end
163
171
 
164
172
  if attributes.key?(:'response_status')
@@ -169,32 +177,24 @@ module MailSlurpClient
169
177
  self.response_time_millis = attributes[:'response_time_millis']
170
178
  end
171
179
 
180
+ if attributes.key?(:'response_body_extract')
181
+ self.response_body_extract = attributes[:'response_body_extract']
182
+ end
183
+
172
184
  if attributes.key?(:'result_type')
173
185
  self.result_type = attributes[:'result_type']
174
186
  end
175
187
 
176
- if attributes.key?(:'seen')
177
- self.seen = attributes[:'seen']
188
+ if attributes.key?(:'created_at')
189
+ self.created_at = attributes[:'created_at']
178
190
  end
179
191
 
180
192
  if attributes.key?(:'updated_at')
181
193
  self.updated_at = attributes[:'updated_at']
182
194
  end
183
195
 
184
- if attributes.key?(:'user_id')
185
- self.user_id = attributes[:'user_id']
186
- end
187
-
188
- if attributes.key?(:'webhook_event')
189
- self.webhook_event = attributes[:'webhook_event']
190
- end
191
-
192
- if attributes.key?(:'webhook_id')
193
- self.webhook_id = attributes[:'webhook_id']
194
- end
195
-
196
- if attributes.key?(:'webhook_url')
197
- self.webhook_url = attributes[:'webhook_url']
196
+ if attributes.key?(:'seen')
197
+ self.seen = attributes[:'seen']
198
198
  end
199
199
  end
200
200
 
@@ -202,68 +202,18 @@ module MailSlurpClient
202
202
  # @return Array for valid properties with the reasons
203
203
  def list_invalid_properties
204
204
  invalid_properties = Array.new
205
- if @created_at.nil?
206
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
207
- end
208
-
209
- if @http_method.nil?
210
- invalid_properties.push('invalid value for "http_method", http_method cannot be nil.')
211
- end
212
-
213
- if @inbox_id.nil?
214
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
215
- end
216
-
217
- if @message_id.nil?
218
- invalid_properties.push('invalid value for "message_id", message_id cannot be nil.')
219
- end
220
-
221
- if @response_time_millis.nil?
222
- invalid_properties.push('invalid value for "response_time_millis", response_time_millis cannot be nil.')
223
- end
224
-
225
- if @updated_at.nil?
226
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
227
- end
228
-
229
- if @user_id.nil?
230
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
231
- end
232
-
233
- if @webhook_event.nil?
234
- invalid_properties.push('invalid value for "webhook_event", webhook_event cannot be nil.')
235
- end
236
-
237
- if @webhook_id.nil?
238
- invalid_properties.push('invalid value for "webhook_id", webhook_id cannot be nil.')
239
- end
240
-
241
- if @webhook_url.nil?
242
- invalid_properties.push('invalid value for "webhook_url", webhook_url cannot be nil.')
243
- end
244
-
245
205
  invalid_properties
246
206
  end
247
207
 
248
208
  # Check to see if the all the properties in the model are valid
249
209
  # @return true if the model is valid
250
210
  def valid?
251
- return false if @created_at.nil?
252
- return false if @http_method.nil?
253
211
  http_method_validator = EnumAttributeValidator.new('String', ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "TRACE"])
254
212
  return false unless http_method_validator.valid?(@http_method)
255
- return false if @inbox_id.nil?
256
- return false if @message_id.nil?
257
- return false if @response_time_millis.nil?
258
- result_type_validator = EnumAttributeValidator.new('String', ["BAD_RESPONSE", "EXCEPTION", "SUCCESS"])
259
- return false unless result_type_validator.valid?(@result_type)
260
- return false if @updated_at.nil?
261
- return false if @user_id.nil?
262
- return false if @webhook_event.nil?
263
213
  webhook_event_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
264
214
  return false unless webhook_event_validator.valid?(@webhook_event)
265
- return false if @webhook_id.nil?
266
- return false if @webhook_url.nil?
215
+ result_type_validator = EnumAttributeValidator.new('String', ["BAD_RESPONSE", "EXCEPTION", "SUCCESS"])
216
+ return false unless result_type_validator.valid?(@result_type)
267
217
  true
268
218
  end
269
219
 
@@ -277,16 +227,6 @@ module MailSlurpClient
277
227
  @http_method = http_method
278
228
  end
279
229
 
280
- # Custom attribute writer method checking allowed values (enum).
281
- # @param [Object] result_type Object to be assigned
282
- def result_type=(result_type)
283
- validator = EnumAttributeValidator.new('String', ["BAD_RESPONSE", "EXCEPTION", "SUCCESS"])
284
- unless validator.valid?(result_type)
285
- fail ArgumentError, "invalid value for \"result_type\", must be one of #{validator.allowable_values}."
286
- end
287
- @result_type = result_type
288
- end
289
-
290
230
  # Custom attribute writer method checking allowed values (enum).
291
231
  # @param [Object] webhook_event Object to be assigned
292
232
  def webhook_event=(webhook_event)
@@ -297,27 +237,37 @@ module MailSlurpClient
297
237
  @webhook_event = webhook_event
298
238
  end
299
239
 
240
+ # Custom attribute writer method checking allowed values (enum).
241
+ # @param [Object] result_type Object to be assigned
242
+ def result_type=(result_type)
243
+ validator = EnumAttributeValidator.new('String', ["BAD_RESPONSE", "EXCEPTION", "SUCCESS"])
244
+ unless validator.valid?(result_type)
245
+ fail ArgumentError, "invalid value for \"result_type\", must be one of #{validator.allowable_values}."
246
+ end
247
+ @result_type = result_type
248
+ end
249
+
300
250
  # Checks equality by comparing each attribute.
301
251
  # @param [Object] Object to be compared
302
252
  def ==(o)
303
253
  return true if self.equal?(o)
304
254
  self.class == o.class &&
305
- created_at == o.created_at &&
306
- http_method == o.http_method &&
307
255
  id == o.id &&
256
+ user_id == o.user_id &&
308
257
  inbox_id == o.inbox_id &&
258
+ webhook_id == o.webhook_id &&
259
+ webhook_url == o.webhook_url &&
309
260
  message_id == o.message_id &&
310
261
  redrive_id == o.redrive_id &&
311
- response_body_extract == o.response_body_extract &&
262
+ http_method == o.http_method &&
263
+ webhook_event == o.webhook_event &&
312
264
  response_status == o.response_status &&
313
265
  response_time_millis == o.response_time_millis &&
266
+ response_body_extract == o.response_body_extract &&
314
267
  result_type == o.result_type &&
315
- seen == o.seen &&
268
+ created_at == o.created_at &&
316
269
  updated_at == o.updated_at &&
317
- user_id == o.user_id &&
318
- webhook_event == o.webhook_event &&
319
- webhook_id == o.webhook_id &&
320
- webhook_url == o.webhook_url
270
+ seen == o.seen
321
271
  end
322
272
 
323
273
  # @see the `==` method
@@ -329,7 +279,7 @@ module MailSlurpClient
329
279
  # Calculates hash code according to all attributes.
330
280
  # @return [Integer] Hash code
331
281
  def hash
332
- [created_at, http_method, id, inbox_id, message_id, redrive_id, response_body_extract, response_status, response_time_millis, result_type, seen, updated_at, user_id, webhook_event, webhook_id, webhook_url].hash
282
+ [id, user_id, inbox_id, webhook_id, webhook_url, message_id, redrive_id, http_method, webhook_event, response_status, response_time_millis, response_body_extract, result_type, created_at, updated_at, seen].hash
333
283
  end
334
284
 
335
285
  # Builds the object from hash