stigg 0.1.0.pre.alpha.4 → 0.1.0.pre.alpha.5
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 +24 -0
- data/README.md +10 -1
- data/lib/stigg/client.rb +1 -1
- data/lib/stigg/models/v1/coupon_archive_coupon_params.rb +16 -0
- data/lib/stigg/models/v1/coupon_create_params.rb +9 -9
- data/lib/stigg/models/v1/coupon_list_params.rb +81 -1
- data/lib/stigg/models/v1/coupon_update_coupon_params.rb +40 -0
- data/lib/stigg/models/v1/customer_list_params.rb +62 -1
- data/lib/stigg/models/v1/customers/{promotional_entitlement_grant_params.rb → promotional_entitlement_create_params.rb} +38 -38
- data/lib/stigg/models/v1/customers/{promotional_entitlement_grant_response.rb → promotional_entitlement_create_response.rb} +37 -37
- data/lib/stigg/models/v1/customers/promotional_entitlement_list_params.rb +100 -0
- data/lib/stigg/models/v1/customers/promotional_entitlement_list_response.rb +326 -0
- data/lib/stigg/models/v1/customers/promotional_entitlement_revoke_params.rb +4 -4
- data/lib/stigg/models/v1/events/addon_archive_addon_params.rb +18 -0
- data/lib/stigg/models/v1/events/addon_archive_addon_response.rb +204 -0
- data/lib/stigg/models/v1/events/addon_create_addon_params.rb +116 -0
- data/lib/stigg/models/v1/events/addon_create_addon_response.rb +204 -0
- data/lib/stigg/models/v1/events/addon_list_addons_params.rb +103 -0
- data/lib/stigg/models/v1/events/addon_list_addons_response.rb +190 -0
- data/lib/stigg/models/v1/events/addon_publish_addon_params.rb +39 -0
- data/lib/stigg/models/v1/events/addon_publish_addon_response.rb +34 -0
- data/lib/stigg/models/v1/events/addon_retrieve_addon_params.rb +18 -0
- data/lib/stigg/models/v1/events/addon_retrieve_addon_response.rb +205 -0
- data/lib/stigg/models/v1/events/addon_update_addon_params.rb +66 -0
- data/lib/stigg/models/v1/events/addon_update_addon_response.rb +204 -0
- data/lib/stigg/models/v1/events/addons/draft_create_addon_draft_params.rb +20 -0
- data/lib/stigg/models/v1/events/addons/draft_create_addon_draft_response.rb +208 -0
- data/lib/stigg/models/v1/events/addons/draft_remove_addon_draft_params.rb +20 -0
- data/lib/stigg/models/v1/events/addons/draft_remove_addon_draft_response.rb +36 -0
- data/lib/stigg/models/v1/events/feature_archive_feature_params.rb +18 -0
- data/lib/stigg/models/v1/events/feature_archive_feature_response.rb +258 -0
- data/lib/stigg/models/v1/events/feature_create_feature_params.rb +224 -0
- data/lib/stigg/models/v1/events/feature_create_feature_response.rb +258 -0
- data/lib/stigg/models/v1/events/feature_list_features_params.rb +119 -0
- data/lib/stigg/models/v1/events/feature_list_features_response.rb +244 -0
- data/lib/stigg/models/v1/events/feature_retrieve_feature_params.rb +18 -0
- data/lib/stigg/models/v1/events/feature_retrieve_feature_response.rb +258 -0
- data/lib/stigg/models/v1/events/feature_unarchive_feature_params.rb +18 -0
- data/lib/stigg/models/v1/events/feature_unarchive_feature_response.rb +258 -0
- data/lib/stigg/models/v1/events/feature_update_feature_params.rb +268 -0
- data/lib/stigg/models/v1/events/feature_update_feature_response.rb +258 -0
- data/lib/stigg/models/v1/product_archive_product_params.rb +16 -0
- data/lib/stigg/models/v1/product_archive_product_response.rb +223 -0
- data/lib/stigg/models/v1/product_create_product_params.rb +56 -0
- data/lib/stigg/models/v1/product_create_product_response.rb +223 -0
- data/lib/stigg/models/v1/product_duplicate_product_params.rb +40 -0
- data/lib/stigg/models/v1/product_duplicate_product_response.rb +223 -0
- data/lib/stigg/models/v1/product_list_products_params.rb +62 -1
- data/lib/stigg/models/v1/product_list_products_response.rb +120 -1
- data/lib/stigg/models/v1/product_unarchive_product_params.rb +16 -0
- data/lib/stigg/models/v1/product_unarchive_product_response.rb +223 -0
- data/lib/stigg/models/v1/product_update_product_params.rb +198 -0
- data/lib/stigg/models/v1/product_update_product_response.rb +223 -0
- data/lib/stigg/models/v1/subscription_list_params.rb +76 -3
- data/lib/stigg/models/v1/subscription_provision_response.rb +53 -45
- data/lib/stigg/models/v1/subscription_update_params.rb +27 -3
- data/lib/stigg/models/v1/subscriptions/invoice_mark_as_paid_params.rb +18 -0
- data/lib/stigg/models/v1/subscriptions/invoice_mark_as_paid_response.rb +37 -0
- data/lib/stigg/models/v1/subscriptions/usage_charge_usage_params.rb +26 -0
- data/lib/stigg/models/v1/subscriptions/usage_charge_usage_response.rb +97 -0
- data/lib/stigg/models/v1/subscriptions/usage_sync_usage_params.rb +18 -0
- data/lib/stigg/models/v1/subscriptions/usage_sync_usage_response.rb +37 -0
- data/lib/stigg/resources/v1/coupons.rb +61 -5
- data/lib/stigg/resources/v1/customers/promotional_entitlements.rb +51 -14
- data/lib/stigg/resources/v1/customers.rb +8 -2
- data/lib/stigg/resources/v1/events/addons/draft.rb +60 -0
- data/lib/stigg/resources/v1/events/addons.rb +193 -0
- data/lib/stigg/resources/v1/events/features.rb +200 -0
- data/lib/stigg/resources/v1/events.rb +8 -0
- data/lib/stigg/resources/v1/products.rb +142 -2
- data/lib/stigg/resources/v1/subscriptions/invoice.rb +39 -0
- data/lib/stigg/resources/v1/subscriptions/usage.rb +64 -0
- data/lib/stigg/resources/v1/subscriptions.rb +28 -3
- data/lib/stigg/version.rb +1 -1
- data/lib/stigg.rb +55 -2
- data/rbi/stigg/models/v1/coupon_archive_coupon_params.rbi +32 -0
- data/rbi/stigg/models/v1/coupon_create_params.rbi +8 -11
- data/rbi/stigg/models/v1/coupon_list_params.rbi +129 -0
- data/rbi/stigg/models/v1/coupon_update_coupon_params.rbi +64 -0
- data/rbi/stigg/models/v1/customer_list_params.rbi +97 -0
- data/rbi/stigg/models/v1/customers/{promotional_entitlement_grant_params.rbi → promotional_entitlement_create_params.rbi} +68 -68
- data/rbi/stigg/models/v1/customers/{promotional_entitlement_grant_response.rbi → promotional_entitlement_create_response.rbi} +73 -73
- data/rbi/stigg/models/v1/customers/promotional_entitlement_list_params.rbi +174 -0
- data/rbi/stigg/models/v1/customers/promotional_entitlement_list_response.rbi +646 -0
- data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbi +4 -4
- data/rbi/stigg/models/v1/events/addon_archive_addon_params.rbi +34 -0
- data/rbi/stigg/models/v1/events/addon_archive_addon_response.rbi +388 -0
- data/rbi/stigg/models/v1/events/addon_create_addon_params.rbi +235 -0
- data/rbi/stigg/models/v1/events/addon_create_addon_response.rbi +388 -0
- data/rbi/stigg/models/v1/events/addon_list_addons_params.rbi +180 -0
- data/rbi/stigg/models/v1/events/addon_list_addons_response.rbi +341 -0
- data/rbi/stigg/models/v1/events/addon_publish_addon_params.rbi +91 -0
- data/rbi/stigg/models/v1/events/addon_publish_addon_response.rbi +77 -0
- data/rbi/stigg/models/v1/events/addon_retrieve_addon_params.rbi +34 -0
- data/rbi/stigg/models/v1/events/addon_retrieve_addon_response.rbi +389 -0
- data/rbi/stigg/models/v1/events/addon_update_addon_params.rbi +96 -0
- data/rbi/stigg/models/v1/events/addon_update_addon_response.rbi +388 -0
- data/rbi/stigg/models/v1/events/addons/draft_create_addon_draft_params.rbi +36 -0
- data/rbi/stigg/models/v1/events/addons/draft_create_addon_draft_response.rbi +393 -0
- data/rbi/stigg/models/v1/events/addons/draft_remove_addon_draft_params.rbi +36 -0
- data/rbi/stigg/models/v1/events/addons/draft_remove_addon_draft_response.rbi +82 -0
- data/rbi/stigg/models/v1/events/feature_archive_feature_params.rbi +34 -0
- data/rbi/stigg/models/v1/events/feature_archive_feature_response.rbi +505 -0
- data/rbi/stigg/models/v1/events/feature_create_feature_params.rbi +498 -0
- data/rbi/stigg/models/v1/events/feature_create_feature_response.rbi +505 -0
- data/rbi/stigg/models/v1/events/feature_list_features_params.rbi +203 -0
- data/rbi/stigg/models/v1/events/feature_list_features_response.rbi +455 -0
- data/rbi/stigg/models/v1/events/feature_retrieve_feature_params.rbi +34 -0
- data/rbi/stigg/models/v1/events/feature_retrieve_feature_response.rbi +505 -0
- data/rbi/stigg/models/v1/events/feature_unarchive_feature_params.rbi +34 -0
- data/rbi/stigg/models/v1/events/feature_unarchive_feature_response.rbi +505 -0
- data/rbi/stigg/models/v1/events/feature_update_feature_params.rbi +676 -0
- data/rbi/stigg/models/v1/events/feature_update_feature_response.rbi +505 -0
- data/rbi/stigg/models/v1/product_archive_product_params.rbi +32 -0
- data/rbi/stigg/models/v1/product_archive_product_response.rbi +416 -0
- data/rbi/stigg/models/v1/product_create_product_params.rbi +86 -0
- data/rbi/stigg/models/v1/product_create_product_response.rbi +416 -0
- data/rbi/stigg/models/v1/product_duplicate_product_params.rbi +67 -0
- data/rbi/stigg/models/v1/product_duplicate_product_response.rbi +420 -0
- data/rbi/stigg/models/v1/product_list_products_params.rbi +99 -0
- data/rbi/stigg/models/v1/product_list_products_response.rbi +238 -3
- data/rbi/stigg/models/v1/product_unarchive_product_params.rbi +32 -0
- data/rbi/stigg/models/v1/product_unarchive_product_response.rbi +420 -0
- data/rbi/stigg/models/v1/product_update_product_params.rbi +410 -0
- data/rbi/stigg/models/v1/product_update_product_response.rbi +416 -0
- data/rbi/stigg/models/v1/subscription_list_params.rbi +112 -2
- data/rbi/stigg/models/v1/subscription_provision_response.rbi +105 -94
- data/rbi/stigg/models/v1/subscription_update_params.rbi +39 -3
- data/rbi/stigg/models/v1/subscriptions/invoice_mark_as_paid_params.rbi +34 -0
- data/rbi/stigg/models/v1/subscriptions/invoice_mark_as_paid_response.rbi +85 -0
- data/rbi/stigg/models/v1/subscriptions/usage_charge_usage_params.rbi +50 -0
- data/rbi/stigg/models/v1/subscriptions/usage_charge_usage_response.rbi +183 -0
- data/rbi/stigg/models/v1/subscriptions/usage_sync_usage_params.rbi +34 -0
- data/rbi/stigg/models/v1/subscriptions/usage_sync_usage_response.rbi +85 -0
- data/rbi/stigg/resources/v1/coupons.rbi +52 -3
- data/rbi/stigg/resources/v1/customers/promotional_entitlements.rbi +43 -8
- data/rbi/stigg/resources/v1/customers.rbi +9 -0
- data/rbi/stigg/resources/v1/events/addons/draft.rbi +50 -0
- data/rbi/stigg/resources/v1/events/addons.rbi +173 -0
- data/rbi/stigg/resources/v1/events/features.rbi +198 -0
- data/rbi/stigg/resources/v1/events.rbi +6 -0
- data/rbi/stigg/resources/v1/products.rbi +121 -0
- data/rbi/stigg/resources/v1/subscriptions/invoice.rbi +33 -0
- data/rbi/stigg/resources/v1/subscriptions/usage.rbi +51 -0
- data/rbi/stigg/resources/v1/subscriptions.rbi +20 -1
- data/sig/stigg/models/v1/coupon_archive_coupon_params.rbs +17 -0
- data/sig/stigg/models/v1/coupon_create_params.rbs +6 -8
- data/sig/stigg/models/v1/coupon_list_params.rbs +72 -1
- data/sig/stigg/models/v1/coupon_update_coupon_params.rbs +40 -0
- data/sig/stigg/models/v1/customer_list_params.rbs +52 -1
- data/sig/stigg/models/v1/customers/{promotional_entitlement_grant_params.rbs → promotional_entitlement_create_params.rbs} +43 -43
- data/sig/stigg/models/v1/customers/{promotional_entitlement_grant_response.rbs → promotional_entitlement_create_response.rbs} +44 -44
- data/sig/stigg/models/v1/customers/promotional_entitlement_list_params.rbs +91 -0
- data/sig/stigg/models/v1/customers/promotional_entitlement_list_response.rbs +264 -0
- data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbs +4 -7
- data/sig/stigg/models/v1/events/addon_archive_addon_params.rbs +19 -0
- data/sig/stigg/models/v1/events/addon_archive_addon_response.rbs +161 -0
- data/sig/stigg/models/v1/events/addon_create_addon_params.rbs +110 -0
- data/sig/stigg/models/v1/events/addon_create_addon_response.rbs +161 -0
- data/sig/stigg/models/v1/events/addon_list_addons_params.rbs +98 -0
- data/sig/stigg/models/v1/events/addon_list_addons_response.rbs +146 -0
- data/sig/stigg/models/v1/events/addon_publish_addon_params.rbs +41 -0
- data/sig/stigg/models/v1/events/addon_publish_addon_response.rbs +32 -0
- data/sig/stigg/models/v1/events/addon_retrieve_addon_params.rbs +19 -0
- data/sig/stigg/models/v1/events/addon_retrieve_addon_response.rbs +161 -0
- data/sig/stigg/models/v1/events/addon_update_addon_params.rbs +59 -0
- data/sig/stigg/models/v1/events/addon_update_addon_response.rbs +161 -0
- data/sig/stigg/models/v1/events/addons/draft_create_addon_draft_params.rbs +21 -0
- data/sig/stigg/models/v1/events/addons/draft_create_addon_draft_response.rbs +165 -0
- data/sig/stigg/models/v1/events/addons/draft_remove_addon_draft_params.rbs +21 -0
- data/sig/stigg/models/v1/events/addons/draft_remove_addon_draft_response.rbs +36 -0
- data/sig/stigg/models/v1/events/feature_archive_feature_params.rbs +19 -0
- data/sig/stigg/models/v1/events/feature_archive_feature_response.rbs +192 -0
- data/sig/stigg/models/v1/events/feature_create_feature_params.rbs +199 -0
- data/sig/stigg/models/v1/events/feature_create_feature_response.rbs +192 -0
- data/sig/stigg/models/v1/events/feature_list_features_params.rbs +112 -0
- data/sig/stigg/models/v1/events/feature_list_features_response.rbs +175 -0
- data/sig/stigg/models/v1/events/feature_retrieve_feature_params.rbs +19 -0
- data/sig/stigg/models/v1/events/feature_retrieve_feature_response.rbs +192 -0
- data/sig/stigg/models/v1/events/feature_unarchive_feature_params.rbs +19 -0
- data/sig/stigg/models/v1/events/feature_unarchive_feature_response.rbs +192 -0
- data/sig/stigg/models/v1/events/feature_update_feature_params.rbs +293 -0
- data/sig/stigg/models/v1/events/feature_update_feature_response.rbs +192 -0
- data/sig/stigg/models/v1/product_archive_product_params.rbs +17 -0
- data/sig/stigg/models/v1/product_archive_product_response.rbs +172 -0
- data/sig/stigg/models/v1/product_create_product_params.rbs +52 -0
- data/sig/stigg/models/v1/product_create_product_response.rbs +172 -0
- data/sig/stigg/models/v1/product_duplicate_product_params.rbs +36 -0
- data/sig/stigg/models/v1/product_duplicate_product_response.rbs +172 -0
- data/sig/stigg/models/v1/product_list_products_params.rbs +52 -1
- data/sig/stigg/models/v1/product_list_products_response.rbs +92 -3
- data/sig/stigg/models/v1/product_unarchive_product_params.rbs +17 -0
- data/sig/stigg/models/v1/product_unarchive_product_response.rbs +172 -0
- data/sig/stigg/models/v1/product_update_product_params.rbs +174 -0
- data/sig/stigg/models/v1/product_update_product_response.rbs +172 -0
- data/sig/stigg/models/v1/subscription_list_params.rbs +54 -0
- data/sig/stigg/models/v1/subscription_provision_response.rbs +58 -51
- data/sig/stigg/models/v1/subscription_update_params.rbs +25 -2
- data/sig/stigg/models/v1/subscriptions/invoice_mark_as_paid_params.rbs +19 -0
- data/sig/stigg/models/v1/subscriptions/invoice_mark_as_paid_response.rbs +34 -0
- data/sig/stigg/models/v1/subscriptions/usage_charge_usage_params.rbs +29 -0
- data/sig/stigg/models/v1/subscriptions/usage_charge_usage_response.rbs +73 -0
- data/sig/stigg/models/v1/subscriptions/usage_sync_usage_params.rbs +19 -0
- data/sig/stigg/models/v1/subscriptions/usage_sync_usage_response.rbs +34 -0
- data/sig/stigg/resources/v1/coupons.rbs +18 -1
- data/sig/stigg/resources/v1/customers/promotional_entitlements.rbs +15 -5
- data/sig/stigg/resources/v1/customers.rbs +3 -0
- data/sig/stigg/resources/v1/events/addons/draft.rbs +23 -0
- data/sig/stigg/resources/v1/events/addons.rbs +63 -0
- data/sig/stigg/resources/v1/events/features.rbs +66 -0
- data/sig/stigg/resources/v1/events.rbs +4 -0
- data/sig/stigg/resources/v1/products.rbs +41 -0
- data/sig/stigg/resources/v1/subscriptions/invoice.rbs +16 -0
- data/sig/stigg/resources/v1/subscriptions/usage.rbs +22 -0
- data/sig/stigg/resources/v1/subscriptions.rbs +8 -0
- metadata +167 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3f90c89d191c5711d5c9633830e2125edbfc466735c6d72470987f6aa48df789
|
|
4
|
+
data.tar.gz: 0eb02c0d7780d93712a8b4ff26e06e35a870e36290d6274b78661453a17ac66b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 861c11390d630be24406caac29f077dc6df06e7b00d662efd9303d2c95604c0f69cfaf85ee689637e91c33ad8ba3cb06c82d2d00319a0052f217d796b4dc9c83
|
|
7
|
+
data.tar.gz: 7e46b0f020581956da11e9bb630539ced1d45d62dfc362ca6f079ef6d6edacee6e260c09dfe324e9e3cdbbbf6f5c76b7e1b884aa71769de69925cef4a48af284
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.5 (2026-02-18)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([0bef237](https://github.com/stiggio/stigg-ruby/commit/0bef2378434fdc6927b6ae047273b1c34fb547a1))
|
|
10
|
+
* **api:** api update ([d4ba688](https://github.com/stiggio/stigg-ruby/commit/d4ba6885238b5bf3ec0437e1133190c5ae3c5355))
|
|
11
|
+
* **api:** api update ([903d4e3](https://github.com/stiggio/stigg-ruby/commit/903d4e337eee0223e1ee44612ca777f9de7118c2))
|
|
12
|
+
* **api:** api update ([4af0ac7](https://github.com/stiggio/stigg-ruby/commit/4af0ac745f7adef0c5b66e4f9265af9e740348a5))
|
|
13
|
+
* **api:** api update ([718a775](https://github.com/stiggio/stigg-ruby/commit/718a775adccaff2476c669e85ee2772f85d03e1f))
|
|
14
|
+
* **api:** api update ([1f3eea8](https://github.com/stiggio/stigg-ruby/commit/1f3eea8b8ab126fa0a12bf5e82ab39d824a57e63))
|
|
15
|
+
* **api:** api update ([0a0a227](https://github.com/stiggio/stigg-ruby/commit/0a0a227db0c6fa21e7f56bfe8711e6ba07561726))
|
|
16
|
+
* **api:** api update ([04cfb6e](https://github.com/stiggio/stigg-ruby/commit/04cfb6e36aa1e58887120bec4c4fb6d6094d0ec3))
|
|
17
|
+
* **api:** manual updates ([9d0c129](https://github.com/stiggio/stigg-ruby/commit/9d0c129cdf0cfb1b066b5e319449cd9084be1cc6))
|
|
18
|
+
* **api:** manual updates ([b39a21d](https://github.com/stiggio/stigg-ruby/commit/b39a21d8b6c8cec17888438066d754c6ffe7e261))
|
|
19
|
+
* **api:** manual updates ([9561b08](https://github.com/stiggio/stigg-ruby/commit/9561b082df85dd182f3bf37502bc4062ca4db186))
|
|
20
|
+
* **api:** updated the production environment ([fb01745](https://github.com/stiggio/stigg-ruby/commit/fb0174573ad2d4d7e0deb17481ca1c8a31974dfb))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Chores
|
|
24
|
+
|
|
25
|
+
* configure new SDK language ([25f1ad3](https://github.com/stiggio/stigg-ruby/commit/25f1ad3a78d40633f7a8fb911799cabf10f6c21f))
|
|
26
|
+
|
|
3
27
|
## 0.1.0-alpha.4 (2026-02-08)
|
|
4
28
|
|
|
5
29
|
Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)
|
data/README.md
CHANGED
|
@@ -4,6 +4,15 @@ The Stigg Ruby library provides convenient access to the Stigg REST API from any
|
|
|
4
4
|
|
|
5
5
|
It is generated with [Stainless](https://www.stainless.com/).
|
|
6
6
|
|
|
7
|
+
## MCP Server
|
|
8
|
+
|
|
9
|
+
Use the Stigg MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
|
|
10
|
+
|
|
11
|
+
[](https://cursor.com/en-US/install-mcp?name=%40stigg%2Ftypescript-mcp&config=eyJuYW1lIjoiQHN0aWdnL3R5cGVzY3JpcHQtbWNwIiwidHJhbnNwb3J0IjoiaHR0cCIsInVybCI6Imh0dHBzOi8vc3RpZ2ctbWNwLnN0bG1jcC5jb20iLCJoZWFkZXJzIjp7IlgtQVBJLUtFWSI6Ik15IEFQSSBLZXkifX0)
|
|
12
|
+
[](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40stigg%2Ftypescript-mcp%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fstigg-mcp.stlmcp.com%22%2C%22headers%22%3A%7B%22X-API-KEY%22%3A%22My%20API%20Key%22%7D%7D)
|
|
13
|
+
|
|
14
|
+
> Note: You may need to set environment variables in your MCP client.
|
|
15
|
+
|
|
7
16
|
## Documentation
|
|
8
17
|
|
|
9
18
|
Documentation for releases of this gem can be found [on RubyDoc](https://gemdocs.org/gems/stigg).
|
|
@@ -15,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
|
15
24
|
<!-- x-release-please-start-version -->
|
|
16
25
|
|
|
17
26
|
```ruby
|
|
18
|
-
gem "stigg", "~> 0.1.0.pre.alpha.
|
|
27
|
+
gem "stigg", "~> 0.1.0.pre.alpha.5"
|
|
19
28
|
```
|
|
20
29
|
|
|
21
30
|
<!-- x-release-please-end -->
|
data/lib/stigg/client.rb
CHANGED
|
@@ -50,7 +50,7 @@ module Stigg
|
|
|
50
50
|
initial_retry_delay: self.class::DEFAULT_INITIAL_RETRY_DELAY,
|
|
51
51
|
max_retry_delay: self.class::DEFAULT_MAX_RETRY_DELAY
|
|
52
52
|
)
|
|
53
|
-
base_url ||= "https://api.
|
|
53
|
+
base_url ||= "https://api.stigg.io"
|
|
54
54
|
|
|
55
55
|
if api_key.nil?
|
|
56
56
|
raise ArgumentError.new("api_key is required, and can be set via environ: \"STIGG_API_KEY\"")
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see Stigg::Resources::V1::Coupons#archive_coupon
|
|
7
|
+
class CouponArchiveCouponParams < Stigg::Internal::Type::BaseModel
|
|
8
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Stigg::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!method initialize(request_options: {})
|
|
12
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -35,6 +35,12 @@ module Stigg
|
|
|
35
35
|
# @return [Integer, nil]
|
|
36
36
|
required :duration_in_months, Integer, api_name: :durationInMonths, nil?: true
|
|
37
37
|
|
|
38
|
+
# @!attribute metadata
|
|
39
|
+
# Metadata associated with the entity
|
|
40
|
+
#
|
|
41
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
42
|
+
required :metadata, Stigg::Internal::Type::HashOf[String], nil?: true
|
|
43
|
+
|
|
38
44
|
# @!attribute name
|
|
39
45
|
# Name of the coupon
|
|
40
46
|
#
|
|
@@ -47,13 +53,7 @@ module Stigg
|
|
|
47
53
|
# @return [Float, nil]
|
|
48
54
|
required :percent_off, Float, api_name: :percentOff, nil?: true
|
|
49
55
|
|
|
50
|
-
# @!
|
|
51
|
-
# Metadata associated with the entity
|
|
52
|
-
#
|
|
53
|
-
# @return [Object, nil]
|
|
54
|
-
optional :additional_meta_data, Stigg::Internal::Type::Unknown, api_name: :additionalMetaData
|
|
55
|
-
|
|
56
|
-
# @!method initialize(id:, amounts_off:, description:, duration_in_months:, name:, percent_off:, additional_meta_data: nil, request_options: {})
|
|
56
|
+
# @!method initialize(id:, amounts_off:, description:, duration_in_months:, metadata:, name:, percent_off:, request_options: {})
|
|
57
57
|
# @param id [String] The unique identifier for the entity
|
|
58
58
|
#
|
|
59
59
|
# @param amounts_off [Array<Stigg::Models::V1::CouponCreateParams::AmountsOff>, nil] Fixed amount discounts in different currencies
|
|
@@ -62,12 +62,12 @@ module Stigg
|
|
|
62
62
|
#
|
|
63
63
|
# @param duration_in_months [Integer, nil] Duration of the coupon validity in months
|
|
64
64
|
#
|
|
65
|
+
# @param metadata [Hash{Symbol=>String}, nil] Metadata associated with the entity
|
|
66
|
+
#
|
|
65
67
|
# @param name [String] Name of the coupon
|
|
66
68
|
#
|
|
67
69
|
# @param percent_off [Float, nil] Percentage discount off the original price
|
|
68
70
|
#
|
|
69
|
-
# @param additional_meta_data [Object] Metadata associated with the entity
|
|
70
|
-
#
|
|
71
71
|
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
72
72
|
|
|
73
73
|
class AmountsOff < Stigg::Internal::Type::BaseModel
|
|
@@ -8,6 +8,12 @@ module Stigg
|
|
|
8
8
|
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Stigg::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute id
|
|
12
|
+
# Filter by entity ID
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :id, String
|
|
16
|
+
|
|
11
17
|
# @!attribute after
|
|
12
18
|
# Return items that come after this cursor
|
|
13
19
|
#
|
|
@@ -20,20 +26,94 @@ module Stigg
|
|
|
20
26
|
# @return [String, nil]
|
|
21
27
|
optional :before, String
|
|
22
28
|
|
|
29
|
+
# @!attribute created_at
|
|
30
|
+
# Filter by creation date using range operators: gt, gte, lt, lte
|
|
31
|
+
#
|
|
32
|
+
# @return [Stigg::Models::V1::CouponListParams::CreatedAt, nil]
|
|
33
|
+
optional :created_at, -> { Stigg::V1::CouponListParams::CreatedAt }
|
|
34
|
+
|
|
23
35
|
# @!attribute limit
|
|
24
36
|
# Maximum number of items to return
|
|
25
37
|
#
|
|
26
38
|
# @return [Integer, nil]
|
|
27
39
|
optional :limit, Integer
|
|
28
40
|
|
|
29
|
-
# @!
|
|
41
|
+
# @!attribute status
|
|
42
|
+
# Filter by coupon status. Supports comma-separated values for multiple statuses
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
optional :status, String
|
|
46
|
+
|
|
47
|
+
# @!attribute type
|
|
48
|
+
# Filter by coupon type (FIXED or PERCENTAGE)
|
|
49
|
+
#
|
|
50
|
+
# @return [Symbol, Stigg::Models::V1::CouponListParams::Type, nil]
|
|
51
|
+
optional :type, enum: -> { Stigg::V1::CouponListParams::Type }
|
|
52
|
+
|
|
53
|
+
# @!method initialize(id: nil, after: nil, before: nil, created_at: nil, limit: nil, status: nil, type: nil, request_options: {})
|
|
54
|
+
# @param id [String] Filter by entity ID
|
|
55
|
+
#
|
|
30
56
|
# @param after [String] Return items that come after this cursor
|
|
31
57
|
#
|
|
32
58
|
# @param before [String] Return items that come before this cursor
|
|
33
59
|
#
|
|
60
|
+
# @param created_at [Stigg::Models::V1::CouponListParams::CreatedAt] Filter by creation date using range operators: gt, gte, lt, lte
|
|
61
|
+
#
|
|
34
62
|
# @param limit [Integer] Maximum number of items to return
|
|
35
63
|
#
|
|
64
|
+
# @param status [String] Filter by coupon status. Supports comma-separated values for multiple statuses
|
|
65
|
+
#
|
|
66
|
+
# @param type [Symbol, Stigg::Models::V1::CouponListParams::Type] Filter by coupon type (FIXED or PERCENTAGE)
|
|
67
|
+
#
|
|
36
68
|
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
69
|
+
|
|
70
|
+
class CreatedAt < Stigg::Internal::Type::BaseModel
|
|
71
|
+
# @!attribute gt
|
|
72
|
+
# Greater than the specified createdAt value
|
|
73
|
+
#
|
|
74
|
+
# @return [Time, nil]
|
|
75
|
+
optional :gt, Time
|
|
76
|
+
|
|
77
|
+
# @!attribute gte
|
|
78
|
+
# Greater than or equal to the specified createdAt value
|
|
79
|
+
#
|
|
80
|
+
# @return [Time, nil]
|
|
81
|
+
optional :gte, Time
|
|
82
|
+
|
|
83
|
+
# @!attribute lt
|
|
84
|
+
# Less than the specified createdAt value
|
|
85
|
+
#
|
|
86
|
+
# @return [Time, nil]
|
|
87
|
+
optional :lt, Time
|
|
88
|
+
|
|
89
|
+
# @!attribute lte
|
|
90
|
+
# Less than or equal to the specified createdAt value
|
|
91
|
+
#
|
|
92
|
+
# @return [Time, nil]
|
|
93
|
+
optional :lte, Time
|
|
94
|
+
|
|
95
|
+
# @!method initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
|
96
|
+
# Filter by creation date using range operators: gt, gte, lt, lte
|
|
97
|
+
#
|
|
98
|
+
# @param gt [Time] Greater than the specified createdAt value
|
|
99
|
+
#
|
|
100
|
+
# @param gte [Time] Greater than or equal to the specified createdAt value
|
|
101
|
+
#
|
|
102
|
+
# @param lt [Time] Less than the specified createdAt value
|
|
103
|
+
#
|
|
104
|
+
# @param lte [Time] Less than or equal to the specified createdAt value
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Filter by coupon type (FIXED or PERCENTAGE)
|
|
108
|
+
module Type
|
|
109
|
+
extend Stigg::Internal::Type::Enum
|
|
110
|
+
|
|
111
|
+
FIXED = :FIXED
|
|
112
|
+
PERCENTAGE = :PERCENTAGE
|
|
113
|
+
|
|
114
|
+
# @!method self.values
|
|
115
|
+
# @return [Array<Symbol>]
|
|
116
|
+
end
|
|
37
117
|
end
|
|
38
118
|
end
|
|
39
119
|
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see Stigg::Resources::V1::Coupons#update_coupon
|
|
7
|
+
class CouponUpdateCouponParams < Stigg::Internal::Type::BaseModel
|
|
8
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Stigg::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute description
|
|
12
|
+
# Description of the coupon
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :description, String, nil?: true
|
|
16
|
+
|
|
17
|
+
# @!attribute metadata
|
|
18
|
+
# Metadata associated with the entity
|
|
19
|
+
#
|
|
20
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
21
|
+
optional :metadata, Stigg::Internal::Type::HashOf[String], nil?: true
|
|
22
|
+
|
|
23
|
+
# @!attribute name
|
|
24
|
+
# Name of the coupon
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
optional :name, String
|
|
28
|
+
|
|
29
|
+
# @!method initialize(description: nil, metadata: nil, name: nil, request_options: {})
|
|
30
|
+
# @param description [String, nil] Description of the coupon
|
|
31
|
+
#
|
|
32
|
+
# @param metadata [Hash{Symbol=>String}, nil] Metadata associated with the entity
|
|
33
|
+
#
|
|
34
|
+
# @param name [String] Name of the coupon
|
|
35
|
+
#
|
|
36
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -20,20 +20,81 @@ module Stigg
|
|
|
20
20
|
# @return [String, nil]
|
|
21
21
|
optional :before, String
|
|
22
22
|
|
|
23
|
+
# @!attribute created_at
|
|
24
|
+
# Filter by creation date using range operators: gt, gte, lt, lte
|
|
25
|
+
#
|
|
26
|
+
# @return [Stigg::Models::V1::CustomerListParams::CreatedAt, nil]
|
|
27
|
+
optional :created_at, -> { Stigg::V1::CustomerListParams::CreatedAt }
|
|
28
|
+
|
|
29
|
+
# @!attribute email
|
|
30
|
+
# Filter by exact customer email address
|
|
31
|
+
#
|
|
32
|
+
# @return [String, nil]
|
|
33
|
+
optional :email, String
|
|
34
|
+
|
|
23
35
|
# @!attribute limit
|
|
24
36
|
# Maximum number of items to return
|
|
25
37
|
#
|
|
26
38
|
# @return [Integer, nil]
|
|
27
39
|
optional :limit, Integer
|
|
28
40
|
|
|
29
|
-
# @!
|
|
41
|
+
# @!attribute name
|
|
42
|
+
# Filter by exact customer name
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
optional :name, String
|
|
46
|
+
|
|
47
|
+
# @!method initialize(after: nil, before: nil, created_at: nil, email: nil, limit: nil, name: nil, request_options: {})
|
|
30
48
|
# @param after [String] Return items that come after this cursor
|
|
31
49
|
#
|
|
32
50
|
# @param before [String] Return items that come before this cursor
|
|
33
51
|
#
|
|
52
|
+
# @param created_at [Stigg::Models::V1::CustomerListParams::CreatedAt] Filter by creation date using range operators: gt, gte, lt, lte
|
|
53
|
+
#
|
|
54
|
+
# @param email [String] Filter by exact customer email address
|
|
55
|
+
#
|
|
34
56
|
# @param limit [Integer] Maximum number of items to return
|
|
35
57
|
#
|
|
58
|
+
# @param name [String] Filter by exact customer name
|
|
59
|
+
#
|
|
36
60
|
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
61
|
+
|
|
62
|
+
class CreatedAt < Stigg::Internal::Type::BaseModel
|
|
63
|
+
# @!attribute gt
|
|
64
|
+
# Greater than the specified createdAt value
|
|
65
|
+
#
|
|
66
|
+
# @return [Time, nil]
|
|
67
|
+
optional :gt, Time
|
|
68
|
+
|
|
69
|
+
# @!attribute gte
|
|
70
|
+
# Greater than or equal to the specified createdAt value
|
|
71
|
+
#
|
|
72
|
+
# @return [Time, nil]
|
|
73
|
+
optional :gte, Time
|
|
74
|
+
|
|
75
|
+
# @!attribute lt
|
|
76
|
+
# Less than the specified createdAt value
|
|
77
|
+
#
|
|
78
|
+
# @return [Time, nil]
|
|
79
|
+
optional :lt, Time
|
|
80
|
+
|
|
81
|
+
# @!attribute lte
|
|
82
|
+
# Less than or equal to the specified createdAt value
|
|
83
|
+
#
|
|
84
|
+
# @return [Time, nil]
|
|
85
|
+
optional :lte, Time
|
|
86
|
+
|
|
87
|
+
# @!method initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
|
88
|
+
# Filter by creation date using range operators: gt, gte, lt, lte
|
|
89
|
+
#
|
|
90
|
+
# @param gt [Time] Greater than the specified createdAt value
|
|
91
|
+
#
|
|
92
|
+
# @param gte [Time] Greater than or equal to the specified createdAt value
|
|
93
|
+
#
|
|
94
|
+
# @param lt [Time] Less than the specified createdAt value
|
|
95
|
+
#
|
|
96
|
+
# @param lte [Time] Less than or equal to the specified createdAt value
|
|
97
|
+
end
|
|
37
98
|
end
|
|
38
99
|
end
|
|
39
100
|
end
|
|
@@ -4,23 +4,23 @@ module Stigg
|
|
|
4
4
|
module Models
|
|
5
5
|
module V1
|
|
6
6
|
module Customers
|
|
7
|
-
# @see Stigg::Resources::V1::Customers::PromotionalEntitlements#
|
|
8
|
-
class
|
|
7
|
+
# @see Stigg::Resources::V1::Customers::PromotionalEntitlements#create
|
|
8
|
+
class PromotionalEntitlementCreateParams < Stigg::Internal::Type::BaseModel
|
|
9
9
|
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Stigg::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
12
|
# @!attribute promotional_entitlements
|
|
13
13
|
# Promotional entitlements to grant
|
|
14
14
|
#
|
|
15
|
-
# @return [Array<Stigg::Models::V1::Customers::
|
|
15
|
+
# @return [Array<Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement>]
|
|
16
16
|
required :promotional_entitlements,
|
|
17
17
|
-> {
|
|
18
|
-
Stigg::Internal::Type::ArrayOf[Stigg::V1::Customers::
|
|
18
|
+
Stigg::Internal::Type::ArrayOf[Stigg::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement]
|
|
19
19
|
},
|
|
20
20
|
api_name: :promotionalEntitlements
|
|
21
21
|
|
|
22
22
|
# @!method initialize(promotional_entitlements:, request_options: {})
|
|
23
|
-
# @param promotional_entitlements [Array<Stigg::Models::V1::Customers::
|
|
23
|
+
# @param promotional_entitlements [Array<Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement>] Promotional entitlements to grant
|
|
24
24
|
#
|
|
25
25
|
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
26
26
|
|
|
@@ -68,10 +68,10 @@ module Stigg
|
|
|
68
68
|
# The monthly reset period configuration of the entitlement, defined when reset
|
|
69
69
|
# period is monthly
|
|
70
70
|
#
|
|
71
|
-
# @return [Stigg::Models::V1::Customers::
|
|
71
|
+
# @return [Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration, nil]
|
|
72
72
|
required :monthly_reset_period_configuration,
|
|
73
73
|
-> {
|
|
74
|
-
Stigg::V1::Customers::
|
|
74
|
+
Stigg::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration
|
|
75
75
|
},
|
|
76
76
|
api_name: :monthlyResetPeriodConfiguration,
|
|
77
77
|
nil?: true
|
|
@@ -79,17 +79,17 @@ module Stigg
|
|
|
79
79
|
# @!attribute period
|
|
80
80
|
# The grant period of the promotional entitlement
|
|
81
81
|
#
|
|
82
|
-
# @return [Symbol, Stigg::Models::V1::Customers::
|
|
82
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::Period]
|
|
83
83
|
required :period,
|
|
84
|
-
enum: -> { Stigg::V1::Customers::
|
|
84
|
+
enum: -> { Stigg::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::Period }
|
|
85
85
|
|
|
86
86
|
# @!attribute reset_period
|
|
87
87
|
# The reset period of the entitlement
|
|
88
88
|
#
|
|
89
|
-
# @return [Symbol, Stigg::Models::V1::Customers::
|
|
89
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::ResetPeriod, nil]
|
|
90
90
|
required :reset_period,
|
|
91
91
|
enum: -> {
|
|
92
|
-
Stigg::V1::Customers::
|
|
92
|
+
Stigg::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::ResetPeriod
|
|
93
93
|
},
|
|
94
94
|
api_name: :resetPeriod,
|
|
95
95
|
nil?: true
|
|
@@ -104,10 +104,10 @@ module Stigg
|
|
|
104
104
|
# The weekly reset period configuration of the entitlement, defined when reset
|
|
105
105
|
# period is weekly
|
|
106
106
|
#
|
|
107
|
-
# @return [Stigg::Models::V1::Customers::
|
|
107
|
+
# @return [Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration, nil]
|
|
108
108
|
required :weekly_reset_period_configuration,
|
|
109
109
|
-> {
|
|
110
|
-
Stigg::V1::Customers::
|
|
110
|
+
Stigg::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration
|
|
111
111
|
},
|
|
112
112
|
api_name: :weeklyResetPeriodConfiguration,
|
|
113
113
|
nil?: true
|
|
@@ -116,17 +116,17 @@ module Stigg
|
|
|
116
116
|
# The yearly reset period configuration of the entitlement, defined when reset
|
|
117
117
|
# period is yearly
|
|
118
118
|
#
|
|
119
|
-
# @return [Stigg::Models::V1::Customers::
|
|
119
|
+
# @return [Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration, nil]
|
|
120
120
|
required :yearly_reset_period_configuration,
|
|
121
121
|
-> {
|
|
122
|
-
Stigg::V1::Customers::
|
|
122
|
+
Stigg::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration
|
|
123
123
|
},
|
|
124
124
|
api_name: :yearlyResetPeriodConfiguration,
|
|
125
125
|
nil?: true
|
|
126
126
|
|
|
127
127
|
# @!method initialize(custom_end_date:, enum_values:, feature_id:, has_soft_limit:, has_unlimited_usage:, is_visible:, monthly_reset_period_configuration:, period:, reset_period:, usage_limit:, weekly_reset_period_configuration:, yearly_reset_period_configuration:)
|
|
128
128
|
# Some parameter documentations has been truncated, see
|
|
129
|
-
# {Stigg::Models::V1::Customers::
|
|
129
|
+
# {Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement}
|
|
130
130
|
# for more details.
|
|
131
131
|
#
|
|
132
132
|
# Single entitlement grant config
|
|
@@ -143,27 +143,27 @@ module Stigg
|
|
|
143
143
|
#
|
|
144
144
|
# @param is_visible [Boolean, nil] Whether the entitlement is visible
|
|
145
145
|
#
|
|
146
|
-
# @param monthly_reset_period_configuration [Stigg::Models::V1::Customers::
|
|
146
|
+
# @param monthly_reset_period_configuration [Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration, nil] The monthly reset period configuration of the entitlement, defined when reset pe
|
|
147
147
|
#
|
|
148
|
-
# @param period [Symbol, Stigg::Models::V1::Customers::
|
|
148
|
+
# @param period [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::Period] The grant period of the promotional entitlement
|
|
149
149
|
#
|
|
150
|
-
# @param reset_period [Symbol, Stigg::Models::V1::Customers::
|
|
150
|
+
# @param reset_period [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::ResetPeriod, nil] The reset period of the entitlement
|
|
151
151
|
#
|
|
152
152
|
# @param usage_limit [Integer, nil] The usage limit of the entitlement
|
|
153
153
|
#
|
|
154
|
-
# @param weekly_reset_period_configuration [Stigg::Models::V1::Customers::
|
|
154
|
+
# @param weekly_reset_period_configuration [Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration, nil] The weekly reset period configuration of the entitlement, defined when reset per
|
|
155
155
|
#
|
|
156
|
-
# @param yearly_reset_period_configuration [Stigg::Models::V1::Customers::
|
|
156
|
+
# @param yearly_reset_period_configuration [Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration, nil] The yearly reset period configuration of the entitlement, defined when reset per
|
|
157
157
|
|
|
158
|
-
# @see Stigg::Models::V1::Customers::
|
|
158
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement#monthly_reset_period_configuration
|
|
159
159
|
class MonthlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
160
160
|
# @!attribute according_to
|
|
161
161
|
# Reset anchor (SubscriptionStart or StartOfTheMonth)
|
|
162
162
|
#
|
|
163
|
-
# @return [Symbol, Stigg::Models::V1::Customers::
|
|
163
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo]
|
|
164
164
|
required :according_to,
|
|
165
165
|
enum: -> {
|
|
166
|
-
Stigg::V1::Customers::
|
|
166
|
+
Stigg::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo
|
|
167
167
|
},
|
|
168
168
|
api_name: :accordingTo
|
|
169
169
|
|
|
@@ -171,11 +171,11 @@ module Stigg
|
|
|
171
171
|
# The monthly reset period configuration of the entitlement, defined when reset
|
|
172
172
|
# period is monthly
|
|
173
173
|
#
|
|
174
|
-
# @param according_to [Symbol, Stigg::Models::V1::Customers::
|
|
174
|
+
# @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart or StartOfTheMonth)
|
|
175
175
|
|
|
176
176
|
# Reset anchor (SubscriptionStart or StartOfTheMonth)
|
|
177
177
|
#
|
|
178
|
-
# @see Stigg::Models::V1::Customers::
|
|
178
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration#according_to
|
|
179
179
|
module AccordingTo
|
|
180
180
|
extend Stigg::Internal::Type::Enum
|
|
181
181
|
|
|
@@ -189,7 +189,7 @@ module Stigg
|
|
|
189
189
|
|
|
190
190
|
# The grant period of the promotional entitlement
|
|
191
191
|
#
|
|
192
|
-
# @see Stigg::Models::V1::Customers::
|
|
192
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement#period
|
|
193
193
|
module Period
|
|
194
194
|
extend Stigg::Internal::Type::Enum
|
|
195
195
|
|
|
@@ -206,7 +206,7 @@ module Stigg
|
|
|
206
206
|
|
|
207
207
|
# The reset period of the entitlement
|
|
208
208
|
#
|
|
209
|
-
# @see Stigg::Models::V1::Customers::
|
|
209
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement#reset_period
|
|
210
210
|
module ResetPeriod
|
|
211
211
|
extend Stigg::Internal::Type::Enum
|
|
212
212
|
|
|
@@ -220,15 +220,15 @@ module Stigg
|
|
|
220
220
|
# @return [Array<Symbol>]
|
|
221
221
|
end
|
|
222
222
|
|
|
223
|
-
# @see Stigg::Models::V1::Customers::
|
|
223
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement#weekly_reset_period_configuration
|
|
224
224
|
class WeeklyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
225
225
|
# @!attribute according_to
|
|
226
226
|
# Reset anchor (SubscriptionStart or specific day)
|
|
227
227
|
#
|
|
228
|
-
# @return [Symbol, Stigg::Models::V1::Customers::
|
|
228
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo]
|
|
229
229
|
required :according_to,
|
|
230
230
|
enum: -> {
|
|
231
|
-
Stigg::V1::Customers::
|
|
231
|
+
Stigg::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo
|
|
232
232
|
},
|
|
233
233
|
api_name: :accordingTo
|
|
234
234
|
|
|
@@ -236,11 +236,11 @@ module Stigg
|
|
|
236
236
|
# The weekly reset period configuration of the entitlement, defined when reset
|
|
237
237
|
# period is weekly
|
|
238
238
|
#
|
|
239
|
-
# @param according_to [Symbol, Stigg::Models::V1::Customers::
|
|
239
|
+
# @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart or specific day)
|
|
240
240
|
|
|
241
241
|
# Reset anchor (SubscriptionStart or specific day)
|
|
242
242
|
#
|
|
243
|
-
# @see Stigg::Models::V1::Customers::
|
|
243
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration#according_to
|
|
244
244
|
module AccordingTo
|
|
245
245
|
extend Stigg::Internal::Type::Enum
|
|
246
246
|
|
|
@@ -258,15 +258,15 @@ module Stigg
|
|
|
258
258
|
end
|
|
259
259
|
end
|
|
260
260
|
|
|
261
|
-
# @see Stigg::Models::V1::Customers::
|
|
261
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement#yearly_reset_period_configuration
|
|
262
262
|
class YearlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
263
263
|
# @!attribute according_to
|
|
264
264
|
# Reset anchor (SubscriptionStart)
|
|
265
265
|
#
|
|
266
|
-
# @return [Symbol, Stigg::Models::V1::Customers::
|
|
266
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo]
|
|
267
267
|
required :according_to,
|
|
268
268
|
enum: -> {
|
|
269
|
-
Stigg::V1::Customers::
|
|
269
|
+
Stigg::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo
|
|
270
270
|
},
|
|
271
271
|
api_name: :accordingTo
|
|
272
272
|
|
|
@@ -274,11 +274,11 @@ module Stigg
|
|
|
274
274
|
# The yearly reset period configuration of the entitlement, defined when reset
|
|
275
275
|
# period is yearly
|
|
276
276
|
#
|
|
277
|
-
# @param according_to [Symbol, Stigg::Models::V1::Customers::
|
|
277
|
+
# @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart)
|
|
278
278
|
|
|
279
279
|
# Reset anchor (SubscriptionStart)
|
|
280
280
|
#
|
|
281
|
-
# @see Stigg::Models::V1::Customers::
|
|
281
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration#according_to
|
|
282
282
|
module AccordingTo
|
|
283
283
|
extend Stigg::Internal::Type::Enum
|
|
284
284
|
|