mailslurp_client 16.2.4 → 17.0.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 (90) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/inbox_controller_api.rb +15 -15
  3. data/lib/mailslurp_client/api/{inbox_ruleset_controller_api.rb → ruleset_controller_api.rb} +184 -175
  4. data/lib/mailslurp_client/api/tools_controller_api.rb +62 -0
  5. data/lib/mailslurp_client/api/webhook_controller_api.rb +82 -0
  6. data/lib/mailslurp_client/models/ai_transform_dto.rb +19 -5
  7. data/lib/mailslurp_client/models/alias_projection.rb +29 -29
  8. data/lib/mailslurp_client/models/alias_thread_projection.rb +26 -26
  9. data/lib/mailslurp_client/models/attachment_projection.rb +21 -21
  10. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  11. data/lib/mailslurp_client/models/{create_inbox_ruleset_options.rb → create_ruleset_options.rb} +5 -5
  12. data/lib/mailslurp_client/models/email.rb +13 -13
  13. data/lib/mailslurp_client/models/email_projection.rb +11 -11
  14. data/lib/mailslurp_client/models/email_thread_projection.rb +29 -29
  15. data/lib/mailslurp_client/models/entity_automation_item_projection.rb +10 -10
  16. data/lib/mailslurp_client/models/guest_portal_user_projection.rb +24 -24
  17. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
  18. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
  19. data/lib/mailslurp_client/models/lookup_mx_records_options.rb +211 -0
  20. data/lib/mailslurp_client/models/lookup_mx_records_results.rb +245 -0
  21. data/lib/mailslurp_client/models/opt_in_identity_projection.rb +21 -21
  22. data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +10 -10
  23. data/lib/mailslurp_client/models/page_ai_transform_projection.rb +10 -10
  24. data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +10 -10
  25. data/lib/mailslurp_client/models/page_alias.rb +10 -10
  26. data/lib/mailslurp_client/models/page_alias_thread_projection.rb +10 -10
  27. data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
  28. data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
  29. data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
  30. data/lib/mailslurp_client/models/page_complaint.rb +10 -10
  31. data/lib/mailslurp_client/models/page_connector.rb +10 -10
  32. data/lib/mailslurp_client/models/page_connector_events.rb +10 -10
  33. data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
  34. data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
  35. data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
  36. data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
  37. data/lib/mailslurp_client/models/page_email_thread_projection.rb +10 -10
  38. data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
  39. data/lib/mailslurp_client/models/page_entity_automation_items.rb +10 -10
  40. data/lib/mailslurp_client/models/page_entity_event_items.rb +10 -10
  41. data/lib/mailslurp_client/models/page_entity_favourite_items.rb +10 -10
  42. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
  43. data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
  44. data/lib/mailslurp_client/models/page_guest_portal_users.rb +10 -10
  45. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
  46. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +10 -10
  47. data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
  48. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +10 -10
  49. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +10 -10
  50. data/lib/mailslurp_client/models/page_inbox_tags.rb +10 -10
  51. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +10 -10
  52. data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
  53. data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +10 -10
  54. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
  55. data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +10 -10
  56. data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +10 -10
  57. data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
  58. data/lib/mailslurp_client/models/page_plus_address_projection.rb +10 -10
  59. data/lib/mailslurp_client/models/page_reputation_items.rb +10 -10
  60. data/lib/mailslurp_client/models/{page_inbox_ruleset_dto.rb → page_ruleset_dto.rb} +15 -15
  61. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +10 -10
  62. data/lib/mailslurp_client/models/page_sent_email_projection.rb +10 -10
  63. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +10 -10
  64. data/lib/mailslurp_client/models/page_sent_sms_projection.rb +10 -10
  65. data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
  66. data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
  67. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
  68. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
  69. data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +10 -10
  70. data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
  71. data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
  72. data/lib/mailslurp_client/models/pageable_object.rb +13 -13
  73. data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +19 -19
  74. data/lib/mailslurp_client/models/phone_message_thread_projection.rb +27 -27
  75. data/lib/mailslurp_client/models/plus_address_projection.rb +24 -24
  76. data/lib/mailslurp_client/models/{inbox_ruleset_dto.rb → ruleset_dto.rb} +17 -7
  77. data/lib/mailslurp_client/models/{inbox_ruleset_test_options.rb → ruleset_test_options.rb} +3 -3
  78. data/lib/mailslurp_client/models/sent_email_projection.rb +52 -52
  79. data/lib/mailslurp_client/models/template_projection.rb +15 -15
  80. data/lib/mailslurp_client/models/test_inbox_ruleset_sending_options.rb +13 -7
  81. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +11 -11
  82. data/lib/mailslurp_client/models/{test_inbox_ruleset_receiving_options.rb → test_ruleset_receiving_options.rb} +16 -10
  83. data/lib/mailslurp_client/models/{test_inbox_ruleset_receiving_result.rb → test_ruleset_receiving_result.rb} +3 -3
  84. data/lib/mailslurp_client/models/{test_inbox_ruleset_sending_result.rb → test_ruleset_sending_result.rb} +3 -3
  85. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  86. data/lib/mailslurp_client/models/webhook_projection.rb +39 -30
  87. data/lib/mailslurp_client/models/webhook_result_dto.rb +15 -5
  88. data/lib/mailslurp_client/version.rb +1 -1
  89. data/lib/mailslurp_client.rb +10 -8
  90. metadata +12 -10
