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.
Files changed (217) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +10 -1
  4. data/lib/stigg/client.rb +1 -1
  5. data/lib/stigg/models/v1/coupon_archive_coupon_params.rb +16 -0
  6. data/lib/stigg/models/v1/coupon_create_params.rb +9 -9
  7. data/lib/stigg/models/v1/coupon_list_params.rb +81 -1
  8. data/lib/stigg/models/v1/coupon_update_coupon_params.rb +40 -0
  9. data/lib/stigg/models/v1/customer_list_params.rb +62 -1
  10. data/lib/stigg/models/v1/customers/{promotional_entitlement_grant_params.rb → promotional_entitlement_create_params.rb} +38 -38
  11. data/lib/stigg/models/v1/customers/{promotional_entitlement_grant_response.rb → promotional_entitlement_create_response.rb} +37 -37
  12. data/lib/stigg/models/v1/customers/promotional_entitlement_list_params.rb +100 -0
  13. data/lib/stigg/models/v1/customers/promotional_entitlement_list_response.rb +326 -0
  14. data/lib/stigg/models/v1/customers/promotional_entitlement_revoke_params.rb +4 -4
  15. data/lib/stigg/models/v1/events/addon_archive_addon_params.rb +18 -0
  16. data/lib/stigg/models/v1/events/addon_archive_addon_response.rb +204 -0
  17. data/lib/stigg/models/v1/events/addon_create_addon_params.rb +116 -0
  18. data/lib/stigg/models/v1/events/addon_create_addon_response.rb +204 -0
  19. data/lib/stigg/models/v1/events/addon_list_addons_params.rb +103 -0
  20. data/lib/stigg/models/v1/events/addon_list_addons_response.rb +190 -0
  21. data/lib/stigg/models/v1/events/addon_publish_addon_params.rb +39 -0
  22. data/lib/stigg/models/v1/events/addon_publish_addon_response.rb +34 -0
  23. data/lib/stigg/models/v1/events/addon_retrieve_addon_params.rb +18 -0
  24. data/lib/stigg/models/v1/events/addon_retrieve_addon_response.rb +205 -0
  25. data/lib/stigg/models/v1/events/addon_update_addon_params.rb +66 -0
  26. data/lib/stigg/models/v1/events/addon_update_addon_response.rb +204 -0
  27. data/lib/stigg/models/v1/events/addons/draft_create_addon_draft_params.rb +20 -0
  28. data/lib/stigg/models/v1/events/addons/draft_create_addon_draft_response.rb +208 -0
  29. data/lib/stigg/models/v1/events/addons/draft_remove_addon_draft_params.rb +20 -0
  30. data/lib/stigg/models/v1/events/addons/draft_remove_addon_draft_response.rb +36 -0
  31. data/lib/stigg/models/v1/events/feature_archive_feature_params.rb +18 -0
  32. data/lib/stigg/models/v1/events/feature_archive_feature_response.rb +258 -0
  33. data/lib/stigg/models/v1/events/feature_create_feature_params.rb +224 -0
  34. data/lib/stigg/models/v1/events/feature_create_feature_response.rb +258 -0
  35. data/lib/stigg/models/v1/events/feature_list_features_params.rb +119 -0
  36. data/lib/stigg/models/v1/events/feature_list_features_response.rb +244 -0
  37. data/lib/stigg/models/v1/events/feature_retrieve_feature_params.rb +18 -0
  38. data/lib/stigg/models/v1/events/feature_retrieve_feature_response.rb +258 -0
  39. data/lib/stigg/models/v1/events/feature_unarchive_feature_params.rb +18 -0
  40. data/lib/stigg/models/v1/events/feature_unarchive_feature_response.rb +258 -0
  41. data/lib/stigg/models/v1/events/feature_update_feature_params.rb +268 -0
  42. data/lib/stigg/models/v1/events/feature_update_feature_response.rb +258 -0
  43. data/lib/stigg/models/v1/product_archive_product_params.rb +16 -0
  44. data/lib/stigg/models/v1/product_archive_product_response.rb +223 -0
  45. data/lib/stigg/models/v1/product_create_product_params.rb +56 -0
  46. data/lib/stigg/models/v1/product_create_product_response.rb +223 -0
  47. data/lib/stigg/models/v1/product_duplicate_product_params.rb +40 -0
  48. data/lib/stigg/models/v1/product_duplicate_product_response.rb +223 -0
  49. data/lib/stigg/models/v1/product_list_products_params.rb +62 -1
  50. data/lib/stigg/models/v1/product_list_products_response.rb +120 -1
  51. data/lib/stigg/models/v1/product_unarchive_product_params.rb +16 -0
  52. data/lib/stigg/models/v1/product_unarchive_product_response.rb +223 -0
  53. data/lib/stigg/models/v1/product_update_product_params.rb +198 -0
  54. data/lib/stigg/models/v1/product_update_product_response.rb +223 -0
  55. data/lib/stigg/models/v1/subscription_list_params.rb +76 -3
  56. data/lib/stigg/models/v1/subscription_provision_response.rb +53 -45
  57. data/lib/stigg/models/v1/subscription_update_params.rb +27 -3
  58. data/lib/stigg/models/v1/subscriptions/invoice_mark_as_paid_params.rb +18 -0
  59. data/lib/stigg/models/v1/subscriptions/invoice_mark_as_paid_response.rb +37 -0
  60. data/lib/stigg/models/v1/subscriptions/usage_charge_usage_params.rb +26 -0
  61. data/lib/stigg/models/v1/subscriptions/usage_charge_usage_response.rb +97 -0
  62. data/lib/stigg/models/v1/subscriptions/usage_sync_usage_params.rb +18 -0
  63. data/lib/stigg/models/v1/subscriptions/usage_sync_usage_response.rb +37 -0
  64. data/lib/stigg/resources/v1/coupons.rb +61 -5
  65. data/lib/stigg/resources/v1/customers/promotional_entitlements.rb +51 -14
  66. data/lib/stigg/resources/v1/customers.rb +8 -2
  67. data/lib/stigg/resources/v1/events/addons/draft.rb +60 -0
  68. data/lib/stigg/resources/v1/events/addons.rb +193 -0
  69. data/lib/stigg/resources/v1/events/features.rb +200 -0
  70. data/lib/stigg/resources/v1/events.rb +8 -0
  71. data/lib/stigg/resources/v1/products.rb +142 -2
  72. data/lib/stigg/resources/v1/subscriptions/invoice.rb +39 -0
  73. data/lib/stigg/resources/v1/subscriptions/usage.rb +64 -0
  74. data/lib/stigg/resources/v1/subscriptions.rb +28 -3
  75. data/lib/stigg/version.rb +1 -1
  76. data/lib/stigg.rb +55 -2
  77. data/rbi/stigg/models/v1/coupon_archive_coupon_params.rbi +32 -0
  78. data/rbi/stigg/models/v1/coupon_create_params.rbi +8 -11
  79. data/rbi/stigg/models/v1/coupon_list_params.rbi +129 -0
  80. data/rbi/stigg/models/v1/coupon_update_coupon_params.rbi +64 -0
  81. data/rbi/stigg/models/v1/customer_list_params.rbi +97 -0
  82. data/rbi/stigg/models/v1/customers/{promotional_entitlement_grant_params.rbi → promotional_entitlement_create_params.rbi} +68 -68
  83. data/rbi/stigg/models/v1/customers/{promotional_entitlement_grant_response.rbi → promotional_entitlement_create_response.rbi} +73 -73
  84. data/rbi/stigg/models/v1/customers/promotional_entitlement_list_params.rbi +174 -0
  85. data/rbi/stigg/models/v1/customers/promotional_entitlement_list_response.rbi +646 -0
  86. data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbi +4 -4
  87. data/rbi/stigg/models/v1/events/addon_archive_addon_params.rbi +34 -0
  88. data/rbi/stigg/models/v1/events/addon_archive_addon_response.rbi +388 -0
  89. data/rbi/stigg/models/v1/events/addon_create_addon_params.rbi +235 -0
  90. data/rbi/stigg/models/v1/events/addon_create_addon_response.rbi +388 -0
  91. data/rbi/stigg/models/v1/events/addon_list_addons_params.rbi +180 -0
  92. data/rbi/stigg/models/v1/events/addon_list_addons_response.rbi +341 -0
  93. data/rbi/stigg/models/v1/events/addon_publish_addon_params.rbi +91 -0
  94. data/rbi/stigg/models/v1/events/addon_publish_addon_response.rbi +77 -0
  95. data/rbi/stigg/models/v1/events/addon_retrieve_addon_params.rbi +34 -0
  96. data/rbi/stigg/models/v1/events/addon_retrieve_addon_response.rbi +389 -0
  97. data/rbi/stigg/models/v1/events/addon_update_addon_params.rbi +96 -0
  98. data/rbi/stigg/models/v1/events/addon_update_addon_response.rbi +388 -0
  99. data/rbi/stigg/models/v1/events/addons/draft_create_addon_draft_params.rbi +36 -0
  100. data/rbi/stigg/models/v1/events/addons/draft_create_addon_draft_response.rbi +393 -0
  101. data/rbi/stigg/models/v1/events/addons/draft_remove_addon_draft_params.rbi +36 -0
  102. data/rbi/stigg/models/v1/events/addons/draft_remove_addon_draft_response.rbi +82 -0
  103. data/rbi/stigg/models/v1/events/feature_archive_feature_params.rbi +34 -0
  104. data/rbi/stigg/models/v1/events/feature_archive_feature_response.rbi +505 -0
  105. data/rbi/stigg/models/v1/events/feature_create_feature_params.rbi +498 -0
  106. data/rbi/stigg/models/v1/events/feature_create_feature_response.rbi +505 -0
  107. data/rbi/stigg/models/v1/events/feature_list_features_params.rbi +203 -0
  108. data/rbi/stigg/models/v1/events/feature_list_features_response.rbi +455 -0
  109. data/rbi/stigg/models/v1/events/feature_retrieve_feature_params.rbi +34 -0
  110. data/rbi/stigg/models/v1/events/feature_retrieve_feature_response.rbi +505 -0
  111. data/rbi/stigg/models/v1/events/feature_unarchive_feature_params.rbi +34 -0
  112. data/rbi/stigg/models/v1/events/feature_unarchive_feature_response.rbi +505 -0
  113. data/rbi/stigg/models/v1/events/feature_update_feature_params.rbi +676 -0
  114. data/rbi/stigg/models/v1/events/feature_update_feature_response.rbi +505 -0
  115. data/rbi/stigg/models/v1/product_archive_product_params.rbi +32 -0
  116. data/rbi/stigg/models/v1/product_archive_product_response.rbi +416 -0
  117. data/rbi/stigg/models/v1/product_create_product_params.rbi +86 -0
  118. data/rbi/stigg/models/v1/product_create_product_response.rbi +416 -0
  119. data/rbi/stigg/models/v1/product_duplicate_product_params.rbi +67 -0
  120. data/rbi/stigg/models/v1/product_duplicate_product_response.rbi +420 -0
  121. data/rbi/stigg/models/v1/product_list_products_params.rbi +99 -0
  122. data/rbi/stigg/models/v1/product_list_products_response.rbi +238 -3
  123. data/rbi/stigg/models/v1/product_unarchive_product_params.rbi +32 -0
  124. data/rbi/stigg/models/v1/product_unarchive_product_response.rbi +420 -0
  125. data/rbi/stigg/models/v1/product_update_product_params.rbi +410 -0
  126. data/rbi/stigg/models/v1/product_update_product_response.rbi +416 -0
  127. data/rbi/stigg/models/v1/subscription_list_params.rbi +112 -2
  128. data/rbi/stigg/models/v1/subscription_provision_response.rbi +105 -94
  129. data/rbi/stigg/models/v1/subscription_update_params.rbi +39 -3
  130. data/rbi/stigg/models/v1/subscriptions/invoice_mark_as_paid_params.rbi +34 -0
  131. data/rbi/stigg/models/v1/subscriptions/invoice_mark_as_paid_response.rbi +85 -0
  132. data/rbi/stigg/models/v1/subscriptions/usage_charge_usage_params.rbi +50 -0
  133. data/rbi/stigg/models/v1/subscriptions/usage_charge_usage_response.rbi +183 -0
  134. data/rbi/stigg/models/v1/subscriptions/usage_sync_usage_params.rbi +34 -0
  135. data/rbi/stigg/models/v1/subscriptions/usage_sync_usage_response.rbi +85 -0
  136. data/rbi/stigg/resources/v1/coupons.rbi +52 -3
  137. data/rbi/stigg/resources/v1/customers/promotional_entitlements.rbi +43 -8
  138. data/rbi/stigg/resources/v1/customers.rbi +9 -0
  139. data/rbi/stigg/resources/v1/events/addons/draft.rbi +50 -0
  140. data/rbi/stigg/resources/v1/events/addons.rbi +173 -0
  141. data/rbi/stigg/resources/v1/events/features.rbi +198 -0
  142. data/rbi/stigg/resources/v1/events.rbi +6 -0
  143. data/rbi/stigg/resources/v1/products.rbi +121 -0
  144. data/rbi/stigg/resources/v1/subscriptions/invoice.rbi +33 -0
  145. data/rbi/stigg/resources/v1/subscriptions/usage.rbi +51 -0
  146. data/rbi/stigg/resources/v1/subscriptions.rbi +20 -1
  147. data/sig/stigg/models/v1/coupon_archive_coupon_params.rbs +17 -0
  148. data/sig/stigg/models/v1/coupon_create_params.rbs +6 -8
  149. data/sig/stigg/models/v1/coupon_list_params.rbs +72 -1
  150. data/sig/stigg/models/v1/coupon_update_coupon_params.rbs +40 -0
  151. data/sig/stigg/models/v1/customer_list_params.rbs +52 -1
  152. data/sig/stigg/models/v1/customers/{promotional_entitlement_grant_params.rbs → promotional_entitlement_create_params.rbs} +43 -43
  153. data/sig/stigg/models/v1/customers/{promotional_entitlement_grant_response.rbs → promotional_entitlement_create_response.rbs} +44 -44
  154. data/sig/stigg/models/v1/customers/promotional_entitlement_list_params.rbs +91 -0
  155. data/sig/stigg/models/v1/customers/promotional_entitlement_list_response.rbs +264 -0
  156. data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbs +4 -7
  157. data/sig/stigg/models/v1/events/addon_archive_addon_params.rbs +19 -0
  158. data/sig/stigg/models/v1/events/addon_archive_addon_response.rbs +161 -0
  159. data/sig/stigg/models/v1/events/addon_create_addon_params.rbs +110 -0
  160. data/sig/stigg/models/v1/events/addon_create_addon_response.rbs +161 -0
  161. data/sig/stigg/models/v1/events/addon_list_addons_params.rbs +98 -0
  162. data/sig/stigg/models/v1/events/addon_list_addons_response.rbs +146 -0
  163. data/sig/stigg/models/v1/events/addon_publish_addon_params.rbs +41 -0
  164. data/sig/stigg/models/v1/events/addon_publish_addon_response.rbs +32 -0
  165. data/sig/stigg/models/v1/events/addon_retrieve_addon_params.rbs +19 -0
  166. data/sig/stigg/models/v1/events/addon_retrieve_addon_response.rbs +161 -0
  167. data/sig/stigg/models/v1/events/addon_update_addon_params.rbs +59 -0
  168. data/sig/stigg/models/v1/events/addon_update_addon_response.rbs +161 -0
  169. data/sig/stigg/models/v1/events/addons/draft_create_addon_draft_params.rbs +21 -0
  170. data/sig/stigg/models/v1/events/addons/draft_create_addon_draft_response.rbs +165 -0
  171. data/sig/stigg/models/v1/events/addons/draft_remove_addon_draft_params.rbs +21 -0
  172. data/sig/stigg/models/v1/events/addons/draft_remove_addon_draft_response.rbs +36 -0
  173. data/sig/stigg/models/v1/events/feature_archive_feature_params.rbs +19 -0
  174. data/sig/stigg/models/v1/events/feature_archive_feature_response.rbs +192 -0
  175. data/sig/stigg/models/v1/events/feature_create_feature_params.rbs +199 -0
  176. data/sig/stigg/models/v1/events/feature_create_feature_response.rbs +192 -0
  177. data/sig/stigg/models/v1/events/feature_list_features_params.rbs +112 -0
  178. data/sig/stigg/models/v1/events/feature_list_features_response.rbs +175 -0
  179. data/sig/stigg/models/v1/events/feature_retrieve_feature_params.rbs +19 -0
  180. data/sig/stigg/models/v1/events/feature_retrieve_feature_response.rbs +192 -0
  181. data/sig/stigg/models/v1/events/feature_unarchive_feature_params.rbs +19 -0
  182. data/sig/stigg/models/v1/events/feature_unarchive_feature_response.rbs +192 -0
  183. data/sig/stigg/models/v1/events/feature_update_feature_params.rbs +293 -0
  184. data/sig/stigg/models/v1/events/feature_update_feature_response.rbs +192 -0
  185. data/sig/stigg/models/v1/product_archive_product_params.rbs +17 -0
  186. data/sig/stigg/models/v1/product_archive_product_response.rbs +172 -0
  187. data/sig/stigg/models/v1/product_create_product_params.rbs +52 -0
  188. data/sig/stigg/models/v1/product_create_product_response.rbs +172 -0
  189. data/sig/stigg/models/v1/product_duplicate_product_params.rbs +36 -0
  190. data/sig/stigg/models/v1/product_duplicate_product_response.rbs +172 -0
  191. data/sig/stigg/models/v1/product_list_products_params.rbs +52 -1
  192. data/sig/stigg/models/v1/product_list_products_response.rbs +92 -3
  193. data/sig/stigg/models/v1/product_unarchive_product_params.rbs +17 -0
  194. data/sig/stigg/models/v1/product_unarchive_product_response.rbs +172 -0
  195. data/sig/stigg/models/v1/product_update_product_params.rbs +174 -0
  196. data/sig/stigg/models/v1/product_update_product_response.rbs +172 -0
  197. data/sig/stigg/models/v1/subscription_list_params.rbs +54 -0
  198. data/sig/stigg/models/v1/subscription_provision_response.rbs +58 -51
  199. data/sig/stigg/models/v1/subscription_update_params.rbs +25 -2
  200. data/sig/stigg/models/v1/subscriptions/invoice_mark_as_paid_params.rbs +19 -0
  201. data/sig/stigg/models/v1/subscriptions/invoice_mark_as_paid_response.rbs +34 -0
  202. data/sig/stigg/models/v1/subscriptions/usage_charge_usage_params.rbs +29 -0
  203. data/sig/stigg/models/v1/subscriptions/usage_charge_usage_response.rbs +73 -0
  204. data/sig/stigg/models/v1/subscriptions/usage_sync_usage_params.rbs +19 -0
  205. data/sig/stigg/models/v1/subscriptions/usage_sync_usage_response.rbs +34 -0
  206. data/sig/stigg/resources/v1/coupons.rbs +18 -1
  207. data/sig/stigg/resources/v1/customers/promotional_entitlements.rbs +15 -5
  208. data/sig/stigg/resources/v1/customers.rbs +3 -0
  209. data/sig/stigg/resources/v1/events/addons/draft.rbs +23 -0
  210. data/sig/stigg/resources/v1/events/addons.rbs +63 -0
  211. data/sig/stigg/resources/v1/events/features.rbs +66 -0
  212. data/sig/stigg/resources/v1/events.rbs +4 -0
  213. data/sig/stigg/resources/v1/products.rbs +41 -0
  214. data/sig/stigg/resources/v1/subscriptions/invoice.rbs +16 -0
  215. data/sig/stigg/resources/v1/subscriptions/usage.rbs +22 -0
  216. data/sig/stigg/resources/v1/subscriptions.rbs +8 -0
  217. metadata +167 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edba11696ef39d3eab4ba9741b24ee54dfd4237352373f75c18c1279cc9e2328
