stigg 0.1.0.pre.alpha.1 → 0.1.0.pre.alpha.3

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 (190) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +29 -1
  4. data/lib/stigg/internal/my_cursor_id_page.rb +32 -4
  5. data/lib/stigg/internal/type/base_model.rb +2 -2
  6. data/lib/stigg/models/v1/{coupon_create_response.rb → coupon.rb} +31 -26
  7. data/lib/stigg/models/v1/coupon_create_params.rb +2 -0
  8. data/lib/stigg/models/v1/coupon_list_params.rb +14 -14
  9. data/lib/stigg/models/v1/coupon_list_response.rb +262 -278
  10. data/lib/stigg/models/v1/customer_import_params.rb +75 -0
  11. data/lib/stigg/models/v1/customer_import_response.rb +35 -0
  12. data/lib/stigg/models/v1/customer_list_params.rb +14 -14
  13. data/lib/stigg/models/v1/customer_list_response.rb +160 -174
  14. data/lib/stigg/models/v1/{customer_create_params.rb → customer_provision_params.rb} +18 -16
  15. data/lib/stigg/models/v1/customer_response.rb +9 -2
  16. data/lib/stigg/models/v1/customer_update_params.rb +2 -0
  17. data/lib/stigg/models/v1/customers/payment_method_attach_params.rb +3 -1
  18. data/lib/stigg/models/v1/customers/{promotional_create_params.rb → promotional_entitlement_grant_params.rb} +46 -44
  19. data/lib/stigg/models/v1/customers/{promotional_create_response.rb → promotional_entitlement_grant_response.rb} +105 -32
  20. data/lib/stigg/models/v1/customers/{promotional_revoke_params.rb → promotional_entitlement_revoke_params.rb} +2 -2
  21. data/lib/stigg/models/v1/customers/{promotional_revoke_response.rb → promotional_entitlement_revoke_response.rb} +107 -33
  22. data/lib/stigg/models/v1/event_report_params.rb +91 -0
  23. data/lib/stigg/models/v1/event_report_response.rb +25 -0
  24. data/lib/stigg/models/v1/{subscription_retrieve_response.rb → subscription.rb} +67 -26
  25. data/lib/stigg/models/v1/subscription_cancel_params.rb +75 -0
  26. data/lib/stigg/models/v1/subscription_delegate_params.rb +7 -2
  27. data/lib/stigg/models/v1/subscription_import_params.rb +92 -0
  28. data/lib/stigg/models/v1/subscription_import_response.rb +32 -0
  29. data/lib/stigg/models/v1/subscription_list_params.rb +20 -24
  30. data/lib/stigg/models/v1/subscription_list_response.rb +255 -236
  31. data/lib/stigg/models/v1/subscription_migrate_params.rb +3 -3
  32. data/lib/stigg/models/v1/subscription_preview_params.rb +139 -46
  33. data/lib/stigg/models/v1/subscription_preview_response.rb +164 -49
  34. data/lib/stigg/models/v1/subscription_provision_params.rb +1693 -0
  35. data/lib/stigg/models/v1/subscription_provision_response.rb +1038 -0
  36. data/lib/stigg/models/v1/subscription_transfer_params.rb +2 -6
  37. data/lib/stigg/models/v1/subscription_update_params.rb +1114 -0
  38. data/lib/stigg/models/v1/subscriptions/{future_update_cancel_pending_payment_response.rb → cancel_subscription.rb} +9 -5
  39. data/lib/stigg/models/v1/usage_history_params.rb +54 -0
  40. data/lib/stigg/models/v1/usage_history_response.rb +155 -0
  41. data/lib/stigg/models/v1/usage_report_params.rb +114 -0
  42. data/lib/stigg/models/v1/usage_report_response.rb +120 -0
  43. data/lib/stigg/models.rb +0 -4
  44. data/lib/stigg/resources/v1/coupons.rb +16 -14
  45. data/lib/stigg/resources/v1/customers/payment_method.rb +6 -5
  46. data/lib/stigg/resources/v1/customers/{promotional.rb → promotional_entitlements.rb} +17 -17
  47. data/lib/stigg/resources/v1/customers.rb +78 -56
  48. data/lib/stigg/resources/v1/events.rb +38 -0
  49. data/lib/stigg/resources/v1/subscriptions/future_update.rb +10 -8
  50. data/lib/stigg/resources/v1/subscriptions.rb +206 -79
  51. data/lib/stigg/resources/v1/usage.rb +79 -0
  52. data/lib/stigg/resources/v1.rb +6 -42
  53. data/lib/stigg/version.rb +1 -1
  54. data/lib/stigg.rb +25 -23
  55. data/rbi/stigg/internal/my_cursor_id_page.rbi +27 -0
  56. data/rbi/stigg/models/v1/coupon.rbi +891 -0
  57. data/rbi/stigg/models/v1/coupon_create_params.rbi +1 -0
  58. data/rbi/stigg/models/v1/coupon_list_params.rbi +21 -21
  59. data/rbi/stigg/models/v1/coupon_list_response.rbi +812 -869
  60. data/rbi/stigg/models/v1/customer_import_params.rbi +130 -0
  61. data/rbi/stigg/models/v1/customer_import_response.rbi +76 -0
  62. data/rbi/stigg/models/v1/customer_list_params.rbi +21 -21
  63. data/rbi/stigg/models/v1/customer_list_response.rbi +307 -347
  64. data/rbi/stigg/models/v1/{customer_create_params.rbi → customer_provision_params.rbi} +36 -35
  65. data/rbi/stigg/models/v1/customer_response.rbi +8 -1
  66. data/rbi/stigg/models/v1/customer_update_params.rbi +1 -0
  67. data/rbi/stigg/models/v1/customers/payment_method_attach_params.rbi +3 -0
  68. data/rbi/stigg/models/v1/customers/{promotional_create_params.rbi → promotional_entitlement_grant_params.rbi} +78 -77
  69. data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_response.rbi +690 -0
  70. data/rbi/stigg/models/v1/customers/{promotional_revoke_params.rbi → promotional_entitlement_revoke_params.rbi} +2 -2
  71. data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbi +696 -0
  72. data/rbi/stigg/models/v1/event_report_params.rbi +168 -0
  73. data/rbi/stigg/models/v1/event_report_response.rbi +35 -0
  74. data/rbi/stigg/models/v1/{subscription_migrate_response.rbi → subscription.rbi} +130 -98
  75. data/rbi/stigg/models/v1/subscription_cancel_params.rbi +182 -0
  76. data/rbi/stigg/models/v1/subscription_delegate_params.rbi +6 -2
  77. data/rbi/stigg/models/v1/subscription_import_params.rbi +148 -0
  78. data/rbi/stigg/models/v1/subscription_import_response.rbi +69 -0
  79. data/rbi/stigg/models/v1/subscription_list_params.rbi +26 -28
  80. data/rbi/stigg/models/v1/subscription_list_response.rbi +460 -435
  81. data/rbi/stigg/models/v1/subscription_migrate_params.rbi +3 -3
  82. data/rbi/stigg/models/v1/subscription_preview_params.rbi +112 -14
  83. data/rbi/stigg/models/v1/subscription_preview_response.rbi +139 -6
  84. data/rbi/stigg/models/v1/subscription_provision_params.rbi +5306 -0
  85. data/rbi/stigg/models/v1/subscription_provision_response.rbi +3175 -0
  86. data/rbi/stigg/models/v1/subscription_transfer_params.rbi +2 -4
  87. data/rbi/stigg/models/v1/subscription_update_params.rbi +3578 -0
  88. data/rbi/stigg/models/v1/subscriptions/{future_update_cancel_schedule_response.rbi → cancel_subscription.rbi} +10 -16
  89. data/rbi/stigg/models/v1/usage_history_params.rbi +79 -0
  90. data/rbi/stigg/models/v1/usage_history_response.rbi +347 -0
  91. data/rbi/stigg/models/v1/usage_report_params.rbi +227 -0
  92. data/rbi/stigg/models/v1/usage_report_response.rbi +162 -0
  93. data/rbi/stigg/models.rbi +0 -4
  94. data/rbi/stigg/resources/v1/coupons.rbi +22 -14
  95. data/rbi/stigg/resources/v1/customers/payment_method.rbi +9 -3
  96. data/rbi/stigg/resources/v1/customers/{promotional.rbi → promotional_entitlements.rbi} +13 -9
  97. data/rbi/stigg/resources/v1/customers.rbi +84 -53
  98. data/rbi/stigg/resources/v1/events.rbi +28 -0
  99. data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +14 -10
  100. data/rbi/stigg/resources/v1/subscriptions.rbi +242 -58
  101. data/rbi/stigg/resources/v1/usage.rbi +57 -0
  102. data/rbi/stigg/resources/v1.rbi +4 -26
  103. data/sig/stigg/internal/my_cursor_id_page.rbs +17 -0
  104. data/sig/stigg/models/v1/{coupon_create_response.rbs → coupon.rbs} +29 -32
  105. data/sig/stigg/models/v1/coupon_list_params.rbs +11 -11
  106. data/sig/stigg/models/v1/coupon_list_response.rbs +331 -351
  107. data/sig/stigg/models/v1/customer_import_params.rbs +74 -0
  108. data/sig/stigg/models/v1/customer_import_response.rbs +30 -0
  109. data/sig/stigg/models/v1/customer_list_params.rbs +11 -11
  110. data/sig/stigg/models/v1/customer_list_response.rbs +133 -153
  111. data/sig/stigg/models/v1/{customer_create_params.rbs → customer_provision_params.rbs} +22 -22
  112. data/sig/stigg/models/v1/customers/{promotional_create_params.rbs → promotional_entitlement_grant_params.rbs} +43 -43
  113. data/sig/stigg/models/v1/customers/promotional_entitlement_grant_response.rbs +281 -0
  114. data/sig/stigg/models/v1/customers/{promotional_revoke_params.rbs → promotional_entitlement_revoke_params.rbs} +2 -2
  115. data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbs +281 -0
  116. data/sig/stigg/models/v1/event_report_params.rbs +82 -0
  117. data/sig/stigg/models/v1/event_report_response.rbs +15 -0
  118. data/sig/stigg/models/v1/{subscription_retrieve_response.rbs → subscription.rbs} +61 -35
  119. data/sig/stigg/models/v1/subscription_cancel_params.rbs +79 -0
  120. data/sig/stigg/models/v1/subscription_import_params.rbs +84 -0
  121. data/sig/stigg/models/v1/subscription_import_response.rbs +30 -0
  122. data/sig/stigg/models/v1/subscription_list_params.rbs +14 -14
  123. data/sig/stigg/models/v1/subscription_list_response.rbs +196 -189
  124. data/sig/stigg/models/v1/subscription_preview_params.rbs +2 -6
  125. data/sig/stigg/models/v1/subscription_provision_params.rbs +2223 -0
  126. data/sig/stigg/models/v1/subscription_provision_response.rbs +1305 -0
  127. data/sig/stigg/models/v1/subscription_update_params.rbs +1544 -0
  128. data/sig/stigg/models/v1/subscriptions/cancel_subscription.rbs +34 -0
  129. data/sig/stigg/models/v1/usage_history_params.rbs +52 -0
  130. data/sig/stigg/models/v1/usage_history_response.rbs +129 -0
  131. data/sig/stigg/models/v1/usage_report_params.rbs +102 -0
  132. data/sig/stigg/models/v1/usage_report_response.rbs +87 -0
  133. data/sig/stigg/models.rbs +0 -4
  134. data/sig/stigg/resources/v1/coupons.rbs +5 -5
  135. data/sig/stigg/resources/v1/customers/{promotional.rbs → promotional_entitlements.rbs} +5 -5
  136. data/sig/stigg/resources/v1/customers.rbs +20 -17
  137. data/sig/stigg/resources/v1/events.rbs +14 -0
  138. data/sig/stigg/resources/v1/subscriptions/future_update.rbs +2 -2
  139. data/sig/stigg/resources/v1/subscriptions.rbs +68 -20
  140. data/sig/stigg/resources/v1/usage.rbs +24 -0
  141. data/sig/stigg/resources/v1.rbs +2 -8
  142. metadata +77 -71
  143. data/lib/stigg/models/v1/coupon_retrieve_response.rb +0 -317
  144. data/lib/stigg/models/v1/customers/usage_retrieve_params.rb +0 -56
  145. data/lib/stigg/models/v1/customers/usage_retrieve_response.rb +0 -145
  146. data/lib/stigg/models/v1/subscription_create_params.rb +0 -214
  147. data/lib/stigg/models/v1/subscription_create_response.rb +0 -338
  148. data/lib/stigg/models/v1/subscription_delegate_response.rb +0 -274
  149. data/lib/stigg/models/v1/subscription_migrate_response.rb +0 -274
  150. data/lib/stigg/models/v1/subscription_transfer_response.rb +0 -274
  151. data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +0 -32
  152. data/lib/stigg/models/v1_create_event_params.rb +0 -87
  153. data/lib/stigg/models/v1_create_event_response.rb +0 -16
  154. data/lib/stigg/models/v1_create_usage_params.rb +0 -96
  155. data/lib/stigg/models/v1_create_usage_response.rb +0 -112
  156. data/lib/stigg/resources/v1/customers/usage.rb +0 -59
  157. data/rbi/stigg/models/v1/coupon_create_response.rbi +0 -986
  158. data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +0 -986
  159. data/rbi/stigg/models/v1/customers/promotional_create_response.rbi +0 -495
  160. data/rbi/stigg/models/v1/customers/promotional_revoke_response.rbi +0 -497
  161. data/rbi/stigg/models/v1/customers/usage_retrieve_params.rbi +0 -84
  162. data/rbi/stigg/models/v1/customers/usage_retrieve_response.rbi +0 -353
  163. data/rbi/stigg/models/v1/subscription_create_params.rbi +0 -394
  164. data/rbi/stigg/models/v1/subscription_create_response.rbi +0 -668
  165. data/rbi/stigg/models/v1/subscription_delegate_response.rbi +0 -535
  166. data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +0 -535
  167. data/rbi/stigg/models/v1/subscription_transfer_response.rbi +0 -535
  168. data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +0 -79
  169. data/rbi/stigg/models/v1_create_event_params.rbi +0 -160
  170. data/rbi/stigg/models/v1_create_event_response.rbi +0 -23
  171. data/rbi/stigg/models/v1_create_usage_params.rbi +0 -177
  172. data/rbi/stigg/models/v1_create_usage_response.rbi +0 -150
  173. data/rbi/stigg/resources/v1/customers/usage.rbi +0 -45
  174. data/sig/stigg/models/v1/coupon_retrieve_response.rbs +0 -394
  175. data/sig/stigg/models/v1/customers/promotional_create_response.rbs +0 -209
  176. data/sig/stigg/models/v1/customers/promotional_revoke_response.rbs +0 -209
  177. data/sig/stigg/models/v1/customers/usage_retrieve_params.rbs +0 -54
  178. data/sig/stigg/models/v1/customers/usage_retrieve_response.rbs +0 -134
  179. data/sig/stigg/models/v1/subscription_create_params.rbs +0 -199
  180. data/sig/stigg/models/v1/subscription_create_response.rbs +0 -283
  181. data/sig/stigg/models/v1/subscription_delegate_response.rbs +0 -224
  182. data/sig/stigg/models/v1/subscription_migrate_response.rbs +0 -224
  183. data/sig/stigg/models/v1/subscription_transfer_response.rbs +0 -224
  184. data/sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbs +0 -34
  185. data/sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbs +0 -34
  186. data/sig/stigg/models/v1_create_event_params.rbs +0 -80
  187. data/sig/stigg/models/v1_create_event_response.rbs +0 -13
  188. data/sig/stigg/models/v1_create_usage_params.rbs +0 -90
  189. data/sig/stigg/models/v1_create_usage_response.rbs +0 -85
  190. data/sig/stigg/resources/v1/customers/usage.rbs +0 -21
