stigg 0.1.0.pre.alpha.12 → 0.1.0.pre.alpha.13
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 +14 -0
- data/README.md +1 -1
- data/lib/stigg/internal/util.rb +31 -0
- data/lib/stigg/models/v1/subscription.rb +1240 -14
- data/lib/stigg/models/v1/subscription_list_response.rb +1238 -14
- data/lib/stigg/models/v1/subscription_provision_params.rb +298 -347
- data/lib/stigg/models/v1/subscription_provision_response.rb +796 -92
- data/lib/stigg/models/v1/subscription_update_params.rb +297 -296
- data/lib/stigg/resources/v1/addons.rb +3 -1
- data/lib/stigg/resources/v1/coupons.rb +3 -1
- data/lib/stigg/resources/v1/customers/payment_method.rb +1 -0
- data/lib/stigg/resources/v1/customers/promotional_entitlements.rb +3 -1
- data/lib/stigg/resources/v1/customers.rb +6 -2
- data/lib/stigg/resources/v1/events.rb +1 -0
- data/lib/stigg/resources/v1/features.rb +3 -1
- data/lib/stigg/resources/v1/plans.rb +3 -1
- data/lib/stigg/resources/v1/products.rb +3 -1
- data/lib/stigg/resources/v1/subscriptions/future_update.rb +1 -0
- data/lib/stigg/resources/v1/subscriptions/invoice.rb +1 -0
- data/lib/stigg/resources/v1/subscriptions/usage.rb +1 -0
- data/lib/stigg/resources/v1/subscriptions.rb +7 -3
- data/lib/stigg/resources/v1/usage.rb +3 -1
- data/lib/stigg/resources/v1.rb +7 -0
- data/lib/stigg/version.rb +1 -1
- data/rbi/stigg/internal/util.rbi +20 -0
- data/rbi/stigg/models/v1/subscription.rbi +4401 -47
- data/rbi/stigg/models/v1/subscription_list_response.rbi +4481 -46
- data/rbi/stigg/models/v1/subscription_provision_params.rbi +1328 -1482
- data/rbi/stigg/models/v1/subscription_provision_response.rbi +2582 -319
- data/rbi/stigg/models/v1/subscription_update_params.rbi +1348 -1418
- data/rbi/stigg/resources/v1/addons.rbi +1 -0
- data/rbi/stigg/resources/v1/coupons.rbi +1 -0
- data/rbi/stigg/resources/v1/customers/payment_method.rbi +1 -0
- data/rbi/stigg/resources/v1/customers/promotional_entitlements.rbi +1 -0
- data/rbi/stigg/resources/v1/customers.rbi +2 -0
- data/rbi/stigg/resources/v1/events.rbi +1 -0
- data/rbi/stigg/resources/v1/features.rbi +1 -0
- data/rbi/stigg/resources/v1/plans.rbi +1 -0
- data/rbi/stigg/resources/v1/products.rbi +1 -0
- data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +1 -0
- data/rbi/stigg/resources/v1/subscriptions/invoice.rbi +1 -0
- data/rbi/stigg/resources/v1/subscriptions/usage.rbi +1 -0
- data/rbi/stigg/resources/v1/subscriptions.rbi +5 -0
- data/rbi/stigg/resources/v1/usage.rbi +1 -0
- data/rbi/stigg/resources/v1.rbi +7 -0
- data/sig/stigg/internal/util.rbs +10 -0
- data/sig/stigg/models/v1/subscription.rbs +1748 -8
- data/sig/stigg/models/v1/subscription_list_response.rbs +1751 -7
- data/sig/stigg/models/v1/subscription_provision_params.rbs +521 -584
- data/sig/stigg/models/v1/subscription_provision_response.rbs +944 -95
- data/sig/stigg/models/v1/subscription_update_params.rbs +512 -550
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc615a933fdfb8860430c32e0d8431476b0bf2b395e4e9f0af4df7083b9eb78e
|
|
4
|
+
data.tar.gz: cd8c85ba83dfdcf1d4496b7c5b609ab6788fa481926ba6c9ff9ff68c8442ff9d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f7062302c2519632f2900efb20aed6e231d4a7c507bd5969958395299610786bea20714b6250943e821fd2954468214944f11ed13d24f58fbc9879d9bde5f1c3
|
|
7
|
+
data.tar.gz: 1c0acb84a28a5ed9530fe7f90789a87639e6f583d0d4f6a3c4e247d58a4fc717fb9c3bb5646c67d465a86c2bdd74283c0e2c58c76d0ecd0f84a46523b0ff65f1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.13 (2026-03-04)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.12...v0.1.0-alpha.13](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.12...v0.1.0-alpha.13)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([e91a0fb](https://github.com/stiggio/stigg-ruby/commit/e91a0fb516a3500cdbdbe1043de55ba559ec5828))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **ci:** add build step ([3847eba](https://github.com/stiggio/stigg-ruby/commit/3847eba196aa844671cc67d1b5ae13c1146c8bdf))
|
|
15
|
+
* **internal:** codegen related update ([d3bc778](https://github.com/stiggio/stigg-ruby/commit/d3bc778b1cfd72d6f27fe65b4565729dc4466400))
|
|
16
|
+
|
|
3
17
|
## 0.1.0-alpha.12 (2026-03-02)
|
|
4
18
|
|
|
5
19
|
Full Changelog: [v0.1.0-alpha.11...v0.1.0-alpha.12](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.11...v0.1.0-alpha.12)
|
data/README.md
CHANGED
|
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
|
24
24
|
<!-- x-release-please-start-version -->
|
|
25
25
|
|
|
26
26
|
```ruby
|
|
27
|
-
gem "stigg", "~> 0.1.0.pre.alpha.
|
|
27
|
+
gem "stigg", "~> 0.1.0.pre.alpha.13"
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
<!-- x-release-please-end -->
|
data/lib/stigg/internal/util.rb
CHANGED
|
@@ -490,6 +490,37 @@ module Stigg
|
|
|
490
490
|
JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}
|
|
491
491
|
|
|
492
492
|
class << self
|
|
493
|
+
# @api private
|
|
494
|
+
#
|
|
495
|
+
# @param query [Hash{Symbol=>Object}]
|
|
496
|
+
#
|
|
497
|
+
# @return [Hash{Symbol=>Object}]
|
|
498
|
+
def encode_query_params(query)
|
|
499
|
+
out = {}
|
|
500
|
+
query.each { write_query_param_element!(out, _1, _2) }
|
|
501
|
+
out
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
# @api private
|
|
505
|
+
#
|
|
506
|
+
# @param collection [Hash{Symbol=>Object}]
|
|
507
|
+
# @param key [String]
|
|
508
|
+
# @param element [Object]
|
|
509
|
+
#
|
|
510
|
+
# @return [nil]
|
|
511
|
+
private def write_query_param_element!(collection, key, element)
|
|
512
|
+
case element
|
|
513
|
+
in Hash
|
|
514
|
+
element.each do |name, value|
|
|
515
|
+
write_query_param_element!(collection, "#{key}[#{name}]", value)
|
|
516
|
+
end
|
|
517
|
+
in Array
|
|
518
|
+
collection[key] = element.map(&:to_s).join(",")
|
|
519
|
+
else
|
|
520
|
+
collection[key] = element.to_s
|
|
521
|
+
end
|
|
522
|
+
end
|
|
523
|
+
|
|
493
524
|
# @api private
|
|
494
525
|
#
|
|
495
526
|
# @param y [Enumerator::Yielder]
|