stigg 0.1.0.pre.alpha.18 → 0.1.0.pre.alpha.19

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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/README.md +9 -9
  4. data/lib/stigg/models/v1/coupon.rb +3 -3
  5. data/lib/stigg/models/v1/coupon_create_params.rb +3 -3
  6. data/lib/stigg/models/v1/coupon_list_response.rb +3 -3
  7. data/lib/stigg/models/v1/customer_list_response.rb +605 -1
  8. data/lib/stigg/models/v1/customer_provision_params.rb +604 -1
  9. data/lib/stigg/models/v1/customer_response.rb +607 -1
  10. data/lib/stigg/models/v1/customer_update_params.rb +604 -1
  11. data/lib/stigg/models/v1/events/credits/grant_create_params.rb +3 -3
  12. data/lib/stigg/models/v1/product_create_product_params.rb +9 -9
  13. data/lib/stigg/models/v1/subscription.rb +6 -6
  14. data/lib/stigg/models/v1/subscription_list_response.rb +6 -6
  15. data/lib/stigg/models/v1/subscription_preview_params.rb +3 -3
  16. data/lib/stigg/models/v1/subscription_provision_params.rb +11 -9
  17. data/lib/stigg/models/v1/subscription_provision_response.rb +6 -6
  18. data/lib/stigg/models/v1/subscription_update_params.rb +3 -3
  19. data/lib/stigg/resources/v1/customers.rb +18 -2
  20. data/lib/stigg/resources/v1/products.rb +3 -3
  21. data/lib/stigg/version.rb +1 -1
  22. data/rbi/stigg/models/v1/coupon.rbi +3 -3
  23. data/rbi/stigg/models/v1/coupon_create_params.rbi +3 -3
  24. data/rbi/stigg/models/v1/coupon_list_response.rbi +3 -3
  25. data/rbi/stigg/models/v1/customer_list_response.rbi +1912 -3
  26. data/rbi/stigg/models/v1/customer_provision_params.rbi +1897 -0
  27. data/rbi/stigg/models/v1/customer_response.rbi +1909 -3
  28. data/rbi/stigg/models/v1/customer_update_params.rbi +1892 -0
  29. data/rbi/stigg/models/v1/events/credits/grant_create_params.rbi +3 -3
  30. data/rbi/stigg/models/v1/product_create_product_params.rbi +8 -11
  31. data/rbi/stigg/models/v1/subscription.rbi +6 -6
  32. data/rbi/stigg/models/v1/subscription_list_response.rbi +6 -6
  33. data/rbi/stigg/models/v1/subscription_preview_params.rbi +3 -3
  34. data/rbi/stigg/models/v1/subscription_provision_params.rbi +10 -9
  35. data/rbi/stigg/models/v1/subscription_provision_response.rbi +6 -6
  36. data/rbi/stigg/models/v1/subscription_update_params.rbi +3 -3
  37. data/rbi/stigg/resources/v1/customers.rbi +31 -0
  38. data/rbi/stigg/resources/v1/products.rbi +3 -3
  39. data/sig/stigg/models/v1/customer_list_response.rbs +826 -3
  40. data/sig/stigg/models/v1/customer_provision_params.rbs +824 -1
  41. data/sig/stigg/models/v1/customer_response.rbs +826 -3
  42. data/sig/stigg/models/v1/customer_update_params.rbs +824 -1
  43. data/sig/stigg/models/v1/product_create_product_params.rbs +5 -7
  44. data/sig/stigg/resources/v1/customers.rbs +8 -0
  45. data/sig/stigg/resources/v1/products.rbs +1 -1
  46. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84949d1fd198009e8d1aea70933b0565341a087a17d7593276c8dc1cdb188397
4
- data.tar.gz: 7f6583b8f175172809e907195eea24fb51bf2bdd5706edf0be957ce7cf9be360
3
+ metadata.gz: 35988b4f6c4158f04314b576481998a80d8df73204518228059943261224ae09
4
+ data.tar.gz: ca8627cacd425bb133ece2798c99d883bee5bc252b1c547a54f119892fdd53b6
5
5
  SHA512:
