pingram 1.0.17 → 1.0.19

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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/pingram/api/account_api.rb +95 -26
  4. data/lib/pingram/api/members_api.rb +10 -10
  5. data/lib/pingram/api_client.rb +1 -1
  6. data/lib/pingram/client_wrapper.rb +0 -10
  7. data/lib/pingram/models/account_get_response.rb +216 -29
  8. data/lib/pingram/models/auto_join_get_response.rb +16 -16
  9. data/lib/pingram/models/auto_join_post_response.rb +16 -16
  10. data/lib/pingram/models/billing_post_response_body.rb +35 -68
  11. data/lib/pingram/models/{create_organization_request.rb → brand_webhook_response.rb} +28 -13
  12. data/lib/pingram/models/get_members_response_inner.rb +1 -27
  13. data/lib/pingram/models/get_usage_history_query.rb +1 -1
  14. data/lib/pingram/models/{organization_usage_history.rb → get_usage_history_response.rb} +5 -5
  15. data/lib/pingram/models/{organization_usage_history_items_inner.rb → get_usage_history_response_items_inner.rb} +4 -4
  16. data/lib/pingram/models/{organization_usage_history_items_inner_counts.rb → get_usage_history_response_items_inner_counts.rb} +3 -3
  17. data/lib/pingram/models/{organization_usage.rb → get_usage_response.rb} +6 -6
  18. data/lib/pingram/models/{organization_usage_costs.rb → get_usage_response_costs.rb} +3 -3
  19. data/lib/pingram/models/{organization_usage_counts.rb → get_usage_response_counts.rb} +3 -3
  20. data/lib/pingram/models/sender_post_body.rb +1 -13
  21. data/lib/pingram/models/sender_post_body_options_email.rb +4 -14
  22. data/lib/pingram/models/ten_dlc_brand_create_request.rb +19 -1
  23. data/lib/pingram/models/ten_dlc_brand_registration.rb +19 -1
  24. data/lib/pingram/models/ten_dlc_brand_registration_details.rb +599 -0
  25. data/lib/pingram/models/ten_dlc_brand_update_request.rb +92 -1
  26. data/lib/pingram/version.rb +1 -1
  27. data/lib/pingram.rb +8 -10
  28. metadata +10 -12
  29. data/lib/pingram/api/organization_api.rb +0 -212
  30. data/lib/pingram/models/create_organization_response.rb +0 -216
  31. data/lib/pingram/models/organization.rb +0 -463
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d0671db0ba18aa345856f699fcb8f2dc1bb977c1cdf1450d888ceefbd273e1d
4
- data.tar.gz: ea27a7a49a21448e939729007929d4162c5d84c3bf34ff4a1a48c9a6df9b705e
3
+ metadata.gz: 1fd1d511a80777270561fbe20290dc7646299c18061af067cab8a804c4d3d2b4
4
+ data.tar.gz: c695bd1976f7dbae214c137f02a8ff72ca6f94bc36a7fa8e28b835c38b3b8f82
5
5
  SHA512:
6
- metadata.gz: 7b3b5f4692b9b19c87c259c9a473fe9386db5b42ed278d3d751458861a8b1feea0a39a80edda75dff23b148ad28949070f8f86450351dd7c4804437cd671b1ef
7
- data.tar.gz: b728ce6db103ff531096ff82a16220a291916fe25ac032615998c47692fb2c1f632a8284df579b238ac2bc57e3ff20581d0532fdc4cc3b39bc10923779877290
6
+ metadata.gz: 8f0793f193f52493e0b93996967e4775b36c87ca901397ec17353e241ae18204e2a851691a7e6525baba8657a57851ac8860bf12e8b272fe85831bfa8904c299
7
+ data.tar.gz: 4a89aff1fcc5b1fc9d713e7e2bf6748d49fc600e17037fd84c770e14ab27d3e2d566811c264b66ba603391c6e2af0ab401292ed2496b7d51bd399333452eb384
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pingram (1.0.17)
4
+ pingram (1.0.19)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -85,7 +85,7 @@ module Pingram
85
85
  return data, status_code, headers
86
86
  end
87
87
 
88
- # Get account information for the authenticated user
88
+ # Get account information for the authenticated account
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [AccountGetResponse]
91
91
  def account_get_account_details(opts = {})
@@ -93,7 +93,7 @@ module Pingram
93
93
  data
94
94
  end
95
95
 
96
- # Get account information for the authenticated user
96
+ # Get account information for the authenticated account
97
97
  # @param [Hash] opts the optional parameters
98
98
  # @return [Array<(AccountGetResponse, Integer, Hash)>] AccountGetResponse data, response status code and response headers
99
99
  def account_get_account_details_with_http_info(opts = {})
@@ -140,23 +140,23 @@ module Pingram
140
140
  return data, status_code, headers
141
141
  end
142
142
 
143
- # Get organization for the authenticated account (new billing model).
143
+ # Get Supabase integration status for the account
144
144
  # @param [Hash] opts the optional parameters
