pingram 1.0.14 → 1.0.16

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 (30) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/pingram/api/addresses_api.rb +67 -6
  4. data/lib/pingram/api/default_api.rb +2 -2
  5. data/lib/pingram/api/domains_api.rb +69 -8
  6. data/lib/pingram/api/email_api.rb +2 -2
  7. data/lib/pingram/api/logs_api.rb +10 -10
  8. data/lib/pingram/api/numbers_api.rb +6 -6
  9. data/lib/pingram/api/profile_api.rb +248 -0
  10. data/lib/pingram/api/sms_api.rb +2 -2
  11. data/lib/pingram/api_client.rb +1 -1
  12. data/lib/pingram/models/billing_post_response_body.rb +74 -203
  13. data/lib/pingram/models/domain_dns_check.rb +244 -0
  14. data/lib/pingram/models/domain_dns_check_records_inner.rb +357 -0
  15. data/lib/pingram/models/get_members_response_inner.rb +37 -4
  16. data/lib/pingram/models/mfa_setup_request.rb +189 -0
  17. data/lib/pingram/models/mfa_setup_response.rb +216 -0
  18. data/lib/pingram/models/mfa_status_response.rb +235 -0
  19. data/lib/pingram/models/mfa_verify_request.rb +241 -0
  20. data/lib/pingram/version.rb +1 -1
  21. data/lib/pingram.rb +6 -0
  22. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
  23. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
  24. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/gem_make.out +5 -5
  25. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/mkmf.log +3 -3
  26. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  27. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.4.0/gem_make.out +5 -5
  28. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
  29. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
  30. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b0da74b04be34652ce4772d960f635a00fd4de9282f579a2b4f2b5fff340e22
4
- data.tar.gz: a830cb772656fc43455340ef6f7bc447c3a4ad8ecb096ffd6ceded61aa2e8dce
3
+ metadata.gz: 5508d55a6a48f3ffdf596af86d422c9e83f8f42f841e3a78d7673d25323b660c
4
+ data.tar.gz: 9b5aa76add40c0202018c39b9040ca69dba5ca15df7ecbe19006515ce64423e9
5
5
  SHA512:
6
- metadata.gz: 91ee7f634122374ab81a9cea5187eef7ca4ee3b207f9fc1b5f1eb993cf16049bd39a8b429d932be7e99a5bc4ffac9247324987e8bb03702016981c9591aaf24d
7
- data.tar.gz: a0cbcb303e77a518f768df2fa83f4f96c81a423db53e5ac41bc0b1221911be75f3b0b31f04a6a48e28d4c32f40ed33e2609c693f9e230d7342fbc3f4d8e0a3e5
6
+ metadata.gz: e76b1b8fe23fd399556ae4593834b5bf68e8ff0b76f9a10ff43dd45f5003234324f98f1cd8e57faea8f033a84a7a2441b9356ff2e4ab6d9063917db7bcce50aa
7
+ data.tar.gz: ddc1499030dd37f0a934c841180c8065bbc19996333b897323190f25bfe1797df972810b557647d8e1e4eef18f3f26726450528030a2eb2bef6001c05c171605
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pingram (1.0.14)
4
+ pingram (1.0.16)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -19,7 +19,7 @@ module Pingram
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Create a new email address for inbound/outbound purposes. Each account can have one builtin address and many custom addresses. Custom addresses must belong to configured domains.
22
+ # Create a new email inbox. Omit `domain` for a built-in `@mail.pingram.io` address; set `domain` and `displayName` for a custom address on a verified domain.
23
23
  # @param create_address_request [CreateAddressRequest]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [AddressResponse]
@@ -28,7 +28,7 @@ module Pingram
28
28
  data
29
29
  end
30
30
 
31
- # Create a new email address for inbound/outbound purposes. Each account can have one builtin address and many custom addresses. Custom addresses must belong to configured domains.
31
+ # Create a new email inbox. Omit `domain` for a built-in `@mail.pingram.io` address; set `domain` and `displayName` for a custom address on a verified domain.
32
32
  # @param create_address_request [CreateAddressRequest]
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(AddressResponse, Integer, Hash)>] AddressResponse data, response status code and response headers
@@ -85,7 +85,68 @@ module Pingram
85
85
  return data, status_code, headers
86
86
  end
87
87
 
