mailslurp_client 15.3.1 → 15.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/inbox_controller_api.rb +63 -0
  3. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  4. data/lib/mailslurp_client/models/attachment_projection.rb +28 -28
  5. data/lib/mailslurp_client/models/contact_projection.rb +13 -13
  6. data/lib/mailslurp_client/models/email_projection.rb +19 -19
  7. data/lib/mailslurp_client/models/inbox_by_email_address_result.rb +220 -0
  8. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  9. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  10. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  11. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  12. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  13. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  14. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  15. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  16. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  17. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  18. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  19. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  20. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  21. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  22. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  23. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  24. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  25. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  26. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  27. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  28. data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
  29. data/lib/mailslurp_client/models/thread_projection.rb +24 -24
  30. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  31. data/lib/mailslurp_client/version.rb +1 -1
  32. data/lib/mailslurp_client.rb +1 -0
  33. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21e72a3ee33fa565422f090096636def02be09e38afc968e24c4cea688c2874a
4
- data.tar.gz: 4d2abd4c4566c706f8e27939667ed733179a19209d9f69d315f895939b0801c3
3
+ metadata.gz: bf4a01971704062a8c0fc5c66e177cc1ff525f13010caa9676b35650e7a51763
4
+ data.tar.gz: 1d8c3eccf5f2950001ea6f4b2f35520703b8f630b2f3724428c03ea91ecf68c4
5
5
  SHA512:
6
- metadata.gz: cecb496f895e56bcafa4e102d2739fba48a07e45f4521ad799f8d87139ff9c318a56f7208225c1adedd354c4d935b19fd3c2dbb22f68244acc44a4d8bea5533a
7
- data.tar.gz: aaf21c47057b9448d2a1b26f844c9cdf9e3bba31de83fe54fb030893f32471bc98f599bf50bcbbf31464002c20352a7dc7532aa564f7e6f8b5cd7c789a5f700d
6
+ metadata.gz: df6322da1dcde97c72555421e1279aafaa70d374c3afbc3a8653debaae60f4c9b2e99c020d543acb355bf47a871dd917cae33b22db983bd2def73f6ebee32546
7
+ data.tar.gz: f13859837c4d6702a62e26f05123c64f19679a12a93a4caba4fd6d1180fe2021a7c6587145ca5282b2098df35ed041a976b62d953770a7d1bc69caafdeb95ab9
@@ -783,6 +783,69 @@ module MailSlurpClient
783
783
  return data, status_code, headers
784
784
  end
785
785
 
786
+ # Search for an inbox with the provided email address
787
+ # Get a inbox result by email address
788
+ # @param email_address [String]
789
+ # @param [Hash] opts the optional parameters
790
+ # @return [InboxByEmailAddressResult]
791
+ def get_inbox_by_email_address(email_address, opts = {})
792
+ data, _status_code, _headers = get_inbox_by_email_address_with_http_info(email_address, opts)
793
+ data
794
+ end
795
+
796
+ # Search for an inbox with the provided email address
797
+ # Get a inbox result by email address
798
+ # @param email_address [String]
799
+ # @param [Hash] opts the optional parameters
800
+ # @return [Array<(InboxByEmailAddressResult, Integer, Hash)>] InboxByEmailAddressResult data, response status code and response headers
801
+ def get_inbox_by_email_address_with_http_info(email_address, opts = {})
802
+ if @api_client.config.debugging
803
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.get_inbox_by_email_address ...'
804
+ end
805
+ # verify the required parameter 'email_address' is set
806
+ if @api_client.config.client_side_validation && email_address.nil?
807
+ fail ArgumentError, "Missing the required parameter 'email_address' when calling InboxControllerApi.get_inbox_by_email_address"
808
+ end
809
+ # resource path
810
+ local_var_path = '/inboxes/byEmailAddress'
811
+
812
+ # query parameters
813
+ query_params = opts[:query_params] || {}
814
+ query_params[:'emailAddress'] = email_address
815
+
816
+ # header parameters
817
+ header_params = opts[:header_params] || {}
818
+ # HTTP header 'Accept' (if needed)
819
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
820
+
821
+ # form parameters
822
+ form_params = opts[:form_params] || {}
823
+
824
+ # http body (model)
825
+ post_body = opts[:body]
826
+
827
+ # return_type
828
+ return_type = opts[:return_type] || 'InboxByEmailAddressResult'
829
+
830
+ # auth_names
831
+ auth_names = opts[:auth_names] || ['API_KEY']
832
+
833
+ new_options = opts.merge(
834
+ :header_params => header_params,
835
+ :query_params => query_params,
836
+ :form_params => form_params,
837
+ :body => post_body,
838
+ :auth_names => auth_names,
839
+ :return_type => return_type
840
+ )
841
+
842
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
843
+ if @api_client.config.debugging
844
+ @api_client.config.logger.debug "API called: InboxControllerApi#get_inbox_by_email_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
845
+ end
846
+ return data, status_code, headers
847
+ end
848
+
786
849
  # Get total inbox count
