pingram 1.0.23 → 1.0.25

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 (90) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/lib/pingram/api/email_api.rb +5 -5
  4. data/lib/pingram/api/registrations_api.rb +209 -0
  5. data/lib/pingram/api/user_api.rb +0 -133
  6. data/lib/pingram/api_client.rb +1 -1
  7. data/lib/pingram/client_wrapper.rb +10 -0
  8. data/lib/pingram/models/account_get_response.rb +26 -4
  9. data/lib/pingram/models/billing_post_response_body.rb +23 -1
  10. data/lib/pingram/models/logs_get_response_logs_inner.rb +10 -10
  11. data/lib/pingram/models/ten_dlc_brand_admin_update_request.rb +378 -0
  12. data/lib/pingram/models/ten_dlc_brand_create_request.rb +41 -10
  13. data/lib/pingram/models/ten_dlc_brand_registration_details.rb +1 -0
  14. data/lib/pingram/models/ten_dlc_brand_update_request.rb +24 -38
  15. data/lib/pingram/version.rb +1 -1
  16. data/lib/pingram.rb +2 -2
  17. data/vendor/bundle/ruby/3.2.0/cache/psych-5.5.0.gem +0 -0
  18. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
  19. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
  20. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/gem_make.out +5 -5
  21. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/mkmf.log +3 -3
  22. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  23. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{psych-5.4.0 → psych-5.5.0}/gem_make.out +10 -10
  24. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.5.0/psych.so +0 -0
  25. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
  26. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
  27. data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/README.md +53 -0
  28. data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/extconf.rb +22 -0
  29. data/vendor/bundle/ruby/3.2.0/gems/psych-5.5.0/ext/psych/psych.c +68 -0
  30. data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych.h +4 -0
  31. data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych_emitter.c +4 -0
  32. data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych_parser.c +79 -18
  33. data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/class_loader.rb +1 -0
  34. data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/parser.rb +40 -1
  35. data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/scalar_scanner.rb +15 -3
  36. data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/versions.rb +1 -1
  37. data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/visitors/to_ruby.rb +20 -9
  38. data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/visitors/yaml_tree.rb +0 -3
  39. data/vendor/bundle/ruby/3.2.0/gems/psych-5.5.0/lib/psych.so +0 -0
  40. data/vendor/bundle/ruby/3.2.0/specifications/{psych-5.4.0.gemspec → psych-5.5.0.gemspec} +2 -2
  41. metadata +64 -64
  42. data/lib/pingram/models/delete_email_suppressions_response.rb +0 -192
  43. data/lib/pingram/models/slack_oauth_request.rb +0 -190
  44. data/vendor/bundle/ruby/3.2.0/cache/psych-5.4.0.gem +0 -0
  45. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.4.0/psych.so +0 -0
  46. data/vendor/bundle/ruby/3.2.0/gems/psych-5.4.0/ext/psych/psych.c +0 -36
  47. data/vendor/bundle/ruby/3.2.0/gems/psych-5.4.0/lib/psych.so +0 -0
  48. /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{psych-5.4.0 → psych-5.5.0}/gem.build_complete +0 -0
  49. /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{psych-5.4.0 → psych-5.5.0}/mkmf.log +0 -0
  50. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/CONTRIBUTING.md +0 -0
  51. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/LICENSE +0 -0
  52. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/Makefile +0 -0
  53. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/depend +0 -0
  54. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych_emitter.h +0 -0
  55. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych_parser.h +0 -0
  56. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych_to_ruby.c +0 -0
  57. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych_to_ruby.h +0 -0
  58. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych_yaml_tree.c +0 -0
  59. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych_yaml_tree.h +0 -0
  60. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/coder.rb +0 -0
  61. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/core_ext.rb +0 -0
  62. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/exception.rb +0 -0
  63. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/handler.rb +0 -0
  64. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/handlers/document_stream.rb +0 -0
  65. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/handlers/recorder.rb +0 -0
  66. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/json/ruby_events.rb +0 -0
  67. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/json/stream.rb +0 -0
  68. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/json/tree_builder.rb +0 -0
  69. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/json/yaml_events.rb +0 -0
  70. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/nodes/alias.rb +0 -0
  71. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/nodes/document.rb +0 -0
  72. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/nodes/mapping.rb +0 -0
  73. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/nodes/node.rb +0 -0
  74. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/nodes/scalar.rb +0 -0
  75. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/nodes/sequence.rb +0 -0
  76. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/nodes/stream.rb +0 -0
  77. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/nodes.rb +0 -0
  78. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/omap.rb +0 -0
  79. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/set.rb +0 -0
  80. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/stream.rb +0 -0
  81. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/streaming.rb +0 -0
  82. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/syntax_error.rb +0 -0
  83. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/tree_builder.rb +0 -0
  84. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/visitors/depth_first.rb +0 -0
  85. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/visitors/emitter.rb +0 -0
  86. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/visitors/json_tree.rb +0 -0
  87. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/visitors/visitor.rb +0 -0
  88. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/visitors.rb +0 -0
  89. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/y.rb +0 -0
  90. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych.rb +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c79d2c7d00bb7415ce85ef3c6ff7a9548fabf87d1586157a21f8585ee0deacd3