@@ -881,6 +881,68 @@ module MailSlurpClient
881
881
  return data, status_code, headers
882
882
  end
883
883
 
884
+ # Lookup a MX records for a domain
885
+ # @param lookup_mx_records_options [LookupMxRecordsOptions]
886
+ # @param [Hash] opts the optional parameters
887
+ # @return [LookupMxRecordsResults]
888
+ def lookup_mx_record(lookup_mx_records_options, opts = {})
889
+ data, _status_code, _headers = lookup_mx_record_with_http_info(lookup_mx_records_options, opts)
890
+ data
891
+ end
892
+
893
+ # Lookup a MX records for a domain
894
+ # @param lookup_mx_records_options [LookupMxRecordsOptions]
895
+ # @param [Hash] opts the optional parameters
896
+ # @return [Array<(LookupMxRecordsResults, Integer, Hash)>] LookupMxRecordsResults data, response status code and response headers
897
+ def lookup_mx_record_with_http_info(lookup_mx_records_options, opts = {})
898
+ if @api_client.config.debugging
899
+ @api_client.config.logger.debug 'Calling API: ToolsControllerApi.lookup_mx_record ...'
900
+ end
901
+ # verify the required parameter 'lookup_mx_records_options' is set
902
+ if @api_client.config.client_side_validation && lookup_mx_records_options.nil?
903
+ fail ArgumentError, "Missing the required parameter 'lookup_mx_records_options' when calling ToolsControllerApi.lookup_mx_record"
904
+ end
905
+ # resource path
906
+ local_var_path = '/tools/lookup-mx-records'
907
+
908
+ # query parameters
909
+ query_params = opts[:query_params] || {}
910
+
911
+ # header parameters
912
+ header_params = opts[:header_params] || {}
913
+ # HTTP header 'Accept' (if needed)
914
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
915
+ # HTTP header 'Content-Type'
916
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
917
+
918
+ # form parameters
919
+ form_params = opts[:form_params] || {}
920
+
921
+ # http body (model)
922
+ post_body = opts[:body] || @api_client.object_to_http_body(lookup_mx_records_options)
923
+
924
+ # return_type
925
+ return_type = opts[:return_type] || 'LookupMxRecordsResults'
926
+
927
+ # auth_names
928
+ auth_names = opts[:auth_names] || ['API_KEY']
929
+
930
+ new_options = opts.merge(
931
+ :header_params => header_params,
932
+ :query_params => query_params,
933
+ :form_params => form_params,
934
+ :body => post_body,
935
+ :auth_names => auth_names,
936
+ :return_type => return_type
937
+ )
938
+
939
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
940
+ if @api_client.config.debugging
941
+ @api_client.config.logger.debug "API called: ToolsControllerApi#lookup_mx_record\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
942
+ end
943
+ return data, status_code, headers
944
+ end
945
+
884
946
  # Lookup a TLS reporting domain policy