@@ -4,23 +4,23 @@ module Stigg
4
4
  module Models
5
5
  module V1
6
6
  module Customers
7
- # @see Stigg::Resources::V1::Customers::Promotional#create
8
- class PromotionalCreateParams < Stigg::Internal::Type::BaseModel
7
+ # @see Stigg::Resources::V1::Customers::PromotionalEntitlements#grant
8
+ class PromotionalEntitlementGrantParams < 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::PromotionalCreateParams::PromotionalEntitlement>]
15
+ # @return [Array<Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement>]
16
16
  required :promotional_entitlements,
17
17
  -> {
18
- Stigg::Internal::Type::ArrayOf[Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement]
18
+ Stigg::Internal::Type::ArrayOf[Stigg::V1::Customers::PromotionalEntitlementGrantParams::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::PromotionalCreateParams::PromotionalEntitlement>] Promotional entitlements to grant
23
+ # @param promotional_entitlements [Array<Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::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::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration, nil]
71
+ # @return [Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration, nil]
72
72
  required :monthly_reset_period_configuration,
73
73
  -> {
74
- Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration
74
+ Stigg::V1::Customers::PromotionalEntitlementGrantParams::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::PromotionalCreateParams::PromotionalEntitlement::Period]
82
+ # @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period]
83
83
  required :period,
84
- enum: -> { Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period }
84
+ enum: -> { Stigg::V1::Customers::PromotionalEntitlementGrantParams::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::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod, nil]
89
+ # @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod, nil]
90
90
  required :reset_period,
91
91
  enum: -> {
92
- Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod
92
+ Stigg::V1::Customers::PromotionalEntitlementGrantParams::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::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration, nil]
107
+ # @return [Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration, nil]
108
108
  required :weekly_reset_period_configuration,
109
109
  -> {
110
- Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration
110
+ Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration
111
111
  },
112
112
  api_name: :weeklyResetPeriodConfiguration,
113
113
  nil?: true
@@ -116,19 +116,21 @@ 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::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration, nil]
119
+ # @return [Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration, nil]
120
120
  required :yearly_reset_period_configuration,
