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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +9 -9
- data/lib/stigg/models/v1/coupon.rb +3 -3
- data/lib/stigg/models/v1/coupon_create_params.rb +3 -3
- data/lib/stigg/models/v1/coupon_list_response.rb +3 -3
- data/lib/stigg/models/v1/customer_list_response.rb +605 -1
- data/lib/stigg/models/v1/customer_provision_params.rb +604 -1
- data/lib/stigg/models/v1/customer_response.rb +607 -1
- data/lib/stigg/models/v1/customer_update_params.rb +604 -1
- data/lib/stigg/models/v1/events/credits/grant_create_params.rb +3 -3
- data/lib/stigg/models/v1/product_create_product_params.rb +9 -9
- data/lib/stigg/models/v1/subscription.rb +6 -6
- data/lib/stigg/models/v1/subscription_list_response.rb +6 -6
- data/lib/stigg/models/v1/subscription_preview_params.rb +3 -3
- data/lib/stigg/models/v1/subscription_provision_params.rb +11 -9
- data/lib/stigg/models/v1/subscription_provision_response.rb +6 -6
- data/lib/stigg/models/v1/subscription_update_params.rb +3 -3
- data/lib/stigg/resources/v1/customers.rb +18 -2
- data/lib/stigg/resources/v1/products.rb +3 -3
- data/lib/stigg/version.rb +1 -1
- data/rbi/stigg/models/v1/coupon.rbi +3 -3
- data/rbi/stigg/models/v1/coupon_create_params.rbi +3 -3
- data/rbi/stigg/models/v1/coupon_list_response.rbi +3 -3
- data/rbi/stigg/models/v1/customer_list_response.rbi +1912 -3
- data/rbi/stigg/models/v1/customer_provision_params.rbi +1897 -0
- data/rbi/stigg/models/v1/customer_response.rbi +1909 -3
- data/rbi/stigg/models/v1/customer_update_params.rbi +1892 -0
- data/rbi/stigg/models/v1/events/credits/grant_create_params.rbi +3 -3
- data/rbi/stigg/models/v1/product_create_product_params.rbi +8 -11
- data/rbi/stigg/models/v1/subscription.rbi +6 -6
- data/rbi/stigg/models/v1/subscription_list_response.rbi +6 -6
- data/rbi/stigg/models/v1/subscription_preview_params.rbi +3 -3
- data/rbi/stigg/models/v1/subscription_provision_params.rbi +10 -9
- data/rbi/stigg/models/v1/subscription_provision_response.rbi +6 -6
- data/rbi/stigg/models/v1/subscription_update_params.rbi +3 -3
- data/rbi/stigg/resources/v1/customers.rbi +31 -0
- data/rbi/stigg/resources/v1/products.rbi +3 -3
- data/sig/stigg/models/v1/customer_list_response.rbs +826 -3
- data/sig/stigg/models/v1/customer_provision_params.rbs +824 -1
- data/sig/stigg/models/v1/customer_response.rbs +826 -3
- data/sig/stigg/models/v1/customer_update_params.rbs +824 -1
- data/sig/stigg/models/v1/product_create_product_params.rbs +5 -7
- data/sig/stigg/resources/v1/customers.rbs +8 -0
- data/sig/stigg/resources/v1/products.rbs +1 -1
- 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: 35988b4f6c4158f04314b576481998a80d8df73204518228059943261224ae09
|
|
4
|
+
data.tar.gz: ca8627cacd425bb133ece2798c99d883bee5bc252b1c547a54f119892fdd53b6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
-
# :
|
|
236
|
-
puts(Stigg::V1::
|
|
235
|
+
# :usd
|
|
236
|
+
puts(Stigg::V1::CustomerUpdateParams::BillingCurrency::USD)
|
|
237
237
|
|
|
238
|
-
# Revealed type: `T.all(Stigg::V1::
|
|
239
|
-
T.reveal_type(Stigg::V1::
|
|
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.
|
|
247
|
-
|
|
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.
|
|
253
|
-
|
|
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
|
-
#
|
|
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]
|
|
157
|
+
# @param currency [Symbol, Stigg::Models::V1::Coupon::Data::AmountsOff::Currency] ISO 4217 currency code
|
|
158
158
|
|
|
159
|
-
#
|
|
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
|
-
#
|
|
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]
|
|
91
|
+
# @param currency [Symbol, Stigg::Models::V1::CouponCreateParams::AmountsOff::Currency] ISO 4217 currency code
|
|
92
92
|
|
|
93
|
-
#
|
|
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
|
-
#
|
|
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]
|
|
144
|
+
# @param currency [Symbol, Stigg::Models::V1::CouponListResponse::AmountsOff::Currency] ISO 4217 currency code
|
|
145
145
|
|
|
146
|
-
#
|
|
146
|
+
# ISO 4217 currency code
|
|
147
147
|
#
|
|
148
148
|
# @see Stigg::Models::V1::CouponListResponse::AmountsOff#currency
|
|
149
149
|
module Currency
|