mailslurp_client 15.12.16 → 15.12.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/inbox_controller_api.rb +89 -0
  3. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +83 -3
  4. data/lib/mailslurp_client/models/attachment_meta_data.rb +1 -1
  5. data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
  6. data/lib/mailslurp_client/models/bounce_projection.rb +13 -13
  7. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +13 -13
  8. data/lib/mailslurp_client/models/{delivery_status.rb → delivery_status_dto.rb} +18 -4
  9. data/lib/mailslurp_client/models/email.rb +11 -1
  10. data/lib/mailslurp_client/models/email_preview.rb +11 -1
  11. data/lib/mailslurp_client/models/email_projection.rb +40 -31
  12. data/lib/mailslurp_client/models/inbox_preview.rb +11 -1
  13. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  14. data/lib/mailslurp_client/models/organization_inbox_projection.rb +11 -1
  15. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  16. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  17. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  18. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  19. data/lib/mailslurp_client/models/page_complaint.rb +19 -19
  20. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  21. data/lib/mailslurp_client/models/page_delivery_status.rb +20 -20
  22. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  23. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  24. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  25. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  26. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  27. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  28. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  29. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  30. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  31. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  32. data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
  33. data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
  34. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  35. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  36. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  37. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  38. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  39. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  40. data/lib/mailslurp_client/models/sent_email_dto.rb +11 -1
  41. data/lib/mailslurp_client/models/sent_email_projection.rb +27 -27
  42. data/lib/mailslurp_client/models/sort.rb +13 -13
  43. data/lib/mailslurp_client/models/thread_projection.rb +11 -11
  44. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  45. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +11 -1
  46. data/lib/mailslurp_client/version.rb +1 -1
  47. data/lib/mailslurp_client.rb +1 -1
  48. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db8e97b69df32cf2d3d1b05a3abbf221b10d3ae316797ddf7b7ab6621982d43b
4
- data.tar.gz: 473249ad3e4a85771f550c8cd0ee92ae2ed36ce1d7674caca208d4bc79beb95f
3
+ metadata.gz: e1dac26ff14eb4f9f64b3b514fc28d7d59db6b07c64c450992dd86916227922a
4
+ data.tar.gz: ae952361f60c99bee1dfb8f37d6d2e71b7e7621cb3ef48467b22d1ef5bc397f6
5
5
  SHA512:
6
- metadata.gz: d8a1bea553e9d274a097d316cea53d89000b57bd9310e6b12363d893ea50c567d3ee5d2b56492601cf15090339dd839a295e0ff91bfe3764037e14f49e58c511
7
- data.tar.gz: b7c74ae25aed2bc8847b704580cd4a99deb1eff427068a3f048943b52c003970e3a0ab6519acc1b1767779a22e225335e1458fe9189a0d9b6b9cd11a1ce2a36f
6
+ metadata.gz: 82dc3c0abe03f28aeebe0ee2e006fc56e2deed8b115e7501fffa770791ed1269b753da2f4552ba06056093a4cf1f92a977256b6ce124f0e5b99fbe38810a52cd
7
+ data.tar.gz: a6835141e04325e7a71ac696c4d5c988555857c72f722b741aa638418b0e4f2311f32f1b8056a9b0c7c4837be3214604fe3fe525360549a8d5e4d56569af6a64
@@ -608,6 +608,8 @@ module MailSlurpClient
608
608
  # @option opts [Boolean] :team_access DEPRECATED. Optionally filter by team access.
609
609
  # @option opts [DateTime] :since Optional filter by created after given date time
610
610
  # @option opts [DateTime] :before Optional filter by created before given date time
611
+ # @option opts [String] :inbox_type Optional filter by inbox type
612
+ # @option opts [String] :domain_id Optional domain ID filter
611
613
  # @return [PageInboxProjection]
612
614
  def get_all_inboxes(opts = {})
613
615
  data, _status_code, _headers = get_all_inboxes_with_http_info(opts)
@@ -626,6 +628,8 @@ module MailSlurpClient
626
628
  # @option opts [Boolean] :team_access DEPRECATED. Optionally filter by team access.
627
629
  # @option opts [DateTime] :since Optional filter by created after given date time
628
630
  # @option opts [DateTime] :before Optional filter by created before given date time
631
+ # @option opts [String] :inbox_type Optional filter by inbox type
632
+ # @option opts [String] :domain_id Optional domain ID filter
629
633
  # @return [Array<(PageInboxProjection, Integer, Hash)>] PageInboxProjection data, response status code and response headers
