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
 
@@ -14,51 +14,51 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class TrackingPixelProjection
17
- attr_accessor :created_at
17
+ attr_accessor :name
18
18
 
19
19
  attr_accessor :id
20
20
 
21
21
  attr_accessor :inbox_id
22
22
 
23
- attr_accessor :name
23
+ attr_accessor :user_id
24
24
 
25
- attr_accessor :recipient
25
+ attr_accessor :created_at
26
26
 
27
27
  attr_accessor :seen
28
28
 
29
+ attr_accessor :recipient
30
+
29
31
  attr_accessor :seen_at
30
32
 
31
33
  attr_accessor :sent_email_id
32
34
 
33
- attr_accessor :user_id
34
-
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
36
36
  def self.attribute_map
37
37
  {
38
- :'created_at' => :'createdAt',
38
+ :'name' => :'name',
39
39
  :'id' => :'id',
40
40
  :'inbox_id' => :'inboxId',
41
- :'name' => :'name',
42
- :'recipient' => :'recipient',
41
+ :'user_id' => :'userId',
42
+ :'created_at' => :'createdAt',
43
43
  :'seen' => :'seen',
44
+ :'recipient' => :'recipient',
44
45
  :'seen_at' => :'seenAt',
45
- :'sent_email_id' => :'sentEmailId',
46
- :'user_id' => :'userId'
46
+ :'sent_email_id' => :'sentEmailId'
47
47
  }
48
48
  end
49
49
 
50
50
  # Attribute type mapping.
51
51
  def self.openapi_types
52
52
  {
53
- :'created_at' => :'DateTime',
53
+ :'name' => :'String',
54
54
  :'id' => :'String',
55
55
  :'inbox_id' => :'String',
56
- :'name' => :'String',
57
- :'recipient' => :'String',
56
+ :'user_id' => :'String',
57
+ :'created_at' => :'DateTime',
58
58
  :'seen' => :'Boolean',
59
+ :'recipient' => :'String',
59
60
  :'seen_at' => :'DateTime',
60
- :'sent_email_id' => :'String',
61
- :'user_id' => :'String'
61
+ :'sent_email_id' => :'String'
62
62
  }
63
63
  end
64
64
 
@@ -83,8 +83,8 @@ module MailSlurpClient
83
83
  h[k.to_sym] = v
84
84
  }
85
85
 
86
- if attributes.key?(:'created_at')
87
- self.created_at = attributes[:'created_at']
86
+ if attributes.key?(:'name')
87
+ self.name = attributes[:'name']
88
88
  end
89
89
 
90
90
  if attributes.key?(:'id')
@@ -95,18 +95,22 @@ module MailSlurpClient
95
95
  self.inbox_id = attributes[:'inbox_id']
96
96
  end
97
97
 
98
- if attributes.key?(:'name')
99
- self.name = attributes[:'name']
98
+ if attributes.key?(:'user_id')
99
+ self.user_id = attributes[:'user_id']
100
100
  end
101
101
 
102
- if attributes.key?(:'recipient')
103
- self.recipient = attributes[:'recipient']
102
+ if attributes.key?(:'created_at')
103
+ self.created_at = attributes[:'created_at']
104
104
  end
105
105
 
106
106
  if attributes.key?(:'seen')
107
107
  self.seen = attributes[:'seen']
108
108
  end
109
109
 
110
+ if attributes.key?(:'recipient')
111
+ self.recipient = attributes[:'recipient']
112
+ end
113
+
110
114
  if attributes.key?(:'seen_at')
111
115
  self.seen_at = attributes[:'seen_at']
112
116
  end
@@ -114,42 +118,38 @@ module MailSlurpClient
114
118
  if attributes.key?(:'sent_email_id')
115
119
  self.sent_email_id = attributes[:'sent_email_id']
116
120
  end
117
-
118
- if attributes.key?(:'user_id')
119
- self.user_id = attributes[:'user_id']
120
- end
121
121
  end
122
122
 
123
123
  # Show invalid properties with the reasons. Usually used together with valid?
124
124
  # @return Array for valid properties with the reasons
125
125
  def list_invalid_properties
126
126
  invalid_properties = Array.new
127
- if @created_at.nil?
128
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
129
- end
130
-
131
127
  if @id.nil?
132
128
  invalid_properties.push('invalid value for "id", id cannot be nil.')
133
129
  end
134
130
 