88
- # Lists all email addresses the account has configured to send and receive emails. Custom addresses must belong to configured domains.
88
+ # Delete a custom inbound address. Builtin addresses cannot be deleted.
89
+ # @param full_address [String] Full address to delete (e.g. hello@example.com)
90
+ # @param [Hash] opts the optional parameters
91
+ # @return [SuccessResponse]
92
+ def addresses_delete_address(full_address, opts = {})
93
+ data, _status_code, _headers = addresses_delete_address_with_http_info(full_address, opts)
94
+ data
95
+ end
96
+
97
+ # Delete a custom inbound address. Builtin addresses cannot be deleted.
98
+ # @param full_address [String] Full address to delete (e.g. hello@example.com)
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
101
+ def addresses_delete_address_with_http_info(full_address, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: AddressesApi.addresses_delete_address ...'
104
+ end
105
+ # verify the required parameter 'full_address' is set
106
+ if @api_client.config.client_side_validation && full_address.nil?
107
+ fail ArgumentError, "Missing the required parameter 'full_address' when calling AddressesApi.addresses_delete_address"
108
+ end
109
+ # resource path
110
+ local_var_path = '/addresses/{fullAddress}'.sub('{' + 'fullAddress' + '}', CGI.escape(full_address.to_s))
111
+
112
+ # query parameters
113
+ query_params = opts[:query_params] || {}
114
+
115
+ # header parameters
116
+ header_params = opts[:header_params] || {}
117
+ # HTTP header 'Accept' (if needed)
118
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
119
+
120
+ # form parameters
121
+ form_params = opts[:form_params] || {}
122
+
123
+ # http body (model)
124
+ post_body = opts[:debug_body]
125
+
126
+ # return_type
127
+ return_type = opts[:debug_return_type] || 'SuccessResponse'
128
+
129
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
130
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
131
+
132
+ new_options = opts.merge(
133
+ :operation => :"AddressesApi.addresses_delete_address",
134
+ :header_params => header_params,
135
+ :query_params => query_params,
136
+ :form_params => form_params,
137
+ :body => post_body,
138
+ :auth_names => auth_names,
139
+ :return_type => return_type
140
+ )
141
+
142
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
143
+ if @api_client.config.debugging
144
+ @api_client.config.logger.debug "API called: AddressesApi#addresses_delete_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
145
+ end
146
+ return data, status_code, headers
147
+ end
148
+
149
+ # List email inboxes (addresses) configured for receiving. Custom addresses must use a verified domain.
89
150
  # @param [Hash] opts the optional parameters
90
151
  # @return [AccountAddressesResponse]
91
152
  def addresses_list_addresses(opts = {})
@@ -93,7 +154,7 @@ module Pingram
93
154
  data
94
155
  end
95
156
 
96
- # Lists all email addresses the account has configured to send and receive emails. Custom addresses must belong to configured domains.
157
+ # List email inboxes (addresses) configured for receiving. Custom addresses must use a verified domain.
97
158
  # @param [Hash] opts the optional parameters
98
159
  # @return [Array<(AccountAddressesResponse, Integer, Hash)>] AccountAddressesResponse data, response status code and response headers
99
160
  def addresses_list_addresses_with_http_info(opts = {})
@@ -140,7 +201,7 @@ module Pingram
140
201
  return data, status_code, headers
141
202
  end
142
203
 
143
- # Update an existing address
204
+ # Update an inbox prefix or display name.
144
205
  # @param update_address_request [UpdateAddressRequest]
145
206
  # @param [Hash] opts the optional parameters
146
207
  # @return [AddressResponse]
@@ -149,7 +210,7 @@ module Pingram
149
210
  data
150
211
  end
151
212
 
152
- # Update an existing address
213
+ # Update an inbox prefix or display name.
153
214
  # @param update_address_request [UpdateAddressRequest]
154
215
  # @param [Hash] opts the optional parameters
155
216
  # @return [Array<(AddressResponse, Integer, Hash)>] AddressResponse data, response status code and response headers
@@ -19,7 +19,7 @@ module Pingram
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Send a notification
22
+ # Send a notification (email, SMS, etc.) to one user. Requires a notification `type` which categorizes this messages for future reporting, and channel-specific payloads such as `email` or `sms`. Recipient is specified with the `to` parameter. Returns a `trackingId` for error or delivery lookup through our Logs.
23
23
  # @param sender_post_body [SenderPostBody]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [SenderPostResponse]
@@ -28,7 +28,7 @@ module Pingram
28
28
  data
29
29
  end
30
30
 
31
- # Send a notification
31
+ # Send a notification (email, SMS, etc.) to one user. Requires a notification &#x60;type&#x60; which categorizes this messages for future reporting, and channel-specific payloads such as &#x60;email&#x60; or &#x60;sms&#x60;. Recipient is specified with the &#x60;to&#x60; parameter. Returns a &#x60;trackingId&#x60; for error or delivery lookup through our Logs.
32
32
  # @param sender_post_body [SenderPostBody]
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(SenderPostResponse, Integer, Hash)>] SenderPostResponse data, response status code and response headers
@@ -19,7 +19,7 @@ module Pingram
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Request to verify a new sender domain
22
+ # Add and start verification for a new sender domain. Pass the domain only (not a full email address).
23
23
  # @param post_senders_request_body [PostSendersRequestBody]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [Array<GetSendersResponseInner>]