630
634
  def get_all_inboxes_with_http_info(opts = {})
631
635
  if @api_client.config.debugging
@@ -635,6 +639,10 @@ module MailSlurpClient
635
639
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
636
640
  fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
637
641
  end
642
+ allowable_values = ["HTTP_INBOX", "SMTP_INBOX"]
643
+ if @api_client.config.client_side_validation && opts[:'inbox_type'] && !allowable_values.include?(opts[:'inbox_type'])
644
+ fail ArgumentError, "invalid value for \"inbox_type\", must be one of #{allowable_values}"
645
+ end
638
646
  # resource path
639
647
  local_var_path = '/inboxes/paginated'
640
648
 
@@ -649,6 +657,8 @@ module MailSlurpClient
649
657
  query_params[:'teamAccess'] = opts[:'team_access'] if !opts[:'team_access'].nil?
650
658
  query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
651
659
  query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
660
+ query_params[:'inboxType'] = opts[:'inbox_type'] if !opts[:'inbox_type'].nil?
661
+ query_params[:'domainId'] = opts[:'domain_id'] if !opts[:'domain_id'].nil?
652
662
 
653
663
  # header parameters
654
664
  header_params = opts[:header_params] || {}
@@ -683,6 +693,85 @@ module MailSlurpClient
683
693
  return data, status_code, headers
684
694
  end
685
695
 
696
+ # Get all email delivery statuses for an inbox
697
+ # @param inbox_id [String]
698
+ # @param [Hash] opts the optional parameters
699
+ # @option opts [Integer] :page Optional page index in delivery status list pagination (default to 0)
700
+ # @option opts [Integer] :size Optional page size in delivery status list pagination (default to 20)
701
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
702
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
703
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
704
+ # @return [PageDeliveryStatus]
705
+ def get_delivery_statuses_by_inbox_id(inbox_id, opts = {})
706
+ data, _status_code, _headers = get_delivery_statuses_by_inbox_id_with_http_info(inbox_id, opts)
707
+ data
708
+ end
709
+
710
+ # Get all email delivery statuses for an inbox
711
+ # @param inbox_id [String]
712
+ # @param [Hash] opts the optional parameters
713
+ # @option opts [Integer] :page Optional page index in delivery status list pagination
714
+ # @option opts [Integer] :size Optional page size in delivery status list pagination
715
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
716
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
717
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
718
+ # @return [Array<(PageDeliveryStatus, Integer, Hash)>] PageDeliveryStatus data, response status code and response headers
719
+ def get_delivery_statuses_by_inbox_id_with_http_info(inbox_id, opts = {})
720
+ if @api_client.config.debugging
721
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.get_delivery_statuses_by_inbox_id ...'
722
+ end
723
+ # verify the required parameter 'inbox_id' is set
724
+ if @api_client.config.client_side_validation && inbox_id.nil?
725
+ fail ArgumentError, "Missing the required parameter 'inbox_id' when calling InboxControllerApi.get_delivery_statuses_by_inbox_id"
726
+ end
727
+ allowable_values = ["ASC", "DESC"]
728
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
729
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
730
+ end
731
+ # resource path
732
+ local_var_path = '/inboxes/{inboxId}/delivery-status'.sub('{' + 'inboxId' + '}', CGI.escape(inbox_id.to_s))
733
+
734
+ # query parameters
735
+ query_params = opts[:query_params] || {}
736
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
737
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
738
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
739
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
740
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
741
+
742
+ # header parameters
743
+ header_params = opts[:header_params] || {}
744
+ # HTTP header 'Accept' (if needed)
745
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
746
+
747
+ # form parameters
748
+ form_params = opts[:form_params] || {}
749
+
750
+ # http body (model)
751
+ post_body = opts[:body]
752
+
753
+ # return_type
754
+ return_type = opts[:return_type] || 'PageDeliveryStatus'
755
+
756
+ # auth_names
757
+ auth_names = opts[:auth_names] || ['API_KEY']
758
+
759
+ new_options = opts.merge(
760
+ :header_params => header_params,
761
+ :query_params => query_params,
762
+ :form_params => form_params,
763
+ :body => post_body,
764
+ :auth_names => auth_names,
765
+ :return_type => return_type
766
+ )
767
+
768
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
769
+ if @api_client.config.debugging
770
+ @api_client.config.logger.debug "API called: InboxControllerApi#get_delivery_statuses_by_inbox_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
771
+ end
772
+ return data, status_code, headers
773
+ end
774
+
686
775
  # Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead.
