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
|
@@ -35,6 +35,7 @@ module Stigg
|
|
|
35
35
|
metadata: ::Hash[Symbol, String],
|
|
36
36
|
paying_customer_id: String?,
|
|
37
37
|
payment_collection_method: Stigg::Models::V1::SubscriptionDelegateResponse::Data::payment_collection_method?,
|
|
38
|
+
prices: ::Array[Stigg::Models::V1::SubscriptionDelegateResponse::Data::Price],
|
|
38
39
|
resource_id: String?,
|
|
39
40
|
trial_end_date: Time?
|
|
40
41
|
}
|
|
@@ -78,6 +79,12 @@ module Stigg
|
|
|
78
79
|
|
|
79
80
|
attr_accessor payment_collection_method: Stigg::Models::V1::SubscriptionDelegateResponse::Data::payment_collection_method?
|
|
80
81
|
|
|
82
|
+
attr_reader prices: ::Array[Stigg::Models::V1::SubscriptionDelegateResponse::Data::Price]?
|
|
83
|
+
|
|
84
|
+
def prices=: (
|
|
85
|
+
::Array[Stigg::Models::V1::SubscriptionDelegateResponse::Data::Price]
|
|
86
|
+
) -> ::Array[Stigg::Models::V1::SubscriptionDelegateResponse::Data::Price]
|
|
87
|
+
|
|
81
88
|
attr_accessor resource_id: String?
|
|
82
89
|
|
|
83
90
|
attr_accessor trial_end_date: Time?
|
|
@@ -101,6 +108,7 @@ module Stigg
|
|
|
101
108
|
?metadata: ::Hash[Symbol, String],
|
|
102
109
|
?paying_customer_id: String?,
|
|
103
110
|
?payment_collection_method: Stigg::Models::V1::SubscriptionDelegateResponse::Data::payment_collection_method?,
|
|
111
|
+
?prices: ::Array[Stigg::Models::V1::SubscriptionDelegateResponse::Data::Price],
|
|
104
112
|
?resource_id: String?,
|
|
105
113
|
?trial_end_date: Time?
|
|
106
114
|
) -> void
|
|
@@ -124,6 +132,7 @@ module Stigg
|
|
|
124
132
|
metadata: ::Hash[Symbol, String],
|
|
125
133
|
paying_customer_id: String?,
|
|
126
134
|
payment_collection_method: Stigg::Models::V1::SubscriptionDelegateResponse::Data::payment_collection_method?,
|
|
135
|
+
prices: ::Array[Stigg::Models::V1::SubscriptionDelegateResponse::Data::Price],
|
|
127
136
|
resource_id: String?,
|
|
128
137
|
trial_end_date: Time?
|
|
129
138
|
}
|
|
@@ -217,6 +226,28 @@ module Stigg
|
|
|
217
226
|
|
|
218
227
|
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionDelegateResponse::Data::payment_collection_method]
|
|
219
228
|
end
|
|
229
|
+
|
|
230
|
+
type price = { id: String, created_at: String, updated_at: String }
|
|
231
|
+
|
|
232
|
+
class Price < Stigg::Internal::Type::BaseModel
|
|
233
|
+
attr_accessor id: String
|
|
234
|
+
|
|
235
|
+
attr_accessor created_at: String
|
|
236
|
+
|
|
237
|
+
attr_accessor updated_at: String
|
|
238
|
+
|
|
239
|
+
def initialize: (
|
|
240
|
+
id: String,
|
|
241
|
+
created_at: String,
|
|
242
|
+
updated_at: String
|
|
243
|
+
) -> void
|
|
244
|
+
|
|
245
|
+
def to_hash: -> {
|
|
246
|
+
id: String,
|
|
247
|
+
created_at: String,
|
|
248
|
+
updated_at: String
|
|
249
|
+
}
|
|
250
|
+
end
|
|
220
251
|
end
|
|
221
252
|
end
|
|
222
253
|
end
|
|
@@ -3,10 +3,10 @@ module Stigg
|
|
|
3
3
|
module V1
|
|
4
4
|
type subscription_list_params =
|
|
5
5
|
{
|
|
6
|
+
after: String,
|
|
7
|
+
before: String,
|
|
6
8
|
customer_id: String,
|
|
7
|
-
ending_before: String,
|
|
8
9
|
limit: Integer,
|
|
9
|
-
starting_after: String,
|
|
10
10
|
status: String
|
|
11
11
|
}
|
|
12
12
|
& Stigg::Internal::Type::request_parameters
|
|
@@ -15,40 +15,40 @@ module Stigg
|
|
|
15
15
|
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
16
16
|
include Stigg::Internal::Type::RequestParameters
|
|
17
17
|
|
|
18
|
-
attr_reader
|
|
18
|
+
attr_reader after: String?
|
|
19
19
|
|
|
20
|
-
def
|
|
20
|
+
def after=: (String) -> String
|
|
21
21
|
|
|
22
|
-
attr_reader
|
|
22
|
+
attr_reader before: String?
|
|
23
23
|
|
|
24
|
-
def
|
|
24
|
+
def before=: (String) -> String
|
|
25
25
|
|
|
26
|
-
attr_reader
|
|
26
|
+
attr_reader customer_id: String?
|
|
27
27
|
|
|
28
|
-
def
|
|
28
|
+
def customer_id=: (String) -> String
|
|
29
29
|
|
|
30
|
-
attr_reader
|
|
30
|
+
attr_reader limit: Integer?
|
|
31
31
|
|
|
32
|
-
def
|
|
32
|
+
def limit=: (Integer) -> Integer
|
|
33
33
|
|
|
34
34
|
attr_reader status: String?
|
|
35
35
|
|
|
36
36
|
def status=: (String) -> String
|
|
37
37
|
|
|
38
38
|
def initialize: (
|
|
39
|
+
?after: String,
|
|
40
|
+
?before: String,
|
|
39
41
|
?customer_id: String,
|
|
40
|
-
?ending_before: String,
|
|
41
42
|
?limit: Integer,
|
|
42
|
-
?starting_after: String,
|
|
43
43
|
?status: String,
|
|
44
44
|
?request_options: Stigg::request_opts
|
|
45
45
|
) -> void
|
|
46
46
|
|
|
47
47
|
def to_hash: -> {
|
|
48
|
+
after: String,
|
|
49
|
+
before: String,
|
|
48
50
|
customer_id: String,
|
|
49
|
-
ending_before: String,
|
|
50
51
|
limit: Integer,
|
|
51
|
-
starting_after: String,
|
|
52
52
|
status: String,
|
|
53
53
|
request_options: Stigg::RequestOptions
|
|
54
54
|
}
|
|
@@ -2,226 +2,233 @@ module Stigg
|
|
|
2
2
|
module Models
|
|
3
3
|
module V1
|
|
4
4
|
type subscription_list_response =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
billing_id: String?,
|
|
8
|
+
created_at: Time,
|
|
9
|
+
customer_id: String,
|
|
10
|
+
payment_collection: Stigg::Models::V1::SubscriptionListResponse::payment_collection,
|
|
11
|
+
plan_id: String,
|
|
12
|
+
pricing_type: Stigg::Models::V1::SubscriptionListResponse::pricing_type,
|
|
13
|
+
start_date: Time,
|
|
14
|
+
status: Stigg::Models::V1::SubscriptionListResponse::status,
|
|
15
|
+
cancellation_date: Time?,
|
|
16
|
+
cancel_reason: Stigg::Models::V1::SubscriptionListResponse::cancel_reason?,
|
|
17
|
+
current_billing_period_end: Time?,
|
|
18
|
+
current_billing_period_start: Time?,
|
|
19
|
+
effective_end_date: Time?,
|
|
20
|
+
end_date: Time?,
|
|
21
|
+
metadata: ::Hash[Symbol, String],
|
|
22
|
+
paying_customer_id: String?,
|
|
23
|
+
payment_collection_method: Stigg::Models::V1::SubscriptionListResponse::payment_collection_method?,
|
|
24
|
+
prices: ::Array[Stigg::Models::V1::SubscriptionListResponse::Price],
|
|
25
|
+
resource_id: String?,
|
|
26
|
+
trial_end_date: Time?
|
|
27
|
+
}
|
|
6
28
|
|
|
7
29
|
class SubscriptionListResponse < Stigg::Internal::Type::BaseModel
|
|
8
|
-
attr_accessor
|
|
30
|
+
attr_accessor id: String
|
|
9
31
|
|
|
10
|
-
|
|
11
|
-
data: ::Array[Stigg::Models::V1::SubscriptionListResponse::Data]
|
|
12
|
-
) -> void
|
|
32
|
+
attr_accessor billing_id: String?
|
|
13
33
|
|
|
14
|
-
|
|
15
|
-
data: ::Array[Stigg::Models::V1::SubscriptionListResponse::Data]
|
|
16
|
-
}
|
|
34
|
+
attr_accessor created_at: Time
|
|
17
35
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
class Data < Stigg::Internal::Type::BaseModel
|
|
44
|
-
attr_accessor id: String
|
|
36
|
+
attr_accessor customer_id: String
|
|
37
|
+
|
|
38
|
+
attr_accessor payment_collection: Stigg::Models::V1::SubscriptionListResponse::payment_collection
|
|
39
|
+
|
|
40
|
+
attr_accessor plan_id: String
|
|
41
|
+
|
|
42
|
+
attr_accessor pricing_type: Stigg::Models::V1::SubscriptionListResponse::pricing_type
|
|
43
|
+
|
|
44
|
+
attr_accessor start_date: Time
|
|
45
|
+
|
|
46
|
+
attr_accessor status: Stigg::Models::V1::SubscriptionListResponse::status
|
|
47
|
+
|
|
48
|
+
attr_accessor cancellation_date: Time?
|
|
49
|
+
|
|
50
|
+
attr_accessor cancel_reason: Stigg::Models::V1::SubscriptionListResponse::cancel_reason?
|
|
51
|
+
|
|
52
|
+
attr_accessor current_billing_period_end: Time?
|
|
53
|
+
|
|
54
|
+
attr_accessor current_billing_period_start: Time?
|
|
55
|
+
|
|
56
|
+
attr_accessor effective_end_date: Time?
|
|
57
|
+
|
|
58
|
+
attr_accessor end_date: Time?
|
|
45
59
|
|
|
46
|
-
|
|
60
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
47
61
|
|
|
48
|
-
|
|
62
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
49
63
|
|
|
50
|
-
|
|
64
|
+
attr_accessor paying_customer_id: String?
|
|
51
65
|
|
|
52
|
-
|
|
66
|
+
attr_accessor payment_collection_method: Stigg::Models::V1::SubscriptionListResponse::payment_collection_method?
|
|
53
67
|
|
|
54
|
-
|
|
68
|
+
attr_reader prices: ::Array[Stigg::Models::V1::SubscriptionListResponse::Price]?
|
|
55
69
|
|
|
56
|
-
|
|
70
|
+
def prices=: (
|
|
71
|
+
::Array[Stigg::Models::V1::SubscriptionListResponse::Price]
|
|
72
|
+
) -> ::Array[Stigg::Models::V1::SubscriptionListResponse::Price]
|
|
57
73
|
|
|
58
|
-
|
|
74
|
+
attr_accessor resource_id: String?
|
|
59
75
|
|
|
60
|
-
|
|
76
|
+
attr_accessor trial_end_date: Time?
|
|
61
77
|
|
|
62
|
-
|
|
78
|
+
def initialize: (
|
|
79
|
+
id: String,
|
|
80
|
+
billing_id: String?,
|
|
81
|
+
created_at: Time,
|
|
82
|
+
customer_id: String,
|
|
83
|
+
payment_collection: Stigg::Models::V1::SubscriptionListResponse::payment_collection,
|
|
84
|
+
plan_id: String,
|
|
85
|
+
pricing_type: Stigg::Models::V1::SubscriptionListResponse::pricing_type,
|
|
86
|
+
start_date: Time,
|
|
87
|
+
status: Stigg::Models::V1::SubscriptionListResponse::status,
|
|
88
|
+
?cancellation_date: Time?,
|
|
89
|
+
?cancel_reason: Stigg::Models::V1::SubscriptionListResponse::cancel_reason?,
|
|
90
|
+
?current_billing_period_end: Time?,
|
|
91
|
+
?current_billing_period_start: Time?,
|
|
92
|
+
?effective_end_date: Time?,
|
|
93
|
+
?end_date: Time?,
|
|
94
|
+
?metadata: ::Hash[Symbol, String],
|
|
95
|
+
?paying_customer_id: String?,
|
|
96
|
+
?payment_collection_method: Stigg::Models::V1::SubscriptionListResponse::payment_collection_method?,
|
|
97
|
+
?prices: ::Array[Stigg::Models::V1::SubscriptionListResponse::Price],
|
|
98
|
+
?resource_id: String?,
|
|
99
|
+
?trial_end_date: Time?
|
|
100
|
+
) -> void
|
|
101
|
+
|
|
102
|
+
def to_hash: -> {
|
|
103
|
+
id: String,
|
|
104
|
+
billing_id: String?,
|
|
105
|
+
created_at: Time,
|
|
106
|
+
customer_id: String,
|
|
107
|
+
payment_collection: Stigg::Models::V1::SubscriptionListResponse::payment_collection,
|
|
108
|
+
plan_id: String,
|
|
109
|
+
pricing_type: Stigg::Models::V1::SubscriptionListResponse::pricing_type,
|
|
110
|
+
start_date: Time,
|
|
111
|
+
status: Stigg::Models::V1::SubscriptionListResponse::status,
|
|
112
|
+
cancellation_date: Time?,
|
|
113
|
+
cancel_reason: Stigg::Models::V1::SubscriptionListResponse::cancel_reason?,
|
|
114
|
+
current_billing_period_end: Time?,
|
|
115
|
+
current_billing_period_start: Time?,
|
|
116
|
+
effective_end_date: Time?,
|
|
117
|
+
end_date: Time?,
|
|
118
|
+
metadata: ::Hash[Symbol, String],
|
|
119
|
+
paying_customer_id: String?,
|
|
120
|
+
payment_collection_method: Stigg::Models::V1::SubscriptionListResponse::payment_collection_method?,
|
|
121
|
+
prices: ::Array[Stigg::Models::V1::SubscriptionListResponse::Price],
|
|
122
|
+
resource_id: String?,
|
|
123
|
+
trial_end_date: Time?
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
type payment_collection =
|
|
127
|
+
:NOT_REQUIRED | :PROCESSING | :FAILED | :ACTION_REQUIRED
|
|
128
|
+
|
|
129
|
+
module PaymentCollection
|
|
130
|
+
extend Stigg::Internal::Type::Enum
|
|
131
|
+
|
|
132
|
+
NOT_REQUIRED: :NOT_REQUIRED
|
|
133
|
+
PROCESSING: :PROCESSING
|
|
134
|
+
FAILED: :FAILED
|
|
135
|
+
ACTION_REQUIRED: :ACTION_REQUIRED
|
|
136
|
+
|
|
137
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionListResponse::payment_collection]
|
|
138
|
+
end
|
|
63
139
|
|
|
64
|
-
|
|
140
|
+
type pricing_type = :FREE | :PAID | :CUSTOM
|
|
65
141
|
|
|
66
|
-
|
|
142
|
+
module PricingType
|
|
143
|
+
extend Stigg::Internal::Type::Enum
|
|
67
144
|
|
|
68
|
-
|
|
145
|
+
FREE: :FREE
|
|
146
|
+
PAID: :PAID
|
|
147
|
+
CUSTOM: :CUSTOM
|
|
69
148
|
|
|
70
|
-
|
|
149
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionListResponse::pricing_type]
|
|
150
|
+
end
|
|
71
151
|
|
|
72
|
-
|
|
152
|
+
type status =
|
|
153
|
+
:PAYMENT_PENDING
|
|
154
|
+
| :ACTIVE
|
|
155
|
+
| :EXPIRED
|
|
156
|
+
| :IN_TRIAL
|
|
157
|
+
| :CANCELED
|
|
158
|
+
| :NOT_STARTED
|
|
159
|
+
|
|
160
|
+
module Status
|
|
161
|
+
extend Stigg::Internal::Type::Enum
|
|
162
|
+
|
|
163
|
+
PAYMENT_PENDING: :PAYMENT_PENDING
|
|
164
|
+
ACTIVE: :ACTIVE
|
|
165
|
+
EXPIRED: :EXPIRED
|
|
166
|
+
IN_TRIAL: :IN_TRIAL
|
|
167
|
+
CANCELED: :CANCELED
|
|
168
|
+
NOT_STARTED: :NOT_STARTED
|
|
169
|
+
|
|
170
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionListResponse::status]
|
|
171
|
+
end
|
|
73
172
|
|
|
74
|
-
|
|
173
|
+
type cancel_reason =
|
|
174
|
+
:UPGRADE_OR_DOWNGRADE
|
|
175
|
+
| :CANCELLED_BY_BILLING
|
|
176
|
+
| :EXPIRED
|
|
177
|
+
| :DETACH_BILLING
|
|
178
|
+
| :TRIAL_ENDED
|
|
179
|
+
| :Immediate
|
|
180
|
+
| :TRIAL_CONVERTED
|
|
181
|
+
| :PENDING_PAYMENT_EXPIRED
|
|
182
|
+
| :ScheduledCancellation
|
|
183
|
+
| :CustomerArchived
|
|
184
|
+
| :AutoCancellationRule
|
|
185
|
+
|
|
186
|
+
module CancelReason
|
|
187
|
+
extend Stigg::Internal::Type::Enum
|
|
188
|
+
|
|
189
|
+
UPGRADE_OR_DOWNGRADE: :UPGRADE_OR_DOWNGRADE
|
|
190
|
+
CANCELLED_BY_BILLING: :CANCELLED_BY_BILLING
|
|
191
|
+
EXPIRED: :EXPIRED
|
|
192
|
+
DETACH_BILLING: :DETACH_BILLING
|
|
193
|
+
TRIAL_ENDED: :TRIAL_ENDED
|
|
194
|
+
IMMEDIATE: :Immediate
|
|
195
|
+
TRIAL_CONVERTED: :TRIAL_CONVERTED
|
|
196
|
+
PENDING_PAYMENT_EXPIRED: :PENDING_PAYMENT_EXPIRED
|
|
197
|
+
SCHEDULED_CANCELLATION: :ScheduledCancellation
|
|
198
|
+
CUSTOMER_ARCHIVED: :CustomerArchived
|
|
199
|
+
AUTO_CANCELLATION_RULE: :AutoCancellationRule
|
|
200
|
+
|
|
201
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionListResponse::cancel_reason]
|
|
202
|
+
end
|
|
75
203
|
|
|
76
|
-
|
|
204
|
+
type payment_collection_method = :CHARGE | :INVOICE | :NONE
|
|
77
205
|
|
|
78
|
-
|
|
206
|
+
module PaymentCollectionMethod
|
|
207
|
+
extend Stigg::Internal::Type::Enum
|
|
79
208
|
|
|
80
|
-
|
|
209
|
+
CHARGE: :CHARGE
|
|
210
|
+
INVOICE: :INVOICE
|
|
211
|
+
NONE: :NONE
|
|
81
212
|
|
|
82
|
-
|
|
213
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionListResponse::payment_collection_method]
|
|
214
|
+
end
|
|
83
215
|
|
|
84
|
-
|
|
216
|
+
type price = { id: String, created_at: String, updated_at: String }
|
|
85
217
|
|
|
86
|
-
|
|
218
|
+
class Price < Stigg::Internal::Type::BaseModel
|
|
219
|
+
attr_accessor id: String
|
|
220
|
+
|
|
221
|
+
attr_accessor created_at: String
|
|
222
|
+
|
|
223
|
+
attr_accessor updated_at: String
|
|
87
224
|
|
|
88
225
|
def initialize: (
|
|
89
226
|
id: String,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
cursor_id: String,
|
|
93
|
-
customer_id: String,
|
|
94
|
-
payment_collection: Stigg::Models::V1::SubscriptionListResponse::Data::payment_collection,
|
|
95
|
-
plan_id: String,
|
|
96
|
-
pricing_type: Stigg::Models::V1::SubscriptionListResponse::Data::pricing_type,
|
|
97
|
-
start_date: Time,
|
|
98
|
-
status: Stigg::Models::V1::SubscriptionListResponse::Data::status,
|
|
99
|
-
?cancellation_date: Time?,
|
|
100
|
-
?cancel_reason: Stigg::Models::V1::SubscriptionListResponse::Data::cancel_reason?,
|
|
101
|
-
?current_billing_period_end: Time?,
|
|
102
|
-
?current_billing_period_start: Time?,
|
|
103
|
-
?effective_end_date: Time?,
|
|
104
|
-
?end_date: Time?,
|
|
105
|
-
?metadata: ::Hash[Symbol, String],
|
|
106
|
-
?paying_customer_id: String?,
|
|
107
|
-
?payment_collection_method: Stigg::Models::V1::SubscriptionListResponse::Data::payment_collection_method?,
|
|
108
|
-
?resource_id: String?,
|
|
109
|
-
?trial_end_date: Time?
|
|
227
|
+
created_at: String,
|
|
228
|
+
updated_at: String
|
|
110
229
|
) -> void
|
|
111
230
|
|
|
112
|
-
def to_hash: -> {
|
|
113
|
-
id: String,
|
|
114
|
-
billing_id: String?,
|
|
115
|
-
created_at: Time,
|
|
116
|
-
cursor_id: String,
|
|
117
|
-
customer_id: String,
|
|
118
|
-
payment_collection: Stigg::Models::V1::SubscriptionListResponse::Data::payment_collection,
|
|
119
|
-
plan_id: String,
|
|
120
|
-
pricing_type: Stigg::Models::V1::SubscriptionListResponse::Data::pricing_type,
|
|
121
|
-
start_date: Time,
|
|
122
|
-
status: Stigg::Models::V1::SubscriptionListResponse::Data::status,
|
|
123
|
-
cancellation_date: Time?,
|
|
124
|
-
cancel_reason: Stigg::Models::V1::SubscriptionListResponse::Data::cancel_reason?,
|
|
125
|
-
current_billing_period_end: Time?,
|
|
126
|
-
current_billing_period_start: Time?,
|
|
127
|
-
effective_end_date: Time?,
|
|
128
|
-
end_date: Time?,
|
|
129
|
-
metadata: ::Hash[Symbol, String],
|
|
130
|
-
paying_customer_id: String?,
|
|
131
|
-
payment_collection_method: Stigg::Models::V1::SubscriptionListResponse::Data::payment_collection_method?,
|
|
132
|
-
resource_id: String?,
|
|
133
|
-
trial_end_date: Time?
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
type payment_collection =
|
|
137
|
-
:NOT_REQUIRED | :PROCESSING | :FAILED | :ACTION_REQUIRED
|
|
138
|
-
|
|
139
|
-
module PaymentCollection
|
|
140
|
-
extend Stigg::Internal::Type::Enum
|
|
141
|
-
|
|
142
|
-
NOT_REQUIRED: :NOT_REQUIRED
|
|
143
|
-
PROCESSING: :PROCESSING
|
|
144
|
-
FAILED: :FAILED
|
|
145
|
-
ACTION_REQUIRED: :ACTION_REQUIRED
|
|
146
|
-
|
|
147
|
-
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionListResponse::Data::payment_collection]
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
type pricing_type = :FREE | :PAID | :CUSTOM
|
|
151
|
-
|
|
152
|
-
module PricingType
|
|
153
|
-
extend Stigg::Internal::Type::Enum
|
|
154
|
-
|
|
155
|
-
FREE: :FREE
|
|
156
|
-
PAID: :PAID
|
|
157
|
-
CUSTOM: :CUSTOM
|
|
158
|
-
|
|
159
|
-
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionListResponse::Data::pricing_type]
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
type status =
|
|
163
|
-
:PAYMENT_PENDING
|
|
164
|
-
| :ACTIVE
|
|
165
|
-
| :EXPIRED
|
|
166
|
-
| :IN_TRIAL
|
|
167
|
-
| :CANCELED
|
|
168
|
-
| :NOT_STARTED
|
|
169
|
-
|
|
170
|
-
module Status
|
|
171
|
-
extend Stigg::Internal::Type::Enum
|
|
172
|
-
|
|
173
|
-
PAYMENT_PENDING: :PAYMENT_PENDING
|
|
174
|
-
ACTIVE: :ACTIVE
|
|
175
|
-
EXPIRED: :EXPIRED
|
|
176
|
-
IN_TRIAL: :IN_TRIAL
|
|
177
|
-
CANCELED: :CANCELED
|
|
178
|
-
NOT_STARTED: :NOT_STARTED
|
|
179
|
-
|
|
180
|
-
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionListResponse::Data::status]
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
type cancel_reason =
|
|
184
|
-
:UPGRADE_OR_DOWNGRADE
|
|
185
|
-
| :CANCELLED_BY_BILLING
|
|
186
|
-
| :EXPIRED
|
|
187
|
-
| :DETACH_BILLING
|
|
188
|
-
| :TRIAL_ENDED
|
|
189
|
-
| :Immediate
|
|
190
|
-
| :TRIAL_CONVERTED
|
|
191
|
-
| :PENDING_PAYMENT_EXPIRED
|
|
192
|
-
| :ScheduledCancellation
|
|
193
|
-
| :CustomerArchived
|
|
194
|
-
| :AutoCancellationRule
|
|
195
|
-
|
|
196
|
-
module CancelReason
|
|
197
|
-
extend Stigg::Internal::Type::Enum
|
|
198
|
-
|
|
199
|
-
UPGRADE_OR_DOWNGRADE: :UPGRADE_OR_DOWNGRADE
|
|
200
|
-
CANCELLED_BY_BILLING: :CANCELLED_BY_BILLING
|
|
201
|
-
EXPIRED: :EXPIRED
|
|
202
|
-
DETACH_BILLING: :DETACH_BILLING
|
|
203
|
-
TRIAL_ENDED: :TRIAL_ENDED
|
|
204
|
-
IMMEDIATE: :Immediate
|
|
205
|
-
TRIAL_CONVERTED: :TRIAL_CONVERTED
|
|
206
|
-
PENDING_PAYMENT_EXPIRED: :PENDING_PAYMENT_EXPIRED
|
|
207
|
-
SCHEDULED_CANCELLATION: :ScheduledCancellation
|
|
208
|
-
CUSTOMER_ARCHIVED: :CustomerArchived
|
|
209
|
-
AUTO_CANCELLATION_RULE: :AutoCancellationRule
|
|
210
|
-
|
|
211
|
-
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionListResponse::Data::cancel_reason]
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
type payment_collection_method = :CHARGE | :INVOICE | :NONE
|
|
215
|
-
|
|
216
|
-
module PaymentCollectionMethod
|
|
217
|
-
extend Stigg::Internal::Type::Enum
|
|
218
|
-
|
|
219
|
-
CHARGE: :CHARGE
|
|
220
|
-
INVOICE: :INVOICE
|
|
221
|
-
NONE: :NONE
|
|
222
|
-
|
|
223
|
-
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionListResponse::Data::payment_collection_method]
|
|
224
|
-
end
|
|
231
|
+
def to_hash: -> { id: String, created_at: String, updated_at: String }
|
|
225
232
|
end
|
|
226
233
|
end
|
|
227
234
|
end
|
|
@@ -35,6 +35,7 @@ module Stigg
|
|
|
35
35
|
metadata: ::Hash[Symbol, String],
|
|
36
36
|
paying_customer_id: String?,
|
|
37
37
|
payment_collection_method: Stigg::Models::V1::SubscriptionMigrateResponse::Data::payment_collection_method?,
|
|
38
|
+
prices: ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::Price],
|
|
38
39
|
resource_id: String?,
|
|
39
40
|
trial_end_date: Time?
|
|
40
41
|
}
|
|
@@ -78,6 +79,12 @@ module Stigg
|
|
|
78
79
|
|
|
79
80
|
attr_accessor payment_collection_method: Stigg::Models::V1::SubscriptionMigrateResponse::Data::payment_collection_method?
|
|
80
81
|
|
|
82
|
+
attr_reader prices: ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::Price]?
|
|
83
|
+
|
|
84
|
+
def prices=: (
|
|
85
|
+
::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::Price]
|
|
86
|
+
) -> ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::Price]
|
|
87
|
+
|
|
81
88
|
attr_accessor resource_id: String?
|
|
82
89
|
|
|
83
90
|
attr_accessor trial_end_date: Time?
|
|
@@ -101,6 +108,7 @@ module Stigg
|
|
|
101
108
|
?metadata: ::Hash[Symbol, String],
|
|
102
109
|
?paying_customer_id: String?,
|
|
103
110
|
?payment_collection_method: Stigg::Models::V1::SubscriptionMigrateResponse::Data::payment_collection_method?,
|
|
111
|
+
?prices: ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::Price],
|
|
104
112
|
?resource_id: String?,
|
|
105
113
|
?trial_end_date: Time?
|
|
106
114
|
) -> void
|
|
@@ -124,6 +132,7 @@ module Stigg
|
|
|
124
132
|
metadata: ::Hash[Symbol, String],
|
|
125
133
|
paying_customer_id: String?,
|
|
126
134
|
payment_collection_method: Stigg::Models::V1::SubscriptionMigrateResponse::Data::payment_collection_method?,
|
|
135
|
+
prices: ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::Price],
|
|
127
136
|
resource_id: String?,
|
|
128
137
|
trial_end_date: Time?
|
|
129
138
|
}
|
|
@@ -217,6 +226,28 @@ module Stigg
|
|
|
217
226
|
|
|
218
227
|
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::payment_collection_method]
|
|
219
228
|
end
|
|
229
|
+
|
|
230
|
+
type price = { id: String, created_at: String, updated_at: String }
|
|
231
|
+
|
|
232
|
+
class Price < Stigg::Internal::Type::BaseModel
|
|
233
|
+
attr_accessor id: String
|
|
234
|
+
|
|
235
|
+
attr_accessor created_at: String
|
|
236
|
+
|
|
237
|
+
attr_accessor updated_at: String
|
|
238
|
+
|
|
239
|
+
def initialize: (
|
|
240
|
+
id: String,
|
|
241
|
+
created_at: String,
|
|
242
|
+
updated_at: String
|
|
243
|
+
) -> void
|
|
244
|
+
|
|
245
|
+
def to_hash: -> {
|
|
246
|
+
id: String,
|
|
247
|
+
created_at: String,
|
|
248
|
+
updated_at: String
|
|
249
|
+
}
|
|
250
|
+
end
|
|
220
251
|
end
|
|
221
252
|
end
|
|
222
253
|
end
|
|
@@ -264,15 +264,11 @@ module Stigg
|
|
|
264
264
|
class AmountsOff < Stigg::Internal::Type::BaseModel
|
|
265
265
|
attr_accessor amount: Float
|
|
266
266
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
def currency=: (
|
|
270
|
-
Stigg::Models::V1::SubscriptionPreviewParams::AppliedCoupon::Discount::AmountsOff::currency
|
|
271
|
-
) -> Stigg::Models::V1::SubscriptionPreviewParams::AppliedCoupon::Discount::AmountsOff::currency
|
|
267
|
+
attr_accessor currency: Stigg::Models::V1::SubscriptionPreviewParams::AppliedCoupon::Discount::AmountsOff::currency
|
|
272
268
|
|
|
273
269
|
def initialize: (
|
|
274
270
|
amount: Float,
|
|
275
|
-
|
|
271
|
+
currency: Stigg::Models::V1::SubscriptionPreviewParams::AppliedCoupon::Discount::AmountsOff::currency
|
|
276
272
|
) -> void
|
|
277
273
|
|
|
278
274
|
def to_hash: -> {
|