4
- data.tar.gz: f45b6dc9e550903fdf53c8a9cb08249b4046416da6c3c9f18d55eb76ada341f1
3
+ metadata.gz: a40e934d6c76c61dfd991994caec21cc77a45770b6a455e9bc3d965ade02506c
4
+ data.tar.gz: 378e5208e84f02153580d9fc28b0e292462e29939bf177ee13c458205010a5d5
5
5
  SHA512:
6
- metadata.gz: afc6d61c2ea6dc821679aad06311e9cbfa7d351931853a696811dc6c4faaef70b8167ed832618cfc852565cbcbf4838ba0af844ec05b2380ee3263dc76f5ece0
7
- data.tar.gz: a043e1a031ac0004779dcc6ea3caaf9d9a4a98b39fa1f775133c2e3a1ab97d0dec312757dec5f56b9d5480ded5da861b4ec86174c51f2bbc42371904d6b0efb4
6
+ metadata.gz: fb6b0d51d15a26a466b00db189a14edc559994e1bb398f1df861f9c5d38995240237bb8cefd6bcc3758f73953f71ed62f70134c0087bfdd7789c7bb6d46915c2
7
+ data.tar.gz: 969b719b60bf55ff43cebde3a696ad2a93e40b799b276f0fb0f67da99cea62322ad1937286301e29d1112bf5186a745f608c5cc3a59868c0ca0b22d88d3ce879
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pingram (1.0.23)
4
+ pingram (1.0.25)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -32,7 +32,7 @@ GEM
32
32
  pry-byebug (3.12.0)
33
33
  byebug (~> 13.0)
34
34
  pry (>= 0.13, < 0.17)
35
- psych (5.4.0)
35
+ psych (5.5.0)
36
36
  date
37
37
  stringio
38
38
  racc (1.8.1)
@@ -19,19 +19,19 @@ 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
22
+ # Start removing all email suppressions of the given reason (`retryable` or `bounces`) for users in the environment. Returns immediately after the job is queued — suppressions are not yet cleared when this response is received. Large removals are processed in the background in batches.
23
23
  # @param reason [String] Suppression reason to clear (retryable | bounces)
24
24
  # @param [Hash] opts the optional parameters
25
- # @return [DeleteEmailSuppressionsResponse]
25
+ # @return [MessageResponse]
26
26
  def email_delete_suppressions(reason, opts = {})
27
27
  data, _status_code, _headers = email_delete_suppressions_with_http_info(reason, opts)
28
28
  data
29
29
  end
30
30
 
31
- # Remove all email suppressions of the given reason for users in the environment
31
+ # Start removing all email suppressions of the given reason (&#x60;retryable&#x60; or &#x60;bounces&#x60;) for users in the environment. Returns immediately after the job is queued — suppressions are not yet cleared when this response is received. Large removals are processed in the background in batches.
32
32
  # @param reason [String] Suppression reason to clear (retryable | bounces)
33
33
  # @param [Hash] opts the optional parameters
34
- # @return [Array<(DeleteEmailSuppressionsResponse, Integer, Hash)>] DeleteEmailSuppressionsResponse data, response status code and response headers
34
+ # @return [Array<(MessageResponse, Integer, Hash)>] MessageResponse data, response status code and response headers
35
35
  def email_delete_suppressions_with_http_info(reason, opts = {})
36
36
  if @api_client.config.debugging
37
37
  @api_client.config.logger.debug 'Calling API: EmailApi.email_delete_suppressions ...'
