mailslurp_client 15.0.6 → 15.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/email_controller_api.rb +10 -7
  3. data/lib/mailslurp_client/api/inbox_controller_api.rb +94 -94
  4. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +28 -13
  5. data/lib/mailslurp_client/models/alias_dto.rb +39 -13
  6. data/lib/mailslurp_client/models/alias_projection.rb +40 -10
  7. data/lib/mailslurp_client/models/attachment_entity.rb +20 -0
  8. data/lib/mailslurp_client/models/attachment_meta_data.rb +20 -0
  9. data/lib/mailslurp_client/models/attachment_projection.rb +43 -23
  10. data/lib/mailslurp_client/models/basic_auth_options.rb +10 -0
  11. data/lib/mailslurp_client/models/bounce_projection.rb +10 -0
  12. data/lib/mailslurp_client/models/bounce_recipient.rb +20 -0
  13. data/lib/mailslurp_client/models/bounced_email_dto.rb +20 -0
  14. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +15 -0
  15. data/lib/mailslurp_client/models/bulk_send_email_options.rb +5 -0
  16. data/lib/mailslurp_client/models/condition_option.rb +10 -0
  17. data/lib/mailslurp_client/models/contact_dto.rb +20 -0
  18. data/lib/mailslurp_client/models/contact_projection.rb +23 -13
  19. data/lib/mailslurp_client/models/content_match_options.rb +5 -0
  20. data/lib/mailslurp_client/models/count_dto.rb +5 -0
  21. data/lib/mailslurp_client/models/create_alias_options.rb +10 -0
  22. data/lib/mailslurp_client/models/create_group_options.rb +5 -0
  23. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +10 -0
  24. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +15 -0
  25. data/lib/mailslurp_client/models/create_template_options.rb +10 -0
  26. data/lib/mailslurp_client/models/create_webhook_options.rb +5 -0
  27. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +10 -0
  28. data/lib/mailslurp_client/models/dns_lookup_options.rb +5 -0
  29. data/lib/mailslurp_client/models/dns_lookup_result.rb +20 -0
  30. data/lib/mailslurp_client/models/dns_lookup_results.rb +5 -0
  31. data/lib/mailslurp_client/models/domain_dto.rb +64 -13
  32. data/lib/mailslurp_client/models/domain_name_record.rb +20 -0
  33. data/lib/mailslurp_client/models/domain_preview.rb +32 -7
  34. data/lib/mailslurp_client/models/download_attachment_dto.rb +15 -0
  35. data/lib/mailslurp_client/models/email.rb +54 -13
  36. data/lib/mailslurp_client/models/email_content_match_result.rb +10 -0
  37. data/lib/mailslurp_client/models/email_links_result.rb +10 -0
  38. data/lib/mailslurp_client/models/email_preview.rb +15 -0
  39. data/lib/mailslurp_client/models/email_projection.rb +30 -10
  40. data/lib/mailslurp_client/models/email_text_lines_result.rb +10 -0
  41. data/lib/mailslurp_client/models/email_verification_result.rb +33 -13
  42. data/lib/mailslurp_client/models/expiration_defaults.rb +10 -0
  43. data/lib/mailslurp_client/models/expired_inbox_dto.rb +15 -0
  44. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +20 -0
  45. data/lib/mailslurp_client/models/export_link.rb +5 -0
  46. data/lib/mailslurp_client/models/export_options.rb +5 -0
  47. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +10 -0
  48. data/lib/mailslurp_client/models/gravatar_url.rb +10 -0
  49. data/lib/mailslurp_client/models/group_contacts_dto.rb +10 -0
  50. data/lib/mailslurp_client/models/group_dto.rb +15 -0
  51. data/lib/mailslurp_client/models/group_projection.rb +15 -0
  52. data/lib/mailslurp_client/models/html_validation_result.rb +29 -13
  53. data/lib/mailslurp_client/models/inbox_dto.rb +25 -0
  54. data/lib/mailslurp_client/models/inbox_exists_dto.rb +5 -0
  55. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +30 -0
  56. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +5 -0
  57. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +10 -0
  58. data/lib/mailslurp_client/models/inbox_preview.rb +20 -0
  59. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +35 -0
  60. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +5 -0
  61. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +10 -0
  62. data/lib/mailslurp_client/models/ip_address_result.rb +10 -0
  63. data/lib/mailslurp_client/models/json_schema_dto.rb +5 -0
  64. data/lib/mailslurp_client/models/match_option.rb +10 -0
  65. data/lib/mailslurp_client/models/missed_email.rb +35 -0
  66. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -0
  67. data/lib/mailslurp_client/models/name_server_record.rb +20 -0
  68. data/lib/mailslurp_client/models/organization_inbox_projection.rb +25 -0
  69. data/lib/mailslurp_client/models/page_alias.rb +32 -23
  70. data/lib/mailslurp_client/models/page_attachment_entity.rb +32 -23
  71. data/lib/mailslurp_client/models/page_bounced_email.rb +32 -23
  72. data/lib/mailslurp_client/models/page_bounced_recipients.rb +32 -23
  73. data/lib/mailslurp_client/models/page_contact_projection.rb +32 -23
  74. data/lib/mailslurp_client/models/page_email_preview.rb +32 -23
  75. data/lib/mailslurp_client/models/page_email_projection.rb +32 -23
  76. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +32 -23
  77. data/lib/mailslurp_client/models/page_group_projection.rb +32 -23
  78. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +32 -23
  79. data/lib/mailslurp_client/models/page_inbox_projection.rb +32 -23
  80. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +32 -23
  81. data/lib/mailslurp_client/models/page_missed_email_projection.rb +32 -23
  82. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +32 -23
  83. data/lib/mailslurp_client/models/page_sent_email_projection.rb +51 -12
  84. data/lib/mailslurp_client/models/page_template_projection.rb +32 -23
  85. data/lib/mailslurp_client/models/page_thread_projection.rb +32 -23
  86. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +32 -23
  87. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +32 -23
  88. data/lib/mailslurp_client/models/page_webhook_projection.rb +32 -23
  89. data/lib/mailslurp_client/models/page_webhook_result.rb +32 -23
  90. data/lib/mailslurp_client/models/{pageable.rb → pageable_object.rb} +3 -3
  91. data/lib/mailslurp_client/models/raw_email_json.rb +5 -0
  92. data/lib/mailslurp_client/models/recipient.rb +10 -0
  93. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +24 -13
  94. data/lib/mailslurp_client/models/reply_to_email_options.rb +24 -13
  95. data/lib/mailslurp_client/models/send_email_options.rb +12 -2
  96. data/lib/mailslurp_client/models/sender.rb +10 -0
  97. data/lib/mailslurp_client/models/sent_email_dto.rb +33 -13
  98. data/lib/mailslurp_client/models/sent_email_projection.rb +50 -10
  99. data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +5 -0
  100. data/lib/mailslurp_client/models/simple_send_email_options.rb +5 -0
  101. data/lib/mailslurp_client/models/sort.rb +13 -13
  102. data/lib/mailslurp_client/models/template_dto.rb +25 -0
  103. data/lib/mailslurp_client/models/template_projection.rb +25 -0
  104. data/lib/mailslurp_client/models/template_variable.rb +10 -0
  105. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +10 -0
  106. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +10 -0
  107. data/lib/mailslurp_client/models/thread_projection.rb +54 -19
  108. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +25 -0
  109. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +30 -10
  110. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -0
  111. data/lib/mailslurp_client/models/unread_count.rb +5 -0
  112. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +5 -0
  113. data/lib/mailslurp_client/models/update_group_contacts.rb +5 -0
  114. data/lib/mailslurp_client/models/validation_dto.rb +10 -0
  115. data/lib/mailslurp_client/models/validation_message.rb +5 -0
  116. data/lib/mailslurp_client/models/verify_email_address_options.rb +5 -0
  117. data/lib/mailslurp_client/models/wait_for_conditions.rb +10 -0
  118. data/lib/mailslurp_client/models/webhook_dto.rb +45 -0
  119. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +40 -0
  120. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +35 -0
  121. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +35 -0
  122. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +35 -0
  123. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +55 -0
  124. data/lib/mailslurp_client/models/webhook_projection.rb +25 -0
  125. data/lib/mailslurp_client/models/webhook_redrive_result.rb +10 -0
  126. data/lib/mailslurp_client/models/webhook_result_dto.rb +50 -0
  127. data/lib/mailslurp_client/models/webhook_test_request.rb +15 -0
  128. data/lib/mailslurp_client/models/webhook_test_result.rb +10 -0
  129. data/lib/mailslurp_client/version.rb +1 -1
  130. data/lib/mailslurp_client.rb +1 -1
  131. metadata +2 -2