687
776
  # List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached
688
777
  # @param inbox_id [String] Id of inbox that emails belongs to
@@ -332,7 +332,7 @@ module MailSlurpClient
332
332
  # Get a sent email delivery status
333
333
  # @param delivery_id [String]
334
334
  # @param [Hash] opts the optional parameters
335
- # @return [DeliveryStatus]
335
+ # @return [DeliveryStatusDto]
336
336
  def get_sent_delivery_status(delivery_id, opts = {})
337
337
  data, _status_code, _headers = get_sent_delivery_status_with_http_info(delivery_id, opts)
338
338
  data
@@ -341,7 +341,7 @@ module MailSlurpClient
341
341
  # Get a sent email delivery status
342
342
  # @param delivery_id [String]
343
343
  # @param [Hash] opts the optional parameters
344
- # @return [Array<(DeliveryStatus, Integer, Hash)>] DeliveryStatus data, response status code and response headers
344
+ # @return [Array<(DeliveryStatusDto, Integer, Hash)>] DeliveryStatusDto data, response status code and response headers
345
345
  def get_sent_delivery_status_with_http_info(delivery_id, opts = {})
346
346
  if @api_client.config.debugging
347
347
  @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_sent_delivery_status ...'
@@ -368,7 +368,7 @@ module MailSlurpClient
368
368
  post_body = opts[:body]
369
369
 
370
370
  # return_type
371
- return_type = opts[:return_type] || 'DeliveryStatus'
371
+ return_type = opts[:return_type] || 'DeliveryStatusDto'
372
372
 
373
373
  # auth_names
374
374
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -1035,5 +1035,85 @@ module MailSlurpClient
1035
1035
  end
1036
1036
  return data, status_code, headers
1037
1037
  end
1038
+
1039
+ # Wait for delivery statuses
1040
+ # @param [Hash] opts the optional parameters
1041
+ # @option opts [String] :sent_id Optional sent email ID filter
1042
+ # @option opts [String] :inbox_id Optional inbox ID filter
1043
+ # @option opts [Integer] :timeout Optional timeout milliseconds
1044
+ # @option opts [Integer] :index Zero based index of the delivery status to wait for. If 1 delivery status already and you want to wait for the 2nd pass index&#x3D;1
1045
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
1046
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
1047
+ # @return [DeliveryStatusDto]
1048
+ def wait_for_delivery_statuses(opts = {})
1049
+ data, _status_code, _headers = wait_for_delivery_statuses_with_http_info(opts)
1050
+ data
1051
+ end
1052
+
1053
+ # Wait for delivery statuses
1054
+ # @param [Hash] opts the optional parameters
1055
+ # @option opts [String] :sent_id Optional sent email ID filter
1056
+ # @option opts [String] :inbox_id Optional inbox ID filter
1057
+ # @option opts [Integer] :timeout Optional timeout milliseconds
1058
+ # @option opts [Integer] :index Zero based index of the delivery status to wait for. If 1 delivery status already and you want to wait for the 2nd pass index&#x3D;1
1059
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
1060
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
1061
+ # @return [Array<(DeliveryStatusDto, Integer, Hash)>] DeliveryStatusDto data, response status code and response headers
1062
+ def wait_for_delivery_statuses_with_http_info(opts = {})
1063
+ if @api_client.config.debugging
1064
+ @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.wait_for_delivery_statuses ...'
1065
+ end
1066
+ if @api_client.config.client_side_validation && !opts[:'index'].nil? && opts[:'index'] > 2147483647
1067
+ fail ArgumentError, 'invalid value for "opts[:"index"]" when calling SentEmailsControllerApi.wait_for_delivery_statuses, must be smaller than or equal to 2147483647.'
1068
+ end
1069
+
1070
+ if @api_client.config.client_side_validation && !opts[:'index'].nil? && opts[:'index'] < 0
1071
+ fail ArgumentError, 'invalid value for "opts[:"index"]" when calling SentEmailsControllerApi.wait_for_delivery_statuses, must be greater than or equal to 0.'
1072
+ end
1073
+
1074
+ # resource path
1075
+ local_var_path = '/sent/delivery-status/wait-for'
1076
+
1077
+ # query parameters
1078
+ query_params = opts[:query_params] || {}
1079
+ query_params[:'sentId'] = opts[:'sent_id'] if !opts[:'sent_id'].nil?
1080
+ query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
1081
+ query_params[:'timeout'] = opts[:'timeout'] if !opts[:'timeout'].nil?
1082
+ query_params[:'index'] = opts[:'index'] if !opts[:'index'].nil?
1083
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
1084
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
1085
+
1086
+ # header parameters
1087
+ header_params = opts[:header_params] || {}
1088
+ # HTTP header 'Accept' (if needed)
1089
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1090
+
1091
+ # form parameters
1092
+ form_params = opts[:form_params] || {}
1093
+
1094
+ # http body (model)
1095
+ post_body = opts[:body]
1096
+
1097
+ # return_type
1098
+ return_type = opts[:return_type] || 'DeliveryStatusDto'
1099
+
1100
+ # auth_names
1101
+ auth_names = opts[:auth_names] || ['API_KEY']
1102
+
1103
+ new_options = opts.merge(
1104
+ :header_params => header_params,
1105
+ :query_params => query_params,
1106
+ :form_params => form_params,
1107
+ :body => post_body,
1108
+ :auth_names => auth_names,
1109
+ :return_type => return_type
1110
+ )
1111
+
1112
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1113
+ if @api_client.config.debugging
1114
+ @api_client.config.logger.debug "API called: SentEmailsControllerApi#wait_for_delivery_statuses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1115
+ end
1116
+ return data, status_code, headers
1117
+ end
1038
1118
  end
