mailslurp_client 17.2.0 → 17.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/campaign_probe_controller_api.rb +138 -0
  3. data/lib/mailslurp_client/api/domain_monitor_controller_api.rb +264 -0
  4. data/lib/mailslurp_client/api/email_audit_controller_api.rb +334 -0
  5. data/lib/mailslurp_client/api/email_controller_api.rb +124 -0
  6. data/lib/mailslurp_client/api/inbox_controller_api.rb +4 -4
  7. data/lib/mailslurp_client/api/phone_controller_api.rb +1312 -81
  8. data/lib/mailslurp_client/api/sms_controller_api.rb +125 -0
  9. data/lib/mailslurp_client/api/tools_controller_api.rb +806 -0
  10. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +15 -15
  11. data/lib/mailslurp_client/models/acquire_phone_pool_lease_options.rb +233 -0
  12. data/lib/mailslurp_client/models/add_phone_pool_numbers_options.rb +213 -0
  13. data/lib/mailslurp_client/models/ai_transform_mapping_projection.rb +27 -27
  14. data/lib/mailslurp_client/models/ai_transform_projection.rb +28 -28
  15. data/lib/mailslurp_client/models/alias_projection.rb +45 -45
  16. data/lib/mailslurp_client/models/alias_thread_projection.rb +42 -42
  17. data/lib/mailslurp_client/models/analyze_dmarc_report_options.rb +248 -0
  18. data/lib/mailslurp_client/models/analyze_dmarc_report_results.rb +386 -0
  19. data/lib/mailslurp_client/models/analyze_email_headers_options.rb +240 -0
  20. data/lib/mailslurp_client/models/analyze_email_headers_results.rb +275 -0
  21. data/lib/mailslurp_client/models/attachment_projection.rb +50 -50
  22. data/lib/mailslurp_client/models/available_phone_number_dto.rb +325 -0
  23. data/lib/mailslurp_client/models/available_phone_numbers_result.rb +236 -0
  24. data/lib/mailslurp_client/models/bounce_projection.rb +28 -28
  25. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
  26. data/lib/mailslurp_client/models/campaign_probe_run_comparison_dto.rb +397 -0
  27. data/lib/mailslurp_client/models/check_campaign_probe_options.rb +371 -0
  28. data/lib/mailslurp_client/models/check_campaign_probe_results.rb +482 -0
  29. data/lib/mailslurp_client/models/check_dns_propagation_options.rb +297 -0
  30. data/lib/mailslurp_client/models/check_dns_propagation_results.rb +361 -0
  31. data/lib/mailslurp_client/models/check_domain_monitor_options.rb +243 -0
  32. data/lib/mailslurp_client/models/check_domain_monitor_results.rb +398 -0
  33. data/lib/mailslurp_client/models/check_email_audit_options.rb +405 -0
  34. data/lib/mailslurp_client/models/check_email_auth_stack_options.rb +248 -0
  35. data/lib/mailslurp_client/models/check_email_auth_stack_results.rb +462 -0
  36. data/lib/mailslurp_client/models/check_email_blacklist_options.rb +241 -0
  37. data/lib/mailslurp_client/models/check_email_blacklist_results.rb +366 -0
  38. data/lib/mailslurp_client/models/connector_event_projection.rb +42 -42
  39. data/lib/mailslurp_client/models/connector_projection.rb +42 -42
  40. data/lib/mailslurp_client/models/contact_projection.rb +15 -15
  41. data/lib/mailslurp_client/models/create_email_audit_options.rb +394 -0
  42. data/lib/mailslurp_client/models/create_phone_number_options.rb +25 -4
  43. data/lib/mailslurp_client/models/create_phone_pool_options.rb +220 -0
  44. data/lib/mailslurp_client/models/create_phone_provisioning_job_item_options.rb +256 -0
  45. data/lib/mailslurp_client/models/create_phone_provisioning_job_options.rb +284 -0
  46. data/lib/mailslurp_client/models/dmarc_report_metadata.rb +308 -0
  47. data/lib/mailslurp_client/models/dmarc_report_source_summary.rb +274 -0
  48. data/lib/mailslurp_client/models/dns_propagation_resolver_result.rb +252 -0
  49. data/lib/mailslurp_client/models/domain_monitor_run_comparison_dto.rb +369 -0
  50. data/lib/mailslurp_client/models/domain_monitor_summary_dto.rb +248 -0
  51. data/lib/mailslurp_client/models/email_audit_analysis_result.rb +620 -0
  52. data/lib/mailslurp_client/models/email_audit_comparison_dto.rb +411 -0
  53. data/lib/mailslurp_client/models/email_audit_dto.rb +308 -0
  54. data/lib/mailslurp_client/models/email_audit_spelling_issue.rb +276 -0
  55. data/lib/mailslurp_client/models/email_audit_url_issue.rb +236 -0
  56. data/lib/mailslurp_client/models/email_blacklist_ip_result.rb +242 -0
  57. data/lib/mailslurp_client/models/email_blacklist_listing_result.rb +258 -0
  58. data/lib/mailslurp_client/models/email_header_analysis_summary.rb +242 -0
  59. data/lib/mailslurp_client/models/email_header_received_hop.rb +242 -0
  60. data/lib/mailslurp_client/models/email_projection.rb +88 -88
  61. data/lib/mailslurp_client/models/email_thread_projection.rb +54 -54
  62. data/lib/mailslurp_client/models/entity_automation_item_projection.rb +33 -33
  63. data/lib/mailslurp_client/models/entity_event_item_projection.rb +42 -42
  64. data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +29 -29
  65. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +27 -27
  66. data/lib/mailslurp_client/models/generate_spf_record_options.rb +357 -0
  67. data/lib/mailslurp_client/models/generate_spf_record_results.rb +318 -0
  68. data/lib/mailslurp_client/models/get_or_create_phone_pool_options.rb +220 -0
  69. data/lib/mailslurp_client/models/group_projection.rb +15 -15
  70. data/lib/mailslurp_client/models/guest_portal_user_projection.rb +47 -47
  71. data/lib/mailslurp_client/models/imap_email_projection.rb +18 -18
  72. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +21 -21
  73. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +33 -33
  74. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +19 -19
  75. data/lib/mailslurp_client/models/lookup_dkim_domain_options.rb +275 -0
  76. data/lib/mailslurp_client/models/lookup_dkim_domain_results.rb +304 -0
  77. data/lib/mailslurp_client/models/lookup_ptr_options.rb +241 -0
  78. data/lib/mailslurp_client/models/lookup_ptr_results.rb +305 -0
  79. data/lib/mailslurp_client/models/lookup_spf_domain_options.rb +240 -0
  80. data/lib/mailslurp_client/models/lookup_spf_domain_results.rb +305 -0
  81. data/lib/mailslurp_client/models/missed_email_projection.rb +28 -28
  82. data/lib/mailslurp_client/models/missed_sms_projection.rb +32 -32
  83. data/lib/mailslurp_client/models/opt_in_identity_projection.rb +18 -18
  84. data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +19 -19
  85. data/lib/mailslurp_client/models/page_ai_transform_projection.rb +19 -19
  86. data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +19 -19
  87. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  88. data/lib/mailslurp_client/models/page_alias_thread_projection.rb +19 -19
  89. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  90. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  91. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  92. data/lib/mailslurp_client/models/page_complaint.rb +19 -19
  93. data/lib/mailslurp_client/models/page_connector.rb +19 -19
  94. data/lib/mailslurp_client/models/page_connector_events.rb +19 -19
  95. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  96. data/lib/mailslurp_client/models/page_delivery_status.rb +19 -19
  97. data/lib/mailslurp_client/models/page_device_preview_run_projection.rb +19 -19
  98. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  99. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  100. data/lib/mailslurp_client/models/page_email_thread_projection.rb +19 -19
  101. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  102. data/lib/mailslurp_client/models/page_entity_automation_items.rb +19 -19
  103. data/lib/mailslurp_client/models/page_entity_event_items.rb +19 -19
  104. data/lib/mailslurp_client/models/page_entity_favourite_items.rb +19 -19
  105. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  106. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  107. data/lib/mailslurp_client/models/page_guest_portal_users.rb +19 -19
  108. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  109. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +19 -19
  110. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  111. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +19 -19
  112. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +19 -19
  113. data/lib/mailslurp_client/models/page_inbox_tags.rb +19 -19
  114. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +19 -19
  115. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  116. data/lib/mailslurp_client/models/page_missed_sms_projection.rb +19 -19
  117. data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +19 -19
  118. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  119. data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +19 -19
  120. data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +19 -19
  121. data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
  122. data/lib/mailslurp_client/models/page_phone_number_release_projection.rb +19 -19
  123. data/lib/mailslurp_client/models/page_plus_address_projection.rb +19 -19
  124. data/lib/mailslurp_client/models/page_reputation_items.rb +19 -19
  125. data/lib/mailslurp_client/models/page_ruleset_dto.rb +19 -19
  126. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +19 -19
  127. data/lib/mailslurp_client/models/page_sent_email_projection.rb +19 -19
  128. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +19 -19
  129. data/lib/mailslurp_client/models/page_sent_sms_projection.rb +19 -19
  130. data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
  131. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  132. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  133. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  134. data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +19 -19
  135. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  136. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  137. data/lib/mailslurp_client/models/pageable_object.rb +22 -22
  138. data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +18 -18
  139. data/lib/mailslurp_client/models/phone_number_dto.rb +49 -4
  140. data/lib/mailslurp_client/models/phone_number_line_type_intelligence_dto.rb +242 -0
  141. data/lib/mailslurp_client/models/phone_number_line_type_lookup_dto.rb +286 -0
  142. data/lib/mailslurp_client/models/phone_number_projection.rb +80 -35
  143. data/lib/mailslurp_client/models/phone_number_release_projection.rb +39 -39
  144. data/lib/mailslurp_client/models/phone_pool_detail_dto.rb +334 -0
  145. data/lib/mailslurp_client/models/phone_pool_dto.rb +318 -0
  146. data/lib/mailslurp_client/models/phone_pool_lease_dto.rb +351 -0
  147. data/lib/mailslurp_client/models/phone_pool_member_dto.rb +333 -0
  148. data/lib/mailslurp_client/models/phone_provider_capabilities_result.rb +284 -0
  149. data/lib/mailslurp_client/models/phone_provisioning_job_dto.rb +434 -0
  150. data/lib/mailslurp_client/models/phone_provisioning_job_item_dto.rb +336 -0
  151. data/lib/mailslurp_client/models/phone_sms_prepaid_credit_dto.rb +340 -0
  152. data/lib/mailslurp_client/models/phone_sms_prepaid_credits_dto.rb +241 -0
  153. data/lib/mailslurp_client/models/plus_address_projection.rb +27 -27
  154. data/lib/mailslurp_client/models/recipient_projection.rb +13 -13
  155. data/lib/mailslurp_client/models/reputation_item_projection.rb +41 -41
  156. data/lib/mailslurp_client/models/search_available_phone_numbers_options.rb +377 -0
  157. data/lib/mailslurp_client/models/sender_projection.rb +13 -13
  158. data/lib/mailslurp_client/models/sent_email_projection.rb +63 -63
  159. data/lib/mailslurp_client/models/sent_sms_projection.rb +18 -18
  160. data/lib/mailslurp_client/models/sms_projection.rb +18 -18
  161. data/lib/mailslurp_client/models/smtp_auth_diagnostic_result.rb +235 -0
  162. data/lib/mailslurp_client/models/smtp_diagnostic_step.rb +236 -0
  163. data/lib/mailslurp_client/models/smtp_tls_diagnostic_result.rb +245 -0
  164. data/lib/mailslurp_client/models/sort_object.rb +10 -10
  165. data/lib/mailslurp_client/models/spf_mechanism_result.rb +229 -0
  166. data/lib/mailslurp_client/models/template_projection.rb +41 -41
  167. data/lib/mailslurp_client/models/test_smtp_server_options.rb +337 -0
  168. data/lib/mailslurp_client/models/test_smtp_server_results.rb +297 -0
  169. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
  170. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +27 -27
  171. data/lib/mailslurp_client/models/update_phone_pool_options.rb +215 -0
  172. data/lib/mailslurp_client/models/validation_dto.rb +1 -5
  173. data/lib/mailslurp_client/models/webhook_projection.rb +45 -45
  174. data/lib/mailslurp_client/version.rb +1 -1
  175. data/lib/mailslurp_client.rb +67 -0
  176. metadata +69 -2
