pingram 1.0.5 → 1.0.7

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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/lib/pingram/api/members_api.rb +10 -10
  4. data/lib/pingram/api/numbers_api.rb +214 -0
  5. data/lib/pingram/api/profile_api.rb +154 -0
  6. data/lib/pingram/api_client.rb +1 -1
  7. data/lib/pingram/client_wrapper.rb +22 -2
  8. data/lib/pingram/models/accept_invite_request.rb +164 -0
  9. data/lib/pingram/models/accept_invite_response.rb +225 -0
  10. data/lib/pingram/models/account_get_response.rb +19 -53
  11. data/lib/pingram/models/auto_join_get_response.rb +16 -16
  12. data/lib/pingram/models/auto_join_post_response.rb +16 -16
  13. data/lib/pingram/models/billing_post_response_body.rb +1 -1
  14. data/lib/pingram/models/change_email_request.rb +164 -0
  15. data/lib/pingram/models/get_members_response_inner.rb +27 -1
  16. data/lib/pingram/models/list_phone_numbers_response.rb +167 -0
  17. data/lib/pingram/models/list_phone_numbers_response_numbers_inner.rb +202 -0
  18. data/lib/pingram/models/order_phone_number_request.rb +166 -0
  19. data/lib/pingram/models/order_phone_number_response.rb +217 -0
  20. data/lib/pingram/models/organization.rb +74 -222
  21. data/lib/pingram/models/phone_verify_confirm_request.rb +190 -0
  22. data/lib/pingram/models/phone_verify_confirm_response.rb +164 -0
  23. data/lib/pingram/models/phone_verify_start_request.rb +190 -0
  24. data/lib/pingram/models/phone_verify_start_response.rb +164 -0
  25. data/lib/pingram/models/search_available_phone_numbers_response.rb +167 -0
  26. data/lib/pingram/models/search_available_phone_numbers_response_numbers_inner.rb +206 -0
  27. data/lib/pingram/models/sender_post_body.rb +2 -0
  28. data/lib/pingram/models/sender_post_body_sms.rb +15 -5
  29. data/lib/pingram/version.rb +1 -1
  30. data/lib/pingram.rb +15 -0
  31. data/vendor/bundle/ruby/3.2.0/cache/parallel-1.28.0.gem +0 -0
  32. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
  33. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
  34. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/gem_make.out +5 -5
  35. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/mkmf.log +3 -3
  36. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  37. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.3.1/gem_make.out +5 -5
  38. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
  39. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
  40. data/vendor/bundle/ruby/3.2.0/gems/parallel-1.28.0/lib/parallel/version.rb +4 -0
  41. data/vendor/bundle/ruby/3.2.0/gems/{parallel-1.27.0 → parallel-1.28.0}/lib/parallel.rb +11 -0
  42. data/vendor/bundle/ruby/3.2.0/specifications/{parallel-1.27.0.gemspec → parallel-1.28.0.gemspec} +4 -4
  43. metadata +22 -7
  44. data/vendor/bundle/ruby/3.2.0/cache/parallel-1.27.0.gem +0 -0
  45. data/vendor/bundle/ruby/3.2.0/gems/parallel-1.27.0/lib/parallel/version.rb +0 -4
  46. /data/vendor/bundle/ruby/3.2.0/gems/{parallel-1.27.0 → parallel-1.28.0}/MIT-LICENSE.txt +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2db75d711ebf37bd2217975eab2840659009ec01477981c70450d93f2e906c56
4
- data.tar.gz: e80fa0cd6cff6be99aa271e95b705fc94daff40656a0bd92cadccb4fbf11584e
3
+ metadata.gz: d2abf3a6897d1cdfe767b66c5889a9dd10607eb87001dc3637e55e429be76c5f
4
+ data.tar.gz: fa86061d2712c5edef7988300309984004e0a37618e6433a213ac52985dbdc38
5
5
  SHA512:
6
- metadata.gz: 53e417cba1e67d35e83c5bc5a01750f6090552d9eb3f7ffbacee0225d55f95d08e59968876d1ccef8c686816c591df499f08c77abb77cde60b8edbef781b46eb
7
- data.tar.gz: 5dc17312fc00cb7dc3b71cc854673a71076bc5b85400a63c384e79e7cf103c886e1b7cd197dd0e55135c17f2aa580be841ed804bbb5cb53da7401bd1323456b7
6
+ metadata.gz: c566371e3c23b72669c6bcace4dd146172c19099d88fe7cbf7d202c863cd08134fc8690c8d7f10d5280ca0eb896aa5878f9f89e0349d7b214b6b2cca9243d3da
7
+ data.tar.gz: d77b8904a84992b84011e4380291cd61e066029c925a0ffea96a10e3ff2355a7dc55dc574c676544e5ac807832ad9255dc0dce302d37ffdab486368c902bb45c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pingram (1.0.5)
4
+ pingram (1.0.7)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -21,7 +21,7 @@ GEM
21
21
  jaro_winkler (1.5.6)
22
22
  logger (1.7.0)
23
23
  method_source (1.1.0)
24
- parallel (1.27.0)
24
+ parallel (1.28.0)
25
25
  parser (3.3.11.1)
26
26
  ast (~> 2.4.1)
27
27
  racc
@@ -19,7 +19,7 @@ module Pingram
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Get auto-join domains for the account
22
+ # Get auto-join domains for the organization
23
23
  # @param env_id [String] Environment ID
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [AutoJoinGetResponse]
@@ -28,7 +28,7 @@ module Pingram
28
28
  data
29
29
  end
30
30
 
31
- # Get auto-join domains for the account
31
+ # Get auto-join domains for the organization
32
32
  # @param env_id [String] Environment ID
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(AutoJoinGetResponse, Integer, Hash)>] AutoJoinGetResponse data, response status code and response headers
@@ -80,7 +80,7 @@ module Pingram
80
80
  return data, status_code, headers
81
81
  end
82
82
 
83
- # Invite a new member to the account
83
+ # Invite a new member to the organization
84
84
  # @param env_id [String] Environment ID
85
85
  # @param member_invite_request [MemberInviteRequest]
86
86
  # @param [Hash] opts the optional parameters
@@ -90,7 +90,7 @@ module Pingram
90
90
  data
91
91
  end
92
92
 
93
- # Invite a new member to the account
93
+ # Invite a new member to the organization
94
94
  # @param env_id [String] Environment ID
95
95
  # @param member_invite_request [MemberInviteRequest]
96
96
  # @param [Hash] opts the optional parameters
@@ -152,7 +152,7 @@ module Pingram
152
152
  return data, status_code, headers
153
153
  end
154
154
 
155
- # Get a list of team members in the account
155
+ # Get a list of team members in the organization
156
156
  # @param env_id [String] Environment ID
157
157
  # @param [Hash] opts the optional parameters
158
158
  # @return [Array<GetMembersResponseInner>]
@@ -161,7 +161,7 @@ module Pingram
161
161
  data
162
162
  end
163
163
 
164
- # Get a list of team members in the account
164
+ # Get a list of team members in the organization
165
165
  # @param env_id [String] Environment ID
166
166
  # @param [Hash] opts the optional parameters
167
167
  # @return [Array<(Array<GetMembersResponseInner>, Integer, Hash)>] Array<GetMembersResponseInner> data, response status code and response headers
@@ -213,7 +213,7 @@ module Pingram
213
213
  return data, status_code, headers
214
214
  end
215
215
 
216
- # Remove a member from the account
216
+ # Remove a member from the organization
217
217
  # @param env_id [String] Environment ID
218
218
  # @param user_id [String] User ID or email address (URL encoded)
219
219
  # @param [Hash] opts the optional parameters