1039
1119
  end
@@ -24,7 +24,7 @@ module MailSlurpClient
24
24
  # Size of attachment in bytes
25
25
  attr_accessor :content_length
26
26
 
27
- # ID of attachment
27
+ # ID of attachment. Can be used to with attachment controller endpoints to download attachment or with sending methods to attach to an email.
28
28
  attr_accessor :id
29
29
 
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -20,9 +20,6 @@ module MailSlurpClient
20
20
  # Content length of attachment in bytes
21
21
  attr_accessor :content_length
22
22
 
23
- # Content type of attachment.
24
- attr_accessor :content_type
25
-
26
23
  attr_accessor :user_id
27
24
 
28
25
  # Attachment ID
@@ -32,16 +29,19 @@ module MailSlurpClient
32
29
 
33
30
  attr_accessor :updated_at
34
31
 
32
+ # Content type of attachment.
33
+ attr_accessor :content_type
34
+
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
36
36
  def self.attribute_map
37
37
  {
38
38
  :'name' => :'name',
39
39
  :'content_length' => :'contentLength',
40
- :'content_type' => :'contentType',
41
40
  :'user_id' => :'userId',
42
41
  :'attachment_id' => :'attachmentId',
43
42
  :'created_at' => :'createdAt',
44
- :'updated_at' => :'updatedAt'
43
+ :'updated_at' => :'updatedAt',
44
+ :'content_type' => :'contentType'
45
45
  }
46
46
  end
47
47
 
@@ -50,11 +50,11 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'content_length' => :'Integer',
53
- :'content_type' => :'String',
54
53
  :'user_id' => :'String',
55
54
  :'attachment_id' => :'String',
56
55
  :'created_at' => :'DateTime',
57
- :'updated_at' => :'DateTime'
56
+ :'updated_at' => :'DateTime',
57
+ :'content_type' => :'String'
58
58
  }
59
59
  end
60
60
 
@@ -87,10 +87,6 @@ module MailSlurpClient
87
87
  self.content_length = attributes[:'content_length']
88
88
  end
89
89
 
90
- if attributes.key?(:'content_type')
91
- self.content_type = attributes[:'content_type']
92
- end
93
-
94
90
  if attributes.key?(:'user_id')
95
91
  self.user_id = attributes[:'user_id']
96
92
  end
@@ -106,6 +102,10 @@ module MailSlurpClient
106
102
  if attributes.key?(:'updated_at')
107
103
  self.updated_at = attributes[:'updated_at']
108
104
  end
105
+
106
+ if attributes.key?(:'content_type')
107
+ self.content_type = attributes[:'content_type']
108
+ end
109
109
  end
110
110
 
111
111
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -148,11 +148,11 @@ module MailSlurpClient
148
148
  self.class == o.class &&
149
149
  name == o.name &&
150
150
  content_length == o.content_length &&
