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