6
- metadata.gz: 1cbf221017bdd78e1af8652f95e6ba5886b759ab6b5439947e553a5caf4b261ce31b2f53f2a166d016902858c1b702608b1b8ca761a0ad03280e168f2b887103
7
- data.tar.gz: 50e763647294712b946b83cf9b554b77a0718e9de2a9b3fa15d80b39dc559b79bf41f8abde67fd2fa66b350555c1331020cf194b3e29a52decbaf7d6c23ca94a
6
+ metadata.gz: 59f87245c6d15f0e112883353e196e33184654744efae568b4ac0a4f05cc735e1a7826aefac0d04c1dacd72d8decd193166ebfeafef9c54cd4b8ae896fa16a19
7
+ data.tar.gz: e9456dc47b0605af146d1faa8011391f63f8c91a3221b0c429baffa76893f5e19b4cbe9443acc79a1d339210fd3c044e1423fd3db9c6e5b1686cb370b40e3692
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.19 (2026-03-16)
4
+
5
+ Full Changelog: [v0.1.0-alpha.18...v0.1.0-alpha.19](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.18...v0.1.0-alpha.19)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([53a5dad](https://github.com/stiggio/stigg-ruby/commit/53a5dadabbfa92086f91cc91326aacad7cf87978))
10
+ * **api:** api update ([3c58c09](https://github.com/stiggio/stigg-ruby/commit/3c58c097a4c2890dec60d71fea8e810c00c1cd4b))
11
+ * **api:** api update ([754dc4a](https://github.com/stiggio/stigg-ruby/commit/754dc4a855a640fc0bc99c7ef5c84f9dbd881d6a))
12
+
3
13
  ## 0.1.0-alpha.18 (2026-03-12)
4
14
 
5
15
  Full Changelog: [v0.1.0-alpha.17...v0.1.0-alpha.18](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.17...v0.1.0-alpha.18)
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.18"
27
+ gem "stigg", "~> 0.1.0.pre.alpha.19"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -232,25 +232,25 @@ stigg.v1.customers.retrieve("REPLACE_ME", **params)
232
232
  Since this library does not depend on `sorbet-runtime`, it cannot provide [`T::Enum`](https://sorbet.org/docs/tenum) instances. Instead, we provide "tagged symbols" instead, which is always a primitive at runtime:
233
233
 
234
234
  ```ruby
235
- # :AUTH0
236
- puts(Stigg::V1::Customers::PaymentMethodAttachParams::VendorIdentifier::AUTH0)
235
+ # :usd
236
+ puts(Stigg::V1::CustomerUpdateParams::BillingCurrency::USD)
237
237
 
238
- # Revealed type: `T.all(Stigg::V1::Customers::PaymentMethodAttachParams::VendorIdentifier, Symbol)`
239
- T.reveal_type(Stigg::V1::Customers::PaymentMethodAttachParams::VendorIdentifier::AUTH0)
238
+ # Revealed type: `T.all(Stigg::V1::CustomerUpdateParams::BillingCurrency, Symbol)`
239
+ T.reveal_type(Stigg::V1::CustomerUpdateParams::BillingCurrency::USD)
240
240
  ```
241
241
 
242
242
  Enum parameters have a "relaxed" type, so you can either pass in enum constants or their literal value:
243
243
 
244
244
  ```ruby
245
245
  # Using the enum constants preserves the tagged type information:
246
- stigg.v1.customers.payment_method.attach(
247
- vendor_identifier: Stigg::V1::Customers::PaymentMethodAttachParams::VendorIdentifier::AUTH0,
246
+ stigg.v1.customers.update(
247
+ billing_currency: Stigg::V1::CustomerUpdateParams::BillingCurrency::USD,
248
248
  # …
249
249
  )
250
250
 
251
251
  # Literal values are also permissible:
252
- stigg.v1.customers.payment_method.attach(
253
- vendor_identifier: :AUTH0,
252
+ stigg.v1.customers.update(
253
+ billing_currency: :usd,
254
254
  # …
255
255
  )
256
256
  ```
@@ -144,7 +144,7 @@ module Stigg
144
144
  required :amount, Float
145
145
 
146
146
  # @!attribute currency
147
- # The price currency
147
+ # ISO 4217 currency code
148
148
  #
149
149
  # @return [Symbol, Stigg::Models::V1::Coupon::Data::AmountsOff::Currency]
150
150
  required :currency, enum: -> { Stigg::V1::Coupon::Data::AmountsOff::Currency }
@@ -154,9 +154,9 @@ module Stigg
154
154
  #
155
155
  # @param amount [Float] The price amount
156
156
  #
157
- # @param currency [Symbol, Stigg::Models::V1::Coupon::Data::AmountsOff::Currency] The price currency
157
+ # @param currency [Symbol, Stigg::Models::V1::Coupon::Data::AmountsOff::Currency] ISO 4217 currency code
158
158
 
159
- # The price currency
159
+ # ISO 4217 currency code
160
160
  #
161
161
  # @see Stigg::Models::V1::Coupon::Data::AmountsOff#currency
162
162
  module Currency
@@ -78,7 +78,7 @@ module Stigg
78
78
  required :amount, Float
79
79
 
80
80
  # @!attribute currency
81
- # The price currency
81
+ # ISO 4217 currency code
82
82
  #
83
83
  # @return [Symbol, Stigg::Models::V1::CouponCreateParams::AmountsOff::Currency]
84
84
  required :currency, enum: -> { Stigg::V1::CouponCreateParams::AmountsOff::Currency }
@@ -88,9 +88,9 @@ module Stigg
88
88
  #
89
89
  # @param amount [Float] The price amount
90
90
  #
91
- # @param currency [Symbol, Stigg::Models::V1::CouponCreateParams::AmountsOff::Currency] The price currency
91
+ # @param currency [Symbol, Stigg::Models::V1::CouponCreateParams::AmountsOff::Currency] ISO 4217 currency code
92
92
 
93
- # The price currency
93
+ # ISO 4217 currency code
94
94
  #
95
95
  # @see Stigg::Models::V1::CouponCreateParams::AmountsOff#currency
96
96
  module Currency
@@ -131,7 +131,7 @@ module Stigg
131
131
  required :amount, Float
132
132
 
133
133
  # @!attribute currency
134
- # The price currency
134
+ # ISO 4217 currency code
135
135
  #
136
136
  # @return [Symbol, Stigg::Models::V1::CouponListResponse::AmountsOff::Currency]
137
137
  required :currency, enum: -> { Stigg::Models::V1::CouponListResponse::AmountsOff::Currency }
@@ -141,9 +141,9 @@ module Stigg
141
141
  #
142
142
  # @param amount [Float] The price amount
143
143
  #
144
- # @param currency [Symbol, Stigg::Models::V1::CouponListResponse::AmountsOff::Currency] The price currency
144
+ # @param currency [Symbol, Stigg::Models::V1::CouponListResponse::AmountsOff::Currency] ISO 4217 currency code
145
145
 
146
- # The price currency
146
+ # ISO 4217 currency code
147
147
  #
148
148
  # @see Stigg::Models::V1::CouponListResponse::AmountsOff#currency
149
149
  module Currency