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,47 +14,47 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class AttachmentEntity
17
+ attr_accessor :id
18
+
17
19
  attr_accessor :attachment_id
18
20
 
19
- attr_accessor :content_length
21
+ attr_accessor :user_id
20
22
 
21
23
  attr_accessor :content_type
22
24
 
23
- attr_accessor :created_at
24
-
25
- attr_accessor :id
25
+ attr_accessor :content_length
26
26
 
27
27
  attr_accessor :name
28
28
 
29
- attr_accessor :updated_at
29
+ attr_accessor :created_at
30
30
 
31
- attr_accessor :user_id
31
+ attr_accessor :updated_at
32
32
 
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
+ :'id' => :'id',
36
37
  :'attachment_id' => :'attachmentId',
37
- :'content_length' => :'contentLength',
38
+ :'user_id' => :'userId',
38
39
  :'content_type' => :'contentType',
39
- :'created_at' => :'createdAt',
40
- :'id' => :'id',
40
+ :'content_length' => :'contentLength',
41
41
  :'name' => :'name',
42
- :'updated_at' => :'updatedAt',
43
- :'user_id' => :'userId'
42
+ :'created_at' => :'createdAt',
43
+ :'updated_at' => :'updatedAt'
44
44
  }
45
45
  end
46
46
 
47
47
  # Attribute type mapping.
48
48
  def self.openapi_types
49
49
  {
50
+ :'id' => :'String',
50
51
  :'attachment_id' => :'String',
51
- :'content_length' => :'Integer',
52
+ :'user_id' => :'String',
52
53
  :'content_type' => :'String',
53
- :'created_at' => :'DateTime',
54
- :'id' => :'String',
54
+ :'content_length' => :'Integer',
55
55
  :'name' => :'String',
56
- :'updated_at' => :'DateTime',
57
- :'user_id' => :'String'
56
+ :'created_at' => :'DateTime',
57
+ :'updated_at' => :'DateTime'
58
58
  }
59
59
  end
60
60
 
@@ -79,36 +79,36 @@ module MailSlurpClient
79
79
  h[k.to_sym] = v
80
80
  }
81
81
 
82
+ if attributes.key?(:'id')
83
+ self.id = attributes[:'id']
84
+ end
85
+
82
86
  if attributes.key?(:'attachment_id')
83
87
  self.attachment_id = attributes[:'attachment_id']
84
88
  end
85
89
 
86
- if attributes.key?(:'content_length')
87
- self.content_length = attributes[:'content_length']
90
+ if attributes.key?(:'user_id')
91
+ self.user_id = attributes[:'user_id']
88
92
  end
89
93
 
90
94
  if attributes.key?(:'content_type')
91
95
  self.content_type = attributes[:'content_type']
92
96
  end
93
97
 
94
- if attributes.key?(:'created_at')
95
- self.created_at = attributes[:'created_at']
96
- end
97
-
98
- if attributes.key?(:'id')
99
- self.id = attributes[:'id']
98
+ if attributes.key?(:'content_length')
99
+ self.content_length = attributes[:'content_length']
100
100
  end
101
101
 
102
102
  if attributes.key?(:'name')
103
103
  self.name = attributes[:'name']
104
104
  end
105
105
 
106
- if attributes.key?(:'updated_at')
107
- self.updated_at = attributes[:'updated_at']
106
+ if attributes.key?(:'created_at')
107
+ self.created_at = attributes[:'created_at']
108
108
  end
109
109
 
110
- if attributes.key?(:'user_id')
111
- self.user_id = attributes[:'user_id']
110
+ if attributes.key?(:'updated_at')
111
+ self.updated_at = attributes[:'updated_at']
112
112
  end
113
113
  end
114
114
 
@@ -120,6 +120,10 @@ module MailSlurpClient
120
120
  invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
121
121
  end
122
122
 
123
+ if @user_id.nil?
124
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
125
+ end
126
+
123
127
  if @created_at.nil?
124
128
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
125
129
  end
@@ -128,10 +132,6 @@ module MailSlurpClient
128
132
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
129
133
  end
130
134
 
131
- if @user_id.nil?
132
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
133
- end
134
-
135
135
  invalid_properties
136
136
  end
137
137
 
@@ -139,9 +139,9 @@ module MailSlurpClient
139
139
  # @return true if the model is valid
140
140
  def valid?
141
141
  return false if @attachment_id.nil?
142
+ return false if @user_id.nil?
142
143
  return false if @created_at.nil?