@@ -58,7 +58,7 @@ module Pingram
58
58
  post_body = opts[:debug_body]
59
59
 
60
60
  # return_type
61
- return_type = opts[:debug_return_type] || 'DeleteEmailSuppressionsResponse'
61
+ return_type = opts[:debug_return_type] || 'MessageResponse'
62
62
 
63
63
  # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
64
64
  auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
@@ -0,0 +1,209 @@
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 RegistrationsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create a new 10DLC brand registration. Sets brandStatus to pending_review; Pingram handles carrier submission after review.
23
+ # @param ten_dlc_brand_create_request [TenDlcBrandCreateRequest]
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [TenDlcBrandRegistration]
26
+ def registrations_create_us10dlc_brand(ten_dlc_brand_create_request, opts = {})
27
+ data, _status_code, _headers = registrations_create_us10dlc_brand_with_http_info(ten_dlc_brand_create_request, opts)
28
+ data
29
+ end
30
+
31
+ # Create a new 10DLC brand registration. Sets brandStatus to pending_review; Pingram handles carrier submission after review.
32
+ # @param ten_dlc_brand_create_request [TenDlcBrandCreateRequest]
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(TenDlcBrandRegistration, Integer, Hash)>] TenDlcBrandRegistration data, response status code and response headers
35
+ def registrations_create_us10dlc_brand_with_http_info(ten_dlc_brand_create_request, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: RegistrationsApi.registrations_create_us10dlc_brand ...'
38
+ end
39
+ # verify the required parameter 'ten_dlc_brand_create_request' is set
40
+ if @api_client.config.client_side_validation && ten_dlc_brand_create_request.nil?
41
+ fail ArgumentError, "Missing the required parameter 'ten_dlc_brand_create_request' when calling RegistrationsApi.registrations_create_us10dlc_brand"
42
+ end
43
+ # resource path
44
+ local_var_path = '/registrations/us/10dlc/brand'
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(ten_dlc_brand_create_request)
64
+
65
+ # return_type
66
+ return_type = opts[:debug_return_type] || 'TenDlcBrandRegistration'
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 => :"RegistrationsApi.registrations_create_us10dlc_brand",
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: RegistrationsApi#registrations_create_us10dlc_brand\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ end
85
+ return data, status_code, headers
86
+ end
87
+
88
+ # Get the 10DLC brand registration for the authenticated account. Returns null when no registration exists yet.
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [TenDlcBrandRegistration]
91
+ def registrations_get_us10dlc_brand(opts = {})
92
+ data, _status_code, _headers = registrations_get_us10dlc_brand_with_http_info(opts)
93
+ data
94
+ end
95
+
96
+ # Get the 10DLC brand registration for the authenticated account. Returns null when no registration exists yet.
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [Array<(TenDlcBrandRegistration, Integer, Hash)>] TenDlcBrandRegistration data, response status code and response headers
99
+ def registrations_get_us10dlc_brand_with_http_info(opts = {})
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug 'Calling API: RegistrationsApi.registrations_get_us10dlc_brand ...'
102
+ end
103
+ # resource path
104
+ local_var_path = '/registrations/us/10dlc/brand'
105
+
106
+ # query parameters
107
+ query_params = opts[:query_params] || {}
108
+
109
+ # header parameters
110
+ header_params = opts[:header_params] || {}
111
+ # HTTP header 'Accept' (if needed)
112
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
113
+
114
+ # form parameters
115
+ form_params = opts[:form_params] || {}
116
+
117
+ # http body (model)
118
+ post_body = opts[:debug_body]
119
+
120
+ # return_type
121
+ return_type = opts[:debug_return_type] || 'TenDlcBrandRegistration'
122
+
123
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
124
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
125
+
126
+ new_options = opts.merge(
127
+ :operation => :"RegistrationsApi.registrations_get_us10dlc_brand",
128
+ :header_params => header_params,
129
+ :query_params => query_params,
130
+ :form_params => form_params,
131
+ :body => post_body,
132
+ :auth_names => auth_names,
133
+ :return_type => return_type
134
+ )
135
+
136
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
137
+ if @api_client.config.debugging
138
+ @api_client.config.logger.debug "API called: RegistrationsApi#registrations_get_us10dlc_brand\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
139
+ end
140
+ return data, status_code, headers
141
+ end
142
+
143
+ # Update an existing 10DLC brand registration. Business fields are editable before carrier submission; workflow status is managed by Pingram.
144
+ # @param ten_dlc_brand_update_request [TenDlcBrandUpdateRequest]
145
+ # @param [Hash] opts the optional parameters
146
+ # @return [TenDlcBrandRegistration]
147
+ def registrations_update_us10dlc_brand(ten_dlc_brand_update_request, opts = {})
148
+ data, _status_code, _headers = registrations_update_us10dlc_brand_with_http_info(ten_dlc_brand_update_request, opts)
149
+ data
150
+ end
151
+
152
+ # Update an existing 10DLC brand registration. Business fields are editable before carrier submission; workflow status is managed by Pingram.
153
+ # @param ten_dlc_brand_update_request [TenDlcBrandUpdateRequest]
154
+ # @param [Hash] opts the optional parameters
155
+ # @return [Array<(TenDlcBrandRegistration, Integer, Hash)>] TenDlcBrandRegistration data, response status code and response headers
156
+ def registrations_update_us10dlc_brand_with_http_info(ten_dlc_brand_update_request, opts = {})
157
+ if @api_client.config.debugging
158
+ @api_client.config.logger.debug 'Calling API: RegistrationsApi.registrations_update_us10dlc_brand ...'
159
+ end
160
+ # verify the required parameter 'ten_dlc_brand_update_request' is set
161
+ if @api_client.config.client_side_validation && ten_dlc_brand_update_request.nil?
162
+ fail ArgumentError, "Missing the required parameter 'ten_dlc_brand_update_request' when calling RegistrationsApi.registrations_update_us10dlc_brand"
163
+ end
164
+ # resource path
165
+ local_var_path = '/registrations/us/10dlc/brand'
166
+
167
+ # query parameters
168
+ query_params = opts[:query_params] || {}
169
+
170
+ # header parameters
171
+ header_params = opts[:header_params] || {}
172
+ # HTTP header 'Accept' (if needed)
173
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
174
+ # HTTP header 'Content-Type'
175
+ content_type = @api_client.select_header_content_type(['application/json'])
176
+ if !content_type.nil?
177
+ header_params['Content-Type'] = content_type
178
+ end
179
+
180
+ # form parameters
181
+ form_params = opts[:form_params] || {}
182
+
183
+ # http body (model)
184
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(ten_dlc_brand_update_request)
185
+
186
+ # return_type
187
+ return_type = opts[:debug_return_type] || 'TenDlcBrandRegistration'
188
+
189
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
190
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
191
+
192
+ new_options = opts.merge(
193
+ :operation => :"RegistrationsApi.registrations_update_us10dlc_brand",
194
+ :header_params => header_params,
195
+ :query_params => query_params,
196
+ :form_params => form_params,
197
+ :body => post_body,
198
+ :auth_names => auth_names,
199
+ :return_type => return_type
200
+ )
201
+
202
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
203
+ if @api_client.config.debugging
204
+ @api_client.config.logger.debug "API called: RegistrationsApi#registrations_update_us10dlc_brand\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
205
+ end
206
+ return data, status_code, headers
207
+ end
208
+ end
209
+ end
@@ -19,78 +19,6 @@ module Pingram
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Complete Slack OAuth flow and store access token for user
23
- # @param user_id [String] User ID
24
- # @param slack_oauth_request [SlackOauthRequest]
25
- # @param [Hash] opts the optional parameters
26
- # @return [nil]
27
- def user_generate_slack_oauth_path(user_id, slack_oauth_request, opts = {})
28
- user_generate_slack_oauth_path_with_http_info(user_id, slack_oauth_request, opts)
29
- nil
30
- end
31
-
32
- # Complete Slack OAuth flow and store access token for user
33
- # @param user_id [String] User ID
34
- # @param slack_oauth_request [SlackOauthRequest]
35
- # @param [Hash] opts the optional parameters
36
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
- def user_generate_slack_oauth_path_with_http_info(user_id, slack_oauth_request, opts = {})
38
- if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: UserApi.user_generate_slack_oauth_path ...'
40
- end
41
- # verify the required parameter 'user_id' is set
42
- if @api_client.config.client_side_validation && user_id.nil?
43
- fail ArgumentError, "Missing the required parameter 'user_id' when calling UserApi.user_generate_slack_oauth_path"
44
- end
45
- # verify the required parameter 'slack_oauth_request' is set
46
- if @api_client.config.client_side_validation && slack_oauth_request.nil?
47
- fail ArgumentError, "Missing the required parameter 'slack_oauth_request' when calling UserApi.user_generate_slack_oauth_path"
48
- end
49
- # resource path
50
- local_var_path = '/users/{userId}/slack-oauth'.sub('{' + 'userId' + '}', CGI.escape(user_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
- # HTTP header 'Content-Type'
60
- content_type = @api_client.select_header_content_type(['application/json'])
61
- if !content_type.nil?
62
- header_params['Content-Type'] = content_type
63
- end
64
-
65
- # form parameters
66
- form_params = opts[:form_params] || {}
67
-
68
- # http body (model)
69
- post_body = opts[:debug_body] || @api_client.object_to_http_body(slack_oauth_request)
70
-
71
- # return_type
72
- return_type = opts[:debug_return_type]
73
-
74
- # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
75
- auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
76
-
77
- new_options = opts.merge(
78
- :operation => :"UserApi.user_generate_slack_oauth_path",
79
- :header_params => header_params,
80
- :query_params => query_params,
81
- :form_params => form_params,
82
- :body => post_body,
83
- :auth_names => auth_names,
84
- :return_type => return_type
85
- )
86
-
87
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
88
- if @api_client.config.debugging
89
- @api_client.config.logger.debug "API called: UserApi#user_generate_slack_oauth_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
- end
91
- return data, status_code, headers
92
- end
93
-
94
22
  # Get account-level metadata including logo, VAPID key, and web push status
95
23
  # @param [Hash] opts the optional parameters
96
24
  # @return [GetAccountMetadataResponse]
@@ -146,67 +74,6 @@ module Pingram
146
74
  return data, status_code, headers
147
75
  end
148
76
 
149
- # Get list of Slack channels and users for the authenticated user
150
- # @param user_id [String] User ID
151
- # @param [Hash] opts the optional parameters
152
- # @return [nil]
153
- def user_get_available_slack_channels(user_id, opts = {})
154
- user_get_available_slack_channels_with_http_info(user_id, opts)
155
- nil
156
- end
157
-
158
- # Get list of Slack channels and users for the authenticated user
159
- # @param user_id [String] User ID
160
- # @param [Hash] opts the optional parameters
161
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
162
- def user_get_available_slack_channels_with_http_info(user_id, opts = {})
163
- if @api_client.config.debugging
164
- @api_client.config.logger.debug 'Calling API: UserApi.user_get_available_slack_channels ...'
165
- end
166
- # verify the required parameter 'user_id' is set
167
- if @api_client.config.client_side_validation && user_id.nil?
168
- fail ArgumentError, "Missing the required parameter 'user_id' when calling UserApi.user_get_available_slack_channels"
169
- end
170
- # resource path
171
- local_var_path = '/users/{userId}/slack-channels'.sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
172
-
173
- # query parameters
174
- query_params = opts[:query_params] || {}
175
-
176
- # header parameters
177
- header_params = opts[:header_params] || {}
178
- # HTTP header 'Accept' (if needed)
179
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
180
-
181
- # form parameters
182
- form_params = opts[:form_params] || {}
183
-
184
- # http body (model)
185
- post_body = opts[:debug_body]
186
-
187
- # return_type
188
- return_type = opts[:debug_return_type]
189
-
190
- # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
191
- auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
192
-
193
- new_options = opts.merge(
194
- :operation => :"UserApi.user_get_available_slack_channels",
195
- :header_params => header_params,
196
- :query_params => query_params,
197
- :form_params => form_params,
198
- :body => post_body,
199
- :auth_names => auth_names,
200
- :return_type => return_type
201
- )
202
-
203
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
204
- if @api_client.config.debugging
205
- @api_client.config.logger.debug "API called: UserApi#user_get_available_slack_channels\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
206
- end
207
- return data, status_code, headers
208
- end
209
-
210
77
  # Get in-app notifications for a user
211
78
  # @param [Hash] opts the optional parameters
212
79
  # @option opts [String] :before Timestamp or ISO date to fetch notifications before
@@ -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.23"
35
+ @user_agent = "pingram-ruby/1.0.25"
36
36
  @default_headers = {
37
37
  'Content-Type' => 'application/json',
38
38
  'User-Agent' => @user_agent
@@ -40,6 +40,8 @@ require_relative 'api/numbers_api'
40
40
 
41
41
  require_relative 'api/profile_api'
42
42
 
43
+ require_relative 'api/registrations_api'
44
+
43
45
  require_relative 'api/sender_api'
44
46
 
45
47
  require_relative 'api/sms_api'
@@ -116,6 +118,8 @@ module Pingram
116
118
 
117
119
  @profile = Pingram::ProfileApi.new(@api_client)
118
120
 
121
+ @registrations = Pingram::RegistrationsApi.new(@api_client)
122
+
119
123
  @sender = Pingram::SenderApi.new(@api_client)
120
124
 
121
125
  @sms = Pingram::SmsApi.new(@api_client)
@@ -231,6 +235,12 @@ module Pingram
231
235
  end
232
236
 
233
237
 
238
+ # @return [Pingram::RegistrationsApi]
239
+ def registrations
240
+ @registrations
241
+ end
242
+
243
+
234
244
  # @return [Pingram::SenderApi]
235
245
  def sender
236
246
  @sender
@@ -46,6 +46,8 @@ module Pingram
46
46
 
47
47
  attr_accessor :status
48
48
 
49
+ attr_accessor :subscription_status
50
+
49
51
  class EnumAttributeValidator
50
52
  attr_reader :datatype
51
53
  attr_reader :allowable_values
@@ -84,7 +86,8 @@ module Pingram
84
86
  :'allow_overage' => :'allowOverage',
85
87
  :'created_at' => :'createdAt',
86
88
  :'updated_at' => :'updatedAt',
87
- :'status' => :'status'
89
+ :'status' => :'status',
90
+ :'subscription_status' => :'subscriptionStatus'
88
91
  }
89
92
  end
90
93
 
@@ -114,13 +117,15 @@ module Pingram
114
117
  :'allow_overage' => :'Boolean',
115
118
  :'created_at' => :'String',
116
119
  :'updated_at' => :'String',
117
- :'status' => :'String'
120
+ :'status' => :'String',
121
+ :'subscription_status' => :'String'
118
122
  }
119
123
  end
120
124
 
121
125
  # List of attributes with nullable: true
122
126
  def self.openapi_nullable
123
127
  Set.new([
128
+ :'subscription_status'
124
129
  ])
125
130
  end
126
131
 
@@ -211,6 +216,10 @@ module Pingram
211
216
  if attributes.key?(:'status')
212
217
  self.status = attributes[:'status']
213
218
  end
219
+
220
+ if attributes.key?(:'subscription_status')
221
+ self.subscription_status = attributes[:'subscription_status']
222
+ end
214
223
  end
215
224
 
216
225
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -271,6 +280,8 @@ module Pingram
271
280
  return false if @updated_at.nil?
272
281
  status_validator = EnumAttributeValidator.new('String', ["verified", "unverified", "blocked"])
273
282
  return false unless status_validator.valid?(@status)
283
+ subscription_status_validator = EnumAttributeValidator.new('String', ["active", "canceled", "past_due", "paused"])
284
+ return false unless subscription_status_validator.valid?(@subscription_status)
274
285
  true
275
286
  end
276
287
 
@@ -374,6 +385,16 @@ module Pingram
374
385
  @status = status
375
386
  end
376
387
 
388
+ # Custom attribute writer method checking allowed values (enum).
389
+ # @param [Object] subscription_status Object to be assigned
390
+ def subscription_status=(subscription_status)
391
+ validator = EnumAttributeValidator.new('String', ["active", "canceled", "past_due", "paused"])
392
+ unless validator.valid?(subscription_status)
393
+ fail ArgumentError, "invalid value for \"subscription_status\", must be one of #{validator.allowable_values}."
394
+ end
395
+ @subscription_status = subscription_status
396
+ end
397
+
377
398
  # Checks equality by comparing each attribute.
378
399
  # @param [Object] Object to be compared
379
400
  def ==(o)
@@ -392,7 +413,8 @@ module Pingram
392
413
  allow_overage == o.allow_overage &&
393
414
  created_at == o.created_at &&
394
415
  updated_at == o.updated_at &&
395
- status == o.status
416
+ status == o.status &&
417
+ subscription_status == o.subscription_status
396
418
  end
397
419
 
398
420
  # @see the `==` method
@@ -404,7 +426,7 @@ module Pingram
404
426
  # Calculates hash code according to all attributes.
405
427
  # @return [Integer] Hash code
406
428
  def hash
407
- [account_id, account_type, creator, name, messages_cap, cost_cap, sms_cap, call_cap, billing_version, anniversary_date, allow_overage, created_at, updated_at, status].hash
429
+ [account_id, account_type, creator, name, messages_cap, cost_cap, sms_cap, call_cap, billing_version, anniversary_date, allow_overage, created_at, updated_at, status, subscription_status].hash
408
430
  end
409
431
 
410
432
  # Builds the object from hash
@@ -46,6 +46,8 @@ module Pingram
46
46
 
47
47
  attr_accessor :status
48
48
 
49
+ attr_accessor :subscription_status
50
+
49
51
  attr_accessor :session_id
50
52
 
51
53
  attr_accessor :url
@@ -89,6 +91,7 @@ module Pingram
89
91
  :'created_at' => :'createdAt',
90
92
  :'updated_at' => :'updatedAt',
91
93
  :'status' => :'status',
94
+ :'subscription_status' => :'subscriptionStatus',
92
95
  :'session_id' => :'sessionId',
93
96
  :'url' => :'url'
94
97
  }
@@ -121,6 +124,7 @@ module Pingram
121
124
  :'created_at' => :'String',
122
125
  :'updated_at' => :'String',
123
126
  :'status' => :'String',
127
+ :'subscription_status' => :'String',
124
128
  :'session_id' => :'String',
125
129
  :'url' => :'String'
126
130
  }
