stigg 0.1.0.pre.alpha.2 → 0.1.0.pre.alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/stigg/internal/type/base_model.rb +2 -2
- data/lib/stigg/models/v1/{coupon_create_response.rb → coupon.rb} +24 -24
- data/lib/stigg/models/v1/customer_import_params.rb +75 -0
- data/lib/stigg/models/v1/customer_import_response.rb +35 -0
- data/lib/stigg/models/v1/{customer_create_params.rb → customer_provision_params.rb} +16 -16
- data/lib/stigg/models/v1/customer_response.rb +1 -1
- data/lib/stigg/models/v1/customers/promotional_entitlement_grant_params.rb +296 -0
- data/lib/stigg/models/v1/customers/promotional_entitlement_grant_response.rb +341 -0
- data/lib/stigg/models/v1/customers/promotional_entitlement_revoke_params.rb +24 -0
- data/lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb +342 -0
- data/lib/stigg/models/v1/event_report_params.rb +91 -0
- data/lib/stigg/models/v1/event_report_response.rb +25 -0
- data/lib/stigg/models/v1/{subscription_retrieve_response.rb → subscription.rb} +30 -29
- data/lib/stigg/models/v1/subscription_cancel_params.rb +75 -0
- data/lib/stigg/models/v1/subscription_import_params.rb +92 -0
- data/lib/stigg/models/v1/subscription_import_response.rb +32 -0
- data/lib/stigg/models/v1/{subscription_create_params.rb → subscription_provision_params.rb} +118 -118
- data/lib/stigg/models/v1/{subscription_create_response.rb → subscription_provision_response.rb} +76 -75
- data/lib/stigg/models/v1/subscription_update_params.rb +1114 -0
- data/lib/stigg/models/v1/subscriptions/{future_update_cancel_pending_payment_response.rb → cancel_subscription.rb} +7 -5
- data/lib/stigg/models/v1/usage_history_params.rb +54 -0
- data/lib/stigg/models/v1/usage_history_response.rb +155 -0
- data/lib/stigg/models/v1/usage_report_params.rb +114 -0
- data/lib/stigg/models/v1/usage_report_response.rb +120 -0
- data/lib/stigg/models.rb +0 -4
- data/lib/stigg/resources/v1/coupons.rb +4 -4
- data/lib/stigg/resources/v1/customers/promotional_entitlements.rb +69 -0
- data/lib/stigg/resources/v1/customers.rb +59 -37
- data/lib/stigg/resources/v1/events.rb +38 -0
- data/lib/stigg/resources/v1/subscriptions/future_update.rb +4 -4
- data/lib/stigg/resources/v1/subscriptions.rb +166 -64
- data/lib/stigg/resources/v1/usage.rb +79 -0
- data/lib/stigg/resources/v1.rb +6 -42
- data/lib/stigg/version.rb +1 -1
- data/lib/stigg.rb +25 -16
- data/rbi/stigg/models/v1/{coupon_create_response.rbi → coupon.rbi} +156 -252
- data/rbi/stigg/models/v1/customer_import_params.rbi +130 -0
- data/rbi/stigg/models/v1/customer_import_response.rbi +76 -0
- data/rbi/stigg/models/v1/{customer_create_params.rbi → customer_provision_params.rbi} +35 -35
- data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_params.rbi +640 -0
- data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_response.rbi +690 -0
- data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbi +42 -0
- data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbi +696 -0
- data/rbi/stigg/models/v1/event_report_params.rbi +168 -0
- data/rbi/stigg/models/v1/event_report_response.rbi +35 -0
- data/rbi/stigg/models/v1/{subscription_migrate_response.rbi → subscription.rbi} +66 -117
- data/rbi/stigg/models/v1/subscription_cancel_params.rbi +182 -0
- data/rbi/stigg/models/v1/subscription_import_params.rbi +148 -0
- data/rbi/stigg/models/v1/subscription_import_response.rbi +69 -0
- data/rbi/stigg/models/v1/{subscription_create_params.rbi → subscription_provision_params.rbi} +794 -773
- data/rbi/stigg/models/v1/{subscription_create_response.rbi → subscription_provision_response.rbi} +481 -481
- data/rbi/stigg/models/v1/subscription_update_params.rbi +3578 -0
- data/rbi/stigg/models/v1/subscriptions/{future_update_cancel_schedule_response.rbi → cancel_subscription.rbi} +9 -16
- data/rbi/stigg/models/v1/usage_history_params.rbi +79 -0
- data/rbi/stigg/models/v1/usage_history_response.rbi +347 -0
- data/rbi/stigg/models/v1/usage_report_params.rbi +227 -0
- data/rbi/stigg/models/v1/usage_report_response.rbi +162 -0
- data/rbi/stigg/models.rbi +0 -4
- data/rbi/stigg/resources/v1/coupons.rbi +2 -2
- data/rbi/stigg/resources/v1/customers/promotional_entitlements.rbi +57 -0
- data/rbi/stigg/resources/v1/customers.rbi +53 -36
- data/rbi/stigg/resources/v1/events.rbi +28 -0
- data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +2 -6
- data/rbi/stigg/resources/v1/subscriptions.rbi +179 -74
- data/rbi/stigg/resources/v1/usage.rbi +57 -0
- data/rbi/stigg/resources/v1.rbi +4 -26
- data/sig/stigg/models/v1/{coupon_create_response.rbs → coupon.rbs} +29 -32
- data/sig/stigg/models/v1/customer_import_params.rbs +74 -0
- data/sig/stigg/models/v1/customer_import_response.rbs +30 -0
- data/sig/stigg/models/v1/{customer_create_params.rbs → customer_provision_params.rbs} +22 -22
- data/sig/stigg/models/v1/customers/promotional_entitlement_grant_params.rbs +234 -0
- data/sig/stigg/models/v1/customers/promotional_entitlement_grant_response.rbs +281 -0
- data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbs +27 -0
- data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbs +281 -0
- data/sig/stigg/models/v1/event_report_params.rbs +82 -0
- data/sig/stigg/models/v1/event_report_response.rbs +15 -0
- data/sig/stigg/models/v1/{subscription_retrieve_response.rbs → subscription.rbs} +36 -41
- data/sig/stigg/models/v1/subscription_cancel_params.rbs +79 -0
- data/sig/stigg/models/v1/subscription_import_params.rbs +84 -0
- data/sig/stigg/models/v1/subscription_import_response.rbs +30 -0
- data/sig/stigg/models/v1/{subscription_create_params.rbs → subscription_provision_params.rbs} +200 -200
- data/sig/stigg/models/v1/{subscription_create_response.rbs → subscription_provision_response.rbs} +106 -106
- data/sig/stigg/models/v1/subscription_update_params.rbs +1544 -0
- data/sig/stigg/models/v1/subscriptions/cancel_subscription.rbs +34 -0
- data/sig/stigg/models/v1/usage_history_params.rbs +52 -0
- data/sig/stigg/models/v1/usage_history_response.rbs +129 -0
- data/sig/stigg/models/v1/usage_report_params.rbs +102 -0
- data/sig/stigg/models/v1/usage_report_response.rbs +87 -0
- data/sig/stigg/models.rbs +0 -4
- data/sig/stigg/resources/v1/coupons.rbs +2 -2
- data/sig/stigg/resources/v1/customers/promotional_entitlements.rbs +23 -0
- data/sig/stigg/resources/v1/customers.rbs +17 -12
- data/sig/stigg/resources/v1/events.rbs +14 -0
- data/sig/stigg/resources/v1/subscriptions/future_update.rbs +2 -2
- data/sig/stigg/resources/v1/subscriptions.rbs +65 -32
- data/sig/stigg/resources/v1/usage.rbs +24 -0
- data/sig/stigg/resources/v1.rbs +2 -8
- metadata +77 -50
- data/lib/stigg/models/v1/coupon_retrieve_response.rb +0 -322
- data/lib/stigg/models/v1/subscription_delegate_response.rb +0 -314
- data/lib/stigg/models/v1/subscription_migrate_response.rb +0 -314
- data/lib/stigg/models/v1/subscription_transfer_response.rb +0 -314
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +0 -34
- data/lib/stigg/models/v1_create_event_params.rb +0 -89
- data/lib/stigg/models/v1_create_event_response.rb +0 -23
- data/lib/stigg/models/v1_create_usage_params.rb +0 -112
- data/lib/stigg/models/v1_create_usage_response.rb +0 -118
- data/lib/stigg/resources/v1/customers/usage.rb +0 -18
- data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +0 -987
- data/rbi/stigg/models/v1/subscription_delegate_response.rbi +0 -618
- data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +0 -618
- data/rbi/stigg/models/v1/subscription_transfer_response.rbi +0 -618
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +0 -80
- data/rbi/stigg/models/v1_create_event_params.rbi +0 -161
- data/rbi/stigg/models/v1_create_event_response.rbi +0 -30
- data/rbi/stigg/models/v1_create_usage_params.rbi +0 -217
- data/rbi/stigg/models/v1_create_usage_response.rbi +0 -157
- data/rbi/stigg/resources/v1/customers/usage.rbi +0 -16
- data/sig/stigg/models/v1/coupon_retrieve_response.rbs +0 -394
- data/sig/stigg/models/v1/subscription_delegate_response.rbs +0 -255
- data/sig/stigg/models/v1/subscription_migrate_response.rbs +0 -255
- data/sig/stigg/models/v1/subscription_transfer_response.rbs +0 -255
- data/sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbs +0 -34
- data/sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbs +0 -34
- data/sig/stigg/models/v1_create_event_params.rbs +0 -80
- data/sig/stigg/models/v1_create_event_response.rbs +0 -13
- data/sig/stigg/models/v1_create_usage_params.rbs +0 -100
- data/sig/stigg/models/v1_create_usage_response.rbs +0 -85
- data/sig/stigg/resources/v1/customers/usage.rbs +0 -11
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
module Stigg
|
|
2
2
|
module Models
|
|
3
3
|
module V1
|
|
4
|
-
type
|
|
5
|
-
{ data: Stigg::Models::V1::SubscriptionRetrieveResponse::Data }
|
|
4
|
+
type subscription = { data: Stigg::V1::Subscription::Data }
|
|
6
5
|
|
|
7
|
-
class
|
|
8
|
-
attr_accessor data: Stigg::
|
|
6
|
+
class Subscription < Stigg::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor data: Stigg::V1::Subscription::Data
|
|
9
8
|
|
|
10
|
-
def initialize: (
|
|
11
|
-
data: Stigg::Models::V1::SubscriptionRetrieveResponse::Data
|
|
12
|
-
) -> void
|
|
9
|
+
def initialize: (data: Stigg::V1::Subscription::Data) -> void
|
|
13
10
|
|
|
14
|
-
def to_hash: -> {
|
|
15
|
-
data: Stigg::Models::V1::SubscriptionRetrieveResponse::Data
|
|
16
|
-
}
|
|
11
|
+
def to_hash: -> { data: Stigg::V1::Subscription::Data }
|
|
17
12
|
|
|
18
13
|
type data =
|
|
19
14
|
{
|
|
@@ -21,21 +16,21 @@ module Stigg
|
|
|
21
16
|
billing_id: String?,
|
|
22
17
|
created_at: Time,
|
|
23
18
|
customer_id: String,
|
|
24
|
-
payment_collection: Stigg::Models::V1::
|
|
19
|
+
payment_collection: Stigg::Models::V1::Subscription::Data::payment_collection,
|
|
25
20
|
plan_id: String,
|
|
26
|
-
pricing_type: Stigg::Models::V1::
|
|
21
|
+
pricing_type: Stigg::Models::V1::Subscription::Data::pricing_type,
|
|
27
22
|
start_date: Time,
|
|
28
|
-
status: Stigg::Models::V1::
|
|
23
|
+
status: Stigg::Models::V1::Subscription::Data::status,
|
|
29
24
|
cancellation_date: Time?,
|
|
30
|
-
cancel_reason: Stigg::Models::V1::
|
|
25
|
+
cancel_reason: Stigg::Models::V1::Subscription::Data::cancel_reason?,
|
|
31
26
|
current_billing_period_end: Time?,
|
|
32
27
|
current_billing_period_start: Time?,
|
|
33
28
|
effective_end_date: Time?,
|
|
34
29
|
end_date: Time?,
|
|
35
30
|
metadata: ::Hash[Symbol, String],
|
|
36
31
|
paying_customer_id: String?,
|
|
37
|
-
payment_collection_method: Stigg::Models::V1::
|
|
38
|
-
prices: ::Array[Stigg::
|
|
32
|
+
payment_collection_method: Stigg::Models::V1::Subscription::Data::payment_collection_method?,
|
|
33
|
+
prices: ::Array[Stigg::V1::Subscription::Data::Price],
|
|
39
34
|
resource_id: String?,
|
|
40
35
|
trial_end_date: Time?
|
|
41
36
|
}
|
|
@@ -49,19 +44,19 @@ module Stigg
|
|
|
49
44
|
|
|
50
45
|
attr_accessor customer_id: String
|
|
51
46
|
|
|
52
|
-
attr_accessor payment_collection: Stigg::Models::V1::
|
|
47
|
+
attr_accessor payment_collection: Stigg::Models::V1::Subscription::Data::payment_collection
|
|
53
48
|
|
|
54
49
|
attr_accessor plan_id: String
|
|
55
50
|
|
|
56
|
-
attr_accessor pricing_type: Stigg::Models::V1::
|
|
51
|
+
attr_accessor pricing_type: Stigg::Models::V1::Subscription::Data::pricing_type
|
|
57
52
|
|
|
58
53
|
attr_accessor start_date: Time
|
|
59
54
|
|
|
60
|
-
attr_accessor status: Stigg::Models::V1::
|
|
55
|
+
attr_accessor status: Stigg::Models::V1::Subscription::Data::status
|
|
61
56
|
|
|
62
57
|
attr_accessor cancellation_date: Time?
|
|
63
58
|
|
|
64
|
-
attr_accessor cancel_reason: Stigg::Models::V1::
|
|
59
|
+
attr_accessor cancel_reason: Stigg::Models::V1::Subscription::Data::cancel_reason?
|
|
65
60
|
|
|
66
61
|
attr_accessor current_billing_period_end: Time?
|
|
67
62
|
|
|
@@ -77,13 +72,13 @@ module Stigg
|
|
|
77
72
|
|
|
78
73
|
attr_accessor paying_customer_id: String?
|
|
79
74
|
|
|
80
|
-
attr_accessor payment_collection_method: Stigg::Models::V1::
|
|
75
|
+
attr_accessor payment_collection_method: Stigg::Models::V1::Subscription::Data::payment_collection_method?
|
|
81
76
|
|
|
82
|
-
attr_reader prices: ::Array[Stigg::
|
|
77
|
+
attr_reader prices: ::Array[Stigg::V1::Subscription::Data::Price]?
|
|
83
78
|
|
|
84
79
|
def prices=: (
|
|
85
|
-
::Array[Stigg::
|
|
86
|
-
) -> ::Array[Stigg::
|
|
80
|
+
::Array[Stigg::V1::Subscription::Data::Price]
|
|
81
|
+
) -> ::Array[Stigg::V1::Subscription::Data::Price]
|
|
87
82
|
|
|
88
83
|
attr_accessor resource_id: String?
|
|
89
84
|
|
|
@@ -94,21 +89,21 @@ module Stigg
|
|
|
94
89
|
billing_id: String?,
|
|
95
90
|
created_at: Time,
|
|
96
91
|
customer_id: String,
|
|
97
|
-
payment_collection: Stigg::Models::V1::
|
|
92
|
+
payment_collection: Stigg::Models::V1::Subscription::Data::payment_collection,
|
|
98
93
|
plan_id: String,
|
|
99
|
-
pricing_type: Stigg::Models::V1::
|
|
94
|
+
pricing_type: Stigg::Models::V1::Subscription::Data::pricing_type,
|
|
100
95
|
start_date: Time,
|
|
101
|
-
status: Stigg::Models::V1::
|
|
96
|
+
status: Stigg::Models::V1::Subscription::Data::status,
|
|
102
97
|
?cancellation_date: Time?,
|
|
103
|
-
?cancel_reason: Stigg::Models::V1::
|
|
98
|
+
?cancel_reason: Stigg::Models::V1::Subscription::Data::cancel_reason?,
|
|
104
99
|
?current_billing_period_end: Time?,
|
|
105
100
|
?current_billing_period_start: Time?,
|
|
106
101
|
?effective_end_date: Time?,
|
|
107
102
|
?end_date: Time?,
|
|
108
103
|
?metadata: ::Hash[Symbol, String],
|
|
109
104
|
?paying_customer_id: String?,
|
|
110
|
-
?payment_collection_method: Stigg::Models::V1::
|
|
111
|
-
?prices: ::Array[Stigg::
|
|
105
|
+
?payment_collection_method: Stigg::Models::V1::Subscription::Data::payment_collection_method?,
|
|
106
|
+
?prices: ::Array[Stigg::V1::Subscription::Data::Price],
|
|
112
107
|
?resource_id: String?,
|
|
113
108
|
?trial_end_date: Time?
|
|
114
109
|
) -> void
|
|
@@ -118,21 +113,21 @@ module Stigg
|
|
|
118
113
|
billing_id: String?,
|
|
119
114
|
created_at: Time,
|
|
120
115
|
customer_id: String,
|
|
121
|
-
payment_collection: Stigg::Models::V1::
|
|
116
|
+
payment_collection: Stigg::Models::V1::Subscription::Data::payment_collection,
|
|
122
117
|
plan_id: String,
|
|
123
|
-
pricing_type: Stigg::Models::V1::
|
|
118
|
+
pricing_type: Stigg::Models::V1::Subscription::Data::pricing_type,
|
|
124
119
|
start_date: Time,
|
|
125
|
-
status: Stigg::Models::V1::
|
|
120
|
+
status: Stigg::Models::V1::Subscription::Data::status,
|
|
126
121
|
cancellation_date: Time?,
|
|
127
|
-
cancel_reason: Stigg::Models::V1::
|
|
122
|
+
cancel_reason: Stigg::Models::V1::Subscription::Data::cancel_reason?,
|
|
128
123
|
current_billing_period_end: Time?,
|
|
129
124
|
current_billing_period_start: Time?,
|
|
130
125
|
effective_end_date: Time?,
|
|
131
126
|
end_date: Time?,
|
|
132
127
|
metadata: ::Hash[Symbol, String],
|
|
133
128
|
paying_customer_id: String?,
|
|
134
|
-
payment_collection_method: Stigg::Models::V1::
|
|
135
|
-
prices: ::Array[Stigg::
|
|
129
|
+
payment_collection_method: Stigg::Models::V1::Subscription::Data::payment_collection_method?,
|
|
130
|
+
prices: ::Array[Stigg::V1::Subscription::Data::Price],
|
|
136
131
|
resource_id: String?,
|
|
137
132
|
trial_end_date: Time?
|
|
138
133
|
}
|
|
@@ -148,7 +143,7 @@ module Stigg
|
|
|
148
143
|
FAILED: :FAILED
|
|
149
144
|
ACTION_REQUIRED: :ACTION_REQUIRED
|
|
150
145
|
|
|
151
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
146
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Subscription::Data::payment_collection]
|
|
152
147
|
end
|
|
153
148
|
|
|
154
149
|
type pricing_type = :FREE | :PAID | :CUSTOM
|
|
@@ -160,7 +155,7 @@ module Stigg
|
|
|
160
155
|
PAID: :PAID
|
|
161
156
|
CUSTOM: :CUSTOM
|
|
162
157
|
|
|
163
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
158
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Subscription::Data::pricing_type]
|
|
164
159
|
end
|
|
165
160
|
|
|
166
161
|
type status =
|
|
@@ -181,7 +176,7 @@ module Stigg
|
|
|
181
176
|
CANCELED: :CANCELED
|
|
182
177
|
NOT_STARTED: :NOT_STARTED
|
|
183
178
|
|
|
184
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
179
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Subscription::Data::status]
|
|
185
180
|
end
|
|
186
181
|
|
|
187
182
|
type cancel_reason =
|
|
@@ -212,7 +207,7 @@ module Stigg
|
|
|
212
207
|
CUSTOMER_ARCHIVED: :CustomerArchived
|
|
213
208
|
AUTO_CANCELLATION_RULE: :AutoCancellationRule
|
|
214
209
|
|
|
215
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
210
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Subscription::Data::cancel_reason]
|
|
216
211
|
end
|
|
217
212
|
|
|
218
213
|
type payment_collection_method = :CHARGE | :INVOICE | :NONE
|
|
@@ -224,7 +219,7 @@ module Stigg
|
|
|
224
219
|
INVOICE: :INVOICE
|
|
225
220
|
NONE: :NONE
|
|
226
221
|
|
|
227
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
222
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Subscription::Data::payment_collection_method]
|
|
228
223
|
end
|
|
229
224
|
|
|
230
225
|
type price = { id: String, created_at: String, updated_at: String }
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
type subscription_cancel_params =
|
|
5
|
+
{
|
|
6
|
+
cancellation_action: Stigg::Models::V1::SubscriptionCancelParams::cancellation_action,
|
|
7
|
+
cancellation_time: Stigg::Models::V1::SubscriptionCancelParams::cancellation_time,
|
|
8
|
+
end_date: Time,
|
|
9
|
+
prorate: bool
|
|
10
|
+
}
|
|
11
|
+
& Stigg::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class SubscriptionCancelParams < Stigg::Internal::Type::BaseModel
|
|
14
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Stigg::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_reader cancellation_action: Stigg::Models::V1::SubscriptionCancelParams::cancellation_action?
|
|
18
|
+
|
|
19
|
+
def cancellation_action=: (
|
|
20
|
+
Stigg::Models::V1::SubscriptionCancelParams::cancellation_action
|
|
21
|
+
) -> Stigg::Models::V1::SubscriptionCancelParams::cancellation_action
|
|
22
|
+
|
|
23
|
+
attr_reader cancellation_time: Stigg::Models::V1::SubscriptionCancelParams::cancellation_time?
|
|
24
|
+
|
|
25
|
+
def cancellation_time=: (
|
|
26
|
+
Stigg::Models::V1::SubscriptionCancelParams::cancellation_time
|
|
27
|
+
) -> Stigg::Models::V1::SubscriptionCancelParams::cancellation_time
|
|
28
|
+
|
|
29
|
+
attr_reader end_date: Time?
|
|
30
|
+
|
|
31
|
+
def end_date=: (Time) -> Time
|
|
32
|
+
|
|
33
|
+
attr_reader prorate: bool?
|
|
34
|
+
|
|
35
|
+
def prorate=: (bool) -> bool
|
|
36
|
+
|
|
37
|
+
def initialize: (
|
|
38
|
+
?cancellation_action: Stigg::Models::V1::SubscriptionCancelParams::cancellation_action,
|
|
39
|
+
?cancellation_time: Stigg::Models::V1::SubscriptionCancelParams::cancellation_time,
|
|
40
|
+
?end_date: Time,
|
|
41
|
+
?prorate: bool,
|
|
42
|
+
?request_options: Stigg::request_opts
|
|
43
|
+
) -> void
|
|
44
|
+
|
|
45
|
+
def to_hash: -> {
|
|
46
|
+
cancellation_action: Stigg::Models::V1::SubscriptionCancelParams::cancellation_action,
|
|
47
|
+
cancellation_time: Stigg::Models::V1::SubscriptionCancelParams::cancellation_time,
|
|
48
|
+
end_date: Time,
|
|
49
|
+
prorate: bool,
|
|
50
|
+
request_options: Stigg::RequestOptions
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
type cancellation_action = :DEFAULT | :REVOKE_ENTITLEMENTS
|
|
54
|
+
|
|
55
|
+
module CancellationAction
|
|
56
|
+
extend Stigg::Internal::Type::Enum
|
|
57
|
+
|
|
58
|
+
DEFAULT: :DEFAULT
|
|
59
|
+
REVOKE_ENTITLEMENTS: :REVOKE_ENTITLEMENTS
|
|
60
|
+
|
|
61
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCancelParams::cancellation_action]
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
type cancellation_time =
|
|
65
|
+
:END_OF_BILLING_PERIOD | :IMMEDIATE | :SPECIFIC_DATE
|
|
66
|
+
|
|
67
|
+
module CancellationTime
|
|
68
|
+
extend Stigg::Internal::Type::Enum
|
|
69
|
+
|
|
70
|
+
END_OF_BILLING_PERIOD: :END_OF_BILLING_PERIOD
|
|
71
|
+
IMMEDIATE: :IMMEDIATE
|
|
72
|
+
SPECIFIC_DATE: :SPECIFIC_DATE
|
|
73
|
+
|
|
74
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCancelParams::cancellation_time]
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
type subscription_import_params =
|
|
5
|
+
{
|
|
6
|
+
subscriptions: ::Array[Stigg::V1::SubscriptionImportParams::Subscription]
|
|
7
|
+
}
|
|
8
|
+
& Stigg::Internal::Type::request_parameters
|
|
9
|
+
|
|
10
|
+
class SubscriptionImportParams < Stigg::Internal::Type::BaseModel
|
|
11
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
12
|
+
include Stigg::Internal::Type::RequestParameters
|
|
13
|
+
|
|
14
|
+
attr_accessor subscriptions: ::Array[Stigg::V1::SubscriptionImportParams::Subscription]
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
subscriptions: ::Array[Stigg::V1::SubscriptionImportParams::Subscription],
|
|
18
|
+
?request_options: Stigg::request_opts
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
subscriptions: ::Array[Stigg::V1::SubscriptionImportParams::Subscription],
|
|
23
|
+
request_options: Stigg::RequestOptions
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
type subscription =
|
|
27
|
+
{
|
|
28
|
+
id: String,
|
|
29
|
+
customer_id: String,
|
|
30
|
+
plan_id: String,
|
|
31
|
+
billing_id: String?,
|
|
32
|
+
end_date: Time?,
|
|
33
|
+
metadata: ::Hash[Symbol, String],
|
|
34
|
+
resource_id: String?,
|
|
35
|
+
start_date: Time
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
class Subscription < Stigg::Internal::Type::BaseModel
|
|
39
|
+
attr_accessor id: String
|
|
40
|
+
|
|
41
|
+
attr_accessor customer_id: String
|
|
42
|
+
|
|
43
|
+
attr_accessor plan_id: String
|
|
44
|
+
|
|
45
|
+
attr_accessor billing_id: String?
|
|
46
|
+
|
|
47
|
+
attr_accessor end_date: Time?
|
|
48
|
+
|
|
49
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
50
|
+
|
|
51
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
52
|
+
|
|
53
|
+
attr_accessor resource_id: String?
|
|
54
|
+
|
|
55
|
+
attr_reader start_date: Time?
|
|
56
|
+
|
|
57
|
+
def start_date=: (Time) -> Time
|
|
58
|
+
|
|
59
|
+
def initialize: (
|
|
60
|
+
id: String,
|
|
61
|
+
customer_id: String,
|
|
62
|
+
plan_id: String,
|
|
63
|
+
?billing_id: String?,
|
|
64
|
+
?end_date: Time?,
|
|
65
|
+
?metadata: ::Hash[Symbol, String],
|
|
66
|
+
?resource_id: String?,
|
|
67
|
+
?start_date: Time
|
|
68
|
+
) -> void
|
|
69
|
+
|
|
70
|
+
def to_hash: -> {
|
|
71
|
+
id: String,
|
|
72
|
+
customer_id: String,
|
|
73
|
+
plan_id: String,
|
|
74
|
+
billing_id: String?,
|
|
75
|
+
end_date: Time?,
|
|
76
|
+
metadata: ::Hash[Symbol, String],
|
|
77
|
+
resource_id: String?,
|
|
78
|
+
start_date: Time
|
|
79
|
+
}
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
type subscription_import_response =
|
|
5
|
+
{ data: Stigg::Models::V1::SubscriptionImportResponse::Data }
|
|
6
|
+
|
|
7
|
+
class SubscriptionImportResponse < Stigg::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor data: Stigg::Models::V1::SubscriptionImportResponse::Data
|
|
9
|
+
|
|
10
|
+
def initialize: (
|
|
11
|
+
data: Stigg::Models::V1::SubscriptionImportResponse::Data
|
|
12
|
+
) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> {
|
|
15
|
+
data: Stigg::Models::V1::SubscriptionImportResponse::Data
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type data = { task_id: String }
|
|
19
|
+
|
|
20
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
21
|
+
attr_accessor task_id: String
|
|
22
|
+
|
|
23
|
+
def initialize: (task_id: String) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> { task_id: String }
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|