license_manager 0.3.2 → 0.3.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20647dd29895350d4dadc4bab710756eb748a814c67e08a7c8a9e0661b472caa
4
- data.tar.gz: '004191f59667807fb23c21aaf7548ca7fa6c821254603a285fb51bde85d511ab'
3
+ metadata.gz: 03c5c21351e34cf5e63df9e2174a9a7662ca4c3eb78a9957de394668cc8b892e
4
+ data.tar.gz: c34d07e1b6f9cc1763aa38276de44aebff9b6f89fcb65833fe4ab9259c4fa8ef
5
5
  SHA512:
6
- metadata.gz: 446e1c8285486571af235bdd1f162ba2d8fd2b44788051b019249f5b2e0c75a78146a107c2182d76eb01db4cf4b4147748e6a642740b53f9e0673158702ccb20
7
- data.tar.gz: '093cdc1dee0f7f4dbdcf7039996b9a9ae76377dd347df40f6315114d35d84544aba352e2d7d15e3442ed7012c61ba3f025d1f15ef3aad3cdabd44025a300f303'
6
+ metadata.gz: d3f3a6b680ecfac3c20b68471de625d2bc037d4b940f843f4eac5855c978cb2ebb2d85b47d1d9891fbe7325e19719d75ddb463ae5cbd5e96040ef51682752da4
7
+ data.tar.gz: cf18c4abde11dc326ad13f95ea853cf89fa831a4ca4c5ce1cf0a6e8315b0ffbdfd4ce3376e3c51d27eae1792924b11749cfabe4d57aae426b6af3f61efc3e181
data/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.4 (2026-11-11)
4
+
5
+ ### Changes
6
+
7
+ - `GET /v1/customers/{customerId}/licenses`: added the new optional `query` request parameter `machinePlatform`
8
+ - `GET /v1/products/{productId}/licenses`: added the new optional `query` request parameter `machinePlatform`
9
+
10
+ ## 0.3.3 (2026-11-06)
11
+
12
+ ### Potentially breaking changes
13
+
14
+ - `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`
15
+ - `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`
16
+ - `GET /v1/licenses/{id}`: removed `#/components/schemas/CancellationReason, subschema #2` from the `cancellationReason` response property `allOf` list for the response status `200`
17
+ - `GET /v1/licenses/{id}`: added `#/components/schemas/CancellationReason, subschema #2` to the `cancellationReason` response property `anyOf` list for the response status `200`
18
+ - `PATCH /v1/licenses/{id}`: removed `#/components/schemas/CancellationReason, subschema #2` from the `cancellationReason` response property `allOf` list for the response status `200`
19
+ - `PATCH /v1/licenses/{id}`: added `#/components/schemas/CancellationReason, subschema #2` to the `cancellationReason` response property `anyOf` list for the response status `200`
20
+ - `POST /v1/licenses/{id}/cancel`: removed `#/components/schemas/CancellationReason, subschema #2` from the `cancellationReason` response property `allOf` list for the response status `200`
21
+ - `POST /v1/licenses/{id}/cancel`: added `#/components/schemas/CancellationReason, subschema #2` to the `cancellationReason` response property `anyOf` list for the response status `200`
22
+ - `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`
23
+ - `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`
24
+ - `POST /v1/products/{productId}/licenses`: removed `#/components/schemas/CancellationReason, subschema #2` from the `cancellationReason` response property `allOf` list for the response status `201`
25
+ - `POST /v1/products/{productId}/licenses`: added `#/components/schemas/CancellationReason, subschema #2` to the `cancellationReason` response property `anyOf` list for the response status `201`
26
+
3
27
  ## 0.3.2 (2026-11-05)
4
28
 
5
29
  ### 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. | |