@@ -0,0 +1,241 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
5
+
6
+ The version of the OpenAPI document: 6.5.2
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MailSlurpClient
16
+ class PhoneSmsPrepaidCreditsDto
17
+ attr_accessor :count
18
+
19
+ attr_accessor :total_remaining_credits
20
+
21
+ attr_accessor :items
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'count' => :'count',
27
+ :'total_remaining_credits' => :'totalRemainingCredits',
28
+ :'items' => :'items'
29
+ }
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'count' => :'Integer',
36
+ :'total_remaining_credits' => :'Integer',
37
+ :'items' => :'Array<PhoneSmsPrepaidCreditDto>'
38
+ }
39
+ end
40
+
41
+ # List of attributes with nullable: true
42
+ def self.openapi_nullable
43
+ Set.new([
44
+ ])
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ if (!attributes.is_a?(Hash))
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::PhoneSmsPrepaidCreditsDto` initialize method"
52
+ end
53
+
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::PhoneSmsPrepaidCreditsDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
+ end
59
+ h[k.to_sym] = v
60
+ }
61
+
62
+ if attributes.key?(:'count')
63
+ self.count = attributes[:'count']
64
+ end
65
+
66
+ if attributes.key?(:'total_remaining_credits')
67
+ self.total_remaining_credits = attributes[:'total_remaining_credits']
68
+ end
69
+
70
+ if attributes.key?(:'items')
71
+ if (value = attributes[:'items']).is_a?(Array)
72
+ self.items = value
73
+ end
74
+ end
75
+ end
76
+
77
+ # Show invalid properties with the reasons. Usually used together with valid?
78
+ # @return Array for valid properties with the reasons
79
+ def list_invalid_properties
80
+ invalid_properties = Array.new
81
+ if @count.nil?
82
+ invalid_properties.push('invalid value for "count", count cannot be nil.')
83
+ end
84
+
85
+ if @total_remaining_credits.nil?
86
+ invalid_properties.push('invalid value for "total_remaining_credits", total_remaining_credits cannot be nil.')
87
+ end
88
+
89
+ if @items.nil?
90
+ invalid_properties.push('invalid value for "items", items cannot be nil.')
91
+ end
92
+
93
+ invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ return false if @count.nil?
100
+ return false if @total_remaining_credits.nil?
101
+ return false if @items.nil?
102
+ true
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ count == o.count &&
111
+ total_remaining_credits == o.total_remaining_credits &&
112
+ items == o.items
113
+ end
114
+
115
+ # @see the `==` method
116
+ # @param [Object] Object to be compared
117
+ def eql?(o)
118
+ self == o
119
+ end
120
+
121
+ # Calculates hash code according to all attributes.
122
+ # @return [Integer] Hash code
123
+ def hash
124
+ [count, total_remaining_credits, items].hash
125
+ end
126
+
127
+ # Builds the object from hash
128
+ # @param [Hash] attributes Model attributes in the form of hash
129
+ # @return [Object] Returns the model itself
130
+ def self.build_from_hash(attributes)
131
+ new.build_from_hash(attributes)
132
+ end
133
+
134
+ # Builds the object from hash
135
+ # @param [Hash] attributes Model attributes in the form of hash
136
+ # @return [Object] Returns the model itself
137
+ def build_from_hash(attributes)
138
+ return nil unless attributes.is_a?(Hash)
139
+ self.class.openapi_types.each_pair do |key, type|
140
+ if type =~ /\AArray<(.*)>/i
141
+ # check to ensure the input is an array given that the attribute
142
+ # is documented as an array but the input is not
143
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
144
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
145
+ end
146
+ elsif !attributes[self.class.attribute_map[key]].nil?
147
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
148
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
149
+ end
150
+
151
+ self
152
+ end
153
+
154
+ # Deserializes the data based on type
155
+ # @param string type Data type
156
+ # @param string value Value to be deserialized
157
+ # @return [Object] Deserialized data
158
+ def _deserialize(type, value)
159
+ case type.to_sym
160
+ when :DateTime
161
+ DateTime.parse(value)
162
+ when :Date
163
+ Date.parse(value)
164
+ when :String
165
+ value.to_s
166
+ when :Integer
167
+ value.to_i
168
+ when :Float
169
+ value.to_f
170
+ when :Boolean
171
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
172
+ true
173
+ else
174
+ false
175
+ end
176
+ when :Object
177
+ # generic object (usually a Hash), return directly
178
+ value
179
+ when /\AArray<(?<inner_type>.+)>\z/
180
+ inner_type = Regexp.last_match[:inner_type]
181
+ value.map { |v| _deserialize(inner_type, v) }
182
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
183
+ k_type = Regexp.last_match[:k_type]
184
+ v_type = Regexp.last_match[:v_type]
185
+ {}.tap do |hash|
186
+ value.each do |k, v|
187
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
188
+ end
189
+ end
190
+ else # model
191
+ MailSlurpClient.const_get(type).build_from_hash(value)
192
+ end
193
+ end
194
+
195
+ # Returns the string representation of the object
196
+ # @return [String] String presentation of the object
197
+ def to_s
198
+ to_hash.to_s
199
+ end
200
+
201
+ # to_body is an alias to to_hash (backward compatibility)
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_body
204
+ to_hash
205
+ end
206
+
207
+ # Returns the object in the form of hash
208
+ # @return [Hash] Returns the object in the form of hash
209
+ def to_hash
210
+ hash = {}
211
+ self.class.attribute_map.each_pair do |attr, param|
212
+ value = self.send(attr)
213
+ if value.nil?
214
+ is_nullable = self.class.openapi_nullable.include?(attr)
215
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
216
+ end
217
+
218
+ hash[param] = _to_hash(value)
219
+ end
220
+ hash
221
+ end
222
+
223
+ # Outputs non-array value in the form of hash
224
+ # For object, use to_hash. Otherwise, just return the value
225
+ # @param [Object] value Any valid value
226
+ # @return [Hash] Returns the value in the form of hash
227
+ def _to_hash(value)
228
+ if value.is_a?(Array)
229
+ value.compact.map { |v| _to_hash(v) }
230
+ elsif value.is_a?(Hash)
231
+ {}.tap do |hash|
232
+ value.each { |k, v| hash[k] = _to_hash(v) }
233
+ end
234
+ elsif value.respond_to? :to_hash
235
+ value.to_hash
236
+ else
237
+ value
238
+ end
239
+ end
240
+ end
241
+ end
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class PlusAddressProjection
17
- attr_accessor :updated_at
17
+ attr_accessor :id
18
18
 
19
19
  attr_accessor :user_id
20
20
 
@@ -22,35 +22,35 @@ module MailSlurpClient
22
22
 
23
23
  attr_accessor :created_at
24
24
 
25
+ attr_accessor :updated_at
26
+
25
27
  attr_accessor :plus_address
26
28
 
27
29
  attr_accessor :full_address
28
30
 
29
- attr_accessor :id
30
-
31
31
  # Attribute mapping from ruby-style variable name to JSON key.
32
32
  def self.attribute_map
33
33
  {
34
- :'updated_at' => :'updatedAt',
34
+ :'id' => :'id',
35
35
  :'user_id' => :'userId',
36
36
  :'inbox_id' => :'inboxId',
37
37
  :'created_at' => :'createdAt',
38
+ :'updated_at' => :'updatedAt',
38
39
  :'plus_address' => :'plusAddress',
39
- :'full_address' => :'fullAddress',
40
- :'id' => :'id'
40
+ :'full_address' => :'fullAddress'
41
41
  }
42
42
  end
43
43
 
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
- :'updated_at' => :'DateTime',
47
+ :'id' => :'String',
48
48
  :'user_id' => :'String',
49
49
  :'inbox_id' => :'String',
50
50
  :'created_at' => :'DateTime',
51
+ :'updated_at' => :'DateTime',
51
52
  :'plus_address' => :'String',
52
- :'full_address' => :'String',
53
- :'id' => :'String'
53
+ :'full_address' => :'String'
54
54
  }
55
55
  end
56
56
 
@@ -75,8 +75,8 @@ module MailSlurpClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'updated_at')
79
- self.updated_at = attributes[:'updated_at']
78
+ if attributes.key?(:'id')
79
+ self.id = attributes[:'id']
80
80
  end
81
81
 
82
82
  if attributes.key?(:'user_id')
@@ -91,6 +91,10 @@ module MailSlurpClient
91
91
  self.created_at = attributes[:'created_at']
92
92
  end
93
93
 
94
+ if attributes.key?(:'updated_at')
95
+ self.updated_at = attributes[:'updated_at']
96
+ end
97
+
94
98
  if attributes.key?(:'plus_address')
95
99
  self.plus_address = attributes[:'plus_address']
96
100
  end
@@ -98,18 +102,14 @@ module MailSlurpClient
98
102
  if attributes.key?(:'full_address')
99
103
  self.full_address = attributes[:'full_address']
100
104
  end
101
-
102
- if attributes.key?(:'id')
103
- self.id = attributes[:'id']
104
- end
105
105
  end
106
106
 
107
107
  # Show invalid properties with the reasons. Usually used together with valid?
108
108
  # @return Array for valid properties with the reasons
109
109
  def list_invalid_properties
110
110
  invalid_properties = Array.new
111
- if @updated_at.nil?
112
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
111
+ if @id.nil?
112
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
113
113
  end
114
114
 
115
115
  if @user_id.nil?
@@ -124,6 +124,10 @@ module MailSlurpClient
124
124
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
125
125
  end
126
126
 
127
+ if @updated_at.nil?
128
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
129
+ end
130
+
127
131
  if @plus_address.nil?
128
132
  invalid_properties.push('invalid value for "plus_address", plus_address cannot be nil.')
129
133
  end
@@ -132,23 +136,19 @@ module MailSlurpClient
132
136
  invalid_properties.push('invalid value for "full_address", full_address cannot be nil.')
133
137
  end
134
138
 
135
- if @id.nil?
136
- invalid_properties.push('invalid value for "id", id cannot be nil.')
137
- end
138
-
139
139
  invalid_properties
140
140
  end
141
141
 
142
142
  # Check to see if the all the properties in the model are valid
143
143
  # @return true if the model is valid
144
144
  def valid?
145
- return false if @updated_at.nil?
145
+ return false if @id.nil?
146
146
  return false if @user_id.nil?
147
147
  return false if @inbox_id.nil?
148
148
  return false if @created_at.nil?
149
+ return false if @updated_at.nil?
149
150
  return false if @plus_address.nil?
150
151
  return false if @full_address.nil?
151
- return false if @id.nil?
152
152
  true
153
153
  end
154
154
 
@@ -157,13 +157,13 @@ module MailSlurpClient
157
157
  def ==(o)
158
158
  return true if self.equal?(o)
159
159
  self.class == o.class &&
160
- updated_at == o.updated_at &&
160
+ id == o.id &&
161
161
  user_id == o.user_id &&
162
162
  inbox_id == o.inbox_id &&
163
163
  created_at == o.created_at &&
164
+ updated_at == o.updated_at &&
164
165
  plus_address == o.plus_address &&
165
- full_address == o.full_address &&
166
- id == o.id
166
+ full_address == o.full_address
167
167
  end
168
168
 
169
169
  # @see the `==` method
@@ -175,7 +175,7 @@ module MailSlurpClient
175
175
  # Calculates hash code according to all attributes.
176
176
  # @return [Integer] Hash code
177
177
  def hash
178
- [updated_at, user_id, inbox_id, created_at, plus_address, full_address, id].hash
178
+ [id, user_id, inbox_id, created_at, updated_at, plus_address, full_address].hash
179
179
  end
180
180
 
181
181
  # Builds the object from hash
@@ -14,27 +14,27 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class RecipientProjection
17
+ attr_accessor :name
18
+
17
19
  attr_accessor :email_address
18
20
 
19
21
  attr_accessor :raw_value
20
22
 
21
- attr_accessor :name
22
-
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
+ :'name' => :'name',
26
27
  :'email_address' => :'emailAddress',
27
- :'raw_value' => :'rawValue',
28
- :'name' => :'name'
28
+ :'raw_value' => :'rawValue'
29
29
  }
30
30
  end
31
31
 
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
+ :'name' => :'String',
35
36
  :'email_address' => :'String',
36
- :'raw_value' => :'String',
37
- :'name' => :'String'
37
+ :'raw_value' => :'String'
38
38
  }
39
39
  end
40
40
 
@@ -59,6 +59,10 @@ module MailSlurpClient
59
59
  h[k.to_sym] = v
60
60
  }
61
61
 
62
+ if attributes.key?(:'name')
63
+ self.name = attributes[:'name']
64
+ end
65
+
62
66
  if attributes.key?(:'email_address')
63
67
  self.email_address = attributes[:'email_address']
64
68
  end
@@ -66,10 +70,6 @@ module MailSlurpClient
66
70
  if attributes.key?(:'raw_value')
67
71
  self.raw_value = attributes[:'raw_value']
68
72
  end
69
-
70
- if attributes.key?(:'name')
71
- self.name = attributes[:'name']
72
- end
73
73
  end
74
74
 
75
75
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -100,9 +100,9 @@ module MailSlurpClient
100
100
  def ==(o)
101
101
  return true if self.equal?(o)
102
102
  self.class == o.class &&
103
+ name == o.name &&
103
104
  email_address == o.email_address &&
104
- raw_value == o.raw_value &&
105
- name == o.name
105
+ raw_value == o.raw_value
106
106
  end
107
107
 
108
108
  # @see the `==` method
@@ -114,7 +114,7 @@ module MailSlurpClient
114
114
  # Calculates hash code according to all attributes.
115
115
  # @return [Integer] Hash code
116
116
  def hash
117
- [email_address, raw_value, name].hash
117
+ [name, email_address, raw_value].hash
118
118
  end
119
119
 
120
120
  # Builds the object from hash
@@ -14,16 +14,16 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class ReputationItemProjection
17
+ attr_accessor :id
18
+
19
+ attr_accessor :severity
20
+
17
21
  attr_accessor :created_at
18
22
 
19
23
  attr_accessor :recipient
20
24
 
21
25
  attr_accessor :reputation_type
22
26
 
23
- attr_accessor :id
24
-
25
- attr_accessor :severity
26
-
27
27
  attr_accessor :source
28
28
 
29
29
  class EnumAttributeValidator
@@ -51,11 +51,11 @@ module MailSlurpClient
51
51
  # Attribute mapping from ruby-style variable name to JSON key.
52
52
  def self.attribute_map
53
53
  {
54
+ :'id' => :'id',
55
+ :'severity' => :'severity',
54
56
  :'created_at' => :'createdAt',
55
57
  :'recipient' => :'recipient',
56
58
  :'reputation_type' => :'reputationType',
57
- :'id' => :'id',
58
- :'severity' => :'severity',
59
59
  :'source' => :'source'
60
60
  }
61
61
  end
@@ -63,11 +63,11 @@ module MailSlurpClient
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
+ :'id' => :'String',
67
+ :'severity' => :'String',
66
68
  :'created_at' => :'DateTime',
67
69
  :'recipient' => :'String',
68
70
  :'reputation_type' => :'String',
69
- :'id' => :'String',
70
- :'severity' => :'String',
71
71
  :'source' => :'String'
72
72
  }
73
73
  end
@@ -93,6 +93,14 @@ module MailSlurpClient
93
93
  h[k.to_sym] = v
94
94
  }
95
95
 
96
+ if attributes.key?(:'id')
97
+ self.id = attributes[:'id']
98
+ end
99
+
100
+ if attributes.key?(:'severity')
101
+ self.severity = attributes[:'severity']
102
+ end
103
+
96
104
  if attributes.key?(:'created_at')
97
105
  self.created_at = attributes[:'created_at']
98
106
  end
@@ -105,14 +113,6 @@ module MailSlurpClient
105
113
  self.reputation_type = attributes[:'reputation_type']
106
114
  end
107
115
 
108
- if attributes.key?(:'id')
109
- self.id = attributes[:'id']
110
- end
111
-
112
- if attributes.key?(:'severity')
113
- self.severity = attributes[:'severity']
114
- end
115
-
116
116
  if attributes.key?(:'source')
117
117
  self.source = attributes[:'source']
118
118
  end
@@ -122,14 +122,6 @@ module MailSlurpClient
122
122
  # @return Array for valid properties with the reasons
123
123
  def list_invalid_properties
124
124
  invalid_properties = Array.new
125
- if @created_at.nil?
126
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
127
- end
128
-
129
- if @reputation_type.nil?
130
- invalid_properties.push('invalid value for "reputation_type", reputation_type cannot be nil.')
131
- end
132
-
133
125
  if @id.nil?
134
126
  invalid_properties.push('invalid value for "id", id cannot be nil.')
135
127
  end
@@ -138,33 +130,31 @@ module MailSlurpClient
138
130
  invalid_properties.push('invalid value for "severity", severity cannot be nil.')
139
131
  end
140
132
 
133
+ if @created_at.nil?
134
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
135
+ end
136
+
137
+ if @reputation_type.nil?
138
+ invalid_properties.push('invalid value for "reputation_type", reputation_type cannot be nil.')
139
+ end
140
+
141
141
  invalid_properties
142
142
  end
143
143
 
144
144
  # Check to see if the all the properties in the model are valid
145
145
  # @return true if the model is valid
146
146
  def valid?
147
- return false if @created_at.nil?
148
- return false if @reputation_type.nil?
149
- reputation_type_validator = EnumAttributeValidator.new('String', ["COMPLAINT", "BOUNCE"])
150
- return false unless reputation_type_validator.valid?(@reputation_type)
151
147
  return false if @id.nil?
152
148
  return false if @severity.nil?
153
149
  severity_validator = EnumAttributeValidator.new('String', ["INFO", "WARNING", "DANGER"])
154
150
  return false unless severity_validator.valid?(@severity)
151
+ return false if @created_at.nil?
152
+ return false if @reputation_type.nil?
153
+ reputation_type_validator = EnumAttributeValidator.new('String', ["COMPLAINT", "BOUNCE"])
154
+ return false unless reputation_type_validator.valid?(@reputation_type)
155
155
  true
156
156
  end
157
157
 
158
- # Custom attribute writer method checking allowed values (enum).
159
- # @param [Object] reputation_type Object to be assigned
160
- def reputation_type=(reputation_type)
161
- validator = EnumAttributeValidator.new('String', ["COMPLAINT", "BOUNCE"])
162
- unless validator.valid?(reputation_type)
163
- fail ArgumentError, "invalid value for \"reputation_type\", must be one of #{validator.allowable_values}."
164
- end
165
- @reputation_type = reputation_type
166
- end
167
-
168
158
  # Custom attribute writer method checking allowed values (enum).
169
159
  # @param [Object] severity Object to be assigned
170
160
  def severity=(severity)
@@ -175,16 +165,26 @@ module MailSlurpClient
175
165
  @severity = severity
176
166
  end
177
167
 
168
+ # Custom attribute writer method checking allowed values (enum).
169
+ # @param [Object] reputation_type Object to be assigned
170
+ def reputation_type=(reputation_type)
171
+ validator = EnumAttributeValidator.new('String', ["COMPLAINT", "BOUNCE"])
172
+ unless validator.valid?(reputation_type)
173
+ fail ArgumentError, "invalid value for \"reputation_type\", must be one of #{validator.allowable_values}."
174
+ end
175
+ @reputation_type = reputation_type
176
+ end
177
+
178
178
  # Checks equality by comparing each attribute.
179
179
  # @param [Object] Object to be compared
180
180
  def ==(o)
181
181
  return true if self.equal?(o)
182
182
  self.class == o.class &&
183
+ id == o.id &&
184
+ severity == o.severity &&
183
185
  created_at == o.created_at &&
184
186
  recipient == o.recipient &&
185
187
  reputation_type == o.reputation_type &&
186
- id == o.id &&
187
- severity == o.severity &&
188
188
  source == o.source
189
189
  end
190
190
 
@@ -197,7 +197,7 @@ module MailSlurpClient
197
197
  # Calculates hash code according to all attributes.
198
198
  # @return [Integer] Hash code
199
199
  def hash
200
- [created_at, recipient, reputation_type, id, severity, source].hash
200
+ [id, severity, created_at, recipient, reputation_type, source].hash
201
201
  end
202
202
 
203
203
  # Builds the object from hash