143
144
  return false if @updated_at.nil?
144
- return false if @user_id.nil?
145
145
  true
146
146
  end
147
147
 
@@ -150,14 +150,14 @@ module MailSlurpClient
150
150
  def ==(o)
151
151
  return true if self.equal?(o)
152
152
  self.class == o.class &&
153
+ id == o.id &&
153
154
  attachment_id == o.attachment_id &&
154
- content_length == o.content_length &&
155
+ user_id == o.user_id &&
155
156
  content_type == o.content_type &&
156
- created_at == o.created_at &&
157
- id == o.id &&
157
+ content_length == o.content_length &&
158
158
  name == o.name &&
159
- updated_at == o.updated_at &&
160
- user_id == o.user_id
159
+ created_at == o.created_at &&
160
+ updated_at == o.updated_at
161
161
  end
162
162
 
163
163
  # @see the `==` method
@@ -169,7 +169,7 @@ module MailSlurpClient
169
169
  # Calculates hash code according to all attributes.
170
170
  # @return [Integer] Hash code
171
171
  def hash
172
- [attachment_id, content_length, content_type, created_at, id, name, updated_at, user_id].hash
172
+ [id, attachment_id, user_id, content_type, content_length, name, created_at, updated_at].hash
173
173
  end
174
174
 
175
175
  # 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,35 +15,35 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Meta data associated with an attachment. Attachments are stored as byte blobs so the meta data is stored separately.
17
17
  class AttachmentMetaData
18
- # Size of attachment in bytes
19
- attr_accessor :content_length
18
+ # Name of attachment if given
19
+ attr_accessor :name
20
20
 
21
21
  # Content type of attachment such as `image/png`
22
22
  attr_accessor :content_type
23
23
 
24
+ # Size of attachment in bytes
25
+ attr_accessor :content_length
26
+
24
27
  # ID of attachment
25
28
  attr_accessor :id
26
29
 
27
- # Name of attachment if given
28
- attr_accessor :name
29
-
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
- :'content_length' => :'contentLength',
33
+ :'name' => :'name',
34
34
  :'content_type' => :'contentType',
35
- :'id' => :'id',
36
- :'name' => :'name'
35
+ :'content_length' => :'contentLength',
36
+ :'id' => :'id'
37
37
  }
38
38
  end
39
39
 
40
40
  # Attribute type mapping.
41
41
  def self.openapi_types
42
42
  {
43
- :'content_length' => :'Integer',
43
+ :'name' => :'String',
44
44
  :'content_type' => :'String',
45
- :'id' => :'String',
46
- :'name' => :'String'
45
+ :'content_length' => :'Integer',
46
+ :'id' => :'String'
47
47
  }
48
48
  end
49
49
 
@@ -68,20 +68,20 @@ module MailSlurpClient
68
68
  h[k.to_sym] = v
69
69
  }
70
70
 
71
- if attributes.key?(:'content_length')
72
- self.content_length = attributes[:'content_length']
71
+ if attributes.key?(:'name')
72
+ self.name = attributes[:'name']
73
73
  end
74
74
 
75
75
  if attributes.key?(:'content_type')
76
76
  self.content_type = attributes[:'content_type']
77
77
  end
78
78
 
79
- if attributes.key?(:'id')
80
- self.id = attributes[:'id']
79
+ if attributes.key?(:'content_length')
80
+ self.content_length = attributes[:'content_length']
81
81
  end
82
82
 
83
- if attributes.key?(:'name')
84
- self.name = attributes[:'name']
83
+ if attributes.key?(:'id')
84
+ self.id = attributes[:'id']
85
85
  end
86
86
  end
87
87
 
@@ -89,12 +89,32 @@ module MailSlurpClient
89
89
  # @return Array for valid properties with the reasons
90
90
  def list_invalid_properties
91
91
  invalid_properties = Array.new
92
+ if @name.nil?
93
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
94
+ end
95
+
96
+ if @content_type.nil?
97
+ invalid_properties.push('invalid value for "content_type", content_type cannot be nil.')
98
+ end
99
+
100
+ if @content_length.nil?
101
+ invalid_properties.push('invalid value for "content_length", content_length cannot be nil.')
102
+ end
103
+
104
+ if @id.nil?
105
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
106
+ end
107
+
92
108
  invalid_properties
93
109
  end
94
110
 
95
111
  # Check to see if the all the properties in the model are valid
96
112
  # @return true if the model is valid
97
113
  def valid?