data/docs/LicensesApi.md CHANGED
@@ -483,6 +483,7 @@ opts = {
483
483
  key: '7KQ2M-X9ZPA-H4TRC-WN6EY-B3JDF', # String | Only returns the license with this exact key, case included. Keys of test products start with `TEST-`.
484
484
  policy_id: 'p4Rt8LmQ', # String | Only returns the licenses following this policy.
485
485
  machine_version: '2.3.1', # String | Only returns the licenses with at least one active machine running this version of the product.
486
+ machine_platform: 'macOS 15.1', # String | Only returns the licenses with at least one active machine on this platform.
486
487
  status: LicenseManager::LicenseStatus::ACTIVE, # LicenseStatus | Only returns the licenses with this status.
487
488
  created_from: Time.parse('2026-01-01T00:00:00.000Z'), # Time | Only returns the licenses created at or after this date.
488
489
  created_to: Time.parse('2026-02-01T00:00:00.000Z'), # Time | Only returns the licenses created at or before this date.
@@ -538,6 +539,7 @@ end
538
539
  | **key** | **String** | Only returns the license with this exact key, case included. Keys of test products start with `TEST-`. | [optional] |
539
540
  | **policy_id** | **String** | Only returns the licenses following this policy. | [optional] |
540
541
  | **machine_version** | **String** | Only returns the licenses with at least one active machine running this version of the product. | [optional] |
542
+ | **machine_platform** | **String** | Only returns the licenses with at least one active machine on this platform. | [optional] |
541
543
  | **status** | [**LicenseStatus**](.md) | Only returns the licenses with this status. | [optional] |
542
544
  | **created_from** | **Time** | Only returns the licenses created at or after this date. | [optional] |
543
545
  | **created_to** | **Time** | Only returns the licenses created at or before this date. | [optional] |
@@ -599,6 +601,7 @@ opts = {
599
601
  policy_id: 'p4Rt8LmQ', # String | Only returns the licenses following this policy.
600
602
  customer_id: 'c9Wd3RtE', # String | Only returns the licenses of this customer.
601
603
  machine_version: '2.3.1', # String | Only returns the licenses with at least one active machine running this version of the product.
604
+ machine_platform: 'macOS 15.1', # String | Only returns the licenses with at least one active machine on this platform.
602
605
  status: LicenseManager::LicenseStatus::ACTIVE, # LicenseStatus | Only returns the licenses with this status.
603
606
  created_from: Time.parse('2026-01-01T00:00:00.000Z'), # Time | Only returns the licenses created at or after this date.
604
607
  created_to: Time.parse('2026-02-01T00:00:00.000Z'), # Time | Only returns the licenses created at or before this date.
@@ -655,6 +658,7 @@ end
655
658
  | **policy_id** | **String** | Only returns the licenses following this policy. | [optional] |
656
659
  | **customer_id** | **String** | Only returns the licenses of this customer. | [optional] |
657
660
  | **machine_version** | **String** | Only returns the licenses with at least one active machine running this version of the product. | [optional] |
661
+ | **machine_platform** | **String** | Only returns the licenses with at least one active machine on this platform. | [optional] |
658
662
  | **status** | [**LicenseStatus**](.md) | Only returns the licenses with this status. | [optional] |
659
663
  | **created_from** | **Time** | Only returns the licenses created at or after this date. | [optional] |
660
664
  | **created_to** | **Time** | Only returns the licenses created at or before this date. | [optional] |
@@ -424,6 +424,7 @@ module LicenseManager
424
424
  # @option opts [String] :key Only returns the license with this exact key, case included. Keys of test products start with `TEST-`.
425
425
  # @option opts [String] :policy_id Only returns the licenses following this policy.
426
426
  # @option opts [String] :machine_version Only returns the licenses with at least one active machine running this version of the product.
427
+ # @option opts [String] :machine_platform Only returns the licenses with at least one active machine on this platform.
427
428
  # @option opts [LicenseStatus] :status Only returns the licenses with this status.
428
429
  # @option opts [Time] :created_from Only returns the licenses created at or after this date.
429
430
  # @option opts [Time] :created_to Only returns the licenses created at or before this date.
@@ -455,6 +456,7 @@ module LicenseManager
455
456
  # @option opts [String] :key Only returns the license with this exact key, case included. Keys of test products start with `TEST-`.
456
457
  # @option opts [String] :policy_id Only returns the licenses following this policy.
457
458
  # @option opts [String] :machine_version Only returns the licenses with at least one active machine running this version of the product.
459
+ # @option opts [String] :machine_platform Only returns the licenses with at least one active machine on this platform.
458
460
  # @option opts [LicenseStatus] :status Only returns the licenses with this status.
459
461
  # @option opts [Time] :created_from Only returns the licenses created at or after this date.
460
462
  # @option opts [Time] :created_to Only returns the licenses created at or before this date.
@@ -526,6 +528,7 @@ module LicenseManager
526
528
  query_params[:'key'] = opts[:'key'] if !opts[:'key'].nil?
527
529
  query_params[:'policyId'] = opts[:'policy_id'] if !opts[:'policy_id'].nil?
528
530
  query_params[:'machineVersion'] = opts[:'machine_version'] if !opts[:'machine_version'].nil?
531
+ query_params[:'machinePlatform'] = opts[:'machine_platform'] if !opts[:'machine_platform'].nil?
529
532
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
530
533
  query_params[:'createdFrom'] = opts[:'created_from'] if !opts[:'created_from'].nil?
531
534
  query_params[:'createdTo'] = opts[:'created_to'] if !opts[:'created_to'].nil?
@@ -587,6 +590,7 @@ module LicenseManager
587
590
  # @option opts [String] :policy_id Only returns the licenses following this policy.
588
591
  # @option opts [String] :customer_id Only returns the licenses of this customer.
589
592
  # @option opts [String] :machine_version Only returns the licenses with at least one active machine running this version of the product.
593
+ # @option opts [String] :machine_platform Only returns the licenses with at least one active machine on this platform.
590
594
  # @option opts [LicenseStatus] :status Only returns the licenses with this status.
591
595
  # @option opts [Time] :created_from Only returns the licenses created at or after this date.
592
596
  # @option opts [Time] :created_to Only returns the licenses created at or before this date.
@@ -619,6 +623,7 @@ module LicenseManager
619
623
  # @option opts [String] :policy_id Only returns the licenses following this policy.
620
624
  # @option opts [String] :customer_id Only returns the licenses of this customer.
621
625
  # @option opts [String] :machine_version Only returns the licenses with at least one active machine running this version of the product.
626
+ # @option opts [String] :machine_platform Only returns the licenses with at least one active machine on this platform.
622
627
  # @option opts [LicenseStatus] :status Only returns the licenses with this status.
623
628
  # @option opts [Time] :created_from Only returns the licenses created at or after this date.
624
629
  # @option opts [Time] :created_to Only returns the licenses created at or before this date.
@@ -691,6 +696,7 @@ module LicenseManager
691
696
  query_params[:'policyId'] = opts[:'policy_id'] if !opts[:'policy_id'].nil?
692
697
  query_params[:'customerId'] = opts[:'customer_id'] if !opts[:'customer_id'].nil?
693
698
  query_params[:'machineVersion'] = opts[:'machine_version'] if !opts[:'machine_version'].nil?
699
+ query_params[:'machinePlatform'] = opts[:'machine_platform'] if !opts[:'machine_platform'].nil?
694
700
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
695
701
  query_params[:'createdFrom'] = opts[:'created_from'] if !opts[:'created_from'].nil?
696
702
  query_params[:'createdTo'] = opts[:'created_to'] if !opts[:'created_to'].nil?
@@ -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)
@@ -11,5 +11,5 @@ Generator version: 7.26.0
11
11
  =end
12
12
 
13
13
  module LicenseManager
14
- VERSION = '0.3.2'
14
+ VERSION = '0.3.4'
15
15
  end
@@ -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 = "Unlicense"
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
- "allOf": [
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"
@@ -6634,6 +6631,17 @@
6634
6631
  "name": "machineVersion",
6635
6632
  "in": "query"
6636
6633
  },
6634
+ {
6635
+ "schema": {
6636
+ "type": "string",
6637
+ "description": "Only returns the licenses with at least one active machine on this platform.",
6638
+ "example": "macOS 15.1"
6639
+ },
6640
+ "required": false,
6641
+ "description": "Only returns the licenses with at least one active machine on this platform.",
6642
+ "name": "machinePlatform",
6643
+ "in": "query"
6644
+ },
6637
6645
  {
6638
6646
  "schema": {
6639
6647
  "allOf": [
@@ -7135,6 +7143,17 @@
7135
7143
  "name": "machineVersion",
7136
7144
  "in": "query"
7137
7145
  },
7146
+ {
7147
+ "schema": {
7148
+ "type": "string",
7149
+ "description": "Only returns the licenses with at least one active machine on this platform.",
7150
+ "example": "macOS 15.1"
7151
+ },
7152
+ "required": false,
7153
+ "description": "Only returns the licenses with at least one active machine on this platform.",
7154
+ "name": "machinePlatform",
7155
+ "in": "query"
7156
+ },
7138
7157
  {
7139
7158
  "schema": {
7140
7159
  "allOf": [
@@ -117,6 +117,7 @@ describe 'LicensesApi' do
117
117
  # @option opts [String] :key Only returns the license with this exact key, case included. Keys of test products start with &#x60;TEST-&#x60;.
118
118
  # @option opts [String] :policy_id Only returns the licenses following this policy.
119
119
  # @option opts [String] :machine_version Only returns the licenses with at least one active machine running this version of the product.
120
+ # @option opts [String] :machine_platform Only returns the licenses with at least one active machine on this platform.
120
121
  # @option opts [LicenseStatus] :status Only returns the licenses with this status.
121
122
  # @option opts [Time] :created_from Only returns the licenses created at or after this date.
122
123
  # @option opts [Time] :created_to Only returns the licenses created at or before this date.
@@ -151,6 +152,7 @@ describe 'LicensesApi' do
151
152
  # @option opts [String] :policy_id Only returns the licenses following this policy.
152
153
  # @option opts [String] :customer_id Only returns the licenses of this customer.
153
154
  # @option opts [String] :machine_version Only returns the licenses with at least one active machine running this version of the product.
155
+ # @option opts [String] :machine_platform Only returns the licenses with at least one active machine on this platform.
154
156
  # @option opts [LicenseStatus] :status Only returns the licenses with this status.
155
157
  # @option opts [Time] :created_from Only returns the licenses created at or after this date.
156
158
  # @option opts [Time] :created_to Only returns the licenses created at or before this date.
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.2
4
+ version: 0.3.4
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
- - Unlicense
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