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
@@ -85,12 +85,27 @@ module MailSlurpClient
85
85
  # @return Array for valid properties with the reasons
86
86
  def list_invalid_properties
87
87
  invalid_properties = Array.new
88
+ if @user_id.nil?
89
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
90
+ end
91
+
92
+ if @recipient.nil?
93
+ invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
94
+ end
95
+
96
+ if @created_at.nil?
97
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
98
+ end
99
+
88
100
  invalid_properties
89
101
  end
90
102
 
91
103
  # Check to see if the all the properties in the model are valid
92
104
  # @return true if the model is valid
93
105
  def valid?
106
+ return false if @user_id.nil?
107
+ return false if @recipient.nil?
108
+ return false if @created_at.nil?
94
109
  true
95
110
  end
96
111
 
@@ -76,6 +76,10 @@ module MailSlurpClient
76
76
  invalid_properties.push('invalid value for "inbox_ids", inbox_ids cannot be nil.')
77
77
  end
78
78
 
79
+ if @send_email_options.nil?
80
+ invalid_properties.push('invalid value for "send_email_options", send_email_options cannot be nil.')
81
+ end
82
+
79
83
  invalid_properties
80
84
  end
81
85
 
@@ -83,6 +87,7 @@ module MailSlurpClient
83
87
  # @return true if the model is valid
84
88
  def valid?
85
89
  return false if @inbox_ids.nil?
90
+ return false if @send_email_options.nil?
86
91
  true
87
92
  end
88
93
 
@@ -93,14 +93,24 @@ module MailSlurpClient
93
93
  # @return Array for valid properties with the reasons
94
94
  def list_invalid_properties
95
95
  invalid_properties = Array.new
96
+ if @condition.nil?
97
+ invalid_properties.push('invalid value for "condition", condition cannot be nil.')
98
+ end
99
+
100
+ if @value.nil?
101
+ invalid_properties.push('invalid value for "value", value cannot be nil.')
102
+ end
103
+
96
104
  invalid_properties
97
105
  end
98
106
 
99
107
  # Check to see if the all the properties in the model are valid
100
108
  # @return true if the model is valid
101
109
  def valid?
110
+ return false if @condition.nil?
102
111
  condition_validator = EnumAttributeValidator.new('String', ["HAS_ATTACHMENTS"])
103
112
  return false unless condition_validator.valid?(@condition)
113
+ return false if @value.nil?
104
114
  value_validator = EnumAttributeValidator.new('String', ["TRUE", "FALSE"])
105
115
  return false unless value_validator.valid?(@value)
106
116
  true
@@ -144,12 +144,32 @@ module MailSlurpClient
144
144
  # @return Array for valid properties with the reasons
145
145
  def list_invalid_properties
146
146
  invalid_properties = Array.new
147
+ if @id.nil?
148
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
149
+ end
150
+
151
+ if @email_addresses.nil?
152
+ invalid_properties.push('invalid value for "email_addresses", email_addresses cannot be nil.')
153
+ end
154
+
155
+ if @tags.nil?
156
+ invalid_properties.push('invalid value for "tags", tags cannot be nil.')
157
+ end
158
+
159
+ if @created_at.nil?
160
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
161
+ end
162
+
147
163
  invalid_properties
148
164
  end
149
165
 
150
166
  # Check to see if the all the properties in the model are valid
151
167
  # @return true if the model is valid
152
168
  def valid?
169
+ return false if @id.nil?
170
+ return false if @email_addresses.nil?
171
+ return false if @tags.nil?
172
+ return false if @created_at.nil?
153
173
  true
154
174
  end
155
175
 
@@ -18,6 +18,8 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :group_id
20
20
 
21
+ attr_accessor :created_at
22
+
21
23
  attr_accessor :first_name
22
24
 
23
25
  attr_accessor :last_name
@@ -28,19 +30,17 @@ module MailSlurpClient
28
30
 
29
31
  attr_accessor :opt_out
30
32
 
31
- attr_accessor :created_at
32
-
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
36
  :'id' => :'id',