@@ -223,7 +223,7 @@ module Pingram
223
223
  data
224
224
  end
225
225
 
226
- # Remove a member from the account
226
+ # Remove a member from the organization
227
227
  # @param env_id [String] Environment ID
228
228
  # @param user_id [String] User ID or email address (URL encoded)
229
229
  # @param [Hash] opts the optional parameters
@@ -280,7 +280,7 @@ module Pingram
280
280
  return data, status_code, headers
281
281
  end
282
282
 
283
- # Set auto-join domains for the account
283
+ # Set auto-join domains for the organization
284
284
  # @param env_id [String] Environment ID
285
285
  # @param auto_join_request_body [AutoJoinRequestBody]
286
286
  # @param [Hash] opts the optional parameters
@@ -290,7 +290,7 @@ module Pingram
290
290
  data
291
291
  end
292
292
 
293
- # Set auto-join domains for the account
293
+ # Set auto-join domains for the organization
294
294
  # @param env_id [String] Environment ID
295
295
  # @param auto_join_request_body [AutoJoinRequestBody]
296
296
  # @param [Hash] opts the optional parameters
@@ -0,0 +1,214 @@
1
+ =begin
2
+ #Pingram
3
+
4
+ #Internal API for notification delivery and management
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Pingram
16
+ class NumbersApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List all phone numbers registered for the account
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [ListPhoneNumbersResponse]
25
+ def numbers_list(opts = {})
26
+ data, _status_code, _headers = numbers_list_with_http_info(opts)
27
+ data
28
+ end
29
+
30
+ # List all phone numbers registered for the account
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(ListPhoneNumbersResponse, Integer, Hash)>] ListPhoneNumbersResponse data, response status code and response headers
33
+ def numbers_list_with_http_info(opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: NumbersApi.numbers_list ...'
36
+ end
37
+ # resource path
38
+ local_var_path = '/numbers/list'
39
+
40
+ # query parameters
41
+ query_params = opts[:query_params] || {}
42
+
43
+ # header parameters
44
+ header_params = opts[:header_params] || {}
45
+ # HTTP header 'Accept' (if needed)
46
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
47
+
48
+ # form parameters
49
+ form_params = opts[:form_params] || {}
50
+
51
+ # http body (model)
52
+ post_body = opts[:debug_body]
53
+
54
+ # return_type
55
+ return_type = opts[:debug_return_type] || 'ListPhoneNumbersResponse'
56
+
57
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
58
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
59
+
60
+ new_options = opts.merge(
61
+ :operation => :"NumbersApi.numbers_list",
62
+ :header_params => header_params,
63
+ :query_params => query_params,
64
+ :form_params => form_params,
65
+ :body => post_body,
66
+ :auth_names => auth_names,
67
+ :return_type => return_type
68
+ )
69
+
70
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
71
+ if @api_client.config.debugging
72
+ @api_client.config.logger.debug "API called: NumbersApi#numbers_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
76
+
77
+ # Purchase a Telnyx phone number for the authenticated account
78
+ # @param order_phone_number_request [OrderPhoneNumberRequest]
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [OrderPhoneNumberResponse]
81
+ def numbers_order_number(order_phone_number_request, opts = {})
82
+ data, _status_code, _headers = numbers_order_number_with_http_info(order_phone_number_request, opts)
83
+ data
84
+ end
85
+
86
+ # Purchase a Telnyx phone number for the authenticated account
87
+ # @param order_phone_number_request [OrderPhoneNumberRequest]
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [Array<(OrderPhoneNumberResponse, Integer, Hash)>] OrderPhoneNumberResponse data, response status code and response headers
90
+ def numbers_order_number_with_http_info(order_phone_number_request, opts = {})
91
+ if @api_client.config.debugging
92
+ @api_client.config.logger.debug 'Calling API: NumbersApi.numbers_order_number ...'
93
+ end
94
+ # verify the required parameter 'order_phone_number_request' is set
95
+ if @api_client.config.client_side_validation && order_phone_number_request.nil?
96
+ fail ArgumentError, "Missing the required parameter 'order_phone_number_request' when calling NumbersApi.numbers_order_number"
97
+ end
98
+ # resource path
99
+ local_var_path = '/numbers/order'
100
+
101
+ # query parameters
102
+ query_params = opts[:query_params] || {}
103
+
104
+ # header parameters
105
+ header_params = opts[:header_params] || {}
106
+ # HTTP header 'Accept' (if needed)
107
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
108
+ # HTTP header 'Content-Type'
109
+ content_type = @api_client.select_header_content_type(['application/json'])
110
+ if !content_type.nil?
111
+ header_params['Content-Type'] = content_type
112
+ end
113
+
114
+ # form parameters
115
+ form_params = opts[:form_params] || {}
116
+
117
+ # http body (model)
118
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(order_phone_number_request)
119
+
120
+ # return_type
121
+ return_type = opts[:debug_return_type] || 'OrderPhoneNumberResponse'
122
+
123
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
124
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
125
+
126
+ new_options = opts.merge(
127
+ :operation => :"NumbersApi.numbers_order_number",
128
+ :header_params => header_params,
129
+ :query_params => query_params,
130
+ :form_params => form_params,
131
+ :body => post_body,
132
+ :auth_names => auth_names,
133
+ :return_type => return_type
134
+ )
135
+
136
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
137
+ if @api_client.config.debugging
138
+ @api_client.config.logger.debug "API called: NumbersApi#numbers_order_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
139
+ end
140
+ return data, status_code, headers
141
+ end
142
+
143
+ # Search for available Telnyx phone numbers
144
+ # @param country_code [String] ISO 3166-1 alpha-2 country code (e.g., US, CA)
145
+ # @param [Hash] opts the optional parameters
146
+ # @option opts [String] :features Comma-separated
147
+ # @option opts [String] :area_code National destination / area code filter
148
+ # @option opts [Float] :limit Max results (default 10, max 50)
149
+ # @return [SearchAvailablePhoneNumbersResponse]
150
+ def numbers_search_available(country_code, opts = {})
151
+ data, _status_code, _headers = numbers_search_available_with_http_info(country_code, opts)
152
+ data
153
+ end
154
+
155
+ # Search for available Telnyx phone numbers
156
+ # @param country_code [String] ISO 3166-1 alpha-2 country code (e.g., US, CA)
157
+ # @param [Hash] opts the optional parameters
158
+ # @option opts [String] :features Comma-separated
159
+ # @option opts [String] :area_code National destination / area code filter
160
+ # @option opts [Float] :limit Max results (default 10, max 50)
161
+ # @return [Array<(SearchAvailablePhoneNumbersResponse, Integer, Hash)>] SearchAvailablePhoneNumbersResponse data, response status code and response headers
162
+ def numbers_search_available_with_http_info(country_code, opts = {})
163
+ if @api_client.config.debugging
164
+ @api_client.config.logger.debug 'Calling API: NumbersApi.numbers_search_available ...'
165
+ end
166
+ # verify the required parameter 'country_code' is set
167
+ if @api_client.config.client_side_validation && country_code.nil?
168
+ fail ArgumentError, "Missing the required parameter 'country_code' when calling NumbersApi.numbers_search_available"
169
+ end
170
+ # resource path
171
+ local_var_path = '/numbers/available'
172
+
173
+ # query parameters
174
+ query_params = opts[:query_params] || {}
175
+ query_params[:'countryCode'] = country_code
176
+ query_params[:'features'] = opts[:'features'] if !opts[:'features'].nil?
177
+ query_params[:'areaCode'] = opts[:'area_code'] if !opts[:'area_code'].nil?
178
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
179
+
180
+ # header parameters
181
+ header_params = opts[:header_params] || {}
182
+ # HTTP header 'Accept' (if needed)
183
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
184
+
185
+ # form parameters
186
+ form_params = opts[:form_params] || {}
187
+
188
+ # http body (model)
189
+ post_body = opts[:debug_body]
190
+
191
+ # return_type
192
+ return_type = opts[:debug_return_type] || 'SearchAvailablePhoneNumbersResponse'
193
+
194
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
195
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
196
+
197
+ new_options = opts.merge(
198
+ :operation => :"NumbersApi.numbers_search_available",
199
+ :header_params => header_params,
200
+ :query_params => query_params,
201
+ :form_params => form_params,
202
+ :body => post_body,
203
+ :auth_names => auth_names,
204
+ :return_type => return_type
205
+ )
206
+
207
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
208
+ if @api_client.config.debugging
209
+ @api_client.config.logger.debug "API called: NumbersApi#numbers_search_available\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
210
+ end
211
+ return data, status_code, headers
212
+ end
213
+ end
214
+ end
@@ -0,0 +1,154 @@
1
+ =begin
2
+ #Pingram
3
+
4
+ #Internal API for notification delivery and management
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Pingram
16
+ class ProfileApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Accept a team invitation using a token
23
+ # @param accept_invite_request [AcceptInviteRequest]
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [AcceptInviteResponse]
26
+ def profile_accept_invite(accept_invite_request, opts = {})
27
+ data, _status_code, _headers = profile_accept_invite_with_http_info(accept_invite_request, opts)
28
+ data
29
+ end
30
+
31
+ # Accept a team invitation using a token
32
+ # @param accept_invite_request [AcceptInviteRequest]
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(AcceptInviteResponse, Integer, Hash)>] AcceptInviteResponse data, response status code and response headers
35
+ def profile_accept_invite_with_http_info(accept_invite_request, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: ProfileApi.profile_accept_invite ...'
38
+ end
39
+ # verify the required parameter 'accept_invite_request' is set
40
+ if @api_client.config.client_side_validation && accept_invite_request.nil?
41
+ fail ArgumentError, "Missing the required parameter 'accept_invite_request' when calling ProfileApi.profile_accept_invite"
42
+ end
43
+ # resource path
44
+ local_var_path = '/profile/accept_invite'
45
+
46
+ # query parameters
47
+ query_params = opts[:query_params] || {}
48
+
49
+ # header parameters
50
+ header_params = opts[:header_params] || {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
53
+ # HTTP header 'Content-Type'
54
+ content_type = @api_client.select_header_content_type(['application/json'])
55
+ if !content_type.nil?
56
+ header_params['Content-Type'] = content_type
57
+ end
58
+
59
+ # form parameters
60
+ form_params = opts[:form_params] || {}
61
+
62
+ # http body (model)
63
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(accept_invite_request)
64
+
65
+ # return_type
66
+ return_type = opts[:debug_return_type] || 'AcceptInviteResponse'
67
+
68
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
69
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
70
+
71
+ new_options = opts.merge(
72
+ :operation => :"ProfileApi.profile_accept_invite",
73
+ :header_params => header_params,
74
+ :query_params => query_params,
75
+ :form_params => form_params,
76
+ :body => post_body,
77
+ :auth_names => auth_names,
78
+ :return_type => return_type
79
+ )
80
+
81
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
82
+ if @api_client.config.debugging
83
+ @api_client.config.logger.debug "API called: ProfileApi#profile_accept_invite\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ end
85
+ return data, status_code, headers
86
+ end
87
+
88
+ # Change the email address of the authenticated user
89
+ # @param change_email_request [ChangeEmailRequest]
90
+ # @param [Hash] opts the optional parameters
91
+ # @return [SuccessResponse]
92
+ def profile_change_email(change_email_request, opts = {})
93
+ data, _status_code, _headers = profile_change_email_with_http_info(change_email_request, opts)
94
+ data
95
+ end
96
+
97
+ # Change the email address of the authenticated user
98
+ # @param change_email_request [ChangeEmailRequest]
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
101
+ def profile_change_email_with_http_info(change_email_request, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: ProfileApi.profile_change_email ...'
104
+ end
105
+ # verify the required parameter 'change_email_request' is set
106
+ if @api_client.config.client_side_validation && change_email_request.nil?
107
+ fail ArgumentError, "Missing the required parameter 'change_email_request' when calling ProfileApi.profile_change_email"
108
+ end
109
+ # resource path
110
+ local_var_path = '/profile/change-email'
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
+ # HTTP header 'Content-Type'
120
+ content_type = @api_client.select_header_content_type(['application/json'])
121
+ if !content_type.nil?
122
+ header_params['Content-Type'] = content_type
123
+ end
124
+
125
+ # form parameters
126
+ form_params = opts[:form_params] || {}
127
+
128
+ # http body (model)
129
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(change_email_request)
130
+
131
+ # return_type
132
+ return_type = opts[:debug_return_type] || 'SuccessResponse'
133
+
134
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
135
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
136
+
137
+ new_options = opts.merge(
138
+ :operation => :"ProfileApi.profile_change_email",
139
+ :header_params => header_params,
140
+ :query_params => query_params,
141
+ :form_params => form_params,
142
+ :body => post_body,
143
+ :auth_names => auth_names,
144
+ :return_type => return_type
145
+ )
146
+
147
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
148
+ if @api_client.config.debugging
149
+ @api_client.config.logger.debug "API called: ProfileApi#profile_change_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
150
+ end
151
+ return data, status_code, headers
152
+ end
153
+ end
154
+ end
@@ -32,7 +32,7 @@ module Pingram
32
32
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
33
33
  def initialize(config = Configuration.default)
34
34
  @config = config
35
- @user_agent = "pingram-ruby/1.0.5"
35
+ @user_agent = "pingram-ruby/1.0.7"
36
36
  @default_headers = {
37
37
  'Content-Type' => 'application/json',
38
38
  'User-Agent' => @user_agent
@@ -31,8 +31,12 @@ require_relative 'api/logs_api'
31
31
 
32
32
  require_relative 'api/members_api'
33
33
 
34
+ require_relative 'api/numbers_api'
35
+
34
36
  require_relative 'api/organization_api'
35
37
 
38
+ require_relative 'api/profile_api'
39
+
36
40
  require_relative 'api/push_settings_api'
37
41
 
38
42
  require_relative 'api/sender_api'
@@ -91,9 +95,13 @@ module Pingram
91
95
 
92
96
  @members = Pingram::MembersApi.new(@api_client)
93
97
 
98
+ @numbers = Pingram::NumbersApi.new(@api_client)
99
+
94
100
  @organization = Pingram::OrganizationApi.new(@api_client)
95
101
 
96
- @push_settings = Pingram::PushsettingsApi.new(@api_client)
102
+ @profile = Pingram::ProfileApi.new(@api_client)
103
+
104
+ @push_settings = Pingram::PushSettingsApi.new(@api_client)
97
105
 
98
106
  @sender = Pingram::SenderApi.new(@api_client)
99
107
 
@@ -182,13 +190,25 @@ module Pingram
182
190
  end
183
191
 
184
192
 
193
+ # @return [Pingram::NumbersApi]
194
+ def numbers
195
+ @numbers
196
+ end
197
+
198
+
185
199
  # @return [Pingram::OrganizationApi]
186
200
  def organization
187
201
  @organization
188
202
  end
189
203
 
190
204
 
191
- # @return [Pingram::PushsettingsApi]
205
+ # @return [Pingram::ProfileApi]
206
+ def profile
207
+ @profile
208
+ end
209
+
210
+
211
+ # @return [Pingram::PushSettingsApi]
192
212
  def push_settings
193
213
  @push_settings
194
214
  end