mailslurp_client 15.0.2 → 15.0.6

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 +191 -117
  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 +360 -226
  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 +11 -26
  29. data/lib/mailslurp_client/models/alias_dto.rb +46 -57
  30. data/lib/mailslurp_client/models/alias_projection.rb +38 -68
  31. data/lib/mailslurp_client/models/attachment_entity.rb +35 -55
  32. data/lib/mailslurp_client/models/attachment_meta_data.rb +22 -22
  33. data/lib/mailslurp_client/models/attachment_projection.rb +30 -45
  34. data/lib/mailslurp_client/models/basic_auth_options.rb +1 -11
  35. data/lib/mailslurp_client/models/bounce_projection.rb +14 -24
  36. data/lib/mailslurp_client/models/bounce_recipient.rb +23 -43
  37. data/lib/mailslurp_client/models/bounced_email_dto.rb +57 -77
  38. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +17 -32
  39. data/lib/mailslurp_client/models/bulk_send_email_options.rb +6 -1
  40. data/lib/mailslurp_client/models/condition_option.rb +3 -3
  41. data/lib/mailslurp_client/models/contact_dto.rb +54 -74
  42. data/lib/mailslurp_client/models/contact_projection.rb +43 -53
  43. data/lib/mailslurp_client/models/content_match_options.rb +1 -1
  44. data/lib/mailslurp_client/models/count_dto.rb +206 -0
  45. data/lib/mailslurp_client/models/create_alias_options.rb +1 -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 -6
  49. data/lib/mailslurp_client/models/create_inbox_dto.rb +59 -59
  50. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +20 -15
  51. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +24 -24
  52. data/lib/mailslurp_client/models/create_template_options.rb +1 -11
  53. data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
  54. data/lib/mailslurp_client/models/create_webhook_options.rb +19 -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 +16 -26
  57. data/lib/mailslurp_client/models/dns_lookup_options.rb +25 -15
  58. data/lib/mailslurp_client/models/dns_lookup_result.rb +24 -43
  59. data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -6
  60. data/lib/mailslurp_client/models/domain_dto.rb +60 -81
  61. data/lib/mailslurp_client/models/domain_name_record.rb +12 -31
  62. data/lib/mailslurp_client/models/domain_preview.rb +27 -51
  63. data/lib/mailslurp_client/models/download_attachment_dto.rb +1 -1
  64. data/lib/mailslurp_client/models/email.rb +135 -136
  65. data/lib/mailslurp_client/models/email_analysis.rb +29 -29
  66. data/lib/mailslurp_client/models/email_content_match_result.rb +14 -24
  67. data/lib/mailslurp_client/models/email_links_result.rb +14 -24
  68. data/lib/mailslurp_client/models/email_preview.rb +48 -48
  69. data/lib/mailslurp_client/models/email_projection.rb +67 -87
  70. data/lib/mailslurp_client/models/email_recipients.rb +17 -16
  71. data/lib/mailslurp_client/models/email_text_lines_result.rb +14 -24
  72. data/lib/mailslurp_client/models/email_verification_result.rb +17 -37
  73. data/lib/mailslurp_client/models/expiration_defaults.rb +17 -27
  74. data/lib/mailslurp_client/models/expired_inbox_dto.rb +14 -29
  75. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +23 -43
  76. data/lib/mailslurp_client/models/export_link.rb +1 -6
  77. data/lib/mailslurp_client/models/export_options.rb +2 -7
  78. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +14 -24
  79. data/lib/mailslurp_client/models/forward_email_options.rb +37 -32
  80. data/lib/mailslurp_client/models/gravatar_url.rb +14 -24
  81. data/lib/mailslurp_client/models/group_contacts_dto.rb +14 -24
  82. data/lib/mailslurp_client/models/group_dto.rb +23 -38
  83. data/lib/mailslurp_client/models/group_projection.rb +23 -38
  84. data/lib/mailslurp_client/models/html_validation_result.rb +14 -15
  85. data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +48 -58
  86. data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -6
  87. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +32 -62
  88. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -6
  89. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +14 -24
  90. data/lib/mailslurp_client/models/inbox_preview.rb +39 -39
  91. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +44 -79
  92. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -6
  93. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +14 -19
  94. data/lib/mailslurp_client/models/inline_object.rb +221 -0
  95. data/lib/mailslurp_client/models/ip_address_result.rb +1 -11
  96. data/lib/mailslurp_client/models/json_schema_dto.rb +1 -6
  97. data/lib/mailslurp_client/models/match_option.rb +8 -3
  98. data/lib/mailslurp_client/models/match_options.rb +17 -17
  99. data/lib/mailslurp_client/models/missed_email.rb +68 -103
  100. data/lib/mailslurp_client/models/missed_email_projection.rb +20 -30
  101. data/lib/mailslurp_client/models/name_server_record.rb +11 -31
  102. data/lib/mailslurp_client/models/organization_inbox_projection.rb +45 -45
  103. data/lib/mailslurp_client/models/page_alias.rb +50 -50
  104. data/lib/mailslurp_client/models/page_attachment_entity.rb +50 -50
  105. data/lib/mailslurp_client/models/page_bounced_email.rb +50 -50
  106. data/lib/mailslurp_client/models/page_bounced_recipients.rb +50 -50
  107. data/lib/mailslurp_client/models/page_contact_projection.rb +50 -50
  108. data/lib/mailslurp_client/models/page_email_preview.rb +50 -50
  109. data/lib/mailslurp_client/models/page_email_projection.rb +50 -50
  110. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +50 -50
  111. data/lib/mailslurp_client/models/page_group_projection.rb +50 -50
  112. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +50 -50
  113. data/lib/mailslurp_client/models/page_inbox_projection.rb +50 -50
  114. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +50 -50
  115. data/lib/mailslurp_client/models/page_missed_email_projection.rb +50 -50
  116. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +50 -50
  117. data/lib/mailslurp_client/models/page_sent_email_projection.rb +50 -50
  118. data/lib/mailslurp_client/models/page_template_projection.rb +50 -50
  119. data/lib/mailslurp_client/models/page_thread_projection.rb +50 -50
  120. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +50 -50
  121. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +50 -50
  122. data/lib/mailslurp_client/models/page_webhook_projection.rb +50 -50
  123. data/lib/mailslurp_client/models/page_webhook_result.rb +50 -50
  124. data/lib/mailslurp_client/models/pageable.rb +29 -29
  125. data/lib/mailslurp_client/models/raw_email_json.rb +1 -6
  126. data/lib/mailslurp_client/models/recipient.rb +14 -24
  127. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +39 -38
  128. data/lib/mailslurp_client/models/reply_to_email_options.rb +52 -51
  129. data/lib/mailslurp_client/models/send_email_options.rb +108 -116
  130. data/lib/mailslurp_client/models/sender.rb +15 -24
  131. data/lib/mailslurp_client/models/sent_email_dto.rb +98 -103
  132. data/lib/mailslurp_client/models/sent_email_projection.rb +64 -103
  133. data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +1 -1
  134. data/lib/mailslurp_client/models/simple_send_email_options.rb +25 -25
  135. data/lib/mailslurp_client/models/sort.rb +14 -14
  136. data/lib/mailslurp_client/models/template_dto.rb +23 -48
  137. data/lib/mailslurp_client/models/template_projection.rb +26 -51
  138. data/lib/mailslurp_client/models/template_variable.rb +1 -11
  139. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -11
  140. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -11
  141. data/lib/mailslurp_client/models/thread_projection.rb +58 -93
  142. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +44 -69
  143. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +35 -55
  144. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +20 -30
  145. data/lib/mailslurp_client/models/unread_count.rb +1 -6
  146. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -6
  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 -6
  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 +1 -1
  153. data/lib/mailslurp_client/models/validation_message.rb +2 -6
  154. data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -6
  155. data/lib/mailslurp_client/models/wait_for_conditions.rb +49 -59
  156. data/lib/mailslurp_client/models/webhook_dto.rb +65 -70
  157. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +43 -43
  158. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +50 -50
  159. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +44 -44
  160. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +76 -96
  161. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +85 -85
  162. data/lib/mailslurp_client/models/webhook_projection.rb +35 -60
  163. data/lib/mailslurp_client/models/webhook_redrive_result.rb +14 -24
  164. data/lib/mailslurp_client/models/webhook_result_dto.rb +77 -127
  165. data/lib/mailslurp_client/models/webhook_test_request.rb +22 -37
  166. data/lib/mailslurp_client/models/webhook_test_response.rb +14 -14
  167. data/lib/mailslurp_client/models/webhook_test_result.rb +14 -24
  168. data/lib/mailslurp_client/version.rb +2 -2
  169. data/lib/mailslurp_client.rb +4 -2
  170. metadata +5 -3