885
947
  # @param lookup_tls_reporting_domain_options [LookupTlsReportingDomainOptions]
886
948
  # @param [Hash] opts the optional parameters
@@ -153,6 +153,76 @@ module MailSlurpClient
153
153
  return data, status_code, headers
154
154
  end
155
155
 
156
+ # Attach a WebHook URL to an AI transformer
157
+ # Get notified whenever AI transformation pipeline converts and email or SMS into structured data via a WebHook URL.
158
+ # @param transformer_id [String]
159
+ # @param create_webhook_options [CreateWebhookOptions]
160
+ # @param [Hash] opts the optional parameters
161
+ # @return [WebhookDto]
162
+ def create_webhook_for_ai_transformer(transformer_id, create_webhook_options, opts = {})
163
+ data, _status_code, _headers = create_webhook_for_ai_transformer_with_http_info(transformer_id, create_webhook_options, opts)
164
+ data
165
+ end
166
+
167
+ # Attach a WebHook URL to an AI transformer
168
+ # Get notified whenever AI transformation pipeline converts and email or SMS into structured data via a WebHook URL.
169
+ # @param transformer_id [String]
170
+ # @param create_webhook_options [CreateWebhookOptions]
171
+ # @param [Hash] opts the optional parameters
172
+ # @return [Array<(WebhookDto, Integer, Hash)>] WebhookDto data, response status code and response headers
173
+ def create_webhook_for_ai_transformer_with_http_info(transformer_id, create_webhook_options, opts = {})
174
+ if @api_client.config.debugging
175
+ @api_client.config.logger.debug 'Calling API: WebhookControllerApi.create_webhook_for_ai_transformer ...'
176
+ end
177
+ # verify the required parameter 'transformer_id' is set
178
+ if @api_client.config.client_side_validation && transformer_id.nil?
179
+ fail ArgumentError, "Missing the required parameter 'transformer_id' when calling WebhookControllerApi.create_webhook_for_ai_transformer"
180
+ end
181
+ # verify the required parameter 'create_webhook_options' is set
182
+ if @api_client.config.client_side_validation && create_webhook_options.nil?
183
+ fail ArgumentError, "Missing the required parameter 'create_webhook_options' when calling WebhookControllerApi.create_webhook_for_ai_transformer"
184
+ end
185
+ # resource path
186
+ local_var_path = '/ai-transformers/{transformerId}/webhooks'.sub('{' + 'transformerId' + '}', CGI.escape(transformer_id.to_s))
187
+
188
+ # query parameters
189
+ query_params = opts[:query_params] || {}
190
+
191
+ # header parameters
192
+ header_params = opts[:header_params] || {}
193
+ # HTTP header 'Accept' (if needed)
194
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
195
+ # HTTP header 'Content-Type'
196
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
197
+
198
+ # form parameters
199
+ form_params = opts[:form_params] || {}
200
+
201
+ # http body (model)
202
+ post_body = opts[:body] || @api_client.object_to_http_body(create_webhook_options)
203
+
204
+ # return_type
205
+ return_type = opts[:return_type] || 'WebhookDto'
206
+
207
+ # auth_names
208
+ auth_names = opts[:auth_names] || ['API_KEY']
209
+
210
+ new_options = opts.merge(
211
+ :header_params => header_params,
212
+ :query_params => query_params,
213
+ :form_params => form_params,
214
+ :body => post_body,
215
+ :auth_names => auth_names,
216
+ :return_type => return_type
217
+ )
218
+
219
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
220
+ if @api_client.config.debugging
221
+ @api_client.config.logger.debug "API called: WebhookControllerApi#create_webhook_for_ai_transformer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
222
+ end
223
+ return data, status_code, headers
224
+ end
225
+
156
226
  # Attach a WebHook URL to a phone number
157
227
  # Get notified whenever a phone number receives an SMS via a WebHook URL.
158
228
  # @param phone_number_id [String]
@@ -640,6 +710,7 @@ module MailSlurpClient
640
710
  # @option opts [String] :attachment_id Attachment ID
