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
 
@@ -13,60 +13,61 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Collection of items
16
17
  class SentEmailProjection
17
- attr_accessor :attachments
18
+ attr_accessor :id
18
19
 
19
- attr_accessor :bcc
20
+ attr_accessor :from
20
21
 
21
- attr_accessor :body_md5_hash
22
+ attr_accessor :user_id
22
23
 
23
- attr_accessor :cc
24
+ attr_accessor :subject
24
25
 
25
- attr_accessor :created_at
26
+ attr_accessor :inbox_id
26
27
 
27
- attr_accessor :from
28
+ attr_accessor :to
28
29
 
29
- attr_accessor :id
30
+ attr_accessor :attachments
30
31
 
31
- attr_accessor :inbox_id
32
+ attr_accessor :created_at
32
33
 
33
- attr_accessor :subject
34
+ attr_accessor :bcc
34
35
 
35
- attr_accessor :to
36
+ attr_accessor :cc
36
37
 
37
- attr_accessor :user_id
38
+ attr_accessor :body_md5_hash
38
39
 
39
40
  # Attribute mapping from ruby-style variable name to JSON key.
40
41
  def self.attribute_map
41
42
  {
42
- :'attachments' => :'attachments',
43
- :'bcc' => :'bcc',
44
- :'body_md5_hash' => :'bodyMD5Hash',
45
- :'cc' => :'cc',
46
- :'created_at' => :'createdAt',
47
- :'from' => :'from',
48
43
  :'id' => :'id',
49
- :'inbox_id' => :'inboxId',
44
+ :'from' => :'from',
45
+ :'user_id' => :'userId',
50
46
  :'subject' => :'subject',
47
+ :'inbox_id' => :'inboxId',
51
48
  :'to' => :'to',
52
- :'user_id' => :'userId'
49
+ :'attachments' => :'attachments',
50
+ :'created_at' => :'createdAt',
51
+ :'bcc' => :'bcc',
52
+ :'cc' => :'cc',
53
+ :'body_md5_hash' => :'bodyMD5Hash'
53
54
  }
54
55
  end
55
56
 
56
57
  # Attribute type mapping.
57
58
  def self.openapi_types
58
59
  {
59
- :'attachments' => :'Array<String>',
60
- :'bcc' => :'Array<String>',
61
- :'body_md5_hash' => :'String',
62
- :'cc' => :'Array<String>',
63
- :'created_at' => :'DateTime',
64
- :'from' => :'String',
65
60
  :'id' => :'String',
66
- :'inbox_id' => :'String',
61
+ :'from' => :'String',
62
+ :'user_id' => :'String',
67
63
  :'subject' => :'String',
64
+ :'inbox_id' => :'String',
68
65
  :'to' => :'Array<String>',
69
- :'user_id' => :'String'
66
+ :'attachments' => :'Array<String>',
67
+ :'created_at' => :'DateTime',
68
+ :'bcc' => :'Array<String>',
69
+ :'cc' => :'Array<String>',
70
+ :'body_md5_hash' => :'String'
70
71
  }
71
72
  end
72
73
 
@@ -91,56 +92,56 @@ module MailSlurpClient
91
92
  h[k.to_sym] = v
92
93
  }
93
94
 
94
- if attributes.key?(:'attachments')
95
- if (value = attributes[:'attachments']).is_a?(Array)
96
- self.attachments = value
97
- end
95
+ if attributes.key?(:'id')
96
+ self.id = attributes[:'id']
98
97
  end
99
98
 
100
- if attributes.key?(:'bcc')
101
- if (value = attributes[:'bcc']).is_a?(Array)
102
- self.bcc = value
103
- end
99
+ if attributes.key?(:'from')
100
+ self.from = attributes[:'from']
104
101
  end
105
102
 
106
- if attributes.key?(:'body_md5_hash')
107
- self.body_md5_hash = attributes[:'body_md5_hash']
103
+ if attributes.key?(:'user_id')
104
+ self.user_id = attributes[:'user_id']
108
105
  end
109
106
 
110
- if attributes.key?(:'cc')
111
- if (value = attributes[:'cc']).is_a?(Array)
112
- self.cc = value
113
- end
107
+ if attributes.key?(:'subject')
108
+ self.subject = attributes[:'subject']
114
109
  end
115
110
 
116
- if attributes.key?(:'created_at')
117
- self.created_at = attributes[:'created_at']
111
+ if attributes.key?(:'inbox_id')
112
+ self.inbox_id = attributes[:'inbox_id']
118
113
  end
119
114
 