135
- if @seen.nil?
136
- invalid_properties.push('invalid value for "seen", seen cannot be nil.')
137
- end
138
-
139
131
  if @user_id.nil?
140
132
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
141
133
  end
142
134
 
135
+ if @created_at.nil?
136
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
137
+ end
138
+
139
+ if @seen.nil?
140
+ invalid_properties.push('invalid value for "seen", seen cannot be nil.')
141
+ end
142
+
143
143
  invalid_properties
144
144
  end
145
145
 
146
146
  # Check to see if the all the properties in the model are valid
147
147
  # @return true if the model is valid
148
148
  def valid?
149
- return false if @created_at.nil?
150
149
  return false if @id.nil?
151
- return false if @seen.nil?
152
150
  return false if @user_id.nil?
151
+ return false if @created_at.nil?
152
+ return false if @seen.nil?
153
153
  true
154
154
  end
155
155
 
@@ -158,15 +158,15 @@ module MailSlurpClient
158
158
  def ==(o)
159
159
  return true if self.equal?(o)
160
160
  self.class == o.class &&
161
- created_at == o.created_at &&
161
+ name == o.name &&
162
162
  id == o.id &&
163
163
  inbox_id == o.inbox_id &&
164
- name == o.name &&
165
- recipient == o.recipient &&
164
+ user_id == o.user_id &&
165
+ created_at == o.created_at &&
166
166
  seen == o.seen &&
167
+ recipient == o.recipient &&
167
168
  seen_at == o.seen_at &&
168
- sent_email_id == o.sent_email_id &&
169
- user_id == o.user_id
169
+ sent_email_id == o.sent_email_id
170
170
  end
171
171
 
172
172
  # @see the `==` method
@@ -178,7 +178,7 @@ module MailSlurpClient
178
178
  # Calculates hash code according to all attributes.
179
179
  # @return [Integer] Hash code
180
180
  def hash
181
- [created_at, id, inbox_id, name, recipient, seen, seen_at, sent_email_id, user_id].hash
181
+ [name, id, inbox_id, user_id, created_at, seen, recipient, seen_at, sent_email_id].hash
182
182
  end
183
183
 
184
184
  # 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,35 +14,35 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class UnknownMissedEmailProjection
17
- attr_accessor :created_at
17
+ attr_accessor :id
18
18
 
19
19
  attr_accessor :from
20
20
 
21
- attr_accessor :id
22
-
23
21
  attr_accessor :subject
24
22
 
25
23
  attr_accessor :to
26
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
- :'created_at' => :'createdAt',
31
- :'from' => :'from',
32
30
  :'id' => :'id',
31
+ :'from' => :'from',
33
32
  :'subject' => :'subject',
34
- :'to' => :'to'
33
+ :'to' => :'to',
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
- :'created_at' => :'DateTime',
42
- :'from' => :'String',
43
41
  :'id' => :'String',
42
+ :'from' => :'String',
44
43
  :'subject' => :'String',
45
- :'to' => :'Array<String>'
44
+ :'to' => :'Array<String>',
45
+ :'created_at' => :'DateTime'
46
46
  }
47
47
  end
48
48
 
@@ -67,18 +67,14 @@ module MailSlurpClient
67
67
  h[k.to_sym] = v
68
68
  }
69
69
 
70
- if attributes.key?(:'created_at')
71
- self.created_at = attributes[:'created_at']
70
+ if attributes.key?(:'id')
71
+ self.id = attributes[:'id']
72
72
  end
73
73
 
74
74
  if attributes.key?(:'from')
75
75
  self.from = attributes[:'from']
76
76
  end
77
77
 
78
- if attributes.key?(:'id')
79
- self.id = attributes[:'id']
80
- end
81
-
82
78
  if attributes.key?(:'subject')
83
79
  self.subject = attributes[:'subject']
84
80
  end
@@ -88,28 +84,32 @@ module MailSlurpClient
88
84
  self.to = value
89
85
  end
90
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 @created_at.nil?
98
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
99
- end
100
-
101
97
  if @id.nil?
102
98
  invalid_properties.push('invalid value for "id", id cannot be nil.')
103
99
  end
104
100
 
101
+ if @created_at.nil?
102
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
103
+ end
104
+
105
105
  invalid_properties
106
106
  end
107
107
 
108
108
  # Check to see if the all the properties in the model are valid
109
109
  # @return true if the model is valid
