stigg 0.1.0.pre.alpha.2 → 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 (132) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/stigg/internal/type/base_model.rb +2 -2
  5. data/lib/stigg/models/v1/{coupon_create_response.rb → coupon.rb} +24 -24
  6. data/lib/stigg/models/v1/customer_import_params.rb +75 -0
  7. data/lib/stigg/models/v1/customer_import_response.rb +35 -0
  8. data/lib/stigg/models/v1/{customer_create_params.rb → customer_provision_params.rb} +16 -16
  9. data/lib/stigg/models/v1/customer_response.rb +1 -1
  10. data/lib/stigg/models/v1/customers/promotional_entitlement_grant_params.rb +296 -0
  11. data/lib/stigg/models/v1/customers/promotional_entitlement_grant_response.rb +341 -0
  12. data/lib/stigg/models/v1/customers/promotional_entitlement_revoke_params.rb +24 -0
  13. data/lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb +342 -0
  14. data/lib/stigg/models/v1/event_report_params.rb +91 -0
  15. data/lib/stigg/models/v1/event_report_response.rb +25 -0
  16. data/lib/stigg/models/v1/{subscription_retrieve_response.rb → subscription.rb} +30 -29
  17. data/lib/stigg/models/v1/subscription_cancel_params.rb +75 -0
  18. data/lib/stigg/models/v1/subscription_import_params.rb +92 -0
  19. data/lib/stigg/models/v1/subscription_import_response.rb +32 -0
  20. data/lib/stigg/models/v1/{subscription_create_params.rb → subscription_provision_params.rb} +118 -118
  21. data/lib/stigg/models/v1/{subscription_create_response.rb → subscription_provision_response.rb} +76 -75
  22. data/lib/stigg/models/v1/subscription_update_params.rb +1114 -0
  23. data/lib/stigg/models/v1/subscriptions/{future_update_cancel_pending_payment_response.rb → cancel_subscription.rb} +7 -5
  24. data/lib/stigg/models/v1/usage_history_params.rb +54 -0
  25. data/lib/stigg/models/v1/usage_history_response.rb +155 -0
  26. data/lib/stigg/models/v1/usage_report_params.rb +114 -0
  27. data/lib/stigg/models/v1/usage_report_response.rb +120 -0
  28. data/lib/stigg/models.rb +0 -4
  29. data/lib/stigg/resources/v1/coupons.rb +4 -4
  30. data/lib/stigg/resources/v1/customers/promotional_entitlements.rb +69 -0
  31. data/lib/stigg/resources/v1/customers.rb +59 -37
  32. data/lib/stigg/resources/v1/events.rb +38 -0
  33. data/lib/stigg/resources/v1/subscriptions/future_update.rb +4 -4
  34. data/lib/stigg/resources/v1/subscriptions.rb +166 -64
  35. data/lib/stigg/resources/v1/usage.rb +79 -0
  36. data/lib/stigg/resources/v1.rb +6 -42
  37. data/lib/stigg/version.rb +1 -1
  38. data/lib/stigg.rb +25 -16
  39. data/rbi/stigg/models/v1/{coupon_create_response.rbi → coupon.rbi} +156 -252
  40. data/rbi/stigg/models/v1/customer_import_params.rbi +130 -0
  41. data/rbi/stigg/models/v1/customer_import_response.rbi +76 -0
  42. data/rbi/stigg/models/v1/{customer_create_params.rbi → customer_provision_params.rbi} +35 -35
  43. data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_params.rbi +640 -0
  44. data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_response.rbi +690 -0
  45. data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbi +42 -0
  46. data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbi +696 -0
  47. data/rbi/stigg/models/v1/event_report_params.rbi +168 -0
  48. data/rbi/stigg/models/v1/event_report_response.rbi +35 -0
  49. data/rbi/stigg/models/v1/{subscription_migrate_response.rbi → subscription.rbi} +66 -117
  50. data/rbi/stigg/models/v1/subscription_cancel_params.rbi +182 -0
  51. data/rbi/stigg/models/v1/subscription_import_params.rbi +148 -0
  52. data/rbi/stigg/models/v1/subscription_import_response.rbi +69 -0
  53. data/rbi/stigg/models/v1/{subscription_create_params.rbi → subscription_provision_params.rbi} +794 -773
  54. data/rbi/stigg/models/v1/{subscription_create_response.rbi → subscription_provision_response.rbi} +481 -481
  55. data/rbi/stigg/models/v1/subscription_update_params.rbi +3578 -0
  56. data/rbi/stigg/models/v1/subscriptions/{future_update_cancel_schedule_response.rbi → cancel_subscription.rbi} +9 -16
  57. data/rbi/stigg/models/v1/usage_history_params.rbi +79 -0
  58. data/rbi/stigg/models/v1/usage_history_response.rbi +347 -0
  59. data/rbi/stigg/models/v1/usage_report_params.rbi +227 -0
  60. data/rbi/stigg/models/v1/usage_report_response.rbi +162 -0
  61. data/rbi/stigg/models.rbi +0 -4
  62. data/rbi/stigg/resources/v1/coupons.rbi +2 -2
  63. data/rbi/stigg/resources/v1/customers/promotional_entitlements.rbi +57 -0
  64. data/rbi/stigg/resources/v1/customers.rbi +53 -36
  65. data/rbi/stigg/resources/v1/events.rbi +28 -0
  66. data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +2 -6
  67. data/rbi/stigg/resources/v1/subscriptions.rbi +179 -74
  68. data/rbi/stigg/resources/v1/usage.rbi +57 -0
  69. data/rbi/stigg/resources/v1.rbi +4 -26
  70. data/sig/stigg/models/v1/{coupon_create_response.rbs → coupon.rbs} +29 -32
  71. data/sig/stigg/models/v1/customer_import_params.rbs +74 -0
  72. data/sig/stigg/models/v1/customer_import_response.rbs +30 -0
  73. data/sig/stigg/models/v1/{customer_create_params.rbs → customer_provision_params.rbs} +22 -22
  74. data/sig/stigg/models/v1/customers/promotional_entitlement_grant_params.rbs +234 -0
  75. data/sig/stigg/models/v1/customers/promotional_entitlement_grant_response.rbs +281 -0
  76. data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbs +27 -0
  77. data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbs +281 -0
  78. data/sig/stigg/models/v1/event_report_params.rbs +82 -0
  79. data/sig/stigg/models/v1/event_report_response.rbs +15 -0
  80. data/sig/stigg/models/v1/{subscription_retrieve_response.rbs → subscription.rbs} +36 -41
  81. data/sig/stigg/models/v1/subscription_cancel_params.rbs +79 -0
  82. data/sig/stigg/models/v1/subscription_import_params.rbs +84 -0
  83. data/sig/stigg/models/v1/subscription_import_response.rbs +30 -0
  84. data/sig/stigg/models/v1/{subscription_create_params.rbs → subscription_provision_params.rbs} +200 -200
  85. data/sig/stigg/models/v1/{subscription_create_response.rbs → subscription_provision_response.rbs} +106 -106
  86. data/sig/stigg/models/v1/subscription_update_params.rbs +1544 -0
  87. data/sig/stigg/models/v1/subscriptions/cancel_subscription.rbs +34 -0
  88. data/sig/stigg/models/v1/usage_history_params.rbs +52 -0
  89. data/sig/stigg/models/v1/usage_history_response.rbs +129 -0
  90. data/sig/stigg/models/v1/usage_report_params.rbs +102 -0
  91. data/sig/stigg/models/v1/usage_report_response.rbs +87 -0
  92. data/sig/stigg/models.rbs +0 -4
  93. data/sig/stigg/resources/v1/coupons.rbs +2 -2
  94. data/sig/stigg/resources/v1/customers/promotional_entitlements.rbs +23 -0
  95. data/sig/stigg/resources/v1/customers.rbs +17 -12
  96. data/sig/stigg/resources/v1/events.rbs +14 -0
  97. data/sig/stigg/resources/v1/subscriptions/future_update.rbs +2 -2
  98. data/sig/stigg/resources/v1/subscriptions.rbs +65 -32
  99. data/sig/stigg/resources/v1/usage.rbs +24 -0
  100. data/sig/stigg/resources/v1.rbs +2 -8
  101. metadata +77 -50
  102. data/lib/stigg/models/v1/coupon_retrieve_response.rb +0 -322
  103. data/lib/stigg/models/v1/subscription_delegate_response.rb +0 -314
  104. data/lib/stigg/models/v1/subscription_migrate_response.rb +0 -314
  105. data/lib/stigg/models/v1/subscription_transfer_response.rb +0 -314
  106. data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +0 -34
  107. data/lib/stigg/models/v1_create_event_params.rb +0 -89
  108. data/lib/stigg/models/v1_create_event_response.rb +0 -23
  109. data/lib/stigg/models/v1_create_usage_params.rb +0 -112
  110. data/lib/stigg/models/v1_create_usage_response.rb +0 -118
  111. data/lib/stigg/resources/v1/customers/usage.rb +0 -18
  112. data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +0 -987
  113. data/rbi/stigg/models/v1/subscription_delegate_response.rbi +0 -618
  114. data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +0 -618
  115. data/rbi/stigg/models/v1/subscription_transfer_response.rbi +0 -618
  116. data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +0 -80
  117. data/rbi/stigg/models/v1_create_event_params.rbi +0 -161
  118. data/rbi/stigg/models/v1_create_event_response.rbi +0 -30
  119. data/rbi/stigg/models/v1_create_usage_params.rbi +0 -217
  120. data/rbi/stigg/models/v1_create_usage_response.rbi +0 -157
  121. data/rbi/stigg/resources/v1/customers/usage.rbi +0 -16
  122. data/sig/stigg/models/v1/coupon_retrieve_response.rbs +0 -394
  123. data/sig/stigg/models/v1/subscription_delegate_response.rbs +0 -255
  124. data/sig/stigg/models/v1/subscription_migrate_response.rbs +0 -255
  125. data/sig/stigg/models/v1/subscription_transfer_response.rbs +0 -255
  126. data/sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbs +0 -34
  127. data/sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbs +0 -34
  128. data/sig/stigg/models/v1_create_event_params.rbs +0 -80
  129. data/sig/stigg/models/v1_create_event_response.rbs +0 -13
  130. data/sig/stigg/models/v1_create_usage_params.rbs +0 -100
  131. data/sig/stigg/models/v1_create_usage_response.rbs +0 -85
  132. data/sig/stigg/resources/v1/customers/usage.rbs +0 -11