@@ -15,14 +15,14 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Abstract webhook payload. Use the correct payload type for your webhook event type in order to access all the specific properties for that event. See the `NEW_EMAIL`,`NEW_CONTACT`, `NEW_ATTACHMENT` and `EMAIL_OPENED` payloads for the properties available for those events.
17
17
  class AbstractWebhookPayload
18
+ attr_accessor :webhook_name
19
+
18
20
  attr_accessor :event_name
19
21
 
20
22
  attr_accessor :webhook_id
21
23
 
22
24
  attr_accessor :message_id
23
25
 
24
- attr_accessor :webhook_name
25
-
26
26
  class EnumAttributeValidator
27
27
  attr_reader :datatype
28
28
  attr_reader :allowable_values
@@ -48,20 +48,20 @@ module MailSlurpClient
48
48
  # Attribute mapping from ruby-style variable name to JSON key.
49
49
  def self.attribute_map
50
50
  {
51
+ :'webhook_name' => :'webhookName',
51
52
  :'event_name' => :'eventName',
52
53
  :'webhook_id' => :'webhookId',
53
- :'message_id' => :'messageId',
54
- :'webhook_name' => :'webhookName'
54
+ :'message_id' => :'messageId'
55
55
  }
56
56
  end
57
57
 
58
58
  # Attribute type mapping.