@@ -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
 
@@ -116,32 +116,12 @@ module MailSlurpClient
116
116
  # @return Array for valid properties with the reasons
117
117
  def list_invalid_properties
118
118
  invalid_properties = Array.new
119
- if @attachment_id.nil?
120
- invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
121
- end
122
-
123
- if @created_at.nil?
124
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
125
- end
126
-
127
- if @updated_at.nil?
128
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
129
- end
130
-
131
- if @user_id.nil?
132
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
133
- end
134
-
135
119
  invalid_properties
136
120
  end
137
121
 
138
122
  # Check to see if the all the properties in the model are valid
139
123
  # @return true if the model is valid
140
124
  def valid?
141
- return false if @attachment_id.nil?
142
- return false if @created_at.nil?
143
- return false if @updated_at.nil?
144
- return false if @user_id.nil?
145
125
  true
146
126
  end
147
127
 
@@ -150,14 +130,14 @@ module MailSlurpClient
150
130
  def ==(o)
151
131
  return true if self.equal?(o)
152
132
  self.class == o.class &&
133
+ id == o.id &&
153
134
  attachment_id == o.attachment_id &&
154
- content_length == o.content_length &&
135
+ user_id == o.user_id &&
155
136
  content_type == o.content_type &&
156
- created_at == o.created_at &&
157
- id == o.id &&
137
+ content_length == o.content_length &&
158
138
  name == o.name &&