121
121
  -> {
122
- Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration
122
+ Stigg::V1::Customers::PromotionalEntitlementGrantParams::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::PromotionalCreateParams::PromotionalEntitlement}
129
+ # {Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement}
130
130
  # for more details.
131
131
  #
132
+ # Single entitlement grant config
133
+ #
132
134
  # @param custom_end_date [Time, nil] The custom end date of the promotional entitlement
133
135
  #
134
136
  # @param enum_values [Array<String>, nil] The enum values of the entitlement
@@ -141,27 +143,27 @@ module Stigg
141
143
  #
142
144
  # @param is_visible [Boolean, nil] Whether the entitlement is visible
143
145
  #
144
- # @param monthly_reset_period_configuration [Stigg::Models::V1::Customers::PromotionalCreateParams::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::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration, nil] The monthly reset period configuration of the entitlement, defined when reset pe
145
147
  #
146
- # @param period [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period] The grant period of the promotional entitlement
148
+ # @param period [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period] The grant period of the promotional entitlement
147
149
  #
148
- # @param reset_period [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod, nil] The reset period of the entitlement
150
+ # @param reset_period [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod, nil] The reset period of the entitlement
149
151
  #
150
152
  # @param usage_limit [Integer, nil] The usage limit of the entitlement
151
153
  #
