stigg 0.1.0.pre.alpha.1 → 0.1.0.pre.alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/README.md +29 -1
- data/lib/stigg/internal/my_cursor_id_page.rb +32 -4
- data/lib/stigg/internal/type/base_model.rb +2 -2
- data/lib/stigg/models/v1/{coupon_create_response.rb → coupon.rb} +31 -26
- data/lib/stigg/models/v1/coupon_create_params.rb +2 -0
- 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/customer_import_params.rb +75 -0
- data/lib/stigg/models/v1/customer_import_response.rb +35 -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_create_params.rb → customer_provision_params.rb} +18 -16
- data/lib/stigg/models/v1/customer_response.rb +9 -2
- 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/customers/{promotional_create_params.rb → promotional_entitlement_grant_params.rb} +46 -44
- data/lib/stigg/models/v1/customers/{promotional_create_response.rb → promotional_entitlement_grant_response.rb} +105 -32
- data/lib/stigg/models/v1/customers/{promotional_revoke_params.rb → promotional_entitlement_revoke_params.rb} +2 -2
- data/lib/stigg/models/v1/customers/{promotional_revoke_response.rb → promotional_entitlement_revoke_response.rb} +107 -33
- 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} +67 -26
- data/lib/stigg/models/v1/subscription_cancel_params.rb +75 -0
- data/lib/stigg/models/v1/subscription_delegate_params.rb +7 -2
- 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_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_preview_params.rb +139 -46
- data/lib/stigg/models/v1/subscription_preview_response.rb +164 -49
- data/lib/stigg/models/v1/subscription_provision_params.rb +1693 -0
- data/lib/stigg/models/v1/subscription_provision_response.rb +1038 -0
- data/lib/stigg/models/v1/subscription_transfer_params.rb +2 -6
- 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} +9 -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 +16 -14
- data/lib/stigg/resources/v1/customers/payment_method.rb +6 -5
- data/lib/stigg/resources/v1/customers/{promotional.rb → promotional_entitlements.rb} +17 -17
- data/lib/stigg/resources/v1/customers.rb +78 -56
- data/lib/stigg/resources/v1/events.rb +38 -0
- data/lib/stigg/resources/v1/subscriptions/future_update.rb +10 -8
- data/lib/stigg/resources/v1/subscriptions.rb +206 -79
- 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 -23
- data/rbi/stigg/internal/my_cursor_id_page.rbi +27 -0
- data/rbi/stigg/models/v1/coupon.rbi +891 -0
- data/rbi/stigg/models/v1/coupon_create_params.rbi +1 -0
- 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/customer_import_params.rbi +130 -0
- data/rbi/stigg/models/v1/customer_import_response.rbi +76 -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_create_params.rbi → customer_provision_params.rbi} +36 -35
- 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/customers/{promotional_create_params.rbi → promotional_entitlement_grant_params.rbi} +78 -77
- data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_response.rbi +690 -0
- data/rbi/stigg/models/v1/customers/{promotional_revoke_params.rbi → promotional_entitlement_revoke_params.rbi} +2 -2
- 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} +130 -98
- data/rbi/stigg/models/v1/subscription_cancel_params.rbi +182 -0
- data/rbi/stigg/models/v1/subscription_delegate_params.rbi +6 -2
- 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_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_preview_params.rbi +112 -14
- data/rbi/stigg/models/v1/subscription_preview_response.rbi +139 -6
- data/rbi/stigg/models/v1/subscription_provision_params.rbi +5306 -0
- data/rbi/stigg/models/v1/subscription_provision_response.rbi +3175 -0
- data/rbi/stigg/models/v1/subscription_transfer_params.rbi +2 -4
- 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} +10 -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 +22 -14
- data/rbi/stigg/resources/v1/customers/payment_method.rbi +9 -3
- data/rbi/stigg/resources/v1/customers/{promotional.rbi → promotional_entitlements.rbi} +13 -9
- data/rbi/stigg/resources/v1/customers.rbi +84 -53
- data/rbi/stigg/resources/v1/events.rbi +28 -0
- data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +14 -10
- data/rbi/stigg/resources/v1/subscriptions.rbi +242 -58
- data/rbi/stigg/resources/v1/usage.rbi +57 -0
- data/rbi/stigg/resources/v1.rbi +4 -26
- data/sig/stigg/internal/my_cursor_id_page.rbs +17 -0
- data/sig/stigg/models/v1/{coupon_create_response.rbs → coupon.rbs} +29 -32
- 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/customer_import_params.rbs +74 -0
- data/sig/stigg/models/v1/customer_import_response.rbs +30 -0
- 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/{customer_create_params.rbs → customer_provision_params.rbs} +22 -22
- data/sig/stigg/models/v1/customers/{promotional_create_params.rbs → promotional_entitlement_grant_params.rbs} +43 -43
- data/sig/stigg/models/v1/customers/promotional_entitlement_grant_response.rbs +281 -0
- data/sig/stigg/models/v1/customers/{promotional_revoke_params.rbs → promotional_entitlement_revoke_params.rbs} +2 -2
- 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} +61 -35
- 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_list_params.rbs +14 -14
- data/sig/stigg/models/v1/subscription_list_response.rbs +196 -189
- data/sig/stigg/models/v1/subscription_preview_params.rbs +2 -6
- data/sig/stigg/models/v1/subscription_provision_params.rbs +2223 -0
- data/sig/stigg/models/v1/subscription_provision_response.rbs +1305 -0
- 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 +5 -5
- data/sig/stigg/resources/v1/customers/{promotional.rbs → promotional_entitlements.rbs} +5 -5
- data/sig/stigg/resources/v1/customers.rbs +20 -17
- 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 +68 -20
- data/sig/stigg/resources/v1/usage.rbs +24 -0
- data/sig/stigg/resources/v1.rbs +2 -8
- metadata +77 -71
- data/lib/stigg/models/v1/coupon_retrieve_response.rb +0 -317
- 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/models/v1/subscription_create_params.rb +0 -214
- data/lib/stigg/models/v1/subscription_create_response.rb +0 -338
- data/lib/stigg/models/v1/subscription_delegate_response.rb +0 -274
- data/lib/stigg/models/v1/subscription_migrate_response.rb +0 -274
- data/lib/stigg/models/v1/subscription_transfer_response.rb +0 -274
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +0 -32
- data/lib/stigg/models/v1_create_event_params.rb +0 -87
- data/lib/stigg/models/v1_create_event_response.rb +0 -16
- data/lib/stigg/models/v1_create_usage_params.rb +0 -96
- data/lib/stigg/models/v1_create_usage_response.rb +0 -112
- data/lib/stigg/resources/v1/customers/usage.rb +0 -59
- data/rbi/stigg/models/v1/coupon_create_response.rbi +0 -986
- data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +0 -986
- data/rbi/stigg/models/v1/customers/promotional_create_response.rbi +0 -495
- 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/models/v1/subscription_create_params.rbi +0 -394
- data/rbi/stigg/models/v1/subscription_create_response.rbi +0 -668
- data/rbi/stigg/models/v1/subscription_delegate_response.rbi +0 -535
- data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +0 -535
- data/rbi/stigg/models/v1/subscription_transfer_response.rbi +0 -535
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +0 -79
- data/rbi/stigg/models/v1_create_event_params.rbi +0 -160
- data/rbi/stigg/models/v1_create_event_response.rbi +0 -23
- data/rbi/stigg/models/v1_create_usage_params.rbi +0 -177
- data/rbi/stigg/models/v1_create_usage_response.rbi +0 -150
- data/rbi/stigg/resources/v1/customers/usage.rbi +0 -45
- data/sig/stigg/models/v1/coupon_retrieve_response.rbs +0 -394
- data/sig/stigg/models/v1/customers/promotional_create_response.rbs +0 -209
- 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/models/v1/subscription_create_params.rbs +0 -199
- data/sig/stigg/models/v1/subscription_create_response.rbs +0 -283
- data/sig/stigg/models/v1/subscription_delegate_response.rbs +0 -224
- data/sig/stigg/models/v1/subscription_migrate_response.rbs +0 -224
- data/sig/stigg/models/v1/subscription_transfer_response.rbs +0 -224
- 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 -90
- data/sig/stigg/models/v1_create_usage_response.rbs +0 -85
- data/sig/stigg/resources/v1/customers/usage.rbs +0 -21
|
@@ -4,14 +4,14 @@ module Stigg
|
|
|
4
4
|
module Models
|
|
5
5
|
module V1
|
|
6
6
|
module Customers
|
|
7
|
-
class
|
|
7
|
+
class PromotionalEntitlementGrantParams < Stigg::Internal::Type::BaseModel
|
|
8
8
|
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Stigg::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
OrHash =
|
|
12
12
|
T.type_alias do
|
|
13
13
|
T.any(
|
|
14
|
-
Stigg::V1::Customers::
|
|
14
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams,
|
|
15
15
|
Stigg::Internal::AnyHash
|
|
16
16
|
)
|
|
17
17
|
end
|
|
@@ -20,7 +20,7 @@ module Stigg
|
|
|
20
20
|
sig do
|
|
21
21
|
returns(
|
|
22
22
|
T::Array[
|
|
23
|
-
Stigg::V1::Customers::
|
|
23
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement
|
|
24
24
|
]
|
|
25
25
|
)
|
|
26
26
|
end
|
|
@@ -30,7 +30,7 @@ module Stigg
|
|
|
30
30
|
params(
|
|
31
31
|
promotional_entitlements:
|
|
32
32
|
T::Array[
|
|
33
|
-
Stigg::V1::Customers::
|
|
33
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::OrHash
|
|
34
34
|
],
|
|
35
35
|
request_options: Stigg::RequestOptions::OrHash
|
|
36
36
|
).returns(T.attached_class)
|
|
@@ -47,7 +47,7 @@ module Stigg
|
|
|
47
47
|
{
|
|
48
48
|
promotional_entitlements:
|
|
49
49
|
T::Array[
|
|
50
|
-
Stigg::V1::Customers::
|
|
50
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement
|
|
51
51
|
],
|
|
52
52
|
request_options: Stigg::RequestOptions
|
|
53
53
|
}
|
|
@@ -60,7 +60,7 @@ module Stigg
|
|
|
60
60
|
OrHash =
|
|
61
61
|
T.type_alias do
|
|
62
62
|
T.any(
|
|
63
|
-
Stigg::V1::Customers::
|
|
63
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement,
|
|
64
64
|
Stigg::Internal::AnyHash
|
|
65
65
|
)
|
|
66
66
|
end
|
|
@@ -94,7 +94,7 @@ module Stigg
|
|
|
94
94
|
sig do
|
|
95
95
|
returns(
|
|
96
96
|
T.nilable(
|
|
97
|
-
Stigg::V1::Customers::
|
|
97
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration
|
|
98
98
|
)
|
|
99
99
|
)
|
|
100
100
|
end
|
|
@@ -104,7 +104,7 @@ module Stigg
|
|
|
104
104
|
params(
|
|
105
105
|
monthly_reset_period_configuration:
|
|
106
106
|
T.nilable(
|
|
107
|
-
Stigg::V1::Customers::
|
|
107
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::OrHash
|
|
108
108
|
)
|
|
109
109
|
).void
|
|
110
110
|
end
|
|
@@ -113,7 +113,7 @@ module Stigg
|
|
|
113
113
|
# The grant period of the promotional entitlement
|
|
114
114
|
sig do
|
|
115
115
|
returns(
|
|
116
|
-
Stigg::V1::Customers::
|
|
116
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period::OrSymbol
|
|
117
117
|
)
|
|
118
118
|
end
|
|
119
119
|
attr_accessor :period
|
|
@@ -122,7 +122,7 @@ module Stigg
|
|
|
122
122
|
sig do
|
|
123
123
|
returns(
|
|
124
124
|
T.nilable(
|
|
125
|
-
Stigg::V1::Customers::
|
|
125
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod::OrSymbol
|
|
126
126
|
)
|
|
127
127
|
)
|
|
128
128
|
end
|
|
@@ -137,7 +137,7 @@ module Stigg
|
|
|
137
137
|
sig do
|
|
138
138
|
returns(
|
|
139
139
|
T.nilable(
|
|
140
|
-
Stigg::V1::Customers::
|
|
140
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration
|
|
141
141
|
)
|
|
142
142
|
)
|
|
143
143
|
end
|
|
@@ -147,7 +147,7 @@ module Stigg
|
|
|
147
147
|
params(
|
|
148
148
|
weekly_reset_period_configuration:
|
|
149
149
|
T.nilable(
|
|
150
|
-
Stigg::V1::Customers::
|
|
150
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::OrHash
|
|
151
151
|
)
|
|
152
152
|
).void
|
|
153
153
|
end
|
|
@@ -158,7 +158,7 @@ module Stigg
|
|
|
158
158
|
sig do
|
|
159
159
|
returns(
|
|
160
160
|
T.nilable(
|
|
161
|
-
Stigg::V1::Customers::
|
|
161
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration
|
|
162
162
|
)
|
|
163
163
|
)
|
|
164
164
|
end
|
|
@@ -168,12 +168,13 @@ module Stigg
|
|
|
168
168
|
params(
|
|
169
169
|
yearly_reset_period_configuration:
|
|
170
170
|
T.nilable(
|
|
171
|
-
Stigg::V1::Customers::
|
|
171
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::OrHash
|
|
172
172
|
)
|
|
173
173
|
).void
|
|
174
174
|
end
|
|
175
175
|
attr_writer :yearly_reset_period_configuration
|
|
176
176
|
|
|
177
|
+
# Single entitlement grant config
|
|
177
178
|
sig do
|
|
178
179
|
params(
|
|
179
180
|
custom_end_date: T.nilable(Time),
|
|
@@ -184,22 +185,22 @@ module Stigg
|
|
|
184
185
|
is_visible: T.nilable(T::Boolean),
|
|
185
186
|
monthly_reset_period_configuration:
|
|
186
187
|
T.nilable(
|
|
187
|
-
Stigg::V1::Customers::
|
|
188
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::OrHash
|
|
188
189
|
),
|
|
189
190
|
period:
|
|
190
|
-
Stigg::V1::Customers::
|
|
191
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period::OrSymbol,
|
|
191
192
|
reset_period:
|
|
192
193
|
T.nilable(
|
|
193
|
-
Stigg::V1::Customers::
|
|
194
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod::OrSymbol
|
|
194
195
|
),
|
|
195
196
|
usage_limit: T.nilable(Integer),
|
|
196
197
|
weekly_reset_period_configuration:
|
|
197
198
|
T.nilable(
|
|
198
|
-
Stigg::V1::Customers::
|
|
199
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::OrHash
|
|
199
200
|
),
|
|
200
201
|
yearly_reset_period_configuration:
|
|
201
202
|
T.nilable(
|
|
202
|
-
Stigg::V1::Customers::
|
|
203
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::OrHash
|
|
203
204
|
)
|
|
204
205
|
).returns(T.attached_class)
|
|
205
206
|
end
|
|
@@ -245,22 +246,22 @@ module Stigg
|
|
|
245
246
|
is_visible: T.nilable(T::Boolean),
|
|
246
247
|
monthly_reset_period_configuration:
|
|
247
248
|
T.nilable(
|
|
248
|
-
Stigg::V1::Customers::
|
|
249
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration
|
|
249
250
|
),
|
|
250
251
|
period:
|
|
251
|
-
Stigg::V1::Customers::
|
|
252
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period::OrSymbol,
|
|
252
253
|
reset_period:
|
|
253
254
|
T.nilable(
|
|
254
|
-
Stigg::V1::Customers::
|
|
255
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod::OrSymbol
|
|
255
256
|
),
|
|
256
257
|
usage_limit: T.nilable(Integer),
|
|
257
258
|
weekly_reset_period_configuration:
|
|
258
259
|
T.nilable(
|
|
259
|
-
Stigg::V1::Customers::
|
|
260
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration
|
|
260
261
|
),
|
|
261
262
|
yearly_reset_period_configuration:
|
|
262
263
|
T.nilable(
|
|
263
|
-
Stigg::V1::Customers::
|
|
264
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration
|
|
264
265
|
)
|
|
265
266
|
}
|
|
266
267
|
)
|
|
@@ -272,15 +273,15 @@ module Stigg
|
|
|
272
273
|
OrHash =
|
|
273
274
|
T.type_alias do
|
|
274
275
|
T.any(
|
|
275
|
-
Stigg::V1::Customers::
|
|
276
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration,
|
|
276
277
|
Stigg::Internal::AnyHash
|
|
277
278
|
)
|
|
278
279
|
end
|
|
279
280
|
|
|
280
|
-
#
|
|
281
|
+
# Reset anchor (SubscriptionStart or StartOfTheMonth)
|
|
281
282
|
sig do
|
|
282
283
|
returns(
|
|
283
|
-
Stigg::V1::Customers::
|
|
284
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
284
285
|
)
|
|
285
286
|
end
|
|
286
287
|
attr_accessor :according_to
|
|
@@ -290,11 +291,11 @@ module Stigg
|
|
|
290
291
|
sig do
|
|
291
292
|
params(
|
|
292
293
|
according_to:
|
|
293
|
-
Stigg::V1::Customers::
|
|
294
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
294
295
|
).returns(T.attached_class)
|
|
295
296
|
end
|
|
296
297
|
def self.new(
|
|
297
|
-
#
|
|
298
|
+
# Reset anchor (SubscriptionStart or StartOfTheMonth)
|
|
298
299
|
according_to:
|
|
299
300
|
)
|
|
300
301
|
end
|
|
@@ -303,14 +304,14 @@ module Stigg
|
|
|
303
304
|
override.returns(
|
|
304
305
|
{
|
|
305
306
|
according_to:
|
|
306
|
-
Stigg::V1::Customers::
|
|
307
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
307
308
|
}
|
|
308
309
|
)
|
|
309
310
|
end
|
|
310
311
|
def to_hash
|
|
311
312
|
end
|
|
312
313
|
|
|
313
|
-
#
|
|
314
|
+
# Reset anchor (SubscriptionStart or StartOfTheMonth)
|
|
314
315
|
module AccordingTo
|
|
315
316
|
extend Stigg::Internal::Type::Enum
|
|
316
317
|
|
|
@@ -318,7 +319,7 @@ module Stigg
|
|
|
318
319
|
T.type_alias do
|
|
319
320
|
T.all(
|
|
320
321
|
Symbol,
|
|
321
|
-
Stigg::V1::Customers::
|
|
322
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo
|
|
322
323
|
)
|
|
323
324
|
end
|
|
324
325
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -326,18 +327,18 @@ module Stigg
|
|
|
326
327
|
SUBSCRIPTION_START =
|
|
327
328
|
T.let(
|
|
328
329
|
:SubscriptionStart,
|
|
329
|
-
Stigg::V1::Customers::
|
|
330
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
330
331
|
)
|
|
331
332
|
START_OF_THE_MONTH =
|
|
332
333
|
T.let(
|
|
333
334
|
:StartOfTheMonth,
|
|
334
|
-
Stigg::V1::Customers::
|
|
335
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
335
336
|
)
|
|
336
337
|
|
|
337
338
|
sig do
|
|
338
339
|
override.returns(
|
|
339
340
|
T::Array[
|
|
340
|
-
Stigg::V1::Customers::
|
|
341
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
341
342
|
]
|
|
342
343
|
)
|
|
343
344
|
end
|
|
@@ -354,7 +355,7 @@ module Stigg
|
|
|
354
355
|
T.type_alias do
|
|
355
356
|
T.all(
|
|
356
357
|
Symbol,
|
|
357
|
-
Stigg::V1::Customers::
|
|
358
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period
|
|
358
359
|
)
|
|
359
360
|
end
|
|
360
361
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -362,38 +363,38 @@ module Stigg
|
|
|
362
363
|
PERIOD_1_WEEK =
|
|
363
364
|
T.let(
|
|
364
365
|
:"1 week",
|
|
365
|
-
Stigg::V1::Customers::
|
|
366
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period::TaggedSymbol
|
|
366
367
|
)
|
|
367
368
|
PERIOD_1_MONTH =
|
|
368
369
|
T.let(
|
|
369
370
|
:"1 month",
|
|
370
|
-
Stigg::V1::Customers::
|
|
371
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period::TaggedSymbol
|
|
371
372
|
)
|
|
372
373
|
PERIOD_6_MONTH =
|
|
373
374
|
T.let(
|
|
374
375
|
:"6 month",
|
|
375
|
-
Stigg::V1::Customers::
|
|
376
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period::TaggedSymbol
|
|
376
377
|
)
|
|
377
378
|
PERIOD_1_YEAR =
|
|
378
379
|
T.let(
|
|
379
380
|
:"1 year",
|
|
380
|
-
Stigg::V1::Customers::
|
|
381
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period::TaggedSymbol
|
|
381
382
|
)
|
|
382
383
|
LIFETIME =
|
|
383
384
|
T.let(
|
|
384
385
|
:lifetime,
|
|
385
|
-
Stigg::V1::Customers::
|
|
386
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period::TaggedSymbol
|
|
386
387
|
)
|
|
387
388
|
CUSTOM =
|
|
388
389
|
T.let(
|
|
389
390
|
:custom,
|
|
390
|
-
Stigg::V1::Customers::
|
|
391
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period::TaggedSymbol
|
|
391
392
|
)
|
|
392
393
|
|
|
393
394
|
sig do
|
|
394
395
|
override.returns(
|
|
395
396
|
T::Array[
|
|
396
|
-
Stigg::V1::Customers::
|
|
397
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period::TaggedSymbol
|
|
397
398
|
]
|
|
398
399
|
)
|
|
399
400
|
end
|
|
@@ -409,7 +410,7 @@ module Stigg
|
|
|
409
410
|
T.type_alias do
|
|
410
411
|
T.all(
|
|
411
412
|
Symbol,
|
|
412
|
-
Stigg::V1::Customers::
|
|
413
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod
|
|
413
414
|
)
|
|
414
415
|
end
|
|
415
416
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -417,33 +418,33 @@ module Stigg
|
|
|
417
418
|
YEAR =
|
|
418
419
|
T.let(
|
|
419
420
|
:YEAR,
|
|
420
|
-
Stigg::V1::Customers::
|
|
421
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod::TaggedSymbol
|
|
421
422
|
)
|
|
422
423
|
MONTH =
|
|
423
424
|
T.let(
|
|
424
425
|
:MONTH,
|
|
425
|
-
Stigg::V1::Customers::
|
|
426
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod::TaggedSymbol
|
|
426
427
|
)
|
|
427
428
|
WEEK =
|
|
428
429
|
T.let(
|
|
429
430
|
:WEEK,
|
|
430
|
-
Stigg::V1::Customers::
|
|
431
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod::TaggedSymbol
|
|
431
432
|
)
|
|
432
433
|
DAY =
|
|
433
434
|
T.let(
|
|
434
435
|
:DAY,
|
|
435
|
-
Stigg::V1::Customers::
|
|
436
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod::TaggedSymbol
|
|
436
437
|
)
|
|
437
438
|
HOUR =
|
|
438
439
|
T.let(
|
|
439
440
|
:HOUR,
|
|
440
|
-
Stigg::V1::Customers::
|
|
441
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod::TaggedSymbol
|
|
441
442
|
)
|
|
442
443
|
|
|
443
444
|
sig do
|
|
444
445
|
override.returns(
|
|
445
446
|
T::Array[
|
|
446
|
-
Stigg::V1::Customers::
|
|
447
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod::TaggedSymbol
|
|
447
448
|
]
|
|
448
449
|
)
|
|
449
450
|
end
|
|
@@ -455,15 +456,15 @@ module Stigg
|
|
|
455
456
|
OrHash =
|
|
456
457
|
T.type_alias do
|
|
457
458
|
T.any(
|
|
458
|
-
Stigg::V1::Customers::
|
|
459
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration,
|
|
459
460
|
Stigg::Internal::AnyHash
|
|
460
461
|
)
|
|
461
462
|
end
|
|
462
463
|
|
|
463
|
-
#
|
|
464
|
+
# Reset anchor (SubscriptionStart or specific day)
|
|
464
465
|
sig do
|
|
465
466
|
returns(
|
|
466
|
-
Stigg::V1::Customers::
|
|
467
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
467
468
|
)
|
|
468
469
|
end
|
|
469
470
|
attr_accessor :according_to
|
|
@@ -473,11 +474,11 @@ module Stigg
|
|
|
473
474
|
sig do
|
|
474
475
|
params(
|
|
475
476
|
according_to:
|
|
476
|
-
Stigg::V1::Customers::
|
|
477
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
477
478
|
).returns(T.attached_class)
|
|
478
479
|
end
|
|
479
480
|
def self.new(
|
|
480
|
-
#
|
|
481
|
+
# Reset anchor (SubscriptionStart or specific day)
|
|
481
482
|
according_to:
|
|
482
483
|
)
|
|
483
484
|
end
|
|
@@ -486,14 +487,14 @@ module Stigg
|
|
|
486
487
|
override.returns(
|
|
487
488
|
{
|
|
488
489
|
according_to:
|
|
489
|
-
Stigg::V1::Customers::
|
|
490
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
490
491
|
}
|
|
491
492
|
)
|
|
492
493
|
end
|
|
493
494
|
def to_hash
|
|
494
495
|
end
|
|
495
496
|
|
|
496
|
-
#
|
|
497
|
+
# Reset anchor (SubscriptionStart or specific day)
|
|
497
498
|
module AccordingTo
|
|
498
499
|
extend Stigg::Internal::Type::Enum
|
|
499
500
|
|
|
@@ -501,7 +502,7 @@ module Stigg
|
|
|
501
502
|
T.type_alias do
|
|
502
503
|
T.all(
|
|
503
504
|
Symbol,
|
|
504
|
-
Stigg::V1::Customers::
|
|
505
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo
|
|
505
506
|
)
|
|
506
507
|
end
|
|
507
508
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -509,48 +510,48 @@ module Stigg
|
|
|
509
510
|
SUBSCRIPTION_START =
|
|
510
511
|
T.let(
|
|
511
512
|
:SubscriptionStart,
|
|
512
|
-
Stigg::V1::Customers::
|
|
513
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
513
514
|
)
|
|
514
515
|
EVERY_SUNDAY =
|
|
515
516
|
T.let(
|
|
516
517
|
:EverySunday,
|
|
517
|
-
Stigg::V1::Customers::
|
|
518
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
518
519
|
)
|
|
519
520
|
EVERY_MONDAY =
|
|
520
521
|
T.let(
|
|
521
522
|
:EveryMonday,
|
|
522
|
-
Stigg::V1::Customers::
|
|
523
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
523
524
|
)
|
|
524
525
|
EVERY_TUESDAY =
|
|
525
526
|
T.let(
|
|
526
527
|
:EveryTuesday,
|
|
527
|
-
Stigg::V1::Customers::
|
|
528
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
528
529
|
)
|
|
529
530
|
EVERY_WEDNESDAY =
|
|
530
531
|
T.let(
|
|
531
532
|
:EveryWednesday,
|
|
532
|
-
Stigg::V1::Customers::
|
|
533
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
533
534
|
)
|
|
534
535
|
EVERY_THURSDAY =
|
|
535
536
|
T.let(
|
|
536
537
|
:EveryThursday,
|
|
537
|
-
Stigg::V1::Customers::
|
|
538
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
538
539
|
)
|
|
539
540
|
EVERY_FRIDAY =
|
|
540
541
|
T.let(
|
|
541
542
|
:EveryFriday,
|
|
542
|
-
Stigg::V1::Customers::
|
|
543
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
543
544
|
)
|
|
544
545
|
EVERY_SATURDAY =
|
|
545
546
|
T.let(
|
|
546
547
|
:EverySaturday,
|
|
547
|
-
Stigg::V1::Customers::
|
|
548
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
548
549
|
)
|
|
549
550
|
|
|
550
551
|
sig do
|
|
551
552
|
override.returns(
|
|
552
553
|
T::Array[
|
|
553
|
-
Stigg::V1::Customers::
|
|
554
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
554
555
|
]
|
|
555
556
|
)
|
|
556
557
|
end
|
|
@@ -563,15 +564,15 @@ module Stigg
|
|
|
563
564
|
OrHash =
|
|
564
565
|
T.type_alias do
|
|
565
566
|
T.any(
|
|
566
|
-
Stigg::V1::Customers::
|
|
567
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration,
|
|
567
568
|
Stigg::Internal::AnyHash
|
|
568
569
|
)
|
|
569
570
|
end
|
|
570
571
|
|
|
571
|
-
#
|
|
572
|
+
# Reset anchor (SubscriptionStart)
|
|
572
573
|
sig do
|
|
573
574
|
returns(
|
|
574
|
-
Stigg::V1::Customers::
|
|
575
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
575
576
|
)
|
|
576
577
|
end
|
|
577
578
|
attr_accessor :according_to
|
|
@@ -581,11 +582,11 @@ module Stigg
|
|
|
581
582
|
sig do
|
|
582
583
|
params(
|
|
583
584
|
according_to:
|
|
584
|
-
Stigg::V1::Customers::
|
|
585
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
585
586
|
).returns(T.attached_class)
|
|
586
587
|
end
|
|
587
588
|
def self.new(
|
|
588
|
-
#
|
|
589
|
+
# Reset anchor (SubscriptionStart)
|
|
589
590
|
according_to:
|
|
590
591
|
)
|
|
591
592
|
end
|
|
@@ -594,14 +595,14 @@ module Stigg
|
|
|
594
595
|
override.returns(
|
|
595
596
|
{
|
|
596
597
|
according_to:
|
|
597
|
-
Stigg::V1::Customers::
|
|
598
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo::OrSymbol
|
|
598
599
|
}
|
|
599
600
|
)
|
|
600
601
|
end
|
|
601
602
|
def to_hash
|
|
602
603
|
end
|
|
603
604
|
|
|
604
|
-
#
|
|
605
|
+
# Reset anchor (SubscriptionStart)
|
|
605
606
|
module AccordingTo
|
|
606
607
|
extend Stigg::Internal::Type::Enum
|
|
607
608
|
|
|
@@ -609,7 +610,7 @@ module Stigg
|
|
|
609
610
|
T.type_alias do
|
|
610
611
|
T.all(
|
|
611
612
|
Symbol,
|
|
612
|
-
Stigg::V1::Customers::
|
|
613
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo
|
|
613
614
|
)
|
|
614
615
|
end
|
|
615
616
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -617,13 +618,13 @@ module Stigg
|
|
|
617
618
|
SUBSCRIPTION_START =
|
|
618
619
|
T.let(
|
|
619
620
|
:SubscriptionStart,
|
|
620
|
-
Stigg::V1::Customers::
|
|
621
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
621
622
|
)
|
|
622
623
|
|
|
623
624
|
sig do
|
|
624
625
|
override.returns(
|
|
625
626
|
T::Array[
|
|
626
|
-
Stigg::V1::Customers::
|
|
627
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo::TaggedSymbol
|
|
627
628
|
]
|
|
628
629
|
)
|
|
629
630
|
end
|