@@ -28,7 +28,7 @@ module Pingram
28
28
  data
29
29
  end
30
30
 
31
- # Request to verify a new sender domain
31
+ # Add and start verification for a new sender domain. Pass the domain only (not a full email address).
32
32
  # @param post_senders_request_body [PostSendersRequestBody]
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(Array<GetSendersResponseInner>, Integer, Hash)>] Array<GetSendersResponseInner> data, response status code and response headers
@@ -85,8 +85,8 @@ module Pingram
85
85
  return data, status_code, headers
86
86
  end
87
87
 
88
- # Delete a sender domain or email address
89
- # @param sender [String] Sender domain or email address (URL encoded)
88
+ # Remove a sender domain from the account.
89
+ # @param sender [String] Sender domain (URL encoded)
90
90
  # @param [Hash] opts the optional parameters
91
91
  # @return [SuccessResponse]
92
92
  def domains_delete_domain(sender, opts = {})
@@ -94,8 +94,8 @@ module Pingram
94
94
  data
95
95
  end
96
96
 
97
- # Delete a sender domain or email address
98
- # @param sender [String] Sender domain or email address (URL encoded)
97
+ # Remove a sender domain from the account.
98
+ # @param sender [String] Sender domain (URL encoded)
99
99
  # @param [Hash] opts the optional parameters
100
100
  # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
101
101
  def domains_delete_domain_with_http_info(sender, opts = {})
@@ -146,7 +146,7 @@ module Pingram
146
146
  return data, status_code, headers
147
147
  end
148
148
 
149
- # Get all sender domains configured for the account
149
+ # List sender domains configured for the account (for outbound email).
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @return [Array<GetSendersResponseInner>]
152
152
  def domains_list_domains(opts = {})
@@ -154,7 +154,7 @@ module Pingram
154
154
  data
155
155
  end
156
156
 
157
- # Get all sender domains configured for the account
157
+ # List sender domains configured for the account (for outbound email).
158
158
  # @param [Hash] opts the optional parameters
159
159
  # @return [Array<(Array<GetSendersResponseInner>, Integer, Hash)>] Array<GetSendersResponseInner> data, response status code and response headers
160
160
  def domains_list_domains_with_http_info(opts = {})
@@ -200,5 +200,66 @@ module Pingram
200
200
  end
201
201
  return data, status_code, headers
202
202
  end
203
+
204
+ # Start SES domain verification (DNS readiness is checked client-side via checkDomainDns)
205
+ # @param sender [String] Sender domain (URL encoded)
206
+ # @param [Hash] opts the optional parameters
207
+ # @return [Array<GetSendersResponseInner>]
208
+ def domains_start_domain_verification(sender, opts = {})
209
+ data, _status_code, _headers = domains_start_domain_verification_with_http_info(sender, opts)
210
+ data
211
+ end
212
+
213
+ # Start SES domain verification (DNS readiness is checked client-side via checkDomainDns)
214
+ # @param sender [String] Sender domain (URL encoded)
215
+ # @param [Hash] opts the optional parameters
216
+ # @return [Array<(Array<GetSendersResponseInner>, Integer, Hash)>] Array<GetSendersResponseInner> data, response status code and response headers
217
+ def domains_start_domain_verification_with_http_info(sender, opts = {})
218
+ if @api_client.config.debugging
219
+ @api_client.config.logger.debug 'Calling API: DomainsApi.domains_start_domain_verification ...'
220
+ end
221
+ # verify the required parameter 'sender' is set
222
+ if @api_client.config.client_side_validation && sender.nil?
223
+ fail ArgumentError, "Missing the required parameter 'sender' when calling DomainsApi.domains_start_domain_verification"
224
+ end
225
+ # resource path
226
+ local_var_path = '/domains/{sender}/start-verification'.sub('{' + 'sender' + '}', CGI.escape(sender.to_s))
227
+
228
+ # query parameters
229
+ query_params = opts[:query_params] || {}
230
+
231
+ # header parameters
232
+ header_params = opts[:header_params] || {}
233
+ # HTTP header 'Accept' (if needed)
234
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
235
+
236
+ # form parameters
237
+ form_params = opts[:form_params] || {}
238
+
239
+ # http body (model)
240
+ post_body = opts[:debug_body]
241
+
242
+ # return_type
243
+ return_type = opts[:debug_return_type] || 'Array<GetSendersResponseInner>'
244
+
245
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
246
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
247
+
248
+ new_options = opts.merge(
249
+ :operation => :"DomainsApi.domains_start_domain_verification",
250
+ :header_params => header_params,
251
+ :query_params => query_params,
252
+ :form_params => form_params,
253
+ :body => post_body,
254
+ :auth_names => auth_names,
255
+ :return_type => return_type
256
+ )
257
+
258
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
259
+ if @api_client.config.debugging
260
+ @api_client.config.logger.debug "API called: DomainsApi#domains_start_domain_verification\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
261
+ end
262
+ return data, status_code, headers
263
+ end
203
264
  end