59
59
  def self.openapi_types
60
60
  {
61
+ :'webhook_name' => :'String',
61
62
  :'event_name' => :'String',
62
63
  :'webhook_id' => :'String',
63
- :'message_id' => :'String',
64
- :'webhook_name' => :'String'
64
+ :'message_id' => :'String'
65
65
  }
66
66
  end
67
67
 
@@ -86,6 +86,10 @@ module MailSlurpClient
86
86
  h[k.to_sym] = v
87
87
  }
88
88
 
89
+ if attributes.key?(:'webhook_name')
90
+ self.webhook_name = attributes[:'webhook_name']
91
+ end
92
+
89
93
  if attributes.key?(:'event_name')
90
94
  self.event_name = attributes[:'event_name']
91
95
  end
@@ -97,24 +101,35 @@ module MailSlurpClient
97
101
  if attributes.key?(:'message_id')
98
102
  self.message_id = attributes[:'message_id']
99
103
  end
100
-
101
- if attributes.key?(:'webhook_name')
102
- self.webhook_name = attributes[:'webhook_name']
103
- end
104
104
  end
105
105
 
106
106
  # Show invalid properties with the reasons. Usually used together with valid?
107
107
  # @return Array for valid properties with the reasons
108
108
  def list_invalid_properties
109
109
  invalid_properties = Array.new
110
+ if @event_name.nil?
111
+ invalid_properties.push('invalid value for "event_name", event_name cannot be nil.')
112
+ end
113
+
114
+ if @webhook_id.nil?
115
+ invalid_properties.push('invalid value for "webhook_id", webhook_id cannot be nil.')
116
+ end
117
+
118
+ if @message_id.nil?
119
+ invalid_properties.push('invalid value for "message_id", message_id cannot be nil.')
120
+ end
121
+
110
122
  invalid_properties
111
123
  end
112
124
 
113
125
  # Check to see if the all the properties in the model are valid
114
126
  # @return true if the model is valid
115
127
  def valid?
128
+ return false if @event_name.nil?
116
129
  event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
117
130
  return false unless event_name_validator.valid?(@event_name)
131
+ return false if @webhook_id.nil?
132
+ return false if @message_id.nil?
118
133
  true
119
134
  end
120
135
 
@@ -133,10 +148,10 @@ module MailSlurpClient
133
148
  def ==(o)
134
149
  return true if self.equal?(o)
135
150
  self.class == o.class &&
151
+ webhook_name == o.webhook_name &&
136
152
  event_name == o.event_name &&
137
153
  webhook_id == o.webhook_id &&
138
- message_id == o.message_id &&
139
- webhook_name == o.webhook_name
154
+ message_id == o.message_id
140
155
  end
