license_manager 0.3.2 → 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 +17 -0
- data/docs/License.md +1 -1
- data/lib/license_manager/models/license.rb +2 -15
- data/lib/license_manager/version.rb +1 -1
- data/license_manager.gemspec +9 -3
- data/openapi.json +4 -7
- metadata +9 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 84013ac7d9c28271647dd18819bc70dd898cfb1288da389456fc1235f7a51906
|
|
4
|
+
data.tar.gz: 95ab30ee9f61fe92885cbe869040e5a84d69c0fbb932fed51e524a927c3caf9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c5ebe6ffa873d4c46ce31fb4d63dc4a46da24c49688fbaeebdfe4de5d39d75c338eb7822cc45c378ded4c24b2c0142644c95dc413697399a2f77ef9713ce57a
|
|
7
|
+
data.tar.gz: d73a8a3a5b929f6c8c404452ae0230e242da223cf1501fb0aac0164286195c98000e8b45ca1af9b66bb5d018cafa6d03abeff9aee5850831b657420b049d039b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.3 (2026-11-06)
|
|
4
|
+
|
|
5
|
+
### Potentially breaking changes
|
|
6
|
+
|
|
7
|
+
- `GET /v1/customers/{customerId}/licenses`: removed `#/components/schemas/CancellationReason, subschema #2` from the `data/items/cancellationReason` response property `allOf` list for the response status `200`
|
|
8
|
+
- `GET /v1/customers/{customerId}/licenses`: added `#/components/schemas/CancellationReason, subschema #2` to the `data/items/cancellationReason` response property `anyOf` list for the response status `200`
|
|
9
|
+
- `GET /v1/licenses/{id}`: removed `#/components/schemas/CancellationReason, subschema #2` from the `cancellationReason` response property `allOf` list for the response status `200`
|
|
10
|
+
- `GET /v1/licenses/{id}`: added `#/components/schemas/CancellationReason, subschema #2` to the `cancellationReason` response property `anyOf` list for the response status `200`
|
|
11
|
+
- `PATCH /v1/licenses/{id}`: removed `#/components/schemas/CancellationReason, subschema #2` from the `cancellationReason` response property `allOf` list for the response status `200`
|
|
12
|
+
- `PATCH /v1/licenses/{id}`: added `#/components/schemas/CancellationReason, subschema #2` to the `cancellationReason` response property `anyOf` list for the response status `200`
|
|
13
|
+
- `POST /v1/licenses/{id}/cancel`: removed `#/components/schemas/CancellationReason, subschema #2` from the `cancellationReason` response property `allOf` list for the response status `200`
|
|
14
|
+
- `POST /v1/licenses/{id}/cancel`: added `#/components/schemas/CancellationReason, subschema #2` to the `cancellationReason` response property `anyOf` list for the response status `200`
|
|
15
|
+
- `GET /v1/products/{productId}/licenses`: removed `#/components/schemas/CancellationReason, subschema #2` from the `data/items/cancellationReason` response property `allOf` list for the response status `200`
|
|
16
|
+
- `GET /v1/products/{productId}/licenses`: added `#/components/schemas/CancellationReason, subschema #2` to the `data/items/cancellationReason` response property `anyOf` list for the response status `200`
|
|
17
|
+
- `POST /v1/products/{productId}/licenses`: removed `#/components/schemas/CancellationReason, subschema #2` from the `cancellationReason` response property `allOf` list for the response status `201`
|
|
18
|
+
- `POST /v1/products/{productId}/licenses`: added `#/components/schemas/CancellationReason, subschema #2` to the `cancellationReason` response property `anyOf` list for the response status `201`
|
|
19
|
+
|
|
3
20
|
## 0.3.2 (2026-11-05)
|
|
4
21
|
|
|
5
22
|
### Changes
|
data/docs/License.md
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
| **status** | [**LicenseStatus**](LicenseStatus.md) | | |
|
|
24
24
|
| **cancellable_until** | **Time** | End of the money back guarantee: until then, the customer can cancel the license from the customer portal, or with a token. Set from the policy's `moneyBackGuaranteeDays` when the license is created. `null` when the customer can't cancel it. | |
|
|
25
25
|
| **canceled_at** | **Time** | When the license was canceled: validating its key fails since. `null` when it wasn't. | |
|
|
26
|
-
| **cancellation_reason** | [**CancellationReason**](CancellationReason.md) |
|
|
26
|
+
| **cancellation_reason** | [**CancellationReason**](CancellationReason.md) | Why the license was canceled. `null` when it wasn't. | |
|
|
27
27
|
| **subscription** | [**LicenseSubscription**](LicenseSubscription.md) | | |
|
|
28
28
|
| **cancellation_comment** | **String** | Comment given when the license was canceled. `null` when there's none. | |
|
|
29
29
|
| **stripe_refund_id** | **String** | Id of the Stripe refund of the license's payment once it was canceled, through the Stripe integration. `null` otherwise. | |
|
|
@@ -63,6 +63,7 @@ module LicenseManager
|
|
|
63
63
|
# When the license was canceled: validating its key fails since. `null` when it wasn't.
|
|
64
64
|
attr_accessor :canceled_at
|
|
65
65
|
|
|
66
|
+
# Why the license was canceled. `null` when it wasn't.
|
|
66
67
|
attr_accessor :cancellation_reason
|
|
67
68
|
|
|
68
69
|
attr_accessor :subscription
|
|
@@ -179,6 +180,7 @@ module LicenseManager
|
|
|
179
180
|
:'price',
|
|
180
181
|
:'cancellable_until',
|
|
181
182
|
:'canceled_at',
|
|
183
|
+
:'cancellation_reason',
|
|
182
184
|
:'subscription',
|
|
183
185
|
:'cancellation_comment',
|
|
184
186
|
:'stripe_refund_id',
|
|
@@ -407,10 +409,6 @@ module LicenseManager
|
|
|
407
409
|
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
408
410
|
end
|
|
409
411
|
|
|
410
|
-
if @cancellation_reason.nil?
|
|
411
|
-
invalid_properties.push('invalid value for "cancellation_reason", cancellation_reason cannot be nil.')
|
|
412
|
-
end
|
|
413
|
-
|
|
414
412
|
if @updated_at.nil?
|
|
415
413
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
416
414
|
end
|
|
@@ -433,7 +431,6 @@ module LicenseManager
|
|
|
433
431
|
return false if @active_machine_count.nil?
|
|
434
432
|
return false if @max_version.nil?
|
|
435
433
|
return false if @status.nil?
|
|
436
|
-
return false if @cancellation_reason.nil?
|
|
437
434
|
return false if @updated_at.nil?
|
|
438
435
|
true
|
|
439
436
|
end
|
|
@@ -548,16 +545,6 @@ module LicenseManager
|
|
|
548
545
|
@status = status
|
|
549
546
|
end
|
|
550
547
|
|
|
551
|
-
# Custom attribute writer method with validation
|
|
552
|
-
# @param [Object] cancellation_reason Value to be assigned
|
|
553
|
-
def cancellation_reason=(cancellation_reason)
|
|
554
|
-
if cancellation_reason.nil?
|
|
555
|
-
fail ArgumentError, 'cancellation_reason cannot be nil'
|
|
556
|
-
end
|
|
557
|
-
|
|
558
|
-
@cancellation_reason = cancellation_reason
|
|
559
|
-
end
|
|
560
|
-
|
|
561
548
|
# Custom attribute writer method with validation
|
|
562
549
|
# @param [Object] updated_at Value to be assigned
|
|
563
550
|
def updated_at=(updated_at)
|
data/license_manager.gemspec
CHANGED
|
@@ -21,12 +21,18 @@ Gem::Specification.new do |s|
|
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
|
22
22
|
s.authors = ["LicenseManager"]
|
|
23
23
|
s.email = ["bot@licensemanager.dev"]
|
|
24
|
-
s.homepage = "https://licensemanager.dev"
|
|
24
|
+
s.homepage = "https://licensemanager.dev/docs/sdks/ruby"
|
|
25
25
|
s.summary = "Ruby client for the LicenseManager API"
|
|
26
26
|
s.description = "Ruby client for the LicenseManager API: products, policies, customers, licenses, machines and releases."
|
|
27
|
-
s.license = "
|
|
27
|
+
s.license = "Apache-2.0"
|
|
28
28
|
s.required_ruby_version = ">= 3.1"
|
|
29
|
-
s.metadata = {
|
|
29
|
+
s.metadata = {
|
|
30
|
+
"homepage_uri" => "https://licensemanager.dev/docs/sdks/ruby",
|
|
31
|
+
"documentation_uri" => "https://licensemanager.dev/docs/sdks/ruby",
|
|
32
|
+
"source_code_uri" => "https://github.com/licenseman/licensemanager-ruby",
|
|
33
|
+
"changelog_uri" => "https://github.com/licenseman/licensemanager-ruby/blob/main/CHANGELOG.md",
|
|
34
|
+
"bug_tracker_uri" => "https://github.com/licenseman/licensemanager-ruby/issues",
|
|
35
|
+
}
|
|
30
36
|
|
|
31
37
|
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
|
|
32
38
|
s.add_runtime_dependency 'faraday-multipart'
|
data/openapi.json
CHANGED
|
@@ -2199,18 +2199,15 @@
|
|
|
2199
2199
|
"example": "2026-01-20T16:12:00.000Z"
|
|
2200
2200
|
},
|
|
2201
2201
|
"cancellationReason": {
|
|
2202
|
-
"
|
|
2202
|
+
"anyOf": [
|
|
2203
2203
|
{
|
|
2204
2204
|
"$ref": "#/components/schemas/CancellationReason"
|
|
2205
2205
|
},
|
|
2206
2206
|
{
|
|
2207
|
-
"type":
|
|
2208
|
-
"string",
|
|
2209
|
-
"null"
|
|
2210
|
-
],
|
|
2211
|
-
"description": "Why the license was canceled. `null` when it wasn't."
|
|
2207
|
+
"type": "null"
|
|
2212
2208
|
}
|
|
2213
|
-
]
|
|
2209
|
+
],
|
|
2210
|
+
"description": "Why the license was canceled. `null` when it wasn't."
|
|
2214
2211
|
},
|
|
2215
2212
|
"subscription": {
|
|
2216
2213
|
"$ref": "#/components/schemas/LicenseSubscription"
|
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
|
|
@@ -463,10 +463,15 @@ files:
|
|
|
463
463
|
- spec/models/validate_key_error_spec.rb
|
|
464
464
|
- spec/models/validate_key_spec.rb
|
|
465
465
|
- spec/spec_helper.rb
|
|
466
|
-
homepage: https://licensemanager.dev
|
|
466
|
+
homepage: https://licensemanager.dev/docs/sdks/ruby
|
|
467
467
|
licenses:
|
|
468
|
-
-
|
|
469
|
-
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
|
|
470
475
|
rdoc_options: []
|
|
471
476
|
require_paths:
|
|
472
477
|
- lib
|