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,23 +4,23 @@ module Stigg
|
|
|
4
4
|
module Models
|
|
5
5
|
module V1
|
|
6
6
|
module Customers
|
|
7
|
-
# @see Stigg::Resources::V1::Customers::
|
|
8
|
-
class
|
|
7
|
+
# @see Stigg::Resources::V1::Customers::PromotionalEntitlements#grant
|
|
8
|
+
class PromotionalEntitlementGrantParams < Stigg::Internal::Type::BaseModel
|
|
9
9
|
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Stigg::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
12
|
# @!attribute promotional_entitlements
|
|
13
13
|
# Promotional entitlements to grant
|
|
14
14
|
#
|
|
15
|
-
# @return [Array<Stigg::Models::V1::Customers::
|
|
15
|
+
# @return [Array<Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement>]
|
|
16
16
|
required :promotional_entitlements,
|
|
17
17
|
-> {
|
|
18
|
-
Stigg::Internal::Type::ArrayOf[Stigg::V1::Customers::
|
|
18
|
+
Stigg::Internal::Type::ArrayOf[Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement]
|
|
19
19
|
},
|
|
20
20
|
api_name: :promotionalEntitlements
|
|
21
21
|
|
|
22
22
|
# @!method initialize(promotional_entitlements:, request_options: {})
|
|
23
|
-
# @param promotional_entitlements [Array<Stigg::Models::V1::Customers::
|
|
23
|
+
# @param promotional_entitlements [Array<Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement>] Promotional entitlements to grant
|
|
24
24
|
#
|
|
25
25
|
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
26
26
|
|
|
@@ -68,10 +68,10 @@ module Stigg
|
|
|
68
68
|
# The monthly reset period configuration of the entitlement, defined when reset
|
|
69
69
|
# period is monthly
|
|
70
70
|
#
|
|
71
|
-
# @return [Stigg::Models::V1::Customers::
|
|
71
|
+
# @return [Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration, nil]
|
|
72
72
|
required :monthly_reset_period_configuration,
|
|
73
73
|
-> {
|
|
74
|
-
Stigg::V1::Customers::
|
|
74
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration
|
|
75
75
|
},
|
|
76
76
|
api_name: :monthlyResetPeriodConfiguration,
|
|
77
77
|
nil?: true
|
|
@@ -79,17 +79,17 @@ module Stigg
|
|
|
79
79
|
# @!attribute period
|
|
80
80
|
# The grant period of the promotional entitlement
|
|
81
81
|
#
|
|
82
|
-
# @return [Symbol, Stigg::Models::V1::Customers::
|
|
82
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period]
|
|
83
83
|
required :period,
|
|
84
|
-
enum: -> { Stigg::V1::Customers::
|
|
84
|
+
enum: -> { Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period }
|
|
85
85
|
|
|
86
86
|
# @!attribute reset_period
|
|
87
87
|
# The reset period of the entitlement
|
|
88
88
|
#
|
|
89
|
-
# @return [Symbol, Stigg::Models::V1::Customers::
|
|
89
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod, nil]
|
|
90
90
|
required :reset_period,
|
|
91
91
|
enum: -> {
|
|
92
|
-
Stigg::V1::Customers::
|
|
92
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod
|
|
93
93
|
},
|
|
94
94
|
api_name: :resetPeriod,
|
|
95
95
|
nil?: true
|
|
@@ -104,10 +104,10 @@ module Stigg
|
|
|
104
104
|
# The weekly reset period configuration of the entitlement, defined when reset
|
|
105
105
|
# period is weekly
|
|
106
106
|
#
|
|
107
|
-
# @return [Stigg::Models::V1::Customers::
|
|
107
|
+
# @return [Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration, nil]
|
|
108
108
|
required :weekly_reset_period_configuration,
|
|
109
109
|
-> {
|
|
110
|
-
Stigg::V1::Customers::
|
|
110
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration
|
|
111
111
|
},
|
|
112
112
|
api_name: :weeklyResetPeriodConfiguration,
|
|
113
113
|
nil?: true
|
|
@@ -116,19 +116,21 @@ module Stigg
|
|
|
116
116
|
# The yearly reset period configuration of the entitlement, defined when reset
|
|
117
117
|
# period is yearly
|
|
118
118
|
#
|
|
119
|
-
# @return [Stigg::Models::V1::Customers::
|
|
119
|
+
# @return [Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration, nil]
|
|
120
120
|
required :yearly_reset_period_configuration,
|
|
121
121
|
-> {
|
|
122
|
-
Stigg::V1::Customers::
|
|
122
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration
|
|
123
123
|
},
|
|
124
124
|
api_name: :yearlyResetPeriodConfiguration,
|
|
125
125
|
nil?: true
|
|
126
126
|
|
|
127
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
128
|
# Some parameter documentations has been truncated, see
|
|
129
|
-
# {Stigg::Models::V1::Customers::
|
|
129
|
+
# {Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement}
|
|
130
130
|
# for more details.
|
|
131
131
|
#
|
|
132
|
+
# Single entitlement grant config
|
|
133
|
+
#
|
|
132
134
|
# @param custom_end_date [Time, nil] The custom end date of the promotional entitlement
|
|
133
135
|
#
|
|
134
136
|
# @param enum_values [Array<String>, nil] The enum values of the entitlement
|
|
@@ -141,27 +143,27 @@ module Stigg
|
|
|
141
143
|
#
|
|
142
144
|
# @param is_visible [Boolean, nil] Whether the entitlement is visible
|
|
143
145
|
#
|
|
144
|
-
# @param monthly_reset_period_configuration [Stigg::Models::V1::Customers::
|
|
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
|
|
145
147
|
#
|
|
146
|
-
# @param period [Symbol, Stigg::Models::V1::Customers::
|
|
148
|
+
# @param period [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::Period] The grant period of the promotional entitlement
|
|
147
149
|
#
|
|
148
|
-
# @param reset_period [Symbol, Stigg::Models::V1::Customers::
|
|
150
|
+
# @param reset_period [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::ResetPeriod, nil] The reset period of the entitlement
|
|
149
151
|
#
|
|
150
152
|
# @param usage_limit [Integer, nil] The usage limit of the entitlement
|
|
151
153
|
#
|
|
152
|
-
# @param weekly_reset_period_configuration [Stigg::Models::V1::Customers::
|
|
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
|
|
153
155
|
#
|
|
154
|
-
# @param yearly_reset_period_configuration [Stigg::Models::V1::Customers::
|
|
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
|
|
155
157
|
|
|
156
|
-
# @see Stigg::Models::V1::Customers::
|
|
158
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement#monthly_reset_period_configuration
|
|
157
159
|
class MonthlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
158
160
|
# @!attribute according_to
|
|
159
|
-
#
|
|
161
|
+
# Reset anchor (SubscriptionStart or StartOfTheMonth)
|
|
160
162
|
#
|
|
161
|
-
# @return [Symbol, Stigg::Models::V1::Customers::
|
|
163
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo]
|
|
162
164
|
required :according_to,
|
|
163
165
|
enum: -> {
|
|
164
|
-
Stigg::V1::Customers::
|
|
166
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo
|
|
165
167
|
},
|
|
166
168
|
api_name: :accordingTo
|
|
167
169
|
|
|
@@ -169,11 +171,11 @@ module Stigg
|
|
|
169
171
|
# The monthly reset period configuration of the entitlement, defined when reset
|
|
170
172
|
# period is monthly
|
|
171
173
|
#
|
|
172
|
-
# @param according_to [Symbol, Stigg::Models::V1::Customers::
|
|
174
|
+
# @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart or StartOfTheMonth)
|
|
173
175
|
|
|
174
|
-
#
|
|
176
|
+
# Reset anchor (SubscriptionStart or StartOfTheMonth)
|
|
175
177
|
#
|
|
176
|
-
# @see Stigg::Models::V1::Customers::
|
|
178
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration#according_to
|
|
177
179
|
module AccordingTo
|
|
178
180
|
extend Stigg::Internal::Type::Enum
|
|
179
181
|
|
|
@@ -187,7 +189,7 @@ module Stigg
|
|
|
187
189
|
|
|
188
190
|
# The grant period of the promotional entitlement
|
|
189
191
|
#
|
|
190
|
-
# @see Stigg::Models::V1::Customers::
|
|
192
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement#period
|
|
191
193
|
module Period
|
|
192
194
|
extend Stigg::Internal::Type::Enum
|
|
193
195
|
|
|
@@ -204,7 +206,7 @@ module Stigg
|
|
|
204
206
|
|
|
205
207
|
# The reset period of the entitlement
|
|
206
208
|
#
|
|
207
|
-
# @see Stigg::Models::V1::Customers::
|
|
209
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement#reset_period
|
|
208
210
|
module ResetPeriod
|
|
209
211
|
extend Stigg::Internal::Type::Enum
|
|
210
212
|
|
|
@@ -218,15 +220,15 @@ module Stigg
|
|
|
218
220
|
# @return [Array<Symbol>]
|
|
219
221
|
end
|
|
220
222
|
|
|
221
|
-
# @see Stigg::Models::V1::Customers::
|
|
223
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement#weekly_reset_period_configuration
|
|
222
224
|
class WeeklyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
223
225
|
# @!attribute according_to
|
|
224
|
-
#
|
|
226
|
+
# Reset anchor (SubscriptionStart or specific day)
|
|
225
227
|
#
|
|
226
|
-
# @return [Symbol, Stigg::Models::V1::Customers::
|
|
228
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo]
|
|
227
229
|
required :according_to,
|
|
228
230
|
enum: -> {
|
|
229
|
-
Stigg::V1::Customers::
|
|
231
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo
|
|
230
232
|
},
|
|
231
233
|
api_name: :accordingTo
|
|
232
234
|
|
|
@@ -234,11 +236,11 @@ module Stigg
|
|
|
234
236
|
# The weekly reset period configuration of the entitlement, defined when reset
|
|
235
237
|
# period is weekly
|
|
236
238
|
#
|
|
237
|
-
# @param according_to [Symbol, Stigg::Models::V1::Customers::
|
|
239
|
+
# @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart or specific day)
|
|
238
240
|
|
|
239
|
-
#
|
|
241
|
+
# Reset anchor (SubscriptionStart or specific day)
|
|
240
242
|
#
|
|
241
|
-
# @see Stigg::Models::V1::Customers::
|
|
243
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration#according_to
|
|
242
244
|
module AccordingTo
|
|
243
245
|
extend Stigg::Internal::Type::Enum
|
|
244
246
|
|
|
@@ -256,15 +258,15 @@ module Stigg
|
|
|
256
258
|
end
|
|
257
259
|
end
|
|
258
260
|
|
|
259
|
-
# @see Stigg::Models::V1::Customers::
|
|
261
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement#yearly_reset_period_configuration
|
|
260
262
|
class YearlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
261
263
|
# @!attribute according_to
|
|
262
|
-
#
|
|
264
|
+
# Reset anchor (SubscriptionStart)
|
|
263
265
|
#
|
|
264
|
-
# @return [Symbol, Stigg::Models::V1::Customers::
|
|
266
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo]
|
|
265
267
|
required :according_to,
|
|
266
268
|
enum: -> {
|
|
267
|
-
Stigg::V1::Customers::
|
|
269
|
+
Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo
|
|
268
270
|
},
|
|
269
271
|
api_name: :accordingTo
|
|
270
272
|
|
|
@@ -272,11 +274,11 @@ module Stigg
|
|
|
272
274
|
# The yearly reset period configuration of the entitlement, defined when reset
|
|
273
275
|
# period is yearly
|
|
274
276
|
#
|
|
275
|
-
# @param according_to [Symbol, Stigg::Models::V1::Customers::
|
|
277
|
+
# @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart)
|
|
276
278
|
|
|
277
|
-
#
|
|
279
|
+
# Reset anchor (SubscriptionStart)
|
|
278
280
|
#
|
|
279
|
-
# @see Stigg::Models::V1::Customers::
|
|
281
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration#according_to
|
|
280
282
|
module AccordingTo
|
|
281
283
|
extend Stigg::Internal::Type::Enum
|
|
282
284
|
|
|
@@ -4,16 +4,18 @@ module Stigg
|
|
|
4
4
|
module Models
|
|
5
5
|
module V1
|
|
6
6
|
module Customers
|
|
7
|
-
# @see Stigg::Resources::V1::Customers::
|
|
8
|
-
class
|
|
7
|
+
# @see Stigg::Resources::V1::Customers::PromotionalEntitlements#grant
|
|
8
|
+
class PromotionalEntitlementGrantResponse < Stigg::Internal::Type::BaseModel
|
|
9
9
|
# @!attribute data
|
|
10
10
|
#
|
|
11
|
-
# @return [Array<Stigg::Models::V1::Customers::
|
|
11
|
+
# @return [Array<Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data>]
|
|
12
12
|
required :data,
|
|
13
|
-
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::Customers::
|
|
13
|
+
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data] }
|
|
14
14
|
|
|
15
15
|
# @!method initialize(data:)
|
|
16
|
-
#
|
|
16
|
+
# Response object
|
|
17
|
+
#
|
|
18
|
+
# @param data [Array<Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data>]
|
|
17
19
|
|
|
18
20
|
class Data < Stigg::Internal::Type::BaseModel
|
|
19
21
|
# @!attribute id
|
|
@@ -91,24 +93,25 @@ module Stigg
|
|
|
91
93
|
# @!attribute period
|
|
92
94
|
# The grant period of the promotional entitlement
|
|
93
95
|
#
|
|
94
|
-
# @return [Symbol, Stigg::Models::V1::Customers::
|
|
95
|
-
required :period,
|
|
96
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period]
|
|
97
|
+
required :period,
|
|
98
|
+
enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period }
|
|
96
99
|
|
|
97
100
|
# @!attribute reset_period
|
|
98
101
|
# The reset period of the entitlement
|
|
99
102
|
#
|
|
100
|
-
# @return [Symbol, Stigg::Models::V1::Customers::
|
|
103
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod, nil]
|
|
101
104
|
required :reset_period,
|
|
102
|
-
enum: -> { Stigg::Models::V1::Customers::
|
|
105
|
+
enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod },
|
|
103
106
|
api_name: :resetPeriod,
|
|
104
107
|
nil?: true
|
|
105
108
|
|
|
106
109
|
# @!attribute reset_period_configuration
|
|
107
110
|
# The reset period configuration of the entitlement
|
|
108
111
|
#
|
|
109
|
-
# @return [Stigg::Models::V1::Customers::
|
|
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]
|
|
110
113
|
required :reset_period_configuration,
|
|
111
|
-
union: -> { Stigg::Models::V1::Customers::
|
|
114
|
+
union: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration },
|
|
112
115
|
api_name: :resetPeriodConfiguration,
|
|
113
116
|
nil?: true
|
|
114
117
|
|
|
@@ -121,8 +124,9 @@ module Stigg
|
|
|
121
124
|
# @!attribute status
|
|
122
125
|
# The status of the entitlement
|
|
123
126
|
#
|
|
124
|
-
# @return [Symbol, Stigg::Models::V1::Customers::
|
|
125
|
-
required :status,
|
|
127
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status]
|
|
128
|
+
required :status,
|
|
129
|
+
enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status }
|
|
126
130
|
|
|
127
131
|
# @!attribute updated_at
|
|
128
132
|
# Timestamp of when the record was last updated
|
|
@@ -137,6 +141,8 @@ module Stigg
|
|
|
137
141
|
required :usage_limit, Float, api_name: :usageLimit, nil?: true
|
|
138
142
|
|
|
139
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
|
+
#
|
|
140
146
|
# @param id [String] Unique identifier for the entity
|
|
141
147
|
#
|
|
142
148
|
# @param created_at [Time] Timestamp of when the record was created
|
|
@@ -159,15 +165,15 @@ module Stigg
|
|
|
159
165
|
#
|
|
160
166
|
# @param is_visible [Boolean] Whether the entitlement is visible
|
|
161
167
|
#
|
|
162
|
-
# @param period [Symbol, Stigg::Models::V1::Customers::
|
|
168
|
+
# @param period [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Period] The grant period of the promotional entitlement
|
|
163
169
|
#
|
|
164
|
-
# @param reset_period [Symbol, Stigg::Models::V1::Customers::
|
|
170
|
+
# @param reset_period [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriod, nil] The reset period of the entitlement
|
|
165
171
|
#
|
|
166
|
-
# @param reset_period_configuration [Stigg::Models::V1::Customers::
|
|
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
|
|
167
173
|
#
|
|
168
174
|
# @param start_date [Time] The start date of the entitlement
|
|
169
175
|
#
|
|
170
|
-
# @param status [Symbol, Stigg::Models::V1::Customers::
|
|
176
|
+
# @param status [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::Status] The status of the entitlement
|
|
171
177
|
#
|
|
172
178
|
# @param updated_at [Time] Timestamp of when the record was last updated
|
|
173
179
|
#
|
|
@@ -175,7 +181,7 @@ module Stigg
|
|
|
175
181
|
|
|
176
182
|
# The grant period of the promotional entitlement
|
|
177
183
|
#
|
|
178
|
-
# @see Stigg::Models::V1::Customers::
|
|
184
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data#period
|
|
179
185
|
module Period
|
|
180
186
|
extend Stigg::Internal::Type::Enum
|
|
181
187
|
|
|
@@ -192,7 +198,7 @@ module Stigg
|
|
|
192
198
|
|
|
193
199
|
# The reset period of the entitlement
|
|
194
200
|
#
|
|
195
|
-
# @see Stigg::Models::V1::Customers::
|
|
201
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data#reset_period
|
|
196
202
|
module ResetPeriod
|
|
197
203
|
extend Stigg::Internal::Type::Enum
|
|
198
204
|
|
|
@@ -208,35 +214,102 @@ module Stigg
|
|
|
208
214
|
|
|
209
215
|
# The reset period configuration of the entitlement
|
|
210
216
|
#
|
|
211
|
-
# @see Stigg::Models::V1::Customers::
|
|
217
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data#reset_period_configuration
|
|
212
218
|
module ResetPeriodConfiguration
|
|
213
219
|
extend Stigg::Internal::Type::Union
|
|
214
220
|
|
|
215
|
-
|
|
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 }
|
|
216
226
|
|
|
217
|
-
|
|
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)
|
|
218
243
|
|
|
219
|
-
|
|
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
|
|
220
256
|
|
|
221
|
-
class
|
|
257
|
+
class MonthlyResetPeriodConfig < Stigg::Internal::Type::BaseModel
|
|
222
258
|
# @!attribute according_to
|
|
223
|
-
#
|
|
259
|
+
# Reset anchor (SubscriptionStart or StartOfTheMonth)
|
|
224
260
|
#
|
|
225
|
-
# @return [Symbol, Stigg::Models::V1::Customers::
|
|
261
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::AccordingTo]
|
|
226
262
|
required :according_to,
|
|
227
|
-
enum: -> { Stigg::Models::V1::Customers::
|
|
263
|
+
enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::AccordingTo },
|
|
228
264
|
api_name: :accordingTo
|
|
229
265
|
|
|
230
266
|
# @!method initialize(according_to:)
|
|
231
|
-
#
|
|
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)
|
|
232
298
|
|
|
233
|
-
#
|
|
299
|
+
# Reset anchor (SubscriptionStart or specific day)
|
|
234
300
|
#
|
|
235
|
-
# @see Stigg::Models::V1::Customers::
|
|
301
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig#according_to
|
|
236
302
|
module AccordingTo
|
|
237
303
|
extend Stigg::Internal::Type::Enum
|
|
238
304
|
|
|
239
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
|
|
240
313
|
|
|
241
314
|
# @!method self.values
|
|
242
315
|
# @return [Array<Symbol>]
|
|
@@ -244,12 +317,12 @@ module Stigg
|
|
|
244
317
|
end
|
|
245
318
|
|
|
246
319
|
# @!method self.variants
|
|
247
|
-
# @return [Array(Stigg::Models::V1::Customers::
|
|
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)]
|
|
248
321
|
end
|
|
249
322
|
|
|
250
323
|
# The status of the entitlement
|
|
251
324
|
#
|
|
252
|
-
# @see Stigg::Models::V1::Customers::
|
|
325
|
+
# @see Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse::Data#status
|
|
253
326
|
module Status
|
|
254
327
|
extend Stigg::Internal::Type::Enum
|
|
255
328
|
|
|
@@ -4,8 +4,8 @@ module Stigg
|
|
|
4
4
|
module Models
|
|
5
5
|
module V1
|
|
6
6
|
module Customers
|
|
7
|
-
# @see Stigg::Resources::V1::Customers::
|
|
8
|
-
class
|
|
7
|
+
# @see Stigg::Resources::V1::Customers::PromotionalEntitlements#revoke
|
|
8
|
+
class PromotionalEntitlementRevokeParams < Stigg::Internal::Type::BaseModel
|
|
9
9
|
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Stigg::Internal::Type::RequestParameters
|
|
11
11
|
|