37
37
  :'group_id' => :'groupId',
38
+ :'created_at' => :'createdAt',
38
39
  :'first_name' => :'firstName',
39
40
  :'last_name' => :'lastName',
40
41
  :'company' => :'company',
41
42
  :'email_addresses' => :'emailAddresses',
42
- :'opt_out' => :'optOut',
43
- :'created_at' => :'createdAt'
43
+ :'opt_out' => :'optOut'
44
44
  }
45
45
  end
46
46
 
@@ -49,12 +49,12 @@ module MailSlurpClient
49
49
  {
50
50
  :'id' => :'String',
51
51
  :'group_id' => :'String',
52
+ :'created_at' => :'DateTime',
52
53
  :'first_name' => :'String',
53
54
  :'last_name' => :'String',
54
55
  :'company' => :'String',
55
56
  :'email_addresses' => :'Array<String>',
56
- :'opt_out' => :'Boolean',
57
- :'created_at' => :'DateTime'
57
+ :'opt_out' => :'Boolean'
58
58
  }
59
59
  end
60
60
 
@@ -87,6 +87,10 @@ module MailSlurpClient
87
87
  self.group_id = attributes[:'group_id']
88
88
  end
89
89
 
90
+ if attributes.key?(:'created_at')
91
+ self.created_at = attributes[:'created_at']
92
+ end
93
+
90
94
  if attributes.key?(:'first_name')
91
95
  self.first_name = attributes[:'first_name']
92
96
  end
@@ -108,22 +112,28 @@ module MailSlurpClient
108
112
  if attributes.key?(:'opt_out')
109
113
  self.opt_out = attributes[:'opt_out']
110
114
  end
111
-
112
- if attributes.key?(:'created_at')
113
- self.created_at = attributes[:'created_at']
114
- end
115
115
  end
116
116
 
117
117
  # Show invalid properties with the reasons. Usually used together with valid?
118
118
  # @return Array for valid properties with the reasons
119
119
  def list_invalid_properties
120
120
  invalid_properties = Array.new
121
+ if @id.nil?
122
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
123
+ end
124
+
125
+ if @created_at.nil?
126
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
127
+ end
128
+
121
129
  invalid_properties
122
130
  end
123
131
 
124
132
  # Check to see if the all the properties in the model are valid
125
133
  # @return true if the model is valid
126
134
  def valid?
135
+ return false if @id.nil?
136
+ return false if @created_at.nil?
127
137
  true
128
138
  end
129
139
 
@@ -134,12 +144,12 @@ module MailSlurpClient
134
144
  self.class == o.class &&
135
145
  id == o.id &&
136
146
  group_id == o.group_id &&
147
+ created_at == o.created_at &&
137
148
  first_name == o.first_name &&
138
149
  last_name == o.last_name &&
139
150
  company == o.company &&
140
151
  email_addresses == o.email_addresses &&
141
- opt_out == o.opt_out &&
142
- created_at == o.created_at
152
+ opt_out == o.opt_out
143
153
  end
144
154
 
145
155
  # @see the `==` method
@@ -151,7 +161,7 @@ module MailSlurpClient
151
161
  # Calculates hash code according to all attributes.
152
162
  # @return [Integer] Hash code
153
163
  def hash
154
- [id, group_id, first_name, last_name, company, email_addresses, opt_out, created_at].hash
164
+ [id, group_id, created_at, first_name, last_name, company, email_addresses, opt_out].hash
155
165
  end
156
166
 
157
167
  # Builds the object from hash
@@ -62,12 +62,17 @@ 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 @pattern.nil?
66
+ invalid_properties.push('invalid value for "pattern", pattern cannot be nil.')
67
+ end
68
+
65
69
  invalid_properties
66
70
  end
67
71
 
68
72
  # Check to see if the all the properties in the model are valid
69
73
  # @return true if the model is valid
70
74
  def valid?
75
+ return false if @pattern.nil?
71
76
  true
72
77
  end
73
78
 
@@ -60,12 +60,17 @@ 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 @total_elements.nil?
64
+ invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
65
+ end
66
+
63
67
  invalid_properties
