mailslurp_client 15.0.3 → 15.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/lib/mailslurp_client/api/alias_controller_api.rb +59 -55
  4. data/lib/mailslurp_client/api/attachment_controller_api.rb +49 -60
  5. data/lib/mailslurp_client/api/bounce_controller_api.rb +26 -18
  6. data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +15 -15
  7. data/lib/mailslurp_client/api/common_actions_controller_api.rb +128 -67
  8. data/lib/mailslurp_client/api/contact_controller_api.rb +22 -22
  9. data/lib/mailslurp_client/api/domain_controller_api.rb +32 -32
  10. data/lib/mailslurp_client/api/email_controller_api.rb +137 -117
  11. data/lib/mailslurp_client/api/expired_controller_api.rb +19 -19
  12. data/lib/mailslurp_client/api/export_controller_api.rb +38 -38
  13. data/lib/mailslurp_client/api/form_controller_api.rb +16 -18
  14. data/lib/mailslurp_client/api/group_controller_api.rb +52 -52
  15. data/lib/mailslurp_client/api/inbox_controller_api.rb +256 -236
  16. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +33 -29
  17. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +33 -29
  18. data/lib/mailslurp_client/api/mail_server_controller_api.rb +26 -26
  19. data/lib/mailslurp_client/api/missed_email_controller_api.rb +54 -42
  20. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +157 -47
  21. data/lib/mailslurp_client/api/template_controller_api.rb +21 -21
  22. data/lib/mailslurp_client/api/tracking_controller_api.rb +16 -16
  23. data/lib/mailslurp_client/api/wait_for_controller_api.rb +128 -88
  24. data/lib/mailslurp_client/api/webhook_controller_api.rb +102 -86
  25. data/lib/mailslurp_client/configuration.rb +4 -4
  26. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +10 -25
  27. data/lib/mailslurp_client/models/alias_dto.rb +45 -56
  28. data/lib/mailslurp_client/models/alias_projection.rb +42 -72
  29. data/lib/mailslurp_client/models/attachment_entity.rb +34 -54
  30. data/lib/mailslurp_client/models/attachment_meta_data.rb +21 -21
  31. data/lib/mailslurp_client/models/attachment_projection.rb +36 -51
  32. data/lib/mailslurp_client/models/basic_auth_options.rb +0 -10
  33. data/lib/mailslurp_client/models/bounce_projection.rb +13 -23
  34. data/lib/mailslurp_client/models/bounce_recipient.rb +22 -42
  35. data/lib/mailslurp_client/models/bounced_email_dto.rb +56 -76
  36. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +16 -31
  37. data/lib/mailslurp_client/models/bulk_send_email_options.rb +5 -0
  38. data/lib/mailslurp_client/models/condition_option.rb +2 -2
  39. data/lib/mailslurp_client/models/contact_dto.rb +53 -73
  40. data/lib/mailslurp_client/models/contact_projection.rb +42 -52
  41. data/lib/mailslurp_client/models/count_dto.rb +0 -5
  42. data/lib/mailslurp_client/models/create_contact_options.rb +42 -42
  43. data/lib/mailslurp_client/models/create_domain_options.rb +21 -16
  44. data/lib/mailslurp_client/models/create_group_options.rb +0 -5
  45. data/lib/mailslurp_client/models/create_inbox_dto.rb +58 -58
  46. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +19 -14
  47. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +23 -23
  48. data/lib/mailslurp_client/models/create_template_options.rb +0 -10
  49. data/lib/mailslurp_client/models/create_webhook_options.rb +18 -18
  50. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +15 -25
  51. data/lib/mailslurp_client/models/dns_lookup_options.rb +24 -14
  52. data/lib/mailslurp_client/models/dns_lookup_result.rb +23 -42
  53. data/lib/mailslurp_client/models/dns_lookup_results.rb +0 -5
  54. data/lib/mailslurp_client/models/domain_dto.rb +59 -80
  55. data/lib/mailslurp_client/models/domain_name_record.rb +11 -30
  56. data/lib/mailslurp_client/models/domain_preview.rb +26 -50
  57. data/lib/mailslurp_client/models/email.rb +134 -135
  58. data/lib/mailslurp_client/models/email_analysis.rb +28 -28
  59. data/lib/mailslurp_client/models/email_content_match_result.rb +13 -23
  60. data/lib/mailslurp_client/models/email_links_result.rb +13 -23
  61. data/lib/mailslurp_client/models/email_preview.rb +47 -47
  62. data/lib/mailslurp_client/models/email_projection.rb +77 -97
  63. data/lib/mailslurp_client/models/email_recipients.rb +16 -15
  64. data/lib/mailslurp_client/models/email_text_lines_result.rb +13 -23
  65. data/lib/mailslurp_client/models/email_verification_result.rb +16 -36
  66. data/lib/mailslurp_client/models/expiration_defaults.rb +16 -26
  67. data/lib/mailslurp_client/models/expired_inbox_dto.rb +13 -28
  68. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +22 -42
  69. data/lib/mailslurp_client/models/export_link.rb +0 -5
  70. data/lib/mailslurp_client/models/export_options.rb +1 -6
  71. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +13 -23
  72. data/lib/mailslurp_client/models/forward_email_options.rb +36 -31
  73. data/lib/mailslurp_client/models/gravatar_url.rb +13 -23
  74. data/lib/mailslurp_client/models/group_contacts_dto.rb +13 -23
  75. data/lib/mailslurp_client/models/group_dto.rb +22 -37
  76. data/lib/mailslurp_client/models/group_projection.rb +22 -37
  77. data/lib/mailslurp_client/models/html_validation_result.rb +13 -14
  78. data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +47 -57
  79. data/lib/mailslurp_client/models/inbox_exists_dto.rb +0 -5
  80. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +31 -61
  81. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +0 -5
  82. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +13 -23
  83. data/lib/mailslurp_client/models/inbox_preview.rb +38 -38
  84. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +43 -78
  85. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +0 -5
  86. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +13 -18
  87. data/lib/mailslurp_client/models/inline_object.rb +221 -0
  88. data/lib/mailslurp_client/models/ip_address_result.rb +0 -10
  89. data/lib/mailslurp_client/models/json_schema_dto.rb +0 -5
  90. data/lib/mailslurp_client/models/match_option.rb +7 -2
  91. data/lib/mailslurp_client/models/match_options.rb +16 -16
  92. data/lib/mailslurp_client/models/missed_email.rb +67 -102
  93. data/lib/mailslurp_client/models/missed_email_projection.rb +19 -29
  94. data/lib/mailslurp_client/models/name_server_record.rb +10 -30
  95. data/lib/mailslurp_client/models/organization_inbox_projection.rb +44 -44
  96. data/lib/mailslurp_client/models/page_alias.rb +52 -52
  97. data/lib/mailslurp_client/models/page_attachment_entity.rb +52 -52
  98. data/lib/mailslurp_client/models/page_bounced_email.rb +52 -52
  99. data/lib/mailslurp_client/models/page_bounced_recipients.rb +52 -52
  100. data/lib/mailslurp_client/models/page_contact_projection.rb +52 -52
  101. data/lib/mailslurp_client/models/page_email_preview.rb +52 -52
  102. data/lib/mailslurp_client/models/page_email_projection.rb +52 -52
  103. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +52 -52
  104. data/lib/mailslurp_client/models/page_group_projection.rb +52 -52
  105. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +52 -52
  106. data/lib/mailslurp_client/models/page_inbox_projection.rb +52 -52
  107. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +52 -52
  108. data/lib/mailslurp_client/models/page_missed_email_projection.rb +52 -52
  109. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +52 -52
  110. data/lib/mailslurp_client/models/page_sent_email_projection.rb +49 -49
  111. data/lib/mailslurp_client/models/page_template_projection.rb +52 -52
  112. data/lib/mailslurp_client/models/page_thread_projection.rb +52 -52
  113. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +52 -52
  114. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +52 -52
  115. data/lib/mailslurp_client/models/page_webhook_projection.rb +52 -52
  116. data/lib/mailslurp_client/models/page_webhook_result.rb +52 -52
  117. data/lib/mailslurp_client/models/pageable.rb +10 -10
  118. data/lib/mailslurp_client/models/raw_email_json.rb +0 -5
  119. data/lib/mailslurp_client/models/recipient.rb +13 -23
  120. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +38 -37
  121. data/lib/mailslurp_client/models/reply_to_email_options.rb +51 -50
  122. data/lib/mailslurp_client/models/send_email_options.rb +107 -115
  123. data/lib/mailslurp_client/models/sender.rb +14 -23
  124. data/lib/mailslurp_client/models/sent_email_dto.rb +97 -102
  125. data/lib/mailslurp_client/models/sent_email_projection.rb +66 -105
  126. data/lib/mailslurp_client/models/simple_send_email_options.rb +24 -24
  127. data/lib/mailslurp_client/models/template_dto.rb +22 -47
  128. data/lib/mailslurp_client/models/template_projection.rb +16 -41
  129. data/lib/mailslurp_client/models/template_variable.rb +0 -10
  130. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +0 -10
  131. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +0 -10
  132. data/lib/mailslurp_client/models/thread_projection.rb +60 -95
  133. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +43 -68
  134. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +34 -54
  135. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +19 -29
  136. data/lib/mailslurp_client/models/unread_count.rb +0 -5
  137. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +0 -5
  138. data/lib/mailslurp_client/models/update_group_contacts.rb +0 -5
  139. data/lib/mailslurp_client/models/update_inbox_options.rb +26 -26
  140. data/lib/mailslurp_client/models/upload_attachment_options.rb +14 -14
  141. data/lib/mailslurp_client/models/validation_message.rb +1 -5
  142. data/lib/mailslurp_client/models/verify_email_address_options.rb +0 -5
  143. data/lib/mailslurp_client/models/wait_for_conditions.rb +48 -58
  144. data/lib/mailslurp_client/models/webhook_dto.rb +64 -69
  145. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +42 -42
  146. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +49 -49
  147. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +43 -43
  148. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +75 -95
  149. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +84 -84
  150. data/lib/mailslurp_client/models/webhook_projection.rb +36 -61
  151. data/lib/mailslurp_client/models/webhook_redrive_result.rb +13 -23
  152. data/lib/mailslurp_client/models/webhook_result_dto.rb +76 -126
  153. data/lib/mailslurp_client/models/webhook_test_request.rb +21 -36
  154. data/lib/mailslurp_client/models/webhook_test_response.rb +13 -13
  155. data/lib/mailslurp_client/models/webhook_test_result.rb +13 -23
  156. data/lib/mailslurp_client/version.rb +1 -1
  157. data/lib/mailslurp_client.rb +2 -1
  158. metadata +4 -3