641
711
  # @option opts [String] :email_id Email ID
642
712
  # @option opts [String] :phone_id Phone ID
713
+ # @option opts [String] :ai_transformer_id AI Transformer ID
643
714
  # @return [PageWebhookResult]
644
715
  def get_all_webhook_results(opts = {})
645
716
  data, _status_code, _headers = get_all_webhook_results_with_http_info(opts)
@@ -664,6 +735,7 @@ module MailSlurpClient
664
735
  # @option opts [String] :attachment_id Attachment ID
665
736
  # @option opts [String] :email_id Email ID
666
737
  # @option opts [String] :phone_id Phone ID
738
+ # @option opts [String] :ai_transformer_id AI Transformer ID
667
739
  # @return [Array<(PageWebhookResult, Integer, Hash)>] PageWebhookResult data, response status code and response headers
668
740
  def get_all_webhook_results_with_http_info(opts = {})
669
741
  if @api_client.config.debugging
@@ -702,6 +774,7 @@ module MailSlurpClient
702
774
  query_params[:'attachmentId'] = opts[:'attachment_id'] if !opts[:'attachment_id'].nil?
703
775
  query_params[:'emailId'] = opts[:'email_id'] if !opts[:'email_id'].nil?
704
776
  query_params[:'phoneId'] = opts[:'phone_id'] if !opts[:'phone_id'].nil?
777
+ query_params[:'aiTransformerId'] = opts[:'ai_transformer_id'] if !opts[:'ai_transformer_id'].nil?
705
778
 
706
779
  # header parameters
707
780
  header_params = opts[:header_params] || {}
@@ -745,6 +818,7 @@ module MailSlurpClient
745
818
  # @option opts [String] :search_filter Optional search filter
746
819
  # @option opts [DateTime] :since Filter by created at after the given timestamp
747
820
  # @option opts [String] :inbox_id Filter by inboxId
821
+ # @option opts [String] :ai_transformer_id Filter by aiTransformerId
748
822
  # @option opts [String] :phone_id Filter by phoneId
749
823
  # @option opts [DateTime] :before Filter by created at before the given timestamp
750
824
  # @option opts [String] :health Filter by webhook health
@@ -765,6 +839,7 @@ module MailSlurpClient
765
839
  # @option opts [String] :search_filter Optional search filter
766
840
  # @option opts [DateTime] :since Filter by created at after the given timestamp
767
841
  # @option opts [String] :inbox_id Filter by inboxId
842
+ # @option opts [String] :ai_transformer_id Filter by aiTransformerId
768
843
  # @option opts [String] :phone_id Filter by phoneId
769
844
  # @option opts [DateTime] :before Filter by created at before the given timestamp
770
845
  # @option opts [String] :health Filter by webhook health
@@ -814,6 +889,7 @@ module MailSlurpClient
814
889
  query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil?
815
890
  query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
816
891
  query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
892
+ query_params[:'aiTransformerId'] = opts[:'ai_transformer_id'] if !opts[:'ai_transformer_id'].nil?
817
893
  query_params[:'phoneId'] = opts[:'phone_id'] if !opts[:'phone_id'].nil?
818
894
  query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
819
895
  query_params[:'health'] = opts[:'health'] if !opts[:'health'].nil?
@@ -1971,6 +2047,7 @@ module MailSlurpClient
1971
2047
  # @option opts [String] :attachment_id Attachment ID
1972
2048
  # @option opts [String] :email_id Email ID
1973
2049
  # @option opts [String] :phone_id Phone ID
2050
+ # @option opts [String] :ai_transformer_id AI Transformer ID
1974
2051
  # @return [PageWebhookResult]
1975
2052
  def get_webhook_results(webhook_id, opts = {})
1976
2053
  data, _status_code, _headers = get_webhook_results_with_http_info(webhook_id, opts)
@@ -1996,6 +2073,7 @@ module MailSlurpClient
1996
2073
  # @option opts [String] :attachment_id Attachment ID
1997
2074
  # @option opts [String] :email_id Email ID
1998
2075
  # @option opts [String] :phone_id Phone ID