145
- # @return [Organization]
146
- def account_get_organization(opts = {})
147
- data, _status_code, _headers = account_get_organization_with_http_info(opts)
145
+ # @return [SupabaseStatusResponse]
146
+ def account_get_supabase_status(opts = {})
147
+ data, _status_code, _headers = account_get_supabase_status_with_http_info(opts)
148
148
  data
149
149
  end
150
150
 
151
- # Get organization for the authenticated account (new billing model).
151
+ # Get Supabase integration status for the account
152
152
  # @param [Hash] opts the optional parameters
153
- # @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
154
- def account_get_organization_with_http_info(opts = {})
153
+ # @return [Array<(SupabaseStatusResponse, Integer, Hash)>] SupabaseStatusResponse data, response status code and response headers
154
+ def account_get_supabase_status_with_http_info(opts = {})
155
155
  if @api_client.config.debugging
156
- @api_client.config.logger.debug 'Calling API: AccountApi.account_get_organization ...'
156
+ @api_client.config.logger.debug 'Calling API: AccountApi.account_get_supabase_status ...'
157
157
  end
158
158
  # resource path
159
- local_var_path = '/account/organization'
159
+ local_var_path = '/account/supabase/status'
160
160
 
161
161
  # query parameters
162
162
  query_params = opts[:query_params] || {}
@@ -173,13 +173,13 @@ module Pingram
173
173
  post_body = opts[:debug_body]
174
174
 
175
175
  # return_type
176
- return_type = opts[:debug_return_type] || 'Organization'
176
+ return_type = opts[:debug_return_type] || 'SupabaseStatusResponse'
177
177
 
178
178
  # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
179
179
  auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
180
180
 