152
- # @param weekly_reset_period_configuration [Stigg::Models::V1::Customers::PromotionalCreateParams::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::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration, nil] The weekly reset period configuration of the entitlement, defined when reset per
153
155
  #
154
- # @param yearly_reset_period_configuration [Stigg::Models::V1::Customers::PromotionalCreateParams::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::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration, nil] The yearly reset period configuration of the entitlement, defined when reset per
155
157
 
156
- # @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement#monthly_reset_period_configuration
158
+ # @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement#monthly_reset_period_configuration
157
159
  class MonthlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
158
160
  # @!attribute according_to
159
- # Monthly reset period according to
161
+ # Reset anchor (SubscriptionStart or StartOfTheMonth)
160
162
  #
161
- # @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo]
163
+ # @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo]
162
164
  required :according_to,
163
165
  enum: -> {
164
- Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo
166
+ Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo
165
167
  },
166
168
  api_name: :accordingTo
167
169
 
@@ -169,11 +171,11 @@ module Stigg
169
171
  # The monthly reset period configuration of the entitlement, defined when reset
170
172
  # period is monthly
171
173
  #
172
- # @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo] Monthly reset period according to
174
+ # @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart or StartOfTheMonth)
173
175
 
174
- # Monthly reset period according to
176
+ # Reset anchor (SubscriptionStart or StartOfTheMonth)
175
177
  #
