pingram 1.0.32 → 1.0.34

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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/lib/pingram/api/account_api.rb +2 -2
  4. data/lib/pingram/api/sub_notifications_api.rb +167 -0
  5. data/lib/pingram/api/user_api.rb +0 -248
  6. data/lib/pingram/api_client.rb +1 -1
  7. data/lib/pingram/client_wrapper.rb +10 -0
  8. data/lib/pingram/models/sub_notification.rb +242 -0
  9. data/lib/pingram/models/sub_notification_put_request.rb +164 -0
  10. data/lib/pingram/models/user_preferences_get_response.rb +222 -0
  11. data/lib/pingram/models/user_preferences_get_response_notifications_inner.rb +227 -0
  12. data/lib/pingram/models/user_preferences_get_response_preferences_inner.rb +249 -0
  13. data/lib/pingram/models/user_preferences_get_response_sub_notifications_inner.rb +216 -0
  14. data/lib/pingram/models/user_preferences_post_request_inner.rb +268 -0
  15. data/lib/pingram/models/user_preferences_post_response_inner.rb +253 -0
  16. data/lib/pingram/models/user_preferences_post_response_inner_channels_states_inner.rb +240 -0
  17. data/lib/pingram/version.rb +1 -1
  18. data/lib/pingram.rb +10 -0
  19. data/vendor/bundle/ruby/3.2.0/cache/io-console-0.9.4.gem +0 -0
  20. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
  21. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
  22. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.9.3 → io-console-0.9.4}/gem_make.out +11 -10
  23. data/vendor/bundle/ruby/3.2.0/{gems/io-console-0.9.3/lib → extensions/x86_64-linux/3.2.0/io-console-0.9.4}/io/console.so +0 -0
  24. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.9.3 → io-console-0.9.4}/mkmf.log +29 -6
  25. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  26. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.5.0/gem_make.out +5 -5
  27. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
  28. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
  29. data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.3 → io-console-0.9.4}/ext/io/console/Makefile +1 -1
  30. data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.3 → io-console-0.9.4}/ext/io/console/console.c +4 -1
  31. data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.3 → io-console-0.9.4}/ext/io/console/extconf.rb +12 -1
  32. data/vendor/bundle/ruby/3.2.0/{extensions/x86_64-linux/3.2.0/io-console-0.9.3 → gems/io-console-0.9.4/lib}/io/console.so +0 -0
  33. data/vendor/bundle/ruby/3.2.0/specifications/{io-console-0.9.3.gemspec → io-console-0.9.4.gemspec} +3 -3
  34. metadata +28 -18
  35. data/vendor/bundle/ruby/3.2.0/cache/io-console-0.9.3.gem +0 -0
  36. /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.9.3 → io-console-0.9.4}/gem.build_complete +0 -0
  37. /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.3 → io-console-0.9.4}/.document +0 -0
  38. /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.3 → io-console-0.9.4}/BSDL +0 -0
  39. /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.3 → io-console-0.9.4}/COPYING +0 -0
  40. /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.3 → io-console-0.9.4}/README.md +0 -0
  41. /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.3 → io-console-0.9.4}/ext/io/console/win32_vk.inc +0 -0
  42. /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.3 → io-console-0.9.4}/lib/io/console/size.rb +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4114117ba84a31e9450e71f3f392387afe0ec8a566adc28515bcbfd8b547f9a
4
- data.tar.gz: ca98b0bc4b882386da2281a3a372a5e3cb8583ba6ce2d6f205655f397411568d
3
+ metadata.gz: b30d37411f27d79cbd5c9541640ec5013add89c8447dad19ded7b4e4b6d3c13f
4
+ data.tar.gz: d30611b7e1ec201d1102b8e1e3e19288251d9d351be6f86839bdbe8165ceca70
5
5
  SHA512:
