pingram 1.0.18 → 1.0.20
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 +4 -4
- data/Gemfile.lock +3 -3
- data/lib/pingram/api/account_api.rb +70 -66
- data/lib/pingram/api/email_api.rb +61 -0
- data/lib/pingram/api/members_api.rb +2 -2
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/client_wrapper.rb +0 -10
- data/lib/pingram/models/{push_settings_fcm_response.rb → campaign_webhook_response.rb} +20 -19
- data/lib/pingram/models/create_account_request.rb +150 -0
- data/lib/pingram/models/create_account_response.rb +30 -30
- data/lib/pingram/models/{create_account_request_body.rb → create_personal_access_token_request.rb} +18 -7
- data/lib/pingram/models/create_personal_access_token_response.rb +313 -0
- data/lib/pingram/models/{apn_config.rb → delete_email_suppressions_response.rb} +36 -86
- data/lib/pingram/models/get_members_response_inner.rb +29 -1
- data/lib/pingram/models/intercom_webhook_data_item_any_of.rb +1 -0
- data/lib/pingram/models/list_invoices_response.rb +194 -0
- data/lib/pingram/models/list_invoices_response_invoices_inner.rb +389 -0
- data/lib/pingram/models/{push_settings_fcm_put_request.rb → list_personal_access_tokens_response.rb} +21 -19
- data/lib/pingram/models/list_personal_access_tokens_response_tokens_inner.rb +287 -0
- data/lib/pingram/models/member_update_request.rb +1 -0
- data/lib/pingram/models/sender_post_body.rb +1 -13
- data/lib/pingram/models/ten_dlc_brand_registration_details.rb +14 -14
- data/lib/pingram/models/ten_dlc_campaign_registration_details.rb +457 -0
- data/lib/pingram/models/ten_dlc_campaign_update_request.rb +363 -0
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +11 -5
- data/vendor/bundle/ruby/3.2.0/cache/io-console-0.9.2.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/reline-0.7.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.8.2 → io-console-0.9.2}/gem_make.out +15 -14
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/io/console.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.8.2 → io-console-0.9.2}/mkmf.log +112 -109
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.4.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/ext/io/console/Makefile +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/ext/io/console/console.c +521 -28
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/ext/io/console/extconf.rb +13 -14
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/ext/io/console/win32_vk.inc +313 -165
- data/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/lib/io/console.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/io/ansi.rb +6 -4
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/io/windows.rb +49 -23
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/io.rb +8 -2
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/line_editor.rb +49 -21
- data/vendor/bundle/ruby/3.2.0/gems/reline-0.7.0/lib/reline/version.rb +3 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline.rb +10 -9
- data/vendor/bundle/ruby/3.2.0/specifications/{io-console-0.8.2.gemspec → io-console-0.9.2.gemspec} +3 -3
- data/vendor/bundle/ruby/3.2.0/specifications/{reline-0.6.3.gemspec → reline-0.7.0.gemspec} +2 -2
- metadata +55 -49
- data/lib/pingram/api/push_settings_api.rb +0 -374
- data/vendor/bundle/ruby/3.2.0/cache/io-console-0.8.2.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/reline-0.6.3.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/io/console.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/io-console-0.8.2/lib/io/console.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/reline-0.6.3/lib/reline/version.rb +0 -3
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.8.2 → io-console-0.9.2}/gem.build_complete +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/.document +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/BSDL +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/COPYING +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/README.md +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/lib/io/console/size.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/BSDL +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/COPYING +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/README.md +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/config.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/face.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/history.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/io/dumb.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor/base.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor/composite.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor/emacs.rb +2 -2
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor/vi_command.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor/vi_insert.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_stroke.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/kill_ring.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/unicode/east_asian_width.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/unicode.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/license_of_rb-readline +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ee1439cb064e3002189d3d97e3094fdedfddea7bc337fca3d6017a91b4dbbba
|
|
4
|
+
data.tar.gz: a43a22e366dc3d65907f5d1432ba27df2c0e4ff5ef247f3287396fbdb24ac7e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 259618b800127d125241d7c4a76804da1c1e20e8fce12b3b4605b02c582a412acb8bb32b78581d63197eb93e911e793e1841191ff5b4939616c69e4005e3067e
|
|
7
|
+
data.tar.gz: f928495f54946f4dc6fce17a79fd5b37b19d41acba7d9025ef97aa9420982799ce2f93f8851c144111b36fb6d35fe7df3672511e4d75f8cc3d1d12ade8f954da
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
pingram (1.0.
|
|
4
|
+
pingram (1.0.20)
|
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -17,7 +17,7 @@ GEM
|
|
|
17
17
|
ffi (>= 1.15.0)
|
|
18
18
|
logger
|
|
19
19
|
ffi (1.17.4-x86_64-linux-gnu)
|
|
20
|
-
io-console (0.
|
|
20
|
+
io-console (0.9.2)
|
|
21
21
|
jaro_winkler (1.5.6)
|
|
22
22
|
logger (1.7.0)
|
|
23
23
|
method_source (1.1.0)
|
|
@@ -38,7 +38,7 @@ GEM
|
|
|
38
38
|
racc (1.8.1)
|
|
39
39
|
rainbow (3.1.1)
|
|
40
40
|
rake (13.0.6)
|
|
41
|
-
reline (0.
|
|
41
|
+
reline (0.7.0)
|
|
42
42
|
io-console (~> 0.5)
|
|
43
43
|
rspec (3.13.2)
|
|
44
44
|
rspec-core (~> 3.13.0)
|
|
@@ -319,6 +319,76 @@ module Pingram
|
|
|
319
319
|
return data, status_code, headers
|
|
320
320
|
end
|
|
321
321
|
|
|
322
|
+
# List Stripe invoices for the authenticated account, newest first.
|
|
323
|
+
# @param [Hash] opts the optional parameters
|
|
324
|
+
# @option opts [Float] :limit Max invoices to return (1-100, default 10)
|
|
325
|
+
# @option opts [String] :starting_after Pagination cursor (invoice id from a previous response)
|
|
326
|
+
# @option opts [String] :status Filter by status
|
|
327
|
+
# @option opts [String] :created_after Inclusive lower bound (YYYY-MM-DD or unix seconds)
|
|
328
|
+
# @option opts [String] :created_before Inclusive upper bound (YYYY-MM-DD or unix seconds)
|
|
329
|
+
# @return [ListInvoicesResponse]
|
|
330
|
+
def account_list_invoices(opts = {})
|
|
331
|
+
data, _status_code, _headers = account_list_invoices_with_http_info(opts)
|
|
332
|
+
data
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# List Stripe invoices for the authenticated account, newest first.
|
|
336
|
+
# @param [Hash] opts the optional parameters
|
|
337
|
+
# @option opts [Float] :limit Max invoices to return (1-100, default 10)
|
|
338
|
+
# @option opts [String] :starting_after Pagination cursor (invoice id from a previous response)
|
|
339
|
+
# @option opts [String] :status Filter by status
|
|
340
|
+
# @option opts [String] :created_after Inclusive lower bound (YYYY-MM-DD or unix seconds)
|
|
341
|
+
# @option opts [String] :created_before Inclusive upper bound (YYYY-MM-DD or unix seconds)
|
|
342
|
+
# @return [Array<(ListInvoicesResponse, Integer, Hash)>] ListInvoicesResponse data, response status code and response headers
|
|
343
|
+
def account_list_invoices_with_http_info(opts = {})
|
|
344
|
+
if @api_client.config.debugging
|
|
345
|
+
@api_client.config.logger.debug 'Calling API: AccountApi.account_list_invoices ...'
|
|
346
|
+
end
|
|
347
|
+
# resource path
|
|
348
|
+
local_var_path = '/account/invoices'
|
|
349
|
+
|
|
350
|
+
# query parameters
|
|
351
|
+
query_params = opts[:query_params] || {}
|
|
352
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
353
|
+
query_params[:'startingAfter'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
|
354
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
355
|
+
query_params[:'createdAfter'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
|
356
|
+
query_params[:'createdBefore'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
|
357
|
+
|
|
358
|
+
# header parameters
|
|
359
|
+
header_params = opts[:header_params] || {}
|
|
360
|
+
# HTTP header 'Accept' (if needed)
|
|
361
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
362
|
+
|
|
363
|
+
# form parameters
|
|
364
|
+
form_params = opts[:form_params] || {}
|
|
365
|
+
|
|
366
|
+
# http body (model)
|
|
367
|
+
post_body = opts[:debug_body]
|
|
368
|
+
|
|
369
|
+
# return_type
|
|
370
|
+
return_type = opts[:debug_return_type] || 'ListInvoicesResponse'
|
|
371
|
+
|
|
372
|
+
# auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
|
|
373
|
+
auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
|
|
374
|
+
|
|
375
|
+
new_options = opts.merge(
|
|
376
|
+
:operation => :"AccountApi.account_list_invoices",
|
|
377
|
+
:header_params => header_params,
|
|
378
|
+
:query_params => query_params,
|
|
379
|
+
:form_params => form_params,
|
|
380
|
+
:body => post_body,
|
|
381
|
+
:auth_names => auth_names,
|
|
382
|
+
:return_type => return_type
|
|
383
|
+
)
|
|
384
|
+
|
|
385
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
386
|
+
if @api_client.config.debugging
|
|
387
|
+
@api_client.config.logger.debug "API called: AccountApi#account_list_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
388
|
+
end
|
|
389
|
+
return data, status_code, headers
|
|
390
|
+
end
|
|
391
|
+
|
|
322
392
|
# List Supabase projects for the connected account
|
|
323
393
|
# @param [Hash] opts the optional parameters
|
|
324
394
|
# @return [SupabaseProjectsResponse]
|
|
@@ -560,71 +630,5 @@ module Pingram
|
|
|
560
630
|
end
|
|
561
631
|
return data, status_code, headers
|
|
562
632
|
end
|
|
563
|
-
|
|
564
|
-
# Create or update an account name
|
|
565
|
-
# @param create_account_request_body [CreateAccountRequestBody]
|
|
566
|
-
# @param [Hash] opts the optional parameters
|
|
567
|
-
# @return [CreateAccountResponse]
|
|
568
|
-
def account_update_account(create_account_request_body, opts = {})
|
|
569
|
-
data, _status_code, _headers = account_update_account_with_http_info(create_account_request_body, opts)
|
|
570
|
-
data
|
|
571
|
-
end
|
|
572
|
-
|
|
573
|
-
# Create or update an account name
|
|
574
|
-
# @param create_account_request_body [CreateAccountRequestBody]
|
|
575
|
-
# @param [Hash] opts the optional parameters
|
|
576
|
-
# @return [Array<(CreateAccountResponse, Integer, Hash)>] CreateAccountResponse data, response status code and response headers
|
|
577
|
-
def account_update_account_with_http_info(create_account_request_body, opts = {})
|
|
578
|
-
if @api_client.config.debugging
|
|
579
|
-
@api_client.config.logger.debug 'Calling API: AccountApi.account_update_account ...'
|
|
580
|
-
end
|
|
581
|
-
# verify the required parameter 'create_account_request_body' is set
|
|
582
|
-
if @api_client.config.client_side_validation && create_account_request_body.nil?
|
|
583
|
-
fail ArgumentError, "Missing the required parameter 'create_account_request_body' when calling AccountApi.account_update_account"
|
|
584
|
-
end
|
|
585
|
-
# resource path
|
|
586
|
-
local_var_path = '/account'
|
|
587
|
-
|
|
588
|
-
# query parameters
|
|
589
|
-
query_params = opts[:query_params] || {}
|
|
590
|
-
|
|
591
|
-
# header parameters
|
|
592
|
-
header_params = opts[:header_params] || {}
|
|
593
|
-
# HTTP header 'Accept' (if needed)
|
|
594
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
595
|
-
# HTTP header 'Content-Type'
|
|
596
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
597
|
-
if !content_type.nil?
|
|
598
|
-
header_params['Content-Type'] = content_type
|
|
599
|
-
end
|
|
600
|
-
|
|
601
|
-
# form parameters
|
|
602
|
-
form_params = opts[:form_params] || {}
|
|
603
|
-
|
|
604
|
-
# http body (model)
|
|
605
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_account_request_body)
|
|
606
|
-
|
|
607
|
-
# return_type
|
|
608
|
-
return_type = opts[:debug_return_type] || 'CreateAccountResponse'
|
|
609
|
-
|
|
610
|
-
# auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
|
|
611
|
-
auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
|
|
612
|
-
|
|
613
|
-
new_options = opts.merge(
|
|
614
|
-
:operation => :"AccountApi.account_update_account",
|
|
615
|
-
:header_params => header_params,
|
|
616
|
-
:query_params => query_params,
|
|
617
|
-
:form_params => form_params,
|
|
618
|
-
:body => post_body,
|
|
619
|
-
:auth_names => auth_names,
|
|
620
|
-
:return_type => return_type
|
|
621
|
-
)
|
|
622
|
-
|
|
623
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
624
|
-
if @api_client.config.debugging
|
|
625
|
-
@api_client.config.logger.debug "API called: AccountApi#account_update_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
626
|
-
end
|
|
627
|
-
return data, status_code, headers
|
|
628
|
-
end
|
|
629
633
|
end
|
|
630
634
|
end
|
|
@@ -19,6 +19,67 @@ module Pingram
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Remove all email suppressions of the given reason for users in the environment
|
|
23
|
+
# @param reason [String] Suppression reason to clear (retryable | bounces)
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [DeleteEmailSuppressionsResponse]
|
|
26
|
+
def email_delete_suppressions(reason, opts = {})
|
|
27
|
+
data, _status_code, _headers = email_delete_suppressions_with_http_info(reason, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Remove all email suppressions of the given reason for users in the environment
|
|
32
|
+
# @param reason [String] Suppression reason to clear (retryable | bounces)
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(DeleteEmailSuppressionsResponse, Integer, Hash)>] DeleteEmailSuppressionsResponse data, response status code and response headers
|
|
35
|
+
def email_delete_suppressions_with_http_info(reason, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: EmailApi.email_delete_suppressions ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'reason' is set
|
|
40
|
+
if @api_client.config.client_side_validation && reason.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'reason' when calling EmailApi.email_delete_suppressions"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/email/suppressions/{reason}'.sub('{' + 'reason' + '}', CGI.escape(reason.to_s))
|
|
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
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:debug_body]
|
|
59
|
+
|
|
60
|
+
# return_type
|
|
61
|
+
return_type = opts[:debug_return_type] || 'DeleteEmailSuppressionsResponse'
|
|
62
|
+
|
|
63
|
+
# auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
|
|
64
|
+
auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
|
|
65
|
+
|
|
66
|
+
new_options = opts.merge(
|
|
67
|
+
:operation => :"EmailApi.email_delete_suppressions",
|
|
68
|
+
:header_params => header_params,
|
|
69
|
+
:query_params => query_params,
|
|
70
|
+
:form_params => form_params,
|
|
71
|
+
:body => post_body,
|
|
72
|
+
:auth_names => auth_names,
|
|
73
|
+
:return_type => return_type
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
77
|
+
if @api_client.config.debugging
|
|
78
|
+
@api_client.config.logger.debug "API called: EmailApi#email_delete_suppressions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
79
|
+
end
|
|
80
|
+
return data, status_code, headers
|
|
81
|
+
end
|
|
82
|
+
|
|
22
83
|
# 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
84
|
# @param send_email_request [SendEmailRequest]
|
|
24
85
|
# @param [Hash] opts the optional parameters
|
|
@@ -352,7 +352,7 @@ module Pingram
|
|
|
352
352
|
return data, status_code, headers
|
|
353
353
|
end
|
|
354
354
|
|
|
355
|
-
# Updates a
|
|
355
|
+
# Updates a member. Account owners can set role to \"owner\" or \"admin\" on other members.
|
|
356
356
|
# @param env_id [String] Environment ID
|
|
357
357
|
# @param user_id [String] User ID to update
|
|
358
358
|
# @param member_update_request [MemberUpdateRequest]
|
|
@@ -363,7 +363,7 @@ module Pingram
|
|
|
363
363
|
data
|
|
364
364
|
end
|
|
365
365
|
|
|
366
|
-
# Updates a
|
|
366
|
+
# Updates a member. Account owners can set role to \"owner\" or \"admin\" on other members.
|
|
367
367
|
# @param env_id [String] Environment ID
|
|
368
368
|
# @param user_id [String] User ID to update
|
|
369
369
|
# @param member_update_request [MemberUpdateRequest]
|
data/lib/pingram/api_client.rb
CHANGED
|
@@ -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.
|
|
35
|
+
@user_agent = "pingram-ruby/1.0.20"
|
|
36
36
|
@default_headers = {
|
|
37
37
|
'Content-Type' => 'application/json',
|
|
38
38
|
'User-Agent' => @user_agent
|
|
@@ -38,8 +38,6 @@ require_relative 'api/numbers_api'
|
|
|
38
38
|
|
|
39
39
|
require_relative 'api/profile_api'
|
|
40
40
|
|
|
41
|
-
require_relative 'api/push_settings_api'
|
|
42
|
-
|
|
43
41
|
require_relative 'api/sender_api'
|
|
44
42
|
|
|
45
43
|
require_relative 'api/sms_api'
|
|
@@ -114,8 +112,6 @@ module Pingram
|
|
|
114
112
|
|
|
115
113
|
@profile = Pingram::ProfileApi.new(@api_client)
|
|
116
114
|
|
|
117
|
-
@push_settings = Pingram::PushSettingsApi.new(@api_client)
|
|
118
|
-
|
|
119
115
|
@sender = Pingram::SenderApi.new(@api_client)
|
|
120
116
|
|
|
121
117
|
@sms = Pingram::SmsApi.new(@api_client)
|
|
@@ -225,12 +221,6 @@ module Pingram
|
|
|
225
221
|
end
|
|
226
222
|
|
|
227
223
|
|
|
228
|
-
# @return [Pingram::PushSettingsApi]
|
|
229
|
-
def push_settings
|
|
230
|
-
@push_settings
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
|
|
234
224
|
# @return [Pingram::SenderApi]
|
|
235
225
|
def sender
|
|
236
226
|
@sender
|
|
@@ -14,13 +14,14 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
# Response for campaign Telnyx webhook handler.
|
|
18
|
+
class CampaignWebhookResponse < ApiModelBase
|
|
19
|
+
attr_accessor :message
|
|
19
20
|
|
|
20
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
22
|
def self.attribute_map
|
|
22
23
|
{
|
|
23
|
-
:'
|
|
24
|
+
:'message' => :'message'
|
|
24
25
|
}
|
|
25
26
|
end
|
|
26
27
|
|
|
@@ -37,7 +38,7 @@ module Pingram
|
|
|
37
38
|
# Attribute type mapping.
|
|
38
39
|
def self.openapi_types
|
|
39
40
|
{
|
|
40
|
-
:'
|
|
41
|
+
:'message' => :'String'
|
|
41
42
|
}
|
|
42
43
|
end
|
|
43
44
|
|
|
@@ -51,22 +52,22 @@ module Pingram
|
|
|
51
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
53
|
def initialize(attributes = {})
|
|
53
54
|
if (!attributes.is_a?(Hash))
|
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::CampaignWebhookResponse` initialize method"
|
|
55
56
|
end
|
|
56
57
|
|
|
57
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
59
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
61
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::CampaignWebhookResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
62
63
|
end
|
|
63
64
|
h[k.to_sym] = v
|
|
64
65
|
}
|
|
65
66
|
|
|
66
|
-
if attributes.key?(:'
|
|
67
|
-
self.
|
|
67
|
+
if attributes.key?(:'message')
|
|
68
|
+
self.message = attributes[:'message']
|
|
68
69
|
else
|
|
69
|
-
self.
|
|
70
|
+
self.message = nil
|
|
70
71
|
end
|
|
71
72
|
end
|
|
72
73
|
|
|
@@ -75,8 +76,8 @@ module Pingram
|
|
|
75
76
|
def list_invalid_properties
|
|
76
77
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
77
78
|
invalid_properties = Array.new
|
|
78
|
-
if @
|
|
79
|
-
invalid_properties.push('invalid value for "
|
|
79
|
+
if @message.nil?
|
|
80
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
|
80
81
|
end
|
|
81
82
|
|
|
82
83
|
invalid_properties
|
|
@@ -86,18 +87,18 @@ module Pingram
|
|
|
86
87
|
# @return true if the model is valid
|
|
87
88
|
def valid?
|
|
88
89
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
89
|
-
return false if @
|
|
90
|
+
return false if @message.nil?
|
|
90
91
|
true
|
|
91
92
|
end
|
|
92
93
|
|
|
93
94
|
# Custom attribute writer method with validation
|
|
94
|
-
# @param [Object]
|
|
95
|
-
def
|
|
96
|
-
if
|
|
97
|
-
fail ArgumentError, '
|
|
95
|
+
# @param [Object] message Value to be assigned
|
|
96
|
+
def message=(message)
|
|
97
|
+
if message.nil?
|
|
98
|
+
fail ArgumentError, 'message cannot be nil'
|
|
98
99
|
end
|
|
99
100
|
|
|
100
|
-
@
|
|
101
|
+
@message = message
|
|
101
102
|
end
|
|
102
103
|
|
|
103
104
|
# Checks equality by comparing each attribute.
|
|
@@ -105,7 +106,7 @@ module Pingram
|
|
|
105
106
|
def ==(o)
|
|
106
107
|
return true if self.equal?(o)
|
|
107
108
|
self.class == o.class &&
|
|
108
|
-
|
|
109
|
+
message == o.message
|
|
109
110
|
end
|
|
110
111
|
|
|
111
112
|
# @see the `==` method
|
|
@@ -117,7 +118,7 @@ module Pingram
|
|
|
117
118
|
# Calculates hash code according to all attributes.
|
|
118
119
|
# @return [Integer] Hash code
|
|
119
120
|
def hash
|
|
120
|
-
[
|
|
121
|
+
[message].hash
|
|
121
122
|
end
|
|
122
123
|
|
|
123
124
|
# Builds the object from hash
|
|
@@ -0,0 +1,150 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Pingram
|
|
17
|
+
class CreateAccountRequest < ApiModelBase
|
|
18
|
+
# First-touch PostHog props from the client; attached to signup events.
|
|
19
|
+
attr_accessor :attribution
|
|
20
|
+
|
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
+
def self.attribute_map
|
|
23
|
+
{
|
|
24
|
+
:'attribution' => :'attribution'
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Returns attribute mapping this model knows about
|
|
29
|
+
def self.acceptable_attribute_map
|
|
30
|
+
attribute_map
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
|
34
|
+
def self.acceptable_attributes
|
|
35
|
+
acceptable_attribute_map.values
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Attribute type mapping.
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'attribution' => :'Hash<String, String>'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# List of attributes with nullable: true
|
|
46
|
+
def self.openapi_nullable
|
|
47
|
+
Set.new([
|
|
48
|
+
])
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Initializes the object
|
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
|
+
def initialize(attributes = {})
|
|
54
|
+
if (!attributes.is_a?(Hash))
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::CreateAccountRequest` initialize method"
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::CreateAccountRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
|
+
end
|
|
64
|
+
h[k.to_sym] = v
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if attributes.key?(:'attribution')
|
|
68
|
+
if (value = attributes[:'attribution']).is_a?(Hash)
|
|
69
|
+
self.attribution = value
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
75
|
+
# @return Array for valid properties with the reasons
|
|
76
|
+
def list_invalid_properties
|
|
77
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
78
|
+
invalid_properties = Array.new
|
|
79
|
+
invalid_properties
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Check to see if the all the properties in the model are valid
|
|
83
|
+
# @return true if the model is valid
|
|
84
|
+
def valid?
|
|
85
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
86
|
+
true
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Checks equality by comparing each attribute.
|
|
90
|
+
# @param [Object] Object to be compared
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
attribution == o.attribution
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# @see the `==` method
|
|
98
|
+
# @param [Object] Object to be compared
|
|
99
|
+
def eql?(o)
|
|
100
|
+
self == o
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Calculates hash code according to all attributes.
|
|
104
|
+
# @return [Integer] Hash code
|
|
105
|
+
def hash
|
|
106
|
+
[attribution].hash
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Builds the object from hash
|
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
111
|
+
# @return [Object] Returns the model itself
|
|
112
|
+
def self.build_from_hash(attributes)
|
|
113
|
+
return nil unless attributes.is_a?(Hash)
|
|
114
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
115
|
+
transformed_hash = {}
|
|
116
|
+
openapi_types.each_pair do |key, type|
|
|
117
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
118
|
+
transformed_hash["#{key}"] = nil
|
|
119
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
120
|
+
# check to ensure the input is an array given that the attribute
|
|
121
|
+
# is documented as an array but the input is not
|
|
122
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
123
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
124
|
+
end
|
|
125
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
126
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
new(transformed_hash)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Returns the object in the form of hash
|
|
133
|
+
# @return [Hash] Returns the object in the form of hash
|
|
134
|
+
def to_hash
|
|
135
|
+
hash = {}
|
|
136
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
137
|
+
value = self.send(attr)
|
|
138
|
+
if value.nil?
|
|
139
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
140
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
hash[param] = _to_hash(value)
|
|
144
|
+
end
|
|
145
|
+
hash
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
end
|