787
850
  # @param [Hash] opts the optional parameters
788
851
  # @return [CountDto]
@@ -19,12 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
+ attr_accessor :inbox_id
23
+
22
24
  attr_accessor :user_id
23
25
 
24
26
  attr_accessor :email_address
25
27
 
26
- attr_accessor :inbox_id
27
-
28
28
  attr_accessor :created_at
29
29
 
30
30
  attr_accessor :use_threads
@@ -36,9 +36,9 @@ module MailSlurpClient
36
36
  {
37
37
  :'name' => :'name',
38
38
  :'id' => :'id',
39
+ :'inbox_id' => :'inboxId',
39
40
  :'user_id' => :'userId',
40
41
  :'email_address' => :'emailAddress',
41
- :'inbox_id' => :'inboxId',
42
42
  :'created_at' => :'createdAt',
43
43
  :'use_threads' => :'useThreads',
44
44
  :'updated_at' => :'updatedAt'
@@ -50,9 +50,9 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'id' => :'String',
53
+ :'inbox_id' => :'String',
53
54
  :'user_id' => :'String',
54
55
  :'email_address' => :'String',
55
- :'inbox_id' => :'String',
56
56
  :'created_at' => :'DateTime',
57
57
  :'use_threads' => :'Boolean',
58
58
  :'updated_at' => :'DateTime'
@@ -88,6 +88,10 @@ module MailSlurpClient
88
88
  self.id = attributes[:'id']
89
89
  end
90
90
 
91
+ if attributes.key?(:'inbox_id')
92
+ self.inbox_id = attributes[:'inbox_id']
93
+ end
94
+
91
95
  if attributes.key?(:'user_id')
92
96
  self.user_id = attributes[:'user_id']
93
97
  end
@@ -96,10 +100,6 @@ module MailSlurpClient
96
100
  self.email_address = attributes[:'email_address']
97
101
  end
98
102
 
99
- if attributes.key?(:'inbox_id')
100
- self.inbox_id = attributes[:'inbox_id']
101
- end
102
-
103
103
  if attributes.key?(:'created_at')
104
104
  self.created_at = attributes[:'created_at']
105
105
  end
@@ -121,6 +121,10 @@ module MailSlurpClient
121
121
  invalid_properties.push('invalid value for "id", id cannot be nil.')
122
122
  end
123
123
 
124
+ if @inbox_id.nil?
125
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
126
+ end
127
+
124
128
  if @user_id.nil?
125
129
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
126
130
  end
@@ -129,10 +133,6 @@ module MailSlurpClient
129
133
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
130
134
  end
131
135
 
132
- if @inbox_id.nil?
133
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
134
- end
135
-
136
136
  if @created_at.nil?
137
137
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
138
  end
@@ -148,9 +148,9 @@ module MailSlurpClient
148
148
  # @return true if the model is valid
149
149
  def valid?
150
150
  return false if @id.nil?
151
+ return false if @inbox_id.nil?
151
152
  return false if @user_id.nil?
152
153
  return false if @email_address.nil?
153
- return false if @inbox_id.nil?
154
154
  return false if @created_at.nil?
155
155
  return false if @updated_at.nil?
156
156
  true
@@ -163,9 +163,9 @@ module MailSlurpClient
163
163
  self.class == o.class &&
164
164
  name == o.name &&
165
165
  id == o.id &&
166
+ inbox_id == o.inbox_id &&
166
167
  user_id == o.user_id &&
167
168
  email_address == o.email_address &&
168
- inbox_id == o.inbox_id &&
169
169
  created_at == o.created_at &&
170
170
  use_threads == o.use_threads &&
171
171
  updated_at == o.updated_at
@@ -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
- [name, id, user_id, email_address, inbox_id, created_at, use_threads, updated_at].hash
183
+ [name, id, inbox_id, user_id, email_address, created_at, use_threads, updated_at].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -19,28 +19,28 @@ module MailSlurpClient
19
19
  # Content length of attachment in bytes
20
20
  attr_accessor :content_length
21
21
 
22
- # Content type of attachment.
23
- attr_accessor :content_type
24
-
25
22
  attr_accessor :user_id
26
23
 
27
- attr_accessor :created_at
28
-
29
24
  # Attachment ID
30
25
  attr_accessor :attachment_id
31
26
 
27
+ attr_accessor :created_at
28
+
32
29
  attr_accessor :updated_at
33
30
 
31
+ # Content type of attachment.
32
+ attr_accessor :content_type
33
+
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
37
  :'name' => :'name',
38
38
  :'content_length' => :'contentLength',
39
- :'content_type' => :'contentType',
40
39
  :'user_id' => :'userId',
41
- :'created_at' => :'createdAt',
42
40
  :'attachment_id' => :'attachmentId',
43
- :'updated_at' => :'updatedAt'
41
+ :'created_at' => :'createdAt',
42
+ :'updated_at' => :'updatedAt',
43
+ :'content_type' => :'contentType'
44
44
  }
