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,296 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Customers
|
|
7
|
+
# @see Stigg::Resources::V1::Customers::PromotionalEntitlements#grant
|
|
8
|
+
class PromotionalEntitlementGrantParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute promotional_entitlements
|
|
13
|
+
# Promotional entitlements to grant
|
|
14
|
+
#
|
|
15
|
+
# @return [Array<Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement>]
|
|
16
|
+
required :promotional_entitlements,
|
|
17
|
+
-> {
|
|
18
|
+
Stigg::Internal::Type::ArrayOf[Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement]
|
|
19
|
+
},
|
|
20
|
+
api_name: :promotionalEntitlements
|
|
21
|
+
|
|
22
|
+
# @!method initialize(promotional_entitlements:, request_options: {})
|
|
23
|
+
# @param promotional_entitlements [Array<Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement>] Promotional entitlements to grant
|
|
24
|
+
#
|
|
25
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
26
|
+
|
|
27
|
+
class PromotionalEntitlement < Stigg::Internal::Type::BaseModel
|
|
28
|
+
# @!attribute custom_end_date
|
|
29
|
+
# The custom end date of the promotional entitlement
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
required :custom_end_date, Time, api_name: :customEndDate, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute enum_values
|
|
35
|
+
# The enum values of the entitlement
|
|
36
|
+
#
|
|
37
|
+
# @return [Array<String>, nil]
|
|
38
|
+
required :enum_values, Stigg::Internal::Type::ArrayOf[String], api_name: :enumValues, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!attribute feature_id
|
|
41
|
+
# The unique identifier of the entitlement feature
|
|
42
|
+
#
|
|
43
|
+
# @return [String]
|
|
44
|
+
required :feature_id, String, api_name: :featureId
|
|
45
|
+
|
|
46
|
+
# @!attribute has_soft_limit
|
|
47
|
+
# Whether the entitlement has a soft limit
|
|
48
|
+
#
|
|
49
|
+
# @return [Boolean, nil]
|
|
50
|
+
required :has_soft_limit, Stigg::Internal::Type::Boolean, api_name: :hasSoftLimit, nil?: true
|
|
51
|
+
|
|
52
|
+
# @!attribute has_unlimited_usage
|
|
53
|
+
# Whether the entitlement has an unlimited usage
|
|
54
|
+
#
|
|
55
|
+
# @return [Boolean, nil]
|
|
56
|
+
required :has_unlimited_usage,
|
|
57
|
+
Stigg::Internal::Type::Boolean,
|
|
58
|
+
api_name: :hasUnlimitedUsage,
|
|
59
|
+
nil?: true
|
|
60
|
+
|
|
61
|
+
# @!attribute is_visible
|
|
62
|
+
# Whether the entitlement is visible
|
|
63
|
+
#
|
|
64
|
+
# @return [Boolean, nil]
|
|
65
|
+
required :is_visible, Stigg::Internal::Type::Boolean, api_name: :isVisible, nil?: true
|
|
66
|
+
|
|
67
|
+
# @!attribute monthly_reset_period_configuration
|
|
68
|
+
# The monthly reset period configuration of the entitlement, defined when reset
|
|
69
|
+
# period is monthly
|
|
70
|
+
#
|
|
71
|
+
# @return [Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration, nil]
|
|
72
|
+
required :monthly_reset_period_configuration,
|
|
73
|
+
-> {
|
|
74
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration
|
|
75
|
+
},
|
|
76
|
+
api_name: :monthlyResetPeriodConfiguration,
|
|
77
|
+
nil?: true
|
|
78
|
+
|
|
79
|
+
# @!attribute period
|
|
80
|
+
# The grant period of the promotional entitlement
|
|
81
|
+
#
|
|
82
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period]
|
|
83
|
+
required :period,
|
|
84
|
+
enum: -> { Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period }
|
|
85
|
+
|
|
86
|
+
# @!attribute reset_period
|
|
87
|
+
# The reset period of the entitlement
|
|
88
|
+
#
|
|
89
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod, nil]
|
|
90
|
+
required :reset_period,
|
|
91
|
+
enum: -> {
|
|
92
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod
|
|
93
|
+
},
|
|
94
|
+
api_name: :resetPeriod,
|
|
95
|
+
nil?: true
|
|
96
|
+
|
|
97
|
+
# @!attribute usage_limit
|
|
98
|
+
# The usage limit of the entitlement
|
|
99
|
+
#
|
|
100
|
+
# @return [Integer, nil]
|
|
101
|
+
required :usage_limit, Integer, api_name: :usageLimit, nil?: true
|
|
102
|
+
|
|
103
|
+
# @!attribute weekly_reset_period_configuration
|
|
104
|
+
# The weekly reset period configuration of the entitlement, defined when reset
|
|
105
|
+
# period is weekly
|
|
106
|
+
#
|
|
107
|
+
# @return [Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration, nil]
|
|
108
|
+
required :weekly_reset_period_configuration,
|
|
109
|
+
-> {
|
|
110
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration
|
|
111
|
+
},
|
|
112
|
+
api_name: :weeklyResetPeriodConfiguration,
|
|
113
|
+
nil?: true
|
|
114
|
+
|
|
115
|
+
# @!attribute yearly_reset_period_configuration
|
|
116
|
+
# The yearly reset period configuration of the entitlement, defined when reset
|
|
117
|
+
# period is yearly
|
|
118
|
+
#
|
|
119
|
+
# @return [Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration, nil]
|
|
120
|
+
required :yearly_reset_period_configuration,
|
|
121
|
+
-> {
|
|
122
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration
|
|
123
|
+
},
|
|
124
|
+
api_name: :yearlyResetPeriodConfiguration,
|
|
125
|
+
nil?: true
|
|
126
|
+
|
|
127
|
+
# @!method initialize(custom_end_date:, enum_values:, feature_id:, has_soft_limit:, has_unlimited_usage:, is_visible:, monthly_reset_period_configuration:, period:, reset_period:, usage_limit:, weekly_reset_period_configuration:, yearly_reset_period_configuration:)
|
|
128
|
+
# Some parameter documentations has been truncated, see
|
|
129
|
+
# {Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement}
|
|
130
|
+
# for more details.
|
|
131
|
+
#
|
|
132
|
+
# Single entitlement grant config
|
|
133
|
+
#
|
|
134
|
+
# @param custom_end_date [Time, nil] The custom end date of the promotional entitlement
|
|
135
|
+
#
|
|
136
|
+
# @param enum_values [Array<String>, nil] The enum values of the entitlement
|
|
137
|
+
#
|
|
138
|
+
# @param feature_id [String] The unique identifier of the entitlement feature
|
|
139
|
+
#
|
|
140
|
+
# @param has_soft_limit [Boolean, nil] Whether the entitlement has a soft limit
|
|
141
|
+
#
|
|
142
|
+
# @param has_unlimited_usage [Boolean, nil] Whether the entitlement has an unlimited usage
|
|
143
|
+
#
|
|
144
|
+
# @param is_visible [Boolean, nil] Whether the entitlement is visible
|
|
145
|
+
#
|
|
146
|
+
# @param monthly_reset_period_configuration [Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration, nil] The monthly reset period configuration of the entitlement, defined when reset pe
|
|
147
|
+
#
|
|
148
|
+
# @param period [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period] The grant period of the promotional entitlement
|
|
149
|
+
#
|
|
150
|
+
# @param reset_period [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod, nil] The reset period of the entitlement
|
|
151
|
+
#
|
|
152
|
+
# @param usage_limit [Integer, nil] The usage limit of the entitlement
|
|
153
|
+
#
|
|
154
|
+
# @param weekly_reset_period_configuration [Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration, nil] The weekly reset period configuration of the entitlement, defined when reset per
|
|
155
|
+
#
|
|
156
|
+
# @param yearly_reset_period_configuration [Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration, nil] The yearly reset period configuration of the entitlement, defined when reset per
|
|
157
|
+
|
|
158
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement#monthly_reset_period_configuration
|
|
159
|
+
class MonthlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
160
|
+
# @!attribute according_to
|
|
161
|
+
# Reset anchor (SubscriptionStart or StartOfTheMonth)
|
|
162
|
+
#
|
|
163
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo]
|
|
164
|
+
required :according_to,
|
|
165
|
+
enum: -> {
|
|
166
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo
|
|
167
|
+
},
|
|
168
|
+
api_name: :accordingTo
|
|
169
|
+
|
|
170
|
+
# @!method initialize(according_to:)
|
|
171
|
+
# The monthly reset period configuration of the entitlement, defined when reset
|
|
172
|
+
# period is monthly
|
|
173
|
+
#
|
|
174
|
+
# @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart or StartOfTheMonth)
|
|
175
|
+
|
|
176
|
+
# Reset anchor (SubscriptionStart or StartOfTheMonth)
|
|
177
|
+
#
|
|
178
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration#according_to
|
|
179
|
+
module AccordingTo
|
|
180
|
+
extend Stigg::Internal::Type::Enum
|
|
181
|
+
|
|
182
|
+
SUBSCRIPTION_START = :SubscriptionStart
|
|
183
|
+
START_OF_THE_MONTH = :StartOfTheMonth
|
|
184
|
+
|
|
185
|
+
# @!method self.values
|
|
186
|
+
# @return [Array<Symbol>]
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# The grant period of the promotional entitlement
|
|
191
|
+
#
|
|
192
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement#period
|
|
193
|
+
module Period
|
|
194
|
+
extend Stigg::Internal::Type::Enum
|
|
195
|
+
|
|
196
|
+
PERIOD_1_WEEK = :"1 week"
|
|
197
|
+
PERIOD_1_MONTH = :"1 month"
|
|
198
|
+
PERIOD_6_MONTH = :"6 month"
|
|
199
|
+
PERIOD_1_YEAR = :"1 year"
|
|
200
|
+
LIFETIME = :lifetime
|
|
201
|
+
CUSTOM = :custom
|
|
202
|
+
|
|
203
|
+
# @!method self.values
|
|
204
|
+
# @return [Array<Symbol>]
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# The reset period of the entitlement
|
|
208
|
+
#
|
|
209
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement#reset_period
|
|
210
|
+
module ResetPeriod
|
|
211
|
+
extend Stigg::Internal::Type::Enum
|
|
212
|
+
|
|
213
|
+
YEAR = :YEAR
|
|
214
|
+
MONTH = :MONTH
|
|
215
|
+
WEEK = :WEEK
|
|
216
|
+
DAY = :DAY
|
|
217
|
+
HOUR = :HOUR
|
|
218
|
+
|
|
219
|
+
# @!method self.values
|
|
220
|
+
# @return [Array<Symbol>]
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement#weekly_reset_period_configuration
|
|
224
|
+
class WeeklyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
225
|
+
# @!attribute according_to
|
|
226
|
+
# Reset anchor (SubscriptionStart or specific day)
|
|
227
|
+
#
|
|
228
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo]
|
|
229
|
+
required :according_to,
|
|
230
|
+
enum: -> {
|
|
231
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo
|
|
232
|
+
},
|
|
233
|
+
api_name: :accordingTo
|
|
234
|
+
|
|
235
|
+
# @!method initialize(according_to:)
|
|
236
|
+
# The weekly reset period configuration of the entitlement, defined when reset
|
|
237
|
+
# period is weekly
|
|
238
|
+
#
|
|
239
|
+
# @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart or specific day)
|
|
240
|
+
|
|
241
|
+
# Reset anchor (SubscriptionStart or specific day)
|
|
242
|
+
#
|
|
243
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration#according_to
|
|
244
|
+
module AccordingTo
|
|
245
|
+
extend Stigg::Internal::Type::Enum
|
|
246
|
+
|
|
247
|
+
SUBSCRIPTION_START = :SubscriptionStart
|
|
248
|
+
EVERY_SUNDAY = :EverySunday
|
|
249
|
+
EVERY_MONDAY = :EveryMonday
|
|
250
|
+
EVERY_TUESDAY = :EveryTuesday
|
|
251
|
+
EVERY_WEDNESDAY = :EveryWednesday
|
|
252
|
+
EVERY_THURSDAY = :EveryThursday
|
|
253
|
+
EVERY_FRIDAY = :EveryFriday
|
|
254
|
+
EVERY_SATURDAY = :EverySaturday
|
|
255
|
+
|
|
256
|
+
# @!method self.values
|
|
257
|
+
# @return [Array<Symbol>]
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement#yearly_reset_period_configuration
|
|
262
|
+
class YearlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
263
|
+
# @!attribute according_to
|
|
264
|
+
# Reset anchor (SubscriptionStart)
|
|
265
|
+
#
|
|
266
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo]
|
|
267
|
+
required :according_to,
|
|
268
|
+
enum: -> {
|
|
269
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo
|
|
270
|
+
},
|
|
271
|
+
api_name: :accordingTo
|
|
272
|
+
|
|
273
|
+
# @!method initialize(according_to:)
|
|
274
|
+
# The yearly reset period configuration of the entitlement, defined when reset
|
|
275
|
+
# period is yearly
|
|
276
|
+
#
|
|
277
|
+
# @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart)
|
|
278
|
+
|
|
279
|
+
# Reset anchor (SubscriptionStart)
|
|
280
|
+
#
|
|
281
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration#according_to
|
|
282
|
+
module AccordingTo
|
|
283
|
+
extend Stigg::Internal::Type::Enum
|
|
284
|
+
|
|
285
|
+
SUBSCRIPTION_START = :SubscriptionStart
|
|
286
|
+
|
|
287
|
+
# @!method self.values
|
|
288
|
+
# @return [Array<Symbol>]
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
end
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Customers
|
|
7
|
+
# @see Stigg::Resources::V1::Customers::PromotionalEntitlements#grant
|
|
8
|
+
class PromotionalEntitlementGrantResponse < Stigg::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute data
|
|
10
|
+
#
|
|
11
|
+
# @return [Array<Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data>]
|
|
12
|
+
required :data,
|
|
13
|
+
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data] }
|
|
14
|
+
|
|
15
|
+
# @!method initialize(data:)
|
|
16
|
+
# Response object
|
|
17
|
+
#
|
|
18
|
+
# @param data [Array<Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data>]
|
|
19
|
+
|
|
20
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
21
|
+
# @!attribute id
|
|
22
|
+
# Unique identifier for the entity
|
|
23
|
+
#
|
|
24
|
+
# @return [String]
|
|
25
|
+
required :id, String
|
|
26
|
+
|
|
27
|
+
# @!attribute created_at
|
|
28
|
+
# Timestamp of when the record was created
|
|
29
|
+
#
|
|
30
|
+
# @return [Time]
|
|
31
|
+
required :created_at, Time, api_name: :createdAt
|
|
32
|
+
|
|
33
|
+
# @!attribute description
|
|
34
|
+
# The description of the entitlement
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
required :description, String, nil?: true
|
|
38
|
+
|
|
39
|
+
# @!attribute end_date
|
|
40
|
+
# The end date of the promotional entitlement
|
|
41
|
+
#
|
|
42
|
+
# @return [Time, nil]
|
|
43
|
+
required :end_date, Time, api_name: :endDate, nil?: true
|
|
44
|
+
|
|
45
|
+
# @!attribute enum_values
|
|
46
|
+
# The enum values of the entitlement
|
|
47
|
+
#
|
|
48
|
+
# @return [Array<String>, nil]
|
|
49
|
+
required :enum_values, Stigg::Internal::Type::ArrayOf[String], api_name: :enumValues, nil?: true
|
|
50
|
+
|
|
51
|
+
# @!attribute environment_id
|
|
52
|
+
# The unique identifier for the environment
|
|
53
|
+
#
|
|
54
|
+
# @return [String]
|
|
55
|
+
required :environment_id, String, api_name: :environmentId
|
|
56
|
+
|
|
57
|
+
# @!attribute feature_group_ids
|
|
58
|
+
# Feature group IDs associated with this entitlement
|
|
59
|
+
#
|
|
60
|
+
# @return [Array<String>, nil]
|
|
61
|
+
required :feature_group_ids,
|
|
62
|
+
Stigg::Internal::Type::ArrayOf[String],
|
|
63
|
+
api_name: :featureGroupIds,
|
|
64
|
+
nil?: true
|
|
65
|
+
|
|
66
|
+
# @!attribute feature_id
|
|
67
|
+
# The unique identifier of the entitlement feature
|
|
68
|
+
#
|
|
69
|
+
# @return [String]
|
|
70
|
+
required :feature_id, String, api_name: :featureId
|
|
71
|
+
|
|
72
|
+
# @!attribute has_soft_limit
|
|
73
|
+
# Whether the entitlement has a soft limit
|
|
74
|
+
#
|
|
75
|
+
# @return [Boolean, nil]
|
|
76
|
+
required :has_soft_limit, Stigg::Internal::Type::Boolean, api_name: :hasSoftLimit, nil?: true
|
|
77
|
+
|
|
78
|
+
# @!attribute has_unlimited_usage
|
|
79
|
+
# Whether the entitlement has an unlimited usage
|
|
80
|
+
#
|
|
81
|
+
# @return [Boolean, nil]
|
|
82
|
+
required :has_unlimited_usage,
|
|
83
|
+
Stigg::Internal::Type::Boolean,
|
|
84
|
+
api_name: :hasUnlimitedUsage,
|
|
85
|
+
nil?: true
|
|
86
|
+
|
|
87
|
+
# @!attribute is_visible
|
|
88
|
+
# Whether the entitlement is visible
|
|
89
|
+
#
|
|
90
|
+
# @return [Boolean]
|
|
91
|
+
required :is_visible, Stigg::Internal::Type::Boolean, api_name: :isVisible
|
|
92
|
+
|
|
93
|
+
# @!attribute period
|
|
94
|
+
# The grant period of the promotional entitlement
|
|
95
|
+
#
|
|
96
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period]
|
|
97
|
+
required :period,
|
|
98
|
+
enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period }
|
|
99
|
+
|
|
100
|
+
# @!attribute reset_period
|
|
101
|
+
# The reset period of the entitlement
|
|
102
|
+
#
|
|
103
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod, nil]
|
|
104
|
+
required :reset_period,
|
|
105
|
+
enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod },
|
|
106
|
+
api_name: :resetPeriod,
|
|
107
|
+
nil?: true
|
|
108
|
+
|
|
109
|
+
# @!attribute reset_period_configuration
|
|
110
|
+
# The reset period configuration of the entitlement
|
|
111
|
+
#
|
|
112
|
+
# @return [Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig, nil]
|
|
113
|
+
required :reset_period_configuration,
|
|
114
|
+
union: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration },
|
|
115
|
+
api_name: :resetPeriodConfiguration,
|
|
116
|
+
nil?: true
|
|
117
|
+
|
|
118
|
+
# @!attribute start_date
|
|
119
|
+
# The start date of the entitlement
|
|
120
|
+
#
|
|
121
|
+
# @return [Time]
|
|
122
|
+
required :start_date, Time, api_name: :startDate
|
|
123
|
+
|
|
124
|
+
# @!attribute status
|
|
125
|
+
# The status of the entitlement
|
|
126
|
+
#
|
|
127
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status]
|
|
128
|
+
required :status,
|
|
129
|
+
enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status }
|
|
130
|
+
|
|
131
|
+
# @!attribute updated_at
|
|
132
|
+
# Timestamp of when the record was last updated
|
|
133
|
+
#
|
|
134
|
+
# @return [Time]
|
|
135
|
+
required :updated_at, Time, api_name: :updatedAt
|
|
136
|
+
|
|
137
|
+
# @!attribute usage_limit
|
|
138
|
+
# The usage limit of the entitlement
|
|
139
|
+
#
|
|
140
|
+
# @return [Float, nil]
|
|
141
|
+
required :usage_limit, Float, api_name: :usageLimit, nil?: true
|
|
142
|
+
|
|
143
|
+
# @!method initialize(id:, created_at:, description:, end_date:, enum_values:, environment_id:, feature_group_ids:, feature_id:, has_soft_limit:, has_unlimited_usage:, is_visible:, period:, reset_period:, reset_period_configuration:, start_date:, status:, updated_at:, usage_limit:)
|
|
144
|
+
# Granted feature entitlement
|
|
145
|
+
#
|
|
146
|
+
# @param id [String] Unique identifier for the entity
|
|
147
|
+
#
|
|
148
|
+
# @param created_at [Time] Timestamp of when the record was created
|
|
149
|
+
#
|
|
150
|
+
# @param description [String, nil] The description of the entitlement
|
|
151
|
+
#
|
|
152
|
+
# @param end_date [Time, nil] The end date of the promotional entitlement
|
|
153
|
+
#
|
|
154
|
+
# @param enum_values [Array<String>, nil] The enum values of the entitlement
|
|
155
|
+
#
|
|
156
|
+
# @param environment_id [String] The unique identifier for the environment
|
|
157
|
+
#
|
|
158
|
+
# @param feature_group_ids [Array<String>, nil] Feature group IDs associated with this entitlement
|
|
159
|
+
#
|
|
160
|
+
# @param feature_id [String] The unique identifier of the entitlement feature
|
|
161
|
+
#
|
|
162
|
+
# @param has_soft_limit [Boolean, nil] Whether the entitlement has a soft limit
|
|
163
|
+
#
|
|
164
|
+
# @param has_unlimited_usage [Boolean, nil] Whether the entitlement has an unlimited usage
|
|
165
|
+
#
|
|
166
|
+
# @param is_visible [Boolean] Whether the entitlement is visible
|
|
167
|
+
#
|
|
168
|
+
# @param period [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period] The grant period of the promotional entitlement
|
|
169
|
+
#
|
|
170
|
+
# @param reset_period [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod, nil] The reset period of the entitlement
|
|
171
|
+
#
|
|
172
|
+
# @param reset_period_configuration [Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig, nil] The reset period configuration of the entitlement
|
|
173
|
+
#
|
|
174
|
+
# @param start_date [Time] The start date of the entitlement
|
|
175
|
+
#
|
|
176
|
+
# @param status [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status] The status of the entitlement
|
|
177
|
+
#
|
|
178
|
+
# @param updated_at [Time] Timestamp of when the record was last updated
|
|
179
|
+
#
|
|
180
|
+
# @param usage_limit [Float, nil] The usage limit of the entitlement
|
|
181
|
+
|
|
182
|
+
# The grant period of the promotional entitlement
|
|
183
|
+
#
|
|
184
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data#period
|
|
185
|
+
module Period
|
|
186
|
+
extend Stigg::Internal::Type::Enum
|
|
187
|
+
|
|
188
|
+
PERIOD_1_WEEK = :"1 week"
|
|
189
|
+
PERIOD_1_MONTH = :"1 month"
|
|
190
|
+
PERIOD_6_MONTH = :"6 month"
|
|
191
|
+
PERIOD_1_YEAR = :"1 year"
|
|
192
|
+
LIFETIME = :lifetime
|
|
193
|
+
CUSTOM = :custom
|
|
194
|
+
|
|
195
|
+
# @!method self.values
|
|
196
|
+
# @return [Array<Symbol>]
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# The reset period of the entitlement
|
|
200
|
+
#
|
|
201
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data#reset_period
|
|
202
|
+
module ResetPeriod
|
|
203
|
+
extend Stigg::Internal::Type::Enum
|
|
204
|
+
|
|
205
|
+
YEAR = :YEAR
|
|
206
|
+
MONTH = :MONTH
|
|
207
|
+
WEEK = :WEEK
|
|
208
|
+
DAY = :DAY
|
|
209
|
+
HOUR = :HOUR
|
|
210
|
+
|
|
211
|
+
# @!method self.values
|
|
212
|
+
# @return [Array<Symbol>]
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# The reset period configuration of the entitlement
|
|
216
|
+
#
|
|
217
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data#reset_period_configuration
|
|
218
|
+
module ResetPeriodConfiguration
|
|
219
|
+
extend Stigg::Internal::Type::Union
|
|
220
|
+
|
|
221
|
+
# Yearly reset configuration
|
|
222
|
+
variant -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig }
|
|
223
|
+
|
|
224
|
+
# Monthly reset configuration
|
|
225
|
+
variant -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig }
|
|
226
|
+
|
|
227
|
+
# Weekly reset configuration
|
|
228
|
+
variant -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig }
|
|
229
|
+
|
|
230
|
+
class YearlyResetPeriodConfig < Stigg::Internal::Type::BaseModel
|
|
231
|
+
# @!attribute according_to
|
|
232
|
+
# Reset anchor (SubscriptionStart)
|
|
233
|
+
#
|
|
234
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::AccordingTo]
|
|
235
|
+
required :according_to,
|
|
236
|
+
enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::AccordingTo },
|
|
237
|
+
api_name: :accordingTo
|
|
238
|
+
|
|
239
|
+
# @!method initialize(according_to:)
|
|
240
|
+
# Yearly reset configuration
|
|
241
|
+
#
|
|
242
|
+
# @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::AccordingTo] Reset anchor (SubscriptionStart)
|
|
243
|
+
|
|
244
|
+
# Reset anchor (SubscriptionStart)
|
|
245
|
+
#
|
|
246
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig#according_to
|
|
247
|
+
module AccordingTo
|
|
248
|
+
extend Stigg::Internal::Type::Enum
|
|
249
|
+
|
|
250
|
+
SUBSCRIPTION_START = :SubscriptionStart
|
|
251
|
+
|
|
252
|
+
# @!method self.values
|
|
253
|
+
# @return [Array<Symbol>]
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
class MonthlyResetPeriodConfig < Stigg::Internal::Type::BaseModel
|
|
258
|
+
# @!attribute according_to
|
|
259
|
+
# Reset anchor (SubscriptionStart or StartOfTheMonth)
|
|
260
|
+
#
|
|
261
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::AccordingTo]
|
|
262
|
+
required :according_to,
|
|
263
|
+
enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::AccordingTo },
|
|
264
|
+
api_name: :accordingTo
|
|
265
|
+
|
|
266
|
+
# @!method initialize(according_to:)
|
|
267
|
+
# Monthly reset configuration
|
|
268
|
+
#
|
|
269
|
+
# @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::AccordingTo] Reset anchor (SubscriptionStart or StartOfTheMonth)
|
|
270
|
+
|
|
271
|
+
# Reset anchor (SubscriptionStart or StartOfTheMonth)
|
|
272
|
+
#
|
|
273
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig#according_to
|
|
274
|
+
module AccordingTo
|
|
275
|
+
extend Stigg::Internal::Type::Enum
|
|
276
|
+
|
|
277
|
+
SUBSCRIPTION_START = :SubscriptionStart
|
|
278
|
+
START_OF_THE_MONTH = :StartOfTheMonth
|
|
279
|
+
|
|
280
|
+
# @!method self.values
|
|
281
|
+
# @return [Array<Symbol>]
|
|
282
|
+
end
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
class WeeklyResetPeriodConfig < Stigg::Internal::Type::BaseModel
|
|
286
|
+
# @!attribute according_to
|
|
287
|
+
# Reset anchor (SubscriptionStart or specific day)
|
|
288
|
+
#
|
|
289
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo]
|
|
290
|
+
required :according_to,
|
|
291
|
+
enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo },
|
|
292
|
+
api_name: :accordingTo
|
|
293
|
+
|
|
294
|
+
# @!method initialize(according_to:)
|
|
295
|
+
# Weekly reset configuration
|
|
296
|
+
#
|
|
297
|
+
# @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::AccordingTo] Reset anchor (SubscriptionStart or specific day)
|
|
298
|
+
|
|
299
|
+
# Reset anchor (SubscriptionStart or specific day)
|
|
300
|
+
#
|
|
301
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig#according_to
|
|
302
|
+
module AccordingTo
|
|
303
|
+
extend Stigg::Internal::Type::Enum
|
|
304
|
+
|
|
305
|
+
SUBSCRIPTION_START = :SubscriptionStart
|
|
306
|
+
EVERY_SUNDAY = :EverySunday
|
|
307
|
+
EVERY_MONDAY = :EveryMonday
|
|
308
|
+
EVERY_TUESDAY = :EveryTuesday
|
|
309
|
+
EVERY_WEDNESDAY = :EveryWednesday
|
|
310
|
+
EVERY_THURSDAY = :EveryThursday
|
|
311
|
+
EVERY_FRIDAY = :EveryFriday
|
|
312
|
+
EVERY_SATURDAY = :EverySaturday
|
|
313
|
+
|
|
314
|
+
# @!method self.values
|
|
315
|
+
# @return [Array<Symbol>]
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# @!method self.variants
|
|
320
|
+
# @return [Array(Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig)]
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# The status of the entitlement
|
|
324
|
+
#
|
|
325
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data#status
|
|
326
|
+
module Status
|
|
327
|
+
extend Stigg::Internal::Type::Enum
|
|
328
|
+
|
|
329
|
+
ACTIVE = :Active
|
|
330
|
+
EXPIRED = :Expired
|
|
331
|
+
PAUSED = :Paused
|
|
332
|
+
|
|
333
|
+
# @!method self.values
|
|
334
|
+
# @return [Array<Symbol>]
|
|
335
|
+
end
|
|
336
|
+
end
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Customers
|
|
7
|
+
# @see Stigg::Resources::V1::Customers::PromotionalEntitlements#revoke
|
|
8
|
+
class PromotionalEntitlementRevokeParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute customer_id
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :customer_id, String
|
|
16
|
+
|
|
17
|
+
# @!method initialize(customer_id:, request_options: {})
|
|
18
|
+
# @param customer_id [String]
|
|
19
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|