2076
+ # @option opts [String] :ai_transformer_id AI Transformer ID
1999
2077
  # @return [Array<(PageWebhookResult, Integer, Hash)>] PageWebhookResult data, response status code and response headers
2000
2078
  def get_webhook_results_with_http_info(webhook_id, opts = {})
2001
2079
  if @api_client.config.debugging
@@ -2038,6 +2116,7 @@ module MailSlurpClient
2038
2116
  query_params[:'attachmentId'] = opts[:'attachment_id'] if !opts[:'attachment_id'].nil?
2039
2117
  query_params[:'emailId'] = opts[:'email_id'] if !opts[:'email_id'].nil?
2040
2118
  query_params[:'phoneId'] = opts[:'phone_id'] if !opts[:'phone_id'].nil?
2119
+ query_params[:'aiTransformerId'] = opts[:'ai_transformer_id'] if !opts[:'ai_transformer_id'].nil?
2041
2120
 
2042
2121
  # header parameters
2043
2122
  header_params = opts[:header_params] || {}
@@ -2442,6 +2521,7 @@ module MailSlurpClient
2442
2521
  # @param create_webhook_options [CreateWebhookOptions]
2443
2522
  # @param [Hash] opts the optional parameters
2444
2523
  # @option opts [String] :inbox_id
2524
+ # @option opts [String] :ai_transformer_id
2445
2525
  # @option opts [String] :phone_number_id
2446
2526
  # @option opts [Boolean] :override_auth
2447
2527
  # @return [WebhookDto]
@@ -2455,6 +2535,7 @@ module MailSlurpClient
2455
2535
  # @param create_webhook_options [CreateWebhookOptions]
2456
2536
  # @param [Hash] opts the optional parameters
2457
2537
  # @option opts [String] :inbox_id
2538
+ # @option opts [String] :ai_transformer_id
2458
2539
  # @option opts [String] :phone_number_id
2459
2540
  # @option opts [Boolean] :override_auth
2460
2541
  # @return [Array<(WebhookDto, Integer, Hash)>] WebhookDto data, response status code and response headers
@@ -2476,6 +2557,7 @@ module MailSlurpClient
2476
2557
  # query parameters
2477
2558
  query_params = opts[:query_params] || {}
2478
2559
  query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
2560
+ query_params[:'aiTransformerId'] = opts[:'ai_transformer_id'] if !opts[:'ai_transformer_id'].nil?
2479
2561
  query_params[:'phoneNumberId'] = opts[:'phone_number_id'] if !opts[:'phone_number_id'].nil?
2480
2562
  query_params[:'overrideAuth'] = opts[:'override_auth'] if !opts[:'override_auth'].nil?
2481
2563
 
@@ -24,6 +24,8 @@ module MailSlurpClient
24
24
 
25
25
  attr_accessor :output_schema
26
26
 
27
+ attr_accessor :created_at
28
+
27
29
  # Attribute mapping from ruby-style variable name to JSON key.
28
30
  def self.attribute_map
29
31
  {
@@ -31,7 +33,8 @@ module MailSlurpClient
31
33
  :'name' => :'name',
32
34
  :'conditions' => :'conditions',
33
35
  :'instructions' => :'instructions',
34
- :'output_schema' => :'outputSchema'
36
+ :'output_schema' => :'outputSchema',
37
+ :'created_at' => :'createdAt'
35
38
  }
36
39
  end
37
40
 
@@ -42,14 +45,15 @@ module MailSlurpClient
42
45
  :'name' => :'String',
43
46
  :'conditions' => :'Array<String>',
44
47
  :'instructions' => :'Array<String>',
45
- :'output_schema' => :'StructuredOutputSchema'
48
+ :'output_schema' => :'StructuredOutputSchema',
49
+ :'created_at' => :'DateTime'
46
50
  }
47
51
  end
48
52
 
49
53
  # List of attributes with nullable: true
50
54
  def self.openapi_nullable
51
55
  Set.new([
52
- :'output_schema'
56
+ :'output_schema',
53
57
  ])
54
58
  end
55
59
 