@@ -14,51 +14,51 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class TrackingPixelDto
17
- attr_accessor :created_at
18
-
19
- attr_accessor :html
20
-
21
17
  attr_accessor :id
22
18
 
23
- attr_accessor :inbox_id
19
+ attr_accessor :seen
24
20
 
25
21
  attr_accessor :recipient
26
22
 
27
- attr_accessor :seen
23
+ attr_accessor :html
28
24
 
29
- attr_accessor :seen_at
25
+ attr_accessor :url
26
+
27
+ attr_accessor :inbox_id
30
28
 
31
29
  attr_accessor :sent_email_id
32
30
 
33
- attr_accessor :url
31
+ attr_accessor :seen_at
32
+
33
+ attr_accessor :created_at
34
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',
39
- :'html' => :'html',
40
38
  :'id' => :'id',
41
- :'inbox_id' => :'inboxId',
42
- :'recipient' => :'recipient',
43
39
  :'seen' => :'seen',
44
- :'seen_at' => :'seenAt',
40
+ :'recipient' => :'recipient',
41
+ :'html' => :'html',
42
+ :'url' => :'url',
43
+ :'inbox_id' => :'inboxId',
45
44
  :'sent_email_id' => :'sentEmailId',
46
- :'url' => :'url'
45
+ :'seen_at' => :'seenAt',
46
+ :'created_at' => :'createdAt'
47
47
  }