176
- # @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration#according_to
178
+ # @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration#according_to
177
179
  module AccordingTo
178
180
  extend Stigg::Internal::Type::Enum
179
181
 
@@ -187,7 +189,7 @@ module Stigg
187
189
 
188
190
  # The grant period of the promotional entitlement
189
191
  #
190
- # @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement#period
192
+ # @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement#period
191
193
  module Period
192
194
  extend Stigg::Internal::Type::Enum
193
195
 
@@ -204,7 +206,7 @@ module Stigg
204
206
 
205
207
  # The reset period of the entitlement
206
208
  #
207
- # @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement#reset_period
209
+ # @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement#reset_period
208
210
  module ResetPeriod
209
211
  extend Stigg::Internal::Type::Enum
210
212
 
@@ -218,15 +220,15 @@ module Stigg
218
220
  # @return [Array<Symbol>]
219
221
  end
220
222
 
221
- # @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement#weekly_reset_period_configuration
223
+ # @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement#weekly_reset_period_configuration
222
224
  class WeeklyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
223
225
  # @!attribute according_to
224
- # Weekly reset period according to
226
+ # Reset anchor (SubscriptionStart or specific day)
225
227
  #
226
- # @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo]
228
+ # @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo]
227
229
  required :according_to,