@@ -0,0 +1,690 @@
1
+ # typed: strong
2
+
3
+ module Stigg
4
+ module Models
5
+ module V1
6
+ module Customers
7
+ class PromotionalEntitlementGrantResponse < Stigg::Internal::Type::BaseModel
8
+ OrHash =
9
+ T.type_alias do
10
+ T.any(
11
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse,
12
+ Stigg::Internal::AnyHash
13
+ )
14
+ end
15
+
16
+ sig do
17
+ returns(
18
+ T::Array[
19
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data
20
+ ]
21
+ )
22
+ end
23
+ attr_accessor :data
24
+
25
+ # Response object
26
+ sig do
27
+ params(
28
+ data:
29
+ T::Array[
30
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::OrHash
31
+ ]
32
+ ).returns(T.attached_class)
33
+ end
34
+ def self.new(data:)
35
+ end
36
+
37
+ sig do
38
+ override.returns(
39
+ {
40
+ data:
41
+ T::Array[
42
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data
43
+ ]
44
+ }
45
+ )
46
+ end
47
+ def to_hash
48
+ end
49
+
50
+ class Data < Stigg::Internal::Type::BaseModel
51
+ OrHash =
52
+ T.type_alias do
53
+ T.any(
54
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data,
55
+ Stigg::Internal::AnyHash
56
+ )
57
+ end
58
+
59
+ # Unique identifier for the entity
60
+ sig { returns(String) }
61
+ attr_accessor :id
62
+
63
+ # Timestamp of when the record was created
64
+ sig { returns(Time) }
65
+ attr_accessor :created_at
66
+
67
+ # The description of the entitlement
68
+ sig { returns(T.nilable(String)) }
69
+ attr_accessor :description
70
+
71
+ # The end date of the promotional entitlement
72
+ sig { returns(T.nilable(Time)) }
73
+ attr_accessor :end_date
74
+
75
+ # The enum values of the entitlement
76
+ sig { returns(T.nilable(T::Array[String])) }
77
+ attr_accessor :enum_values
78
+
79
+ # The unique identifier for the environment
80
+ sig { returns(String) }
81
+ attr_accessor :environment_id
82
+
83
+ # Feature group IDs associated with this entitlement
84
+ sig { returns(T.nilable(T::Array[String])) }
85
+ attr_accessor :feature_group_ids
86
+
87
+ # The unique identifier of the entitlement feature
88
+ sig { returns(String) }
89
+ attr_accessor :feature_id
90
+
91
+ # Whether the entitlement has a soft limit
92
+ sig { returns(T.nilable(T::Boolean)) }
93
+ attr_accessor :has_soft_limit
94
+
95
+ # Whether the entitlement has an unlimited usage
96
+ sig { returns(T.nilable(T::Boolean)) }
97
+ attr_accessor :has_unlimited_usage
98
+
99
+ # Whether the entitlement is visible
100
+ sig { returns(T::Boolean) }
101
+ attr_accessor :is_visible
102
+
103
+ # The grant period of the promotional entitlement
104
+ sig do
105
+ returns(
106
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period::TaggedSymbol
107
+ )
108
+ end
109
+ attr_accessor :period
110
+
111
+ # The reset period of the entitlement
112
+ sig do
113
+ returns(
114
+ T.nilable(
115
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod::TaggedSymbol
116
+ )
117
+ )
118
+ end
119
+ attr_accessor :reset_period
120
+
121
+ # The reset period configuration of the entitlement
122
+ sig do
123
+ returns(
124
+ T.nilable(
125
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::Variants
126
+ )
127
+ )
128
+ end
129
+ attr_accessor :reset_period_configuration
130
+
131
+ # The start date of the entitlement
132
+ sig { returns(Time) }
133
+ attr_accessor :start_date
134
+
135
+ # The status of the entitlement
136
+ sig do
137
+ returns(
138
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status::TaggedSymbol
139
+ )
140
+ end
141
+ attr_accessor :status
142
+
143
+ # Timestamp of when the record was last updated
144
+ sig { returns(Time) }
145
+ attr_accessor :updated_at
146
+
147
+ # The usage limit of the entitlement
148
+ sig { returns(T.nilable(Float)) }
149
+ attr_accessor :usage_limit
150
+
151
+ # Granted feature entitlement
152
+ sig do
153
+ params(
154
+ id: String,
155
+ created_at: Time,
156
+ description: T.nilable(String),
157
+ end_date: T.nilable(Time),
158
+ enum_values: T.nilable(T::Array[String]),
159
+ environment_id: String,
160
+ feature_group_ids: T.nilable(T::Array[String]),
161
+ feature_id: String,
162
+ has_soft_limit: T.nilable(T::Boolean),
163
+ has_unlimited_usage: T.nilable(T::Boolean),
164
+ is_visible: T::Boolean,
165
+ period:
166
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period::OrSymbol,
167
+ reset_period:
168
+ T.nilable(
169
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod::OrSymbol
170
+ ),
171
+ reset_period_configuration:
172
+ T.nilable(
173
+ T.any(
174
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::OrHash,
175
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::OrHash,
176
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::OrHash
177
+ )
178
+ ),
179
+ start_date: Time,
180
+ status:
181
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status::OrSymbol,
182
+ updated_at: Time,
183
+ usage_limit: T.nilable(Float)
184
+ ).returns(T.attached_class)
185
+ end
186
+ def self.new(
187
+ # Unique identifier for the entity
188
+ id:,
189
+ # Timestamp of when the record was created
190
+ created_at:,
191
+ # The description of the entitlement
192
+ description:,
193
+ # The end date of the promotional entitlement
194
+ end_date:,
195
+ # The enum values of the entitlement
196
+ enum_values:,
197
+ # The unique identifier for the environment
198
+ environment_id:,
199
+ # Feature group IDs associated with this entitlement
200
+ feature_group_ids:,
201
+ # The unique identifier of the entitlement feature
202
+ feature_id:,
203
+ # Whether the entitlement has a soft limit
204
+ has_soft_limit:,
205
+ # Whether the entitlement has an unlimited usage
206
+ has_unlimited_usage:,
207
+ # Whether the entitlement is visible
208
+ is_visible:,
209
+ # The grant period of the promotional entitlement
210
+ period:,
211
+ # The reset period of the entitlement
212
+ reset_period:,
213
+ # The reset period configuration of the entitlement
214
+ reset_period_configuration:,
215
+ # The start date of the entitlement
216
+ start_date:,
217
+ # The status of the entitlement
218
+ status:,
219
+ # Timestamp of when the record was last updated
220
+ updated_at:,
221
+ # The usage limit of the entitlement
222
+ usage_limit:
223
+ )
224
+ end
225
+
226
+ sig do
227
+ override.returns(
228
+ {
229
+ id: String,
230
+ created_at: Time,
231
+ description: T.nilable(String),
232
+ end_date: T.nilable(Time),
233
+ enum_values: T.nilable(T::Array[String]),
234
+ environment_id: String,
235
+ feature_group_ids: T.nilable(T::Array[String]),
236
+ feature_id: String,
237
+ has_soft_limit: T.nilable(T::Boolean),
238
+ has_unlimited_usage: T.nilable(T::Boolean),
239
+ is_visible: T::Boolean,
240
+ period:
241
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period::TaggedSymbol,
242
+ reset_period:
243
+ T.nilable(
244
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod::TaggedSymbol
245
+ ),
246
+ reset_period_configuration:
247
+ T.nilable(
248
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::Variants
249
+ ),
250
+ start_date: Time,
251
+ status:
252
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status::TaggedSymbol,
253
+ updated_at: Time,
254
+ usage_limit: T.nilable(Float)
255
+ }
256
+ )
257
+ end
258
+ def to_hash
259
+ end
260
+
261
+ # The grant period of the promotional entitlement
262
+ module Period
263
+ extend Stigg::Internal::Type::Enum
264
+
265
+ TaggedSymbol =
266
+ T.type_alias do
267
+ T.all(
268
+ Symbol,
269
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period
270
+ )
271
+ end
272
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
273
+
274
+ PERIOD_1_WEEK =
275
+ T.let(
276
+ :"1 week",
277
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period::TaggedSymbol
278
+ )
279
+ PERIOD_1_MONTH =
280
+ T.let(
281
+ :"1 month",
282
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period::TaggedSymbol
283
+ )
284
+ PERIOD_6_MONTH =
285
+ T.let(
286
+ :"6 month",
287
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period::TaggedSymbol
288
+ )
289
+ PERIOD_1_YEAR =
290
+ T.let(
291
+ :"1 year",
292
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period::TaggedSymbol
293
+ )
294
+ LIFETIME =
295
+ T.let(
296
+ :lifetime,
297
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period::TaggedSymbol
298
+ )
299
+ CUSTOM =
300
+ T.let(
301
+ :custom,
302
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period::TaggedSymbol
303
+ )
304
+
305
+ sig do
306
+ override.returns(
307
+ T::Array[
308
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period::TaggedSymbol
309
+ ]
310
+ )
311
+ end
312
+ def self.values
313
+ end
314
+ end
315
+
316
+ # The reset period of the entitlement
317
+ module ResetPeriod
318
+ extend Stigg::Internal::Type::Enum
319
+
320
+ TaggedSymbol =
321
+ T.type_alias do
322
+ T.all(
323
+ Symbol,
324
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod
325
+ )
326
+ end
327
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
328
+
329
+ YEAR =
330
+ T.let(
331
+ :YEAR,
332
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod::TaggedSymbol
333
+ )
334
+ MONTH =
335
+ T.let(
336
+ :MONTH,
337
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod::TaggedSymbol
338
+ )
339
+ WEEK =
340
+ T.let(
341
+ :WEEK,
342
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod::TaggedSymbol
343
+ )
344
+ DAY =
345
+ T.let(
346
+ :DAY,
347
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod::TaggedSymbol
348
+ )
349
+ HOUR =
350
+ T.let(
351
+ :HOUR,
352
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod::TaggedSymbol
353
+ )
354
+
355
+ sig do
356
+ override.returns(
357
+ T::Array[
358
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod::TaggedSymbol
359
+ ]
360
+ )
361
+ end
362
+ def self.values
363
+ end
364
+ end
365
+
366
+ # The reset period configuration of the entitlement
367
+ module ResetPeriodConfiguration
368
+ extend Stigg::Internal::Type::Union
369
+
370
+ Variants =
371
+ T.type_alias do
372
+ T.any(
373
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig,
374
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig,
375
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig
376
+ )
377
+ end
378
+
379
+ class YearlyResetPeriodConfig < Stigg::Internal::Type::BaseModel
380
+ OrHash =
381
+ T.type_alias do
382
+ T.any(
383
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig,
384
+ Stigg::Internal::AnyHash
385
+ )
386
+ end
387
+
388
+ # Reset anchor (SubscriptionStart)
389
+ sig do
390
+ returns(
391
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::AccordingTo::TaggedSymbol
392
+ )
393
+ end
394
+ attr_accessor :according_to
395
+
396
+ # Yearly reset configuration
397
+ sig do
398
+ params(
399
+ according_to:
400
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::AccordingTo::OrSymbol
401
+ ).returns(T.attached_class)
402
+ end
403
+ def self.new(
404
+ # Reset anchor (SubscriptionStart)
405
+ according_to:
406
+ )
407
+ end
408
+
409
+ sig do
410
+ override.returns(
411
+ {
412
+ according_to:
413
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::AccordingTo::TaggedSymbol
414
+ }
415
+ )
416
+ end
417
+ def to_hash
418
+ end
419
+
420
+ # Reset anchor (SubscriptionStart)
421
+ module AccordingTo
422
+ extend Stigg::Internal::Type::Enum
423
+
424
+ TaggedSymbol =
425
+ T.type_alias do
426
+ T.all(
427
+ Symbol,
428
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::AccordingTo
429
+ )
430
+ end
431
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
432
+
433
+ SUBSCRIPTION_START =
434
+ T.let(
435
+ :SubscriptionStart,
436
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::AccordingTo::TaggedSymbol
437
+ )
438
+
439
+ sig do
440
+ override.returns(
441
+ T::Array[
442
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::AccordingTo::TaggedSymbol
443
+ ]
444
+ )
445
+ end
446
+ def self.values
447
+ end
448
+ end
449
+ end
450
+
451
+ class MonthlyResetPeriodConfig < Stigg::Internal::Type::BaseModel
452
+ OrHash =
453
+ T.type_alias do
454
+ T.any(
455
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig,
456
+ Stigg::Internal::AnyHash
457
+ )
458
+ end
459
+
460
+ # Reset anchor (SubscriptionStart or StartOfTheMonth)
461
+ sig do
462
+ returns(
463
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::AccordingTo::TaggedSymbol
464
+ )
465
+ end
466
+ attr_accessor :according_to
467
+
468
+ # Monthly reset configuration
469
+ sig do
470
+ params(
471
+ according_to:
472
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::AccordingTo::OrSymbol
473
+ ).returns(T.attached_class)
474
+ end
475
+ def self.new(
476
+ # Reset anchor (SubscriptionStart or StartOfTheMonth)
477
+ according_to:
478
+ )
479
+ end
480
+
481
+ sig do
482
+ override.returns(
483
+ {
484
+ according_to:
485
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::AccordingTo::TaggedSymbol
486
+ }
487
+ )
488
+ end
489
+ def to_hash
490
+ end
491
+
492
+ # Reset anchor (SubscriptionStart or StartOfTheMonth)
493
+ module AccordingTo
494
+ extend Stigg::Internal::Type::Enum
495
+
496
+ TaggedSymbol =
497
+ T.type_alias do
498
+ T.all(
499
+ Symbol,
500
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::AccordingTo
501
+ )
502
+ end
503
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
504
+
505
+ SUBSCRIPTION_START =
506
+ T.let(
507
+ :SubscriptionStart,
508
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::AccordingTo::TaggedSymbol
509
+ )
510
+ START_OF_THE_MONTH =
511
+ T.let(
512
+ :StartOfTheMonth,
513
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::AccordingTo::TaggedSymbol
514
+ )
515
+
516
+ sig do
517
+ override.returns(
518
+ T::Array[
519
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::AccordingTo::TaggedSymbol
520
+ ]
521
+ )
522
+ end
523
+ def self.values
524
+ end
525
+ end
526
+ end
527
+
528
+ class WeeklyResetPeriodConfig < Stigg::Internal::Type::BaseModel
529
+ OrHash =
530
+ T.type_alias do
531
+ T.any(
532
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig,
533
+ Stigg::Internal::AnyHash
534
+ )
535
+ end
536
+
537
+ # Reset anchor (SubscriptionStart or specific day)
538
+ sig do
539
+ returns(
540
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo::TaggedSymbol
541
+ )
542
+ end
543
+ attr_accessor :according_to
544
+
545
+ # Weekly reset configuration
546
+ sig do
547
+ params(
548
+ according_to:
549
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo::OrSymbol
550
+ ).returns(T.attached_class)
551
+ end
552
+ def self.new(
553
+ # Reset anchor (SubscriptionStart or specific day)
554
+ according_to:
555
+ )
556
+ end
557
+
558
+ sig do
559
+ override.returns(
560
+ {
561
+ according_to:
562
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo::TaggedSymbol
563
+ }
564
+ )
565
+ end
566
+ def to_hash
567
+ end
568
+
569
+ # Reset anchor (SubscriptionStart or specific day)
570
+ module AccordingTo
571
+ extend Stigg::Internal::Type::Enum
572
+
573
+ TaggedSymbol =
574
+ T.type_alias do
575
+ T.all(
576
+ Symbol,
577
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo
578
+ )
579
+ end
580
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
581
+
582
+ SUBSCRIPTION_START =
583
+ T.let(
584
+ :SubscriptionStart,
585
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo::TaggedSymbol
586
+ )
587
+ EVERY_SUNDAY =
588
+ T.let(
589
+ :EverySunday,
590
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo::TaggedSymbol
591
+ )
592
+ EVERY_MONDAY =
593
+ T.let(
594
+ :EveryMonday,
595
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo::TaggedSymbol
596
+ )
597
+ EVERY_TUESDAY =
598
+ T.let(
599
+ :EveryTuesday,
600
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo::TaggedSymbol
601
+ )
602
+ EVERY_WEDNESDAY =
603
+ T.let(
604
+ :EveryWednesday,
605
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo::TaggedSymbol
606
+ )
607
+ EVERY_THURSDAY =
608
+ T.let(
609
+ :EveryThursday,
610
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo::TaggedSymbol
611
+ )
612
+ EVERY_FRIDAY =
613
+ T.let(
614
+ :EveryFriday,
615
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo::TaggedSymbol
616
+ )
617
+ EVERY_SATURDAY =
618
+ T.let(
619
+ :EverySaturday,
620
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo::TaggedSymbol
621
+ )
622
+
623
+ sig do
624
+ override.returns(
625
+ T::Array[
626
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo::TaggedSymbol
627
+ ]
628
+ )
629
+ end
630
+ def self.values
631
+ end
632
+ end
633
+ end
634
+
635
+ sig do
636
+ override.returns(
637
+ T::Array[
638
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::Variants
639
+ ]
640
+ )
641
+ end
642
+ def self.variants
643
+ end
644
+ end
645
+
646
+ # The status of the entitlement
647
+ module Status
648
+ extend Stigg::Internal::Type::Enum
649
+
650
+ TaggedSymbol =
651
+ T.type_alias do
652
+ T.all(
653
+ Symbol,
654
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status
655
+ )
656
+ end
657
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
658
+
659
+ ACTIVE =
660
+ T.let(
661
+ :Active,
662
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status::TaggedSymbol
663
+ )
664
+ EXPIRED =
665
+ T.let(
666
+ :Expired,
667
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status::TaggedSymbol
668
+ )
669
+ PAUSED =
670
+ T.let(
671
+ :Paused,
672
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status::TaggedSymbol
673
+ )
674
+
675
+ sig do
676
+ override.returns(
677
+ T::Array[
678
+ Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status::TaggedSymbol
679
+ ]
680
+ )
681
+ end
682
+ def self.values
683
+ end
684
+ end
685
+ end
686
+ end
687
+ end
688
+ end
689
+ end
690
+ end