141
156
 
142
157
  # @see the `==` method
@@ -148,7 +163,7 @@ module MailSlurpClient
148
163
  # Calculates hash code according to all attributes.
149
164
  # @return [Integer] Hash code
150
165
  def hash
151
- [event_name, webhook_id, message_id, webhook_name].hash
166
+ [webhook_name, event_name, webhook_id, message_id].hash
152
167
  end
153
168
 
154
169
  # Builds the object from hash
@@ -33,12 +33,13 @@ module MailSlurpClient
33
33
  # If alias will generate response threads or not when email are received by it
34
34
  attr_accessor :use_threads
35
35
 
36
+ # Has the alias been verified. You must verify an alias if the masked email address has not yet been verified by your account
37
+ attr_accessor :is_verified
38
+
36
39
  attr_accessor :created_at
37
40
 
38
41
  attr_accessor :updated_at
39
42
 
40
- attr_accessor :verified
41
-
42
43
  # Attribute mapping from ruby-style variable name to JSON key.
43
44
  def self.attribute_map
44
45
  {
@@ -49,9 +50,9 @@ module MailSlurpClient
49
50
  :'inbox_id' => :'inboxId',
50
51
  :'name' => :'name',
51
52
  :'use_threads' => :'useThreads',
53
+ :'is_verified' => :'isVerified',
52
54
  :'created_at' => :'createdAt',
53
- :'updated_at' => :'updatedAt',
54
- :'verified' => :'verified'
55
+ :'updated_at' => :'updatedAt'
55
56
  }
56
57
  end
57
58
 
@@ -65,9 +66,9 @@ module MailSlurpClient
65
66
  :'inbox_id' => :'String',
66
67
  :'name' => :'String',
67
68
  :'use_threads' => :'Boolean',
69
+ :'is_verified' => :'Boolean',
68
70
  :'created_at' => :'DateTime',
69
- :'updated_at' => :'DateTime',
70
- :'verified' => :'Boolean'
71
+ :'updated_at' => :'DateTime'
71
72
  }
72
73
  end
73
74
 
@@ -120,6 +121,10 @@ module MailSlurpClient
120
121
  self.use_threads = attributes[:'use_threads']
121
122
  end
122
123
 
124
+ if attributes.key?(:'is_verified')
125
+ self.is_verified = attributes[:'is_verified']
126
+ end
127
+
123
128
  if attributes.key?(:'created_at')
124
129
  self.created_at = attributes[:'created_at']
125
130
  end
@@ -127,22 +132,43 @@ module MailSlurpClient
127
132
  if attributes.key?(:'updated_at')
128
133
  self.updated_at = attributes[:'updated_at']
129
134
  end
130
-
131
- if attributes.key?(:'verified')
132
- self.verified = attributes[:'verified']
133
- end
134
135
  end
135
136
 
136
137
  # Show invalid properties with the reasons. Usually used together with valid?
137
138
  # @return Array for valid properties with the reasons
138
139
  def list_invalid_properties
139
140
  invalid_properties = Array.new
141
+ if @id.nil?
142
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
143
+ end
144
+
145
+ if @email_address.nil?
146
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
147
+ end
148
+
149
+ if @user_id.nil?
150
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
151
+ end
152
+
153
+ if @inbox_id.nil?
154
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
155
+ end
156
+
157
+ if @is_verified.nil?
158
+ invalid_properties.push('invalid value for "is_verified", is_verified cannot be nil.')
159
+ end
160
+
140
161
  invalid_properties
141
162
  end
142
163
 
143
164
  # Check to see if the all the properties in the model are valid
144
165
  # @return true if the model is valid
145
166
  def valid?
167
+ return false if @id.nil?
168
+ return false if @email_address.nil?
169
+ return false if @user_id.nil?
170
+ return false if @inbox_id.nil?
171
+ return false if @is_verified.nil?
146
172
  true
147
173
  end
148
174
 
@@ -158,9 +184,9 @@ module MailSlurpClient
158
184
  inbox_id == o.inbox_id &&
159
185
  name == o.name &&
160
186
  use_threads == o.use_threads &&
187
+ is_verified == o.is_verified &&
161
188
  created_at == o.created_at &&
162
- updated_at == o.updated_at &&
163
- verified == o.verified
189
+ updated_at == o.updated_at
164
190
  end
