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.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +1 -1
  4. data/lib/stigg/internal/util.rb +31 -0
  5. data/lib/stigg/models/v1/subscription.rb +1240 -14
  6. data/lib/stigg/models/v1/subscription_list_response.rb +1238 -14
  7. data/lib/stigg/models/v1/subscription_provision_params.rb +298 -347
  8. data/lib/stigg/models/v1/subscription_provision_response.rb +796 -92
  9. data/lib/stigg/models/v1/subscription_update_params.rb +297 -296
  10. data/lib/stigg/resources/v1/addons.rb +3 -1
  11. data/lib/stigg/resources/v1/coupons.rb +3 -1
  12. data/lib/stigg/resources/v1/customers/payment_method.rb +1 -0
  13. data/lib/stigg/resources/v1/customers/promotional_entitlements.rb +3 -1
  14. data/lib/stigg/resources/v1/customers.rb +6 -2
  15. data/lib/stigg/resources/v1/events.rb +1 -0
  16. data/lib/stigg/resources/v1/features.rb +3 -1
  17. data/lib/stigg/resources/v1/plans.rb +3 -1
  18. data/lib/stigg/resources/v1/products.rb +3 -1
  19. data/lib/stigg/resources/v1/subscriptions/future_update.rb +1 -0
  20. data/lib/stigg/resources/v1/subscriptions/invoice.rb +1 -0
  21. data/lib/stigg/resources/v1/subscriptions/usage.rb +1 -0
  22. data/lib/stigg/resources/v1/subscriptions.rb +7 -3
  23. data/lib/stigg/resources/v1/usage.rb +3 -1
  24. data/lib/stigg/resources/v1.rb +7 -0
  25. data/lib/stigg/version.rb +1 -1
  26. data/rbi/stigg/internal/util.rbi +20 -0
  27. data/rbi/stigg/models/v1/subscription.rbi +4401 -47
  28. data/rbi/stigg/models/v1/subscription_list_response.rbi +4481 -46
  29. data/rbi/stigg/models/v1/subscription_provision_params.rbi +1328 -1482
  30. data/rbi/stigg/models/v1/subscription_provision_response.rbi +2582 -319
  31. data/rbi/stigg/models/v1/subscription_update_params.rbi +1348 -1418
  32. data/rbi/stigg/resources/v1/addons.rbi +1 -0
  33. data/rbi/stigg/resources/v1/coupons.rbi +1 -0
  34. data/rbi/stigg/resources/v1/customers/payment_method.rbi +1 -0
  35. data/rbi/stigg/resources/v1/customers/promotional_entitlements.rbi +1 -0
  36. data/rbi/stigg/resources/v1/customers.rbi +2 -0
  37. data/rbi/stigg/resources/v1/events.rbi +1 -0
  38. data/rbi/stigg/resources/v1/features.rbi +1 -0
  39. data/rbi/stigg/resources/v1/plans.rbi +1 -0
  40. data/rbi/stigg/resources/v1/products.rbi +1 -0
  41. data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +1 -0
  42. data/rbi/stigg/resources/v1/subscriptions/invoice.rbi +1 -0
  43. data/rbi/stigg/resources/v1/subscriptions/usage.rbi +1 -0
  44. data/rbi/stigg/resources/v1/subscriptions.rbi +5 -0
  45. data/rbi/stigg/resources/v1/usage.rbi +1 -0
  46. data/rbi/stigg/resources/v1.rbi +7 -0
  47. data/sig/stigg/internal/util.rbs +10 -0
  48. data/sig/stigg/models/v1/subscription.rbs +1748 -8
  49. data/sig/stigg/models/v1/subscription_list_response.rbs +1751 -7
  50. data/sig/stigg/models/v1/subscription_provision_params.rbs +521 -584
  51. data/sig/stigg/models/v1/subscription_provision_response.rbs +944 -95
  52. data/sig/stigg/models/v1/subscription_update_params.rbs +512 -550
  53. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18cfb99fbc47b461de3b97ec88b2add3906f6ac04cc340f003ac4b915428e987
4
- data.tar.gz: 5e2d8c5f464d13c122c78a4fadf25cca42179501462dbd71dd5a9ac55224ce1a
3
+ metadata.gz: cc615a933fdfb8860430c32e0d8431476b0bf2b395e4e9f0af4df7083b9eb78e
4
+ data.tar.gz: cd8c85ba83dfdcf1d4496b7c5b609ab6788fa481926ba6c9ff9ff68c8442ff9d
5
5
  SHA512:
6
- metadata.gz: d4bed75ee09990e57394947917f3868d1b4316249746efff6defccd4476c49fbaee7a37eef5a362a607c25f4b3e1210a230451e6bb05541ee534d075410bf759
7
- data.tar.gz: cae0a028b670b2e245bce500da799eff41769f90c8cfc815e2a444bd2bca2a192721a9c1611566d2fb5689d15fab15a742c2c57c89084feed3f67397cf3278bf
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.12"
27
+ gem "stigg", "~> 0.1.0.pre.alpha.13"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -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]