110
110
  def valid?
111
- return false if @created_at.nil?
112
111
  return false if @id.nil?
112
+ return false if @created_at.nil?
113
113
  true
114
114
  end
115
115
 
@@ -118,11 +118,11 @@ module MailSlurpClient
118
118
  def ==(o)
119
119
  return true if self.equal?(o)
120
120
  self.class == o.class &&
121
- created_at == o.created_at &&
122
- from == o.from &&
123
121
  id == o.id &&
122
+ from == o.from &&
124
123
  subject == o.subject &&
125
- to == o.to
124
+ to == o.to &&
125
+ created_at == o.created_at
126
126
  end
127
127
 
128
128
  # @see the `==` method
@@ -134,7 +134,7 @@ module MailSlurpClient
134
134
  # Calculates hash code according to all attributes.
135
135
  # @return [Integer] Hash code
136
136
  def hash
137
- [created_at, from, id, subject, to].hash
137
+ [id, from, subject, to, created_at].hash
138
138
  end
139
139
 
140
140
  # 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
 
@@ -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
 
@@ -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
 
@@ -15,40 +15,40 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Options for updating inbox properties
17
17
  class UpdateInboxOptions
18
+ # Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search
19
+ attr_accessor :name
20
+
18
21
  # Description of an inbox for labelling and searching purposes
19
22
  attr_accessor :description
20
23
 
24
+ # Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI.
25
+ attr_accessor :tags
26
+
21
27
  # Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email.
22
28
  attr_accessor :expires_at
23
29
 
24
30
  # Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering
25
31
  attr_accessor :favourite
26
32
 
27
- # Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search
28
- attr_accessor :name
29
-
30
- # Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI.
31
- attr_accessor :tags
32
-
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
+ :'name' => :'name',
36
37
  :'description' => :'description',
38
+ :'tags' => :'tags',
37
39
  :'expires_at' => :'expiresAt',
38
- :'favourite' => :'favourite',
39
- :'name' => :'name',
40
- :'tags' => :'tags'
40
+ :'favourite' => :'favourite'
41
41
  }
42
42
  end
43
43
 
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
+ :'name' => :'String',
47
48
  :'description' => :'String',
49
+ :'tags' => :'Array<String>',
48
50
  :'expires_at' => :'DateTime',
49
- :'favourite' => :'Boolean',
50
- :'name' => :'String',
51
- :'tags' => :'Array<String>'
51
+ :'favourite' => :'Boolean'
52
52
  }
53
53
  end
54
54
 
@@ -73,10 +73,20 @@ module MailSlurpClient
73
73
  h[k.to_sym] = v
74
74
  }
75
75
 
76
+ if attributes.key?(:'name')
77
+ self.name = attributes[:'name']
78
+ end
79
+
76
80
  if attributes.key?(:'description')
77
81
  self.description = attributes[:'description']
78
82
  end
79
83
 
84
+ if attributes.key?(:'tags')
85
+ if (value = attributes[:'tags']).is_a?(Array)
86
+ self.tags = value
87
+ end
88
+ end
89
+
80
90
  if attributes.key?(:'expires_at')
81
91
  self.expires_at = attributes[:'expires_at']
82
92
  end
@@ -84,16 +94,6 @@ module MailSlurpClient
84
94
  if attributes.key?(:'favourite')
85
95
  self.favourite = attributes[:'favourite']
86
96
  end
87
-
88
- if attributes.key?(:'name')
89
- self.name = attributes[:'name']
90
- end
91
-
92
- if attributes.key?(:'tags')
93
- if (value = attributes[:'tags']).is_a?(Array)
94
- self.tags = value
95
- end
96
- end
97
97
  end
98
98
 
99
99
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -114,11 +114,11 @@ module MailSlurpClient
114
114
  def ==(o)
115
115
  return true if self.equal?(o)
116
116
  self.class == o.class &&
117
+ name == o.name &&
117
118
  description == o.description &&
119
+ tags == o.tags &&
118
120
  expires_at == o.expires_at &&
119
- favourite == o.favourite &&
120
- name == o.name &&
121
- tags == o.tags
121
+ favourite == o.favourite
122
122
  end
123
123
 
124
124
  # @see the `==` method
@@ -130,7 +130,7 @@ module MailSlurpClient
130
130
  # Calculates hash code according to all attributes.
131
131
  # @return [Integer] Hash code
132
132
  def hash
