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
|
@@ -1,618 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Stigg
|
|
4
|
-
module Models
|
|
5
|
-
module V1
|
|
6
|
-
class SubscriptionDelegateResponse < Stigg::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(
|
|
10
|
-
Stigg::Models::V1::SubscriptionDelegateResponse,
|
|
11
|
-
Stigg::Internal::AnyHash
|
|
12
|
-
)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
# Customer subscription to a plan
|
|
16
|
-
sig { returns(Stigg::Models::V1::SubscriptionDelegateResponse::Data) }
|
|
17
|
-
attr_reader :data
|
|
18
|
-
|
|
19
|
-
sig do
|
|
20
|
-
params(
|
|
21
|
-
data: Stigg::Models::V1::SubscriptionDelegateResponse::Data::OrHash
|
|
22
|
-
).void
|
|
23
|
-
end
|
|
24
|
-
attr_writer :data
|
|
25
|
-
|
|
26
|
-
# Response object
|
|
27
|
-
sig do
|
|
28
|
-
params(
|
|
29
|
-
data: Stigg::Models::V1::SubscriptionDelegateResponse::Data::OrHash
|
|
30
|
-
).returns(T.attached_class)
|
|
31
|
-
end
|
|
32
|
-
def self.new(
|
|
33
|
-
# Customer subscription to a plan
|
|
34
|
-
data:
|
|
35
|
-
)
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
sig do
|
|
39
|
-
override.returns(
|
|
40
|
-
{ data: Stigg::Models::V1::SubscriptionDelegateResponse::Data }
|
|
41
|
-
)
|
|
42
|
-
end
|
|
43
|
-
def to_hash
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
class Data < Stigg::Internal::Type::BaseModel
|
|
47
|
-
OrHash =
|
|
48
|
-
T.type_alias do
|
|
49
|
-
T.any(
|
|
50
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data,
|
|
51
|
-
Stigg::Internal::AnyHash
|
|
52
|
-
)
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
# Subscription ID
|
|
56
|
-
sig { returns(String) }
|
|
57
|
-
attr_accessor :id
|
|
58
|
-
|
|
59
|
-
# Billing ID
|
|
60
|
-
sig { returns(T.nilable(String)) }
|
|
61
|
-
attr_accessor :billing_id
|
|
62
|
-
|
|
63
|
-
# Created at
|
|
64
|
-
sig { returns(Time) }
|
|
65
|
-
attr_accessor :created_at
|
|
66
|
-
|
|
67
|
-
# Customer ID
|
|
68
|
-
sig { returns(String) }
|
|
69
|
-
attr_accessor :customer_id
|
|
70
|
-
|
|
71
|
-
# Payment collection
|
|
72
|
-
sig do
|
|
73
|
-
returns(
|
|
74
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollection::TaggedSymbol
|
|
75
|
-
)
|
|
76
|
-
end
|
|
77
|
-
attr_accessor :payment_collection
|
|
78
|
-
|
|
79
|
-
# Plan ID
|
|
80
|
-
sig { returns(String) }
|
|
81
|
-
attr_accessor :plan_id
|
|
82
|
-
|
|
83
|
-
# Pricing type
|
|
84
|
-
sig do
|
|
85
|
-
returns(
|
|
86
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PricingType::TaggedSymbol
|
|
87
|
-
)
|
|
88
|
-
end
|
|
89
|
-
attr_accessor :pricing_type
|
|
90
|
-
|
|
91
|
-
# Subscription start date
|
|
92
|
-
sig { returns(Time) }
|
|
93
|
-
attr_accessor :start_date
|
|
94
|
-
|
|
95
|
-
# Subscription status
|
|
96
|
-
sig do
|
|
97
|
-
returns(
|
|
98
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::Status::TaggedSymbol
|
|
99
|
-
)
|
|
100
|
-
end
|
|
101
|
-
attr_accessor :status
|
|
102
|
-
|
|
103
|
-
# Subscription cancellation date
|
|
104
|
-
sig { returns(T.nilable(Time)) }
|
|
105
|
-
attr_accessor :cancellation_date
|
|
106
|
-
|
|
107
|
-
# Subscription cancel reason
|
|
108
|
-
sig do
|
|
109
|
-
returns(
|
|
110
|
-
T.nilable(
|
|
111
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::CancelReason::TaggedSymbol
|
|
112
|
-
)
|
|
113
|
-
)
|
|
114
|
-
end
|
|
115
|
-
attr_accessor :cancel_reason
|
|
116
|
-
|
|
117
|
-
# End of the current billing period
|
|
118
|
-
sig { returns(T.nilable(Time)) }
|
|
119
|
-
attr_accessor :current_billing_period_end
|
|
120
|
-
|
|
121
|
-
# Start of the current billing period
|
|
122
|
-
sig { returns(T.nilable(Time)) }
|
|
123
|
-
attr_accessor :current_billing_period_start
|
|
124
|
-
|
|
125
|
-
# Subscription effective end date
|
|
126
|
-
sig { returns(T.nilable(Time)) }
|
|
127
|
-
attr_accessor :effective_end_date
|
|
128
|
-
|
|
129
|
-
# Subscription end date
|
|
130
|
-
sig { returns(T.nilable(Time)) }
|
|
131
|
-
attr_accessor :end_date
|
|
132
|
-
|
|
133
|
-
# Additional metadata for the subscription
|
|
134
|
-
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
135
|
-
attr_reader :metadata
|
|
136
|
-
|
|
137
|
-
sig { params(metadata: T::Hash[Symbol, String]).void }
|
|
138
|
-
attr_writer :metadata
|
|
139
|
-
|
|
140
|
-
# Paying customer ID for delegated billing
|
|
141
|
-
sig { returns(T.nilable(String)) }
|
|
142
|
-
attr_accessor :paying_customer_id
|
|
143
|
-
|
|
144
|
-
# The method used to collect payments for a subscription
|
|
145
|
-
sig do
|
|
146
|
-
returns(
|
|
147
|
-
T.nilable(
|
|
148
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollectionMethod::TaggedSymbol
|
|
149
|
-
)
|
|
150
|
-
)
|
|
151
|
-
end
|
|
152
|
-
attr_accessor :payment_collection_method
|
|
153
|
-
|
|
154
|
-
sig do
|
|
155
|
-
returns(
|
|
156
|
-
T.nilable(
|
|
157
|
-
T::Array[
|
|
158
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::Price
|
|
159
|
-
]
|
|
160
|
-
)
|
|
161
|
-
)
|
|
162
|
-
end
|
|
163
|
-
attr_reader :prices
|
|
164
|
-
|
|
165
|
-
sig do
|
|
166
|
-
params(
|
|
167
|
-
prices:
|
|
168
|
-
T::Array[
|
|
169
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::Price::OrHash
|
|
170
|
-
]
|
|
171
|
-
).void
|
|
172
|
-
end
|
|
173
|
-
attr_writer :prices
|
|
174
|
-
|
|
175
|
-
# Resource ID
|
|
176
|
-
sig { returns(T.nilable(String)) }
|
|
177
|
-
attr_accessor :resource_id
|
|
178
|
-
|
|
179
|
-
# Subscription trial end date
|
|
180
|
-
sig { returns(T.nilable(Time)) }
|
|
181
|
-
attr_accessor :trial_end_date
|
|
182
|
-
|
|
183
|
-
# Customer subscription to a plan
|
|
184
|
-
sig do
|
|
185
|
-
params(
|
|
186
|
-
id: String,
|
|
187
|
-
billing_id: T.nilable(String),
|
|
188
|
-
created_at: Time,
|
|
189
|
-
customer_id: String,
|
|
190
|
-
payment_collection:
|
|
191
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollection::OrSymbol,
|
|
192
|
-
plan_id: String,
|
|
193
|
-
pricing_type:
|
|
194
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PricingType::OrSymbol,
|
|
195
|
-
start_date: Time,
|
|
196
|
-
status:
|
|
197
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::Status::OrSymbol,
|
|
198
|
-
cancellation_date: T.nilable(Time),
|
|
199
|
-
cancel_reason:
|
|
200
|
-
T.nilable(
|
|
201
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::CancelReason::OrSymbol
|
|
202
|
-
),
|
|
203
|
-
current_billing_period_end: T.nilable(Time),
|
|
204
|
-
current_billing_period_start: T.nilable(Time),
|
|
205
|
-
effective_end_date: T.nilable(Time),
|
|
206
|
-
end_date: T.nilable(Time),
|
|
207
|
-
metadata: T::Hash[Symbol, String],
|
|
208
|
-
paying_customer_id: T.nilable(String),
|
|
209
|
-
payment_collection_method:
|
|
210
|
-
T.nilable(
|
|
211
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollectionMethod::OrSymbol
|
|
212
|
-
),
|
|
213
|
-
prices:
|
|
214
|
-
T::Array[
|
|
215
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::Price::OrHash
|
|
216
|
-
],
|
|
217
|
-
resource_id: T.nilable(String),
|
|
218
|
-
trial_end_date: T.nilable(Time)
|
|
219
|
-
).returns(T.attached_class)
|
|
220
|
-
end
|
|
221
|
-
def self.new(
|
|
222
|
-
# Subscription ID
|
|
223
|
-
id:,
|
|
224
|
-
# Billing ID
|
|
225
|
-
billing_id:,
|
|
226
|
-
# Created at
|
|
227
|
-
created_at:,
|
|
228
|
-
# Customer ID
|
|
229
|
-
customer_id:,
|
|
230
|
-
# Payment collection
|
|
231
|
-
payment_collection:,
|
|
232
|
-
# Plan ID
|
|
233
|
-
plan_id:,
|
|
234
|
-
# Pricing type
|
|
235
|
-
pricing_type:,
|
|
236
|
-
# Subscription start date
|
|
237
|
-
start_date:,
|
|
238
|
-
# Subscription status
|
|
239
|
-
status:,
|
|
240
|
-
# Subscription cancellation date
|
|
241
|
-
cancellation_date: nil,
|
|
242
|
-
# Subscription cancel reason
|
|
243
|
-
cancel_reason: nil,
|
|
244
|
-
# End of the current billing period
|
|
245
|
-
current_billing_period_end: nil,
|
|
246
|
-
# Start of the current billing period
|
|
247
|
-
current_billing_period_start: nil,
|
|
248
|
-
# Subscription effective end date
|
|
249
|
-
effective_end_date: nil,
|
|
250
|
-
# Subscription end date
|
|
251
|
-
end_date: nil,
|
|
252
|
-
# Additional metadata for the subscription
|
|
253
|
-
metadata: nil,
|
|
254
|
-
# Paying customer ID for delegated billing
|
|
255
|
-
paying_customer_id: nil,
|
|
256
|
-
# The method used to collect payments for a subscription
|
|
257
|
-
payment_collection_method: nil,
|
|
258
|
-
prices: nil,
|
|
259
|
-
# Resource ID
|
|
260
|
-
resource_id: nil,
|
|
261
|
-
# Subscription trial end date
|
|
262
|
-
trial_end_date: nil
|
|
263
|
-
)
|
|
264
|
-
end
|
|
265
|
-
|
|
266
|
-
sig do
|
|
267
|
-
override.returns(
|
|
268
|
-
{
|
|
269
|
-
id: String,
|
|
270
|
-
billing_id: T.nilable(String),
|
|
271
|
-
created_at: Time,
|
|
272
|
-
customer_id: String,
|
|
273
|
-
payment_collection:
|
|
274
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollection::TaggedSymbol,
|
|
275
|
-
plan_id: String,
|
|
276
|
-
pricing_type:
|
|
277
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PricingType::TaggedSymbol,
|
|
278
|
-
start_date: Time,
|
|
279
|
-
status:
|
|
280
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::Status::TaggedSymbol,
|
|
281
|
-
cancellation_date: T.nilable(Time),
|
|
282
|
-
cancel_reason:
|
|
283
|
-
T.nilable(
|
|
284
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::CancelReason::TaggedSymbol
|
|
285
|
-
),
|
|
286
|
-
current_billing_period_end: T.nilable(Time),
|
|
287
|
-
current_billing_period_start: T.nilable(Time),
|
|
288
|
-
effective_end_date: T.nilable(Time),
|
|
289
|
-
end_date: T.nilable(Time),
|
|
290
|
-
metadata: T::Hash[Symbol, String],
|
|
291
|
-
paying_customer_id: T.nilable(String),
|
|
292
|
-
payment_collection_method:
|
|
293
|
-
T.nilable(
|
|
294
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollectionMethod::TaggedSymbol
|
|
295
|
-
),
|
|
296
|
-
prices:
|
|
297
|
-
T::Array[
|
|
298
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::Price
|
|
299
|
-
],
|
|
300
|
-
resource_id: T.nilable(String),
|
|
301
|
-
trial_end_date: T.nilable(Time)
|
|
302
|
-
}
|
|
303
|
-
)
|
|
304
|
-
end
|
|
305
|
-
def to_hash
|
|
306
|
-
end
|
|
307
|
-
|
|
308
|
-
# Payment collection
|
|
309
|
-
module PaymentCollection
|
|
310
|
-
extend Stigg::Internal::Type::Enum
|
|
311
|
-
|
|
312
|
-
TaggedSymbol =
|
|
313
|
-
T.type_alias do
|
|
314
|
-
T.all(
|
|
315
|
-
Symbol,
|
|
316
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollection
|
|
317
|
-
)
|
|
318
|
-
end
|
|
319
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
320
|
-
|
|
321
|
-
NOT_REQUIRED =
|
|
322
|
-
T.let(
|
|
323
|
-
:NOT_REQUIRED,
|
|
324
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollection::TaggedSymbol
|
|
325
|
-
)
|
|
326
|
-
PROCESSING =
|
|
327
|
-
T.let(
|
|
328
|
-
:PROCESSING,
|
|
329
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollection::TaggedSymbol
|
|
330
|
-
)
|
|
331
|
-
FAILED =
|
|
332
|
-
T.let(
|
|
333
|
-
:FAILED,
|
|
334
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollection::TaggedSymbol
|
|
335
|
-
)
|
|
336
|
-
ACTION_REQUIRED =
|
|
337
|
-
T.let(
|
|
338
|
-
:ACTION_REQUIRED,
|
|
339
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollection::TaggedSymbol
|
|
340
|
-
)
|
|
341
|
-
|
|
342
|
-
sig do
|
|
343
|
-
override.returns(
|
|
344
|
-
T::Array[
|
|
345
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollection::TaggedSymbol
|
|
346
|
-
]
|
|
347
|
-
)
|
|
348
|
-
end
|
|
349
|
-
def self.values
|
|
350
|
-
end
|
|
351
|
-
end
|
|
352
|
-
|
|
353
|
-
# Pricing type
|
|
354
|
-
module PricingType
|
|
355
|
-
extend Stigg::Internal::Type::Enum
|
|
356
|
-
|
|
357
|
-
TaggedSymbol =
|
|
358
|
-
T.type_alias do
|
|
359
|
-
T.all(
|
|
360
|
-
Symbol,
|
|
361
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PricingType
|
|
362
|
-
)
|
|
363
|
-
end
|
|
364
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
365
|
-
|
|
366
|
-
FREE =
|
|
367
|
-
T.let(
|
|
368
|
-
:FREE,
|
|
369
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PricingType::TaggedSymbol
|
|
370
|
-
)
|
|
371
|
-
PAID =
|
|
372
|
-
T.let(
|
|
373
|
-
:PAID,
|
|
374
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PricingType::TaggedSymbol
|
|
375
|
-
)
|
|
376
|
-
CUSTOM =
|
|
377
|
-
T.let(
|
|
378
|
-
:CUSTOM,
|
|
379
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PricingType::TaggedSymbol
|
|
380
|
-
)
|
|
381
|
-
|
|
382
|
-
sig do
|
|
383
|
-
override.returns(
|
|
384
|
-
T::Array[
|
|
385
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PricingType::TaggedSymbol
|
|
386
|
-
]
|
|
387
|
-
)
|
|
388
|
-
end
|
|
389
|
-
def self.values
|
|
390
|
-
end
|
|
391
|
-
end
|
|
392
|
-
|
|
393
|
-
# Subscription status
|
|
394
|
-
module Status
|
|
395
|
-
extend Stigg::Internal::Type::Enum
|
|
396
|
-
|
|
397
|
-
TaggedSymbol =
|
|
398
|
-
T.type_alias do
|
|
399
|
-
T.all(
|
|
400
|
-
Symbol,
|
|
401
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::Status
|
|
402
|
-
)
|
|
403
|
-
end
|
|
404
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
405
|
-
|
|
406
|
-
PAYMENT_PENDING =
|
|
407
|
-
T.let(
|
|
408
|
-
:PAYMENT_PENDING,
|
|
409
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::Status::TaggedSymbol
|
|
410
|
-
)
|
|
411
|
-
ACTIVE =
|
|
412
|
-
T.let(
|
|
413
|
-
:ACTIVE,
|
|
414
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::Status::TaggedSymbol
|
|
415
|
-
)
|
|
416
|
-
EXPIRED =
|
|
417
|
-
T.let(
|
|
418
|
-
:EXPIRED,
|
|
419
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::Status::TaggedSymbol
|
|
420
|
-
)
|
|
421
|
-
IN_TRIAL =
|
|
422
|
-
T.let(
|
|
423
|
-
:IN_TRIAL,
|
|
424
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::Status::TaggedSymbol
|
|
425
|
-
)
|
|
426
|
-
CANCELED =
|
|
427
|
-
T.let(
|
|
428
|
-
:CANCELED,
|
|
429
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::Status::TaggedSymbol
|
|
430
|
-
)
|
|
431
|
-
NOT_STARTED =
|
|
432
|
-
T.let(
|
|
433
|
-
:NOT_STARTED,
|
|
434
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::Status::TaggedSymbol
|
|
435
|
-
)
|
|
436
|
-
|
|
437
|
-
sig do
|
|
438
|
-
override.returns(
|
|
439
|
-
T::Array[
|
|
440
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::Status::TaggedSymbol
|
|
441
|
-
]
|
|
442
|
-
)
|
|
443
|
-
end
|
|
444
|
-
def self.values
|
|
445
|
-
end
|
|
446
|
-
end
|
|
447
|
-
|
|
448
|
-
# Subscription cancel reason
|
|
449
|
-
module CancelReason
|
|
450
|
-
extend Stigg::Internal::Type::Enum
|
|
451
|
-
|
|
452
|
-
TaggedSymbol =
|
|
453
|
-
T.type_alias do
|
|
454
|
-
T.all(
|
|
455
|
-
Symbol,
|
|
456
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::CancelReason
|
|
457
|
-
)
|
|
458
|
-
end
|
|
459
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
460
|
-
|
|
461
|
-
UPGRADE_OR_DOWNGRADE =
|
|
462
|
-
T.let(
|
|
463
|
-
:UPGRADE_OR_DOWNGRADE,
|
|
464
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::CancelReason::TaggedSymbol
|
|
465
|
-
)
|
|
466
|
-
CANCELLED_BY_BILLING =
|
|
467
|
-
T.let(
|
|
468
|
-
:CANCELLED_BY_BILLING,
|
|
469
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::CancelReason::TaggedSymbol
|
|
470
|
-
)
|
|
471
|
-
EXPIRED =
|
|
472
|
-
T.let(
|
|
473
|
-
:EXPIRED,
|
|
474
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::CancelReason::TaggedSymbol
|
|
475
|
-
)
|
|
476
|
-
DETACH_BILLING =
|
|
477
|
-
T.let(
|
|
478
|
-
:DETACH_BILLING,
|
|
479
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::CancelReason::TaggedSymbol
|
|
480
|
-
)
|
|
481
|
-
TRIAL_ENDED =
|
|
482
|
-
T.let(
|
|
483
|
-
:TRIAL_ENDED,
|
|
484
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::CancelReason::TaggedSymbol
|
|
485
|
-
)
|
|
486
|
-
IMMEDIATE =
|
|
487
|
-
T.let(
|
|
488
|
-
:Immediate,
|
|
489
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::CancelReason::TaggedSymbol
|
|
490
|
-
)
|
|
491
|
-
TRIAL_CONVERTED =
|
|
492
|
-
T.let(
|
|
493
|
-
:TRIAL_CONVERTED,
|
|
494
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::CancelReason::TaggedSymbol
|
|
495
|
-
)
|
|
496
|
-
PENDING_PAYMENT_EXPIRED =
|
|
497
|
-
T.let(
|
|
498
|
-
:PENDING_PAYMENT_EXPIRED,
|
|
499
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::CancelReason::TaggedSymbol
|
|
500
|
-
)
|
|
501
|
-
SCHEDULED_CANCELLATION =
|
|
502
|
-
T.let(
|
|
503
|
-
:ScheduledCancellation,
|
|
504
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::CancelReason::TaggedSymbol
|
|
505
|
-
)
|
|
506
|
-
CUSTOMER_ARCHIVED =
|
|
507
|
-
T.let(
|
|
508
|
-
:CustomerArchived,
|
|
509
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::CancelReason::TaggedSymbol
|
|
510
|
-
)
|
|
511
|
-
AUTO_CANCELLATION_RULE =
|
|
512
|
-
T.let(
|
|
513
|
-
:AutoCancellationRule,
|
|
514
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::CancelReason::TaggedSymbol
|
|
515
|
-
)
|
|
516
|
-
|
|
517
|
-
sig do
|
|
518
|
-
override.returns(
|
|
519
|
-
T::Array[
|
|
520
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::CancelReason::TaggedSymbol
|
|
521
|
-
]
|
|
522
|
-
)
|
|
523
|
-
end
|
|
524
|
-
def self.values
|
|
525
|
-
end
|
|
526
|
-
end
|
|
527
|
-
|
|
528
|
-
# The method used to collect payments for a subscription
|
|
529
|
-
module PaymentCollectionMethod
|
|
530
|
-
extend Stigg::Internal::Type::Enum
|
|
531
|
-
|
|
532
|
-
TaggedSymbol =
|
|
533
|
-
T.type_alias do
|
|
534
|
-
T.all(
|
|
535
|
-
Symbol,
|
|
536
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollectionMethod
|
|
537
|
-
)
|
|
538
|
-
end
|
|
539
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
540
|
-
|
|
541
|
-
CHARGE =
|
|
542
|
-
T.let(
|
|
543
|
-
:CHARGE,
|
|
544
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollectionMethod::TaggedSymbol
|
|
545
|
-
)
|
|
546
|
-
INVOICE =
|
|
547
|
-
T.let(
|
|
548
|
-
:INVOICE,
|
|
549
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollectionMethod::TaggedSymbol
|
|
550
|
-
)
|
|
551
|
-
NONE =
|
|
552
|
-
T.let(
|
|
553
|
-
:NONE,
|
|
554
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollectionMethod::TaggedSymbol
|
|
555
|
-
)
|
|
556
|
-
|
|
557
|
-
sig do
|
|
558
|
-
override.returns(
|
|
559
|
-
T::Array[
|
|
560
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::PaymentCollectionMethod::TaggedSymbol
|
|
561
|
-
]
|
|
562
|
-
)
|
|
563
|
-
end
|
|
564
|
-
def self.values
|
|
565
|
-
end
|
|
566
|
-
end
|
|
567
|
-
|
|
568
|
-
class Price < Stigg::Internal::Type::BaseModel
|
|
569
|
-
OrHash =
|
|
570
|
-
T.type_alias do
|
|
571
|
-
T.any(
|
|
572
|
-
Stigg::Models::V1::SubscriptionDelegateResponse::Data::Price,
|
|
573
|
-
Stigg::Internal::AnyHash
|
|
574
|
-
)
|
|
575
|
-
end
|
|
576
|
-
|
|
577
|
-
# Price ID
|
|
578
|
-
sig { returns(String) }
|
|
579
|
-
attr_accessor :id
|
|
580
|
-
|
|
581
|
-
# Creation timestamp
|
|
582
|
-
sig { returns(String) }
|
|
583
|
-
attr_accessor :created_at
|
|
584
|
-
|
|
585
|
-
# Last update timestamp
|
|
586
|
-
sig { returns(String) }
|
|
587
|
-
attr_accessor :updated_at
|
|
588
|
-
|
|
589
|
-
sig do
|
|
590
|
-
params(
|
|
591
|
-
id: String,
|
|
592
|
-
created_at: String,
|
|
593
|
-
updated_at: String
|
|
594
|
-
).returns(T.attached_class)
|
|
595
|
-
end
|
|
596
|
-
def self.new(
|
|
597
|
-
# Price ID
|
|
598
|
-
id:,
|
|
599
|
-
# Creation timestamp
|
|
600
|
-
created_at:,
|
|
601
|
-
# Last update timestamp
|
|
602
|
-
updated_at:
|
|
603
|
-
)
|
|
604
|
-
end
|
|
605
|
-
|
|
606
|
-
sig do
|
|
607
|
-
override.returns(
|
|
608
|
-
{ id: String, created_at: String, updated_at: String }
|
|
609
|
-
)
|
|
610
|
-
end
|
|
611
|
-
def to_hash
|
|
612
|
-
end
|
|
613
|
-
end
|
|
614
|
-
end
|
|
615
|
-
end
|
|
616
|
-
end
|
|
617
|
-
end
|
|
618
|
-
end
|