120
- if attributes.key?(:'from')
121
- self.from = attributes[:'from']
115
+ if attributes.key?(:'to')
116
+ if (value = attributes[:'to']).is_a?(Array)
117
+ self.to = value
118
+ end
122
119
  end
123
120
 
124
- if attributes.key?(:'id')
125
- self.id = attributes[:'id']
121
+ if attributes.key?(:'attachments')
122
+ if (value = attributes[:'attachments']).is_a?(Array)
123
+ self.attachments = value
124
+ end
126
125
  end
127
126
 
128
- if attributes.key?(:'inbox_id')
129
- self.inbox_id = attributes[:'inbox_id']
127
+ if attributes.key?(:'created_at')
128
+ self.created_at = attributes[:'created_at']
130
129
  end
131
130
 
132
- if attributes.key?(:'subject')
133
- self.subject = attributes[:'subject']
131
+ if attributes.key?(:'bcc')
132
+ if (value = attributes[:'bcc']).is_a?(Array)
133
+ self.bcc = value
134
+ end
134
135
  end
135
136
 
136
- if attributes.key?(:'to')
137
- if (value = attributes[:'to']).is_a?(Array)
138
- self.to = value
137
+ if attributes.key?(:'cc')
138
+ if (value = attributes[:'cc']).is_a?(Array)
139
+ self.cc = value
139
140
  end
140
141
  end
141
142
 
142
- if attributes.key?(:'user_id')
143
- self.user_id = attributes[:'user_id']
143
+ if attributes.key?(:'body_md5_hash')
144
+ self.body_md5_hash = attributes[:'body_md5_hash']
144
145
  end
145
146
  end
146
147
 
@@ -148,36 +149,36 @@ module MailSlurpClient
148
149
  # @return Array for valid properties with the reasons
149
150
  def list_invalid_properties
150
151
  invalid_properties = Array.new
151
- if @attachments.nil?
152
- invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
152
+ if @id.nil?
153
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
153
154
  end
154
155
 
155
- if @bcc.nil?
156
- invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
156
+ if @user_id.nil?
157
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
157
158
  end
158
159
 
159
- if @cc.nil?
160
- invalid_properties.push('invalid value for "cc", cc cannot be nil.')
160
+ if @inbox_id.nil?
161
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
161
162
  end
162
163
 
163
- if @created_at.nil?
164
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
164
+ if @to.nil?
165
+ invalid_properties.push('invalid value for "to", to cannot be nil.')
165
166
  end
166
167
 
167
- if @id.nil?
168
- invalid_properties.push('invalid value for "id", id cannot be nil.')
168
+ if @attachments.nil?
169
+ invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
169
170
  end
170
171
 
171
- if @inbox_id.nil?
172
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
172
+ if @created_at.nil?
173
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
173
174
  end
174
175
 
175
- if @to.nil?
176
- invalid_properties.push('invalid value for "to", to cannot be nil.')
176
+ if @bcc.nil?
177
+ invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
177
178
  end
178
179
 
179
- if @user_id.nil?
180
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
180
+ if @cc.nil?
181
+ invalid_properties.push('invalid value for "cc", cc cannot be nil.')
181
182
  end
182
183
 
183
184
  invalid_properties
@@ -186,14 +187,14 @@ module MailSlurpClient
186
187
  # Check to see if the all the properties in the model are valid
187
188
  # @return true if the model is valid
188
189
  def valid?
189
- return false if @attachments.nil?
190
- return false if @bcc.nil?
191
- return false if @cc.nil?
192
- return false if @created_at.nil?
193
190
  return false if @id.nil?
191
+ return false if @user_id.nil?
194
192
  return false if @inbox_id.nil?
195
193
  return false if @to.nil?
196
- return false if @user_id.nil?
194
+ return false if @attachments.nil?
195
+ return false if @created_at.nil?
196
+ return false if @bcc.nil?
197
+ return false if @cc.nil?
197
198
  true
198
199
  end
199
200
 
@@ -202,17 +203,17 @@ module MailSlurpClient
202
203
  def ==(o)
203
204
  return true if self.equal?(o)
204
205
  self.class == o.class &&
205
- attachments == o.attachments &&
206
- bcc == o.bcc &&
207
- body_md5_hash == o.body_md5_hash &&
208
- cc == o.cc &&
209
- created_at == o.created_at &&
210
- from == o.from &&
211
206
  id == o.id &&
212
- inbox_id == o.inbox_id &&
207
+ from == o.from &&
208
+ user_id == o.user_id &&
213
209
  subject == o.subject &&
210
+ inbox_id == o.inbox_id &&
214
211
  to == o.to &&