165
191
 
166
192
  # @see the `==` method
@@ -172,7 +198,7 @@ module MailSlurpClient
172
198
  # Calculates hash code according to all attributes.
173
199
  # @return [Integer] Hash code
174
200
  def hash
175
- [id, email_address, masked_email_address, user_id, inbox_id, name, use_threads, created_at, updated_at, verified].hash
201
+ [id, email_address, masked_email_address, user_id, inbox_id, name, use_threads, is_verified, created_at, updated_at].hash
176
202
  end
177
203
 
178
204
  # Builds the object from hash
@@ -19,12 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
+ attr_accessor :inbox_id
23
+
22
24
  attr_accessor :user_id
23
25
 
24
26
  attr_accessor :email_address
25
27
 
26
- attr_accessor :inbox_id
27
-
28
28
  attr_accessor :created_at
29
29
 
30
30
  attr_accessor :use_threads
@@ -36,9 +36,9 @@ module MailSlurpClient
36
36
  {
37
37
  :'name' => :'name',
38
38
  :'id' => :'id',
39
+ :'inbox_id' => :'inboxId',
39
40
  :'user_id' => :'userId',
40
41
  :'email_address' => :'emailAddress',
41
- :'inbox_id' => :'inboxId',
42
42
  :'created_at' => :'createdAt',
43
43
  :'use_threads' => :'useThreads',
44
44
  :'updated_at' => :'updatedAt'
@@ -50,9 +50,9 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'id' => :'String',
53
+ :'inbox_id' => :'String',
53
54
  :'user_id' => :'String',
54
55
  :'email_address' => :'String',
55
- :'inbox_id' => :'String',
56
56
  :'created_at' => :'DateTime',
57
57
  :'use_threads' => :'Boolean',
58
58
  :'updated_at' => :'DateTime'
@@ -88,6 +88,10 @@ module MailSlurpClient
88
88
  self.id = attributes[:'id']
89
89
  end
90
90
 
91
+ if attributes.key?(:'inbox_id')
92
+ self.inbox_id = attributes[:'inbox_id']
93
+ end
94
+
91
95
  if attributes.key?(:'user_id')
92
96
  self.user_id = attributes[:'user_id']
93
97
  end
@@ -96,10 +100,6 @@ module MailSlurpClient
96
100
  self.email_address = attributes[:'email_address']
97
101
  end
98
102
 
99
- if attributes.key?(:'inbox_id')
100
- self.inbox_id = attributes[:'inbox_id']
101
- end
102
-
103
103
  if attributes.key?(:'created_at')
104
104
  self.created_at = attributes[:'created_at']
105
105
  end
@@ -117,12 +117,42 @@ module MailSlurpClient
117
117
  # @return Array for valid properties with the reasons
118
118
  def list_invalid_properties
119
119
  invalid_properties = Array.new
120
+ if @id.nil?
121
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
122
+ end
123
+
124
+ if @inbox_id.nil?
125
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
126
+ end
127
+
128
+ if @user_id.nil?
129
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
130
+ end
131
+
132
+ if @email_address.nil?
133
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
134
+ end
135
+
136
+ if @created_at.nil?
137
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
+ end
139
+
140
+ if @updated_at.nil?
141
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
142
+ end
143
+
120
144
  invalid_properties
121
145
  end
122
146
 
123
147
  # Check to see if the all the properties in the model are valid
124
148
  # @return true if the model is valid
125
149
  def valid?
150
+ return false if @id.nil?
151
+ return false if @inbox_id.nil?
152
+ return false if @user_id.nil?
153
+ return false if @email_address.nil?
154
+ return false if @created_at.nil?
155
+ return false if @updated_at.nil?
126
156
  true
127
157
  end
128
158
 
@@ -133,9 +163,9 @@ module MailSlurpClient
133
163
  self.class == o.class &&
134
164
  name == o.name &&
135
165
  id == o.id &&
166
+ inbox_id == o.inbox_id &&
136
167
  user_id == o.user_id &&
137
168
  email_address == o.email_address &&
138
- inbox_id == o.inbox_id &&
139
169
  created_at == o.created_at &&
140
170
  use_threads == o.use_threads &&
141
171
  updated_at == o.updated_at
@@ -150,7 +180,7 @@ module MailSlurpClient
150
180
  # Calculates hash code according to all attributes.
151
181
  # @return [Integer] Hash code
152
182
  def hash
153
- [name, id, user_id, email_address, inbox_id, created_at, use_threads, updated_at].hash
183
+ [name, id, inbox_id, user_id, email_address, created_at, use_threads, updated_at].hash
154
184
  end
155
185
 
156
186
  # Builds the object from hash
@@ -116,12 +116,32 @@ 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 @user_id.nil?
124
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
125
+ end
126
+
127
+ if @created_at.nil?
128
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
129
+ end
130
+
131
+ if @updated_at.nil?
132
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
133
+ end
134
+
119
135
  invalid_properties
120
136
  end
121
137
 
122
138
  # Check to see if the all the properties in the model are valid
123
139
  # @return true if the model is valid
124
140
  def valid?
141
+ return false if @attachment_id.nil?
142
+ return false if @user_id.nil?
143
+ return false if @created_at.nil?
144
+ return false if @updated_at.nil?
125
145
  true
126
146
  end
127
147
 
@@ -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
 
@@ -19,28 +19,28 @@ module MailSlurpClient
19
19
  # Content length of attachment in bytes
20
20
  attr_accessor :content_length
21
21
 
22
- # Content type of attachment.
23
- attr_accessor :content_type
24
-
25
22
  attr_accessor :user_id
26
23
 
24
+ attr_accessor :created_at
25
+
27
26
  # Attachment ID
28
27
  attr_accessor :attachment_id
29
28
 
30
- attr_accessor :created_at
31
-
32
29
  attr_accessor :updated_at
33
30
 
31
+ # Content type of attachment.
32
+ attr_accessor :content_type
33
+
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
37
  :'name' => :'name',
38
38
  :'content_length' => :'contentLength',
39
- :'content_type' => :'contentType',
40
39
  :'user_id' => :'userId',
41
- :'attachment_id' => :'attachmentId',
42
40
  :'created_at' => :'createdAt',
43
- :'updated_at' => :'updatedAt'
41
+ :'attachment_id' => :'attachmentId',
42
+ :'updated_at' => :'updatedAt',
43
+ :'content_type' => :'contentType'
44
44
  }
