mailslurp_client 15.21.0 → 15.21.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d8a0c5306f41dcd1ab333e4dc2ee75065e8c6e089f1df18c1ed3e3fa544b650
4
- data.tar.gz: 99477adcfc50ec1078d05bf6fba111674433cd9a94001cd53c81ae360486d5d5
3
+ metadata.gz: b949a60311c2b1cf276d6ebf75ebd4de078f1c8d9965555c59bfae7f566d5a69
4
+ data.tar.gz: b70e2f6a7243e735deadb15aee4f1e4de2c7a386250ea7adf97ceb0296ef59ed
5
5
  SHA512:
6
- metadata.gz: 7db5fa9fb1238be131d2b0d3452080187d4c6cec467117ccb7088c3ab9364ef3e938add14c37772c254996d89422a2d346333e081e96f79eede7edc6a3b6a23a
7
- data.tar.gz: f2dfc5d866bd13bddbd05a9c3f0ebb6badf5f71d9d756761562b13f92ebfc9c1148da19b9699cd31297459e5f7c86b09df17f23b427dd0dcd039c3035d1e5962
6
+ metadata.gz: 291a348e82692d6b7afadcb9a9decd14482a4759086e848b7e0f39d8c69bc166da65ec3dc795241b2546eb38e4c7d68fc4decd59c93ce9942a8a0a45c1bb6d2f
7
+ data.tar.gz: e7be1ad8b4b3df4f02dbeb78b40d176730af79c46cb1ed396176f09ba5c3f28a23e6604736c82e6be3c4f1ac1b667d8fda9ef33b6c2c4cfe7f6fe33107163c3c
@@ -709,6 +709,118 @@ module MailSlurpClient
709
709
  return data, status_code, headers
710
710
  end
711
711
 
712
+ # Get a phone number by name
713
+ # Get a phone number by name
714
+ # @param [Hash] opts the optional parameters
715
+ # @return [PhoneNumberDto]
716
+ def get_phone_number_by_name(opts = {})
717
+ data, _status_code, _headers = get_phone_number_by_name_with_http_info(opts)
718
+ data
719
+ end
720
+
721
+ # Get a phone number by name
722
+ # Get a phone number by name
723
+ # @param [Hash] opts the optional parameters
724
+ # @return [Array<(PhoneNumberDto, Integer, Hash)>] PhoneNumberDto data, response status code and response headers
725
+ def get_phone_number_by_name_with_http_info(opts = {})
726
+ if @api_client.config.debugging
727
+ @api_client.config.logger.debug 'Calling API: PhoneControllerApi.get_phone_number_by_name ...'
728
+ end
729
+ # resource path
730
+ local_var_path = '/phone/numbers/by-name'
731
+
732
+ # query parameters
733
+ query_params = opts[:query_params] || {}
734
+
735
+ # header parameters
736
+ header_params = opts[:header_params] || {}
737
+ # HTTP header 'Accept' (if needed)
738
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
739
+
740
+ # form parameters
741
+ form_params = opts[:form_params] || {}
742
+
743
+ # http body (model)
744
+ post_body = opts[:body]
745
+
746
+ # return_type
747
+ return_type = opts[:return_type] || 'PhoneNumberDto'
748
+
749
+ # auth_names
750
+ auth_names = opts[:auth_names] || ['API_KEY']
751
+
752
+ new_options = opts.merge(
753
+ :header_params => header_params,
754
+ :query_params => query_params,
755
+ :form_params => form_params,
756
+ :body => post_body,
757
+ :auth_names => auth_names,
758
+ :return_type => return_type
759
+ )
760
+
761
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
762
+ if @api_client.config.debugging
763
+ @api_client.config.logger.debug "API called: PhoneControllerApi#get_phone_number_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
764
+ end
765
+ return data, status_code, headers
766
+ end
767
+
768
+ # Get a phone number by phone number
769
+ # Get a phone number by phone number
770
+ # @param [Hash] opts the optional parameters
771
+ # @return [PhoneNumberDto]
772
+ def get_phone_number_by_phone_number(opts = {})
773
+ data, _status_code, _headers = get_phone_number_by_phone_number_with_http_info(opts)
774
+ data
775
+ end
776
+
777
+ # Get a phone number by phone number
778
+ # Get a phone number by phone number
779
+ # @param [Hash] opts the optional parameters
780
+ # @return [Array<(PhoneNumberDto, Integer, Hash)>] PhoneNumberDto data, response status code and response headers
781
+ def get_phone_number_by_phone_number_with_http_info(opts = {})
782
+ if @api_client.config.debugging
783
+ @api_client.config.logger.debug 'Calling API: PhoneControllerApi.get_phone_number_by_phone_number ...'
784
+ end
785
+ # resource path
786
+ local_var_path = '/phone/numbers/by-phone-number'
787
+
788
+ # query parameters
789
+ query_params = opts[:query_params] || {}
790
+
791
+ # header parameters
792
+ header_params = opts[:header_params] || {}
793
+ # HTTP header 'Accept' (if needed)
794
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
795
+
796
+ # form parameters
797
+ form_params = opts[:form_params] || {}
798
+
799
+ # http body (model)
800
+ post_body = opts[:body]
801
+
802
+ # return_type
803
+ return_type = opts[:return_type] || 'PhoneNumberDto'
804
+
805
+ # auth_names
806
+ auth_names = opts[:auth_names] || ['API_KEY']
807
+
808
+ new_options = opts.merge(
809
+ :header_params => header_params,
810
+ :query_params => query_params,
811
+ :form_params => form_params,
812
+ :body => post_body,
813
+ :auth_names => auth_names,
814
+ :return_type => return_type
815
+ )
816
+
817
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
818
+ if @api_client.config.debugging
819
+ @api_client.config.logger.debug "API called: PhoneControllerApi#get_phone_number_by_phone_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
820
+ end
821
+ return data, status_code, headers
822
+ end
823
+
712
824
  # Get phone numbers