@@ -91,6 +95,10 @@ module MailSlurpClient
91
95
  if attributes.key?(:'output_schema')
92
96
  self.output_schema = attributes[:'output_schema']
93
97
  end
98
+
99
+ if attributes.key?(:'created_at')
100
+ self.created_at = attributes[:'created_at']
101
+ end
94
102
  end
95
103
 
96
104
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -101,6 +109,10 @@ module MailSlurpClient
101
109
  invalid_properties.push('invalid value for "id", id cannot be nil.')
102
110
  end
103
111
 
112
+ if @created_at.nil?
113
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
114
+ end
115
+
104
116
  invalid_properties
105
117
  end
106
118
 
@@ -108,6 +120,7 @@ module MailSlurpClient
108
120
  # @return true if the model is valid
109
121
  def valid?
110
122
  return false if @id.nil?
123
+ return false if @created_at.nil?
111
124
  true
112
125
  end
113
126
 
@@ -120,7 +133,8 @@ module MailSlurpClient
120
133
  name == o.name &&
121
134
  conditions == o.conditions &&
122
135
  instructions == o.instructions &&
123
- output_schema == o.output_schema
136
+ output_schema == o.output_schema &&
137
+ created_at == o.created_at
124
138
  end
125
139
 
126
140
  # @see the `==` method
@@ -132,7 +146,7 @@ module MailSlurpClient
132
146
  # Calculates hash code according to all attributes.
133
147
  # @return [Integer] Hash code
134
148
  def hash
135
- [id, name, conditions, instructions, output_schema].hash
149
+ [id, name, conditions, instructions, output_schema, created_at].hash
136
150
  end
137
151
 
138
152
  # Builds the object from hash
@@ -15,16 +15,16 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Representation of a alias
17
17
  class AliasProjection
18
- attr_accessor :inbox_id
19
-
20
18
  attr_accessor :user_id
21
19
 
22
- attr_accessor :email_address
20
+ attr_accessor :inbox_id
23
21
 
24
- attr_accessor :updated_at
22
+ attr_accessor :email_address
25
23
 
26
24
  attr_accessor :created_at
27
25
 
26
+ attr_accessor :updated_at
27
+
28
28
  attr_accessor :use_threads
29
29
 
30
30
  attr_accessor :name
@@ -34,11 +34,11 @@ module MailSlurpClient
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
- :'inbox_id' => :'inboxId',
38
37
  :'user_id' => :'userId',
38
+ :'inbox_id' => :'inboxId',
39
39
  :'email_address' => :'emailAddress',
40
- :'updated_at' => :'updatedAt',
41
40
  :'created_at' => :'createdAt',
41
+ :'updated_at' => :'updatedAt',
42
42
  :'use_threads' => :'useThreads',
43
43
  :'name' => :'name',
44
44
  :'id' => :'id'
@@ -48,11 +48,11 @@ module MailSlurpClient
48
48
  # Attribute type mapping.
49
49
  def self.openapi_types
50
50
  {
51
- :'inbox_id' => :'String',
52
51
  :'user_id' => :'String',
52
+ :'inbox_id' => :'String',
53
53
  :'email_address' => :'String',
54
- :'updated_at' => :'DateTime',
55
54
  :'created_at' => :'DateTime',
55
+ :'updated_at' => :'DateTime',
56
56
  :'use_threads' => :'Boolean',
57
57
  :'name' => :'String',
58
58
  :'id' => :'String'
@@ -80,26 +80,26 @@ module MailSlurpClient
80
80
  h[k.to_sym] = v
81
81
  }
82
82
 
83
- if attributes.key?(:'inbox_id')
84
- self.inbox_id = attributes[:'inbox_id']
85
- end
86
-
87
83
  if attributes.key?(:'user_id')
88
84
  self.user_id = attributes[:'user_id']
89
85
  end
90
86
 
91
- if attributes.key?(:'email_address')
92
- self.email_address = attributes[:'email_address']
87
+ if attributes.key?(:'inbox_id')
88
+ self.inbox_id = attributes[:'inbox_id']
93
89
  end
94
90
 