@@ -129,6 +133,7 @@ module Pingram
129
133
  # List of attributes with nullable: true
130
134
  def self.openapi_nullable
131
135
  Set.new([
136
+ :'subscription_status',
132
137
  ])
133
138
  end
134
139
 
@@ -220,6 +225,10 @@ module Pingram
220
225
  self.status = attributes[:'status']
221
226
  end
222
227
 
228
+ if attributes.key?(:'subscription_status')
229
+ self.subscription_status = attributes[:'subscription_status']
230
+ end
231
+
223
232
  if attributes.key?(:'session_id')
224
233
  self.session_id = attributes[:'session_id']
225
234
  end
@@ -287,6 +296,8 @@ module Pingram
287
296
  return false if @updated_at.nil?
288
297
  status_validator = EnumAttributeValidator.new('String', ["verified", "unverified", "blocked"])
289
298
  return false unless status_validator.valid?(@status)
299
+ subscription_status_validator = EnumAttributeValidator.new('String', ["active", "canceled", "past_due", "paused"])
300
+ return false unless subscription_status_validator.valid?(@subscription_status)
290
301
  true
291
302
  end
292
303
 
@@ -390,6 +401,16 @@ module Pingram
390
401
  @status = status
391
402
  end
392
403
 
404
+ # Custom attribute writer method checking allowed values (enum).
405
+ # @param [Object] subscription_status Object to be assigned
406
+ def subscription_status=(subscription_status)
407
+ validator = EnumAttributeValidator.new('String', ["active", "canceled", "past_due", "paused"])
408
+ unless validator.valid?(subscription_status)
409
+ fail ArgumentError, "invalid value for \"subscription_status\", must be one of #{validator.allowable_values}."
410
+ end
411
+ @subscription_status = subscription_status
412
+ end
413
+
393
414
  # Checks equality by comparing each attribute.
394
415
  # @param [Object] Object to be compared
395
416
  def ==(o)
@@ -409,6 +430,7 @@ module Pingram
409
430
  created_at == o.created_at &&
410
431
  updated_at == o.updated_at &&
411
432
  status == o.status &&
433
+ subscription_status == o.subscription_status &&
412
434
  session_id == o.session_id &&
413
435
  url == o.url
414
436
  end
@@ -422,7 +444,7 @@ module Pingram
422
444
  # Calculates hash code according to all attributes.
423
445
  # @return [Integer] Hash code
424
446
  def hash
425
- [account_id, account_type, creator, name, messages_cap, cost_cap, sms_cap, call_cap, billing_version, anniversary_date, allow_overage, created_at, updated_at, status, session_id, url].hash
447
+ [account_id, account_type, creator, name, messages_cap, cost_cap, sms_cap, call_cap, billing_version, anniversary_date, allow_overage, created_at, updated_at, status, subscription_status, session_id, url].hash
426
448
  end
427
449
 
428
450
  # Builds the object from hash