114
+ return false if @name.nil?
115
+ return false if @content_type.nil?
116
+ return false if @content_length.nil?
117
+ return false if @id.nil?
98
118
  true
99
119
  end
100
120
 
@@ -103,10 +123,10 @@ module MailSlurpClient
103
123
  def ==(o)
104
124
  return true if self.equal?(o)
105
125
  self.class == o.class &&
106
- content_length == o.content_length &&
126
+ name == o.name &&
107
127
  content_type == o.content_type &&
108
- id == o.id &&
109
- name == o.name
128
+ content_length == o.content_length &&
129
+ id == o.id
110
130
  end
111
131
 
112
132
  # @see the `==` method
@@ -118,7 +138,7 @@ module MailSlurpClient
118
138
  # Calculates hash code according to all attributes.
119
139
  # @return [Integer] Hash code
120
140
  def hash
121
- [content_length, content_type, id, name].hash
141
+ [name, content_type, content_length, id].hash
122
142
  end
123
143
 
124
144
  # 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,46 +14,46 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class AttachmentProjection
17
- # Attachment ID
18
- attr_accessor :attachment_id
17
+ attr_accessor :name
19
18
 
20
19
  # Content length of attachment in bytes
21
20
  attr_accessor :content_length
22
21
 
23
- # Content type of attachment.
24
- attr_accessor :content_type
22
+ attr_accessor :user_id
25
23
 
26
24
  attr_accessor :created_at
27
25
 
28
- attr_accessor :name
26
+ # Attachment ID
27
+ attr_accessor :attachment_id
29
28
 
30
29
  attr_accessor :updated_at
31
30
 
32
- attr_accessor :user_id
31
+ # Content type of attachment.
32
+ attr_accessor :content_type
33
33
 
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
- :'attachment_id' => :'attachmentId',
37
+ :'name' => :'name',
38
38
  :'content_length' => :'contentLength',
39
- :'content_type' => :'contentType',
39
+ :'user_id' => :'userId',
40
40
  :'created_at' => :'createdAt',
41
- :'name' => :'name',
41
+ :'attachment_id' => :'attachmentId',
42
42
  :'updated_at' => :'updatedAt',
43
- :'user_id' => :'userId'
43
+ :'content_type' => :'contentType'
44
44
  }
45
45
  end
46
46
 
47
47
  # Attribute type mapping.
48
48
  def self.openapi_types
49
49
  {
50
- :'attachment_id' => :'String',
50
+ :'name' => :'String',
51
51
  :'content_length' => :'Integer',
52
- :'content_type' => :'String',
52
+ :'user_id' => :'String',
53
53
  :'created_at' => :'DateTime',
54
- :'name' => :'String',
54
+ :'attachment_id' => :'String',
55
55
  :'updated_at' => :'DateTime',
56
- :'user_id' => :'String'
56
+ :'content_type' => :'String'
57
57
  }
58
58
  end
59
59
 
@@ -78,32 +78,32 @@ module MailSlurpClient
78
78
  h[k.to_sym] = v
79
79
  }
80
80
 
81
- if attributes.key?(:'attachment_id')
82
- self.attachment_id = attributes[:'attachment_id']
81
+ if attributes.key?(:'name')
82
+ self.name = attributes[:'name']
83
83
  end
84
84
 
85
85
  if attributes.key?(:'content_length')
86
86
  self.content_length = attributes[:'content_length']
87
87
  end
88
88
 
89
- if attributes.key?(:'content_type')
90
- self.content_type = attributes[:'content_type']
89
+ if attributes.key?(:'user_id')
90
+ self.user_id = attributes[:'user_id']
91
91
  end
92
92
 
93
93
  if attributes.key?(:'created_at')
94
94
  self.created_at = attributes[:'created_at']
95
95
  end
96
96
 
97
- if attributes.key?(:'name')
98
- self.name = attributes[:'name']
97
+ if attributes.key?(:'attachment_id')
98
+ self.attachment_id = attributes[:'attachment_id']
99
99
  end
100
100
 
101
101
  if attributes.key?(:'updated_at')
102
102
  self.updated_at = attributes[:'updated_at']
103
103
  end
104
104
 
105
- if attributes.key?(:'user_id')
106
- self.user_id = attributes[:'user_id']
105
+ if attributes.key?(:'content_type')
106
+ self.content_type = attributes[:'content_type']
107
107
  end
108
108
  end
109
109
 
@@ -111,16 +111,20 @@ module MailSlurpClient
111
111
  # @return Array for valid properties with the reasons