64
68
  end
65
69
 
66
70
  # Check to see if the all the properties in the model are valid
67
71
  # @return true if the model is valid
68
72
  def valid?
73
+ return false if @total_elements.nil?
69
74
  true
70
75
  end
71
76
 
@@ -89,12 +89,22 @@ 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 @email_address.nil?
93
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
94
+ end
95
+
96
+ if @use_threads.nil?
97
+ invalid_properties.push('invalid value for "use_threads", use_threads cannot be nil.')
98
+ end
99
+
92
100
  invalid_properties
93
101
  end
94
102
 
95
103
  # Check to see if the all the properties in the model are valid
96
104
  # @return true if the model is valid
97
105
  def valid?
106
+ return false if @email_address.nil?
107
+ return false if @use_threads.nil?
98
108
  true
99
109
  end
100
110
 
@@ -68,12 +68,17 @@ module MailSlurpClient
68
68
  # @return Array for valid properties with the reasons
69
69
  def list_invalid_properties
70
70
  invalid_properties = Array.new
71
+ if @name.nil?
72
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
73
+ end
74
+
71
75
  invalid_properties
72
76
  end
73
77
 
74
78
  # Check to see if the all the properties in the model are valid
75
79
  # @return true if the model is valid
76
80
  def valid?
81
+ return false if @name.nil?
77
82
  true
78
83
  end
79
84
 
@@ -104,19 +104,29 @@ module MailSlurpClient
104
104
  # @return Array for valid properties with the reasons
105
105
  def list_invalid_properties
106
106
  invalid_properties = Array.new
107
+ if @field.nil?
108
+ invalid_properties.push('invalid value for "field", field cannot be nil.')
109
+ end
110
+
107
111
  if @match.nil?
108
112
  invalid_properties.push('invalid value for "match", match cannot be nil.')
109
113
  end
110
114
 
115
+ if @forward_to_recipients.nil?
116
+ invalid_properties.push('invalid value for "forward_to_recipients", forward_to_recipients cannot be nil.')
117
+ end
118
+
111
119
  invalid_properties
112
120
  end
113
121
 
114
122
  # Check to see if the all the properties in the model are valid
115
123
  # @return true if the model is valid
116
124
  def valid?
125
+ return false if @field.nil?
117
126
  field_validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS"])
118
127
  return false unless field_validator.valid?(@field)
119
128
  return false if @match.nil?
129
+ return false if @forward_to_recipients.nil?
120
130
  true
121
131
  end
122
132
 
@@ -102,16 +102,31 @@ module MailSlurpClient
102
102
  # @return Array for valid properties with the reasons
103
103
  def list_invalid_properties
104
104
  invalid_properties = Array.new
105
+ if @scope.nil?
106
+ invalid_properties.push('invalid value for "scope", scope cannot be nil.')
107
+ end
108
+
109
+ if @action.nil?
110
+ invalid_properties.push('invalid value for "action", action cannot be nil.')
111
+ end
112
+
113
+ if @target.nil?
114
+ invalid_properties.push('invalid value for "target", target cannot be nil.')
115
+ end
116
+
105
117
  invalid_properties
106
118
  end
107
119
 
108
120
  # Check to see if the all the properties in the model are valid
109
121
  # @return true if the model is valid
110
122
  def valid?
123
+ return false if @scope.nil?
111
124
  scope_validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
112
125
  return false unless scope_validator.valid?(@scope)
126
+ return false if @action.nil?
113
127
  action_validator = EnumAttributeValidator.new('String', ["BLOCK", "ALLOW", "FILTER_REMOVE"])
114
128
  return false unless action_validator.valid?(@action)
129
+ return false if @target.nil?
115
130
  true
116
131
  end
117
132
 
@@ -68,12 +68,22 @@ module MailSlurpClient
68
68
  # @return Array for valid properties with the reasons
69
69
  def list_invalid_properties
70
70
  invalid_properties = Array.new