45
45
  end
46
46
 
@@ -49,11 +49,11 @@ module MailSlurpClient
49
49
  {
50
50
  :'name' => :'String',
51
51
  :'content_length' => :'Integer',
52
- :'content_type' => :'String',
53
52
  :'user_id' => :'String',
54
- :'attachment_id' => :'String',
55
53
  :'created_at' => :'DateTime',
56
- :'updated_at' => :'DateTime'
54
+ :'attachment_id' => :'String',
55
+ :'updated_at' => :'DateTime',
56
+ :'content_type' => :'String'
57
57
  }
58
58
  end
59
59
 
@@ -86,37 +86,57 @@ module MailSlurpClient
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']
91
- end
92
-
93
89
  if attributes.key?(:'user_id')
94
90
  self.user_id = attributes[:'user_id']
95
91
  end
96
92
 
97
- if attributes.key?(:'attachment_id')
98
- self.attachment_id = attributes[:'attachment_id']
99
- end
100
-
101
93
  if attributes.key?(:'created_at')
102
94
  self.created_at = attributes[:'created_at']
103
95
  end
104
96
 
97
+ if attributes.key?(:'attachment_id')
98
+ self.attachment_id = attributes[:'attachment_id']
99
+ end
100
+
105
101
  if attributes.key?(:'updated_at')
106
102
  self.updated_at = attributes[:'updated_at']
107
103
  end
104
+
105
+ if attributes.key?(:'content_type')
106
+ self.content_type = attributes[:'content_type']
107
+ end
108
108
  end
109
109
 
110
110
  # Show invalid properties with the reasons. Usually used together with valid?
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
+
118
+ if @created_at.nil?
119
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
120
+ end
121
+
122
+ if @attachment_id.nil?
123
+ invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
124
+ end
125
+
126
+ if @updated_at.nil?
127
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
128
+ end
129
+
114
130
  invalid_properties
115
131
  end
116
132
 
117
133
  # Check to see if the all the properties in the model are valid
118
134
  # @return true if the model is valid
