license_manager 0.3.1 → 0.3.3
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/CHANGELOG.md +27 -0
- data/README.md +1 -1
- data/docs/IntegrationsApi.md +361 -0
- data/docs/License.md +1 -1
- data/docs/SlackAuthorize.md +18 -0
- data/docs/SlackConnection.md +38 -0
- data/docs/SlackIntegration.md +20 -0
- data/docs/UpdateSlackConnection.md +18 -0
- data/lib/license_manager/api/integrations_api.rb +326 -0
- data/lib/license_manager/models/license.rb +2 -15
- data/lib/license_manager/models/slack_authorize.rb +178 -0
- data/lib/license_manager/models/slack_connection.rb +387 -0
- data/lib/license_manager/models/slack_integration.rb +207 -0
- data/lib/license_manager/models/update_slack_connection.rb +192 -0
- data/lib/license_manager/version.rb +1 -1
- data/lib/license_manager.rb +4 -0
- data/license_manager.gemspec +9 -3
- data/openapi.json +650 -7
- data/spec/api/integrations_api_spec.rb +61 -0
- data/spec/models/slack_authorize_spec.rb +36 -0
- data/spec/models/slack_connection_spec.rb +104 -0
- data/spec/models/slack_integration_spec.rb +42 -0
- data/spec/models/update_slack_connection_spec.rb +40 -0
- metadata +25 -4
|
@@ -32,6 +32,18 @@ describe 'IntegrationsApi' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# unit tests for authorize_slack
|
|
36
|
+
# Start connecting a Slack channel
|
|
37
|
+
# Returns the URL of Slack's consent screen, where the user picks the channel getting the product's notifications. Slack then redirects to the app's integrations page. Doesn't accept tokens: only API keys and sessions. **Required role permission**: `integration:create` when called with a session, granted by the member's role. API keys aren't limited by roles.
|
|
38
|
+
# @param product_id
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [SlackAuthorize]
|
|
41
|
+
describe 'authorize_slack test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
35
47
|
# unit tests for check_integration
|
|
36
48
|
# Check an integration
|
|
37
49
|
# Checks right away, as done every day, that the API key still works and can manage the webhook endpoint, which is pointed at the server's webhook URL again (or created again when it was deleted). Updates the status. Doesn't accept tokens: only API keys and sessions. **Required role permission**: `integration:update` when called with a session, granted by the member's role. API keys aren't limited by roles.
|
|
@@ -70,6 +82,18 @@ describe 'IntegrationsApi' do
|
|
|
70
82
|
end
|
|
71
83
|
end
|
|
72
84
|
|
|
85
|
+
# unit tests for delete_slack_connection
|
|
86
|
+
# Remove a Slack connection
|
|
87
|
+
# Stops posting to the channel and revokes the installation's token in Slack. Doesn't accept tokens: only API keys and sessions. **Required role permission**: `integration:delete` when called with a session, granted by the member's role. API keys aren't limited by roles.
|
|
88
|
+
# @param id
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [nil]
|
|
91
|
+
describe 'delete_slack_connection test' do
|
|
92
|
+
it 'should work' do
|
|
93
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
73
97
|
# unit tests for delete_stripe_mapping
|
|
74
98
|
# Delete a mapping
|
|
75
99
|
# Paying the price no longer creates licenses. The licenses it created stay. Doesn't accept tokens: only API keys and sessions. **Required role permission**: `integration:update` when called with a session, granted by the member's role. API keys aren't limited by roles.
|
|
@@ -94,6 +118,18 @@ describe 'IntegrationsApi' do
|
|
|
94
118
|
end
|
|
95
119
|
end
|
|
96
120
|
|
|
121
|
+
# unit tests for get_slack_integration
|
|
122
|
+
# Get the Slack integration of a product
|
|
123
|
+
# Slack channels getting notifications about the product's licenses: purchases, renewals, failed payments and cancellations. Doesn't accept tokens: only API keys and sessions.
|
|
124
|
+
# @param product_id
|
|
125
|
+
# @param [Hash] opts the optional parameters
|
|
126
|
+
# @return [SlackIntegration]
|
|
127
|
+
describe 'get_slack_integration test' do
|
|
128
|
+
it 'should work' do
|
|
129
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
97
133
|
# unit tests for get_stripe_integration
|
|
98
134
|
# Get the Stripe integration of a product
|
|
99
135
|
# The organization connects one Stripe account for its live products, and one in test mode for its test products. Its mappings tell which Stripe prices create licenses of the product. Doesn't accept tokens: only API keys and sessions.
|
|
@@ -118,6 +154,18 @@ describe 'IntegrationsApi' do
|
|
|
118
154
|
end
|
|
119
155
|
end
|
|
120
156
|
|
|
157
|
+
# unit tests for test_slack_connection
|
|
158
|
+
# Send a test message to a Slack channel
|
|
159
|
+
# Posts a message to the channel, to check it gets the notifications. Marks the connection `revoked` when Slack says it won't work again. Doesn't accept tokens: only API keys and sessions. **Required role permission**: `integration:update` when called with a session, granted by the member's role. API keys aren't limited by roles.
|
|
160
|
+
# @param id
|
|
161
|
+
# @param [Hash] opts the optional parameters
|
|
162
|
+
# @return [SlackConnection]
|
|
163
|
+
describe 'test_slack_connection test' do
|
|
164
|
+
it 'should work' do
|
|
165
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
|
|
121
169
|
# unit tests for update_integration
|
|
122
170
|
# Update an integration
|
|
123
171
|
# Changes the settings of the integration, for every product of its mode. Doesn't accept tokens: only API keys and sessions. **Required role permission**: `integration:update` when called with a session, granted by the member's role. API keys aren't limited by roles.
|
|
@@ -131,6 +179,19 @@ describe 'IntegrationsApi' do
|
|
|
131
179
|
end
|
|
132
180
|
end
|
|
133
181
|
|
|
182
|
+
# unit tests for update_slack_connection
|
|
183
|
+
# Update a Slack connection
|
|
184
|
+
# Changes the notifications the channel gets. Doesn't accept tokens: only API keys and sessions. **Required role permission**: `integration:update` when called with a session, granted by the member's role. API keys aren't limited by roles.
|
|
185
|
+
# @param id
|
|
186
|
+
# @param update_slack_connection
|
|
187
|
+
# @param [Hash] opts the optional parameters
|
|
188
|
+
# @return [SlackConnection]
|
|
189
|
+
describe 'update_slack_connection test' do
|
|
190
|
+
it 'should work' do
|
|
191
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
134
195
|
# unit tests for update_stripe_mapping
|
|
135
196
|
# Change the policy of a mapping
|
|
136
197
|
# Only affects the licenses created afterwards. Doesn't accept tokens: only API keys and sessions. **Required role permission**: `integration:update` when called with a session, granted by the member's role. API keys aren't limited by roles.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#LicenseManager API
|
|
3
|
+
|
|
4
|
+
#Public API. Authenticate with an organization API key, or with a token scoped to a customer, license or machine on the endpoints that accept one. ## Conventions - **Errors** answer `{ \"error\": { \"code\", \"message\" } }`. Branch on `code`, which is stable, not on `message`. Each response lists the codes it can return, except `404`, which answers `not_found` unless it says otherwise. Unexpected errors answer `500` with `internal_error`. - **Validation** errors answer `422`, not `400`, with the `validation_error` code and an `issues` array giving the `path` and `message` of each invalid value. - **Unknown body fields are ignored**, not rejected: sending a field an endpoint doesn't accept, like `policyId` to `updateLicense`, changes nothing and doesn't fail. - **Strings** are trimmed before they're validated and stored. Emails are stored lower cased. - **Updates** only change the fields that are sent. A field sent as `null` is cleared, when it can be. - **Dates** can be sent with any offset, and are always returned in UTC, like `2026-01-15T09:30:00.000Z`. Calendar months and days are counted in UTC. - **Ids** are 8 letters and digits, after `test_` for test products and their resources. - **Lists** are paginated with `page` and `pageSize`. Items with the same value for the `sort` field are ordered by id, so pages are stable, but items created or deleted between two requests shift the pages. Items without a value for the `sort` field come last in ascending order, and first in descending order, unless the endpoint says otherwise. - **Test products** are sandboxes of a live product. Test API keys only reach test products, live API keys only live ones: the others answer `404`, as if they didn't exist. Sessions and tokens reach both.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.26.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for LicenseManager::SlackAuthorize
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe LicenseManager::SlackAuthorize do
|
|
21
|
+
#let(:instance) { LicenseManager::SlackAuthorize.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of SlackAuthorize' do
|
|
24
|
+
it 'should create an instance of SlackAuthorize' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(LicenseManager::SlackAuthorize)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "url"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
end
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#LicenseManager API
|
|
3
|
+
|
|
4
|
+
#Public API. Authenticate with an organization API key, or with a token scoped to a customer, license or machine on the endpoints that accept one. ## Conventions - **Errors** answer `{ \"error\": { \"code\", \"message\" } }`. Branch on `code`, which is stable, not on `message`. Each response lists the codes it can return, except `404`, which answers `not_found` unless it says otherwise. Unexpected errors answer `500` with `internal_error`. - **Validation** errors answer `422`, not `400`, with the `validation_error` code and an `issues` array giving the `path` and `message` of each invalid value. - **Unknown body fields are ignored**, not rejected: sending a field an endpoint doesn't accept, like `policyId` to `updateLicense`, changes nothing and doesn't fail. - **Strings** are trimmed before they're validated and stored. Emails are stored lower cased. - **Updates** only change the fields that are sent. A field sent as `null` is cleared, when it can be. - **Dates** can be sent with any offset, and are always returned in UTC, like `2026-01-15T09:30:00.000Z`. Calendar months and days are counted in UTC. - **Ids** are 8 letters and digits, after `test_` for test products and their resources. - **Lists** are paginated with `page` and `pageSize`. Items with the same value for the `sort` field are ordered by id, so pages are stable, but items created or deleted between two requests shift the pages. Items without a value for the `sort` field come last in ascending order, and first in descending order, unless the endpoint says otherwise. - **Test products** are sandboxes of a live product. Test API keys only reach test products, live API keys only live ones: the others answer `404`, as if they didn't exist. Sessions and tokens reach both.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.26.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for LicenseManager::SlackConnection
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe LicenseManager::SlackConnection do
|
|
21
|
+
#let(:instance) { LicenseManager::SlackConnection.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of SlackConnection' do
|
|
24
|
+
it 'should create an instance of SlackConnection' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(LicenseManager::SlackConnection)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "team_id"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "team_name"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "channel_id"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "channel_name"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "configuration_url"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "events"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["purchased", "renewed", "payment_failed", "canceled", "unknown_default_open_api"])
|
|
70
|
+
# validator.allowable_values.each do |value|
|
|
71
|
+
# expect { instance.events = value }.not_to raise_error
|
|
72
|
+
# end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
describe 'test attribute "status"' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
79
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active", "revoked", "unknown_default_open_api"])
|
|
80
|
+
# validator.allowable_values.each do |value|
|
|
81
|
+
# expect { instance.status = value }.not_to raise_error
|
|
82
|
+
# end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
describe 'test attribute "status_reason"' do
|
|
87
|
+
it 'should work' do
|
|
88
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
describe 'test attribute "last_sent_at"' do
|
|
93
|
+
it 'should work' do
|
|
94
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
describe 'test attribute "created_at"' do
|
|
99
|
+
it 'should work' do
|
|
100
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#LicenseManager API
|
|
3
|
+
|
|
4
|
+
#Public API. Authenticate with an organization API key, or with a token scoped to a customer, license or machine on the endpoints that accept one. ## Conventions - **Errors** answer `{ \"error\": { \"code\", \"message\" } }`. Branch on `code`, which is stable, not on `message`. Each response lists the codes it can return, except `404`, which answers `not_found` unless it says otherwise. Unexpected errors answer `500` with `internal_error`. - **Validation** errors answer `422`, not `400`, with the `validation_error` code and an `issues` array giving the `path` and `message` of each invalid value. - **Unknown body fields are ignored**, not rejected: sending a field an endpoint doesn't accept, like `policyId` to `updateLicense`, changes nothing and doesn't fail. - **Strings** are trimmed before they're validated and stored. Emails are stored lower cased. - **Updates** only change the fields that are sent. A field sent as `null` is cleared, when it can be. - **Dates** can be sent with any offset, and are always returned in UTC, like `2026-01-15T09:30:00.000Z`. Calendar months and days are counted in UTC. - **Ids** are 8 letters and digits, after `test_` for test products and their resources. - **Lists** are paginated with `page` and `pageSize`. Items with the same value for the `sort` field are ordered by id, so pages are stable, but items created or deleted between two requests shift the pages. Items without a value for the `sort` field come last in ascending order, and first in descending order, unless the endpoint says otherwise. - **Test products** are sandboxes of a live product. Test API keys only reach test products, live API keys only live ones: the others answer `404`, as if they didn't exist. Sessions and tokens reach both.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.26.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for LicenseManager::SlackIntegration
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe LicenseManager::SlackIntegration do
|
|
21
|
+
#let(:instance) { LicenseManager::SlackIntegration.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of SlackIntegration' do
|
|
24
|
+
it 'should create an instance of SlackIntegration' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(LicenseManager::SlackIntegration)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "configured"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "connections"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#LicenseManager API
|
|
3
|
+
|
|
4
|
+
#Public API. Authenticate with an organization API key, or with a token scoped to a customer, license or machine on the endpoints that accept one. ## Conventions - **Errors** answer `{ \"error\": { \"code\", \"message\" } }`. Branch on `code`, which is stable, not on `message`. Each response lists the codes it can return, except `404`, which answers `not_found` unless it says otherwise. Unexpected errors answer `500` with `internal_error`. - **Validation** errors answer `422`, not `400`, with the `validation_error` code and an `issues` array giving the `path` and `message` of each invalid value. - **Unknown body fields are ignored**, not rejected: sending a field an endpoint doesn't accept, like `policyId` to `updateLicense`, changes nothing and doesn't fail. - **Strings** are trimmed before they're validated and stored. Emails are stored lower cased. - **Updates** only change the fields that are sent. A field sent as `null` is cleared, when it can be. - **Dates** can be sent with any offset, and are always returned in UTC, like `2026-01-15T09:30:00.000Z`. Calendar months and days are counted in UTC. - **Ids** are 8 letters and digits, after `test_` for test products and their resources. - **Lists** are paginated with `page` and `pageSize`. Items with the same value for the `sort` field are ordered by id, so pages are stable, but items created or deleted between two requests shift the pages. Items without a value for the `sort` field come last in ascending order, and first in descending order, unless the endpoint says otherwise. - **Test products** are sandboxes of a live product. Test API keys only reach test products, live API keys only live ones: the others answer `404`, as if they didn't exist. Sessions and tokens reach both.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.26.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for LicenseManager::UpdateSlackConnection
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe LicenseManager::UpdateSlackConnection do
|
|
21
|
+
#let(:instance) { LicenseManager::UpdateSlackConnection.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of UpdateSlackConnection' do
|
|
24
|
+
it 'should create an instance of UpdateSlackConnection' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(LicenseManager::UpdateSlackConnection)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "events"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["purchased", "renewed", "payment_failed", "canceled", "unknown_default_open_api"])
|
|
34
|
+
# validator.allowable_values.each do |value|
|
|
35
|
+
# expect { instance.events = value }.not_to raise_error
|
|
36
|
+
# end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: license_manager
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- LicenseManager
|
|
@@ -189,6 +189,9 @@ files:
|
|
|
189
189
|
- docs/SendLicenseKeys.md
|
|
190
190
|
- docs/SendPortalLink.md
|
|
191
191
|
- docs/SigningKey.md
|
|
192
|
+
- docs/SlackAuthorize.md
|
|
193
|
+
- docs/SlackConnection.md
|
|
194
|
+
- docs/SlackIntegration.md
|
|
192
195
|
- docs/StripeIntegration.md
|
|
193
196
|
- docs/StripePermission.md
|
|
194
197
|
- docs/StripePrice.md
|
|
@@ -204,6 +207,7 @@ files:
|
|
|
204
207
|
- docs/UpdateProduct.md
|
|
205
208
|
- docs/UpdateProductPortal.md
|
|
206
209
|
- docs/UpdateRelease.md
|
|
210
|
+
- docs/UpdateSlackConnection.md
|
|
207
211
|
- docs/ValidateKey.md
|
|
208
212
|
- docs/ValidateKeyError.md
|
|
209
213
|
- docs/ValidateKeyErrorError.md
|
|
@@ -313,6 +317,9 @@ files:
|
|
|
313
317
|
- lib/license_manager/models/send_license_keys.rb
|
|
314
318
|
- lib/license_manager/models/send_portal_link.rb
|
|
315
319
|
- lib/license_manager/models/signing_key.rb
|
|
320
|
+
- lib/license_manager/models/slack_authorize.rb
|
|
321
|
+
- lib/license_manager/models/slack_connection.rb
|
|
322
|
+
- lib/license_manager/models/slack_integration.rb
|
|
316
323
|
- lib/license_manager/models/stripe_integration.rb
|
|
317
324
|
- lib/license_manager/models/stripe_permission.rb
|
|
318
325
|
- lib/license_manager/models/stripe_price.rb
|
|
@@ -327,6 +334,7 @@ files:
|
|
|
327
334
|
- lib/license_manager/models/update_product.rb
|
|
328
335
|
- lib/license_manager/models/update_product_portal.rb
|
|
329
336
|
- lib/license_manager/models/update_release.rb
|
|
337
|
+
- lib/license_manager/models/update_slack_connection.rb
|
|
330
338
|
- lib/license_manager/models/validate_key.rb
|
|
331
339
|
- lib/license_manager/models/validate_key_error.rb
|
|
332
340
|
- lib/license_manager/models/validate_key_error_error.rb
|
|
@@ -433,6 +441,9 @@ files:
|
|
|
433
441
|
- spec/models/send_license_keys_spec.rb
|
|
434
442
|
- spec/models/send_portal_link_spec.rb
|
|
435
443
|
- spec/models/signing_key_spec.rb
|
|
444
|
+
- spec/models/slack_authorize_spec.rb
|
|
445
|
+
- spec/models/slack_connection_spec.rb
|
|
446
|
+
- spec/models/slack_integration_spec.rb
|
|
436
447
|
- spec/models/stripe_integration_spec.rb
|
|
437
448
|
- spec/models/stripe_permission_spec.rb
|
|
438
449
|
- spec/models/stripe_price_recurring_spec.rb
|
|
@@ -447,14 +458,20 @@ files:
|
|
|
447
458
|
- spec/models/update_product_portal_spec.rb
|
|
448
459
|
- spec/models/update_product_spec.rb
|
|
449
460
|
- spec/models/update_release_spec.rb
|
|
461
|
+
- spec/models/update_slack_connection_spec.rb
|
|
450
462
|
- spec/models/validate_key_error_error_spec.rb
|
|
451
463
|
- spec/models/validate_key_error_spec.rb
|
|
452
464
|
- spec/models/validate_key_spec.rb
|
|
453
465
|
- spec/spec_helper.rb
|
|
454
|
-
homepage: https://licensemanager.dev
|
|
466
|
+
homepage: https://licensemanager.dev/docs/sdks/ruby
|
|
455
467
|
licenses:
|
|
456
|
-
-
|
|
457
|
-
metadata:
|
|
468
|
+
- Apache-2.0
|
|
469
|
+
metadata:
|
|
470
|
+
homepage_uri: https://licensemanager.dev/docs/sdks/ruby
|
|
471
|
+
documentation_uri: https://licensemanager.dev/docs/sdks/ruby
|
|
472
|
+
source_code_uri: https://github.com/licenseman/licensemanager-ruby
|
|
473
|
+
changelog_uri: https://github.com/licenseman/licensemanager-ruby/blob/main/CHANGELOG.md
|
|
474
|
+
bug_tracker_uri: https://github.com/licenseman/licensemanager-ruby/issues
|
|
458
475
|
rdoc_options: []
|
|
459
476
|
require_paths:
|
|
460
477
|
- lib
|
|
@@ -573,6 +590,9 @@ test_files:
|
|
|
573
590
|
- spec/models/send_license_keys_spec.rb
|
|
574
591
|
- spec/models/send_portal_link_spec.rb
|
|
575
592
|
- spec/models/signing_key_spec.rb
|
|
593
|
+
- spec/models/slack_authorize_spec.rb
|
|
594
|
+
- spec/models/slack_connection_spec.rb
|
|
595
|
+
- spec/models/slack_integration_spec.rb
|
|
576
596
|
- spec/models/stripe_integration_spec.rb
|
|
577
597
|
- spec/models/stripe_permission_spec.rb
|
|
578
598
|
- spec/models/stripe_price_recurring_spec.rb
|
|
@@ -587,6 +607,7 @@ test_files:
|
|
|
587
607
|
- spec/models/update_product_portal_spec.rb
|
|
588
608
|
- spec/models/update_product_spec.rb
|
|
589
609
|
- spec/models/update_release_spec.rb
|
|
610
|
+
- spec/models/update_slack_connection_spec.rb
|
|
590
611
|
- spec/models/validate_key_error_error_spec.rb
|
|
591
612
|
- spec/models/validate_key_error_spec.rb
|
|
592
613
|
- spec/models/validate_key_spec.rb
|