181
181
  new_options = opts.merge(
182
- :operation => :"AccountApi.account_get_organization",
182
+ :operation => :"AccountApi.account_get_supabase_status",
183
183
  :header_params => header_params,
184
184
  :query_params => query_params,
185
185
  :form_params => form_params,
@@ -190,28 +190,28 @@ module Pingram
190
190
 
191
191
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
192
192
  if @api_client.config.debugging
193
- @api_client.config.logger.debug "API called: AccountApi#account_get_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
193
+ @api_client.config.logger.debug "API called: AccountApi#account_get_supabase_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
194
194
  end
195
195
  return data, status_code, headers
196
196
  end
197
197
 
198
- # Get Supabase integration status for the account
198
+ # Get usage for the authenticated account.
199
199
  # @param [Hash] opts the optional parameters
200
- # @return [SupabaseStatusResponse]
201
- def account_get_supabase_status(opts = {})
202
- data, _status_code, _headers = account_get_supabase_status_with_http_info(opts)
200
+ # @return [GetUsageResponse]
201
+ def account_get_usage(opts = {})
202
+ data, _status_code, _headers = account_get_usage_with_http_info(opts)
203
203
  data
204
204
  end
205
205
 
206
- # Get Supabase integration status for the account
206
+ # Get usage for the authenticated account.
207
207
  # @param [Hash] opts the optional parameters
208
- # @return [Array<(SupabaseStatusResponse, Integer, Hash)>] SupabaseStatusResponse data, response status code and response headers
209
- def account_get_supabase_status_with_http_info(opts = {})
208
+ # @return [Array<(GetUsageResponse, Integer, Hash)>] GetUsageResponse data, response status code and response headers
209
+ def account_get_usage_with_http_info(opts = {})
210
210
  if @api_client.config.debugging
211
- @api_client.config.logger.debug 'Calling API: AccountApi.account_get_supabase_status ...'
211
+ @api_client.config.logger.debug 'Calling API: AccountApi.account_get_usage ...'
212
212
  end
213
213
  # resource path
214
- local_var_path = '/account/supabase/status'
214
+ local_var_path = '/account/usage'
215
215
 
216
216
  # query parameters
217
217
  query_params = opts[:query_params] || {}
@@ -228,13 +228,13 @@ module Pingram
228
228
  post_body = opts[:debug_body]
229
229
 
230
230
  # return_type
231
- return_type = opts[:debug_return_type] || 'SupabaseStatusResponse'
231
+ return_type = opts[:debug_return_type] || 'GetUsageResponse'
232
232
 
233
233
  # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
234
234
  auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
235
235
 
236
236
  new_options = opts.merge(
237
- :operation => :"AccountApi.account_get_supabase_status",
237
+ :operation => :"AccountApi.account_get_usage",
238
238
  :header_params => header_params,
239
239
  :query_params => query_params,
240
240
  :form_params => form_params,
@@ -245,7 +245,76 @@ module Pingram
245
245
 
246
246
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
247
247
  if @api_client.config.debugging
248
- @api_client.config.logger.debug "API called: AccountApi#account_get_supabase_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
248
+ @api_client.config.logger.debug "API called: AccountApi#account_get_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
249
+ end
250
+ return data, status_code, headers
251
+ end
252
+
253
+ # Get historical usage for the authenticated account over a date range.
254
+ # @param start_date [String] Start date (YYYY-MM-DD) for the range
255
+ # @param end_date [String] End date (YYYY-MM-DD) for the range
256
+ # @param [Hash] opts the optional parameters
257
+ # @return [GetUsageHistoryResponse]
258
+ def account_get_usage_history(start_date, end_date, opts = {})
259
+ data, _status_code, _headers = account_get_usage_history_with_http_info(start_date, end_date, opts)
260
+ data
261
+ end
262
+
263
+ # Get historical usage for the authenticated account over a date range.
264
+ # @param start_date [String] Start date (YYYY-MM-DD) for the range
265
+ # @param end_date [String] End date (YYYY-MM-DD) for the range
266
+ # @param [Hash] opts the optional parameters
267
+ # @return [Array<(GetUsageHistoryResponse, Integer, Hash)>] GetUsageHistoryResponse data, response status code and response headers
268
+ def account_get_usage_history_with_http_info(start_date, end_date, opts = {})
269
+ if @api_client.config.debugging
270
+ @api_client.config.logger.debug 'Calling API: AccountApi.account_get_usage_history ...'
271
+ end
272
+ # verify the required parameter 'start_date' is set
273
+ if @api_client.config.client_side_validation && start_date.nil?
274
+ fail ArgumentError, "Missing the required parameter 'start_date' when calling AccountApi.account_get_usage_history"
275
+ end
276
+ # verify the required parameter 'end_date' is set
277
+ if @api_client.config.client_side_validation && end_date.nil?
278
+ fail ArgumentError, "Missing the required parameter 'end_date' when calling AccountApi.account_get_usage_history"
279
+ end
280
+ # resource path
281
+ local_var_path = '/account/usage/history'
282
+
283
+ # query parameters
284
+ query_params = opts[:query_params] || {}
285
+ query_params[:'startDate'] = start_date
286
+ query_params[:'endDate'] = end_date
287
+
288
+ # header parameters
289
+ header_params = opts[:header_params] || {}
290
+ # HTTP header 'Accept' (if needed)
291
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
292
+
293
+ # form parameters
294
+ form_params = opts[:form_params] || {}
295
+
296
+ # http body (model)
297
+ post_body = opts[:debug_body]
298
+
299
+ # return_type
300
+ return_type = opts[:debug_return_type] || 'GetUsageHistoryResponse'
301
+
302
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
303
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
304
+
305
+ new_options = opts.merge(
306
+ :operation => :"AccountApi.account_get_usage_history",
307
+ :header_params => header_params,
308
+ :query_params => query_params,
309
+ :form_params => form_params,
310
+ :body => post_body,
311
+ :auth_names => auth_names,
312
+ :return_type => return_type
313
+ )
314
+
315
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
316
+ if @api_client.config.debugging
317
+ @api_client.config.logger.debug "API called: AccountApi#account_get_usage_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
249
318
  end
250
319
  return data, status_code, headers
251
320
  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
- # Get auto-join domains for the organization
22
+ # Get auto-join domains for the account
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 organization
31
+ # Get auto-join domains for the account
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 organization
83
+ # Invite a new member to the account
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 organization
93
+ # Invite a new member to the account
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 organization
155
+ # Get a list of team members in the account
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 organization
164
+ # Get a list of team members in the account
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 organization
216
+ # Remove a member from the account
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 organization
226
+ # Remove a member from the account
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 organization
283
+ # Set auto-join domains for the account
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 organization
293
+ # Set auto-join domains for the account
294
294
  # @param env_id [String] Environment ID
295
295
  # @param auto_join_request_body [AutoJoinRequestBody]
296
296
  # @param [Hash] opts the optional parameters
@@ -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.17"
35
+ @user_agent = "pingram-ruby/1.0.19"
36
36
  @default_headers = {
37
37
  'Content-Type' => 'application/json',
38
38
  'User-Agent' => @user_agent
@@ -36,8 +36,6 @@ require_relative 'api/members_api'
36
36
 
37
37
  require_relative 'api/numbers_api'
38
38
 
39
- require_relative 'api/organization_api'
40
-
41
39
  require_relative 'api/profile_api'
42
40
 
43
41
  require_relative 'api/push_settings_api'
@@ -114,8 +112,6 @@ module Pingram
114
112
 
115
113
  @numbers = Pingram::NumbersApi.new(@api_client)
116
114
 
117
- @organization = Pingram::OrganizationApi.new(@api_client)
118
-
119
115
  @profile = Pingram::ProfileApi.new(@api_client)
120
116
 
121
117
  @push_settings = Pingram::PushSettingsApi.new(@api_client)
@@ -223,12 +219,6 @@ module Pingram
223
219
  end
224
220
 
225
221
 
226
- # @return [Pingram::OrganizationApi]
227
- def organization
228
- @organization
229
- end
230
-
231
-
232
222
  # @return [Pingram::ProfileApi]
233
223
  def profile
234
224
  @profile