pingram 1.0.36 → 1.0.38
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 +2 -2
- data/lib/pingram/api/account_api.rb +244 -2
- data/lib/pingram/api/library_api.rb +2 -2
- data/lib/pingram/api/logs_api.rb +61 -0
- data/lib/pingram/api/profile_api.rb +0 -66
- data/lib/pingram/api/webhooks_api.rb +4 -4
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/models/account_get_response.rb +13 -4
- data/lib/pingram/models/account_get_response_billing_alerts.rb +224 -0
- data/lib/pingram/models/account_patch_request.rb +13 -4
- data/lib/pingram/models/billing_email.rb +177 -0
- data/lib/pingram/models/billing_post_response_body.rb +10 -1
- data/lib/pingram/models/cancel_subscription_request.rb +168 -0
- data/lib/pingram/models/{change_email_request.rb → confirm_change_email_request.rb} +19 -19
- data/lib/pingram/models/create_library_request.rb +1 -1
- data/lib/pingram/models/get_logs_response_messages_inner.rb +4 -0
- data/lib/pingram/models/get_logs_response_messages_inner_attachments_inner.rb +52 -4
- data/lib/pingram/models/logs_get_response_logs_inner.rb +60 -1
- data/lib/pingram/models/phone_verify_start_response.rb +14 -4
- data/lib/pingram/models/sender_post_body_sms.rb +1 -1
- data/lib/pingram/models/sender_post_body_sms_auto_reply.rb +2 -1
- data/lib/pingram/models/slack_connect_invite_response.rb +190 -0
- data/lib/pingram/models/start_change_email_request.rb +201 -0
- data/lib/pingram/models/update_billing_email_request.rb +184 -0
- data/lib/pingram/models/webhook_endpoint_upsert_request.rb +1 -1
- data/lib/pingram/models/webhook_event.rb +88 -6
- data/lib/pingram/models/webhook_event_usage_value.rb +193 -0
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +8 -1
- data/vendor/bundle/ruby/3.2.0/cache/date-3.6.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.6.0/date_core.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.6.0/gem_make.out +26 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{date-3.5.1 → date-3.6.0}/mkmf.log +55 -2
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.4/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.4/mkmf.log +3 -3
- 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.5.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/{date-3.5.1 → date-3.6.0}/ext/date/Makefile +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{date-3.5.1 → date-3.6.0}/ext/date/date_core.c +293 -77
- data/vendor/bundle/ruby/3.2.0/gems/{date-3.5.1 → date-3.6.0}/ext/date/date_parse.c +14 -4
- data/vendor/bundle/ruby/3.2.0/gems/{date-3.5.1 → date-3.6.0}/ext/date/date_strptime.c +13 -13
- data/vendor/bundle/ruby/3.2.0/gems/{date-3.5.1 → date-3.6.0}/ext/date/extconf.rb +6 -0
- data/vendor/bundle/ruby/3.2.0/gems/{date-3.5.1 → date-3.6.0}/lib/date.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/date-3.6.0/lib/date_core.so +0 -0
- data/vendor/bundle/ruby/3.2.0/specifications/{date-3.5.1.gemspec → date-3.6.0.gemspec} +3 -3
- metadata +31 -24
- data/vendor/bundle/ruby/3.2.0/cache/date-3.5.1.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/date_core.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +0 -24
- data/vendor/bundle/ruby/3.2.0/gems/date-3.5.1/lib/date_core.so +0 -0
- /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{date-3.5.1 → date-3.6.0}/gem.build_complete +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{date-3.5.1 → date-3.6.0}/BSDL +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{date-3.5.1 → date-3.6.0}/COPYING +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{date-3.5.1 → date-3.6.0}/README.md +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{date-3.5.1 → date-3.6.0}/ext/date/date_strftime.c +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{date-3.5.1 → date-3.6.0}/ext/date/date_tmx.h +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{date-3.5.1 → date-3.6.0}/ext/date/prereq.mk +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{date-3.5.1 → date-3.6.0}/ext/date/zonetab.h +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{date-3.5.1 → date-3.6.0}/ext/date/zonetab.list +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6ec5493d49a8f9bab8f71746b3ba6d89b6482b3e045559785ee29f4f50381d2b
|
|
4
|
+
data.tar.gz: dd077466c0bb462e879e3c896eda7e5c54b66bbaa709213913b703ee1716469b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 970e33fa4adff43a013129f394901bad68a9377a9c9923e02ac03aa37b950906dbc5c39719f8d1ff90af151e5d92474890caaca4fa9ff6108a4b2cf65251fb9a
|
|
7
|
+
data.tar.gz: 791e8d54009c3084df6156930552da132df8901a08f75795ff0167b719262683af36f3e06e9e7ffce9e7560d1db236fa795fcef288f20aec0b11c4caf66b6c94
|
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.38)
|
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -11,7 +11,7 @@ GEM
|
|
|
11
11
|
byebug (13.0.0)
|
|
12
12
|
reline (>= 0.6.0)
|
|
13
13
|
coderay (1.1.3)
|
|
14
|
-
date (3.
|
|
14
|
+
date (3.6.0)
|
|
15
15
|
diff-lcs (1.6.2)
|
|
16
16
|
ethon (0.18.0)
|
|
17
17
|
ffi (>= 1.15.0)
|
|
@@ -19,6 +19,72 @@ module Pingram
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Cancel the paid plan at the end of the current billing cycle. Access continues until then.
|
|
23
|
+
# @param cancel_subscription_request [CancelSubscriptionRequest]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [AccountGetResponse]
|
|
26
|
+
def account_cancel_subscription(cancel_subscription_request, opts = {})
|
|
27
|
+
data, _status_code, _headers = account_cancel_subscription_with_http_info(cancel_subscription_request, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Cancel the paid plan at the end of the current billing cycle. Access continues until then.
|
|
32
|
+
# @param cancel_subscription_request [CancelSubscriptionRequest]
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(AccountGetResponse, Integer, Hash)>] AccountGetResponse data, response status code and response headers
|
|
35
|
+
def account_cancel_subscription_with_http_info(cancel_subscription_request, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: AccountApi.account_cancel_subscription ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'cancel_subscription_request' is set
|
|
40
|
+
if @api_client.config.client_side_validation && cancel_subscription_request.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'cancel_subscription_request' when calling AccountApi.account_cancel_subscription"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/account/subscription/cancel'
|
|
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(cancel_subscription_request)
|
|
64
|
+
|
|
65
|
+
# return_type
|
|
66
|
+
return_type = opts[:debug_return_type] || 'AccountGetResponse'
|
|
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 => :"AccountApi.account_cancel_subscription",
|
|
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: AccountApi#account_cancel_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
84
|
+
end
|
|
85
|
+
return data, status_code, headers
|
|
86
|
+
end
|
|
87
|
+
|
|
22
88
|
# Configure SMTP settings for a Supabase project
|
|
23
89
|
# @param supabase_configure_request [SupabaseConfigureRequest]
|
|
24
90
|
# @param [Hash] opts the optional parameters
|
|
@@ -140,6 +206,61 @@ module Pingram
|
|
|
140
206
|
return data, status_code, headers
|
|
141
207
|
end
|
|
142
208
|
|
|
209
|
+
# Get the email address that receives invoices for this account.
|
|
210
|
+
# @param [Hash] opts the optional parameters
|
|
211
|
+
# @return [BillingEmail]
|
|
212
|
+
def account_get_billing_email(opts = {})
|
|
213
|
+
data, _status_code, _headers = account_get_billing_email_with_http_info(opts)
|
|
214
|
+
data
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Get the email address that receives invoices for this account.
|
|
218
|
+
# @param [Hash] opts the optional parameters
|
|
219
|
+
# @return [Array<(BillingEmail, Integer, Hash)>] BillingEmail data, response status code and response headers
|
|
220
|
+
def account_get_billing_email_with_http_info(opts = {})
|
|
221
|
+
if @api_client.config.debugging
|
|
222
|
+
@api_client.config.logger.debug 'Calling API: AccountApi.account_get_billing_email ...'
|
|
223
|
+
end
|
|
224
|
+
# resource path
|
|
225
|
+
local_var_path = '/account/billing-email'
|
|
226
|
+
|
|
227
|
+
# query parameters
|
|
228
|
+
query_params = opts[:query_params] || {}
|
|
229
|
+
|
|
230
|
+
# header parameters
|
|
231
|
+
header_params = opts[:header_params] || {}
|
|
232
|
+
# HTTP header 'Accept' (if needed)
|
|
233
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
234
|
+
|
|
235
|
+
# form parameters
|
|
236
|
+
form_params = opts[:form_params] || {}
|
|
237
|
+
|
|
238
|
+
# http body (model)
|
|
239
|
+
post_body = opts[:debug_body]
|
|
240
|
+
|
|
241
|
+
# return_type
|
|
242
|
+
return_type = opts[:debug_return_type] || 'BillingEmail'
|
|
243
|
+
|
|
244
|
+
# auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
|
|
245
|
+
auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
|
|
246
|
+
|
|
247
|
+
new_options = opts.merge(
|
|
248
|
+
:operation => :"AccountApi.account_get_billing_email",
|
|
249
|
+
:header_params => header_params,
|
|
250
|
+
:query_params => query_params,
|
|
251
|
+
:form_params => form_params,
|
|
252
|
+
:body => post_body,
|
|
253
|
+
:auth_names => auth_names,
|
|
254
|
+
:return_type => return_type
|
|
255
|
+
)
|
|
256
|
+
|
|
257
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
258
|
+
if @api_client.config.debugging
|
|
259
|
+
@api_client.config.logger.debug "API called: AccountApi#account_get_billing_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
260
|
+
end
|
|
261
|
+
return data, status_code, headers
|
|
262
|
+
end
|
|
263
|
+
|
|
143
264
|
# Get Supabase integration status for the account
|
|
144
265
|
# @param [Hash] opts the optional parameters
|
|
145
266
|
# @return [SupabaseStatusResponse]
|
|
@@ -513,6 +634,61 @@ module Pingram
|
|
|
513
634
|
return data, status_code, headers
|
|
514
635
|
end
|
|
515
636
|
|
|
637
|
+
# Keep the current paid plan and undo a cancellation scheduled for the end of the billing cycle.
|
|
638
|
+
# @param [Hash] opts the optional parameters
|
|
639
|
+
# @return [AccountGetResponse]
|
|
640
|
+
def account_resume_subscription(opts = {})
|
|
641
|
+
data, _status_code, _headers = account_resume_subscription_with_http_info(opts)
|
|
642
|
+
data
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
# Keep the current paid plan and undo a cancellation scheduled for the end of the billing cycle.
|
|
646
|
+
# @param [Hash] opts the optional parameters
|
|
647
|
+
# @return [Array<(AccountGetResponse, Integer, Hash)>] AccountGetResponse data, response status code and response headers
|
|
648
|
+
def account_resume_subscription_with_http_info(opts = {})
|
|
649
|
+
if @api_client.config.debugging
|
|
650
|
+
@api_client.config.logger.debug 'Calling API: AccountApi.account_resume_subscription ...'
|
|
651
|
+
end
|
|
652
|
+
# resource path
|
|
653
|
+
local_var_path = '/account/subscription/resume'
|
|
654
|
+
|
|
655
|
+
# query parameters
|
|
656
|
+
query_params = opts[:query_params] || {}
|
|
657
|
+
|
|
658
|
+
# header parameters
|
|
659
|
+
header_params = opts[:header_params] || {}
|
|
660
|
+
# HTTP header 'Accept' (if needed)
|
|
661
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
662
|
+
|
|
663
|
+
# form parameters
|
|
664
|
+
form_params = opts[:form_params] || {}
|
|
665
|
+
|
|
666
|
+
# http body (model)
|
|
667
|
+
post_body = opts[:debug_body]
|
|
668
|
+
|
|
669
|
+
# return_type
|
|
670
|
+
return_type = opts[:debug_return_type] || 'AccountGetResponse'
|
|
671
|
+
|
|
672
|
+
# auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
|
|
673
|
+
auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
|
|
674
|
+
|
|
675
|
+
new_options = opts.merge(
|
|
676
|
+
:operation => :"AccountApi.account_resume_subscription",
|
|
677
|
+
:header_params => header_params,
|
|
678
|
+
:query_params => query_params,
|
|
679
|
+
:form_params => form_params,
|
|
680
|
+
:body => post_body,
|
|
681
|
+
:auth_names => auth_names,
|
|
682
|
+
:return_type => return_type
|
|
683
|
+
)
|
|
684
|
+
|
|
685
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
686
|
+
if @api_client.config.debugging
|
|
687
|
+
@api_client.config.logger.debug "API called: AccountApi#account_resume_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
688
|
+
end
|
|
689
|
+
return data, status_code, headers
|
|
690
|
+
end
|
|
691
|
+
|
|
516
692
|
# Revoke Supabase integration (removes stored tokens and project info)
|
|
517
693
|
# @param [Hash] opts the optional parameters
|
|
518
694
|
# @return [SupabaseConfigureResponse]
|
|
@@ -634,7 +810,7 @@ module Pingram
|
|
|
634
810
|
return data, status_code, headers
|
|
635
811
|
end
|
|
636
812
|
|
|
637
|
-
# Update account billing preferences such as auto upgrade.
|
|
813
|
+
# Update account billing preferences such as auto upgrade and usage email alerts.
|
|
638
814
|
# @param account_patch_request [AccountPatchRequest]
|
|
639
815
|
# @param [Hash] opts the optional parameters
|
|
640
816
|
# @return [AccountGetResponse]
|
|
@@ -643,7 +819,7 @@ module Pingram
|
|
|
643
819
|
data
|
|
644
820
|
end
|
|
645
821
|
|
|
646
|
-
# Update account billing preferences such as auto upgrade.
|
|
822
|
+
# Update account billing preferences such as auto upgrade and usage email alerts.
|
|
647
823
|
# @param account_patch_request [AccountPatchRequest]
|
|
648
824
|
# @param [Hash] opts the optional parameters
|
|
649
825
|
# @return [Array<(AccountGetResponse, Integer, Hash)>] AccountGetResponse data, response status code and response headers
|
|
@@ -699,5 +875,71 @@ module Pingram
|
|
|
699
875
|
end
|
|
700
876
|
return data, status_code, headers
|
|
701
877
|
end
|
|
878
|
+
|
|
879
|
+
# Update the email address that receives invoices for this account.
|
|
880
|
+
# @param update_billing_email_request [UpdateBillingEmailRequest]
|
|
881
|
+
# @param [Hash] opts the optional parameters
|
|
882
|
+
# @return [BillingEmail]
|
|
883
|
+
def account_update_billing_email(update_billing_email_request, opts = {})
|
|
884
|
+
data, _status_code, _headers = account_update_billing_email_with_http_info(update_billing_email_request, opts)
|
|
885
|
+
data
|
|
886
|
+
end
|
|
887
|
+
|
|
888
|
+
# Update the email address that receives invoices for this account.
|
|
889
|
+
# @param update_billing_email_request [UpdateBillingEmailRequest]
|
|
890
|
+
# @param [Hash] opts the optional parameters
|
|
891
|
+
# @return [Array<(BillingEmail, Integer, Hash)>] BillingEmail data, response status code and response headers
|
|
892
|
+
def account_update_billing_email_with_http_info(update_billing_email_request, opts = {})
|
|
893
|
+
if @api_client.config.debugging
|
|
894
|
+
@api_client.config.logger.debug 'Calling API: AccountApi.account_update_billing_email ...'
|
|
895
|
+
end
|
|
896
|
+
# verify the required parameter 'update_billing_email_request' is set
|
|
897
|
+
if @api_client.config.client_side_validation && update_billing_email_request.nil?
|
|
898
|
+
fail ArgumentError, "Missing the required parameter 'update_billing_email_request' when calling AccountApi.account_update_billing_email"
|
|
899
|
+
end
|
|
900
|
+
# resource path
|
|
901
|
+
local_var_path = '/account/billing-email'
|
|
902
|
+
|
|
903
|
+
# query parameters
|
|
904
|
+
query_params = opts[:query_params] || {}
|
|
905
|
+
|
|
906
|
+
# header parameters
|
|
907
|
+
header_params = opts[:header_params] || {}
|
|
908
|
+
# HTTP header 'Accept' (if needed)
|
|
909
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
910
|
+
# HTTP header 'Content-Type'
|
|
911
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
912
|
+
if !content_type.nil?
|
|
913
|
+
header_params['Content-Type'] = content_type
|
|
914
|
+
end
|
|
915
|
+
|
|
916
|
+
# form parameters
|
|
917
|
+
form_params = opts[:form_params] || {}
|
|
918
|
+
|
|
919
|
+
# http body (model)
|
|
920
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_billing_email_request)
|
|
921
|
+
|
|
922
|
+
# return_type
|
|
923
|
+
return_type = opts[:debug_return_type] || 'BillingEmail'
|
|
924
|
+
|
|
925
|
+
# auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
|
|
926
|
+
auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
|
|
927
|
+
|
|
928
|
+
new_options = opts.merge(
|
|
929
|
+
:operation => :"AccountApi.account_update_billing_email",
|
|
930
|
+
:header_params => header_params,
|
|
931
|
+
:query_params => query_params,
|
|
932
|
+
:form_params => form_params,
|
|
933
|
+
:body => post_body,
|
|
934
|
+
:auth_names => auth_names,
|
|
935
|
+
:return_type => return_type
|
|
936
|
+
)
|
|
937
|
+
|
|
938
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
939
|
+
if @api_client.config.debugging
|
|
940
|
+
@api_client.config.logger.debug "API called: AccountApi#account_update_billing_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
941
|
+
end
|
|
942
|
+
return data, status_code, headers
|
|
943
|
+
end
|
|
702
944
|
end
|
|
703
945
|
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
|
-
# Create an upload slot in the account library. PUT the file to the returned uploadUrl with
|
|
22
|
+
# Create an upload slot in the account library. contentType must be image/png, image/jpeg, image/gif, or image/webp. PUT the file to the returned uploadUrl with that Content-Type, then use the returned url in emails and the editor.
|
|
23
23
|
# @param use_case [String] Library use-case
|
|
24
24
|
# @param create_library_request [CreateLibraryRequest]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
@@ -29,7 +29,7 @@ module Pingram
|
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
# Create an upload slot in the account library. PUT the file to the returned uploadUrl with
|
|
32
|
+
# Create an upload slot in the account library. contentType must be image/png, image/jpeg, image/gif, or image/webp. PUT the file to the returned uploadUrl with that Content-Type, then use the returned url in emails and the editor.
|
|
33
33
|
# @param use_case [String] Library use-case
|
|
34
34
|
# @param create_library_request [CreateLibraryRequest]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
data/lib/pingram/api/logs_api.rb
CHANGED
|
@@ -257,6 +257,67 @@ module Pingram
|
|
|
257
257
|
return data, status_code, headers
|
|
258
258
|
end
|
|
259
259
|
|
|
260
|
+
# Resend the EMAIL_INBOUND webhook for one inbound email. Uses the original tracking ID and does not count another email. Refused when the message is older than 30 days.
|
|
261
|
+
# @param tracking_id [String] Tracking ID of the inbound email
|
|
262
|
+
# @param [Hash] opts the optional parameters
|
|
263
|
+
# @return [MessageResponse]
|
|
264
|
+
def logs_retry_inbound(tracking_id, opts = {})
|
|
265
|
+
data, _status_code, _headers = logs_retry_inbound_with_http_info(tracking_id, opts)
|
|
266
|
+
data
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# Resend the EMAIL_INBOUND webhook for one inbound email. Uses the original tracking ID and does not count another email. Refused when the message is older than 30 days.
|
|
270
|
+
# @param tracking_id [String] Tracking ID of the inbound email
|
|
271
|
+
# @param [Hash] opts the optional parameters
|
|
272
|
+
# @return [Array<(MessageResponse, Integer, Hash)>] MessageResponse data, response status code and response headers
|
|
273
|
+
def logs_retry_inbound_with_http_info(tracking_id, opts = {})
|
|
274
|
+
if @api_client.config.debugging
|
|
275
|
+
@api_client.config.logger.debug 'Calling API: LogsApi.logs_retry_inbound ...'
|
|
276
|
+
end
|
|
277
|
+
# verify the required parameter 'tracking_id' is set
|
|
278
|
+
if @api_client.config.client_side_validation && tracking_id.nil?
|
|
279
|
+
fail ArgumentError, "Missing the required parameter 'tracking_id' when calling LogsApi.logs_retry_inbound"
|
|
280
|
+
end
|
|
281
|
+
# resource path
|
|
282
|
+
local_var_path = '/logs/retry/{trackingId}'.sub('{' + 'trackingId' + '}', CGI.escape(tracking_id.to_s))
|
|
283
|
+
|
|
284
|
+
# query parameters
|
|
285
|
+
query_params = opts[:query_params] || {}
|
|
286
|
+
|
|
287
|
+
# header parameters
|
|
288
|
+
header_params = opts[:header_params] || {}
|
|
289
|
+
# HTTP header 'Accept' (if needed)
|
|
290
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
291
|
+
|
|
292
|
+
# form parameters
|
|
293
|
+
form_params = opts[:form_params] || {}
|
|
294
|
+
|
|
295
|
+
# http body (model)
|
|
296
|
+
post_body = opts[:debug_body]
|
|
297
|
+
|
|
298
|
+
# return_type
|
|
299
|
+
return_type = opts[:debug_return_type] || 'MessageResponse'
|
|
300
|
+
|
|
301
|
+
# auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
|
|
302
|
+
auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
|
|
303
|
+
|
|
304
|
+
new_options = opts.merge(
|
|
305
|
+
:operation => :"LogsApi.logs_retry_inbound",
|
|
306
|
+
:header_params => header_params,
|
|
307
|
+
:query_params => query_params,
|
|
308
|
+
:form_params => form_params,
|
|
309
|
+
:body => post_body,
|
|
310
|
+
:auth_names => auth_names,
|
|
311
|
+
:return_type => return_type
|
|
312
|
+
)
|
|
313
|
+
|
|
314
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
315
|
+
if @api_client.config.debugging
|
|
316
|
+
@api_client.config.logger.debug "API called: LogsApi#logs_retry_inbound\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
317
|
+
end
|
|
318
|
+
return data, status_code, headers
|
|
319
|
+
end
|
|
320
|
+
|
|
260
321
|
# Start an asynchronous log search over a date range. Returns a `queryId`; poll with Get Log Query Results until status is Complete.
|
|
261
322
|
# @param log_query_post_body [LogQueryPostBody]
|
|
262
323
|
# @param [Hash] opts the optional parameters
|
|
@@ -85,72 +85,6 @@ module Pingram
|
|
|
85
85
|
return data, status_code, headers
|
|
86
86
|
end
|
|
87
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
|
-
|
|
154
88
|
# Permanently delete the authenticated user's account
|
|
155
89
|
# @param delete_account_request [DeleteAccountRequest]
|
|
156
90
|
# @param [Hash] opts the optional parameters
|
|
@@ -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 webhook endpoint. Pingram POSTs signed JSON to the URL when one of the subscribed events happens. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be
|
|
22
|
+
# Create a webhook endpoint. Pingram POSTs signed JSON to the URL when one of the subscribed events happens. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx.
|
|
23
23
|
# @param webhook_endpoint_upsert_request [WebhookEndpointUpsertRequest]
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @return [WebhookEndpoint]
|
|
@@ -28,7 +28,7 @@ module Pingram
|
|
|
28
28
|
data
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
# Create a webhook endpoint. Pingram POSTs signed JSON to the URL when one of the subscribed events happens. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be
|
|
31
|
+
# Create a webhook endpoint. Pingram POSTs signed JSON to the URL when one of the subscribed events happens. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx.
|
|
32
32
|
# @param webhook_endpoint_upsert_request [WebhookEndpointUpsertRequest]
|
|
33
33
|
# @param [Hash] opts the optional parameters
|
|
34
34
|
# @return [Array<(WebhookEndpoint, Integer, Hash)>] WebhookEndpoint data, response status code and response headers
|
|
@@ -201,7 +201,7 @@ module Pingram
|
|
|
201
201
|
return data, status_code, headers
|
|
202
202
|
end
|
|
203
203
|
|
|
204
|
-
# Replace one webhook endpoint's URL and its full event subscription. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it. The URL must be
|
|
204
|
+
# Replace one webhook endpoint's URL and its full event subscription. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it. The URL must be a public HTTPS URL.
|
|
205
205
|
# @param endpoint_id [String] Id of the webhook endpoint, from list or create.
|
|
206
206
|
# @param webhook_endpoint_upsert_request [WebhookEndpointUpsertRequest]
|
|
207
207
|
# @param [Hash] opts the optional parameters
|
|
@@ -211,7 +211,7 @@ module Pingram
|
|
|
211
211
|
data
|
|
212
212
|
end
|
|
213
213
|
|
|
214
|
-
# Replace one webhook endpoint's URL and its full event subscription. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it. The URL must be
|
|
214
|
+
# Replace one webhook endpoint's URL and its full event subscription. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it. The URL must be a public HTTPS URL.
|
|
215
215
|
# @param endpoint_id [String] Id of the webhook endpoint, from list or create.
|
|
216
216
|
# @param webhook_endpoint_upsert_request [WebhookEndpointUpsertRequest]
|
|
217
217
|
# @param [Hash] opts the optional parameters
|
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.38"
|
|
36
36
|
@default_headers = {
|
|
37
37
|
'Content-Type' => 'application/json',
|
|
38
38
|
'User-Agent' => @user_agent
|
|
@@ -55,6 +55,8 @@ module Pingram
|
|
|
55
55
|
# When true, paid accounts move up one budget tier at 90% of the monthly budget.
|
|
56
56
|
attr_accessor :auto_upgrade
|
|
57
57
|
|
|
58
|
+
attr_accessor :billing_alerts
|
|
59
|
+
|
|
58
60
|
class EnumAttributeValidator
|
|
59
61
|
attr_reader :datatype
|
|
60
62
|
attr_reader :allowable_values
|
|
@@ -97,7 +99,8 @@ module Pingram
|
|
|
97
99
|
:'pending_downgrade_effective_date' => :'pendingDowngradeEffectiveDate',
|
|
98
100
|
:'pending_downgrade_cost_cap' => :'pendingDowngradeCostCap',
|
|
99
101
|
:'pending_downgrade_account_type' => :'pendingDowngradeAccountType',
|
|
100
|
-
:'auto_upgrade' => :'autoUpgrade'
|
|
102
|
+
:'auto_upgrade' => :'autoUpgrade',
|
|
103
|
+
:'billing_alerts' => :'billingAlerts'
|
|
101
104
|
}
|
|
102
105
|
end
|
|
103
106
|
|
|
@@ -131,7 +134,8 @@ module Pingram
|
|
|
131
134
|
:'pending_downgrade_effective_date' => :'String',
|
|
132
135
|
:'pending_downgrade_cost_cap' => :'Float',
|
|
133
136
|
:'pending_downgrade_account_type' => :'String',
|
|
134
|
-
:'auto_upgrade' => :'Boolean'
|
|
137
|
+
:'auto_upgrade' => :'Boolean',
|
|
138
|
+
:'billing_alerts' => :'AccountGetResponseBillingAlerts'
|
|
135
139
|
}
|
|
136
140
|
end
|
|
137
141
|
|
|
@@ -243,6 +247,10 @@ module Pingram
|
|
|
243
247
|
if attributes.key?(:'auto_upgrade')
|
|
244
248
|
self.auto_upgrade = attributes[:'auto_upgrade']
|
|
245
249
|
end
|
|
250
|
+
|
|
251
|
+
if attributes.key?(:'billing_alerts')
|
|
252
|
+
self.billing_alerts = attributes[:'billing_alerts']
|
|
253
|
+
end
|
|
246
254
|
end
|
|
247
255
|
|
|
248
256
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -437,7 +445,8 @@ module Pingram
|
|
|
437
445
|
pending_downgrade_effective_date == o.pending_downgrade_effective_date &&
|
|
438
446
|
pending_downgrade_cost_cap == o.pending_downgrade_cost_cap &&
|
|
439
447
|
pending_downgrade_account_type == o.pending_downgrade_account_type &&
|
|
440
|
-
auto_upgrade == o.auto_upgrade
|
|
448
|
+
auto_upgrade == o.auto_upgrade &&
|
|
449
|
+
billing_alerts == o.billing_alerts
|
|
441
450
|
end
|
|
442
451
|
|
|
443
452
|
# @see the `==` method
|
|
@@ -449,7 +458,7 @@ module Pingram
|
|
|
449
458
|
# Calculates hash code according to all attributes.
|
|
450
459
|
# @return [Integer] Hash code
|
|
451
460
|
def hash
|
|
452
|
-
[account_id, account_type, creator, name, messages_cap, cost_cap, sms_cap, call_cap, billing_version, anniversary_date, created_at, updated_at, status, subscription_status, pending_downgrade_effective_date, pending_downgrade_cost_cap, pending_downgrade_account_type, auto_upgrade].hash
|
|
461
|
+
[account_id, account_type, creator, name, messages_cap, cost_cap, sms_cap, call_cap, billing_version, anniversary_date, created_at, updated_at, status, subscription_status, pending_downgrade_effective_date, pending_downgrade_cost_cap, pending_downgrade_account_type, auto_upgrade, billing_alerts].hash
|
|
453
462
|
end
|
|
454
463
|
|
|
455
464
|
# Builds the object from hash
|