45
45
  end
46
46
 
@@ -49,11 +49,11 @@ module MailSlurpClient
49
49
  {
50
50
  :'name' => :'String',
51
51
  :'content_length' => :'Integer',
52
- :'content_type' => :'String',
53
52
  :'user_id' => :'String',
54
- :'created_at' => :'DateTime',
55
53
  :'attachment_id' => :'String',
56
- :'updated_at' => :'DateTime'
54
+ :'created_at' => :'DateTime',
55
+ :'updated_at' => :'DateTime',
56
+ :'content_type' => :'String'
57
57
  }
58
58
  end
59
59
 
@@ -86,25 +86,25 @@ module MailSlurpClient
86
86
  self.content_length = attributes[:'content_length']
87
87
  end
88
88
 
89
- if attributes.key?(:'content_type')
90
- self.content_type = attributes[:'content_type']
91
- end
92
-
93
89
  if attributes.key?(:'user_id')
94
90
  self.user_id = attributes[:'user_id']
95
91
  end
96
92
 
97
- if attributes.key?(:'created_at')
98
- self.created_at = attributes[:'created_at']
99
- end
100
-
101
93
  if attributes.key?(:'attachment_id')
102
94
  self.attachment_id = attributes[:'attachment_id']
103
95
  end
104
96
 
97
+ if attributes.key?(:'created_at')
98
+ self.created_at = attributes[:'created_at']
99
+ end
100
+
105
101
  if attributes.key?(:'updated_at')
106
102
  self.updated_at = attributes[:'updated_at']
107
103
  end
104
+
105
+ if attributes.key?(:'content_type')
106
+ self.content_type = attributes[:'content_type']
107
+ end
108
108
  end
109
109
 
110
110
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -115,14 +115,14 @@ module MailSlurpClient
115
115
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
116
116
  end
117
117
 
118
- if @created_at.nil?
119
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
120
- end
121
-
122
118
  if @attachment_id.nil?
123
119
  invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
124
120
  end
125
121
 
122
+ if @created_at.nil?
123
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
124
+ end
125
+
126
126
  if @updated_at.nil?
127
127
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
128
128
  end
@@ -134,8 +134,8 @@ module MailSlurpClient
134
134
  # @return true if the model is valid
135
135
  def valid?
136
136
  return false if @user_id.nil?
137
- return false if @created_at.nil?
138
137
  return false if @attachment_id.nil?
138
+ return false if @created_at.nil?
139
139
  return false if @updated_at.nil?
140
140
  true
141
141
  end
@@ -147,11 +147,11 @@ module MailSlurpClient
147
147
  self.class == o.class &&
148
148
  name == o.name &&
149
149
  content_length == o.content_length &&
150
- content_type == o.content_type &&
151
150
  user_id == o.user_id &&
152
- created_at == o.created_at &&
153
151
  attachment_id == o.attachment_id &&