159
- updated_at == o.updated_at &&
160
- user_id == o.user_id
139
+ created_at == o.created_at &&
140
+ updated_at == o.updated_at
161
141
  end
162
142
 
163
143
  # @see the `==` method
@@ -169,7 +149,7 @@ module MailSlurpClient
169
149
  # Calculates hash code according to all attributes.
170
150
  # @return [Integer] Hash code
171
151
  def hash
172
- [attachment_id, content_length, content_type, created_at, id, name, updated_at, user_id].hash
152
+ [id, attachment_id, user_id, content_type, content_length, name, created_at, updated_at].hash
173
153
  end
174
154
 
175
155
  # 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
 
@@ -103,10 +103,10 @@ module MailSlurpClient
103
103
  def ==(o)
104
104
  return true if self.equal?(o)
105
105
  self.class == o.class &&
106
- content_length == o.content_length &&
106
+ name == o.name &&
107
107
  content_type == o.content_type &&
108
- id == o.id &&
109
- name == o.name
108
+ content_length == o.content_length &&
109
+ id == o.id
110
110
  end
111
111
 
112
112
  # @see the `==` method
@@ -118,7 +118,7 @@ module MailSlurpClient
118
118
  # Calculates hash code according to all attributes.
119
119
  # @return [Integer] Hash code
120
120
  def hash
121
- [content_length, content_type, id, name].hash
121
+ [name, content_type, content_length, id].hash
122
122
  end
123
123
 
124
124
  # 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,8 +14,7 @@ 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
@@ -23,37 +22,38 @@ module MailSlurpClient
23
22
  # Content type of attachment.
24
23
  attr_accessor :content_type
25
24
 
26
- attr_accessor :created_at
25
+ attr_accessor :user_id
27
26
 
28
- attr_accessor :name
27
+ # Attachment ID
28
+ attr_accessor :attachment_id
29
29
 
30
- attr_accessor :updated_at
30
+ attr_accessor :created_at
31
31
 
32
- attr_accessor :user_id
32
+ attr_accessor :updated_at
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
39
  :'content_type' => :'contentType',
40
+ :'user_id' => :'userId',
41
+ :'attachment_id' => :'attachmentId',
40
42
  :'created_at' => :'createdAt',
41
- :'name' => :'name',
42
- :'updated_at' => :'updatedAt',
43
- :'user_id' => :'userId'
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
- :'attachment_id' => :'String',
50
+ :'name' => :'String',
51
51
  :'content_length' => :'Integer',
52
52
  :'content_type' => :'String',
53
+ :'user_id' => :'String',
54
+ :'attachment_id' => :'String',
53
55
  :'created_at' => :'DateTime',
54
- :'name' => :'String',
55
- :'updated_at' => :'DateTime',
56
- :'user_id' => :'String'
56
+ :'updated_at' => :'DateTime'
57
57
  }
58
58
  end
59
59
 
@@ -78,8 +78,8 @@ 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')
@@ -90,20 +90,20 @@ module MailSlurpClient
90
90
  self.content_type = attributes[:'content_type']