95
- if attributes.key?(:'updated_at')
96
- self.updated_at = attributes[:'updated_at']
91
+ if attributes.key?(:'email_address')
92
+ self.email_address = attributes[:'email_address']
97
93
  end
98
94
 
99
95
  if attributes.key?(:'created_at')
100
96
  self.created_at = attributes[:'created_at']
101
97
  end
102
98
 
99
+ if attributes.key?(:'updated_at')
100
+ self.updated_at = attributes[:'updated_at']
101
+ end
102
+
103
103
  if attributes.key?(:'use_threads')
104
104
  self.use_threads = attributes[:'use_threads']
105
105
  end
@@ -117,26 +117,26 @@ 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 @inbox_id.nil?
121
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
122
- end
123
-
124
120
  if @user_id.nil?
125
121
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
126
122
  end
127
123
 
128
- if @email_address.nil?
129
- invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
124
+ if @inbox_id.nil?
125
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
130
126
  end
131
127
 
132
- if @updated_at.nil?
133
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
128
+ if @email_address.nil?
129
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
134
130
  end
135
131
 
136
132
  if @created_at.nil?
137
133
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
134
  end
139
135
 
136
+ if @updated_at.nil?
137
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
138
+ end
139
+
140
140
  if @id.nil?
141
141
  invalid_properties.push('invalid value for "id", id cannot be nil.')
142
142
  end
@@ -147,11 +147,11 @@ module MailSlurpClient
147
147
  # Check to see if the all the properties in the model are valid
148
148
  # @return true if the model is valid
149
149
  def valid?
150
- return false if @inbox_id.nil?
151
150
  return false if @user_id.nil?
151
+ return false if @inbox_id.nil?
152
152
  return false if @email_address.nil?
153
- return false if @updated_at.nil?
154
153
  return false if @created_at.nil?
154
+ return false if @updated_at.nil?
155
155
  return false if @id.nil?
156
156
  true
157
157
  end
@@ -161,11 +161,11 @@ module MailSlurpClient
161
161
  def ==(o)
162
162
  return true if self.equal?(o)
163
163
  self.class == o.class &&
164
- inbox_id == o.inbox_id &&
165
164
  user_id == o.user_id &&
165
+ inbox_id == o.inbox_id &&
166
166
  email_address == o.email_address &&
167
- updated_at == o.updated_at &&
168
167
  created_at == o.created_at &&
168
+ updated_at == o.updated_at &&
169
169
  use_threads == o.use_threads &&
170
170
  name == o.name &&
171
171
  id == o.id
@@ -180,7 +180,7 @@ module MailSlurpClient
180
180
  # Calculates hash code according to all attributes.
181
181
  # @return [Integer] Hash code
182
182
  def hash
183
- [inbox_id, user_id, email_address, updated_at, created_at, use_threads, name, id].hash
183
+ [user_id, inbox_id, email_address, created_at, updated_at, use_threads, name, id].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -15,18 +15,18 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # A thread is a message thread created for a message received by an alias
17
17
  class AliasThreadProjection
18
- # Inbox ID
19
- attr_accessor :inbox_id
20
-
21
18
  # User ID
22
19
  attr_accessor :user_id
23
20
 
24
- # Updated at DateTime
25
- attr_accessor :updated_at
21
+ # Inbox ID
22
+ attr_accessor :inbox_id
26
23
 
27
24
  # Created at DateTime
28
25
  attr_accessor :created_at
29
26
 
27
+ # Updated at DateTime
28
+ attr_accessor :updated_at
29
+
30
30
  # To recipients
31
31
  attr_accessor :to
32
32
 
@@ -51,10 +51,10 @@ module MailSlurpClient
51
51
  # Attribute mapping from ruby-style variable name to JSON key.
52
52
  def self.attribute_map