154
- updated_at == o.updated_at
152
+ created_at == o.created_at &&
153
+ updated_at == o.updated_at &&
154
+ content_type == o.content_type
155
155
  end
156
156
 
157
157
  # @see the `==` method
@@ -163,7 +163,7 @@ module MailSlurpClient
163
163
  # Calculates hash code according to all attributes.
164
164
  # @return [Integer] Hash code
165
165
  def hash
166
- [name, content_length, content_type, user_id, created_at, attachment_id, updated_at].hash
166
+ [name, content_length, user_id, attachment_id, created_at, updated_at, content_type].hash
167
167
  end
168
168
 
169
169
  # Builds the object from hash
@@ -18,8 +18,6 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :group_id
20
20
 
21
- attr_accessor :created_at
22
-
23
21
  attr_accessor :first_name
24
22
 
25
23
  attr_accessor :last_name
@@ -30,17 +28,19 @@ module MailSlurpClient
30
28
 
31
29
  attr_accessor :opt_out
32
30
 
31
+ attr_accessor :created_at
32
+
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
36
  :'id' => :'id',
37
37
  :'group_id' => :'groupId',
38
- :'created_at' => :'createdAt',
39
38
  :'first_name' => :'firstName',
40
39
  :'last_name' => :'lastName',
41
40
  :'company' => :'company',
42
41
  :'email_addresses' => :'emailAddresses',
43
- :'opt_out' => :'optOut'
42
+ :'opt_out' => :'optOut',
43
+ :'created_at' => :'createdAt'
44
44
  }
45
45
  end
46
46
 
@@ -49,12 +49,12 @@ module MailSlurpClient
49
49
  {
50
50
  :'id' => :'String',
51
51
  :'group_id' => :'String',
52
- :'created_at' => :'DateTime',
53
52
  :'first_name' => :'String',
54
53
  :'last_name' => :'String',
55
54
  :'company' => :'String',
56
55
  :'email_addresses' => :'Array<String>',
57
- :'opt_out' => :'Boolean'
56
+ :'opt_out' => :'Boolean',
57
+ :'created_at' => :'DateTime'
58
58
  }
59
59
  end
60
60
 
@@ -87,10 +87,6 @@ module MailSlurpClient
87
87
  self.group_id = attributes[:'group_id']
88
88
  end
89
89
 
90
- if attributes.key?(:'created_at')
91
- self.created_at = attributes[:'created_at']
92
- end
93
-
94
90
  if attributes.key?(:'first_name')
95
91
  self.first_name = attributes[:'first_name']
96
92
  end
@@ -112,6 +108,10 @@ module MailSlurpClient
112
108
  if attributes.key?(:'opt_out')
113
109
  self.opt_out = attributes[:'opt_out']
114
110
  end
111
+
112
+ if attributes.key?(:'created_at')
113
+ self.created_at = attributes[:'created_at']
114
+ end
115
115
  end
116
116
 
117
117
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -144,12 +144,12 @@ module MailSlurpClient
144
144
  self.class == o.class &&
145
145
  id == o.id &&
146
146
  group_id == o.group_id &&
147
- created_at == o.created_at &&
148
147
  first_name == o.first_name &&
149
148
  last_name == o.last_name &&
150
149
  company == o.company &&
151
150
  email_addresses == o.email_addresses &&
152
- opt_out == o.opt_out
151
+ opt_out == o.opt_out &&
152
+ created_at == o.created_at
153
153
  end
154
154
 
155
155
  # @see the `==` method
@@ -161,7 +161,7 @@ module MailSlurpClient
161
161
  # Calculates hash code according to all attributes.
162
162
  # @return [Integer] Hash code
163
163
  def hash
164
- [id, group_id, created_at, first_name, last_name, company, email_addresses, opt_out].hash
164
+ [id, group_id, first_name, last_name, company, email_addresses, opt_out, created_at].hash
165
165
  end
166
166
 
167
167
  # Builds the object from hash
@@ -19,20 +19,20 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :from
21
21
 
22
- attr_accessor :subject
23
-
24
22
  attr_accessor :inbox_id
25
23
 
24
+ attr_accessor :subject
25
+
26
26
  attr_accessor :to
27
27
 
28
28
  attr_accessor :attachments
29
29
 