71
+ if @name.nil?
72
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
73
+ end
74
+
75
+ if @content.nil?
76
+ invalid_properties.push('invalid value for "content", content cannot be nil.')
77
+ end
78
+
71
79
  invalid_properties
72
80
  end
73
81
 
74
82
  # Check to see if the all the properties in the model are valid
75
83
  # @return true if the model is valid
76
84
  def valid?
85
+ return false if @name.nil?
86
+ return false if @content.nil?
77
87
  true
78
88
  end
79
89
 
@@ -110,12 +110,17 @@ module MailSlurpClient
110
110
  # @return Array for valid properties with the reasons
111
111
  def list_invalid_properties
112
112
  invalid_properties = Array.new
113
+ if @url.nil?
114
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
115
+ end
116
+
113
117
  invalid_properties
114
118
  end
115
119
 
116
120
  # Check to see if the all the properties in the model are valid
117
121
  # @return true if the model is valid
118
122
  def valid?
123
+ return false if @url.nil?
119
124
  event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
120
125
  return false unless event_name_validator.valid?(@event_name)
121
126
  true
@@ -79,12 +79,22 @@ module MailSlurpClient
79
79
  # @return Array for valid properties with the reasons
80
80
  def list_invalid_properties
81
81
  invalid_properties = Array.new
82
+ if @mx_records.nil?
83
+ invalid_properties.push('invalid value for "mx_records", mx_records cannot be nil.')
84
+ end
85
+
86
+ if @domain.nil?
87
+ invalid_properties.push('invalid value for "domain", domain cannot be nil.')
88
+ end
89
+
82
90
  invalid_properties
83
91
  end
84
92
 
85
93
  # Check to see if the all the properties in the model are valid
86
94
  # @return true if the model is valid
87
95
  def valid?
96
+ return false if @mx_records.nil?
97
+ return false if @domain.nil?
88
98
  true
89
99
  end
90
100
 
@@ -112,6 +112,10 @@ module MailSlurpClient
112
112
  invalid_properties.push('invalid value for "record_types", record_types cannot be nil.')
113
113
  end
114
114
 
115
+ if @omit_final_dns_dot.nil?
116
+ invalid_properties.push('invalid value for "omit_final_dns_dot", omit_final_dns_dot cannot be nil.')
117
+ end
118
+
115
119
  invalid_properties
116
120
  end
117
121
 
@@ -120,6 +124,7 @@ module MailSlurpClient
120
124
  def valid?
121
125
  return false if @hostname.nil?
122
126
  return false if @record_types.nil?
127
+ return false if @omit_final_dns_dot.nil?
123
128
  true
124
129
  end
125
130
 
@@ -110,14 +110,34 @@ module MailSlurpClient
110
110
  # @return Array for valid properties with the reasons
111
111
  def list_invalid_properties
112
112
  invalid_properties = Array.new
113
+ if @record_type.nil?
114
+ invalid_properties.push('invalid value for "record_type", record_type cannot be nil.')
115
+ end
116
+
117
+ if @ttl.nil?
118
+ invalid_properties.push('invalid value for "ttl", ttl cannot be nil.')
119
+ end
120
+
121
+ if @record_entries.nil?
122
+ invalid_properties.push('invalid value for "record_entries", record_entries cannot be nil.')
123
+ end
124
+
125
+ if @name.nil?
126
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
127
+ end
128
+
113
129
  invalid_properties
114
130
  end
115
131
 
116
132
  # Check to see if the all the properties in the model are valid
117
133
  # @return true if the model is valid
118
134
  def valid?
