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
data/sig/stigg/models/v1/{subscription_create_response.rbs → subscription_provision_response.rbs}
RENAMED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
module Stigg
|
|
2
2
|
module Models
|
|
3
3
|
module V1
|
|
4
|
-
type
|
|
5
|
-
{ data: Stigg::Models::V1::
|
|
4
|
+
type subscription_provision_response =
|
|
5
|
+
{ data: Stigg::Models::V1::SubscriptionProvisionResponse::Data }
|
|
6
6
|
|
|
7
|
-
class
|
|
8
|
-
attr_accessor data: Stigg::Models::V1::
|
|
7
|
+
class SubscriptionProvisionResponse < Stigg::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor data: Stigg::Models::V1::SubscriptionProvisionResponse::Data
|
|
9
9
|
|
|
10
10
|
def initialize: (
|
|
11
|
-
data: Stigg::Models::V1::
|
|
11
|
+
data: Stigg::Models::V1::SubscriptionProvisionResponse::Data
|
|
12
12
|
) -> void
|
|
13
13
|
|
|
14
14
|
def to_hash: -> {
|
|
15
|
-
data: Stigg::Models::V1::
|
|
15
|
+
data: Stigg::Models::V1::SubscriptionProvisionResponse::Data
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
type data =
|
|
19
19
|
{
|
|
20
20
|
id: String,
|
|
21
|
-
entitlements: ::Array[Stigg::Models::V1::
|
|
22
|
-
status: Stigg::Models::V1::
|
|
21
|
+
entitlements: ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Entitlement],
|
|
22
|
+
status: Stigg::Models::V1::SubscriptionProvisionResponse::Data::status,
|
|
23
23
|
checkout_billing_id: String?,
|
|
24
24
|
checkout_url: String?,
|
|
25
25
|
is_scheduled: bool,
|
|
26
|
-
subscription: Stigg::Models::V1::
|
|
26
|
+
subscription: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
class Data < Stigg::Internal::Type::BaseModel
|
|
30
30
|
attr_accessor id: String
|
|
31
31
|
|
|
32
|
-
attr_accessor entitlements: ::Array[Stigg::Models::V1::
|
|
32
|
+
attr_accessor entitlements: ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Entitlement]
|
|
33
33
|
|
|
34
|
-
attr_accessor status: Stigg::Models::V1::
|
|
34
|
+
attr_accessor status: Stigg::Models::V1::SubscriptionProvisionResponse::Data::status
|
|
35
35
|
|
|
36
36
|
attr_accessor checkout_billing_id: String?
|
|
37
37
|
|
|
@@ -41,30 +41,30 @@ module Stigg
|
|
|
41
41
|
|
|
42
42
|
def is_scheduled=: (bool) -> bool
|
|
43
43
|
|
|
44
|
-
attr_reader subscription: Stigg::Models::V1::
|
|
44
|
+
attr_reader subscription: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription?
|
|
45
45
|
|
|
46
46
|
def subscription=: (
|
|
47
|
-
Stigg::Models::V1::
|
|
48
|
-
) -> Stigg::Models::V1::
|
|
47
|
+
Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription
|
|
48
|
+
) -> Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription
|
|
49
49
|
|
|
50
50
|
def initialize: (
|
|
51
51
|
id: String,
|
|
52
|
-
entitlements: ::Array[Stigg::Models::V1::
|
|
53
|
-
status: Stigg::Models::V1::
|
|
52
|
+
entitlements: ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Entitlement],
|
|
53
|
+
status: Stigg::Models::V1::SubscriptionProvisionResponse::Data::status,
|
|
54
54
|
?checkout_billing_id: String?,
|
|
55
55
|
?checkout_url: String?,
|
|
56
56
|
?is_scheduled: bool,
|
|
57
|
-
?subscription: Stigg::Models::V1::
|
|
57
|
+
?subscription: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription
|
|
58
58
|
) -> void
|
|
59
59
|
|
|
60
60
|
def to_hash: -> {
|
|
61
61
|
id: String,
|
|
62
|
-
entitlements: ::Array[Stigg::Models::V1::
|
|
63
|
-
status: Stigg::Models::V1::
|
|
62
|
+
entitlements: ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Entitlement],
|
|
63
|
+
status: Stigg::Models::V1::SubscriptionProvisionResponse::Data::status,
|
|
64
64
|
checkout_billing_id: String?,
|
|
65
65
|
checkout_url: String?,
|
|
66
66
|
is_scheduled: bool,
|
|
67
|
-
subscription: Stigg::Models::V1::
|
|
67
|
+
subscription: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
type entitlement =
|
|
@@ -72,10 +72,10 @@ module Stigg
|
|
|
72
72
|
access_denied_reason: String?,
|
|
73
73
|
current_usage: Float,
|
|
74
74
|
entitlement_updated_at: Time?,
|
|
75
|
-
feature: Stigg::Models::V1::
|
|
75
|
+
feature: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Entitlement::Feature?,
|
|
76
76
|
has_unlimited_usage: bool?,
|
|
77
77
|
is_granted: bool,
|
|
78
|
-
reset_period: Stigg::Models::V1::
|
|
78
|
+
reset_period: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Entitlement::reset_period?,
|
|
79
79
|
usage_limit: Float?,
|
|
80
80
|
usage_period_anchor: Time?,
|
|
81
81
|
usage_period_end: Time?,
|
|
@@ -91,7 +91,7 @@ module Stigg
|
|
|
91
91
|
|
|
92
92
|
attr_accessor entitlement_updated_at: Time?
|
|
93
93
|
|
|
94
|
-
attr_accessor feature: Stigg::Models::V1::
|
|
94
|
+
attr_accessor feature: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Entitlement::Feature?
|
|
95
95
|
|
|
96
96
|
attr_accessor has_unlimited_usage: bool?
|
|
97
97
|
|
|
@@ -99,7 +99,7 @@ module Stigg
|
|
|
99
99
|
|
|
100
100
|
def is_granted=: (bool) -> bool
|
|
101
101
|
|
|
102
|
-
attr_accessor reset_period: Stigg::Models::V1::
|
|
102
|
+
attr_accessor reset_period: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Entitlement::reset_period?
|
|
103
103
|
|
|
104
104
|
attr_accessor usage_limit: Float?
|
|
105
105
|
|
|
@@ -113,10 +113,10 @@ module Stigg
|
|
|
113
113
|
?access_denied_reason: String?,
|
|
114
114
|
?current_usage: Float,
|
|
115
115
|
?entitlement_updated_at: Time?,
|
|
116
|
-
?feature: Stigg::Models::V1::
|
|
116
|
+
?feature: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Entitlement::Feature?,
|
|
117
117
|
?has_unlimited_usage: bool?,
|
|
118
118
|
?is_granted: bool,
|
|
119
|
-
?reset_period: Stigg::Models::V1::
|
|
119
|
+
?reset_period: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Entitlement::reset_period?,
|
|
120
120
|
?usage_limit: Float?,
|
|
121
121
|
?usage_period_anchor: Time?,
|
|
122
122
|
?usage_period_end: Time?,
|
|
@@ -127,10 +127,10 @@ module Stigg
|
|
|
127
127
|
access_denied_reason: String?,
|
|
128
128
|
current_usage: Float,
|
|
129
129
|
entitlement_updated_at: Time?,
|
|
130
|
-
feature: Stigg::Models::V1::
|
|
130
|
+
feature: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Entitlement::Feature?,
|
|
131
131
|
has_unlimited_usage: bool?,
|
|
132
132
|
is_granted: bool,
|
|
133
|
-
reset_period: Stigg::Models::V1::
|
|
133
|
+
reset_period: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Entitlement::reset_period?,
|
|
134
134
|
usage_limit: Float?,
|
|
135
135
|
usage_period_anchor: Time?,
|
|
136
136
|
usage_period_end: Time?,
|
|
@@ -158,7 +158,7 @@ module Stigg
|
|
|
158
158
|
DAY: :DAY
|
|
159
159
|
HOUR: :HOUR
|
|
160
160
|
|
|
161
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
161
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Entitlement::reset_period]
|
|
162
162
|
end
|
|
163
163
|
end
|
|
164
164
|
|
|
@@ -170,7 +170,7 @@ module Stigg
|
|
|
170
170
|
SUCCESS: :SUCCESS
|
|
171
171
|
PAYMENT_REQUIRED: :PAYMENT_REQUIRED
|
|
172
172
|
|
|
173
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
173
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::status]
|
|
174
174
|
end
|
|
175
175
|
|
|
176
176
|
type subscription =
|
|
@@ -179,21 +179,21 @@ module Stigg
|
|
|
179
179
|
billing_id: String?,
|
|
180
180
|
created_at: Time,
|
|
181
181
|
customer_id: String,
|
|
182
|
-
payment_collection: Stigg::Models::V1::
|
|
182
|
+
payment_collection: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::payment_collection,
|
|
183
183
|
plan_id: String,
|
|
184
|
-
pricing_type: Stigg::Models::V1::
|
|
184
|
+
pricing_type: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::pricing_type,
|
|
185
185
|
start_date: Time,
|
|
186
|
-
status: Stigg::Models::V1::
|
|
186
|
+
status: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::status,
|
|
187
187
|
cancellation_date: Time?,
|
|
188
|
-
cancel_reason: Stigg::Models::V1::
|
|
188
|
+
cancel_reason: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::cancel_reason?,
|
|
189
189
|
current_billing_period_end: Time?,
|
|
190
190
|
current_billing_period_start: Time?,
|
|
191
191
|
effective_end_date: Time?,
|
|
192
192
|
end_date: Time?,
|
|
193
193
|
metadata: ::Hash[Symbol, String],
|
|
194
194
|
paying_customer_id: String?,
|
|
195
|
-
payment_collection_method: Stigg::Models::V1::
|
|
196
|
-
prices: ::Array[Stigg::Models::V1::
|
|
195
|
+
payment_collection_method: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::payment_collection_method?,
|
|
196
|
+
prices: ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price],
|
|
197
197
|
resource_id: String?,
|
|
198
198
|
trial_end_date: Time?
|
|
199
199
|
}
|
|
@@ -207,19 +207,19 @@ module Stigg
|
|
|
207
207
|
|
|
208
208
|
attr_accessor customer_id: String
|
|
209
209
|
|
|
210
|
-
attr_accessor payment_collection: Stigg::Models::V1::
|
|
210
|
+
attr_accessor payment_collection: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::payment_collection
|
|
211
211
|
|
|
212
212
|
attr_accessor plan_id: String
|
|
213
213
|
|
|
214
|
-
attr_accessor pricing_type: Stigg::Models::V1::
|
|
214
|
+
attr_accessor pricing_type: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::pricing_type
|
|
215
215
|
|
|
216
216
|
attr_accessor start_date: Time
|
|
217
217
|
|
|
218
|
-
attr_accessor status: Stigg::Models::V1::
|
|
218
|
+
attr_accessor status: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::status
|
|
219
219
|
|
|
220
220
|
attr_accessor cancellation_date: Time?
|
|
221
221
|
|
|
222
|
-
attr_accessor cancel_reason: Stigg::Models::V1::
|
|
222
|
+
attr_accessor cancel_reason: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::cancel_reason?
|
|
223
223
|
|
|
224
224
|
attr_accessor current_billing_period_end: Time?
|
|
225
225
|
|
|
@@ -235,13 +235,13 @@ module Stigg
|
|
|
235
235
|
|
|
236
236
|
attr_accessor paying_customer_id: String?
|
|
237
237
|
|
|
238
|
-
attr_accessor payment_collection_method: Stigg::Models::V1::
|
|
238
|
+
attr_accessor payment_collection_method: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::payment_collection_method?
|
|
239
239
|
|
|
240
|
-
attr_reader prices: ::Array[Stigg::Models::V1::
|
|
240
|
+
attr_reader prices: ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price]?
|
|
241
241
|
|
|
242
242
|
def prices=: (
|
|
243
|
-
::Array[Stigg::Models::V1::
|
|
244
|
-
) -> ::Array[Stigg::Models::V1::
|
|
243
|
+
::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price]
|
|
244
|
+
) -> ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price]
|
|
245
245
|
|
|
246
246
|
attr_accessor resource_id: String?
|
|
247
247
|
|
|
@@ -252,21 +252,21 @@ module Stigg
|
|
|
252
252
|
billing_id: String?,
|
|
253
253
|
created_at: Time,
|
|
254
254
|
customer_id: String,
|
|
255
|
-
payment_collection: Stigg::Models::V1::
|
|
255
|
+
payment_collection: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::payment_collection,
|
|
256
256
|
plan_id: String,
|
|
257
|
-
pricing_type: Stigg::Models::V1::
|
|
257
|
+
pricing_type: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::pricing_type,
|
|
258
258
|
start_date: Time,
|
|
259
|
-
status: Stigg::Models::V1::
|
|
259
|
+
status: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::status,
|
|
260
260
|
?cancellation_date: Time?,
|
|
261
|
-
?cancel_reason: Stigg::Models::V1::
|
|
261
|
+
?cancel_reason: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::cancel_reason?,
|
|
262
262
|
?current_billing_period_end: Time?,
|
|
263
263
|
?current_billing_period_start: Time?,
|
|
264
264
|
?effective_end_date: Time?,
|
|
265
265
|
?end_date: Time?,
|
|
266
266
|
?metadata: ::Hash[Symbol, String],
|
|
267
267
|
?paying_customer_id: String?,
|
|
268
|
-
?payment_collection_method: Stigg::Models::V1::
|
|
269
|
-
?prices: ::Array[Stigg::Models::V1::
|
|
268
|
+
?payment_collection_method: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::payment_collection_method?,
|
|
269
|
+
?prices: ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price],
|
|
270
270
|
?resource_id: String?,
|
|
271
271
|
?trial_end_date: Time?
|
|
272
272
|
) -> void
|
|
@@ -276,21 +276,21 @@ module Stigg
|
|
|
276
276
|
billing_id: String?,
|
|
277
277
|
created_at: Time,
|
|
278
278
|
customer_id: String,
|
|
279
|
-
payment_collection: Stigg::Models::V1::
|
|
279
|
+
payment_collection: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::payment_collection,
|
|
280
280
|
plan_id: String,
|
|
281
|
-
pricing_type: Stigg::Models::V1::
|
|
281
|
+
pricing_type: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::pricing_type,
|
|
282
282
|
start_date: Time,
|
|
283
|
-
status: Stigg::Models::V1::
|
|
283
|
+
status: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::status,
|
|
284
284
|
cancellation_date: Time?,
|
|
285
|
-
cancel_reason: Stigg::Models::V1::
|
|
285
|
+
cancel_reason: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::cancel_reason?,
|
|
286
286
|
current_billing_period_end: Time?,
|
|
287
287
|
current_billing_period_start: Time?,
|
|
288
288
|
effective_end_date: Time?,
|
|
289
289
|
end_date: Time?,
|
|
290
290
|
metadata: ::Hash[Symbol, String],
|
|
291
291
|
paying_customer_id: String?,
|
|
292
|
-
payment_collection_method: Stigg::Models::V1::
|
|
293
|
-
prices: ::Array[Stigg::Models::V1::
|
|
292
|
+
payment_collection_method: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::payment_collection_method?,
|
|
293
|
+
prices: ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price],
|
|
294
294
|
resource_id: String?,
|
|
295
295
|
trial_end_date: Time?
|
|
296
296
|
}
|
|
@@ -306,7 +306,7 @@ module Stigg
|
|
|
306
306
|
FAILED: :FAILED
|
|
307
307
|
ACTION_REQUIRED: :ACTION_REQUIRED
|
|
308
308
|
|
|
309
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
309
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::payment_collection]
|
|
310
310
|
end
|
|
311
311
|
|
|
312
312
|
type pricing_type = :FREE | :PAID | :CUSTOM
|
|
@@ -318,7 +318,7 @@ module Stigg
|
|
|
318
318
|
PAID: :PAID
|
|
319
319
|
CUSTOM: :CUSTOM
|
|
320
320
|
|
|
321
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
321
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::pricing_type]
|
|
322
322
|
end
|
|
323
323
|
|
|
324
324
|
type status =
|
|
@@ -339,7 +339,7 @@ module Stigg
|
|
|
339
339
|
CANCELED: :CANCELED
|
|
340
340
|
NOT_STARTED: :NOT_STARTED
|
|
341
341
|
|
|
342
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
342
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::status]
|
|
343
343
|
end
|
|
344
344
|
|
|
345
345
|
type cancel_reason =
|
|
@@ -370,7 +370,7 @@ module Stigg
|
|
|
370
370
|
CUSTOMER_ARCHIVED: :CustomerArchived
|
|
371
371
|
AUTO_CANCELLATION_RULE: :AutoCancellationRule
|
|
372
372
|
|
|
373
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
373
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::cancel_reason]
|
|
374
374
|
end
|
|
375
375
|
|
|
376
376
|
type payment_collection_method = :CHARGE | :INVOICE | :NONE
|
|
@@ -382,7 +382,7 @@ module Stigg
|
|
|
382
382
|
INVOICE: :INVOICE
|
|
383
383
|
NONE: :NONE
|
|
384
384
|
|
|
385
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
385
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::payment_collection_method]
|
|
386
386
|
end
|
|
387
387
|
|
|
388
388
|
type price =
|
|
@@ -391,8 +391,8 @@ module Stigg
|
|
|
391
391
|
base_charge: bool,
|
|
392
392
|
block_size: Float,
|
|
393
393
|
feature_id: String?,
|
|
394
|
-
price: Stigg::Models::V1::
|
|
395
|
-
tiers: ::Array[Stigg::Models::V1::
|
|
394
|
+
price: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Price,
|
|
395
|
+
tiers: ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier]
|
|
396
396
|
}
|
|
397
397
|
|
|
398
398
|
class Price < Stigg::Internal::Type::BaseModel
|
|
@@ -408,25 +408,25 @@ module Stigg
|
|
|
408
408
|
|
|
409
409
|
attr_accessor feature_id: String?
|
|
410
410
|
|
|
411
|
-
attr_reader price: Stigg::Models::V1::
|
|
411
|
+
attr_reader price: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Price?
|
|
412
412
|
|
|
413
413
|
def price=: (
|
|
414
|
-
Stigg::Models::V1::
|
|
415
|
-
) -> Stigg::Models::V1::
|
|
414
|
+
Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Price
|
|
415
|
+
) -> Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Price
|
|
416
416
|
|
|
417
|
-
attr_reader tiers: ::Array[Stigg::Models::V1::
|
|
417
|
+
attr_reader tiers: ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier]?
|
|
418
418
|
|
|
419
419
|
def tiers=: (
|
|
420
|
-
::Array[Stigg::Models::V1::
|
|
421
|
-
) -> ::Array[Stigg::Models::V1::
|
|
420
|
+
::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier]
|
|
421
|
+
) -> ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier]
|
|
422
422
|
|
|
423
423
|
def initialize: (
|
|
424
424
|
?addon_id: String?,
|
|
425
425
|
?base_charge: bool,
|
|
426
426
|
?block_size: Float,
|
|
427
427
|
?feature_id: String?,
|
|
428
|
-
?price: Stigg::Models::V1::
|
|
429
|
-
?tiers: ::Array[Stigg::Models::V1::
|
|
428
|
+
?price: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Price,
|
|
429
|
+
?tiers: ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier]
|
|
430
430
|
) -> void
|
|
431
431
|
|
|
432
432
|
def to_hash: -> {
|
|
@@ -434,15 +434,15 @@ module Stigg
|
|
|
434
434
|
base_charge: bool,
|
|
435
435
|
block_size: Float,
|
|
436
436
|
feature_id: String?,
|
|
437
|
-
price: Stigg::Models::V1::
|
|
438
|
-
tiers: ::Array[Stigg::Models::V1::
|
|
437
|
+
price: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Price,
|
|
438
|
+
tiers: ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier]
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
type price =
|
|
442
442
|
{
|
|
443
443
|
amount: Float,
|
|
444
444
|
billing_country_code: String?,
|
|
445
|
-
currency: Stigg::Models::V1::
|
|
445
|
+
currency: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Price::currency
|
|
446
446
|
}
|
|
447
447
|
|
|
448
448
|
class Price < Stigg::Internal::Type::BaseModel
|
|
@@ -452,22 +452,22 @@ module Stigg
|
|
|
452
452
|
|
|
453
453
|
attr_accessor billing_country_code: String?
|
|
454
454
|
|
|
455
|
-
attr_reader currency: Stigg::Models::V1::
|
|
455
|
+
attr_reader currency: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Price::currency?
|
|
456
456
|
|
|
457
457
|
def currency=: (
|
|
458
|
-
Stigg::Models::V1::
|
|
459
|
-
) -> Stigg::Models::V1::
|
|
458
|
+
Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Price::currency
|
|
459
|
+
) -> Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Price::currency
|
|
460
460
|
|
|
461
461
|
def initialize: (
|
|
462
462
|
?amount: Float,
|
|
463
463
|
?billing_country_code: String?,
|
|
464
|
-
?currency: Stigg::Models::V1::
|
|
464
|
+
?currency: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Price::currency
|
|
465
465
|
) -> void
|
|
466
466
|
|
|
467
467
|
def to_hash: -> {
|
|
468
468
|
amount: Float,
|
|
469
469
|
billing_country_code: String?,
|
|
470
|
-
currency: Stigg::Models::V1::
|
|
470
|
+
currency: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Price::currency
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
type currency =
|
|
@@ -708,43 +708,43 @@ module Stigg
|
|
|
708
708
|
XOF: :xof
|
|
709
709
|
XPF: :xpf
|
|
710
710
|
|
|
711
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
711
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Price::currency]
|
|
712
712
|
end
|
|
713
713
|
end
|
|
714
714
|
|
|
715
715
|
type tier =
|
|
716
716
|
{
|
|
717
|
-
flat_price: Stigg::Models::V1::
|
|
718
|
-
unit_price: Stigg::Models::V1::
|
|
717
|
+
flat_price: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::FlatPrice,
|
|
718
|
+
unit_price: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::UnitPrice,
|
|
719
719
|
up_to: Float
|
|
720
720
|
}
|
|
721
721
|
|
|
722
722
|
class Tier < Stigg::Internal::Type::BaseModel
|
|
723
|
-
attr_reader flat_price: Stigg::Models::V1::
|
|
723
|
+
attr_reader flat_price: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::FlatPrice?
|
|
724
724
|
|
|
725
725
|
def flat_price=: (
|
|
726
|
-
Stigg::Models::V1::
|
|
727
|
-
) -> Stigg::Models::V1::
|
|
726
|
+
Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::FlatPrice
|
|
727
|
+
) -> Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::FlatPrice
|
|
728
728
|
|
|
729
|
-
attr_reader unit_price: Stigg::Models::V1::
|
|
729
|
+
attr_reader unit_price: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::UnitPrice?
|
|
730
730
|
|
|
731
731
|
def unit_price=: (
|
|
732
|
-
Stigg::Models::V1::
|
|
733
|
-
) -> Stigg::Models::V1::
|
|
732
|
+
Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::UnitPrice
|
|
733
|
+
) -> Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::UnitPrice
|
|
734
734
|
|
|
735
735
|
attr_reader up_to: Float?
|
|
736
736
|
|
|
737
737
|
def up_to=: (Float) -> Float
|
|
738
738
|
|
|
739
739
|
def initialize: (
|
|
740
|
-
?flat_price: Stigg::Models::V1::
|
|
741
|
-
?unit_price: Stigg::Models::V1::
|
|
740
|
+
?flat_price: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::FlatPrice,
|
|
741
|
+
?unit_price: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::UnitPrice,
|
|
742
742
|
?up_to: Float
|
|
743
743
|
) -> void
|
|
744
744
|
|
|
745
745
|
def to_hash: -> {
|
|
746
|
-
flat_price: Stigg::Models::V1::
|
|
747
|
-
unit_price: Stigg::Models::V1::
|
|
746
|
+
flat_price: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::FlatPrice,
|
|
747
|
+
unit_price: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::UnitPrice,
|
|
748
748
|
up_to: Float
|
|
749
749
|
}
|
|
750
750
|
|
|
@@ -752,7 +752,7 @@ module Stigg
|
|
|
752
752
|
{
|
|
753
753
|
amount: Float,
|
|
754
754
|
billing_country_code: String?,
|
|
755
|
-
currency: Stigg::Models::V1::
|
|
755
|
+
currency: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::FlatPrice::currency
|
|
756
756
|
}
|
|
757
757
|
|
|
758
758
|
class FlatPrice < Stigg::Internal::Type::BaseModel
|
|
@@ -762,22 +762,22 @@ module Stigg
|
|
|
762
762
|
|
|
763
763
|
attr_accessor billing_country_code: String?
|
|
764
764
|
|
|
765
|
-
attr_reader currency: Stigg::Models::V1::
|
|
765
|
+
attr_reader currency: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::FlatPrice::currency?
|
|
766
766
|
|
|
767
767
|
def currency=: (
|
|
768
|
-
Stigg::Models::V1::
|
|
769
|
-
) -> Stigg::Models::V1::
|
|
768
|
+
Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::FlatPrice::currency
|
|
769
|
+
) -> Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::FlatPrice::currency
|
|
770
770
|
|
|
771
771
|
def initialize: (
|
|
772
772
|
?amount: Float,
|
|
773
773
|
?billing_country_code: String?,
|
|
774
|
-
?currency: Stigg::Models::V1::
|
|
774
|
+
?currency: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::FlatPrice::currency
|
|
775
775
|
) -> void
|
|
776
776
|
|
|
777
777
|
def to_hash: -> {
|
|
778
778
|
amount: Float,
|
|
779
779
|
billing_country_code: String?,
|
|
780
|
-
currency: Stigg::Models::V1::
|
|
780
|
+
currency: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::FlatPrice::currency
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
type currency =
|
|
@@ -1018,7 +1018,7 @@ module Stigg
|
|
|
1018
1018
|
XOF: :xof
|
|
1019
1019
|
XPF: :xpf
|
|
1020
1020
|
|
|
1021
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
1021
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::FlatPrice::currency]
|
|
1022
1022
|
end
|
|
1023
1023
|
end
|
|
1024
1024
|
|
|
@@ -1026,7 +1026,7 @@ module Stigg
|
|
|
1026
1026
|
{
|
|
1027
1027
|
amount: Float,
|
|
1028
1028
|
billing_country_code: String?,
|
|
1029
|
-
currency: Stigg::Models::V1::
|
|
1029
|
+
currency: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::UnitPrice::currency
|
|
1030
1030
|
}
|
|
1031
1031
|
|
|
1032
1032
|
class UnitPrice < Stigg::Internal::Type::BaseModel
|
|
@@ -1036,22 +1036,22 @@ module Stigg
|
|
|
1036
1036
|
|
|
1037
1037
|
attr_accessor billing_country_code: String?
|
|
1038
1038
|
|
|
1039
|
-
attr_reader currency: Stigg::Models::V1::
|
|
1039
|
+
attr_reader currency: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::UnitPrice::currency?
|
|
1040
1040
|
|
|
1041
1041
|
def currency=: (
|
|
1042
|
-
Stigg::Models::V1::
|
|
1043
|
-
) -> Stigg::Models::V1::
|
|
1042
|
+
Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::UnitPrice::currency
|
|
1043
|
+
) -> Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::UnitPrice::currency
|
|
1044
1044
|
|
|
1045
1045
|
def initialize: (
|
|
1046
1046
|
?amount: Float,
|
|
1047
1047
|
?billing_country_code: String?,
|
|
1048
|
-
?currency: Stigg::Models::V1::
|
|
1048
|
+
?currency: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::UnitPrice::currency
|
|
1049
1049
|
) -> void
|
|
1050
1050
|
|
|
1051
1051
|
def to_hash: -> {
|
|
1052
1052
|
amount: Float,
|
|
1053
1053
|
billing_country_code: String?,
|
|
1054
|
-
currency: Stigg::Models::V1::
|
|
1054
|
+
currency: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::UnitPrice::currency
|
|
1055
1055
|
}
|
|
1056
1056
|
|
|
1057
1057
|
type currency =
|
|
@@ -1292,7 +1292,7 @@ module Stigg
|
|
|
1292
1292
|
XOF: :xof
|
|
1293
1293
|
XPF: :xpf
|
|
1294
1294
|
|
|
1295
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
1295
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionProvisionResponse::Data::Subscription::Price::Tier::UnitPrice::currency]
|
|
1296
1296
|
end
|
|
1297
1297
|
end
|
|
1298
1298
|
end
|