91
91
  end
92
92
 
93
- if attributes.key?(:'created_at')
94
- self.created_at = attributes[:'created_at']
93
+ if attributes.key?(:'user_id')
94
+ self.user_id = attributes[:'user_id']
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
- if attributes.key?(:'updated_at')
102
- self.updated_at = attributes[:'updated_at']
101
+ if attributes.key?(:'created_at')
102
+ self.created_at = attributes[:'created_at']
103
103
  end
104
104
 
105
- if attributes.key?(:'user_id')
106
- self.user_id = attributes[:'user_id']
105
+ if attributes.key?(:'updated_at')
106
+ self.updated_at = attributes[:'updated_at']
107
107
  end
108
108
  end
109
109
 
@@ -111,27 +111,12 @@ 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 @created_at.nil?
115
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
116
- end
117
-
118
- if @updated_at.nil?
119
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
120
- end
121
-
122
- if @user_id.nil?
123
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
124
- end
125
-
126
114
  invalid_properties
127
115
  end
128
116
 
129
117
  # Check to see if the all the properties in the model are valid
130
118
  # @return true if the model is valid
131
119
  def valid?
132
- return false if @created_at.nil?
133
- return false if @updated_at.nil?
134
- return false if @user_id.nil?
135
120
  true
136
121
  end
137
122
 
@@ -140,13 +125,13 @@ module MailSlurpClient
140
125
  def ==(o)
141
126
  return true if self.equal?(o)
142
127
  self.class == o.class &&
143
- attachment_id == o.attachment_id &&
128
+ name == o.name &&
144
129
  content_length == o.content_length &&
145
130
  content_type == o.content_type &&
131
+ user_id == o.user_id &&
132
+ attachment_id == o.attachment_id &&
146
133
  created_at == o.created_at &&
147
- name == o.name &&
148
- updated_at == o.updated_at &&
149
- user_id == o.user_id
134
+ updated_at == o.updated_at
150
135
  end
151
136
 
152
137
  # @see the `==` method
@@ -158,7 +143,7 @@ module MailSlurpClient
158
143
  # Calculates hash code according to all attributes.
159
144
  # @return [Integer] Hash code
160
145
  def hash
161
- [attachment_id, content_length, content_type, created_at, name, updated_at, user_id].hash
146
+ [name, content_length, content_type, user_id, attachment_id, created_at, updated_at].hash
162
147
  end
163
148
 
164
149
  # 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
 
@@ -69,22 +69,12 @@ module MailSlurpClient
69
69
  # @return Array for valid properties with the reasons
70
70
  def list_invalid_properties
71
71
  invalid_properties = Array.new
72
- if @username.nil?
73
- invalid_properties.push('invalid value for "username", username cannot be nil.')
74
- end
75
-
76
- if @password.nil?
77
- invalid_properties.push('invalid value for "password", password cannot be nil.')
78
- end
79
-
80
72
  invalid_properties
81
73
  end
82
74
 
83
75
  # Check to see if the all the properties in the model are valid
84
76
  # @return true if the model is valid
85
77
  def valid?
86
- return false if @username.nil?
87
- return false if @password.nil?
88
78
  true
89
79
  end
90
80
 
@@ -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,22 @@ 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
- if @sender.nil?
84
- invalid_properties.push('invalid value for "sender", sender cannot be nil.')
85
- end
86
-
87
79
  invalid_properties
88
80
  end
89
81
 
90
82
  # Check to see if the all the properties in the model are valid
91
83
  # @return true if the model is valid
92
84
  def valid?
93
- return false if @created_at.nil?
94
- return false if @sender.nil?
95
85
  true
96
86
  end
97
87
 
@@ -100,9 +90,9 @@ module MailSlurpClient
100
90
  def ==(o)
101
91
  return true if self.equal?(o)
102
92
  self.class == o.class &&
103
- created_at == o.created_at &&
104
93
  id == o.id &&
105
- sender == o.sender
94
+ sender == o.sender &&
95
+ created_at == o.created_at
106
96
  end
107
97
 
108
98
  # @see the `==` method
@@ -114,7 +104,7 @@ module MailSlurpClient
114
104
  # Calculates hash code according to all attributes.
115
105
  # @return [Integer] Hash code
116
106
  def hash
117
- [created_at, id, sender].hash
107
+ [id, sender, created_at].hash
118
108
  end
119
109
 
120
110
  # Builds the object from hash