135
+ return false if @record_type.nil?
119
136
  record_type_validator = EnumAttributeValidator.new('String', ["A", "NS", "MD", "MF", "CNAME", "SOA", "MB", "MG", "MR", "NULL", "WKS", "PTR", "HINFO", "MINFO", "MX", "TXT", "RP", "AFSDB", "X25", "ISDN", "RT", "NSAP", "NSAP_PTR", "SIG", "KEY", "PX", "GPOS", "AAAA", "LOC", "NXT", "EID", "NIMLOC", "SRV", "ATMA", "NAPTR", "KX", "CERT", "A6", "DNAME", "SINK", "OPT", "APL", "DS", "SSHFP", "IPSECKEY", "RRSIG", "NSEC", "DNSKEY", "DHCID", "NSEC3", "NSEC3PARAM", "TLSA", "SMIMEA", "HIP", "NINFO", "RKEY", "TALINK", "CDS", "CDNSKEY", "OPENPGPKEY", "CSYNC", "ZONEMD", "SVCB", "HTTPS", "SPF", "UINFO", "UID", "GID", "UNSPEC", "NID", "L32", "L64", "LP", "EUI48", "EUI64", "TKEY", "TSIG", "IXFR", "AXFR", "MAILB", "MAILA", "ANY", "URI", "CAA", "AVC", "DOA", "AMTRELAY", "TA", "DLV"])
120
137
  return false unless record_type_validator.valid?(@record_type)
138
+ return false if @ttl.nil?
139
+ return false if @record_entries.nil?
140
+ return false if @name.nil?
121
141
  true
122
142
  end
123
143
 
@@ -63,12 +63,17 @@ module MailSlurpClient
63
63
  # @return Array for valid properties with the reasons
64
64
  def list_invalid_properties
65
65
  invalid_properties = Array.new
66
+ if @results.nil?
67
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
68
+ end
69
+
66
70
  invalid_properties
67
71
  end
68
72
 
69
73
  # Check to see if the all the properties in the model are valid
70
74
  # @return true if the model is valid
71
75
  def valid?
76
+ return false if @results.nil?
72
77
  true
73
78
  end
74
79
 
@@ -28,6 +28,9 @@ module MailSlurpClient
28
28
  # Unique token DKIM tokens
29
29
  attr_accessor :dkim_tokens
30
30
 
31
+ # Whether domain has been verified or not. If the domain is not verified after 72 hours there is most likely an issue with the domains DNS records.
32
+ attr_accessor :is_verified
33
+
31
34
  # List of DNS domain name records (C, MX, TXT) etc that you must add to the DNS server associated with your domain provider.
32
35
  attr_accessor :domain_name_records
33
36
 
@@ -41,8 +44,6 @@ module MailSlurpClient
41
44
  # Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails.
42
45
  attr_accessor :domain_type
43
46
 
44
- attr_accessor :verified
45
-
46
47
  class EnumAttributeValidator
47
48
  attr_reader :datatype
48
49
  attr_reader :allowable_values
@@ -73,12 +74,12 @@ module MailSlurpClient
73
74
  :'domain' => :'domain',
74
75
  :'verification_token' => :'verificationToken',
75
76
  :'dkim_tokens' => :'dkimTokens',
77
+ :'is_verified' => :'isVerified',
76
78
  :'domain_name_records' => :'domainNameRecords',
77
79
  :'catch_all_inbox_id' => :'catchAllInboxId',
78
80
  :'created_at' => :'createdAt',
79
81
  :'updated_at' => :'updatedAt',
80
- :'domain_type' => :'domainType',
81
- :'verified' => :'verified'
82
+ :'domain_type' => :'domainType'
82
83
  }
83
84
  end
84
85
 
@@ -90,12 +91,12 @@ module MailSlurpClient
90
91
  :'domain' => :'String',
91
92
  :'verification_token' => :'String',
92
93
  :'dkim_tokens' => :'Array<String>',
94
+ :'is_verified' => :'Boolean',
93
95
  :'domain_name_records' => :'Array<DomainNameRecord>',
94
96
  :'catch_all_inbox_id' => :'String',
95
97
  :'created_at' => :'DateTime',
96
98
  :'updated_at' => :'DateTime',
97
- :'domain_type' => :'String',
98
- :'verified' => :'Boolean'
99
+ :'domain_type' => :'String'
99
100
  }
100
101
  end
101
102
 
@@ -142,6 +143,10 @@ module MailSlurpClient
142
143
  end
143
144
  end
144
145
 