53
53
  {
54
- :'inbox_id' => :'inboxId',
55
54
  :'user_id' => :'userId',
56
- :'updated_at' => :'updatedAt',
55
+ :'inbox_id' => :'inboxId',
57
56
  :'created_at' => :'createdAt',
57
+ :'updated_at' => :'updatedAt',
58
58
  :'to' => :'to',
59
59
  :'cc' => :'cc',
60
60
  :'bcc' => :'bcc',
@@ -68,10 +68,10 @@ module MailSlurpClient
68
68
  # Attribute type mapping.
69
69
  def self.openapi_types
70
70
  {
71
- :'inbox_id' => :'String',
72
71
  :'user_id' => :'String',
73
- :'updated_at' => :'DateTime',
72
+ :'inbox_id' => :'String',
74
73
  :'created_at' => :'DateTime',
74
+ :'updated_at' => :'DateTime',
75
75
  :'to' => :'Array<String>',
76
76
  :'cc' => :'Array<String>',
77
77
  :'bcc' => :'Array<String>',
@@ -103,22 +103,22 @@ module MailSlurpClient
103
103
  h[k.to_sym] = v
104
104
  }
105
105
 
106
- if attributes.key?(:'inbox_id')
107
- self.inbox_id = attributes[:'inbox_id']
108
- end
109
-
110
106
  if attributes.key?(:'user_id')
111
107
  self.user_id = attributes[:'user_id']
112
108
  end
113
109
 
114
- if attributes.key?(:'updated_at')
115
- self.updated_at = attributes[:'updated_at']
110
+ if attributes.key?(:'inbox_id')
111
+ self.inbox_id = attributes[:'inbox_id']
116
112
  end
117
113
 
118
114
  if attributes.key?(:'created_at')
119
115
  self.created_at = attributes[:'created_at']
120
116
  end
121
117
 
118
+ if attributes.key?(:'updated_at')
119
+ self.updated_at = attributes[:'updated_at']
120
+ end
121
+
122
122
  if attributes.key?(:'to')
123
123
  if (value = attributes[:'to']).is_a?(Array)
124
124
  self.to = value
@@ -158,22 +158,22 @@ module MailSlurpClient
158
158
  # @return Array for valid properties with the reasons
159
159
  def list_invalid_properties
160
160
  invalid_properties = Array.new
161
- if @inbox_id.nil?
162
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
163
- end
164
-
165
161
  if @user_id.nil?
166
162
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
167
163
  end
168
164
 
169
- if @updated_at.nil?
170
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
165
+ if @inbox_id.nil?
166
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
171
167
  end
172
168
 
173
169
  if @created_at.nil?
174
170
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
175
171
  end
176
172
 
173
+ if @updated_at.nil?
174
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
175
+ end
176
+
177
177
  if @to.nil?
178
178
  invalid_properties.push('invalid value for "to", to cannot be nil.')
179
179
  end
@@ -192,10 +192,10 @@ module MailSlurpClient
192
192
  # Check to see if the all the properties in the model are valid
193
193
  # @return true if the model is valid
194
194
  def valid?
195
- return false if @inbox_id.nil?
196
195
  return false if @user_id.nil?
197
- return false if @updated_at.nil?
196
+ return false if @inbox_id.nil?
198
197
  return false if @created_at.nil?
198
+ return false if @updated_at.nil?
199
199
  return false if @to.nil?
200
200
  return false if @alias_id.nil?
201
201
  return false if @id.nil?
@@ -207,10 +207,10 @@ module MailSlurpClient
207
207
  def ==(o)
208
208
  return true if self.equal?(o)
209
209
  self.class == o.class &&
210
- inbox_id == o.inbox_id &&
211
210
  user_id == o.user_id &&
212
- updated_at == o.updated_at &&
211
+ inbox_id == o.inbox_id &&
213
212
  created_at == o.created_at &&
213
+ updated_at == o.updated_at &&
214
214
  to == o.to &&
215
215
  cc == o.cc &&
216
216
  bcc == o.bcc &&
@@ -229,7 +229,7 @@ module MailSlurpClient
229
229
  # Calculates hash code according to all attributes.
230
230
  # @return [Integer] Hash code
231
231
  def hash
232
- [inbox_id, user_id, updated_at, created_at, to, cc, bcc, alias_id, subject, name, id].hash
232
+ [user_id, inbox_id, created_at, updated_at, to, cc, bcc, alias_id, subject, name, id].hash
233
233
  end
234
234
 
235
235
  # Builds the object from hash