713
825
  # List phone numbers for account
714
826
  # @param [Hash] opts the optional parameters
@@ -37,12 +37,12 @@ module MailSlurpClient
37
37
 
38
38
  attr_accessor :favourite
39
39
 
40
- attr_accessor :in_reply_to
41
-
42
40
  attr_accessor :plus_address
43
41
 
44
42
  attr_accessor :size_bytes
45
43
 
44
+ attr_accessor :in_reply_to
45
+
46
46
  attr_accessor :read
47
47
 
48
48
  attr_accessor :body_excerpt
@@ -77,9 +77,9 @@ module MailSlurpClient
77
77
  :'message_id' => :'messageId',
78
78
  :'domain_id' => :'domainId',
79
79
  :'favourite' => :'favourite',
80
- :'in_reply_to' => :'inReplyTo',
81
80
  :'plus_address' => :'plusAddress',
82
81
  :'size_bytes' => :'sizeBytes',
82
+ :'in_reply_to' => :'inReplyTo',
83
83
  :'read' => :'read',
84
84
  :'body_excerpt' => :'bodyExcerpt',
85
85
  :'text_excerpt' => :'textExcerpt',
@@ -107,9 +107,9 @@ module MailSlurpClient
107
107
  :'message_id' => :'String',
108
108
  :'domain_id' => :'String',
109
109
  :'favourite' => :'Boolean',
110
- :'in_reply_to' => :'String',
111
110
  :'plus_address' => :'String',
112
111
  :'size_bytes' => :'Integer',
112
+ :'in_reply_to' => :'String',
113
113
  :'read' => :'Boolean',
114
114
  :'body_excerpt' => :'String',
115
115
  :'text_excerpt' => :'String',
@@ -134,9 +134,9 @@ module MailSlurpClient
134
134
  :'message_id',
135
135
  :'domain_id',
136
136
  :'favourite',
137
- :'in_reply_to',
138
137
  :'plus_address',
139
138
  :'size_bytes',
139
+ :'in_reply_to',
140
140
  :'body_excerpt',
141
141
  :'text_excerpt',
142
142
  :'body_part_content_types',
@@ -214,10 +214,6 @@ module MailSlurpClient
214
214
  self.favourite = attributes[:'favourite']
215
215
  end
216
216
 
217
- if attributes.key?(:'in_reply_to')
218
- self.in_reply_to = attributes[:'in_reply_to']
219
- end
220
-
221
217
  if attributes.key?(:'plus_address')
222
218
  self.plus_address = attributes[:'plus_address']
223
219
  end
@@ -226,6 +222,10 @@ module MailSlurpClient
226
222
  self.size_bytes = attributes[:'size_bytes']
227
223
  end
228
224
 
225
+ if attributes.key?(:'in_reply_to')
226
+ self.in_reply_to = attributes[:'in_reply_to']
227
+ end
228
+
229
229
  if attributes.key?(:'read')
230
230
  self.read = attributes[:'read']
231
231
  end
@@ -328,9 +328,9 @@ module MailSlurpClient
328
328
  message_id == o.message_id &&
329
329
  domain_id == o.domain_id &&
330
330
  favourite == o.favourite &&
331
- in_reply_to == o.in_reply_to &&
332
331
  plus_address == o.plus_address &&
333
332
  size_bytes == o.size_bytes &&
333
+ in_reply_to == o.in_reply_to &&
334
334
  read == o.read &&
335
335
  body_excerpt == o.body_excerpt &&
336
336
  text_excerpt == o.text_excerpt &&
@@ -352,7 +352,7 @@ module MailSlurpClient
352
352
  # Calculates hash code according to all attributes.
353
353
  # @return [Integer] Hash code
354
354
  def hash
355
- [sender, recipients, attachments, inbox_id, created_at, to, cc, bcc, message_id, domain_id, favourite, in_reply_to, plus_address, size_bytes, read, body_excerpt, text_excerpt, body_part_content_types, body_md5_hash, team_access, subject, id, thread_id, from].hash
355
+ [sender, recipients, attachments, inbox_id, created_at, to, cc, bcc, message_id, domain_id, favourite, plus_address, size_bytes, in_reply_to, read, body_excerpt, text_excerpt, body_part_content_types, body_md5_hash, team_access, subject, id, thread_id, from].hash
356
356
  end
357
357
 
358
358
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '15.21.0'
14
+ VERSION = '15.21.1'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailslurp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.21.0
4
+ version: 15.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-09 00:00:00.000000000 Z
11
+ date: 2025-05-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Create emails addresses in Ruby then send and receive real emails and
14
14
  attachments. See https://www.mailslurp.com/ruby/ for full Ruby documentation. Get