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,30 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
type customer_import_response =
|
|
5
|
+
{ data: Stigg::Models::V1::CustomerImportResponse::Data }
|
|
6
|
+
|
|
7
|
+
class CustomerImportResponse < Stigg::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor data: Stigg::Models::V1::CustomerImportResponse::Data
|
|
9
|
+
|
|
10
|
+
def initialize: (
|
|
11
|
+
data: Stigg::Models::V1::CustomerImportResponse::Data
|
|
12
|
+
) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> {
|
|
15
|
+
data: Stigg::Models::V1::CustomerImportResponse::Data
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type data = { new_customers: ::Array[String] }
|
|
19
|
+
|
|
20
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
21
|
+
attr_accessor new_customers: ::Array[String]
|
|
22
|
+
|
|
23
|
+
def initialize: (new_customers: ::Array[String]) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> { new_customers: ::Array[String] }
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
module Stigg
|
|
2
2
|
module Models
|
|
3
3
|
module V1
|
|
4
|
-
type
|
|
4
|
+
type customer_provision_params =
|
|
5
5
|
{
|
|
6
6
|
id: String,
|
|
7
7
|
coupon_id: String?,
|
|
8
|
-
default_payment_method: Stigg::V1::
|
|
8
|
+
default_payment_method: Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod?,
|
|
9
9
|
email: String?,
|
|
10
|
-
integrations: ::Array[Stigg::V1::
|
|
10
|
+
integrations: ::Array[Stigg::V1::CustomerProvisionParams::Integration],
|
|
11
11
|
metadata: ::Hash[Symbol, String],
|
|
12
12
|
name: String?
|
|
13
13
|
}
|
|
14
14
|
& Stigg::Internal::Type::request_parameters
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class CustomerProvisionParams < Stigg::Internal::Type::BaseModel
|
|
17
17
|
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
18
18
|
include Stigg::Internal::Type::RequestParameters
|
|
19
19
|
|
|
@@ -21,15 +21,15 @@ module Stigg
|
|
|
21
21
|
|
|
22
22
|
attr_accessor coupon_id: String?
|
|
23
23
|
|
|
24
|
-
attr_accessor default_payment_method: Stigg::V1::
|
|
24
|
+
attr_accessor default_payment_method: Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod?
|
|
25
25
|
|
|
26
26
|
attr_accessor email: String?
|
|
27
27
|
|
|
28
|
-
attr_reader integrations: ::Array[Stigg::V1::
|
|
28
|
+
attr_reader integrations: ::Array[Stigg::V1::CustomerProvisionParams::Integration]?
|
|
29
29
|
|
|
30
30
|
def integrations=: (
|
|
31
|
-
::Array[Stigg::V1::
|
|
32
|
-
) -> ::Array[Stigg::V1::
|
|
31
|
+
::Array[Stigg::V1::CustomerProvisionParams::Integration]
|
|
32
|
+
) -> ::Array[Stigg::V1::CustomerProvisionParams::Integration]
|
|
33
33
|
|
|
34
34
|
attr_reader metadata: ::Hash[Symbol, String]?
|
|
35
35
|
|
|
@@ -40,9 +40,9 @@ module Stigg
|
|
|
40
40
|
def initialize: (
|
|
41
41
|
id: String,
|
|
42
42
|
?coupon_id: String?,
|
|
43
|
-
?default_payment_method: Stigg::V1::
|
|
43
|
+
?default_payment_method: Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod?,
|
|
44
44
|
?email: String?,
|
|
45
|
-
?integrations: ::Array[Stigg::V1::
|
|
45
|
+
?integrations: ::Array[Stigg::V1::CustomerProvisionParams::Integration],
|
|
46
46
|
?metadata: ::Hash[Symbol, String],
|
|
47
47
|
?name: String?,
|
|
48
48
|
?request_options: Stigg::request_opts
|
|
@@ -51,9 +51,9 @@ module Stigg
|
|
|
51
51
|
def to_hash: -> {
|
|
52
52
|
id: String,
|
|
53
53
|
coupon_id: String?,
|
|
54
|
-
default_payment_method: Stigg::V1::
|
|
54
|
+
default_payment_method: Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod?,
|
|
55
55
|
email: String?,
|
|
56
|
-
integrations: ::Array[Stigg::V1::
|
|
56
|
+
integrations: ::Array[Stigg::V1::CustomerProvisionParams::Integration],
|
|
57
57
|
metadata: ::Hash[Symbol, String],
|
|
58
58
|
name: String?,
|
|
59
59
|
request_options: Stigg::RequestOptions
|
|
@@ -65,7 +65,7 @@ module Stigg
|
|
|
65
65
|
card_expiry_month: Float?,
|
|
66
66
|
card_expiry_year: Float?,
|
|
67
67
|
:card_last4_digits => String?,
|
|
68
|
-
type: Stigg::Models::V1::
|
|
68
|
+
type: Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::type_
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class DefaultPaymentMethod < Stigg::Internal::Type::BaseModel
|
|
@@ -77,14 +77,14 @@ module Stigg
|
|
|
77
77
|
|
|
78
78
|
attr_accessor card_last4_digits: String?
|
|
79
79
|
|
|
80
|
-
attr_accessor type: Stigg::Models::V1::
|
|
80
|
+
attr_accessor type: Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::type_
|
|
81
81
|
|
|
82
82
|
def initialize: (
|
|
83
83
|
billing_id: String?,
|
|
84
84
|
card_expiry_month: Float?,
|
|
85
85
|
card_expiry_year: Float?,
|
|
86
86
|
card_last4_digits: String?,
|
|
87
|
-
type: Stigg::Models::V1::
|
|
87
|
+
type: Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::type_
|
|
88
88
|
) -> void
|
|
89
89
|
|
|
90
90
|
def to_hash: -> {
|
|
@@ -92,7 +92,7 @@ module Stigg
|
|
|
92
92
|
card_expiry_month: Float?,
|
|
93
93
|
card_expiry_year: Float?,
|
|
94
94
|
:card_last4_digits => String?,
|
|
95
|
-
type: Stigg::Models::V1::
|
|
95
|
+
type: Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::type_
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
type type_ = :CARD | :BANK | :CASH_APP
|
|
@@ -104,7 +104,7 @@ module Stigg
|
|
|
104
104
|
BANK: :BANK
|
|
105
105
|
CASH_APP: :CASH_APP
|
|
106
106
|
|
|
107
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
107
|
+
def self?.values: -> ::Array[Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::type_]
|
|
108
108
|
end
|
|
109
109
|
end
|
|
110
110
|
|
|
@@ -112,7 +112,7 @@ module Stigg
|
|
|
112
112
|
{
|
|
113
113
|
id: String,
|
|
114
114
|
synced_entity_id: String?,
|
|
115
|
-
vendor_identifier: Stigg::Models::V1::
|
|
115
|
+
vendor_identifier: Stigg::Models::V1::CustomerProvisionParams::Integration::vendor_identifier
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
class Integration < Stigg::Internal::Type::BaseModel
|
|
@@ -120,18 +120,18 @@ module Stigg
|
|
|
120
120
|
|
|
121
121
|
attr_accessor synced_entity_id: String?
|
|
122
122
|
|
|
123
|
-
attr_accessor vendor_identifier: Stigg::Models::V1::
|
|
123
|
+
attr_accessor vendor_identifier: Stigg::Models::V1::CustomerProvisionParams::Integration::vendor_identifier
|
|
124
124
|
|
|
125
125
|
def initialize: (
|
|
126
126
|
id: String,
|
|
127
127
|
synced_entity_id: String?,
|
|
128
|
-
vendor_identifier: Stigg::Models::V1::
|
|
128
|
+
vendor_identifier: Stigg::Models::V1::CustomerProvisionParams::Integration::vendor_identifier
|
|
129
129
|
) -> void
|
|
130
130
|
|
|
131
131
|
def to_hash: -> {
|
|
132
132
|
id: String,
|
|
133
133
|
synced_entity_id: String?,
|
|
134
|
-
vendor_identifier: Stigg::Models::V1::
|
|
134
|
+
vendor_identifier: Stigg::Models::V1::CustomerProvisionParams::Integration::vendor_identifier
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
type vendor_identifier =
|
|
@@ -160,7 +160,7 @@ module Stigg
|
|
|
160
160
|
OPEN_FGA: :OPEN_FGA
|
|
161
161
|
APP_STORE: :APP_STORE
|
|
162
162
|
|
|
163
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
163
|
+
def self?.values: -> ::Array[Stigg::Models::V1::CustomerProvisionParams::Integration::vendor_identifier]
|
|
164
164
|
end
|
|
165
165
|
end
|
|
166
166
|
end
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
module Customers
|
|
5
|
+
type promotional_entitlement_grant_params =
|
|
6
|
+
{
|
|
7
|
+
promotional_entitlements: ::Array[Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement]
|
|
8
|
+
}
|
|
9
|
+
& Stigg::Internal::Type::request_parameters
|
|
10
|
+
|
|
11
|
+
class PromotionalEntitlementGrantParams < Stigg::Internal::Type::BaseModel
|
|
12
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
13
|
+
include Stigg::Internal::Type::RequestParameters
|
|
14
|
+
|
|
15
|
+
attr_accessor promotional_entitlements: ::Array[Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement]
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
promotional_entitlements: ::Array[Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement],
|
|
19
|
+
?request_options: Stigg::request_opts
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
promotional_entitlements: ::Array[Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement],
|
|
24
|
+
request_options: Stigg::RequestOptions
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
type promotional_entitlement =
|
|
28
|
+
{
|
|
29
|
+
custom_end_date: Time?,
|
|
30
|
+
enum_values: ::Array[String]?,
|
|
31
|
+
feature_id: String,
|
|
32
|
+
has_soft_limit: bool?,
|
|
33
|
+
has_unlimited_usage: bool?,
|
|
34
|
+
is_visible: bool?,
|
|
35
|
+
monthly_reset_period_configuration: Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration?,
|
|
36
|
+
period: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::period,
|
|
37
|
+
reset_period: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::reset_period?,
|
|
38
|
+
usage_limit: Integer?,
|
|
39
|
+
weekly_reset_period_configuration: Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration?,
|
|
40
|
+
yearly_reset_period_configuration: Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration?
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
class PromotionalEntitlement < Stigg::Internal::Type::BaseModel
|
|
44
|
+
attr_accessor custom_end_date: Time?
|
|
45
|
+
|
|
46
|
+
attr_accessor enum_values: ::Array[String]?
|
|
47
|
+
|
|
48
|
+
attr_accessor feature_id: String
|
|
49
|
+
|
|
50
|
+
attr_accessor has_soft_limit: bool?
|
|
51
|
+
|
|
52
|
+
attr_accessor has_unlimited_usage: bool?
|
|
53
|
+
|
|
54
|
+
attr_accessor is_visible: bool?
|
|
55
|
+
|
|
56
|
+
attr_accessor monthly_reset_period_configuration: Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration?
|
|
57
|
+
|
|
58
|
+
attr_accessor period: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::period
|
|
59
|
+
|
|
60
|
+
attr_accessor reset_period: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::reset_period?
|
|
61
|
+
|
|
62
|
+
attr_accessor usage_limit: Integer?
|
|
63
|
+
|
|
64
|
+
attr_accessor weekly_reset_period_configuration: Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration?
|
|
65
|
+
|
|
66
|
+
attr_accessor yearly_reset_period_configuration: Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration?
|
|
67
|
+
|
|
68
|
+
def initialize: (
|
|
69
|
+
custom_end_date: Time?,
|
|
70
|
+
enum_values: ::Array[String]?,
|
|
71
|
+
feature_id: String,
|
|
72
|
+
has_soft_limit: bool?,
|
|
73
|
+
has_unlimited_usage: bool?,
|
|
74
|
+
is_visible: bool?,
|
|
75
|
+
monthly_reset_period_configuration: Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration?,
|
|
76
|
+
period: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::period,
|
|
77
|
+
reset_period: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::reset_period?,
|
|
78
|
+
usage_limit: Integer?,
|
|
79
|
+
weekly_reset_period_configuration: Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration?,
|
|
80
|
+
yearly_reset_period_configuration: Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration?
|
|
81
|
+
) -> void
|
|
82
|
+
|
|
83
|
+
def to_hash: -> {
|
|
84
|
+
custom_end_date: Time?,
|
|
85
|
+
enum_values: ::Array[String]?,
|
|
86
|
+
feature_id: String,
|
|
87
|
+
has_soft_limit: bool?,
|
|
88
|
+
has_unlimited_usage: bool?,
|
|
89
|
+
is_visible: bool?,
|
|
90
|
+
monthly_reset_period_configuration: Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration?,
|
|
91
|
+
period: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::period,
|
|
92
|
+
reset_period: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::reset_period?,
|
|
93
|
+
usage_limit: Integer?,
|
|
94
|
+
weekly_reset_period_configuration: Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration?,
|
|
95
|
+
yearly_reset_period_configuration: Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration?
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
type monthly_reset_period_configuration =
|
|
99
|
+
{
|
|
100
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::according_to
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
class MonthlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
104
|
+
attr_accessor according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::according_to
|
|
105
|
+
|
|
106
|
+
def initialize: (
|
|
107
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::according_to
|
|
108
|
+
) -> void
|
|
109
|
+
|
|
110
|
+
def to_hash: -> {
|
|
111
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::according_to
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
type according_to = :SubscriptionStart | :StartOfTheMonth
|
|
115
|
+
|
|
116
|
+
module AccordingTo
|
|
117
|
+
extend Stigg::Internal::Type::Enum
|
|
118
|
+
|
|
119
|
+
SUBSCRIPTION_START: :SubscriptionStart
|
|
120
|
+
START_OF_THE_MONTH: :StartOfTheMonth
|
|
121
|
+
|
|
122
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::according_to]
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
type period =
|
|
127
|
+
:"1 week"
|
|
128
|
+
| :"1 month"
|
|
129
|
+
| :"6 month"
|
|
130
|
+
| :"1 year"
|
|
131
|
+
| :lifetime
|
|
132
|
+
| :custom
|
|
133
|
+
|
|
134
|
+
module Period
|
|
135
|
+
extend Stigg::Internal::Type::Enum
|
|
136
|
+
|
|
137
|
+
PERIOD_1_WEEK: :"1 week"
|
|
138
|
+
PERIOD_1_MONTH: :"1 month"
|
|
139
|
+
PERIOD_6_MONTH: :"6 month"
|
|
140
|
+
PERIOD_1_YEAR: :"1 year"
|
|
141
|
+
LIFETIME: :lifetime
|
|
142
|
+
CUSTOM: :custom
|
|
143
|
+
|
|
144
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::period]
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
type reset_period = :YEAR | :MONTH | :WEEK | :DAY | :HOUR
|
|
148
|
+
|
|
149
|
+
module ResetPeriod
|
|
150
|
+
extend Stigg::Internal::Type::Enum
|
|
151
|
+
|
|
152
|
+
YEAR: :YEAR
|
|
153
|
+
MONTH: :MONTH
|
|
154
|
+
WEEK: :WEEK
|
|
155
|
+
DAY: :DAY
|
|
156
|
+
HOUR: :HOUR
|
|
157
|
+
|
|
158
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::reset_period]
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
type weekly_reset_period_configuration =
|
|
162
|
+
{
|
|
163
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::according_to
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
class WeeklyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
167
|
+
attr_accessor according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::according_to
|
|
168
|
+
|
|
169
|
+
def initialize: (
|
|
170
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::according_to
|
|
171
|
+
) -> void
|
|
172
|
+
|
|
173
|
+
def to_hash: -> {
|
|
174
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::according_to
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
type according_to =
|
|
178
|
+
:SubscriptionStart
|
|
179
|
+
| :EverySunday
|
|
180
|
+
| :EveryMonday
|
|
181
|
+
| :EveryTuesday
|
|
182
|
+
| :EveryWednesday
|
|
183
|
+
| :EveryThursday
|
|
184
|
+
| :EveryFriday
|
|
185
|
+
| :EverySaturday
|
|
186
|
+
|
|
187
|
+
module AccordingTo
|
|
188
|
+
extend Stigg::Internal::Type::Enum
|
|
189
|
+
|
|
190
|
+
SUBSCRIPTION_START: :SubscriptionStart
|
|
191
|
+
EVERY_SUNDAY: :EverySunday
|
|
192
|
+
EVERY_MONDAY: :EveryMonday
|
|
193
|
+
EVERY_TUESDAY: :EveryTuesday
|
|
194
|
+
EVERY_WEDNESDAY: :EveryWednesday
|
|
195
|
+
EVERY_THURSDAY: :EveryThursday
|
|
196
|
+
EVERY_FRIDAY: :EveryFriday
|
|
197
|
+
EVERY_SATURDAY: :EverySaturday
|
|
198
|
+
|
|
199
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::according_to]
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
type yearly_reset_period_configuration =
|
|
204
|
+
{
|
|
205
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::according_to
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
class YearlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
209
|
+
attr_accessor according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::according_to
|
|
210
|
+
|
|
211
|
+
def initialize: (
|
|
212
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::according_to
|
|
213
|
+
) -> void
|
|
214
|
+
|
|
215
|
+
def to_hash: -> {
|
|
216
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::according_to
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
type according_to = :SubscriptionStart
|
|
220
|
+
|
|
221
|
+
module AccordingTo
|
|
222
|
+
extend Stigg::Internal::Type::Enum
|
|
223
|
+
|
|
224
|
+
SUBSCRIPTION_START: :SubscriptionStart
|
|
225
|
+
|
|
226
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::according_to]
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
end
|