151
- content_type == o.content_type &&
152
151
  user_id == o.user_id &&
153
152
  attachment_id == o.attachment_id &&
154
153
  created_at == o.created_at &&
155
- updated_at == o.updated_at
154
+ updated_at == o.updated_at &&
155
+ content_type == o.content_type
156
156
  end
157
157
 
158
158
  # @see the `==` method
@@ -164,7 +164,7 @@ module MailSlurpClient
164
164
  # Calculates hash code according to all attributes.
165
165
  # @return [Integer] Hash code
166
166
  def hash
167
- [name, content_length, content_type, user_id, attachment_id, created_at, updated_at].hash
167
+ [name, content_length, user_id, attachment_id, created_at, updated_at, content_type].hash
168
168
  end
169
169
 
170
170
  # Builds the object from hash
@@ -23,10 +23,10 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :created_at
25
25
 
26
- attr_accessor :bounce_mta
27
-
28
26
  attr_accessor :bounce_type
29
27
 
28
+ attr_accessor :bounce_mta
29
+
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
@@ -34,8 +34,8 @@ module MailSlurpClient
34
34
  :'sender' => :'sender',
35
35
  :'subject' => :'subject',
36
36
  :'created_at' => :'createdAt',
37
- :'bounce_mta' => :'bounceMta',
38
- :'bounce_type' => :'bounceType'
37
+ :'bounce_type' => :'bounceType',
38
+ :'bounce_mta' => :'bounceMta'
39
39
  }
40
40
  end
41
41
 
@@ -46,8 +46,8 @@ module MailSlurpClient
46
46
  :'sender' => :'String',
47
47
  :'subject' => :'String',
48
48
  :'created_at' => :'DateTime',
49
- :'bounce_mta' => :'String',
50
- :'bounce_type' => :'String'
49
+ :'bounce_type' => :'String',
50
+ :'bounce_mta' => :'String'
51
51
  }
52
52
  end
53
53
 
@@ -88,13 +88,13 @@ module MailSlurpClient
88
88
  self.created_at = attributes[:'created_at']
89
89
  end
90
90
 
91
- if attributes.key?(:'bounce_mta')
92
- self.bounce_mta = attributes[:'bounce_mta']
93
- end
94
-
95
91
  if attributes.key?(:'bounce_type')
96
92
  self.bounce_type = attributes[:'bounce_type']
97
93
  end
94
+
95
+ if attributes.key?(:'bounce_mta')
96
+ self.bounce_mta = attributes[:'bounce_mta']
97
+ end
98
98
  end
99
99
 
100
100
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -129,8 +129,8 @@ module MailSlurpClient
129
129
  sender == o.sender &&
130
130
  subject == o.subject &&
131
131
  created_at == o.created_at &&
132
- bounce_mta == o.bounce_mta &&
133
- bounce_type == o.bounce_type
132
+ bounce_type == o.bounce_type &&
133
+ bounce_mta == o.bounce_mta
134
134
  end
135
135
 
136
136
  # @see the `==` method
@@ -142,7 +142,7 @@ module MailSlurpClient
142
142
  # Calculates hash code according to all attributes.
143
143
  # @return [Integer] Hash code
144
144
  def hash
145
- [id, sender, subject, created_at, bounce_mta, bounce_type].hash
145
+ [id, sender, subject, created_at, bounce_type, bounce_mta].hash
146
146
  end
147
147
 
148
148
  # Builds the object from hash
@@ -17,8 +17,6 @@ module MailSlurpClient
17
17
  class BounceRecipientProjection
18
18
  attr_accessor :id
19
19
 
20
- attr_accessor :action
21
-
22
20
  attr_accessor :status
23
21
 
24
22
  attr_accessor :sent_email_id
@@ -27,15 +25,17 @@ module MailSlurpClient
27
25
 
28
26
  attr_accessor :recipient
29
27
 
28
+ attr_accessor :action
29
+
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
33
  :'id' => :'id',
34
- :'action' => :'action',
35
34
  :'status' => :'status',
36
35
  :'sent_email_id' => :'sentEmailId',
37
36
  :'created_at' => :'createdAt',
38
- :'recipient' => :'recipient'
37
+ :'recipient' => :'recipient',
38
+ :'action' => :'action'
39
39
  }
40
40
  end
41
41
 
@@ -43,11 +43,11 @@ module MailSlurpClient
43
43
  def self.openapi_types