119
135
  def valid?
136
+ return false if @user_id.nil?
137
+ return false if @created_at.nil?
138
+ return false if @attachment_id.nil?
139
+ return false if @updated_at.nil?
120
140
  true
121
141
  end
122
142
 
@@ -127,11 +147,11 @@ module MailSlurpClient
127
147
  self.class == o.class &&
128
148
  name == o.name &&
129
149
  content_length == o.content_length &&
130
- content_type == o.content_type &&
131
150
  user_id == o.user_id &&
132
- attachment_id == o.attachment_id &&
133
151
  created_at == o.created_at &&
134
- updated_at == o.updated_at
152
+ attachment_id == o.attachment_id &&
153
+ updated_at == o.updated_at &&
154
+ content_type == o.content_type
135
155
  end
136
156
 
137
157
  # @see the `==` method
@@ -143,7 +163,7 @@ module MailSlurpClient
143
163
  # Calculates hash code according to all attributes.
144
164
  # @return [Integer] Hash code
145
165
  def hash
146
- [name, content_length, content_type, user_id, attachment_id, created_at, updated_at].hash
166
+ [name, content_length, user_id, created_at, attachment_id, updated_at, content_type].hash
147
167
  end
148
168
 
149
169
  # Builds the object from hash
@@ -69,12 +69,22 @@ 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
+
72
80
  invalid_properties
73
81
  end
74
82
 
75
83
  # Check to see if the all the properties in the model are valid
76
84
  # @return true if the model is valid
77
85
  def valid?
86
+ return false if @username.nil?
87
+ return false if @password.nil?
78
88
  true
79
89
  end
80
90
 
@@ -76,12 +76,22 @@ module MailSlurpClient
76
76
  # @return Array for valid properties with the reasons
77
77
  def list_invalid_properties
78
78
  invalid_properties = Array.new
79
+ if @sender.nil?
80
+ invalid_properties.push('invalid value for "sender", sender cannot be nil.')
81
+ end
82
+
83
+ if @created_at.nil?
84
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
85
+ end
86
+
79
87
  invalid_properties
80
88
  end
81
89
 
82
90
  # Check to see if the all the properties in the model are valid
83
91
  # @return true if the model is valid
84
92
  def valid?
93
+ return false if @sender.nil?
94
+ return false if @created_at.nil?
85
95
  true
86
96
  end
87
97
 
@@ -92,12 +92,32 @@ module MailSlurpClient
92
92
  # @return Array for valid properties with the reasons
93
93
  def list_invalid_properties
94
94
  invalid_properties = Array.new
95
+ if @user_id.nil?
96
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
97
+ end
98
+
99
+ if @recipient.nil?
100
+ invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
101
+ end
102
+
103
+ if @created_at.nil?
104
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
105
+ end
106
+
107
+ if @updated_at.nil?
108
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
109
+ end
110
+
95
111
  invalid_properties
96
112
  end
97
113
 
98
114
  # Check to see if the all the properties in the model are valid
99
115
  # @return true if the model is valid
100
116
  def valid?
117
+ return false if @user_id.nil?
118
+ return false if @recipient.nil?
119
+ return false if @created_at.nil?
120
+ return false if @updated_at.nil?
101
121
  true
102
122
  end
103
123
 
@@ -137,12 +137,32 @@ module MailSlurpClient
137
137
  # @return Array for valid properties with the reasons
138
138
  def list_invalid_properties
139
139
  invalid_properties = Array.new
140
+ if @user_id.nil?
141
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
142
+ end
143
+
144
+ if @notification_type.nil?
145
+ invalid_properties.push('invalid value for "notification_type", notification_type cannot be nil.')
146
+ end
147
+
148
+ if @sender.nil?
149
+ invalid_properties.push('invalid value for "sender", sender cannot be nil.')
150
+ end
151
+
152
+ if @created_at.nil?
153
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
154
+ end
155
+
140
156
  invalid_properties
141
157
  end
142
158
 
143
159
  # Check to see if the all the properties in the model are valid
144
160
  # @return true if the model is valid
145
161
  def valid?
162
+ return false if @user_id.nil?
163
+ return false if @notification_type.nil?
164
+ return false if @sender.nil?
165
+ return false if @created_at.nil?
146
166
  true
147
167
  end
148
168