6
- metadata.gz: 9c2cdc19a92d011e3ab1b78d9cae2b77ed36fb540424e0498fd221d904e6eef5c3e87f094ab8710eabd29df4a5bf0434d3a91e11f619315a36b1737af7ea2f67
7
- data.tar.gz: 1ca7d9de2a43274787b4c8de7170985839e298f583fc6b770ab250500ecc3ebc3571d7ef029b4dba372785f34a683dd57254c5a81cf9aaf90cf219d6734cd9bb
6
+ metadata.gz: 4f3d88eb47c1fb8c237a182c90da949ae67abca0e94473d14d00655179cf8c28886af268ad652bbf0190823cd765636ee6ff94ad877b9e73a264f983113dcd9f
7
+ data.tar.gz: 95d5fb3de513033b099218f1e3537cd69872ce1e3a5fb1b36f92c49108104836208281d9589c09f35c832c1606b3b27af320479a08250fc9deb501025cfa5632
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pingram (1.0.32)
4
+ pingram (1.0.34)
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.9.3)
20
+ io-console (0.9.4)
21
21
  jaro_winkler (1.5.6)
22
22
  logger (1.7.0)
23
23
  method_source (1.1.0)
@@ -631,7 +631,7 @@ module Pingram
631
631
  return data, status_code, headers
632
632
  end
633
633
 
634
- # Update account billing preferences. Only account owners can change these settings.
634
+ # Update account billing preferences such as auto upgrade.
635
635
  # @param account_patch_request [AccountPatchRequest]
636
636
  # @param [Hash] opts the optional parameters
637
637
  # @return [AccountGetResponse]
@@ -640,7 +640,7 @@ module Pingram
640
640
  data
641
641
  end
642
642
 
643
- # Update account billing preferences. Only account owners can change these settings.
643
+ # Update account billing preferences such as auto upgrade.
644
644
  # @param account_patch_request [AccountPatchRequest]
645
645
  # @param [Hash] opts the optional parameters
646
646
  # @return [Array<(AccountGetResponse, Integer, Hash)>] AccountGetResponse data, response status code and response headers