228
230
  enum: -> {
229
- Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo
231
+ Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo
230
232
  },
231
233
  api_name: :accordingTo
232
234
 
@@ -234,11 +236,11 @@ module Stigg
234
236
  # The weekly reset period configuration of the entitlement, defined when reset
235
237
  # period is weekly
236
238
  #
237
- # @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo] Weekly reset period according to
239
+ # @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart or specific day)
238
240
 
239
- # Weekly reset period according to
241
+ # Reset anchor (SubscriptionStart or specific day)
240
242
  #
241
- # @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration#according_to
243
+ # @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration#according_to
242
244
  module AccordingTo
243
245
  extend Stigg::Internal::Type::Enum
244
246
 
@@ -256,15 +258,15 @@ module Stigg
256
258
  end
257
259
  end
258
260
 
259
- # @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement#yearly_reset_period_configuration
261
+ # @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement#yearly_reset_period_configuration
260
262
  class YearlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
261
263
  # @!attribute according_to
262
- # Yearly reset period according to
264
+ # Reset anchor (SubscriptionStart)
263
265
  #
264
- # @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo]
266
+ # @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo]
265
267
  required :according_to,
266
268
  enum: -> {
267
- Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo
269
+ Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo
268
270
  },
269
271
  api_name: :accordingTo
270
272
 
@@ -272,11 +274,11 @@ module Stigg
272
274
  # The yearly reset period configuration of the entitlement, defined when reset
273
275
  # period is yearly
274
276
  #
275
- # @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo] Yearly reset period according to
277
+ # @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart)
276
278
 
277
- # Yearly reset period according to
279
+ # Reset anchor (SubscriptionStart)
278
280
  #
279
- # @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration#according_to
281
+ # @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration#according_to
280
282
  module AccordingTo
281
283
  extend Stigg::Internal::Type::Enum
282
284
 
@@ -4,16 +4,18 @@ module Stigg
4
4
  module Models
5
5
  module V1
6
6
  module Customers
7
- # @see Stigg::Resources::V1::Customers::Promotional#create
8
- class PromotionalCreateResponse < Stigg::Internal::Type::BaseModel
7
+ # @see Stigg::Resources::V1::Customers::PromotionalEntitlements#grant
8
+ class PromotionalEntitlementGrantResponse < Stigg::Internal::Type::BaseModel
9
9
  # @!attribute data
10
10
  #
11
- # @return [Array<Stigg::Models::V1::Customers::PromotionalCreateResponse::Data>]
11
+ # @return [Array<Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data>]
12
12
  required :data,
13
- -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::Customers::PromotionalCreateResponse::Data] }
13
+ -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data] }
14
14
 
15
15
  # @!method initialize(data:)
16
- # @param data [Array<Stigg::Models::V1::Customers::PromotionalCreateResponse::Data>]
16
+ # Response object
17
+ #
18
+ # @param data [Array<Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data>]
17
19
 
18
20
  class Data < Stigg::Internal::Type::BaseModel
19
21
  # @!attribute id
@@ -91,24 +93,25 @@ module Stigg
91
93
  # @!attribute period
92
94
  # The grant period of the promotional entitlement
93
95
  #
94
- # @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Period]
95
- required :period, enum: -> { Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Period }
96
+ # @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period]
97
+ required :period,
98
+ enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period }
96
99
 
97
100
  # @!attribute reset_period
98
101
  # The reset period of the entitlement
99
102
  #
100
- # @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriod, nil]
103
+ # @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod, nil]
101
104
  required :reset_period,
102
- enum: -> { Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriod },
105
+ enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod },
103
106
  api_name: :resetPeriod,
104
107
  nil?: true
105
108
 
106
109
  # @!attribute reset_period_configuration
107
110
  # The reset period configuration of the entitlement