215
- user_id == o.user_id
212
+ attachments == o.attachments &&
213
+ created_at == o.created_at &&
214
+ bcc == o.bcc &&
215
+ cc == o.cc &&
216
+ body_md5_hash == o.body_md5_hash
216
217
  end
217
218
 
218
219
  # @see the `==` method
@@ -224,7 +225,7 @@ module MailSlurpClient
224
225
  # Calculates hash code according to all attributes.
225
226
  # @return [Integer] Hash code
226
227
  def hash
227
- [attachments, bcc, body_md5_hash, cc, created_at, from, id, inbox_id, subject, to, user_id].hash
228
+ [id, from, user_id, subject, inbox_id, to, attachments, created_at, bcc, cc, body_md5_hash].hash
228
229
  end
229
230
 
230
231
  # 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
 
@@ -62,12 +62,17 @@ module MailSlurpClient
62
62
  # @return Array for valid properties with the reasons
63
63
  def list_invalid_properties
64
64
  invalid_properties = Array.new
65
+ if @state.nil?
66
+ invalid_properties.push('invalid value for "state", state cannot be nil.')
67
+ end
68
+
65
69
  invalid_properties
66
70
  end
67
71
 
68
72
  # Check to see if the all the properties in the model are valid
69
73
  # @return true if the model is valid
70
74
  def valid?
75
+ return false if @state.nil?
71
76
  true
72
77
  end
73
78
 
@@ -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,35 +14,35 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class SimpleSendEmailOptions
17
- # Body of the email message. Supports HTML
18
- attr_accessor :body
19
-
20
17
  # ID of inbox to send from. If null an inbox will be created for sending
21
18
  attr_accessor :sender_id
22
19
 
23
- # Subject line of the email
24
- attr_accessor :subject
25
-
26
20
  # Email address to send to
27
21
  attr_accessor :to
28
22
 
23
+ # Body of the email message. Supports HTML
24
+ attr_accessor :body
25
+
26
+ # Subject line of the email
27
+ attr_accessor :subject
28
+
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
- :'body' => :'body',
33
32
  :'sender_id' => :'senderId',
34
- :'subject' => :'subject',
35
- :'to' => :'to'
33
+ :'to' => :'to',
34
+ :'body' => :'body',
35
+ :'subject' => :'subject'
36
36
  }
37
37
  end
38
38
 
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'body' => :'String',
43
42
  :'sender_id' => :'String',
44
- :'subject' => :'String',
45
- :'to' => :'String'
43
+ :'to' => :'String',
44
+ :'body' => :'String',
45
+ :'subject' => :'String'
46
46
  }
47
47
  end
48
48
 
@@ -67,33 +67,38 @@ module MailSlurpClient
67
67
  h[k.to_sym] = v
68
68
  }
69
69
 
70
- if attributes.key?(:'body')
71
- self.body = attributes[:'body']
72
- end
73
-
74
70
  if attributes.key?(:'sender_id')
75
71
  self.sender_id = attributes[:'sender_id']
76
72
  end
77
73
 
78
- if attributes.key?(:'subject')
79
- self.subject = attributes[:'subject']
80
- end
81
-
82
74
  if attributes.key?(:'to')
83
75
  self.to = attributes[:'to']
84
76
  end
77
+
78
+ if attributes.key?(:'body')
79
+ self.body = attributes[:'body']
80
+ end
81
+
82
+ if attributes.key?(:'subject')
83
+ self.subject = attributes[:'subject']
84
+ end
85
85
  end
86
86
 
87
87
  # Show invalid properties with the reasons. Usually used together with valid?
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
+ if @to.nil?
92
+ invalid_properties.push('invalid value for "to", to cannot be nil.')
93
+ end
94
+
91
95
  invalid_properties
92
96
  end
93
97
 
94
98
  # Check to see if the all the properties in the model are valid
95
99
  # @return true if the model is valid
96
100
  def valid?
101
+ return false if @to.nil?
97
102
  true
98
103
  end
99
104
 
@@ -102,10 +107,10 @@ module MailSlurpClient
102
107
  def ==(o)
103
108
  return true if self.equal?(o)
104
109
  self.class == o.class &&
105
- body == o.body &&
106
110
  sender_id == o.sender_id &&
107
- subject == o.subject &&
108
- to == o.to
111
+ to == o.to &&
112
+ body == o.body &&
113
+ subject == o.subject
109
114
  end
110
115
 
111
116
  # @see the `==` method
@@ -117,7 +122,7 @@ module MailSlurpClient
117
122
  # Calculates hash code according to all attributes.
118
123
  # @return [Integer] Hash code
