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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/stigg/internal/type/base_model.rb +2 -2
- data/lib/stigg/models/v1/{coupon_create_response.rb → coupon.rb} +24 -24
- data/lib/stigg/models/v1/customer_import_params.rb +75 -0
- data/lib/stigg/models/v1/customer_import_response.rb +35 -0
- data/lib/stigg/models/v1/{customer_create_params.rb → customer_provision_params.rb} +16 -16
- data/lib/stigg/models/v1/customer_response.rb +1 -1
- data/lib/stigg/models/v1/customers/promotional_entitlement_grant_params.rb +296 -0
- data/lib/stigg/models/v1/customers/promotional_entitlement_grant_response.rb +341 -0
- data/lib/stigg/models/v1/customers/promotional_entitlement_revoke_params.rb +24 -0
- data/lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb +342 -0
- data/lib/stigg/models/v1/event_report_params.rb +91 -0
- data/lib/stigg/models/v1/event_report_response.rb +25 -0
- data/lib/stigg/models/v1/{subscription_retrieve_response.rb → subscription.rb} +30 -29
- data/lib/stigg/models/v1/subscription_cancel_params.rb +75 -0
- data/lib/stigg/models/v1/subscription_import_params.rb +92 -0
- data/lib/stigg/models/v1/subscription_import_response.rb +32 -0
- data/lib/stigg/models/v1/{subscription_create_params.rb → subscription_provision_params.rb} +118 -118
- data/lib/stigg/models/v1/{subscription_create_response.rb → subscription_provision_response.rb} +76 -75
- data/lib/stigg/models/v1/subscription_update_params.rb +1114 -0
- data/lib/stigg/models/v1/subscriptions/{future_update_cancel_pending_payment_response.rb → cancel_subscription.rb} +7 -5
- data/lib/stigg/models/v1/usage_history_params.rb +54 -0
- data/lib/stigg/models/v1/usage_history_response.rb +155 -0
- data/lib/stigg/models/v1/usage_report_params.rb +114 -0
- data/lib/stigg/models/v1/usage_report_response.rb +120 -0
- data/lib/stigg/models.rb +0 -4
- data/lib/stigg/resources/v1/coupons.rb +4 -4
- data/lib/stigg/resources/v1/customers/promotional_entitlements.rb +69 -0
- data/lib/stigg/resources/v1/customers.rb +59 -37
- data/lib/stigg/resources/v1/events.rb +38 -0
- data/lib/stigg/resources/v1/subscriptions/future_update.rb +4 -4
- data/lib/stigg/resources/v1/subscriptions.rb +166 -64
- data/lib/stigg/resources/v1/usage.rb +79 -0
- data/lib/stigg/resources/v1.rb +6 -42
- data/lib/stigg/version.rb +1 -1
- data/lib/stigg.rb +25 -16
- data/rbi/stigg/models/v1/{coupon_create_response.rbi → coupon.rbi} +156 -252
- data/rbi/stigg/models/v1/customer_import_params.rbi +130 -0
- data/rbi/stigg/models/v1/customer_import_response.rbi +76 -0
- data/rbi/stigg/models/v1/{customer_create_params.rbi → customer_provision_params.rbi} +35 -35
- data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_params.rbi +640 -0
- data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_response.rbi +690 -0
- data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbi +42 -0
- data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbi +696 -0
- data/rbi/stigg/models/v1/event_report_params.rbi +168 -0
- data/rbi/stigg/models/v1/event_report_response.rbi +35 -0
- data/rbi/stigg/models/v1/{subscription_migrate_response.rbi → subscription.rbi} +66 -117
- data/rbi/stigg/models/v1/subscription_cancel_params.rbi +182 -0
- data/rbi/stigg/models/v1/subscription_import_params.rbi +148 -0
- data/rbi/stigg/models/v1/subscription_import_response.rbi +69 -0
- data/rbi/stigg/models/v1/{subscription_create_params.rbi → subscription_provision_params.rbi} +794 -773
- data/rbi/stigg/models/v1/{subscription_create_response.rbi → subscription_provision_response.rbi} +481 -481
- data/rbi/stigg/models/v1/subscription_update_params.rbi +3578 -0
- data/rbi/stigg/models/v1/subscriptions/{future_update_cancel_schedule_response.rbi → cancel_subscription.rbi} +9 -16
- data/rbi/stigg/models/v1/usage_history_params.rbi +79 -0
- data/rbi/stigg/models/v1/usage_history_response.rbi +347 -0
- data/rbi/stigg/models/v1/usage_report_params.rbi +227 -0
- data/rbi/stigg/models/v1/usage_report_response.rbi +162 -0
- data/rbi/stigg/models.rbi +0 -4
- data/rbi/stigg/resources/v1/coupons.rbi +2 -2
- data/rbi/stigg/resources/v1/customers/promotional_entitlements.rbi +57 -0
- data/rbi/stigg/resources/v1/customers.rbi +53 -36
- data/rbi/stigg/resources/v1/events.rbi +28 -0
- data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +2 -6
- data/rbi/stigg/resources/v1/subscriptions.rbi +179 -74
- data/rbi/stigg/resources/v1/usage.rbi +57 -0
- data/rbi/stigg/resources/v1.rbi +4 -26
- data/sig/stigg/models/v1/{coupon_create_response.rbs → coupon.rbs} +29 -32
- data/sig/stigg/models/v1/customer_import_params.rbs +74 -0
- data/sig/stigg/models/v1/customer_import_response.rbs +30 -0
- data/sig/stigg/models/v1/{customer_create_params.rbs → customer_provision_params.rbs} +22 -22
- data/sig/stigg/models/v1/customers/promotional_entitlement_grant_params.rbs +234 -0
- data/sig/stigg/models/v1/customers/promotional_entitlement_grant_response.rbs +281 -0
- data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbs +27 -0
- data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbs +281 -0
- data/sig/stigg/models/v1/event_report_params.rbs +82 -0
- data/sig/stigg/models/v1/event_report_response.rbs +15 -0
- data/sig/stigg/models/v1/{subscription_retrieve_response.rbs → subscription.rbs} +36 -41
- data/sig/stigg/models/v1/subscription_cancel_params.rbs +79 -0
- data/sig/stigg/models/v1/subscription_import_params.rbs +84 -0
- data/sig/stigg/models/v1/subscription_import_response.rbs +30 -0
- data/sig/stigg/models/v1/{subscription_create_params.rbs → subscription_provision_params.rbs} +200 -200
- data/sig/stigg/models/v1/{subscription_create_response.rbs → subscription_provision_response.rbs} +106 -106
- data/sig/stigg/models/v1/subscription_update_params.rbs +1544 -0
- data/sig/stigg/models/v1/subscriptions/cancel_subscription.rbs +34 -0
- data/sig/stigg/models/v1/usage_history_params.rbs +52 -0
- data/sig/stigg/models/v1/usage_history_response.rbs +129 -0
- data/sig/stigg/models/v1/usage_report_params.rbs +102 -0
- data/sig/stigg/models/v1/usage_report_response.rbs +87 -0
- data/sig/stigg/models.rbs +0 -4
- data/sig/stigg/resources/v1/coupons.rbs +2 -2
- data/sig/stigg/resources/v1/customers/promotional_entitlements.rbs +23 -0
- data/sig/stigg/resources/v1/customers.rbs +17 -12
- data/sig/stigg/resources/v1/events.rbs +14 -0
- data/sig/stigg/resources/v1/subscriptions/future_update.rbs +2 -2
- data/sig/stigg/resources/v1/subscriptions.rbs +65 -32
- data/sig/stigg/resources/v1/usage.rbs +24 -0
- data/sig/stigg/resources/v1.rbs +2 -8
- metadata +77 -50
- data/lib/stigg/models/v1/coupon_retrieve_response.rb +0 -322
- data/lib/stigg/models/v1/subscription_delegate_response.rb +0 -314
- data/lib/stigg/models/v1/subscription_migrate_response.rb +0 -314
- data/lib/stigg/models/v1/subscription_transfer_response.rb +0 -314
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +0 -34
- data/lib/stigg/models/v1_create_event_params.rb +0 -89
- data/lib/stigg/models/v1_create_event_response.rb +0 -23
- data/lib/stigg/models/v1_create_usage_params.rb +0 -112
- data/lib/stigg/models/v1_create_usage_response.rb +0 -118
- data/lib/stigg/resources/v1/customers/usage.rb +0 -18
- data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +0 -987
- data/rbi/stigg/models/v1/subscription_delegate_response.rbi +0 -618
- data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +0 -618
- data/rbi/stigg/models/v1/subscription_transfer_response.rbi +0 -618
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +0 -80
- data/rbi/stigg/models/v1_create_event_params.rbi +0 -161
- data/rbi/stigg/models/v1_create_event_response.rbi +0 -30
- data/rbi/stigg/models/v1_create_usage_params.rbi +0 -217
- data/rbi/stigg/models/v1_create_usage_response.rbi +0 -157
- data/rbi/stigg/resources/v1/customers/usage.rbi +0 -16
- data/sig/stigg/models/v1/coupon_retrieve_response.rbs +0 -394
- data/sig/stigg/models/v1/subscription_delegate_response.rbs +0 -255
- data/sig/stigg/models/v1/subscription_migrate_response.rbs +0 -255
- data/sig/stigg/models/v1/subscription_transfer_response.rbs +0 -255
- data/sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbs +0 -34
- data/sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbs +0 -34
- data/sig/stigg/models/v1_create_event_params.rbs +0 -80
- data/sig/stigg/models/v1_create_event_response.rbs +0 -13
- data/sig/stigg/models/v1_create_usage_params.rbs +0 -100
- data/sig/stigg/models/v1_create_usage_response.rbs +0 -85
- data/sig/stigg/resources/v1/customers/usage.rbs +0 -11
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
module Customers
|
|
5
|
+
type promotional_entitlement_grant_response =
|
|
6
|
+
{
|
|
7
|
+
data: ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class PromotionalEntitlementGrantResponse < Stigg::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor data: ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data]
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
data: ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data]
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
data: ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data]
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type data =
|
|
22
|
+
{
|
|
23
|
+
id: String,
|
|
24
|
+
created_at: Time,
|
|
25
|
+
description: String?,
|
|
26
|
+
end_date: Time?,
|
|
27
|
+
enum_values: ::Array[String]?,
|
|
28
|
+
environment_id: String,
|
|
29
|
+
feature_group_ids: ::Array[String]?,
|
|
30
|
+
feature_id: String,
|
|
31
|
+
has_soft_limit: bool?,
|
|
32
|
+
has_unlimited_usage: bool?,
|
|
33
|
+
is_visible: bool,
|
|
34
|
+
period: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::period,
|
|
35
|
+
reset_period: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::reset_period?,
|
|
36
|
+
reset_period_configuration: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::reset_period_configuration?,
|
|
37
|
+
start_date: Time,
|
|
38
|
+
status: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::status,
|
|
39
|
+
updated_at: Time,
|
|
40
|
+
usage_limit: Float?
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
44
|
+
attr_accessor id: String
|
|
45
|
+
|
|
46
|
+
attr_accessor created_at: Time
|
|
47
|
+
|
|
48
|
+
attr_accessor description: String?
|
|
49
|
+
|
|
50
|
+
attr_accessor end_date: Time?
|
|
51
|
+
|
|
52
|
+
attr_accessor enum_values: ::Array[String]?
|
|
53
|
+
|
|
54
|
+
attr_accessor environment_id: String
|
|
55
|
+
|
|
56
|
+
attr_accessor feature_group_ids: ::Array[String]?
|
|
57
|
+
|
|
58
|
+
attr_accessor feature_id: String
|
|
59
|
+
|
|
60
|
+
attr_accessor has_soft_limit: bool?
|
|
61
|
+
|
|
62
|
+
attr_accessor has_unlimited_usage: bool?
|
|
63
|
+
|
|
64
|
+
attr_accessor is_visible: bool
|
|
65
|
+
|
|
66
|
+
attr_accessor period: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::period
|
|
67
|
+
|
|
68
|
+
attr_accessor reset_period: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::reset_period?
|
|
69
|
+
|
|
70
|
+
attr_accessor reset_period_configuration: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::reset_period_configuration?
|
|
71
|
+
|
|
72
|
+
attr_accessor start_date: Time
|
|
73
|
+
|
|
74
|
+
attr_accessor status: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::status
|
|
75
|
+
|
|
76
|
+
attr_accessor updated_at: Time
|
|
77
|
+
|
|
78
|
+
attr_accessor usage_limit: Float?
|
|
79
|
+
|
|
80
|
+
def initialize: (
|
|
81
|
+
id: String,
|
|
82
|
+
created_at: Time,
|
|
83
|
+
description: String?,
|
|
84
|
+
end_date: Time?,
|
|
85
|
+
enum_values: ::Array[String]?,
|
|
86
|
+
environment_id: String,
|
|
87
|
+
feature_group_ids: ::Array[String]?,
|
|
88
|
+
feature_id: String,
|
|
89
|
+
has_soft_limit: bool?,
|
|
90
|
+
has_unlimited_usage: bool?,
|
|
91
|
+
is_visible: bool,
|
|
92
|
+
period: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::period,
|
|
93
|
+
reset_period: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::reset_period?,
|
|
94
|
+
reset_period_configuration: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::reset_period_configuration?,
|
|
95
|
+
start_date: Time,
|
|
96
|
+
status: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::status,
|
|
97
|
+
updated_at: Time,
|
|
98
|
+
usage_limit: Float?
|
|
99
|
+
) -> void
|
|
100
|
+
|
|
101
|
+
def to_hash: -> {
|
|
102
|
+
id: String,
|
|
103
|
+
created_at: Time,
|
|
104
|
+
description: String?,
|
|
105
|
+
end_date: Time?,
|
|
106
|
+
enum_values: ::Array[String]?,
|
|
107
|
+
environment_id: String,
|
|
108
|
+
feature_group_ids: ::Array[String]?,
|
|
109
|
+
feature_id: String,
|
|
110
|
+
has_soft_limit: bool?,
|
|
111
|
+
has_unlimited_usage: bool?,
|
|
112
|
+
is_visible: bool,
|
|
113
|
+
period: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::period,
|
|
114
|
+
reset_period: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::reset_period?,
|
|
115
|
+
reset_period_configuration: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::reset_period_configuration?,
|
|
116
|
+
start_date: Time,
|
|
117
|
+
status: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::status,
|
|
118
|
+
updated_at: Time,
|
|
119
|
+
usage_limit: Float?
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
type period =
|
|
123
|
+
:"1 week"
|
|
124
|
+
| :"1 month"
|
|
125
|
+
| :"6 month"
|
|
126
|
+
| :"1 year"
|
|
127
|
+
| :lifetime
|
|
128
|
+
| :custom
|
|
129
|
+
|
|
130
|
+
module Period
|
|
131
|
+
extend Stigg::Internal::Type::Enum
|
|
132
|
+
|
|
133
|
+
PERIOD_1_WEEK: :"1 week"
|
|
134
|
+
PERIOD_1_MONTH: :"1 month"
|
|
135
|
+
PERIOD_6_MONTH: :"6 month"
|
|
136
|
+
PERIOD_1_YEAR: :"1 year"
|
|
137
|
+
LIFETIME: :lifetime
|
|
138
|
+
CUSTOM: :custom
|
|
139
|
+
|
|
140
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::period]
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
type reset_period = :YEAR | :MONTH | :WEEK | :DAY | :HOUR
|
|
144
|
+
|
|
145
|
+
module ResetPeriod
|
|
146
|
+
extend Stigg::Internal::Type::Enum
|
|
147
|
+
|
|
148
|
+
YEAR: :YEAR
|
|
149
|
+
MONTH: :MONTH
|
|
150
|
+
WEEK: :WEEK
|
|
151
|
+
DAY: :DAY
|
|
152
|
+
HOUR: :HOUR
|
|
153
|
+
|
|
154
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::reset_period]
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
type reset_period_configuration =
|
|
158
|
+
Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig
|
|
159
|
+
| Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig
|
|
160
|
+
| Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig
|
|
161
|
+
|
|
162
|
+
module ResetPeriodConfiguration
|
|
163
|
+
extend Stigg::Internal::Type::Union
|
|
164
|
+
|
|
165
|
+
type yearly_reset_period_config =
|
|
166
|
+
{
|
|
167
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::according_to
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
class YearlyResetPeriodConfig < Stigg::Internal::Type::BaseModel
|
|
171
|
+
attr_accessor according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::according_to
|
|
172
|
+
|
|
173
|
+
def initialize: (
|
|
174
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::according_to
|
|
175
|
+
) -> void
|
|
176
|
+
|
|
177
|
+
def to_hash: -> {
|
|
178
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::according_to
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
type according_to = :SubscriptionStart
|
|
182
|
+
|
|
183
|
+
module AccordingTo
|
|
184
|
+
extend Stigg::Internal::Type::Enum
|
|
185
|
+
|
|
186
|
+
SUBSCRIPTION_START: :SubscriptionStart
|
|
187
|
+
|
|
188
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::according_to]
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
type monthly_reset_period_config =
|
|
193
|
+
{
|
|
194
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::according_to
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
class MonthlyResetPeriodConfig < Stigg::Internal::Type::BaseModel
|
|
198
|
+
attr_accessor according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::according_to
|
|
199
|
+
|
|
200
|
+
def initialize: (
|
|
201
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::according_to
|
|
202
|
+
) -> void
|
|
203
|
+
|
|
204
|
+
def to_hash: -> {
|
|
205
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::according_to
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
type according_to = :SubscriptionStart | :StartOfTheMonth
|
|
209
|
+
|
|
210
|
+
module AccordingTo
|
|
211
|
+
extend Stigg::Internal::Type::Enum
|
|
212
|
+
|
|
213
|
+
SUBSCRIPTION_START: :SubscriptionStart
|
|
214
|
+
START_OF_THE_MONTH: :StartOfTheMonth
|
|
215
|
+
|
|
216
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::according_to]
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
type weekly_reset_period_config =
|
|
221
|
+
{
|
|
222
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::according_to
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
class WeeklyResetPeriodConfig < Stigg::Internal::Type::BaseModel
|
|
226
|
+
attr_accessor according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::according_to
|
|
227
|
+
|
|
228
|
+
def initialize: (
|
|
229
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::according_to
|
|
230
|
+
) -> void
|
|
231
|
+
|
|
232
|
+
def to_hash: -> {
|
|
233
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::according_to
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
type according_to =
|
|
237
|
+
:SubscriptionStart
|
|
238
|
+
| :EverySunday
|
|
239
|
+
| :EveryMonday
|
|
240
|
+
| :EveryTuesday
|
|
241
|
+
| :EveryWednesday
|
|
242
|
+
| :EveryThursday
|
|
243
|
+
| :EveryFriday
|
|
244
|
+
| :EverySaturday
|
|
245
|
+
|
|
246
|
+
module AccordingTo
|
|
247
|
+
extend Stigg::Internal::Type::Enum
|
|
248
|
+
|
|
249
|
+
SUBSCRIPTION_START: :SubscriptionStart
|
|
250
|
+
EVERY_SUNDAY: :EverySunday
|
|
251
|
+
EVERY_MONDAY: :EveryMonday
|
|
252
|
+
EVERY_TUESDAY: :EveryTuesday
|
|
253
|
+
EVERY_WEDNESDAY: :EveryWednesday
|
|
254
|
+
EVERY_THURSDAY: :EveryThursday
|
|
255
|
+
EVERY_FRIDAY: :EveryFriday
|
|
256
|
+
EVERY_SATURDAY: :EverySaturday
|
|
257
|
+
|
|
258
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::according_to]
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
def self?.variants: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::reset_period_configuration]
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
type status = :Active | :Expired | :Paused
|
|
266
|
+
|
|
267
|
+
module Status
|
|
268
|
+
extend Stigg::Internal::Type::Enum
|
|
269
|
+
|
|
270
|
+
ACTIVE: :Active
|
|
271
|
+
EXPIRED: :Expired
|
|
272
|
+
PAUSED: :Paused
|
|
273
|
+
|
|
274
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::status]
|
|
275
|
+
end
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
end
|
|
281
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
module Customers
|
|
5
|
+
type promotional_entitlement_revoke_params =
|
|
6
|
+
{ customer_id: String } & Stigg::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class PromotionalEntitlementRevokeParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor customer_id: String
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
customer_id: String,
|
|
16
|
+
?request_options: Stigg::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
customer_id: String,
|
|
21
|
+
request_options: Stigg::RequestOptions
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
module Customers
|
|
5
|
+
type promotional_entitlement_revoke_response =
|
|
6
|
+
{
|
|
7
|
+
data: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class PromotionalEntitlementRevokeResponse < Stigg::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor data: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
data: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
data: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type data =
|
|
22
|
+
{
|
|
23
|
+
id: String,
|
|
24
|
+
created_at: Time,
|
|
25
|
+
description: String?,
|
|
26
|
+
end_date: Time?,
|
|
27
|
+
enum_values: ::Array[String]?,
|
|
28
|
+
environment_id: String,
|
|
29
|
+
feature_group_ids: ::Array[String]?,
|
|
30
|
+
feature_id: String,
|
|
31
|
+
has_soft_limit: bool?,
|
|
32
|
+
has_unlimited_usage: bool?,
|
|
33
|
+
is_visible: bool,
|
|
34
|
+
period: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::period,
|
|
35
|
+
reset_period: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period?,
|
|
36
|
+
reset_period_configuration: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period_configuration?,
|
|
37
|
+
start_date: Time,
|
|
38
|
+
status: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::status,
|
|
39
|
+
updated_at: Time,
|
|
40
|
+
usage_limit: Float?
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
44
|
+
attr_accessor id: String
|
|
45
|
+
|
|
46
|
+
attr_accessor created_at: Time
|
|
47
|
+
|
|
48
|
+
attr_accessor description: String?
|
|
49
|
+
|
|
50
|
+
attr_accessor end_date: Time?
|
|
51
|
+
|
|
52
|
+
attr_accessor enum_values: ::Array[String]?
|
|
53
|
+
|
|
54
|
+
attr_accessor environment_id: String
|
|
55
|
+
|
|
56
|
+
attr_accessor feature_group_ids: ::Array[String]?
|
|
57
|
+
|
|
58
|
+
attr_accessor feature_id: String
|
|
59
|
+
|
|
60
|
+
attr_accessor has_soft_limit: bool?
|
|
61
|
+
|
|
62
|
+
attr_accessor has_unlimited_usage: bool?
|
|
63
|
+
|
|
64
|
+
attr_accessor is_visible: bool
|
|
65
|
+
|
|
66
|
+
attr_accessor period: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::period
|
|
67
|
+
|
|
68
|
+
attr_accessor reset_period: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period?
|
|
69
|
+
|
|
70
|
+
attr_accessor reset_period_configuration: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period_configuration?
|
|
71
|
+
|
|
72
|
+
attr_accessor start_date: Time
|
|
73
|
+
|
|
74
|
+
attr_accessor status: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::status
|
|
75
|
+
|
|
76
|
+
attr_accessor updated_at: Time
|
|
77
|
+
|
|
78
|
+
attr_accessor usage_limit: Float?
|
|
79
|
+
|
|
80
|
+
def initialize: (
|
|
81
|
+
id: String,
|
|
82
|
+
created_at: Time,
|
|
83
|
+
description: String?,
|
|
84
|
+
end_date: Time?,
|
|
85
|
+
enum_values: ::Array[String]?,
|
|
86
|
+
environment_id: String,
|
|
87
|
+
feature_group_ids: ::Array[String]?,
|
|
88
|
+
feature_id: String,
|
|
89
|
+
has_soft_limit: bool?,
|
|
90
|
+
has_unlimited_usage: bool?,
|
|
91
|
+
is_visible: bool,
|
|
92
|
+
period: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::period,
|
|
93
|
+
reset_period: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period?,
|
|
94
|
+
reset_period_configuration: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period_configuration?,
|
|
95
|
+
start_date: Time,
|
|
96
|
+
status: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::status,
|
|
97
|
+
updated_at: Time,
|
|
98
|
+
usage_limit: Float?
|
|
99
|
+
) -> void
|
|
100
|
+
|
|
101
|
+
def to_hash: -> {
|
|
102
|
+
id: String,
|
|
103
|
+
created_at: Time,
|
|
104
|
+
description: String?,
|
|
105
|
+
end_date: Time?,
|
|
106
|
+
enum_values: ::Array[String]?,
|
|
107
|
+
environment_id: String,
|
|
108
|
+
feature_group_ids: ::Array[String]?,
|
|
109
|
+
feature_id: String,
|
|
110
|
+
has_soft_limit: bool?,
|
|
111
|
+
has_unlimited_usage: bool?,
|
|
112
|
+
is_visible: bool,
|
|
113
|
+
period: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::period,
|
|
114
|
+
reset_period: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period?,
|
|
115
|
+
reset_period_configuration: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period_configuration?,
|
|
116
|
+
start_date: Time,
|
|
117
|
+
status: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::status,
|
|
118
|
+
updated_at: Time,
|
|
119
|
+
usage_limit: Float?
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
type period =
|
|
123
|
+
:"1 week"
|
|
124
|
+
| :"1 month"
|
|
125
|
+
| :"6 month"
|
|
126
|
+
| :"1 year"
|
|
127
|
+
| :lifetime
|
|
128
|
+
| :custom
|
|
129
|
+
|
|
130
|
+
module Period
|
|
131
|
+
extend Stigg::Internal::Type::Enum
|
|
132
|
+
|
|
133
|
+
PERIOD_1_WEEK: :"1 week"
|
|
134
|
+
PERIOD_1_MONTH: :"1 month"
|
|
135
|
+
PERIOD_6_MONTH: :"6 month"
|
|
136
|
+
PERIOD_1_YEAR: :"1 year"
|
|
137
|
+
LIFETIME: :lifetime
|
|
138
|
+
CUSTOM: :custom
|
|
139
|
+
|
|
140
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::period]
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
type reset_period = :YEAR | :MONTH | :WEEK | :DAY | :HOUR
|
|
144
|
+
|
|
145
|
+
module ResetPeriod
|
|
146
|
+
extend Stigg::Internal::Type::Enum
|
|
147
|
+
|
|
148
|
+
YEAR: :YEAR
|
|
149
|
+
MONTH: :MONTH
|
|
150
|
+
WEEK: :WEEK
|
|
151
|
+
DAY: :DAY
|
|
152
|
+
HOUR: :HOUR
|
|
153
|
+
|
|
154
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period]
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
type reset_period_configuration =
|
|
158
|
+
Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig
|
|
159
|
+
| Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig
|
|
160
|
+
| Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig
|
|
161
|
+
|
|
162
|
+
module ResetPeriodConfiguration
|
|
163
|
+
extend Stigg::Internal::Type::Union
|
|
164
|
+
|
|
165
|
+
type yearly_reset_period_config =
|
|
166
|
+
{
|
|
167
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::according_to
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
class YearlyResetPeriodConfig < Stigg::Internal::Type::BaseModel
|
|
171
|
+
attr_accessor according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::according_to
|
|
172
|
+
|
|
173
|
+
def initialize: (
|
|
174
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::according_to
|
|
175
|
+
) -> void
|
|
176
|
+
|
|
177
|
+
def to_hash: -> {
|
|
178
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::according_to
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
type according_to = :SubscriptionStart
|
|
182
|
+
|
|
183
|
+
module AccordingTo
|
|
184
|
+
extend Stigg::Internal::Type::Enum
|
|
185
|
+
|
|
186
|
+
SUBSCRIPTION_START: :SubscriptionStart
|
|
187
|
+
|
|
188
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::according_to]
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
type monthly_reset_period_config =
|
|
193
|
+
{
|
|
194
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::according_to
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
class MonthlyResetPeriodConfig < Stigg::Internal::Type::BaseModel
|
|
198
|
+
attr_accessor according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::according_to
|
|
199
|
+
|
|
200
|
+
def initialize: (
|
|
201
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::according_to
|
|
202
|
+
) -> void
|
|
203
|
+
|
|
204
|
+
def to_hash: -> {
|
|
205
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::according_to
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
type according_to = :SubscriptionStart | :StartOfTheMonth
|
|
209
|
+
|
|
210
|
+
module AccordingTo
|
|
211
|
+
extend Stigg::Internal::Type::Enum
|
|
212
|
+
|
|
213
|
+
SUBSCRIPTION_START: :SubscriptionStart
|
|
214
|
+
START_OF_THE_MONTH: :StartOfTheMonth
|
|
215
|
+
|
|
216
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::according_to]
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
type weekly_reset_period_config =
|
|
221
|
+
{
|
|
222
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::according_to
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
class WeeklyResetPeriodConfig < Stigg::Internal::Type::BaseModel
|
|
226
|
+
attr_accessor according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::according_to
|
|
227
|
+
|
|
228
|
+
def initialize: (
|
|
229
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::according_to
|
|
230
|
+
) -> void
|
|
231
|
+
|
|
232
|
+
def to_hash: -> {
|
|
233
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::according_to
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
type according_to =
|
|
237
|
+
:SubscriptionStart
|
|
238
|
+
| :EverySunday
|
|
239
|
+
| :EveryMonday
|
|
240
|
+
| :EveryTuesday
|
|
241
|
+
| :EveryWednesday
|
|
242
|
+
| :EveryThursday
|
|
243
|
+
| :EveryFriday
|
|
244
|
+
| :EverySaturday
|
|
245
|
+
|
|
246
|
+
module AccordingTo
|
|
247
|
+
extend Stigg::Internal::Type::Enum
|
|
248
|
+
|
|
249
|
+
SUBSCRIPTION_START: :SubscriptionStart
|
|
250
|
+
EVERY_SUNDAY: :EverySunday
|
|
251
|
+
EVERY_MONDAY: :EveryMonday
|
|
252
|
+
EVERY_TUESDAY: :EveryTuesday
|
|
253
|
+
EVERY_WEDNESDAY: :EveryWednesday
|
|
254
|
+
EVERY_THURSDAY: :EveryThursday
|
|
255
|
+
EVERY_FRIDAY: :EveryFriday
|
|
256
|
+
EVERY_SATURDAY: :EverySaturday
|
|
257
|
+
|
|
258
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::according_to]
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
def self?.variants: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period_configuration]
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
type status = :Active | :Expired | :Paused
|
|
266
|
+
|
|
267
|
+
module Status
|
|
268
|
+
extend Stigg::Internal::Type::Enum
|
|
269
|
+
|
|
270
|
+
ACTIVE: :Active
|
|
271
|
+
EXPIRED: :Expired
|
|
272
|
+
PAUSED: :Paused
|
|
273
|
+
|
|
274
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::status]
|
|
275
|
+
end
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
end
|
|
281
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
type event_report_params =
|
|
5
|
+
{ events: ::Array[Stigg::V1::EventReportParams::Event] }
|
|
6
|
+
& Stigg::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class EventReportParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor events: ::Array[Stigg::V1::EventReportParams::Event]
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
events: ::Array[Stigg::V1::EventReportParams::Event],
|
|
16
|
+
?request_options: Stigg::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
events: ::Array[Stigg::V1::EventReportParams::Event],
|
|
21
|
+
request_options: Stigg::RequestOptions
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type event =
|
|
25
|
+
{
|
|
26
|
+
customer_id: String,
|
|
27
|
+
event_name: String,
|
|
28
|
+
idempotency_key: String,
|
|
29
|
+
dimensions: ::Hash[Symbol, Stigg::Models::V1::EventReportParams::Event::dimension],
|
|
30
|
+
resource_id: String?,
|
|
31
|
+
timestamp: Time
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
class Event < Stigg::Internal::Type::BaseModel
|
|
35
|
+
attr_accessor customer_id: String
|
|
36
|
+
|
|
37
|
+
attr_accessor event_name: String
|
|
38
|
+
|
|
39
|
+
attr_accessor idempotency_key: String
|
|
40
|
+
|
|
41
|
+
attr_reader dimensions: ::Hash[Symbol, Stigg::Models::V1::EventReportParams::Event::dimension]?
|
|
42
|
+
|
|
43
|
+
def dimensions=: (
|
|
44
|
+
::Hash[Symbol, Stigg::Models::V1::EventReportParams::Event::dimension]
|
|
45
|
+
) -> ::Hash[Symbol, Stigg::Models::V1::EventReportParams::Event::dimension]
|
|
46
|
+
|
|
47
|
+
attr_accessor resource_id: String?
|
|
48
|
+
|
|
49
|
+
attr_reader timestamp: Time?
|
|
50
|
+
|
|
51
|
+
def timestamp=: (Time) -> Time
|
|
52
|
+
|
|
53
|
+
def initialize: (
|
|
54
|
+
customer_id: String,
|
|
55
|
+
event_name: String,
|
|
56
|
+
idempotency_key: String,
|
|
57
|
+
?dimensions: ::Hash[Symbol, Stigg::Models::V1::EventReportParams::Event::dimension],
|
|
58
|
+
?resource_id: String?,
|
|
59
|
+
?timestamp: Time
|
|
60
|
+
) -> void
|
|
61
|
+
|
|
62
|
+
def to_hash: -> {
|
|
63
|
+
customer_id: String,
|
|
64
|
+
event_name: String,
|
|
65
|
+
idempotency_key: String,
|
|
66
|
+
dimensions: ::Hash[Symbol, Stigg::Models::V1::EventReportParams::Event::dimension],
|
|
67
|
+
resource_id: String?,
|
|
68
|
+
timestamp: Time
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
type dimension = String | Float | bool
|
|
72
|
+
|
|
73
|
+
module Dimension
|
|
74
|
+
extend Stigg::Internal::Type::Union
|
|
75
|
+
|
|
76
|
+
def self?.variants: -> ::Array[Stigg::Models::V1::EventReportParams::Event::dimension]
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
type event_report_response = { data: top }
|
|
5
|
+
|
|
6
|
+
class EventReportResponse < Stigg::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor data: top
|
|
8
|
+
|
|
9
|
+
def initialize: (data: top) -> void
|
|
10
|
+
|
|
11
|
+
def to_hash: -> { data: top }
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|