stigg 0.1.0.pre.alpha.1
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 +7 -0
- data/.ignore +2 -0
- data/CHANGELOG.md +45 -0
- data/README.md +233 -0
- data/SECURITY.md +23 -0
- data/lib/stigg/client.rb +72 -0
- data/lib/stigg/errors.rb +228 -0
- data/lib/stigg/file_part.rb +58 -0
- data/lib/stigg/internal/my_cursor_id_page.rb +82 -0
- data/lib/stigg/internal/transport/base_client.rb +570 -0
- data/lib/stigg/internal/transport/pooled_net_requester.rb +210 -0
- data/lib/stigg/internal/type/array_of.rb +168 -0
- data/lib/stigg/internal/type/base_model.rb +529 -0
- data/lib/stigg/internal/type/base_page.rb +55 -0
- data/lib/stigg/internal/type/boolean.rb +77 -0
- data/lib/stigg/internal/type/converter.rb +327 -0
- data/lib/stigg/internal/type/enum.rb +131 -0
- data/lib/stigg/internal/type/file_input.rb +110 -0
- data/lib/stigg/internal/type/hash_of.rb +188 -0
- data/lib/stigg/internal/type/request_parameters.rb +42 -0
- data/lib/stigg/internal/type/union.rb +237 -0
- data/lib/stigg/internal/type/unknown.rb +81 -0
- data/lib/stigg/internal/util.rb +920 -0
- data/lib/stigg/internal.rb +20 -0
- data/lib/stigg/models/v1/coupon_create_params.rb +221 -0
- data/lib/stigg/models/v1/coupon_create_response.rb +317 -0
- data/lib/stigg/models/v1/coupon_list_params.rb +40 -0
- data/lib/stigg/models/v1/coupon_list_response.rb +324 -0
- data/lib/stigg/models/v1/coupon_retrieve_params.rb +16 -0
- data/lib/stigg/models/v1/coupon_retrieve_response.rb +317 -0
- data/lib/stigg/models/v1/customer_archive_params.rb +16 -0
- data/lib/stigg/models/v1/customer_create_params.rb +185 -0
- data/lib/stigg/models/v1/customer_list_params.rb +40 -0
- data/lib/stigg/models/v1/customer_list_response.rb +223 -0
- data/lib/stigg/models/v1/customer_response.rb +216 -0
- data/lib/stigg/models/v1/customer_retrieve_params.rb +16 -0
- data/lib/stigg/models/v1/customer_unarchive_params.rb +16 -0
- data/lib/stigg/models/v1/customer_update_params.rb +107 -0
- data/lib/stigg/models/v1/customers/payment_method_attach_params.rb +197 -0
- data/lib/stigg/models/v1/customers/payment_method_detach_params.rb +18 -0
- data/lib/stigg/models/v1/customers/promotional_create_params.rb +294 -0
- data/lib/stigg/models/v1/customers/promotional_create_response.rb +268 -0
- data/lib/stigg/models/v1/customers/promotional_revoke_params.rb +24 -0
- data/lib/stigg/models/v1/customers/promotional_revoke_response.rb +268 -0
- data/lib/stigg/models/v1/customers/usage_retrieve_params.rb +56 -0
- data/lib/stigg/models/v1/customers/usage_retrieve_response.rb +145 -0
- data/lib/stigg/models/v1/subscription_create_params.rb +214 -0
- data/lib/stigg/models/v1/subscription_create_response.rb +338 -0
- data/lib/stigg/models/v1/subscription_delegate_params.rb +24 -0
- data/lib/stigg/models/v1/subscription_delegate_response.rb +274 -0
- data/lib/stigg/models/v1/subscription_list_params.rb +60 -0
- data/lib/stigg/models/v1/subscription_list_response.rb +281 -0
- data/lib/stigg/models/v1/subscription_migrate_params.rb +37 -0
- data/lib/stigg/models/v1/subscription_migrate_response.rb +274 -0
- data/lib/stigg/models/v1/subscription_preview_params.rb +644 -0
- data/lib/stigg/models/v1/subscription_preview_response.rb +431 -0
- data/lib/stigg/models/v1/subscription_retrieve_params.rb +16 -0
- data/lib/stigg/models/v1/subscription_retrieve_response.rb +274 -0
- data/lib/stigg/models/v1/subscription_transfer_params.rb +28 -0
- data/lib/stigg/models/v1/subscription_transfer_response.rb +274 -0
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_params.rb +18 -0
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rb +32 -0
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_params.rb +18 -0
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +32 -0
- data/lib/stigg/models/v1_create_event_params.rb +87 -0
- data/lib/stigg/models/v1_create_event_response.rb +16 -0
- data/lib/stigg/models/v1_create_usage_params.rb +96 -0
- data/lib/stigg/models/v1_create_usage_response.rb +112 -0
- data/lib/stigg/models.rb +47 -0
- data/lib/stigg/request_options.rb +77 -0
- data/lib/stigg/resources/v1/coupons.rb +95 -0
- data/lib/stigg/resources/v1/customers/payment_method.rb +67 -0
- data/lib/stigg/resources/v1/customers/promotional.rb +69 -0
- data/lib/stigg/resources/v1/customers/usage.rb +59 -0
- data/lib/stigg/resources/v1/customers.rb +177 -0
- data/lib/stigg/resources/v1/subscriptions/future_update.rb +56 -0
- data/lib/stigg/resources/v1/subscriptions.rb +241 -0
- data/lib/stigg/resources/v1.rb +70 -0
- data/lib/stigg/version.rb +5 -0
- data/lib/stigg.rb +108 -0
- data/manifest.yaml +17 -0
- data/rbi/stigg/client.rbi +49 -0
- data/rbi/stigg/errors.rbi +205 -0
- data/rbi/stigg/file_part.rbi +37 -0
- data/rbi/stigg/internal/my_cursor_id_page.rbi +19 -0
- data/rbi/stigg/internal/transport/base_client.rbi +297 -0
- data/rbi/stigg/internal/transport/pooled_net_requester.rbi +82 -0
- data/rbi/stigg/internal/type/array_of.rbi +104 -0
- data/rbi/stigg/internal/type/base_model.rbi +299 -0
- data/rbi/stigg/internal/type/base_page.rbi +42 -0
- data/rbi/stigg/internal/type/boolean.rbi +58 -0
- data/rbi/stigg/internal/type/converter.rbi +204 -0
- data/rbi/stigg/internal/type/enum.rbi +82 -0
- data/rbi/stigg/internal/type/file_input.rbi +58 -0
- data/rbi/stigg/internal/type/hash_of.rbi +104 -0
- data/rbi/stigg/internal/type/request_parameters.rbi +29 -0
- data/rbi/stigg/internal/type/union.rbi +126 -0
- data/rbi/stigg/internal/type/unknown.rbi +58 -0
- data/rbi/stigg/internal/util.rbi +478 -0
- data/rbi/stigg/internal.rbi +16 -0
- data/rbi/stigg/models/v1/coupon_create_params.rbi +758 -0
- data/rbi/stigg/models/v1/coupon_create_response.rbi +986 -0
- data/rbi/stigg/models/v1/coupon_list_params.rbi +70 -0
- data/rbi/stigg/models/v1/coupon_list_response.rbi +983 -0
- data/rbi/stigg/models/v1/coupon_retrieve_params.rbi +29 -0
- data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +986 -0
- data/rbi/stigg/models/v1/customer_archive_params.rbi +29 -0
- data/rbi/stigg/models/v1/customer_create_params.rbi +376 -0
- data/rbi/stigg/models/v1/customer_list_params.rbi +70 -0
- data/rbi/stigg/models/v1/customer_list_response.rbi +447 -0
- data/rbi/stigg/models/v1/customer_response.rbi +423 -0
- data/rbi/stigg/models/v1/customer_retrieve_params.rbi +29 -0
- data/rbi/stigg/models/v1/customer_unarchive_params.rbi +29 -0
- data/rbi/stigg/models/v1/customer_update_params.rbi +226 -0
- data/rbi/stigg/models/v1/customers/payment_method_attach_params.rbi +769 -0
- data/rbi/stigg/models/v1/customers/payment_method_detach_params.rbi +34 -0
- data/rbi/stigg/models/v1/customers/promotional_create_params.rbi +639 -0
- data/rbi/stigg/models/v1/customers/promotional_create_response.rbi +495 -0
- data/rbi/stigg/models/v1/customers/promotional_revoke_params.rbi +42 -0
- data/rbi/stigg/models/v1/customers/promotional_revoke_response.rbi +497 -0
- data/rbi/stigg/models/v1/customers/usage_retrieve_params.rbi +84 -0
- data/rbi/stigg/models/v1/customers/usage_retrieve_response.rbi +353 -0
- data/rbi/stigg/models/v1/subscription_create_params.rbi +394 -0
- data/rbi/stigg/models/v1/subscription_create_response.rbi +668 -0
- data/rbi/stigg/models/v1/subscription_delegate_params.rbi +48 -0
- data/rbi/stigg/models/v1/subscription_delegate_response.rbi +535 -0
- data/rbi/stigg/models/v1/subscription_list_params.rbi +94 -0
- data/rbi/stigg/models/v1/subscription_list_response.rbi +543 -0
- data/rbi/stigg/models/v1/subscription_migrate_params.rbi +99 -0
- data/rbi/stigg/models/v1/subscription_migrate_response.rbi +535 -0
- data/rbi/stigg/models/v1/subscription_preview_params.rbi +1786 -0
- data/rbi/stigg/models/v1/subscription_preview_response.rbi +929 -0
- data/rbi/stigg/models/v1/subscription_retrieve_params.rbi +32 -0
- data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +535 -0
- data/rbi/stigg/models/v1/subscription_transfer_params.rbi +50 -0
- data/rbi/stigg/models/v1/subscription_transfer_response.rbi +535 -0
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_params.rbi +34 -0
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +79 -0
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_schedule_params.rbi +34 -0
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbi +79 -0
- data/rbi/stigg/models/v1_create_event_params.rbi +160 -0
- data/rbi/stigg/models/v1_create_event_response.rbi +23 -0
- data/rbi/stigg/models/v1_create_usage_params.rbi +177 -0
- data/rbi/stigg/models/v1_create_usage_response.rbi +150 -0
- data/rbi/stigg/models.rbi +9 -0
- data/rbi/stigg/request_options.rbi +55 -0
- data/rbi/stigg/resources/v1/coupons.rbi +79 -0
- data/rbi/stigg/resources/v1/customers/payment_method.rbi +54 -0
- data/rbi/stigg/resources/v1/customers/promotional.rbi +53 -0
- data/rbi/stigg/resources/v1/customers/usage.rbi +45 -0
- data/rbi/stigg/resources/v1/customers.rbi +138 -0
- data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +40 -0
- data/rbi/stigg/resources/v1/subscriptions.rbi +199 -0
- data/rbi/stigg/resources/v1.rbi +49 -0
- data/rbi/stigg/version.rbi +5 -0
- data/sig/stigg/client.rbs +26 -0
- data/sig/stigg/errors.rbs +117 -0
- data/sig/stigg/file_part.rbs +21 -0
- data/sig/stigg/internal/my_cursor_id_page.rbs +11 -0
- data/sig/stigg/internal/transport/base_client.rbs +133 -0
- data/sig/stigg/internal/transport/pooled_net_requester.rbs +48 -0
- data/sig/stigg/internal/type/array_of.rbs +48 -0
- data/sig/stigg/internal/type/base_model.rbs +102 -0
- data/sig/stigg/internal/type/base_page.rbs +24 -0
- data/sig/stigg/internal/type/boolean.rbs +26 -0
- data/sig/stigg/internal/type/converter.rbs +79 -0
- data/sig/stigg/internal/type/enum.rbs +32 -0
- data/sig/stigg/internal/type/file_input.rbs +25 -0
- data/sig/stigg/internal/type/hash_of.rbs +48 -0
- data/sig/stigg/internal/type/request_parameters.rbs +17 -0
- data/sig/stigg/internal/type/union.rbs +52 -0
- data/sig/stigg/internal/type/unknown.rbs +26 -0
- data/sig/stigg/internal/util.rbs +185 -0
- data/sig/stigg/internal.rbs +9 -0
- data/sig/stigg/models/v1/coupon_create_params.rbs +323 -0
- data/sig/stigg/models/v1/coupon_create_response.rbs +392 -0
- data/sig/stigg/models/v1/coupon_list_params.rbs +40 -0
- data/sig/stigg/models/v1/coupon_list_response.rbs +399 -0
- data/sig/stigg/models/v1/coupon_retrieve_params.rbs +17 -0
- data/sig/stigg/models/v1/coupon_retrieve_response.rbs +394 -0
- data/sig/stigg/models/v1/customer_archive_params.rbs +17 -0
- data/sig/stigg/models/v1/customer_create_params.rbs +169 -0
- data/sig/stigg/models/v1/customer_list_params.rbs +40 -0
- data/sig/stigg/models/v1/customer_list_response.rbs +198 -0
- data/sig/stigg/models/v1/customer_response.rbs +188 -0
- data/sig/stigg/models/v1/customer_retrieve_params.rbs +17 -0
- data/sig/stigg/models/v1/customer_unarchive_params.rbs +17 -0
- data/sig/stigg/models/v1/customer_update_params.rbs +110 -0
- data/sig/stigg/models/v1/customers/payment_method_attach_params.rbs +315 -0
- data/sig/stigg/models/v1/customers/payment_method_detach_params.rbs +19 -0
- data/sig/stigg/models/v1/customers/promotional_create_params.rbs +234 -0
- data/sig/stigg/models/v1/customers/promotional_create_response.rbs +209 -0
- data/sig/stigg/models/v1/customers/promotional_revoke_params.rbs +27 -0
- data/sig/stigg/models/v1/customers/promotional_revoke_response.rbs +209 -0
- data/sig/stigg/models/v1/customers/usage_retrieve_params.rbs +54 -0
- data/sig/stigg/models/v1/customers/usage_retrieve_response.rbs +134 -0
- data/sig/stigg/models/v1/subscription_create_params.rbs +199 -0
- data/sig/stigg/models/v1/subscription_create_response.rbs +283 -0
- data/sig/stigg/models/v1/subscription_delegate_params.rbs +26 -0
- data/sig/stigg/models/v1/subscription_delegate_response.rbs +224 -0
- data/sig/stigg/models/v1/subscription_list_params.rbs +58 -0
- data/sig/stigg/models/v1/subscription_list_response.rbs +229 -0
- data/sig/stigg/models/v1/subscription_migrate_params.rbs +43 -0
- data/sig/stigg/models/v1/subscription_migrate_response.rbs +224 -0
- data/sig/stigg/models/v1/subscription_preview_params.rbs +821 -0
- data/sig/stigg/models/v1/subscription_preview_response.rbs +466 -0
- data/sig/stigg/models/v1/subscription_retrieve_params.rbs +17 -0
- data/sig/stigg/models/v1/subscription_retrieve_response.rbs +224 -0
- data/sig/stigg/models/v1/subscription_transfer_params.rbs +26 -0
- data/sig/stigg/models/v1/subscription_transfer_response.rbs +224 -0
- data/sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_params.rbs +19 -0
- data/sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbs +34 -0
- data/sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_params.rbs +19 -0
- data/sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbs +34 -0
- data/sig/stigg/models/v1_create_event_params.rbs +80 -0
- data/sig/stigg/models/v1_create_event_response.rbs +13 -0
- data/sig/stigg/models/v1_create_usage_params.rbs +90 -0
- data/sig/stigg/models/v1_create_usage_response.rbs +85 -0
- data/sig/stigg/models.rbs +7 -0
- data/sig/stigg/request_options.rbs +34 -0
- data/sig/stigg/resources/v1/coupons.rbs +32 -0
- data/sig/stigg/resources/v1/customers/payment_method.rbs +25 -0
- data/sig/stigg/resources/v1/customers/promotional.rbs +23 -0
- data/sig/stigg/resources/v1/customers/usage.rbs +21 -0
- data/sig/stigg/resources/v1/customers.rbs +58 -0
- data/sig/stigg/resources/v1/subscriptions/future_update.rbs +21 -0
- data/sig/stigg/resources/v1/subscriptions.rbs +76 -0
- data/sig/stigg/resources/v1.rbs +23 -0
- data/sig/stigg/version.rbs +3 -0
- metadata +301 -0
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Customers
|
|
7
|
+
class PromotionalCreateResponse < Stigg::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse,
|
|
12
|
+
Stigg::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig do
|
|
17
|
+
returns(
|
|
18
|
+
T::Array[
|
|
19
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data
|
|
20
|
+
]
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
attr_accessor :data
|
|
24
|
+
|
|
25
|
+
sig do
|
|
26
|
+
params(
|
|
27
|
+
data:
|
|
28
|
+
T::Array[
|
|
29
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::OrHash
|
|
30
|
+
]
|
|
31
|
+
).returns(T.attached_class)
|
|
32
|
+
end
|
|
33
|
+
def self.new(data:)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
sig do
|
|
37
|
+
override.returns(
|
|
38
|
+
{
|
|
39
|
+
data:
|
|
40
|
+
T::Array[
|
|
41
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
def to_hash
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
50
|
+
OrHash =
|
|
51
|
+
T.type_alias do
|
|
52
|
+
T.any(
|
|
53
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data,
|
|
54
|
+
Stigg::Internal::AnyHash
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Unique identifier for the entity
|
|
59
|
+
sig { returns(String) }
|
|
60
|
+
attr_accessor :id
|
|
61
|
+
|
|
62
|
+
# Timestamp of when the record was created
|
|
63
|
+
sig { returns(Time) }
|
|
64
|
+
attr_accessor :created_at
|
|
65
|
+
|
|
66
|
+
# The description of the entitlement
|
|
67
|
+
sig { returns(T.nilable(String)) }
|
|
68
|
+
attr_accessor :description
|
|
69
|
+
|
|
70
|
+
# The end date of the promotional entitlement
|
|
71
|
+
sig { returns(T.nilable(Time)) }
|
|
72
|
+
attr_accessor :end_date
|
|
73
|
+
|
|
74
|
+
# The enum values of the entitlement
|
|
75
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
76
|
+
attr_accessor :enum_values
|
|
77
|
+
|
|
78
|
+
# The unique identifier for the environment
|
|
79
|
+
sig { returns(String) }
|
|
80
|
+
attr_accessor :environment_id
|
|
81
|
+
|
|
82
|
+
# Feature group IDs associated with this entitlement
|
|
83
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
84
|
+
attr_accessor :feature_group_ids
|
|
85
|
+
|
|
86
|
+
# The unique identifier of the entitlement feature
|
|
87
|
+
sig { returns(String) }
|
|
88
|
+
attr_accessor :feature_id
|
|
89
|
+
|
|
90
|
+
# Whether the entitlement has a soft limit
|
|
91
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
92
|
+
attr_accessor :has_soft_limit
|
|
93
|
+
|
|
94
|
+
# Whether the entitlement has an unlimited usage
|
|
95
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
96
|
+
attr_accessor :has_unlimited_usage
|
|
97
|
+
|
|
98
|
+
# Whether the entitlement is visible
|
|
99
|
+
sig { returns(T::Boolean) }
|
|
100
|
+
attr_accessor :is_visible
|
|
101
|
+
|
|
102
|
+
# The grant period of the promotional entitlement
|
|
103
|
+
sig do
|
|
104
|
+
returns(
|
|
105
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Period::TaggedSymbol
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
attr_accessor :period
|
|
109
|
+
|
|
110
|
+
# The reset period of the entitlement
|
|
111
|
+
sig do
|
|
112
|
+
returns(
|
|
113
|
+
T.nilable(
|
|
114
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriod::TaggedSymbol
|
|
115
|
+
)
|
|
116
|
+
)
|
|
117
|
+
end
|
|
118
|
+
attr_accessor :reset_period
|
|
119
|
+
|
|
120
|
+
# The reset period configuration of the entitlement
|
|
121
|
+
sig do
|
|
122
|
+
returns(
|
|
123
|
+
T.nilable(
|
|
124
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::Variants
|
|
125
|
+
)
|
|
126
|
+
)
|
|
127
|
+
end
|
|
128
|
+
attr_accessor :reset_period_configuration
|
|
129
|
+
|
|
130
|
+
# The start date of the entitlement
|
|
131
|
+
sig { returns(Time) }
|
|
132
|
+
attr_accessor :start_date
|
|
133
|
+
|
|
134
|
+
# The status of the entitlement
|
|
135
|
+
sig do
|
|
136
|
+
returns(
|
|
137
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Status::TaggedSymbol
|
|
138
|
+
)
|
|
139
|
+
end
|
|
140
|
+
attr_accessor :status
|
|
141
|
+
|
|
142
|
+
# Timestamp of when the record was last updated
|
|
143
|
+
sig { returns(Time) }
|
|
144
|
+
attr_accessor :updated_at
|
|
145
|
+
|
|
146
|
+
# The usage limit of the entitlement
|
|
147
|
+
sig { returns(T.nilable(Float)) }
|
|
148
|
+
attr_accessor :usage_limit
|
|
149
|
+
|
|
150
|
+
sig do
|
|
151
|
+
params(
|
|
152
|
+
id: String,
|
|
153
|
+
created_at: Time,
|
|
154
|
+
description: T.nilable(String),
|
|
155
|
+
end_date: T.nilable(Time),
|
|
156
|
+
enum_values: T.nilable(T::Array[String]),
|
|
157
|
+
environment_id: String,
|
|
158
|
+
feature_group_ids: T.nilable(T::Array[String]),
|
|
159
|
+
feature_id: String,
|
|
160
|
+
has_soft_limit: T.nilable(T::Boolean),
|
|
161
|
+
has_unlimited_usage: T.nilable(T::Boolean),
|
|
162
|
+
is_visible: T::Boolean,
|
|
163
|
+
period:
|
|
164
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Period::OrSymbol,
|
|
165
|
+
reset_period:
|
|
166
|
+
T.nilable(
|
|
167
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriod::OrSymbol
|
|
168
|
+
),
|
|
169
|
+
reset_period_configuration:
|
|
170
|
+
T.nilable(
|
|
171
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo::OrHash
|
|
172
|
+
),
|
|
173
|
+
start_date: Time,
|
|
174
|
+
status:
|
|
175
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Status::OrSymbol,
|
|
176
|
+
updated_at: Time,
|
|
177
|
+
usage_limit: T.nilable(Float)
|
|
178
|
+
).returns(T.attached_class)
|
|
179
|
+
end
|
|
180
|
+
def self.new(
|
|
181
|
+
# Unique identifier for the entity
|
|
182
|
+
id:,
|
|
183
|
+
# Timestamp of when the record was created
|
|
184
|
+
created_at:,
|
|
185
|
+
# The description of the entitlement
|
|
186
|
+
description:,
|
|
187
|
+
# The end date of the promotional entitlement
|
|
188
|
+
end_date:,
|
|
189
|
+
# The enum values of the entitlement
|
|
190
|
+
enum_values:,
|
|
191
|
+
# The unique identifier for the environment
|
|
192
|
+
environment_id:,
|
|
193
|
+
# Feature group IDs associated with this entitlement
|
|
194
|
+
feature_group_ids:,
|
|
195
|
+
# The unique identifier of the entitlement feature
|
|
196
|
+
feature_id:,
|
|
197
|
+
# Whether the entitlement has a soft limit
|
|
198
|
+
has_soft_limit:,
|
|
199
|
+
# Whether the entitlement has an unlimited usage
|
|
200
|
+
has_unlimited_usage:,
|
|
201
|
+
# Whether the entitlement is visible
|
|
202
|
+
is_visible:,
|
|
203
|
+
# The grant period of the promotional entitlement
|
|
204
|
+
period:,
|
|
205
|
+
# The reset period of the entitlement
|
|
206
|
+
reset_period:,
|
|
207
|
+
# The reset period configuration of the entitlement
|
|
208
|
+
reset_period_configuration:,
|
|
209
|
+
# The start date of the entitlement
|
|
210
|
+
start_date:,
|
|
211
|
+
# The status of the entitlement
|
|
212
|
+
status:,
|
|
213
|
+
# Timestamp of when the record was last updated
|
|
214
|
+
updated_at:,
|
|
215
|
+
# The usage limit of the entitlement
|
|
216
|
+
usage_limit:
|
|
217
|
+
)
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
sig do
|
|
221
|
+
override.returns(
|
|
222
|
+
{
|
|
223
|
+
id: String,
|
|
224
|
+
created_at: Time,
|
|
225
|
+
description: T.nilable(String),
|
|
226
|
+
end_date: T.nilable(Time),
|
|
227
|
+
enum_values: T.nilable(T::Array[String]),
|
|
228
|
+
environment_id: String,
|
|
229
|
+
feature_group_ids: T.nilable(T::Array[String]),
|
|
230
|
+
feature_id: String,
|
|
231
|
+
has_soft_limit: T.nilable(T::Boolean),
|
|
232
|
+
has_unlimited_usage: T.nilable(T::Boolean),
|
|
233
|
+
is_visible: T::Boolean,
|
|
234
|
+
period:
|
|
235
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Period::TaggedSymbol,
|
|
236
|
+
reset_period:
|
|
237
|
+
T.nilable(
|
|
238
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriod::TaggedSymbol
|
|
239
|
+
),
|
|
240
|
+
reset_period_configuration:
|
|
241
|
+
T.nilable(
|
|
242
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::Variants
|
|
243
|
+
),
|
|
244
|
+
start_date: Time,
|
|
245
|
+
status:
|
|
246
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Status::TaggedSymbol,
|
|
247
|
+
updated_at: Time,
|
|
248
|
+
usage_limit: T.nilable(Float)
|
|
249
|
+
}
|
|
250
|
+
)
|
|
251
|
+
end
|
|
252
|
+
def to_hash
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# The grant period of the promotional entitlement
|
|
256
|
+
module Period
|
|
257
|
+
extend Stigg::Internal::Type::Enum
|
|
258
|
+
|
|
259
|
+
TaggedSymbol =
|
|
260
|
+
T.type_alias do
|
|
261
|
+
T.all(
|
|
262
|
+
Symbol,
|
|
263
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Period
|
|
264
|
+
)
|
|
265
|
+
end
|
|
266
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
267
|
+
|
|
268
|
+
PERIOD_1_WEEK =
|
|
269
|
+
T.let(
|
|
270
|
+
:"1 week",
|
|
271
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Period::TaggedSymbol
|
|
272
|
+
)
|
|
273
|
+
PERIOD_1_MONTH =
|
|
274
|
+
T.let(
|
|
275
|
+
:"1 month",
|
|
276
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Period::TaggedSymbol
|
|
277
|
+
)
|
|
278
|
+
PERIOD_6_MONTH =
|
|
279
|
+
T.let(
|
|
280
|
+
:"6 month",
|
|
281
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Period::TaggedSymbol
|
|
282
|
+
)
|
|
283
|
+
PERIOD_1_YEAR =
|
|
284
|
+
T.let(
|
|
285
|
+
:"1 year",
|
|
286
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Period::TaggedSymbol
|
|
287
|
+
)
|
|
288
|
+
LIFETIME =
|
|
289
|
+
T.let(
|
|
290
|
+
:lifetime,
|
|
291
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Period::TaggedSymbol
|
|
292
|
+
)
|
|
293
|
+
CUSTOM =
|
|
294
|
+
T.let(
|
|
295
|
+
:custom,
|
|
296
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Period::TaggedSymbol
|
|
297
|
+
)
|
|
298
|
+
|
|
299
|
+
sig do
|
|
300
|
+
override.returns(
|
|
301
|
+
T::Array[
|
|
302
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Period::TaggedSymbol
|
|
303
|
+
]
|
|
304
|
+
)
|
|
305
|
+
end
|
|
306
|
+
def self.values
|
|
307
|
+
end
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# The reset period of the entitlement
|
|
311
|
+
module ResetPeriod
|
|
312
|
+
extend Stigg::Internal::Type::Enum
|
|
313
|
+
|
|
314
|
+
TaggedSymbol =
|
|
315
|
+
T.type_alias do
|
|
316
|
+
T.all(
|
|
317
|
+
Symbol,
|
|
318
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriod
|
|
319
|
+
)
|
|
320
|
+
end
|
|
321
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
322
|
+
|
|
323
|
+
YEAR =
|
|
324
|
+
T.let(
|
|
325
|
+
:YEAR,
|
|
326
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriod::TaggedSymbol
|
|
327
|
+
)
|
|
328
|
+
MONTH =
|
|
329
|
+
T.let(
|
|
330
|
+
:MONTH,
|
|
331
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriod::TaggedSymbol
|
|
332
|
+
)
|
|
333
|
+
WEEK =
|
|
334
|
+
T.let(
|
|
335
|
+
:WEEK,
|
|
336
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriod::TaggedSymbol
|
|
337
|
+
)
|
|
338
|
+
DAY =
|
|
339
|
+
T.let(
|
|
340
|
+
:DAY,
|
|
341
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriod::TaggedSymbol
|
|
342
|
+
)
|
|
343
|
+
HOUR =
|
|
344
|
+
T.let(
|
|
345
|
+
:HOUR,
|
|
346
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriod::TaggedSymbol
|
|
347
|
+
)
|
|
348
|
+
|
|
349
|
+
sig do
|
|
350
|
+
override.returns(
|
|
351
|
+
T::Array[
|
|
352
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriod::TaggedSymbol
|
|
353
|
+
]
|
|
354
|
+
)
|
|
355
|
+
end
|
|
356
|
+
def self.values
|
|
357
|
+
end
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
# The reset period configuration of the entitlement
|
|
361
|
+
module ResetPeriodConfiguration
|
|
362
|
+
extend Stigg::Internal::Type::Union
|
|
363
|
+
|
|
364
|
+
Variants =
|
|
365
|
+
T.type_alias do
|
|
366
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
class AccordingTo < Stigg::Internal::Type::BaseModel
|
|
370
|
+
OrHash =
|
|
371
|
+
T.type_alias do
|
|
372
|
+
T.any(
|
|
373
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo,
|
|
374
|
+
Stigg::Internal::AnyHash
|
|
375
|
+
)
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# Yearly reset period according to
|
|
379
|
+
sig do
|
|
380
|
+
returns(
|
|
381
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo::AccordingTo::TaggedSymbol
|
|
382
|
+
)
|
|
383
|
+
end
|
|
384
|
+
attr_accessor :according_to
|
|
385
|
+
|
|
386
|
+
sig do
|
|
387
|
+
params(
|
|
388
|
+
according_to:
|
|
389
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo::AccordingTo::OrSymbol
|
|
390
|
+
).returns(T.attached_class)
|
|
391
|
+
end
|
|
392
|
+
def self.new(
|
|
393
|
+
# Yearly reset period according to
|
|
394
|
+
according_to:
|
|
395
|
+
)
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
sig do
|
|
399
|
+
override.returns(
|
|
400
|
+
{
|
|
401
|
+
according_to:
|
|
402
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo::AccordingTo::TaggedSymbol
|
|
403
|
+
}
|
|
404
|
+
)
|
|
405
|
+
end
|
|
406
|
+
def to_hash
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# Yearly reset period according to
|
|
410
|
+
module AccordingTo
|
|
411
|
+
extend Stigg::Internal::Type::Enum
|
|
412
|
+
|
|
413
|
+
TaggedSymbol =
|
|
414
|
+
T.type_alias do
|
|
415
|
+
T.all(
|
|
416
|
+
Symbol,
|
|
417
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo::AccordingTo
|
|
418
|
+
)
|
|
419
|
+
end
|
|
420
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
421
|
+
|
|
422
|
+
SUBSCRIPTION_START =
|
|
423
|
+
T.let(
|
|
424
|
+
:SubscriptionStart,
|
|
425
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo::AccordingTo::TaggedSymbol
|
|
426
|
+
)
|
|
427
|
+
|
|
428
|
+
sig do
|
|
429
|
+
override.returns(
|
|
430
|
+
T::Array[
|
|
431
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::AccordingTo::AccordingTo::TaggedSymbol
|
|
432
|
+
]
|
|
433
|
+
)
|
|
434
|
+
end
|
|
435
|
+
def self.values
|
|
436
|
+
end
|
|
437
|
+
end
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
sig do
|
|
441
|
+
override.returns(
|
|
442
|
+
T::Array[
|
|
443
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::ResetPeriodConfiguration::Variants
|
|
444
|
+
]
|
|
445
|
+
)
|
|
446
|
+
end
|
|
447
|
+
def self.variants
|
|
448
|
+
end
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
# The status of the entitlement
|
|
452
|
+
module Status
|
|
453
|
+
extend Stigg::Internal::Type::Enum
|
|
454
|
+
|
|
455
|
+
TaggedSymbol =
|
|
456
|
+
T.type_alias do
|
|
457
|
+
T.all(
|
|
458
|
+
Symbol,
|
|
459
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Status
|
|
460
|
+
)
|
|
461
|
+
end
|
|
462
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
463
|
+
|
|
464
|
+
ACTIVE =
|
|
465
|
+
T.let(
|
|
466
|
+
:Active,
|
|
467
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Status::TaggedSymbol
|
|
468
|
+
)
|
|
469
|
+
EXPIRED =
|
|
470
|
+
T.let(
|
|
471
|
+
:Expired,
|
|
472
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Status::TaggedSymbol
|
|
473
|
+
)
|
|
474
|
+
PAUSED =
|
|
475
|
+
T.let(
|
|
476
|
+
:Paused,
|
|
477
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Status::TaggedSymbol
|
|
478
|
+
)
|
|
479
|
+
|
|
480
|
+
sig do
|
|
481
|
+
override.returns(
|
|
482
|
+
T::Array[
|
|
483
|
+
Stigg::Models::V1::Customers::PromotionalCreateResponse::Data::Status::TaggedSymbol
|
|
484
|
+
]
|
|
485
|
+
)
|
|
486
|
+
end
|
|
487
|
+
def self.values
|
|
488
|
+
end
|
|
489
|
+
end
|
|
490
|
+
end
|
|
491
|
+
end
|
|
492
|
+
end
|
|
493
|
+
end
|
|
494
|
+
end
|
|
495
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Customers
|
|
7
|
+
class PromotionalRevokeParams < Stigg::Internal::Type::BaseModel
|
|
8
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Stigg::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
OrHash =
|
|
12
|
+
T.type_alias do
|
|
13
|
+
T.any(
|
|
14
|
+
Stigg::V1::Customers::PromotionalRevokeParams,
|
|
15
|
+
Stigg::Internal::AnyHash
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :customer_id
|
|
21
|
+
|
|
22
|
+
sig do
|
|
23
|
+
params(
|
|
24
|
+
customer_id: String,
|
|
25
|
+
request_options: Stigg::RequestOptions::OrHash
|
|
26
|
+
).returns(T.attached_class)
|
|
27
|
+
end
|
|
28
|
+
def self.new(customer_id:, request_options: {})
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
override.returns(
|
|
33
|
+
{ customer_id: String, request_options: Stigg::RequestOptions }
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
def to_hash
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|