44
44
  {
45
45
  :'id' => :'String',
46
- :'action' => :'String',
47
46
  :'status' => :'String',
48
47
  :'sent_email_id' => :'String',
49
48
  :'created_at' => :'DateTime',
50
- :'recipient' => :'String'
49
+ :'recipient' => :'String',
50
+ :'action' => :'String'
51
51
  }
52
52
  end
53
53
 
@@ -76,10 +76,6 @@ module MailSlurpClient
76
76
  self.id = attributes[:'id']
77
77
  end
78
78
 
79
- if attributes.key?(:'action')
80
- self.action = attributes[:'action']
81
- end
82
-
83
79
  if attributes.key?(:'status')
84
80
  self.status = attributes[:'status']
85
81
  end
@@ -95,6 +91,10 @@ module MailSlurpClient
95
91
  if attributes.key?(:'recipient')
96
92
  self.recipient = attributes[:'recipient']
97
93
  end
94
+
95
+ if attributes.key?(:'action')
96
+ self.action = attributes[:'action']
97
+ end
98
98
  end
99
99
 
100
100
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -126,11 +126,11 @@ module MailSlurpClient
126
126
  return true if self.equal?(o)
127
127
  self.class == o.class &&
128
128
  id == o.id &&
129
- action == o.action &&
130
129
  status == o.status &&
131
130
  sent_email_id == o.sent_email_id &&
132
131
  created_at == o.created_at &&
133
- recipient == o.recipient
132
+ recipient == o.recipient &&
133
+ action == o.action
134
134
  end
135
135
 
136
136
  # @see the `==` method
@@ -142,7 +142,7 @@ module MailSlurpClient
142
142
  # Calculates hash code according to all attributes.
143
143
  # @return [Integer] Hash code
144
144
  def hash
145
- [id, action, status, sent_email_id, created_at, recipient].hash
145
+ [id, status, sent_email_id, created_at, recipient, action].hash
146
146
  end
147
147
 
148
148
  # Builds the object from hash
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- class DeliveryStatus
16
+ class DeliveryStatusDto
17
17
  attr_accessor :id
18
18
 
19
19
  attr_accessor :user_id
@@ -30,6 +30,8 @@ module MailSlurpClient
30
30
 
31
31
  attr_accessor :smtp_response
32
32
 
33
+ attr_accessor :smtp_status_code
34
+
33
35
  attr_accessor :processing_time_millis
34
36
 
35
37
  attr_accessor :received
@@ -51,6 +53,7 @@ module MailSlurpClient
51
53
  :'reporting_mta' => :'reportingMta',
52
54
  :'recipients' => :'recipients',
53
55
  :'smtp_response' => :'smtpResponse',
56
+ :'smtp_status_code' => :'smtpStatusCode',
54
57
  :'processing_time_millis' => :'processingTimeMillis',
55
58
  :'received' => :'received',
56
59
  :'subject' => :'subject',
@@ -70,6 +73,7 @@ module MailSlurpClient
70
73
  :'reporting_mta' => :'String',
71
74
  :'recipients' => :'Array<String>',
72
75
  :'smtp_response' => :'String',
76
+ :'smtp_status_code' => :'Integer',
73
77
  :'processing_time_millis' => :'Integer',
74
78
  :'received' => :'DateTime',
75
79
  :'subject' => :'String',
@@ -88,13 +92,13 @@ module MailSlurpClient
88
92
  # @param [Hash] attributes Model attributes in the form of hash
89
93
  def initialize(attributes = {})
90
94
  if (!attributes.is_a?(Hash))
91
- fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::DeliveryStatus` initialize method"
95
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::DeliveryStatusDto` initialize method"
92
96
  end
93
97
 
94
98
  # check to see if the attribute exists and convert string to symbol for hash key
95
99
  attributes = attributes.each_with_object({}) { |(k, v), h|
96
100
  if (!self.class.attribute_map.key?(k.to_sym))
97
- fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::DeliveryStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
101
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::DeliveryStatusDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
98
102
  end
99
103
  h[k.to_sym] = v
100
104
  }
@@ -133,6 +137,10 @@ module MailSlurpClient
133
137
  self.smtp_response = attributes[:'smtp_response']
134
138
  end
135
139
 
140
+ if attributes.key?(:'smtp_status_code')
141
+ self.smtp_status_code = attributes[:'smtp_status_code']
142
+ end
143
+
136
144
  if attributes.key?(:'processing_time_millis')