4
- data.tar.gz: 257a83f3bf8a74a7ff4a4bad411726abaffde716a6689b2f5cd5fbe79394dc0a
3
+ metadata.gz: 3f90c89d191c5711d5c9633830e2125edbfc466735c6d72470987f6aa48df789
4
+ data.tar.gz: 0eb02c0d7780d93712a8b4ff26e06e35a870e36290d6274b78661453a17ac66b
5
5
  SHA512:
6
- metadata.gz: 0fbe6f9d33bca2cfc5ad6f0f18cf8fc470ac30ab92dd32d5d16f0e33743c3165264390fdf7248b7dad4e24768cd20ab6577c338a98e623619a5dfea829b8a73c
7
- data.tar.gz: 7978f7b53a81d5d2ef691039d1e5339de3edb7a931360083ad7a07411e292c4290ce8810278e936e60abbfa6d3555ccdad920ca6274d234c4ef072f7866a91c0
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
+ [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=%40stigg%2Ftypescript-mcp&config=eyJuYW1lIjoiQHN0aWdnL3R5cGVzY3JpcHQtbWNwIiwidHJhbnNwb3J0IjoiaHR0cCIsInVybCI6Imh0dHBzOi8vc3RpZ2ctbWNwLnN0bG1jcC5jb20iLCJoZWFkZXJzIjp7IlgtQVBJLUtFWSI6Ik15IEFQSSBLZXkifX0)
12
+ [![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](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.4"
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.example.com"
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
- # @!attribute additional_meta_data
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
- # @!method initialize(after: nil, before: nil, limit: nil, request_options: {})
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
- # @!method initialize(after: nil, before: nil, limit: nil, request_options: {})
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#grant
8
- class PromotionalEntitlementGrantParams < Stigg::Internal::Type::BaseModel
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::PromotionalEntitlementGrantParams::PromotionalEntitlement>]
15
+ # @return [Array<Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement>]
16
16
  required :promotional_entitlements,
17
17
  -> {
18
- Stigg::Internal::Type::ArrayOf[Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement]
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::PromotionalEntitlementGrantParams::PromotionalEntitlement>] Promotional entitlements to grant
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration, nil]
71
+ # @return [Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration, nil]
72
72
  required :monthly_reset_period_configuration,