48
48
  end
49
49
 
50
50
  # Attribute type mapping.
51
51
  def self.openapi_types
52
52
  {
53
- :'created_at' => :'DateTime',
54
- :'html' => :'String',
55
53
  :'id' => :'String',
56
- :'inbox_id' => :'String',
57
- :'recipient' => :'String',
58
54
  :'seen' => :'Boolean',
59
- :'seen_at' => :'DateTime',
55
+ :'recipient' => :'String',
56
+ :'html' => :'String',
57
+ :'url' => :'String',
58
+ :'inbox_id' => :'String',
60
59
  :'sent_email_id' => :'String',
61
- :'url' => :'String'
60
+ :'seen_at' => :'DateTime',
61
+ :'created_at' => :'DateTime'
62
62
  }
63
63
  end
64
64
 
@@ -83,40 +83,40 @@ 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']
88
- end
89
-
90
- if attributes.key?(:'html')
91
- self.html = attributes[:'html']
92
- end
93
-
94
86
  if attributes.key?(:'id')
95
87
  self.id = attributes[:'id']
96
88
  end
97
89
 
98
- if attributes.key?(:'inbox_id')
99
- self.inbox_id = attributes[:'inbox_id']
90
+ if attributes.key?(:'seen')
91
+ self.seen = attributes[:'seen']
100
92
  end
101
93
 
102
94
  if attributes.key?(:'recipient')
103
95
  self.recipient = attributes[:'recipient']
104
96
  end
105
97
 
106
- if attributes.key?(:'seen')
107
- self.seen = attributes[:'seen']
98
+ if attributes.key?(:'html')
99
+ self.html = attributes[:'html']
108
100
  end
