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,497 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Stigg
|
|
4
|
-
module Models
|
|
5
|
-
module V1
|
|
6
|
-
module Customers
|
|
7
|
-
class PromotionalRevokeResponse < Stigg::Internal::Type::BaseModel
|
|
8
|
-
OrHash =
|
|
9
|
-
T.type_alias do
|
|
10
|
-
T.any(
|
|
11
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse,
|
|
12
|
-
Stigg::Internal::AnyHash
|
|
13
|
-
)
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
sig do
|
|
17
|
-
returns(
|
|
18
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data
|
|
19
|
-
)
|
|
20
|
-
end
|
|
21
|
-
attr_reader :data
|
|
22
|
-
|
|
23
|
-
sig do
|
|
24
|
-
params(
|
|
25
|
-
data:
|
|
26
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::OrHash
|
|
27
|
-
).void
|
|
28
|
-
end
|
|
29
|
-
attr_writer :data
|
|
30
|
-
|
|
31
|
-
sig do
|
|
32
|
-
params(
|
|
33
|
-
data:
|
|
34
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::OrHash
|
|
35
|
-
).returns(T.attached_class)
|
|
36
|
-
end
|
|
37
|
-
def self.new(data:)
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
sig do
|
|
41
|
-
override.returns(
|
|
42
|
-
{
|
|
43
|
-
data:
|
|
44
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data
|
|
45
|
-
}
|
|
46
|
-
)
|
|
47
|
-
end
|
|
48
|
-
def to_hash
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
class Data < Stigg::Internal::Type::BaseModel
|
|
52
|
-
OrHash =
|
|
53
|
-
T.type_alias do
|
|
54
|
-
T.any(
|
|
55
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data,
|
|
56
|
-
Stigg::Internal::AnyHash
|
|
57
|
-
)
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
# Unique identifier for the entity
|
|
61
|
-
sig { returns(String) }
|
|
62
|
-
attr_accessor :id
|
|
63
|
-
|
|
64
|
-
# Timestamp of when the record was created
|
|
65
|
-
sig { returns(Time) }
|
|
66
|
-
attr_accessor :created_at
|
|
67
|
-
|
|
68
|
-
# The description of the entitlement
|
|
69
|
-
sig { returns(T.nilable(String)) }
|
|
70
|
-
attr_accessor :description
|
|
71
|
-
|
|
72
|
-
# The end date of the promotional entitlement
|
|
73
|
-
sig { returns(T.nilable(Time)) }
|
|
74
|
-
attr_accessor :end_date
|
|
75
|
-
|
|
76
|
-
# The enum values of the entitlement
|
|
77
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
78
|
-
attr_accessor :enum_values
|
|
79
|
-
|
|
80
|
-
# The unique identifier for the environment
|
|
81
|
-
sig { returns(String) }
|
|
82
|
-
attr_accessor :environment_id
|
|
83
|
-
|
|
84
|
-
# Feature group IDs associated with this entitlement
|
|
85
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
86
|
-
attr_accessor :feature_group_ids
|
|
87
|
-
|
|
88
|
-
# The unique identifier of the entitlement feature
|
|
89
|
-
sig { returns(String) }
|
|
90
|
-
attr_accessor :feature_id
|
|
91
|
-
|
|
92
|
-
# Whether the entitlement has a soft limit
|
|
93
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
94
|
-
attr_accessor :has_soft_limit
|
|
95
|
-
|
|
96
|
-
# Whether the entitlement has an unlimited usage
|
|
97
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
98
|
-
attr_accessor :has_unlimited_usage
|
|
99
|
-
|
|
100
|
-
# Whether the entitlement is visible
|
|
101
|
-
sig { returns(T::Boolean) }
|
|
102
|
-
attr_accessor :is_visible
|
|
103
|
-
|
|
104
|
-
# The grant period of the promotional entitlement
|
|
105
|
-
sig do
|
|
106
|
-
returns(
|
|
107
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Period::TaggedSymbol
|
|
108
|
-
)
|
|
109
|
-
end
|
|
110
|
-
attr_accessor :period
|
|
111
|
-
|
|
112
|
-
# The reset period of the entitlement
|
|
113
|
-
sig do
|
|
114
|
-
returns(
|
|
115
|
-
T.nilable(
|
|
116
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriod::TaggedSymbol
|
|
117
|
-
)
|
|
118
|
-
)
|
|
119
|
-
end
|
|
120
|
-
attr_accessor :reset_period
|
|
121
|
-
|
|
122
|
-
# The reset period configuration of the entitlement
|
|
123
|
-
sig do
|
|
124
|
-
returns(
|
|
125
|
-
T.nilable(
|
|
126
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriodConfiguration::Variants
|
|
127
|
-
)
|
|
128
|
-
)
|
|
129
|
-
end
|
|
130
|
-
attr_accessor :reset_period_configuration
|
|
131
|
-
|
|
132
|
-
# The start date of the entitlement
|
|
133
|
-
sig { returns(Time) }
|
|
134
|
-
attr_accessor :start_date
|
|
135
|
-
|
|
136
|
-
# The status of the entitlement
|
|
137
|
-
sig do
|
|
138
|
-
returns(
|
|
139
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Status::TaggedSymbol
|
|
140
|
-
)
|
|
141
|
-
end
|
|
142
|
-
attr_accessor :status
|
|
143
|
-
|
|
144
|
-
# Timestamp of when the record was last updated
|
|
145
|
-
sig { returns(Time) }
|
|
146
|
-
attr_accessor :updated_at
|
|
147
|
-
|
|
148
|
-
# The usage limit of the entitlement
|
|
149
|
-
sig { returns(T.nilable(Float)) }
|
|
150
|
-
attr_accessor :usage_limit
|
|
151
|
-
|
|
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::PromotionalRevokeResponse::Data::Period::OrSymbol,
|
|
167
|
-
reset_period:
|
|
168
|
-
T.nilable(
|
|
169
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriod::OrSymbol
|
|
170
|
-
),
|
|
171
|
-
reset_period_configuration:
|
|
172
|
-
T.nilable(
|
|
173
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriodConfiguration::AccordingTo::OrHash
|
|
174
|
-
),
|
|
175
|
-
start_date: Time,
|
|
176
|
-
status:
|
|
177
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Status::OrSymbol,
|
|
178
|
-
updated_at: Time,
|
|
179
|
-
usage_limit: T.nilable(Float)
|
|
180
|
-
).returns(T.attached_class)
|
|
181
|
-
end
|
|
182
|
-
def self.new(
|
|
183
|
-
# Unique identifier for the entity
|
|
184
|
-
id:,
|
|
185
|
-
# Timestamp of when the record was created
|
|
186
|
-
created_at:,
|
|
187
|
-
# The description of the entitlement
|
|
188
|
-
description:,
|
|
189
|
-
# The end date of the promotional entitlement
|
|
190
|
-
end_date:,
|
|
191
|
-
# The enum values of the entitlement
|
|
192
|
-
enum_values:,
|
|
193
|
-
# The unique identifier for the environment
|
|
194
|
-
environment_id:,
|
|
195
|
-
# Feature group IDs associated with this entitlement
|
|
196
|
-
feature_group_ids:,
|
|
197
|
-
# The unique identifier of the entitlement feature
|
|
198
|
-
feature_id:,
|
|
199
|
-
# Whether the entitlement has a soft limit
|
|
200
|
-
has_soft_limit:,
|
|
201
|
-
# Whether the entitlement has an unlimited usage
|
|
202
|
-
has_unlimited_usage:,
|
|
203
|
-
# Whether the entitlement is visible
|
|
204
|
-
is_visible:,
|
|
205
|
-
# The grant period of the promotional entitlement
|
|
206
|
-
period:,
|
|
207
|
-
# The reset period of the entitlement
|
|
208
|
-
reset_period:,
|
|
209
|
-
# The reset period configuration of the entitlement
|
|
210
|
-
reset_period_configuration:,
|
|
211
|
-
# The start date of the entitlement
|
|
212
|
-
start_date:,
|
|
213
|
-
# The status of the entitlement
|
|
214
|
-
status:,
|
|
215
|
-
# Timestamp of when the record was last updated
|
|
216
|
-
updated_at:,
|
|
217
|
-
# The usage limit of the entitlement
|
|
218
|
-
usage_limit:
|
|
219
|
-
)
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
sig do
|
|
223
|
-
override.returns(
|
|
224
|
-
{
|
|
225
|
-
id: String,
|
|
226
|
-
created_at: Time,
|
|
227
|
-
description: T.nilable(String),
|
|
228
|
-
end_date: T.nilable(Time),
|
|
229
|
-
enum_values: T.nilable(T::Array[String]),
|
|
230
|
-
environment_id: String,
|
|
231
|
-
feature_group_ids: T.nilable(T::Array[String]),
|
|
232
|
-
feature_id: String,
|
|
233
|
-
has_soft_limit: T.nilable(T::Boolean),
|
|
234
|
-
has_unlimited_usage: T.nilable(T::Boolean),
|
|
235
|
-
is_visible: T::Boolean,
|
|
236
|
-
period:
|
|
237
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Period::TaggedSymbol,
|
|
238
|
-
reset_period:
|
|
239
|
-
T.nilable(
|
|
240
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriod::TaggedSymbol
|
|
241
|
-
),
|
|
242
|
-
reset_period_configuration:
|
|
243
|
-
T.nilable(
|
|
244
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriodConfiguration::Variants
|
|
245
|
-
),
|
|
246
|
-
start_date: Time,
|
|
247
|
-
status:
|
|
248
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Status::TaggedSymbol,
|
|
249
|
-
updated_at: Time,
|
|
250
|
-
usage_limit: T.nilable(Float)
|
|
251
|
-
}
|
|
252
|
-
)
|
|
253
|
-
end
|
|
254
|
-
def to_hash
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
# The grant period of the promotional entitlement
|
|
258
|
-
module Period
|
|
259
|
-
extend Stigg::Internal::Type::Enum
|
|
260
|
-
|
|
261
|
-
TaggedSymbol =
|
|
262
|
-
T.type_alias do
|
|
263
|
-
T.all(
|
|
264
|
-
Symbol,
|
|
265
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Period
|
|
266
|
-
)
|
|
267
|
-
end
|
|
268
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
269
|
-
|
|
270
|
-
PERIOD_1_WEEK =
|
|
271
|
-
T.let(
|
|
272
|
-
:"1 week",
|
|
273
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Period::TaggedSymbol
|
|
274
|
-
)
|
|
275
|
-
PERIOD_1_MONTH =
|
|
276
|
-
T.let(
|
|
277
|
-
:"1 month",
|
|
278
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Period::TaggedSymbol
|
|
279
|
-
)
|
|
280
|
-
PERIOD_6_MONTH =
|
|
281
|
-
T.let(
|
|
282
|
-
:"6 month",
|
|
283
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Period::TaggedSymbol
|
|
284
|
-
)
|
|
285
|
-
PERIOD_1_YEAR =
|
|
286
|
-
T.let(
|
|
287
|
-
:"1 year",
|
|
288
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Period::TaggedSymbol
|
|
289
|
-
)
|
|
290
|
-
LIFETIME =
|
|
291
|
-
T.let(
|
|
292
|
-
:lifetime,
|
|
293
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Period::TaggedSymbol
|
|
294
|
-
)
|
|
295
|
-
CUSTOM =
|
|
296
|
-
T.let(
|
|
297
|
-
:custom,
|
|
298
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Period::TaggedSymbol
|
|
299
|
-
)
|
|
300
|
-
|
|
301
|
-
sig do
|
|
302
|
-
override.returns(
|
|
303
|
-
T::Array[
|
|
304
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Period::TaggedSymbol
|
|
305
|
-
]
|
|
306
|
-
)
|
|
307
|
-
end
|
|
308
|
-
def self.values
|
|
309
|
-
end
|
|
310
|
-
end
|
|
311
|
-
|
|
312
|
-
# The reset period of the entitlement
|
|
313
|
-
module ResetPeriod
|
|
314
|
-
extend Stigg::Internal::Type::Enum
|
|
315
|
-
|
|
316
|
-
TaggedSymbol =
|
|
317
|
-
T.type_alias do
|
|
318
|
-
T.all(
|
|
319
|
-
Symbol,
|
|
320
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriod
|
|
321
|
-
)
|
|
322
|
-
end
|
|
323
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
324
|
-
|
|
325
|
-
YEAR =
|
|
326
|
-
T.let(
|
|
327
|
-
:YEAR,
|
|
328
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriod::TaggedSymbol
|
|
329
|
-
)
|
|
330
|
-
MONTH =
|
|
331
|
-
T.let(
|
|
332
|
-
:MONTH,
|
|
333
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriod::TaggedSymbol
|
|
334
|
-
)
|
|
335
|
-
WEEK =
|
|
336
|
-
T.let(
|
|
337
|
-
:WEEK,
|
|
338
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriod::TaggedSymbol
|
|
339
|
-
)
|
|
340
|
-
DAY =
|
|
341
|
-
T.let(
|
|
342
|
-
:DAY,
|
|
343
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriod::TaggedSymbol
|
|
344
|
-
)
|
|
345
|
-
HOUR =
|
|
346
|
-
T.let(
|
|
347
|
-
:HOUR,
|
|
348
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriod::TaggedSymbol
|
|
349
|
-
)
|
|
350
|
-
|
|
351
|
-
sig do
|
|
352
|
-
override.returns(
|
|
353
|
-
T::Array[
|
|
354
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriod::TaggedSymbol
|
|
355
|
-
]
|
|
356
|
-
)
|
|
357
|
-
end
|
|
358
|
-
def self.values
|
|
359
|
-
end
|
|
360
|
-
end
|
|
361
|
-
|
|
362
|
-
# The reset period configuration of the entitlement
|
|
363
|
-
module ResetPeriodConfiguration
|
|
364
|
-
extend Stigg::Internal::Type::Union
|
|
365
|
-
|
|
366
|
-
Variants =
|
|
367
|
-
T.type_alias do
|
|
368
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriodConfiguration::AccordingTo
|
|
369
|
-
end
|
|
370
|
-
|
|
371
|
-
class AccordingTo < Stigg::Internal::Type::BaseModel
|
|
372
|
-
OrHash =
|
|
373
|
-
T.type_alias do
|
|
374
|
-
T.any(
|
|
375
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriodConfiguration::AccordingTo,
|
|
376
|
-
Stigg::Internal::AnyHash
|
|
377
|
-
)
|
|
378
|
-
end
|
|
379
|
-
|
|
380
|
-
# Yearly reset period according to
|
|
381
|
-
sig do
|
|
382
|
-
returns(
|
|
383
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriodConfiguration::AccordingTo::AccordingTo::TaggedSymbol
|
|
384
|
-
)
|
|
385
|
-
end
|
|
386
|
-
attr_accessor :according_to
|
|
387
|
-
|
|
388
|
-
sig do
|
|
389
|
-
params(
|
|
390
|
-
according_to:
|
|
391
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriodConfiguration::AccordingTo::AccordingTo::OrSymbol
|
|
392
|
-
).returns(T.attached_class)
|
|
393
|
-
end
|
|
394
|
-
def self.new(
|
|
395
|
-
# Yearly reset period according to
|
|
396
|
-
according_to:
|
|
397
|
-
)
|
|
398
|
-
end
|
|
399
|
-
|
|
400
|
-
sig do
|
|
401
|
-
override.returns(
|
|
402
|
-
{
|
|
403
|
-
according_to:
|
|
404
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriodConfiguration::AccordingTo::AccordingTo::TaggedSymbol
|
|
405
|
-
}
|
|
406
|
-
)
|
|
407
|
-
end
|
|
408
|
-
def to_hash
|
|
409
|
-
end
|
|
410
|
-
|
|
411
|
-
# Yearly reset period according to
|
|
412
|
-
module AccordingTo
|
|
413
|
-
extend Stigg::Internal::Type::Enum
|
|
414
|
-
|
|
415
|
-
TaggedSymbol =
|
|
416
|
-
T.type_alias do
|
|
417
|
-
T.all(
|
|
418
|
-
Symbol,
|
|
419
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriodConfiguration::AccordingTo::AccordingTo
|
|
420
|
-
)
|
|
421
|
-
end
|
|
422
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
423
|
-
|
|
424
|
-
SUBSCRIPTION_START =
|
|
425
|
-
T.let(
|
|
426
|
-
:SubscriptionStart,
|
|
427
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriodConfiguration::AccordingTo::AccordingTo::TaggedSymbol
|
|
428
|
-
)
|
|
429
|
-
|
|
430
|
-
sig do
|
|
431
|
-
override.returns(
|
|
432
|
-
T::Array[
|
|
433
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriodConfiguration::AccordingTo::AccordingTo::TaggedSymbol
|
|
434
|
-
]
|
|
435
|
-
)
|
|
436
|
-
end
|
|
437
|
-
def self.values
|
|
438
|
-
end
|
|
439
|
-
end
|
|
440
|
-
end
|
|
441
|
-
|
|
442
|
-
sig do
|
|
443
|
-
override.returns(
|
|
444
|
-
T::Array[
|
|
445
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::ResetPeriodConfiguration::Variants
|
|
446
|
-
]
|
|
447
|
-
)
|
|
448
|
-
end
|
|
449
|
-
def self.variants
|
|
450
|
-
end
|
|
451
|
-
end
|
|
452
|
-
|
|
453
|
-
# The status of the entitlement
|
|
454
|
-
module Status
|
|
455
|
-
extend Stigg::Internal::Type::Enum
|
|
456
|
-
|
|
457
|
-
TaggedSymbol =
|
|
458
|
-
T.type_alias do
|
|
459
|
-
T.all(
|
|
460
|
-
Symbol,
|
|
461
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Status
|
|
462
|
-
)
|
|
463
|
-
end
|
|
464
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
465
|
-
|
|
466
|
-
ACTIVE =
|
|
467
|
-
T.let(
|
|
468
|
-
:Active,
|
|
469
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Status::TaggedSymbol
|
|
470
|
-
)
|
|
471
|
-
EXPIRED =
|
|
472
|
-
T.let(
|
|
473
|
-
:Expired,
|
|
474
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Status::TaggedSymbol
|
|
475
|
-
)
|
|
476
|
-
PAUSED =
|
|
477
|
-
T.let(
|
|
478
|
-
:Paused,
|
|
479
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Status::TaggedSymbol
|
|
480
|
-
)
|
|
481
|
-
|
|
482
|
-
sig do
|
|
483
|
-
override.returns(
|
|
484
|
-
T::Array[
|
|
485
|
-
Stigg::Models::V1::Customers::PromotionalRevokeResponse::Data::Status::TaggedSymbol
|
|
486
|
-
]
|
|
487
|
-
)
|
|
488
|
-
end
|
|
489
|
-
def self.values
|
|
490
|
-
end
|
|
491
|
-
end
|
|
492
|
-
end
|
|
493
|
-
end
|
|
494
|
-
end
|
|
495
|
-
end
|
|
496
|
-
end
|
|
497
|
-
end
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Stigg
|
|
4
|
-
module Models
|
|
5
|
-
module V1
|
|
6
|
-
module Customers
|
|
7
|
-
class UsageRetrieveParams < 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::UsageRetrieveParams,
|
|
15
|
-
Stigg::Internal::AnyHash
|
|
16
|
-
)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
sig { returns(String) }
|
|
20
|
-
attr_accessor :customer_id
|
|
21
|
-
|
|
22
|
-
# The start date of the range
|
|
23
|
-
sig { returns(Time) }
|
|
24
|
-
attr_accessor :start_date
|
|
25
|
-
|
|
26
|
-
# The end date of the range
|
|
27
|
-
sig { returns(T.nilable(Time)) }
|
|
28
|
-
attr_reader :end_date
|
|
29
|
-
|
|
30
|
-
sig { params(end_date: Time).void }
|
|
31
|
-
attr_writer :end_date
|
|
32
|
-
|
|
33
|
-
sig { returns(T.nilable(String)) }
|
|
34
|
-
attr_reader :group_by
|
|
35
|
-
|
|
36
|
-
sig { params(group_by: String).void }
|
|
37
|
-
attr_writer :group_by
|
|
38
|
-
|
|
39
|
-
# Resource id
|
|
40
|
-
sig { returns(T.nilable(String)) }
|
|
41
|
-
attr_accessor :resource_id
|
|
42
|
-
|
|
43
|
-
sig do
|
|
44
|
-
params(
|
|
45
|
-
customer_id: String,
|
|
46
|
-
start_date: Time,
|
|
47
|
-
end_date: Time,
|
|
48
|
-
group_by: String,
|
|
49
|
-
resource_id: T.nilable(String),
|
|
50
|
-
request_options: Stigg::RequestOptions::OrHash
|
|
51
|
-
).returns(T.attached_class)
|
|
52
|
-
end
|
|
53
|
-
def self.new(
|
|
54
|
-
customer_id:,
|
|
55
|
-
# The start date of the range
|
|
56
|
-
start_date:,
|
|
57
|
-
# The end date of the range
|
|
58
|
-
end_date: nil,
|
|
59
|
-
group_by: nil,
|
|
60
|
-
# Resource id
|
|
61
|
-
resource_id: nil,
|
|
62
|
-
request_options: {}
|
|
63
|
-
)
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
sig do
|
|
67
|
-
override.returns(
|
|
68
|
-
{
|
|
69
|
-
customer_id: String,
|
|
70
|
-
start_date: Time,
|
|
71
|
-
end_date: Time,
|
|
72
|
-
group_by: String,
|
|
73
|
-
resource_id: T.nilable(String),
|
|
74
|
-
request_options: Stigg::RequestOptions
|
|
75
|
-
}
|
|
76
|
-
)
|
|
77
|
-
end
|
|
78
|
-
def to_hash
|
|
79
|
-
end
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
end
|
|
83
|
-
end
|
|
84
|
-
end
|