119
124
  def hash
120
- [body, sender_id, subject, to].hash
125
+ [sender_id, to, body, subject].hash
121
126
  end
122
127
 
123
128
  # 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
 
@@ -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,35 +14,35 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class TemplateDto
17
- attr_accessor :content
18
-
19
- attr_accessor :created_at
20
-
21
17
  attr_accessor :id
22
18
 
23
19
  attr_accessor :name
24
20
 
25
21
  attr_accessor :variables
26
22
 
23
+ attr_accessor :content
24
+
25
+ attr_accessor :created_at
26
+
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
- :'content' => :'content',
31
- :'created_at' => :'createdAt',
32
30
  :'id' => :'id',
33
31
  :'name' => :'name',
34
- :'variables' => :'variables'
32
+ :'variables' => :'variables',
33
+ :'content' => :'content',
34
+ :'created_at' => :'createdAt'
35
35
  }
36
36
  end
37
37
 
38
38
  # Attribute type mapping.
39
39
  def self.openapi_types
40
40
  {
41
- :'content' => :'String',
42
- :'created_at' => :'DateTime',
43
41
  :'id' => :'String',
44
42
  :'name' => :'String',
45
- :'variables' => :'Array<TemplateVariable>'
43
+ :'variables' => :'Array<TemplateVariable>',
44
+ :'content' => :'String',
45
+ :'created_at' => :'DateTime'
46
46
  }
47
47
  end
48
48
 
@@ -67,14 +67,6 @@ module MailSlurpClient
67
67
  h[k.to_sym] = v
68
68
  }
69
69
 
70
- if attributes.key?(:'content')
71
- self.content = attributes[:'content']
72
- end
73
-
74
- if attributes.key?(:'created_at')
75
- self.created_at = attributes[:'created_at']
76
- end
77
-
78
70
  if attributes.key?(:'id')
79
71
  self.id = attributes[:'id']
80
72
  end
@@ -88,20 +80,20 @@ module MailSlurpClient
88
80
  self.variables = value
89
81
  end
90
82
  end
83
+
84
+ if attributes.key?(:'content')
85
+ self.content = attributes[:'content']
86
+ end
87
+
88
+ if attributes.key?(:'created_at')
89
+ self.created_at = attributes[:'created_at']
90
+ end
91
91
  end
92
92
 
93
93
  # Show invalid properties with the reasons. Usually used together with valid?
94
94
  # @return Array for valid properties with the reasons
95
95
  def list_invalid_properties
96
96
  invalid_properties = Array.new
97
- if @content.nil?
98
- invalid_properties.push('invalid value for "content", content cannot be nil.')
99
- end
100
-
101
- if @created_at.nil?
102
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
103
- end
104
-
105
97
  if @id.nil?
106
98
  invalid_properties.push('invalid value for "id", id cannot be nil.')
107
99
  end
@@ -114,17 +106,25 @@ module MailSlurpClient
114
106
  invalid_properties.push('invalid value for "variables", variables cannot be nil.')
115
107
  end
116
108
 
109
+ if @content.nil?
110
+ invalid_properties.push('invalid value for "content", content cannot be nil.')
111
+ end
112
+
113
+ if @created_at.nil?
114
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
115
+ end
116
+
117
117
  invalid_properties
118
118
  end
119
119
 
120
120
  # Check to see if the all the properties in the model are valid
121
121
  # @return true if the model is valid
122
122
  def valid?
123
- return false if @content.nil?
124
- return false if @created_at.nil?
125
123
  return false if @id.nil?
126
124
  return false if @name.nil?
127
125
  return false if @variables.nil?
126
+ return false if @content.nil?
127
+ return false if @created_at.nil?
128
128
  true
129
129
  end
130
130
 
@@ -133,11 +133,11 @@ module MailSlurpClient
133
133
  def ==(o)
134
134
  return true if self.equal?(o)
135
135
  self.class == o.class &&
136
- content == o.content &&
137
- created_at == o.created_at &&
138
136
  id == o.id &&
139
137
  name == o.name &&
140
- variables == o.variables
138
+ variables == o.variables &&
139
+ content == o.content &&
140
+ created_at == o.created_at
141
141
  end
142
142
 
143
143
  # @see the `==` method
@@ -149,7 +149,7 @@ module MailSlurpClient
149
149
  # Calculates hash code according to all attributes.
150
150
  # @return [Integer] Hash code
151
151
  def hash
152
- [content, created_at, id, name, variables].hash
152
+ [id, name, variables, content, created_at].hash
153
153
  end
154
154
 
155
155
  # Builds the object from hash