109
101
 
110
- if attributes.key?(:'seen_at')
111
- self.seen_at = attributes[:'seen_at']
102
+ if attributes.key?(:'url')
103
+ self.url = attributes[:'url']
104
+ end
105
+
106
+ if attributes.key?(:'inbox_id')
107
+ self.inbox_id = attributes[:'inbox_id']
112
108
  end
113
109
 
114
110
  if attributes.key?(:'sent_email_id')
115
111
  self.sent_email_id = attributes[:'sent_email_id']
116
112
  end
117
113
 
118
- if attributes.key?(:'url')
119
- self.url = attributes[:'url']
114
+ if attributes.key?(:'seen_at')
115
+ self.seen_at = attributes[:'seen_at']
116
+ end
117
+
118
+ if attributes.key?(:'created_at')
119
+ self.created_at = attributes[:'created_at']
120
120
  end
121
121
  end
122
122
 
@@ -124,37 +124,12 @@ module MailSlurpClient
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
- if @html.nil?
132
- invalid_properties.push('invalid value for "html", html cannot be nil.')
133
- end
134
-
135
- if @id.nil?
136
- invalid_properties.push('invalid value for "id", id 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
- if @url.nil?
144
- invalid_properties.push('invalid value for "url", url cannot be nil.')
145
- end
146
-
147
127
  invalid_properties
148
128
  end
149
129
 
150
130
  # Check to see if the all the properties in the model are valid
151
131
  # @return true if the model is valid
152
132
  def valid?
153
- return false if @created_at.nil?
154
- return false if @html.nil?
155
- return false if @id.nil?
156
- return false if @seen.nil?
157
- return false if @url.nil?
158
133
  true
159
134
  end
160
135
 
@@ -163,15 +138,15 @@ module MailSlurpClient
163
138
  def ==(o)
164
139
  return true if self.equal?(o)
165
140
  self.class == o.class &&
166
- created_at == o.created_at &&
167
- html == o.html &&
168
141
  id == o.id &&
169
- inbox_id == o.inbox_id &&
170
- recipient == o.recipient &&
171
142
  seen == o.seen &&
172
- seen_at == o.seen_at &&
143
+ recipient == o.recipient &&
144
+ html == o.html &&
145
+ url == o.url &&
146
+ inbox_id == o.inbox_id &&
173
147
  sent_email_id == o.sent_email_id &&
174
- url == o.url
148
+ seen_at == o.seen_at &&
149
+ created_at == o.created_at
175
150
  end
176
151
 
177
152
  # @see the `==` method
@@ -183,7 +158,7 @@ module MailSlurpClient
183
158
  # Calculates hash code according to all attributes.
184
159
  # @return [Integer] Hash code
185
160
  def hash
186
- [created_at, html, id, inbox_id, recipient, seen, seen_at, sent_email_id, url].hash
161
+ [id, seen, recipient, html, url, inbox_id, sent_email_id, seen_at, created_at].hash
187
162
  end
188
163
 
189
164
  # Builds the object from hash
@@ -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
- attr_accessor :inbox_id
21
+ attr_accessor :user_id
22
22
 
23
- attr_accessor :name
23
+ attr_accessor :inbox_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
+ :'user_id' => :'userId',
40
41
  :'inbox_id' => :'inboxId',
41
- :'name' => :'name',
42
- :'recipient' => :'recipient',
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
+ :'user_id' => :'String',
55
56
  :'inbox_id' => :'String',
56
- :'name' => :'String',
57
- :'recipient' => :'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,30 +83,34 @@ 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')
91
91
  self.id = attributes[:'id']
92
92
  end
93
93
 
94
- if attributes.key?(:'inbox_id')
95
- self.inbox_id = attributes[:'inbox_id']
94
+ if attributes.key?(:'user_id')
95
+ self.user_id = attributes[:'user_id']
96
96
  end
97
97
 