108
111
  #
109
- # @return [Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo, nil]
112
+ # @return [Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig, nil]
110
113
  required :reset_period_configuration,
111
- union: -> { Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration },
114
+ union: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration },
112
115
  api_name: :resetPeriodConfiguration,
113
116
  nil?: true
114
117
 
@@ -121,8 +124,9 @@ module Stigg
121
124
  # @!attribute status
122
125
  # The status of the entitlement
123
126
  #
124
- # @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Status]
125
- required :status, enum: -> { Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Status }
127
+ # @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status]
128
+ required :status,
129
+ enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status }
126
130
 
127
131
  # @!attribute updated_at
128
132
  # Timestamp of when the record was last updated
@@ -137,6 +141,8 @@ module Stigg
137
141
  required :usage_limit, Float, api_name: :usageLimit, nil?: true
138
142
 
139
143
  # @!method initialize(id:, created_at:, description:, end_date:, enum_values:, environment_id:, feature_group_ids:, feature_id:, has_soft_limit:, has_unlimited_usage:, is_visible:, period:, reset_period:, reset_period_configuration:, start_date:, status:, updated_at:, usage_limit:)
144
+ # Granted feature entitlement
145
+ #
140
146
  # @param id [String] Unique identifier for the entity
141
147
  #
142
148
  # @param created_at [Time] Timestamp of when the record was created
@@ -159,15 +165,15 @@ module Stigg
159
165
  #
160
166
  # @param is_visible [Boolean] Whether the entitlement is visible
161
167
  #
162
- # @param period [Symbol, Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Period] The grant period of the promotional entitlement
168
+ # @param period [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period] The grant period of the promotional entitlement
163
169
  #
164
- # @param reset_period [Symbol, Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriod, nil] The reset period of the entitlement
170
+ # @param reset_period [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod, nil] The reset period of the entitlement
165
171
  #
166
- # @param reset_period_configuration [Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo, nil] The reset period configuration of the entitlement
172
+ # @param reset_period_configuration [Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig, nil] The reset period configuration of the entitlement
167
173
  #
168
174
  # @param start_date [Time] The start date of the entitlement
169
175
  #
170
- # @param status [Symbol, Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Status] The status of the entitlement
176
+ # @param status [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status] The status of the entitlement
171
177
  #
172
178
  # @param updated_at [Time] Timestamp of when the record was last updated
173
179
  #
@@ -175,7 +181,7 @@ module Stigg
175
181
 
176
182
  # The grant period of the promotional entitlement
177
183
  #
178
- # @see Stigg::Models::V1::Customers::PromotionalCreateResponse::Data#period
184
+ # @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data#period
179
185
  module Period
180
186
  extend Stigg::Internal::Type::Enum
181
187
 
@@ -192,7 +198,7 @@ module Stigg
192
198
 
193
199
  # The reset period of the entitlement
194
200
  #
195
- # @see Stigg::Models::V1::Customers::PromotionalCreateResponse::Data#reset_period
201
+ # @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data#reset_period
196
202
  module ResetPeriod
197
203
  extend Stigg::Internal::Type::Enum
198
204
 
@@ -208,35 +214,102 @@ module Stigg
208
214
 
209
215
  # The reset period configuration of the entitlement
210
216
  #
211
- # @see Stigg::Models::V1::Customers::PromotionalCreateResponse::Data#reset_period_configuration
217
+ # @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data#reset_period_configuration
212
218
  module ResetPeriodConfiguration
213
219
  extend Stigg::Internal::Type::Union
214
220
 
215
- variant -> { Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo }
221
+ # Yearly reset configuration
222
+ variant -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig }
223
+
224
+ # Monthly reset configuration
225
+ variant -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig }
216
226
 
217
- variant -> { Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo }
227
+ # Weekly reset configuration
228
+ variant -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig }
229
+
230
+ class YearlyResetPeriodConfig < Stigg::Internal::Type::BaseModel
231
+ # @!attribute according_to
232
+ # Reset anchor (SubscriptionStart)
233
+ #
234
+ # @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::AccordingTo]
235
+ required :according_to,
236
+ enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::AccordingTo },
237
+ api_name: :accordingTo
238
+
239
+ # @!method initialize(according_to:)
240
+ # Yearly reset configuration
241
+ #
242
+ # @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::AccordingTo] Reset anchor (SubscriptionStart)
218
243
 