204
265
  end
@@ -19,7 +19,7 @@ module Pingram
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Send an email notification directly without templates
22
+ # Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. The fromAddress must be a verified domain; otherwise our built-in address will be used which is fine for testing purposes.
23
23
  # @param send_email_request [SendEmailRequest]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [SendEmailApiResponse]
@@ -28,7 +28,7 @@ module Pingram
28
28
  data
29
29
  end
30
30
 
31
- # Send an email notification directly without templates
31
+ # Send an email. Requires &#x60;type&#x60;, &#x60;to&#x60;, &#x60;subject&#x60;, and &#x60;html&#x60;. Optional: &#x60;fromAddress&#x60;, &#x60;fromName&#x60;, &#x60;schedule&#x60;, attachments. The fromAddress must be a verified domain; otherwise our built-in address will be used which is fine for testing purposes.
32
32
  # @param send_email_request [SendEmailRequest]
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(SendEmailApiResponse, Integer, Hash)>] SendEmailApiResponse data, response status code and response headers
@@ -74,7 +74,7 @@ module Pingram
74
74
  return data, status_code, headers
75
75
  end
76
76
 
77
- # List logs for the authenticated account
77
+ # List recent notification logs for the authenticated account, newest first.
78
78
  # @param [Hash] opts the optional parameters
79
79
  # @option opts [Float] :limit Maximum number of logs to return (default
80
80
  # @option opts [String] :cursor Pagination cursor for next page
@@ -84,7 +84,7 @@ module Pingram
84
84
  data
85
85
  end
86
86
 
87
- # List logs for the authenticated account
87
+ # List recent notification logs for the authenticated account, newest first.
88
88
  # @param [Hash] opts the optional parameters
89
89
  # @option opts [Float] :limit Maximum number of logs to return (default
90
90
  # @option opts [String] :cursor Pagination cursor for next page
@@ -135,7 +135,7 @@ module Pingram
135
135
  return data, status_code, headers
136
136
  end
137
137
 
138
- # Get logs by tracking IDs (comma-separated, max 25 IDs)
138
+ # Get logs by tracking IDs (comma-separated, max 25 IDs). Use after sending email or SMS to look up delivery status.
139
139
  # @param tracking_ids [String] Comma-separated tracking IDs (URL encoded)
140
140
  # @param [Hash] opts the optional parameters
141
141
  # @return [LogsGetResponse]
@@ -144,7 +144,7 @@ module Pingram
144
144
  data
145
145
  end
146
146
 
147
- # Get logs by tracking IDs (comma-separated, max 25 IDs)
147
+ # Get logs by tracking IDs (comma-separated, max 25 IDs). Use after sending email or SMS to look up delivery status.
148
148
  # @param tracking_ids [String] Comma-separated tracking IDs (URL encoded)
149
149
  # @param [Hash] opts the optional parameters
150
150
  # @return [Array<(LogsGetResponse, Integer, Hash)>] LogsGetResponse data, response status code and response headers
@@ -196,8 +196,8 @@ module Pingram
196
196
  return data, status_code, headers
197
197
  end
198
198
 
199
- # Get results from a query ID
200
- # @param query_id [String] Query ID
199
+ # Get results from a log query started with Start Log Query. Poll until status is Complete.
200
+ # @param query_id [String] Query ID returned by Start Log Query
201
201
  # @param [Hash] opts the optional parameters
202
202
  # @return [LogsQueryResultResponse]
203
203
  def logs_get_logs_query_result(query_id, opts = {})
@@ -205,8 +205,8 @@ module Pingram
205
205
  data
206
206
  end
207
207
 
