mailslurp_client 15.0.3 → 15.0.7

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