137
145
  self.processing_time_millis = attributes[:'processing_time_millis']
138
146
  end
@@ -158,6 +166,10 @@ module MailSlurpClient
158
166
  # @return Array for valid properties with the reasons
159
167
  def list_invalid_properties
160
168
  invalid_properties = Array.new
169
+ if @id.nil?
170
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
171
+ end
172
+
161
173
  if @user_id.nil?
162
174
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
163
175
  end
@@ -176,6 +188,7 @@ module MailSlurpClient
176
188
  # Check to see if the all the properties in the model are valid
177
189
  # @return true if the model is valid
178
190
  def valid?
191
+ return false if @id.nil?
179
192
  return false if @user_id.nil?
180
193
  return false if @created_at.nil?
181
194
  return false if @updated_at.nil?
@@ -195,6 +208,7 @@ module MailSlurpClient
195
208
  reporting_mta == o.reporting_mta &&
196
209
  recipients == o.recipients &&
197
210
  smtp_response == o.smtp_response &&
211
+ smtp_status_code == o.smtp_status_code &&
198
212
  processing_time_millis == o.processing_time_millis &&
199
213
  received == o.received &&
200
214
  subject == o.subject &&
@@ -211,7 +225,7 @@ module MailSlurpClient
211
225
  # Calculates hash code according to all attributes.
212
226
  # @return [Integer] Hash code
213
227
  def hash
214
- [id, user_id, sent_id, remote_mta_ip, inbox_id, reporting_mta, recipients, smtp_response, processing_time_millis, received, subject, created_at, updated_at].hash
228
+ [id, user_id, sent_id, remote_mta_ip, inbox_id, reporting_mta, recipients, smtp_response, smtp_status_code, processing_time_millis, received, subject, created_at, updated_at].hash
215
229
  end
216
230
 
217
231
  # Builds the object from hash
@@ -24,6 +24,9 @@ module MailSlurpClient
24
24
  # ID of the inbox that received the email
25
25
  attr_accessor :inbox_id
26
26
 
27
+ # ID of the domain that received the email
28
+ attr_accessor :domain_id
29
+
27
30
  # List of `To` recipient email addresses that the email was addressed to. See recipients object for names.
28
31
  attr_accessor :to
29
32
 
@@ -89,6 +92,7 @@ module MailSlurpClient
89
92
  :'id' => :'id',
90
93
  :'user_id' => :'userId',
91
94
  :'inbox_id' => :'inboxId',
95
+ :'domain_id' => :'domainId',
92
96
  :'to' => :'to',
93
97
  :'from' => :'from',
94
98
  :'sender' => :'sender',
@@ -119,6 +123,7 @@ module MailSlurpClient
119
123
  :'id' => :'String',
120
124
  :'user_id' => :'String',
121
125
  :'inbox_id' => :'String',
126
+ :'domain_id' => :'String',
122
127
  :'to' => :'Array<String>',
123
128
  :'from' => :'String',
124
129
  :'sender' => :'Sender',
@@ -191,6 +196,10 @@ module MailSlurpClient
191
196
  self.inbox_id = attributes[:'inbox_id']
192
197
  end
193
198
 
199
+ if attributes.key?(:'domain_id')
200
+ self.domain_id = attributes[:'domain_id']
201
+ end
202
+
194
203
  if attributes.key?(:'to')
195
204
  if (value = attributes[:'to']).is_a?(Array)
196
205
  self.to = value
@@ -347,6 +356,7 @@ module MailSlurpClient
347
356
  id == o.id &&
348
357
  user_id == o.user_id &&
349
358
  inbox_id == o.inbox_id &&
359
+ domain_id == o.domain_id &&
350
360
  to == o.to &&
351
361
  from == o.from &&
352
362
  sender == o.sender &&
@@ -379,7 +389,7 @@ module MailSlurpClient
379
389
  # Calculates hash code according to all attributes.
380
390
  # @return [Integer] Hash code
381
391
  def hash
382
- [id, user_id, inbox_id, to, from, sender, recipients, reply_to, cc, bcc, headers, attachments, subject, body, body_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, html].hash
392
+ [id, user_id, inbox_id, domain_id, to, from, sender, recipients, reply_to, cc, bcc, headers, attachments, subject, body, body_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, html].hash
383
393
  end
384
394
 
385
395
  # Builds the object from hash