208
- # Get results from a query ID
209
- # @param query_id [String] Query ID
208
+ # Get results from a log query started with Start Log Query. Poll until status is Complete.
209
+ # @param query_id [String] Query ID returned by Start Log Query
210
210
  # @param [Hash] opts the optional parameters
211
211
  # @return [Array<(LogsQueryResultResponse, Integer, Hash)>] LogsQueryResultResponse data, response status code and response headers
212
212
  def logs_get_logs_query_result_with_http_info(query_id, opts = {})
@@ -257,7 +257,7 @@ module Pingram
257
257
  return data, status_code, headers
258
258
  end
259
259
 
260
- # Start a log query and return query ID for asynchronous log searching
260
+ # Start an asynchronous log search over a date range. Returns a `queryId`; poll with Get Log Query Results until status is Complete.
261
261
  # @param log_query_post_body [LogQueryPostBody]
262
262
  # @param [Hash] opts the optional parameters
263
263
  # @return [LogsQueryResponse]
@@ -266,7 +266,7 @@ module Pingram
266
266
  data
267
267
  end
268
268
 
269
- # Start a log query and return query ID for asynchronous log searching
269
+ # Start an asynchronous log search over a date range. Returns a &#x60;queryId&#x60;; poll with Get Log Query Results until status is Complete.
270
270
  # @param log_query_post_body [LogQueryPostBody]
271
271
  # @param [Hash] opts the optional parameters
272
272
  # @return [Array<(LogsQueryResponse, Integer, Hash)>] LogsQueryResponse data, response status code and response headers
@@ -19,7 +19,7 @@ module Pingram
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # List active phone numbers registered for the account
22
+ # List active phone numbers registered for the account.
23
23
  # @param [Hash] opts the optional parameters
24
24
  # @return [ListPhoneNumbersResponse]
25
25
  def numbers_list(opts = {})
@@ -27,7 +27,7 @@ module Pingram
27
27
  data
28
28
  end
29
29
 
30
- # List active phone numbers registered for the account
30
+ # List active phone numbers registered for the account.
31
31
  # @param [Hash] opts the optional parameters
32
32
  # @return [Array<(ListPhoneNumbersResponse, Integer, Hash)>] ListPhoneNumbersResponse data, response status code and response headers
33
33
  def numbers_list_with_http_info(opts = {})
@@ -129,7 +129,7 @@ module Pingram
129
129
  return data, status_code, headers
130
130
  end
131
131
 
132
- # Purchase a phone number for the authenticated account, or reactivate a released number owned by the account (preserves original createdAt).
132
+ # Purchase a phone number for the authenticated account, or reactivate a released number owned by the account (preserves original createdAt). Pass `phoneNumber` in E.164 format (e.g. +15551234567).
133
133
  # @param order_phone_number_request [OrderPhoneNumberRequest]
134
134
  # @param [Hash] opts the optional parameters
135
135
  # @return [OrderPhoneNumberResponse]
@@ -138,7 +138,7 @@ module Pingram
138
138
  data
139
139
  end
140
140
 
141
- # Purchase a phone number for the authenticated account, or reactivate a released number owned by the account (preserves original createdAt).
141
+ # Purchase a phone number for the authenticated account, or reactivate a released number owned by the account (preserves original createdAt). Pass &#x60;phoneNumber&#x60; in E.164 format (e.g. +15551234567).
142
142
  # @param order_phone_number_request [OrderPhoneNumberRequest]
143
143
  # @param [Hash] opts the optional parameters
144
144
  # @return [Array<(OrderPhoneNumberResponse, Integer, Hash)>] OrderPhoneNumberResponse data, response status code and response headers
@@ -256,7 +256,7 @@ module Pingram
256
256
  return data, status_code, headers
257
257
  end
258
258
 
259
- # Search for available phone numbers
259
+ # Search for available phone numbers to purchase. Requires `countryCode` (e.g. US, CA). Use before ordering a number.
260
260
  # @param country_code [String] ISO 3166-1 alpha-2 country code (e.g., US, CA)
261
261
  # @param [Hash] opts the optional parameters
262
262
  # @option opts [String] :features Comma-separated
@@ -268,7 +268,7 @@ module Pingram
268
268
  data
269
269
  end
270
270
 
271
- # Search for available phone numbers
271
+ # Search for available phone numbers to purchase. Requires &#x60;countryCode&#x60; (e.g. US, CA). Use before ordering a number.
272
272
  # @param country_code [String] ISO 3166-1 alpha-2 country code (e.g., US, CA)
273
273
  # @param [Hash] opts the optional parameters
274
274
  # @option opts [String] :features Comma-separated