146
+ if attributes.key?(:'is_verified')
147
+ self.is_verified = attributes[:'is_verified']
148
+ end
149
+
145
150
  if attributes.key?(:'domain_name_records')
146
151
  if (value = attributes[:'domain_name_records']).is_a?(Array)
147
152
  self.domain_name_records = value
@@ -163,22 +168,68 @@ module MailSlurpClient
163
168
  if attributes.key?(:'domain_type')
164
169
  self.domain_type = attributes[:'domain_type']
165
170
  end
166
-
167
- if attributes.key?(:'verified')
168
- self.verified = attributes[:'verified']
169
- end
170
171
  end
171
172
 
172
173
  # Show invalid properties with the reasons. Usually used together with valid?
173
174
  # @return Array for valid properties with the reasons
174
175
  def list_invalid_properties
175
176
  invalid_properties = Array.new
177
+ if @id.nil?
178
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
179
+ end
180
+
181
+ if @user_id.nil?
182
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
183
+ end
184
+
185
+ if @domain.nil?
186
+ invalid_properties.push('invalid value for "domain", domain cannot be nil.')
187
+ end
188
+
189
+ if @verification_token.nil?
190
+ invalid_properties.push('invalid value for "verification_token", verification_token cannot be nil.')
191
+ end
192
+
193
+ if @dkim_tokens.nil?
194
+ invalid_properties.push('invalid value for "dkim_tokens", dkim_tokens cannot be nil.')
195
+ end
196
+
197
+ if @is_verified.nil?
198
+ invalid_properties.push('invalid value for "is_verified", is_verified cannot be nil.')
199
+ end
200
+
201
+ if @domain_name_records.nil?
202
+ invalid_properties.push('invalid value for "domain_name_records", domain_name_records cannot be nil.')
203
+ end
204
+
205
+ if @created_at.nil?
206
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
207
+ end
208
+
209
+ if @updated_at.nil?
210
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
211
+ end
212
+
213
+ if @domain_type.nil?
214
+ invalid_properties.push('invalid value for "domain_type", domain_type cannot be nil.')
215
+ end
216
+
176
217
  invalid_properties
177
218
  end
178
219
 
179
220
  # Check to see if the all the properties in the model are valid
180
221
  # @return true if the model is valid
181
222
  def valid?
223
+ return false if @id.nil?
224
+ return false if @user_id.nil?
225
+ return false if @domain.nil?
226
+ return false if @verification_token.nil?
227
+ return false if @dkim_tokens.nil?
228
+ return false if @is_verified.nil?
229
+ return false if @domain_name_records.nil?
230
+ return false if @created_at.nil?
231
+ return false if @updated_at.nil?
232
+ return false if @domain_type.nil?
182
233
  domain_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_DOMAIN"])
183
234
  return false unless domain_type_validator.valid?(@domain_type)
184
235
  true
@@ -204,12 +255,12 @@ module MailSlurpClient
204
255
  domain == o.domain &&
205
256
  verification_token == o.verification_token &&
206
257
  dkim_tokens == o.dkim_tokens &&
258
+ is_verified == o.is_verified &&
207
259
  domain_name_records == o.domain_name_records &&
208
260
  catch_all_inbox_id == o.catch_all_inbox_id &&
209
261
  created_at == o.created_at &&
210
262
  updated_at == o.updated_at &&
211
- domain_type == o.domain_type &&
212
- verified == o.verified
263
+ domain_type == o.domain_type
213
264
  end
214
265
 
215
266
  # @see the `==` method
@@ -221,7 +272,7 @@ module MailSlurpClient
221
272
  # Calculates hash code according to all attributes.
222
273
  # @return [Integer] Hash code
223
274
  def hash
224
- [id, user_id, domain, verification_token, dkim_tokens, domain_name_records, catch_all_inbox_id, created_at, updated_at, domain_type, verified].hash
275
+ [id, user_id, domain, verification_token, dkim_tokens, is_verified, domain_name_records, catch_all_inbox_id, created_at, updated_at, domain_type].hash
225
276
  end
226
277
 
227
278
  # Builds the object from hash