98
- if attributes.key?(:'name')
99
- self.name = attributes[:'name']
98
+ if attributes.key?(:'inbox_id')
99
+ self.inbox_id = attributes[:'inbox_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,18 @@ 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
- if @id.nil?
132
- invalid_properties.push('invalid value for "id", id cannot be nil.')
133
- end
134
-
135
- if @seen.nil?
136
- invalid_properties.push('invalid value for "seen", seen cannot be nil.')
137
- end
138
-
139
- if @user_id.nil?
140
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
141
- end
142
-
143
127
  invalid_properties
144
128
  end
145
129
 
146
130
  # Check to see if the all the properties in the model are valid
147
131
  # @return true if the model is valid
148
132
  def valid?
149
- return false if @created_at.nil?
150
- return false if @id.nil?
151
- return false if @seen.nil?
152
- return false if @user_id.nil?
153
133
  true
154
134
  end
155
135
 
@@ -158,15 +138,15 @@ module MailSlurpClient
158
138
  def ==(o)
159
139
  return true if self.equal?(o)
160
140
  self.class == o.class &&
161
- created_at == o.created_at &&
141
+ name == o.name &&
162
142
  id == o.id &&
143
+ user_id == o.user_id &&
163
144
  inbox_id == o.inbox_id &&
164
- name == o.name &&
165
- recipient == o.recipient &&
145
+ created_at == o.created_at &&
166
146
  seen == o.seen &&
147
+ recipient == o.recipient &&
167
148
  seen_at == o.seen_at &&
168
- sent_email_id == o.sent_email_id &&
169
- user_id == o.user_id
149
+ sent_email_id == o.sent_email_id
170
150
  end
171
151
 
172
152
  # @see the `==` method
@@ -178,7 +158,7 @@ module MailSlurpClient
178
158
  # Calculates hash code according to all attributes.
179
159
  # @return [Integer] Hash code
180
160
  def hash
181
- [created_at, id, inbox_id, name, recipient, seen, seen_at, sent_email_id, user_id].hash
161
+ [name, id, user_id, inbox_id, created_at, seen, recipient, seen_at, sent_email_id].hash
182
162
  end
183
163
 
184
164
  # Builds the object from hash
@@ -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,22 @@ 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
- if @id.nil?
102
- invalid_properties.push('invalid value for "id", id cannot be nil.')
103
- end
104
-
105
97
  invalid_properties
106
98
  end
107
99
 
108
100
  # Check to see if the all the properties in the model are valid
109
101
  # @return true if the model is valid
110
102
  def valid?
111
- return false if @created_at.nil?
112
- return false if @id.nil?
113
103
  true
114
104
  end
115
105
 
@@ -118,11 +108,11 @@ module MailSlurpClient
118
108
  def ==(o)
119
109
  return true if self.equal?(o)
120
110
  self.class == o.class &&
121
- created_at == o.created_at &&
122
- from == o.from &&
123
111
  id == o.id &&
112
+ from == o.from &&
124
113
  subject == o.subject &&
125
- to == o.to
114
+ to == o.to &&
115
+ created_at == o.created_at
126
116
  end
127
117
 
128
118
  # @see the `==` method
@@ -134,7 +124,7 @@ module MailSlurpClient
134
124
  # Calculates hash code according to all attributes.
135
125
  # @return [Integer] Hash code
136
126
  def hash
137
- [created_at, from, id, subject, to].hash
127
+ [id, from, subject, to, created_at].hash
138
128
  end
139
129
 
140
130
  # Builds the object from hash
@@ -60,17 +60,12 @@ module MailSlurpClient
60
60
  # @return Array for valid properties with the reasons
61
61
  def list_invalid_properties
62
62
  invalid_properties = Array.new
63
- if @count.nil?
64
- invalid_properties.push('invalid value for "count", count cannot be nil.')
65
- end
66
-
67
63
  invalid_properties
68
64
  end
69
65
 
70
66
  # Check to see if the all the properties in the model are valid
71
67
  # @return true if the model is valid
72
68
  def valid?
73
- return false if @count.nil?
74
69
  true
75
70
  end
76
71
 
@@ -60,17 +60,12 @@ module MailSlurpClient
60
60
  # @return Array for valid properties with the reasons
61
61
  def list_invalid_properties
62
62
  invalid_properties = Array.new
63
- if @count.nil?
64
- invalid_properties.push('invalid value for "count", count cannot be nil.')
65
- end
66
-
67
63
  invalid_properties
68
64
  end
69
65
 
70
66
  # Check to see if the all the properties in the model are valid
71
67
  # @return true if the model is valid
72
68
  def valid?
73
- return false if @count.nil?
74
69
  true
75
70
  end
76
71
 
@@ -62,17 +62,12 @@ module MailSlurpClient
62
62
  # @return Array for valid properties with the reasons
63
63
  def list_invalid_properties
64
64
  invalid_properties = Array.new
65
- if @contact_ids.nil?
66
- invalid_properties.push('invalid value for "contact_ids", contact_ids cannot be nil.')
67
- end
68
-
69
65
  invalid_properties
70
66
  end
71
67
 
72
68
  # Check to see if the all the properties in the model are valid
73
69
  # @return true if the model is valid
74
70
  def valid?
75
- return false if @contact_ids.nil?
76
71
  true
77
72
  end
78
73
 
@@ -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