133
- [description, expires_at, favourite, name, tags].hash
133
+ [name, description, tags, expires_at, favourite].hash
134
134
  end
135
135
 
136
136
  # 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
 
@@ -15,30 +15,30 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Options for uploading files for attachments. When sending emails with the API that require attachments first upload each attachment. Then use the returned attachment ID in your `SendEmailOptions` when sending an email. This way you can use attachments multiple times once they have been uploaded.
17
17
  class UploadAttachmentOptions
18
- # Base64 encoded string of file contents. Typically this means reading the bytes or string content of a file and then converting that to a base64 encoded string. For examples of how to do this see https://www.mailslurp.com/guides/base64-file-uploads/
19
- attr_accessor :base64_contents
20
-
21
18
  # Optional contentType for file. For instance `application/pdf`
22
19
  attr_accessor :content_type
23
20
 
24
21
  # Optional filename to save upload with. Will be the name that is shown in email clients
25
22
  attr_accessor :filename
26
23
 
24
+ # Base64 encoded string of file contents. Typically this means reading the bytes or string content of a file and then converting that to a base64 encoded string. For examples of how to do this see https://www.mailslurp.com/guides/base64-file-uploads/
25
+ attr_accessor :base64_contents
26
+
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
- :'base64_contents' => :'base64Contents',
31
30
  :'content_type' => :'contentType',
32
- :'filename' => :'filename'
31
+ :'filename' => :'filename',
32
+ :'base64_contents' => :'base64Contents'
33
33
  }
34
34
  end
35
35
 
36
36
  # Attribute type mapping.
37
37
  def self.openapi_types
38
38
  {
39
- :'base64_contents' => :'String',
40
39
  :'content_type' => :'String',
41
- :'filename' => :'String'
40
+ :'filename' => :'String',
41
+ :'base64_contents' => :'String'
42
42
  }
43
43
  end
44
44
 
@@ -63,10 +63,6 @@ module MailSlurpClient
63
63
  h[k.to_sym] = v
64
64
  }
65
65
 
66
- if attributes.key?(:'base64_contents')
67
- self.base64_contents = attributes[:'base64_contents']
68
- end
69
-
70
66
  if attributes.key?(:'content_type')
71
67
  self.content_type = attributes[:'content_type']
72
68
  end
@@ -74,6 +70,10 @@ module MailSlurpClient
74
70
  if attributes.key?(:'filename')
75
71
  self.filename = attributes[:'filename']
76
72
  end
73
+
74
+ if attributes.key?(:'base64_contents')
75
+ self.base64_contents = attributes[:'base64_contents']
76
+ end
77
77
  end
78
78
 
79
79
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -99,9 +99,9 @@ module MailSlurpClient
99
99
  def ==(o)
100
100
  return true if self.equal?(o)
101
101
  self.class == o.class &&
102
- base64_contents == o.base64_contents &&
103
102
  content_type == o.content_type &&
104
- filename == o.filename
103
+ filename == o.filename &&
104
+ base64_contents == o.base64_contents
105
105
  end
106
106
 
107
107
  # @see the `==` method
@@ -113,7 +113,7 @@ module MailSlurpClient
113
113
  # Calculates hash code according to all attributes.
114
114
  # @return [Integer] Hash code
115
115
  def hash
116
- [base64_contents, content_type, filename].hash
116
+ [content_type, filename, base64_contents].hash
117
117
  end
118
118
 
119
119
  # 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
 
@@ -70,12 +70,22 @@ module MailSlurpClient
70
70
  # @return Array for valid properties with the reasons
71
71
  def list_invalid_properties
72
72
  invalid_properties = Array.new
73
+ if @email_id.nil?
74
+ invalid_properties.push('invalid value for "email_id", email_id cannot be nil.')
75
+ end
76
+
77
+ if @html.nil?
78
+ invalid_properties.push('invalid value for "html", html cannot be nil.')
79
+ end
80
+
73
81
  invalid_properties
74
82
  end
75
83
 
76
84
  # Check to see if the all the properties in the model are valid
77
85
  # @return true if the model is valid
78
86
  def valid?
87
+ return false if @email_id.nil?
88
+ return false if @html.nil?
79
89
  true
80
90
  end
81
91
 
@@ -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,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Optional warnings resulting from HTML validation
16
17
  class ValidationMessage
17
18
  attr_accessor :line_number
18
19
 
@@ -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