73
73
  -> {
74
- Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period]
82
+ # @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::Period]
83
83
  required :period,
84
- enum: -> { Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period }
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod, nil]
89
+ # @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::ResetPeriod, nil]
90
90
  required :reset_period,
91
91
  enum: -> {
92
- Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration, nil]
107
+ # @return [Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration, nil]
108
108
  required :weekly_reset_period_configuration,
109
109
  -> {
110
- Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration, nil]
119
+ # @return [Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration, nil]
120
120
  required :yearly_reset_period_configuration,
121
121
  -> {
122
- Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration
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::PromotionalEntitlementGrantParams::PromotionalEntitlement}
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration, nil] The monthly reset period configuration of the entitlement, defined when reset pe
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period] The grant period of the promotional entitlement
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod, nil] The reset period of the entitlement
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration, nil] The weekly reset period configuration of the entitlement, defined when reset per
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration, nil] The yearly reset period configuration of the entitlement, defined when reset per
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::PromotionalEntitlementGrantParams::PromotionalEntitlement#monthly_reset_period_configuration
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo]
163
+ # @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo]
164
164
  required :according_to,
165
165
  enum: -> {
166
- Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart or StartOfTheMonth)
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration#according_to
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::PromotionalEntitlementGrantParams::PromotionalEntitlement#period
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::PromotionalEntitlementGrantParams::PromotionalEntitlement#reset_period
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::PromotionalEntitlementGrantParams::PromotionalEntitlement#weekly_reset_period_configuration
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo]
228
+ # @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo]
229
229
  required :according_to,
230
230
  enum: -> {
231
- Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart or specific day)
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration#according_to
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::PromotionalEntitlementGrantParams::PromotionalEntitlement#yearly_reset_period_configuration
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo]
266
+ # @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo]
267
267
  required :according_to,
268
268
  enum: -> {
269
- Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart)
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::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration#according_to
281
+ # @see Stigg::Models::V1::Customers::PromotionalEntitlementCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration#according_to
282
282
  module AccordingTo
283
283
  extend Stigg::Internal::Type::Enum
284
284