stigg 0.1.0.pre.alpha.1 → 0.1.0.pre.alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +29 -1
- data/lib/stigg/internal/my_cursor_id_page.rb +32 -4
- data/lib/stigg/models/v1/coupon_create_params.rb +2 -0
- data/lib/stigg/models/v1/coupon_create_response.rb +11 -6
- data/lib/stigg/models/v1/coupon_list_params.rb +14 -14
- data/lib/stigg/models/v1/coupon_list_response.rb +262 -278
- data/lib/stigg/models/v1/coupon_retrieve_response.rb +11 -6
- data/lib/stigg/models/v1/customer_create_params.rb +2 -0
- data/lib/stigg/models/v1/customer_list_params.rb +14 -14
- data/lib/stigg/models/v1/customer_list_response.rb +160 -174
- data/lib/stigg/models/v1/customer_response.rb +8 -1
- data/lib/stigg/models/v1/customer_update_params.rb +2 -0
- data/lib/stigg/models/v1/customers/payment_method_attach_params.rb +3 -1
- data/lib/stigg/models/v1/subscription_create_params.rb +1485 -6
- data/lib/stigg/models/v1/subscription_create_response.rb +703 -4
- data/lib/stigg/models/v1/subscription_delegate_params.rb +7 -2
- data/lib/stigg/models/v1/subscription_delegate_response.rb +42 -2
- data/lib/stigg/models/v1/subscription_list_params.rb +20 -24
- data/lib/stigg/models/v1/subscription_list_response.rb +255 -236
- data/lib/stigg/models/v1/subscription_migrate_params.rb +3 -3
- data/lib/stigg/models/v1/subscription_migrate_response.rb +42 -2
- data/lib/stigg/models/v1/subscription_preview_params.rb +139 -46
- data/lib/stigg/models/v1/subscription_preview_response.rb +164 -49
- data/lib/stigg/models/v1/subscription_retrieve_response.rb +42 -2
- data/lib/stigg/models/v1/subscription_transfer_params.rb +2 -6
- data/lib/stigg/models/v1/subscription_transfer_response.rb +42 -2
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rb +2 -0
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +2 -0
- data/lib/stigg/models/v1_create_event_params.rb +2 -0
- data/lib/stigg/models/v1_create_event_response.rb +8 -1
- data/lib/stigg/models/v1_create_usage_params.rb +19 -3
- data/lib/stigg/models/v1_create_usage_response.rb +7 -1
- data/lib/stigg/resources/v1/coupons.rb +12 -10
- data/lib/stigg/resources/v1/customers/payment_method.rb +6 -5
- data/lib/stigg/resources/v1/customers/usage.rb +0 -41
- data/lib/stigg/resources/v1/customers.rb +20 -20
- data/lib/stigg/resources/v1/subscriptions/future_update.rb +6 -4
- data/lib/stigg/resources/v1/subscriptions.rb +74 -49
- data/lib/stigg/resources/v1.rb +2 -2
- data/lib/stigg/version.rb +1 -1
- data/lib/stigg.rb +0 -7
- data/rbi/stigg/internal/my_cursor_id_page.rbi +27 -0
- data/rbi/stigg/models/v1/coupon_create_params.rbi +1 -0
- data/rbi/stigg/models/v1/coupon_create_response.rbi +11 -10
- data/rbi/stigg/models/v1/coupon_list_params.rbi +21 -21
- data/rbi/stigg/models/v1/coupon_list_response.rbi +812 -869
- data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +11 -10
- data/rbi/stigg/models/v1/customer_create_params.rbi +1 -0
- data/rbi/stigg/models/v1/customer_list_params.rbi +21 -21
- data/rbi/stigg/models/v1/customer_list_response.rbi +307 -347
- data/rbi/stigg/models/v1/customer_response.rbi +8 -1
- data/rbi/stigg/models/v1/customer_update_params.rbi +1 -0
- data/rbi/stigg/models/v1/customers/payment_method_attach_params.rbi +3 -0
- data/rbi/stigg/models/v1/subscription_create_params.rbi +4975 -84
- data/rbi/stigg/models/v1/subscription_create_response.rbi +2508 -1
- data/rbi/stigg/models/v1/subscription_delegate_params.rbi +6 -2
- data/rbi/stigg/models/v1/subscription_delegate_response.rbi +84 -1
- data/rbi/stigg/models/v1/subscription_list_params.rbi +26 -28
- data/rbi/stigg/models/v1/subscription_list_response.rbi +460 -435
- data/rbi/stigg/models/v1/subscription_migrate_params.rbi +3 -3
- data/rbi/stigg/models/v1/subscription_migrate_response.rbi +84 -1
- data/rbi/stigg/models/v1/subscription_preview_params.rbi +112 -14
- data/rbi/stigg/models/v1/subscription_preview_response.rbi +139 -6
- data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +84 -1
- data/rbi/stigg/models/v1/subscription_transfer_params.rbi +2 -4
- data/rbi/stigg/models/v1/subscription_transfer_response.rbi +84 -1
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +1 -0
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbi +1 -0
- data/rbi/stigg/models/v1_create_event_params.rbi +1 -0
- data/rbi/stigg/models/v1_create_event_response.rbi +8 -1
- data/rbi/stigg/models/v1_create_usage_params.rbi +44 -4
- data/rbi/stigg/models/v1_create_usage_response.rbi +8 -1
- data/rbi/stigg/resources/v1/coupons.rbi +20 -12
- data/rbi/stigg/resources/v1/customers/payment_method.rbi +9 -3
- data/rbi/stigg/resources/v1/customers/usage.rbi +0 -29
- data/rbi/stigg/resources/v1/customers.rbi +34 -20
- data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +12 -4
- data/rbi/stigg/resources/v1/subscriptions.rbi +102 -23
- data/rbi/stigg/resources/v1.rbi +2 -2
- data/sig/stigg/internal/my_cursor_id_page.rbs +17 -0
- data/sig/stigg/models/v1/coupon_create_response.rbs +4 -4
- data/sig/stigg/models/v1/coupon_list_params.rbs +11 -11
- data/sig/stigg/models/v1/coupon_list_response.rbs +331 -351
- data/sig/stigg/models/v1/coupon_retrieve_response.rbs +4 -4
- data/sig/stigg/models/v1/customer_list_params.rbs +11 -11
- data/sig/stigg/models/v1/customer_list_response.rbs +133 -153
- data/sig/stigg/models/v1/subscription_create_params.rbs +2029 -5
- data/sig/stigg/models/v1/subscription_create_response.rbs +1022 -0
- data/sig/stigg/models/v1/subscription_delegate_response.rbs +31 -0
- data/sig/stigg/models/v1/subscription_list_params.rbs +14 -14
- data/sig/stigg/models/v1/subscription_list_response.rbs +196 -189
- data/sig/stigg/models/v1/subscription_migrate_response.rbs +31 -0
- data/sig/stigg/models/v1/subscription_preview_params.rbs +2 -6
- data/sig/stigg/models/v1/subscription_retrieve_response.rbs +31 -0
- data/sig/stigg/models/v1/subscription_transfer_response.rbs +31 -0
- data/sig/stigg/models/v1_create_usage_params.rbs +15 -5
- data/sig/stigg/resources/v1/coupons.rbs +3 -3
- data/sig/stigg/resources/v1/customers/usage.rbs +0 -10
- data/sig/stigg/resources/v1/customers.rbs +3 -5
- data/sig/stigg/resources/v1/subscriptions.rbs +19 -4
- metadata +2 -23
- data/lib/stigg/models/v1/customers/promotional_create_params.rb +0 -294
- data/lib/stigg/models/v1/customers/promotional_create_response.rb +0 -268
- data/lib/stigg/models/v1/customers/promotional_revoke_params.rb +0 -24
- data/lib/stigg/models/v1/customers/promotional_revoke_response.rb +0 -268
- data/lib/stigg/models/v1/customers/usage_retrieve_params.rb +0 -56
- data/lib/stigg/models/v1/customers/usage_retrieve_response.rb +0 -145
- data/lib/stigg/resources/v1/customers/promotional.rb +0 -69
- data/rbi/stigg/models/v1/customers/promotional_create_params.rbi +0 -639
- data/rbi/stigg/models/v1/customers/promotional_create_response.rbi +0 -495
- data/rbi/stigg/models/v1/customers/promotional_revoke_params.rbi +0 -42
- data/rbi/stigg/models/v1/customers/promotional_revoke_response.rbi +0 -497
- data/rbi/stigg/models/v1/customers/usage_retrieve_params.rbi +0 -84
- data/rbi/stigg/models/v1/customers/usage_retrieve_response.rbi +0 -353
- data/rbi/stigg/resources/v1/customers/promotional.rbi +0 -53
- data/sig/stigg/models/v1/customers/promotional_create_params.rbs +0 -234
- data/sig/stigg/models/v1/customers/promotional_create_response.rbs +0 -209
- data/sig/stigg/models/v1/customers/promotional_revoke_params.rbs +0 -27
- data/sig/stigg/models/v1/customers/promotional_revoke_response.rbs +0 -209
- data/sig/stigg/models/v1/customers/usage_retrieve_params.rbs +0 -54
- data/sig/stigg/models/v1/customers/usage_retrieve_response.rbs +0 -134
- data/sig/stigg/resources/v1/customers/promotional.rbs +0 -23
|
@@ -1,639 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Stigg
|
|
4
|
-
module Models
|
|
5
|
-
module V1
|
|
6
|
-
module Customers
|
|
7
|
-
class PromotionalCreateParams < Stigg::Internal::Type::BaseModel
|
|
8
|
-
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include Stigg::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
OrHash =
|
|
12
|
-
T.type_alias do
|
|
13
|
-
T.any(
|
|
14
|
-
Stigg::V1::Customers::PromotionalCreateParams,
|
|
15
|
-
Stigg::Internal::AnyHash
|
|
16
|
-
)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
# Promotional entitlements to grant
|
|
20
|
-
sig do
|
|
21
|
-
returns(
|
|
22
|
-
T::Array[
|
|
23
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement
|
|
24
|
-
]
|
|
25
|
-
)
|
|
26
|
-
end
|
|
27
|
-
attr_accessor :promotional_entitlements
|
|
28
|
-
|
|
29
|
-
sig do
|
|
30
|
-
params(
|
|
31
|
-
promotional_entitlements:
|
|
32
|
-
T::Array[
|
|
33
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::OrHash
|
|
34
|
-
],
|
|
35
|
-
request_options: Stigg::RequestOptions::OrHash
|
|
36
|
-
).returns(T.attached_class)
|
|
37
|
-
end
|
|
38
|
-
def self.new(
|
|
39
|
-
# Promotional entitlements to grant
|
|
40
|
-
promotional_entitlements:,
|
|
41
|
-
request_options: {}
|
|
42
|
-
)
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
sig do
|
|
46
|
-
override.returns(
|
|
47
|
-
{
|
|
48
|
-
promotional_entitlements:
|
|
49
|
-
T::Array[
|
|
50
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement
|
|
51
|
-
],
|
|
52
|
-
request_options: Stigg::RequestOptions
|
|
53
|
-
}
|
|
54
|
-
)
|
|
55
|
-
end
|
|
56
|
-
def to_hash
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
class PromotionalEntitlement < Stigg::Internal::Type::BaseModel
|
|
60
|
-
OrHash =
|
|
61
|
-
T.type_alias do
|
|
62
|
-
T.any(
|
|
63
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement,
|
|
64
|
-
Stigg::Internal::AnyHash
|
|
65
|
-
)
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
# The custom end date of the promotional entitlement
|
|
69
|
-
sig { returns(T.nilable(Time)) }
|
|
70
|
-
attr_accessor :custom_end_date
|
|
71
|
-
|
|
72
|
-
# The enum values of the entitlement
|
|
73
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
74
|
-
attr_accessor :enum_values
|
|
75
|
-
|
|
76
|
-
# The unique identifier of the entitlement feature
|
|
77
|
-
sig { returns(String) }
|
|
78
|
-
attr_accessor :feature_id
|
|
79
|
-
|
|
80
|
-
# Whether the entitlement has a soft limit
|
|
81
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
82
|
-
attr_accessor :has_soft_limit
|
|
83
|
-
|
|
84
|
-
# Whether the entitlement has an unlimited usage
|
|
85
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
86
|
-
attr_accessor :has_unlimited_usage
|
|
87
|
-
|
|
88
|
-
# Whether the entitlement is visible
|
|
89
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
90
|
-
attr_accessor :is_visible
|
|
91
|
-
|
|
92
|
-
# The monthly reset period configuration of the entitlement, defined when reset
|
|
93
|
-
# period is monthly
|
|
94
|
-
sig do
|
|
95
|
-
returns(
|
|
96
|
-
T.nilable(
|
|
97
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration
|
|
98
|
-
)
|
|
99
|
-
)
|
|
100
|
-
end
|
|
101
|
-
attr_reader :monthly_reset_period_configuration
|
|
102
|
-
|
|
103
|
-
sig do
|
|
104
|
-
params(
|
|
105
|
-
monthly_reset_period_configuration:
|
|
106
|
-
T.nilable(
|
|
107
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::OrHash
|
|
108
|
-
)
|
|
109
|
-
).void
|
|
110
|
-
end
|
|
111
|
-
attr_writer :monthly_reset_period_configuration
|
|
112
|
-
|
|
113
|
-
# The grant period of the promotional entitlement
|
|
114
|
-
sig do
|
|
115
|
-
returns(
|
|
116
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period::OrSymbol
|
|
117
|
-
)
|
|
118
|
-
end
|
|
119
|
-
attr_accessor :period
|
|
120
|
-
|
|
121
|
-
# The reset period of the entitlement
|
|
122
|
-
sig do
|
|
123
|
-
returns(
|
|
124
|
-
T.nilable(
|
|
125
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod::OrSymbol
|
|
126
|
-
)
|
|
127
|
-
)
|
|
128
|
-
end
|
|
129
|
-
attr_accessor :reset_period
|
|
130
|
-
|
|
131
|
-
# The usage limit of the entitlement
|
|
132
|
-
sig { returns(T.nilable(Integer)) }
|
|
133
|
-
attr_accessor :usage_limit
|
|
134
|
-
|
|
135
|
-
# The weekly reset period configuration of the entitlement, defined when reset
|
|
136
|
-
# period is weekly
|
|
137
|
-
sig do
|
|
138
|
-
returns(
|
|
139
|
-
T.nilable(
|
|
140
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration
|
|
141
|
-
)
|
|
142
|
-
)
|
|
143
|
-
end
|
|
144
|
-
attr_reader :weekly_reset_period_configuration
|
|
145
|
-
|
|
146
|
-
sig do
|
|
147
|
-
params(
|
|
148
|
-
weekly_reset_period_configuration:
|
|
149
|
-
T.nilable(
|
|
150
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::OrHash
|
|
151
|
-
)
|
|
152
|
-
).void
|
|
153
|
-
end
|
|
154
|
-
attr_writer :weekly_reset_period_configuration
|
|
155
|
-
|
|
156
|
-
# The yearly reset period configuration of the entitlement, defined when reset
|
|
157
|
-
# period is yearly
|
|
158
|
-
sig do
|
|
159
|
-
returns(
|
|
160
|
-
T.nilable(
|
|
161
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration
|
|
162
|
-
)
|
|
163
|
-
)
|
|
164
|
-
end
|
|
165
|
-
attr_reader :yearly_reset_period_configuration
|
|
166
|
-
|
|
167
|
-
sig do
|
|
168
|
-
params(
|
|
169
|
-
yearly_reset_period_configuration:
|
|
170
|
-
T.nilable(
|
|
171
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::OrHash
|
|
172
|
-
)
|
|
173
|
-
).void
|
|
174
|
-
end
|
|
175
|
-
attr_writer :yearly_reset_period_configuration
|
|
176
|
-
|
|
177
|
-
sig do
|
|
178
|
-
params(
|
|
179
|
-
custom_end_date: T.nilable(Time),
|
|
180
|
-
enum_values: T.nilable(T::Array[String]),
|
|
181
|
-
feature_id: String,
|
|
182
|
-
has_soft_limit: T.nilable(T::Boolean),
|
|
183
|
-
has_unlimited_usage: T.nilable(T::Boolean),
|
|
184
|
-
is_visible: T.nilable(T::Boolean),
|
|
185
|
-
monthly_reset_period_configuration:
|
|
186
|
-
T.nilable(
|
|
187
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::OrHash
|
|
188
|
-
),
|
|
189
|
-
period:
|
|
190
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period::OrSymbol,
|
|
191
|
-
reset_period:
|
|
192
|
-
T.nilable(
|
|
193
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod::OrSymbol
|
|
194
|
-
),
|
|
195
|
-
usage_limit: T.nilable(Integer),
|
|
196
|
-
weekly_reset_period_configuration:
|
|
197
|
-
T.nilable(
|
|
198
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::OrHash
|
|
199
|
-
),
|
|
200
|
-
yearly_reset_period_configuration:
|
|
201
|
-
T.nilable(
|
|
202
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::OrHash
|
|
203
|
-
)
|
|
204
|
-
).returns(T.attached_class)
|
|
205
|
-
end
|
|
206
|
-
def self.new(
|
|
207
|
-
# The custom end date of the promotional entitlement
|
|
208
|
-
custom_end_date:,
|
|
209
|
-
# The enum values of the entitlement
|
|
210
|
-
enum_values:,
|
|
211
|
-
# The unique identifier of the entitlement feature
|
|
212
|
-
feature_id:,
|
|
213
|
-
# Whether the entitlement has a soft limit
|
|
214
|
-
has_soft_limit:,
|
|
215
|
-
# Whether the entitlement has an unlimited usage
|
|
216
|
-
has_unlimited_usage:,
|
|
217
|
-
# Whether the entitlement is visible
|
|
218
|
-
is_visible:,
|
|
219
|
-
# The monthly reset period configuration of the entitlement, defined when reset
|
|
220
|
-
# period is monthly
|
|
221
|
-
monthly_reset_period_configuration:,
|
|
222
|
-
# The grant period of the promotional entitlement
|
|
223
|
-
period:,
|
|
224
|
-
# The reset period of the entitlement
|
|
225
|
-
reset_period:,
|
|
226
|
-
# The usage limit of the entitlement
|
|
227
|
-
usage_limit:,
|
|
228
|
-
# The weekly reset period configuration of the entitlement, defined when reset
|
|
229
|
-
# period is weekly
|
|
230
|
-
weekly_reset_period_configuration:,
|
|
231
|
-
# The yearly reset period configuration of the entitlement, defined when reset
|
|
232
|
-
# period is yearly
|
|
233
|
-
yearly_reset_period_configuration:
|
|
234
|
-
)
|
|
235
|
-
end
|
|
236
|
-
|
|
237
|
-
sig do
|
|
238
|
-
override.returns(
|
|
239
|
-
{
|
|
240
|
-
custom_end_date: T.nilable(Time),
|
|
241
|
-
enum_values: T.nilable(T::Array[String]),
|
|
242
|
-
feature_id: String,
|
|
243
|
-
has_soft_limit: T.nilable(T::Boolean),
|
|
244
|
-
has_unlimited_usage: T.nilable(T::Boolean),
|
|
245
|
-
is_visible: T.nilable(T::Boolean),
|
|
246
|
-
monthly_reset_period_configuration:
|
|
247
|
-
T.nilable(
|
|
248
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration
|
|
249
|
-
),
|
|
250
|
-
period:
|
|
251
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period::OrSymbol,
|
|
252
|
-
reset_period:
|
|
253
|
-
T.nilable(
|
|
254
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod::OrSymbol
|
|
255
|
-
),
|
|
256
|
-
usage_limit: T.nilable(Integer),
|
|
257
|
-
weekly_reset_period_configuration:
|
|
258
|
-
T.nilable(
|
|
259
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration
|
|
260
|
-
),
|
|
261
|
-
yearly_reset_period_configuration:
|
|
262
|
-
T.nilable(
|
|
263
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration
|
|
264
|
-
)
|
|
265
|
-
}
|
|
266
|
-
)
|
|
267
|
-
end
|
|
268
|
-
def to_hash
|
|
269
|
-
end
|
|
270
|
-
|
|
271
|
-
class MonthlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
272
|
-
OrHash =
|
|
273
|
-
T.type_alias do
|
|
274
|
-
T.any(
|
|
275
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration,
|
|
276
|
-
Stigg::Internal::AnyHash
|
|
277
|
-
)
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
# Monthly reset period according to
|
|
281
|
-
sig do
|
|
282
|
-
returns(
|
|
283
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
284
|
-
)
|
|
285
|
-
end
|
|
286
|
-
attr_accessor :according_to
|
|
287
|
-
|
|
288
|
-
# The monthly reset period configuration of the entitlement, defined when reset
|
|
289
|
-
# period is monthly
|
|
290
|
-
sig do
|
|
291
|
-
params(
|
|
292
|
-
according_to:
|
|
293
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
294
|
-
).returns(T.attached_class)
|
|
295
|
-
end
|
|
296
|
-
def self.new(
|
|
297
|
-
# Monthly reset period according to
|
|
298
|
-
according_to:
|
|
299
|
-
)
|
|
300
|
-
end
|
|
301
|
-
|
|
302
|
-
sig do
|
|
303
|
-
override.returns(
|
|
304
|
-
{
|
|
305
|
-
according_to:
|
|
306
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
307
|
-
}
|
|
308
|
-
)
|
|
309
|
-
end
|
|
310
|
-
def to_hash
|
|
311
|
-
end
|
|
312
|
-
|
|
313
|
-
# Monthly reset period according to
|
|
314
|
-
module AccordingTo
|
|
315
|
-
extend Stigg::Internal::Type::Enum
|
|
316
|
-
|
|
317
|
-
TaggedSymbol =
|
|
318
|
-
T.type_alias do
|
|
319
|
-
T.all(
|
|
320
|
-
Symbol,
|
|
321
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo
|
|
322
|
-
)
|
|
323
|
-
end
|
|
324
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
325
|
-
|
|
326
|
-
SUBSCRIPTION_START =
|
|
327
|
-
T.let(
|
|
328
|
-
:SubscriptionStart,
|
|
329
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
330
|
-
)
|
|
331
|
-
START_OF_THE_MONTH =
|
|
332
|
-
T.let(
|
|
333
|
-
:StartOfTheMonth,
|
|
334
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
335
|
-
)
|
|
336
|
-
|
|
337
|
-
sig do
|
|
338
|
-
override.returns(
|
|
339
|
-
T::Array[
|
|
340
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
341
|
-
]
|
|
342
|
-
)
|
|
343
|
-
end
|
|
344
|
-
def self.values
|
|
345
|
-
end
|
|
346
|
-
end
|
|
347
|
-
end
|
|
348
|
-
|
|
349
|
-
# The grant period of the promotional entitlement
|
|
350
|
-
module Period
|
|
351
|
-
extend Stigg::Internal::Type::Enum
|
|
352
|
-
|
|
353
|
-
TaggedSymbol =
|
|
354
|
-
T.type_alias do
|
|
355
|
-
T.all(
|
|
356
|
-
Symbol,
|
|
357
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period
|
|
358
|
-
)
|
|
359
|
-
end
|
|
360
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
361
|
-
|
|
362
|
-
PERIOD_1_WEEK =
|
|
363
|
-
T.let(
|
|
364
|
-
:"1 week",
|
|
365
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period::TaggedSymbol
|
|
366
|
-
)
|
|
367
|
-
PERIOD_1_MONTH =
|
|
368
|
-
T.let(
|
|
369
|
-
:"1 month",
|
|
370
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period::TaggedSymbol
|
|
371
|
-
)
|
|
372
|
-
PERIOD_6_MONTH =
|
|
373
|
-
T.let(
|
|
374
|
-
:"6 month",
|
|
375
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period::TaggedSymbol
|
|
376
|
-
)
|
|
377
|
-
PERIOD_1_YEAR =
|
|
378
|
-
T.let(
|
|
379
|
-
:"1 year",
|
|
380
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period::TaggedSymbol
|
|
381
|
-
)
|
|
382
|
-
LIFETIME =
|
|
383
|
-
T.let(
|
|
384
|
-
:lifetime,
|
|
385
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period::TaggedSymbol
|
|
386
|
-
)
|
|
387
|
-
CUSTOM =
|
|
388
|
-
T.let(
|
|
389
|
-
:custom,
|
|
390
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period::TaggedSymbol
|
|
391
|
-
)
|
|
392
|
-
|
|
393
|
-
sig do
|
|
394
|
-
override.returns(
|
|
395
|
-
T::Array[
|
|
396
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period::TaggedSymbol
|
|
397
|
-
]
|
|
398
|
-
)
|
|
399
|
-
end
|
|
400
|
-
def self.values
|
|
401
|
-
end
|
|
402
|
-
end
|
|
403
|
-
|
|
404
|
-
# The reset period of the entitlement
|
|
405
|
-
module ResetPeriod
|
|
406
|
-
extend Stigg::Internal::Type::Enum
|
|
407
|
-
|
|
408
|
-
TaggedSymbol =
|
|
409
|
-
T.type_alias do
|
|
410
|
-
T.all(
|
|
411
|
-
Symbol,
|
|
412
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod
|
|
413
|
-
)
|
|
414
|
-
end
|
|
415
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
416
|
-
|
|
417
|
-
YEAR =
|
|
418
|
-
T.let(
|
|
419
|
-
:YEAR,
|
|
420
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod::TaggedSymbol
|
|
421
|
-
)
|
|
422
|
-
MONTH =
|
|
423
|
-
T.let(
|
|
424
|
-
:MONTH,
|
|
425
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod::TaggedSymbol
|
|
426
|
-
)
|
|
427
|
-
WEEK =
|
|
428
|
-
T.let(
|
|
429
|
-
:WEEK,
|
|
430
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod::TaggedSymbol
|
|
431
|
-
)
|
|
432
|
-
DAY =
|
|
433
|
-
T.let(
|
|
434
|
-
:DAY,
|
|
435
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod::TaggedSymbol
|
|
436
|
-
)
|
|
437
|
-
HOUR =
|
|
438
|
-
T.let(
|
|
439
|
-
:HOUR,
|
|
440
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod::TaggedSymbol
|
|
441
|
-
)
|
|
442
|
-
|
|
443
|
-
sig do
|
|
444
|
-
override.returns(
|
|
445
|
-
T::Array[
|
|
446
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod::TaggedSymbol
|
|
447
|
-
]
|
|
448
|
-
)
|
|
449
|
-
end
|
|
450
|
-
def self.values
|
|
451
|
-
end
|
|
452
|
-
end
|
|
453
|
-
|
|
454
|
-
class WeeklyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
455
|
-
OrHash =
|
|
456
|
-
T.type_alias do
|
|
457
|
-
T.any(
|
|
458
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration,
|
|
459
|
-
Stigg::Internal::AnyHash
|
|
460
|
-
)
|
|
461
|
-
end
|
|
462
|
-
|
|
463
|
-
# Weekly reset period according to
|
|
464
|
-
sig do
|
|
465
|
-
returns(
|
|
466
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
467
|
-
)
|
|
468
|
-
end
|
|
469
|
-
attr_accessor :according_to
|
|
470
|
-
|
|
471
|
-
# The weekly reset period configuration of the entitlement, defined when reset
|
|
472
|
-
# period is weekly
|
|
473
|
-
sig do
|
|
474
|
-
params(
|
|
475
|
-
according_to:
|
|
476
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
477
|
-
).returns(T.attached_class)
|
|
478
|
-
end
|
|
479
|
-
def self.new(
|
|
480
|
-
# Weekly reset period according to
|
|
481
|
-
according_to:
|
|
482
|
-
)
|
|
483
|
-
end
|
|
484
|
-
|
|
485
|
-
sig do
|
|
486
|
-
override.returns(
|
|
487
|
-
{
|
|
488
|
-
according_to:
|
|
489
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
490
|
-
}
|
|
491
|
-
)
|
|
492
|
-
end
|
|
493
|
-
def to_hash
|
|
494
|
-
end
|
|
495
|
-
|
|
496
|
-
# Weekly reset period according to
|
|
497
|
-
module AccordingTo
|
|
498
|
-
extend Stigg::Internal::Type::Enum
|
|
499
|
-
|
|
500
|
-
TaggedSymbol =
|
|
501
|
-
T.type_alias do
|
|
502
|
-
T.all(
|
|
503
|
-
Symbol,
|
|
504
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo
|
|
505
|
-
)
|
|
506
|
-
end
|
|
507
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
508
|
-
|
|
509
|
-
SUBSCRIPTION_START =
|
|
510
|
-
T.let(
|
|
511
|
-
:SubscriptionStart,
|
|
512
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
513
|
-
)
|
|
514
|
-
EVERY_SUNDAY =
|
|
515
|
-
T.let(
|
|
516
|
-
:EverySunday,
|
|
517
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
518
|
-
)
|
|
519
|
-
EVERY_MONDAY =
|
|
520
|
-
T.let(
|
|
521
|
-
:EveryMonday,
|
|
522
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
523
|
-
)
|
|
524
|
-
EVERY_TUESDAY =
|
|
525
|
-
T.let(
|
|
526
|
-
:EveryTuesday,
|
|
527
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
528
|
-
)
|
|
529
|
-
EVERY_WEDNESDAY =
|
|
530
|
-
T.let(
|
|
531
|
-
:EveryWednesday,
|
|
532
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
533
|
-
)
|
|
534
|
-
EVERY_THURSDAY =
|
|
535
|
-
T.let(
|
|
536
|
-
:EveryThursday,
|
|
537
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
538
|
-
)
|
|
539
|
-
EVERY_FRIDAY =
|
|
540
|
-
T.let(
|
|
541
|
-
:EveryFriday,
|
|
542
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
543
|
-
)
|
|
544
|
-
EVERY_SATURDAY =
|
|
545
|
-
T.let(
|
|
546
|
-
:EverySaturday,
|
|
547
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
548
|
-
)
|
|
549
|
-
|
|
550
|
-
sig do
|
|
551
|
-
override.returns(
|
|
552
|
-
T::Array[
|
|
553
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
554
|
-
]
|
|
555
|
-
)
|
|
556
|
-
end
|
|
557
|
-
def self.values
|
|
558
|
-
end
|
|
559
|
-
end
|
|
560
|
-
end
|
|
561
|
-
|
|
562
|
-
class YearlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
563
|
-
OrHash =
|
|
564
|
-
T.type_alias do
|
|
565
|
-
T.any(
|
|
566
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration,
|
|
567
|
-
Stigg::Internal::AnyHash
|
|
568
|
-
)
|
|
569
|
-
end
|
|
570
|
-
|
|
571
|
-
# Yearly reset period according to
|
|
572
|
-
sig do
|
|
573
|
-
returns(
|
|
574
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
575
|
-
)
|
|
576
|
-
end
|
|
577
|
-
attr_accessor :according_to
|
|
578
|
-
|
|
579
|
-
# The yearly reset period configuration of the entitlement, defined when reset
|
|
580
|
-
# period is yearly
|
|
581
|
-
sig do
|
|
582
|
-
params(
|
|
583
|
-
according_to:
|
|
584
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
585
|
-
).returns(T.attached_class)
|
|
586
|
-
end
|
|
587
|
-
def self.new(
|
|
588
|
-
# Yearly reset period according to
|
|
589
|
-
according_to:
|
|
590
|
-
)
|
|
591
|
-
end
|
|
592
|
-
|
|
593
|
-
sig do
|
|
594
|
-
override.returns(
|
|
595
|
-
{
|
|
596
|
-
according_to:
|
|
597
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
598
|
-
}
|
|
599
|
-
)
|
|
600
|
-
end
|
|
601
|
-
def to_hash
|
|
602
|
-
end
|
|
603
|
-
|
|
604
|
-
# Yearly reset period according to
|
|
605
|
-
module AccordingTo
|
|
606
|
-
extend Stigg::Internal::Type::Enum
|
|
607
|
-
|
|
608
|
-
TaggedSymbol =
|
|
609
|
-
T.type_alias do
|
|
610
|
-
T.all(
|
|
611
|
-
Symbol,
|
|
612
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo
|
|
613
|
-
)
|
|
614
|
-
end
|
|
615
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
616
|
-
|
|
617
|
-
SUBSCRIPTION_START =
|
|
618
|
-
T.let(
|
|
619
|
-
:SubscriptionStart,
|
|
620
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
621
|
-
)
|
|
622
|
-
|
|
623
|
-
sig do
|
|
624
|
-
override.returns(
|
|
625
|
-
T::Array[
|
|
626
|
-
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
627
|
-
]
|
|
628
|
-
)
|
|
629
|
-
end
|
|
630
|
-
def self.values
|
|
631
|
-
end
|
|
632
|
-
end
|
|
633
|
-
end
|
|
634
|
-
end
|
|
635
|
-
end
|
|
636
|
-
end
|
|
637
|
-
end
|
|
638
|
-
end
|
|
639
|
-
end
|