@@ -0,0 +1,167 @@
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 SubNotificationsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # This endpoint is no longer maintained and should not be used.
23
+ # @param notification_id [String] The notification ID
24
+ # @param sub_notification_id [String] The sub-notification ID
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [nil]
27
+ def sub_notifications_delete_sub_notification(notification_id, sub_notification_id, opts = {})
28
+ sub_notifications_delete_sub_notification_with_http_info(notification_id, sub_notification_id, opts)
29
+ nil
30
+ end
31
+
32
+ # This endpoint is no longer maintained and should not be used.
33
+ # @param notification_id [String] The notification ID
34
+ # @param sub_notification_id [String] The sub-notification ID
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
+ def sub_notifications_delete_sub_notification_with_http_info(notification_id, sub_notification_id, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: SubNotificationsApi.sub_notifications_delete_sub_notification ...'
40
+ end
41
+ # verify the required parameter 'notification_id' is set
42
+ if @api_client.config.client_side_validation && notification_id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'notification_id' when calling SubNotificationsApi.sub_notifications_delete_sub_notification"
44
+ end
45
+ # verify the required parameter 'sub_notification_id' is set
46
+ if @api_client.config.client_side_validation && sub_notification_id.nil?
47
+ fail ArgumentError, "Missing the required parameter 'sub_notification_id' when calling SubNotificationsApi.sub_notifications_delete_sub_notification"
48
+ end
49
+ # resource path
50
+ local_var_path = '/notifications/{notificationId}/subNotifications/{subNotificationId}'.sub('{' + 'notificationId' + '}', CGI.escape(notification_id.to_s)).sub('{' + 'subNotificationId' + '}', CGI.escape(sub_notification_id.to_s))
51
+
52
+ # query parameters
53
+ query_params = opts[:query_params] || {}
54
+
55
+ # header parameters
56
+ header_params = opts[:header_params] || {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
59
+
60
+ # form parameters
61
+ form_params = opts[:form_params] || {}
62
+
63
+ # http body (model)
64
+ post_body = opts[:debug_body]
65
+
66
+ # return_type
67
+ return_type = opts[:debug_return_type]
68
+
69
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
70
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
71
+
72
+ new_options = opts.merge(
73
+ :operation => :"SubNotificationsApi.sub_notifications_delete_sub_notification",
74
+ :header_params => header_params,
75
+ :query_params => query_params,
76
+ :form_params => form_params,
77
+ :body => post_body,
78
+ :auth_names => auth_names,
79
+ :return_type => return_type
80
+ )
81
+
82
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
83
+ if @api_client.config.debugging
84
+ @api_client.config.logger.debug "API called: SubNotificationsApi#sub_notifications_delete_sub_notification\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
+ end
86
+ return data, status_code, headers
87
+ end
88
+
89
+ # This endpoint is no longer maintained and should not be used.
90
+ # @param notification_id [String] The notification ID
91
+ # @param sub_notification_id [String] The sub-notification ID
92
+ # @param sub_notification_put_request [SubNotificationPUTRequest]
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [SubNotification]
95
+ def sub_notifications_put_sub_notification(notification_id, sub_notification_id, sub_notification_put_request, opts = {})
96
+ data, _status_code, _headers = sub_notifications_put_sub_notification_with_http_info(notification_id, sub_notification_id, sub_notification_put_request, opts)
97
+ data
98
+ end
99
+
100
+ # This endpoint is no longer maintained and should not be used.
101
+ # @param notification_id [String] The notification ID
102
+ # @param sub_notification_id [String] The sub-notification ID
103
+ # @param sub_notification_put_request [SubNotificationPUTRequest]
104
+ # @param [Hash] opts the optional parameters
105
+ # @return [Array<(SubNotification, Integer, Hash)>] SubNotification data, response status code and response headers
106
+ def sub_notifications_put_sub_notification_with_http_info(notification_id, sub_notification_id, sub_notification_put_request, opts = {})
107
+ if @api_client.config.debugging
108
+ @api_client.config.logger.debug 'Calling API: SubNotificationsApi.sub_notifications_put_sub_notification ...'
109
+ end
110
+ # verify the required parameter 'notification_id' is set
111
+ if @api_client.config.client_side_validation && notification_id.nil?
112
+ fail ArgumentError, "Missing the required parameter 'notification_id' when calling SubNotificationsApi.sub_notifications_put_sub_notification"
113
+ end
114
+ # verify the required parameter 'sub_notification_id' is set
115
+ if @api_client.config.client_side_validation && sub_notification_id.nil?
116
+ fail ArgumentError, "Missing the required parameter 'sub_notification_id' when calling SubNotificationsApi.sub_notifications_put_sub_notification"
117
+ end
118
+ # verify the required parameter 'sub_notification_put_request' is set
119
+ if @api_client.config.client_side_validation && sub_notification_put_request.nil?
120
+ fail ArgumentError, "Missing the required parameter 'sub_notification_put_request' when calling SubNotificationsApi.sub_notifications_put_sub_notification"
121
+ end
122
+ # resource path
123
+ local_var_path = '/notifications/{notificationId}/subNotifications/{subNotificationId}'.sub('{' + 'notificationId' + '}', CGI.escape(notification_id.to_s)).sub('{' + 'subNotificationId' + '}', CGI.escape(sub_notification_id.to_s))
124
+
125
+ # query parameters
126
+ query_params = opts[:query_params] || {}
127
+
128
+ # header parameters
129
+ header_params = opts[:header_params] || {}
130
+ # HTTP header 'Accept' (if needed)
131
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
132
+ # HTTP header 'Content-Type'
133
+ content_type = @api_client.select_header_content_type(['application/json'])
134
+ if !content_type.nil?
135
+ header_params['Content-Type'] = content_type
136
+ end
137
+
138
+ # form parameters
139
+ form_params = opts[:form_params] || {}
140
+
141
+ # http body (model)
142
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(sub_notification_put_request)
143
+
144
+ # return_type
145
+ return_type = opts[:debug_return_type] || 'SubNotification'
146
+
147
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
148
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
149
+
150
+ new_options = opts.merge(
151
+ :operation => :"SubNotificationsApi.sub_notifications_put_sub_notification",
152
+ :header_params => header_params,
153
+ :query_params => query_params,
154
+ :form_params => form_params,
155
+ :body => post_body,
156
+ :auth_names => auth_names,
157
+ :return_type => return_type
158
+ )
159
+
160
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
161
+ if @api_client.config.debugging
162
+ @api_client.config.logger.debug "API called: SubNotificationsApi#sub_notifications_put_sub_notification\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
163
+ end
164
+ return data, status_code, headers
165
+ end
166
+ end
167
+ end
@@ -74,122 +74,6 @@ module Pingram
74
74
  return data, status_code, headers
75
75
  end
76
76
 
77
- # Get in-app notifications for a user
78
- # @param [Hash] opts the optional parameters
79
- # @option opts [String] :before Timestamp or ISO date to fetch notifications before
80
- # @option opts [Float] :count Number of notifications to return (default 10)
81
- # @return [GetInappNotificationsResponse]
82
- def user_get_in_app_notifications(opts = {})
83
- data, _status_code, _headers = user_get_in_app_notifications_with_http_info(opts)
84
- data
85
- end
86
-
87
- # Get in-app notifications for a user
88
- # @param [Hash] opts the optional parameters
89
- # @option opts [String] :before Timestamp or ISO date to fetch notifications before
90
- # @option opts [Float] :count Number of notifications to return (default 10)
91
- # @return [Array<(GetInappNotificationsResponse, Integer, Hash)>] GetInappNotificationsResponse data, response status code and response headers
92
- def user_get_in_app_notifications_with_http_info(opts = {})
93
- if @api_client.config.debugging
94
- @api_client.config.logger.debug 'Calling API: UserApi.user_get_in_app_notifications ...'
95
- end
96
- # resource path
97
- local_var_path = '/user/inapp'
98
-
99
- # query parameters
100
- query_params = opts[:query_params] || {}
101
- query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
102
- query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
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
-
109
- # form parameters
110
- form_params = opts[:form_params] || {}
111
-
112
- # http body (model)
113
- post_body = opts[:debug_body]
114
-
115
- # return_type
116
- return_type = opts[:debug_return_type] || 'GetInappNotificationsResponse'
117
-
118
- # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
119
- auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
120
-
121
- new_options = opts.merge(
122
- :operation => :"UserApi.user_get_in_app_notifications",
123
- :header_params => header_params,
124
- :query_params => query_params,
125
- :form_params => form_params,
126
- :body => post_body,
127
- :auth_names => auth_names,
128
- :return_type => return_type
129
- )
130
-
131
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
132
- if @api_client.config.debugging
133
- @api_client.config.logger.debug "API called: UserApi#user_get_in_app_notifications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
134
- end
135
- return data, status_code, headers
136
- end
137
-
138
- # Get the count of unread in-app notifications for a user
139
- # @param [Hash] opts the optional parameters
140
- # @return [InappUnreadCountResponse]
141
- def user_get_in_app_unread_count(opts = {})
142
- data, _status_code, _headers = user_get_in_app_unread_count_with_http_info(opts)
143
- data
144
- end
145
-
146
- # Get the count of unread in-app notifications for a user
147
- # @param [Hash] opts the optional parameters
148
- # @return [Array<(InappUnreadCountResponse, Integer, Hash)>] InappUnreadCountResponse data, response status code and response headers
149
- def user_get_in_app_unread_count_with_http_info(opts = {})
150
- if @api_client.config.debugging
151
- @api_client.config.logger.debug 'Calling API: UserApi.user_get_in_app_unread_count ...'
152
- end
153
- # resource path
154
- local_var_path = '/user/inapp/unread'
155
-
156
- # query parameters
157
- query_params = opts[:query_params] || {}
158
-
159
- # header parameters
160
- header_params = opts[:header_params] || {}
161
- # HTTP header 'Accept' (if needed)
162
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
163
-
164
- # form parameters
165
- form_params = opts[:form_params] || {}
166
-
167
- # http body (model)
168
- post_body = opts[:debug_body]
169
-
170
- # return_type
171
- return_type = opts[:debug_return_type] || 'InappUnreadCountResponse'
172
-
173
- # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
174
- auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
175
-
176
- new_options = opts.merge(
177
- :operation => :"UserApi.user_get_in_app_unread_count",
178
- :header_params => header_params,
179
- :query_params => query_params,
180
- :form_params => form_params,
181
- :body => post_body,
182
- :auth_names => auth_names,
183
- :return_type => return_type
184
- )
185
-
186
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
187
- if @api_client.config.debugging
188
- @api_client.config.logger.debug "API called: UserApi#user_get_in_app_unread_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
- end
190
- return data, status_code, headers
191
- end
192
-
193
77
  # Get a user by ID. All users exist implicitly, returns basic user object if not found in DB.
194
78
  # @param user_id [String] User ID
195
79
  # @param [Hash] opts the optional parameters
@@ -322,137 +206,5 @@ module Pingram
322
206
  end
323
207
  return data, status_code, headers
324
208
  end
325
-
326
- # Mark in-app web notifications as seen/read for a user
327
- # @param in_app_notification_unread_clear_request [InAppNotificationUnreadClearRequest]
328
- # @param [Hash] opts the optional parameters
329
- # @return [SuccessResponse]
330
- def user_mark_in_app_notifications_as_seen(in_app_notification_unread_clear_request, opts = {})
331
- data, _status_code, _headers = user_mark_in_app_notifications_as_seen_with_http_info(in_app_notification_unread_clear_request, opts)
332
- data
333
- end
334
-
335
- # Mark in-app web notifications as seen/read for a user
336
- # @param in_app_notification_unread_clear_request [InAppNotificationUnreadClearRequest]
337
- # @param [Hash] opts the optional parameters
338
- # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
339
- def user_mark_in_app_notifications_as_seen_with_http_info(in_app_notification_unread_clear_request, opts = {})
340
- if @api_client.config.debugging
341
- @api_client.config.logger.debug 'Calling API: UserApi.user_mark_in_app_notifications_as_seen ...'
342
- end
343
- # verify the required parameter 'in_app_notification_unread_clear_request' is set
344
- if @api_client.config.client_side_validation && in_app_notification_unread_clear_request.nil?
345
- fail ArgumentError, "Missing the required parameter 'in_app_notification_unread_clear_request' when calling UserApi.user_mark_in_app_notifications_as_seen"
346
- end
347
- # resource path
348
- local_var_path = '/user/inapp/unread'
349
-
350
- # query parameters
351
- query_params = opts[:query_params] || {}
352
-
353
- # header parameters
354
- header_params = opts[:header_params] || {}
355
- # HTTP header 'Accept' (if needed)
356
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
357
- # HTTP header 'Content-Type'
358
- content_type = @api_client.select_header_content_type(['application/json'])
359
- if !content_type.nil?
360
- header_params['Content-Type'] = content_type
361
- end
362
-
363
- # form parameters
364
- form_params = opts[:form_params] || {}
365
-
366
- # http body (model)
367
- post_body = opts[:debug_body] || @api_client.object_to_http_body(in_app_notification_unread_clear_request)
368
-
369
- # return_type
370
- return_type = opts[:debug_return_type] || 'SuccessResponse'
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 => :"UserApi.user_mark_in_app_notifications_as_seen",
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(:PATCH, local_var_path, new_options)
386
- if @api_client.config.debugging
387
- @api_client.config.logger.debug "API called: UserApi#user_mark_in_app_notifications_as_seen\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
388
- end
389
- return data, status_code, headers
390
- end
391
-
392
- # Update in-app web notification status (opened, archived, clicked, etc.)
393
- # @param in_app_notification_patch_request [InAppNotificationPatchRequest]
394
- # @param [Hash] opts the optional parameters
395
- # @return [SuccessResponse]
396
- def user_update_in_app_notification_status(in_app_notification_patch_request, opts = {})
397
- data, _status_code, _headers = user_update_in_app_notification_status_with_http_info(in_app_notification_patch_request, opts)
398
- data
399
- end
400
-
401
- # Update in-app web notification status (opened, archived, clicked, etc.)
402
- # @param in_app_notification_patch_request [InAppNotificationPatchRequest]
403
- # @param [Hash] opts the optional parameters
404
- # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
405
- def user_update_in_app_notification_status_with_http_info(in_app_notification_patch_request, opts = {})
406
- if @api_client.config.debugging
407
- @api_client.config.logger.debug 'Calling API: UserApi.user_update_in_app_notification_status ...'
408
- end
409
- # verify the required parameter 'in_app_notification_patch_request' is set
410
- if @api_client.config.client_side_validation && in_app_notification_patch_request.nil?
411
- fail ArgumentError, "Missing the required parameter 'in_app_notification_patch_request' when calling UserApi.user_update_in_app_notification_status"
412
- end
413
- # resource path
414
- local_var_path = '/user/inapp'
415
-
416
- # query parameters
417
- query_params = opts[:query_params] || {}
418
-
419
- # header parameters
420
- header_params = opts[:header_params] || {}
421
- # HTTP header 'Accept' (if needed)
422
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
423
- # HTTP header 'Content-Type'
424
- content_type = @api_client.select_header_content_type(['application/json'])
425
- if !content_type.nil?
426
- header_params['Content-Type'] = content_type
427
- end
428
-
429
- # form parameters
430
- form_params = opts[:form_params] || {}
431
-
432
- # http body (model)
433
- post_body = opts[:debug_body] || @api_client.object_to_http_body(in_app_notification_patch_request)
434
-
435
- # return_type
436
- return_type = opts[:debug_return_type] || 'SuccessResponse'
437
-
438
- # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
439
- auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
440
-
441
- new_options = opts.merge(
442
- :operation => :"UserApi.user_update_in_app_notification_status",
443
- :header_params => header_params,
444
- :query_params => query_params,
445
- :form_params => form_params,
446
- :body => post_body,
447
- :auth_names => auth_names,
448
- :return_type => return_type
449
- )
450
-
451
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
452
- if @api_client.config.debugging
453
- @api_client.config.logger.debug "API called: UserApi#user_update_in_app_notification_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
454
- end
455
- return data, status_code, headers
456
- end
457
209
  end
458
210
  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.32"
35
+ @user_agent = "pingram-ruby/1.0.34"
36
36
  @default_headers = {
37
37
  'Content-Type' => 'application/json',
38
38
  'User-Agent' => @user_agent
@@ -50,6 +50,8 @@ require_relative 'api/sender_api'
50
50
 
51
51
  require_relative 'api/sms_api'
52
52
 
53
+ require_relative 'api/sub_notifications_api'
54
+
53
55
  require_relative 'api/templates_api'
54
56
 
55
57
  require_relative 'api/types_api'
@@ -132,6 +134,8 @@ module Pingram
132
134
 
133
135
  @sms = Pingram::SmsApi.new(@api_client)
134
136
 
137
+ @sub_notifications = Pingram::SubNotificationsApi.new(@api_client)
138
+
135
139
  @templates = Pingram::TemplatesApi.new(@api_client)
136
140
 
137
141
  @types = Pingram::TypesApi.new(@api_client)
@@ -273,6 +277,12 @@ module Pingram
273
277
  end
274
278
 
275
279
 
280
+ # @return [Pingram::SubNotificationsApi]
281
+ def sub_notifications
282
+ @sub_notifications
283
+ end
284
+
285
+
276
286
  # @return [Pingram::TemplatesApi]
277
287
  def templates
278
288
  @templates