30
- attr_accessor :created_at
31
-
32
30
  attr_accessor :bcc
33
31
 
34
32
  attr_accessor :cc
35
33
 
34
+ attr_accessor :created_at
35
+
36
36
  attr_accessor :team_access
37
37
 
38
38
  attr_accessor :read
@@ -46,13 +46,13 @@ module MailSlurpClient
46
46
  {
47
47
  :'id' => :'id',
48
48
  :'from' => :'from',
49
- :'subject' => :'subject',
50
49
  :'inbox_id' => :'inboxId',
50
+ :'subject' => :'subject',
51
51
  :'to' => :'to',
52
52
  :'attachments' => :'attachments',
53
- :'created_at' => :'createdAt',
54
53
  :'bcc' => :'bcc',
55
54
  :'cc' => :'cc',
55
+ :'created_at' => :'createdAt',
56
56
  :'team_access' => :'teamAccess',
57
57
  :'read' => :'read',
58
58
  :'body_md5_hash' => :'bodyMD5Hash',
@@ -65,13 +65,13 @@ module MailSlurpClient
65
65
  {
66
66
  :'id' => :'String',
67
67
  :'from' => :'String',
68
- :'subject' => :'String',
69
68
  :'inbox_id' => :'String',
69
+ :'subject' => :'String',
70
70
  :'to' => :'Array<String>',
71
71
  :'attachments' => :'Array<String>',
72
- :'created_at' => :'DateTime',
73
72
  :'bcc' => :'Array<String>',
74
73
  :'cc' => :'Array<String>',
74
+ :'created_at' => :'DateTime',
75
75
  :'team_access' => :'Boolean',
76
76
  :'read' => :'Boolean',
77
77
  :'body_md5_hash' => :'String',
@@ -108,14 +108,14 @@ module MailSlurpClient
108
108
  self.from = attributes[:'from']
109
109
  end
110
110
 
111
- if attributes.key?(:'subject')
112
- self.subject = attributes[:'subject']
113
- end
114
-
115
111
  if attributes.key?(:'inbox_id')
116
112
  self.inbox_id = attributes[:'inbox_id']
117
113
  end
118
114
 
115
+ if attributes.key?(:'subject')
116
+ self.subject = attributes[:'subject']
117
+ end
118
+
119
119
  if attributes.key?(:'to')
120
120
  if (value = attributes[:'to']).is_a?(Array)
121
121
  self.to = value
@@ -128,10 +128,6 @@ module MailSlurpClient
128
128
  end
129
129
  end
130
130
 
131
- if attributes.key?(:'created_at')
132
- self.created_at = attributes[:'created_at']
133
- end
134
-
135
131
  if attributes.key?(:'bcc')
136
132
  if (value = attributes[:'bcc']).is_a?(Array)
137
133
  self.bcc = value
@@ -144,6 +140,10 @@ module MailSlurpClient
144
140
  end
145
141
  end
146
142
 
143
+ if attributes.key?(:'created_at')
144
+ self.created_at = attributes[:'created_at']
145
+ end
146
+
147
147
  if attributes.key?(:'team_access')
148
148
  self.team_access = attributes[:'team_access']
149
149
  end
@@ -201,13 +201,13 @@ module MailSlurpClient
201
201
  self.class == o.class &&
202
202
  id == o.id &&
203
203
  from == o.from &&
204
- subject == o.subject &&
205
204
  inbox_id == o.inbox_id &&
205
+ subject == o.subject &&
206
206
  to == o.to &&
207
207
  attachments == o.attachments &&
208
- created_at == o.created_at &&
209
208
  bcc == o.bcc &&
210
209
  cc == o.cc &&
210
+ created_at == o.created_at &&
211
211
  team_access == o.team_access &&
212
212
  read == o.read &&
213
213
  body_md5_hash == o.body_md5_hash &&
@@ -223,7 +223,7 @@ module MailSlurpClient
223
223
  # Calculates hash code according to all attributes.
224
224
  # @return [Integer] Hash code
225
225
  def hash
226
- [id, from, subject, inbox_id, to, attachments, created_at, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
226
+ [id, from, inbox_id, subject, to, attachments, bcc, cc, created_at, team_access, read, body_md5_hash, body_excerpt].hash
227
227
  end
228
228
 
229
229
  # Builds the object from hash