219
- variant -> { Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo }
244
+ # Reset anchor (SubscriptionStart)
245
+ #
246
+ # @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig#according_to
247
+ module AccordingTo
248
+ extend Stigg::Internal::Type::Enum
249
+
250
+ SUBSCRIPTION_START = :SubscriptionStart
251
+
252
+ # @!method self.values
253
+ # @return [Array<Symbol>]
254
+ end
255
+ end
220
256
 
221
- class AccordingTo < Stigg::Internal::Type::BaseModel
257
+ class MonthlyResetPeriodConfig < Stigg::Internal::Type::BaseModel
222
258
  # @!attribute according_to
223
- # Yearly reset period according to
259
+ # Reset anchor (SubscriptionStart or StartOfTheMonth)
224
260
  #
225
- # @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo::AccordingTo]
261
+ # @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::AccordingTo]
226
262
  required :according_to,
227
- enum: -> { Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo::AccordingTo },
263
+ enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::AccordingTo },
228
264
  api_name: :accordingTo
229
265
 
230
266
  # @!method initialize(according_to:)
231
- # @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo::AccordingTo] Yearly reset period according to
267
+ # Monthly reset configuration
268
+ #
269
+ # @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::AccordingTo] Reset anchor (SubscriptionStart or StartOfTheMonth)
270
+
271
+ # Reset anchor (SubscriptionStart or StartOfTheMonth)
272
+ #
273
+ # @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig#according_to
274
+ module AccordingTo
275
+ extend Stigg::Internal::Type::Enum
276
+
277
+ SUBSCRIPTION_START = :SubscriptionStart
278
+ START_OF_THE_MONTH = :StartOfTheMonth
279
+
280
+ # @!method self.values
281
+ # @return [Array<Symbol>]
282
+ end
283
+ end
284
+
285
+ class WeeklyResetPeriodConfig < Stigg::Internal::Type::BaseModel
286
+ # @!attribute according_to
287
+ # Reset anchor (SubscriptionStart or specific day)
288
+ #
289
+ # @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo]
290
+ required :according_to,
291
+ enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo },
292
+ api_name: :accordingTo
293
+
294
+ # @!method initialize(according_to:)
295
+ # Weekly reset configuration
296
+ #
297
+ # @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo] Reset anchor (SubscriptionStart or specific day)
232
298
 
233
- # Yearly reset period according to
299
+ # Reset anchor (SubscriptionStart or specific day)
234
300
  #
235
- # @see Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo#according_to
301
+ # @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig#according_to
236
302
  module AccordingTo
237
303
  extend Stigg::Internal::Type::Enum
238
304
 
239
305
  SUBSCRIPTION_START = :SubscriptionStart
306
+ EVERY_SUNDAY = :EverySunday
307
+ EVERY_MONDAY = :EveryMonday
308
+ EVERY_TUESDAY = :EveryTuesday
309
+ EVERY_WEDNESDAY = :EveryWednesday
310
+ EVERY_THURSDAY = :EveryThursday
311
+ EVERY_FRIDAY = :EveryFriday
312
+ EVERY_SATURDAY = :EverySaturday
240
313
 
241
314
  # @!method self.values
242
315
  # @return [Array<Symbol>]
@@ -244,12 +317,12 @@ module Stigg
244
317
  end
245
318
 
246
319
  # @!method self.variants
247
- # @return [Array(Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo, Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo, Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo)]
320
+ # @return [Array(Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig)]
248
321
  end
249
322
 
250
323
  # The status of the entitlement
251
324
  #
252
- # @see Stigg::Models::V1::Customers::PromotionalCreateResponse::Data#status
325
+ # @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data#status
253
326
  module Status
254
327
  extend Stigg::Internal::Type::Enum
255
328
 
@@ -4,8 +4,8 @@ module Stigg
4
4
  module Models
5
5
  module V1
6
6
  module Customers
7
- # @see Stigg::Resources::V1::Customers::Promotional#revoke
8
- class PromotionalRevokeParams < Stigg::Internal::Type::BaseModel
7
+ # @see Stigg::Resources::V1::Customers::PromotionalEntitlements#revoke
8
+ class PromotionalEntitlementRevokeParams < Stigg::Internal::Type::BaseModel
9
9
  extend Stigg::Internal::Type::RequestParameters::Converter
10
10
  include Stigg::Internal::Type::RequestParameters
11
11