112
112
  def list_invalid_properties
113
113
  invalid_properties = Array.new
114
+ if @user_id.nil?
115
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
116
+ end
117
+
114
118
  if @created_at.nil?
115
119
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
116
120
  end
117
121
 
118
- if @updated_at.nil?
119
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
122
+ if @attachment_id.nil?
123
+ invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
120
124
  end
121
125
 
122
- if @user_id.nil?
123
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
126
+ if @updated_at.nil?
127
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
124
128
  end
125
129
 
126
130
  invalid_properties
@@ -129,9 +133,10 @@ module MailSlurpClient
129
133
  # Check to see if the all the properties in the model are valid
130
134
  # @return true if the model is valid
131
135
  def valid?
136
+ return false if @user_id.nil?
132
137
  return false if @created_at.nil?
138
+ return false if @attachment_id.nil?
133
139
  return false if @updated_at.nil?
134
- return false if @user_id.nil?
135
140
  true
136
141
  end
137
142
 
@@ -140,13 +145,13 @@ module MailSlurpClient
140
145
  def ==(o)
141
146
  return true if self.equal?(o)
142
147
  self.class == o.class &&
143
- attachment_id == o.attachment_id &&
148
+ name == o.name &&
144
149
  content_length == o.content_length &&
145
- content_type == o.content_type &&
150
+ user_id == o.user_id &&
146
151
  created_at == o.created_at &&
147
- name == o.name &&
152
+ attachment_id == o.attachment_id &&
148
153
  updated_at == o.updated_at &&
149
- user_id == o.user_id
154
+ content_type == o.content_type
150
155
  end
151
156
 
152
157
  # @see the `==` method
@@ -158,7 +163,7 @@ module MailSlurpClient
158
163
  # Calculates hash code according to all attributes.
159
164
  # @return [Integer] Hash code
160
165
  def hash
161
- [attachment_id, content_length, content_type, created_at, name, updated_at, user_id].hash
166
+ [name, content_length, user_id, created_at, attachment_id, updated_at, content_type].hash
162
167
  end
163
168
 
164
169
  # 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,27 +14,27 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class BounceProjection
17
- attr_accessor :created_at
18
-
19
17
  attr_accessor :id
20
18
 
21
19
  attr_accessor :sender
22
20
 
21
+ attr_accessor :created_at
22
+
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
- :'created_at' => :'createdAt',
27
26
  :'id' => :'id',
28
- :'sender' => :'sender'
27
+ :'sender' => :'sender',
28
+ :'created_at' => :'createdAt'
29
29
  }
30
30
  end
31
31
 
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'created_at' => :'DateTime',
36
35
  :'id' => :'String',
37
- :'sender' => :'String'
36
+ :'sender' => :'String',
37
+ :'created_at' => :'DateTime'
38
38
  }
39
39
  end
40
40
 
@@ -59,10 +59,6 @@ module MailSlurpClient
59
59
  h[k.to_sym] = v
60
60
  }
61
61
 
62
- if attributes.key?(:'created_at')
63
- self.created_at = attributes[:'created_at']
64
- end
65
-
66
62
  if attributes.key?(:'id')
67
63
  self.id = attributes[:'id']
68
64
  end
@@ -70,28 +66,32 @@ module MailSlurpClient
70
66
  if attributes.key?(:'sender')
71
67
  self.sender = attributes[:'sender']
72
68
  end
69
+
70
+ if attributes.key?(:'created_at')
71
+ self.created_at = attributes[:'created_at']
72
+ end
73
73
  end
74
74
 
75
75
  # Show invalid properties with the reasons. Usually used together with valid?
76
76
  # @return Array for valid properties with the reasons
77
77
  def list_invalid_properties
78
78
  invalid_properties = Array.new
79
- if @created_at.nil?
80
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
81
- end
82
-
83
79
  if @sender.nil?
84
80
  invalid_properties.push('invalid value for "sender", sender cannot be nil.')
85
81
  end
86
82
 
83
+ if @created_at.nil?
84
+ invalid_properties.push('invalid value for "created_at", created_at 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 @created_at.nil?
94
93
  return false if @sender.nil?
94
+ return false if @created_at.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
- created_at == o.created_at &&
104
103
  id == o.id &&
105
- sender == o.sender
104
+ sender == o.sender &&
105
+ created_at == o.created_at
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
- [created_at, id, sender].hash
117
+ [id, sender, created_at].hash
118
118
  end
119
119
 
120
120
  # Builds the object from hash