stigg 0.1.0.pre.alpha.1 → 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 +22 -0
- data/README.md +29 -1
- data/lib/stigg/internal/my_cursor_id_page.rb +32 -4
- data/lib/stigg/internal/type/base_model.rb +2 -2
- data/lib/stigg/models/v1/{coupon_create_response.rb → coupon.rb} +31 -26
- data/lib/stigg/models/v1/coupon_create_params.rb +2 -0
- 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/customer_import_params.rb +75 -0
- data/lib/stigg/models/v1/customer_import_response.rb +35 -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_create_params.rb → customer_provision_params.rb} +18 -16
- data/lib/stigg/models/v1/customer_response.rb +9 -2
- 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/customers/{promotional_create_params.rb → promotional_entitlement_grant_params.rb} +46 -44
- data/lib/stigg/models/v1/customers/{promotional_create_response.rb → promotional_entitlement_grant_response.rb} +105 -32
- data/lib/stigg/models/v1/customers/{promotional_revoke_params.rb → promotional_entitlement_revoke_params.rb} +2 -2
- data/lib/stigg/models/v1/customers/{promotional_revoke_response.rb → promotional_entitlement_revoke_response.rb} +107 -33
- 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} +67 -26
- data/lib/stigg/models/v1/subscription_cancel_params.rb +75 -0
- data/lib/stigg/models/v1/subscription_delegate_params.rb +7 -2
- 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_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_preview_params.rb +139 -46
- data/lib/stigg/models/v1/subscription_preview_response.rb +164 -49
- data/lib/stigg/models/v1/subscription_provision_params.rb +1693 -0
- data/lib/stigg/models/v1/subscription_provision_response.rb +1038 -0
- data/lib/stigg/models/v1/subscription_transfer_params.rb +2 -6
- 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} +9 -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 +16 -14
- data/lib/stigg/resources/v1/customers/payment_method.rb +6 -5
- data/lib/stigg/resources/v1/customers/{promotional.rb → promotional_entitlements.rb} +17 -17
- data/lib/stigg/resources/v1/customers.rb +78 -56
- data/lib/stigg/resources/v1/events.rb +38 -0
- data/lib/stigg/resources/v1/subscriptions/future_update.rb +10 -8
- data/lib/stigg/resources/v1/subscriptions.rb +206 -79
- 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 -23
- data/rbi/stigg/internal/my_cursor_id_page.rbi +27 -0
- data/rbi/stigg/models/v1/coupon.rbi +891 -0
- data/rbi/stigg/models/v1/coupon_create_params.rbi +1 -0
- 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/customer_import_params.rbi +130 -0
- data/rbi/stigg/models/v1/customer_import_response.rbi +76 -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_create_params.rbi → customer_provision_params.rbi} +36 -35
- 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/customers/{promotional_create_params.rbi → promotional_entitlement_grant_params.rbi} +78 -77
- data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_response.rbi +690 -0
- data/rbi/stigg/models/v1/customers/{promotional_revoke_params.rbi → promotional_entitlement_revoke_params.rbi} +2 -2
- 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} +130 -98
- data/rbi/stigg/models/v1/subscription_cancel_params.rbi +182 -0
- data/rbi/stigg/models/v1/subscription_delegate_params.rbi +6 -2
- 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_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_preview_params.rbi +112 -14
- data/rbi/stigg/models/v1/subscription_preview_response.rbi +139 -6
- data/rbi/stigg/models/v1/subscription_provision_params.rbi +5306 -0
- data/rbi/stigg/models/v1/subscription_provision_response.rbi +3175 -0
- data/rbi/stigg/models/v1/subscription_transfer_params.rbi +2 -4
- 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} +10 -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 +22 -14
- data/rbi/stigg/resources/v1/customers/payment_method.rbi +9 -3
- data/rbi/stigg/resources/v1/customers/{promotional.rbi → promotional_entitlements.rbi} +13 -9
- data/rbi/stigg/resources/v1/customers.rbi +84 -53
- data/rbi/stigg/resources/v1/events.rbi +28 -0
- data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +14 -10
- data/rbi/stigg/resources/v1/subscriptions.rbi +242 -58
- data/rbi/stigg/resources/v1/usage.rbi +57 -0
- data/rbi/stigg/resources/v1.rbi +4 -26
- data/sig/stigg/internal/my_cursor_id_page.rbs +17 -0
- data/sig/stigg/models/v1/{coupon_create_response.rbs → coupon.rbs} +29 -32
- 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/customer_import_params.rbs +74 -0
- data/sig/stigg/models/v1/customer_import_response.rbs +30 -0
- 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/{customer_create_params.rbs → customer_provision_params.rbs} +22 -22
- data/sig/stigg/models/v1/customers/{promotional_create_params.rbs → promotional_entitlement_grant_params.rbs} +43 -43
- data/sig/stigg/models/v1/customers/promotional_entitlement_grant_response.rbs +281 -0
- data/sig/stigg/models/v1/customers/{promotional_revoke_params.rbs → promotional_entitlement_revoke_params.rbs} +2 -2
- 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} +61 -35
- 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_list_params.rbs +14 -14
- data/sig/stigg/models/v1/subscription_list_response.rbs +196 -189
- data/sig/stigg/models/v1/subscription_preview_params.rbs +2 -6
- data/sig/stigg/models/v1/subscription_provision_params.rbs +2223 -0
- data/sig/stigg/models/v1/subscription_provision_response.rbs +1305 -0
- 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 +5 -5
- data/sig/stigg/resources/v1/customers/{promotional.rbs → promotional_entitlements.rbs} +5 -5
- data/sig/stigg/resources/v1/customers.rbs +20 -17
- 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 +68 -20
- data/sig/stigg/resources/v1/usage.rbs +24 -0
- data/sig/stigg/resources/v1.rbs +2 -8
- metadata +77 -71
- data/lib/stigg/models/v1/coupon_retrieve_response.rb +0 -317
- 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/models/v1/subscription_create_params.rb +0 -214
- data/lib/stigg/models/v1/subscription_create_response.rb +0 -338
- data/lib/stigg/models/v1/subscription_delegate_response.rb +0 -274
- data/lib/stigg/models/v1/subscription_migrate_response.rb +0 -274
- data/lib/stigg/models/v1/subscription_transfer_response.rb +0 -274
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +0 -32
- data/lib/stigg/models/v1_create_event_params.rb +0 -87
- data/lib/stigg/models/v1_create_event_response.rb +0 -16
- data/lib/stigg/models/v1_create_usage_params.rb +0 -96
- data/lib/stigg/models/v1_create_usage_response.rb +0 -112
- data/lib/stigg/resources/v1/customers/usage.rb +0 -59
- data/rbi/stigg/models/v1/coupon_create_response.rbi +0 -986
- data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +0 -986
- data/rbi/stigg/models/v1/customers/promotional_create_response.rbi +0 -495
- 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/models/v1/subscription_create_params.rbi +0 -394
- data/rbi/stigg/models/v1/subscription_create_response.rbi +0 -668
- data/rbi/stigg/models/v1/subscription_delegate_response.rbi +0 -535
- data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +0 -535
- data/rbi/stigg/models/v1/subscription_transfer_response.rbi +0 -535
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +0 -79
- data/rbi/stigg/models/v1_create_event_params.rbi +0 -160
- data/rbi/stigg/models/v1_create_event_response.rbi +0 -23
- data/rbi/stigg/models/v1_create_usage_params.rbi +0 -177
- data/rbi/stigg/models/v1_create_usage_response.rbi +0 -150
- data/rbi/stigg/resources/v1/customers/usage.rbi +0 -45
- data/sig/stigg/models/v1/coupon_retrieve_response.rbs +0 -394
- data/sig/stigg/models/v1/customers/promotional_create_response.rbs +0 -209
- 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/models/v1/subscription_create_params.rbs +0 -199
- data/sig/stigg/models/v1/subscription_create_response.rbs +0 -283
- data/sig/stigg/models/v1/subscription_delegate_response.rbs +0 -224
- data/sig/stigg/models/v1/subscription_migrate_response.rbs +0 -224
- data/sig/stigg/models/v1/subscription_transfer_response.rbs +0 -224
- 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 -90
- data/sig/stigg/models/v1_create_usage_response.rbs +0 -85
- data/sig/stigg/resources/v1/customers/usage.rbs +0 -21
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
module Stigg
|
|
2
|
-
module Models
|
|
3
|
-
module V1
|
|
4
|
-
type subscription_create_response =
|
|
5
|
-
{ data: Stigg::Models::V1::SubscriptionCreateResponse::Data }
|
|
6
|
-
|
|
7
|
-
class SubscriptionCreateResponse < Stigg::Internal::Type::BaseModel
|
|
8
|
-
attr_accessor data: Stigg::Models::V1::SubscriptionCreateResponse::Data
|
|
9
|
-
|
|
10
|
-
def initialize: (
|
|
11
|
-
data: Stigg::Models::V1::SubscriptionCreateResponse::Data
|
|
12
|
-
) -> void
|
|
13
|
-
|
|
14
|
-
def to_hash: -> {
|
|
15
|
-
data: Stigg::Models::V1::SubscriptionCreateResponse::Data
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
type data =
|
|
19
|
-
{
|
|
20
|
-
id: String,
|
|
21
|
-
status: Stigg::Models::V1::SubscriptionCreateResponse::Data::status,
|
|
22
|
-
checkout_billing_id: String?,
|
|
23
|
-
checkout_url: String?,
|
|
24
|
-
is_scheduled: bool,
|
|
25
|
-
subscription: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
class Data < Stigg::Internal::Type::BaseModel
|
|
29
|
-
attr_accessor id: String
|
|
30
|
-
|
|
31
|
-
attr_accessor status: Stigg::Models::V1::SubscriptionCreateResponse::Data::status
|
|
32
|
-
|
|
33
|
-
attr_accessor checkout_billing_id: String?
|
|
34
|
-
|
|
35
|
-
attr_accessor checkout_url: String?
|
|
36
|
-
|
|
37
|
-
attr_reader is_scheduled: bool?
|
|
38
|
-
|
|
39
|
-
def is_scheduled=: (bool) -> bool
|
|
40
|
-
|
|
41
|
-
attr_reader subscription: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription?
|
|
42
|
-
|
|
43
|
-
def subscription=: (
|
|
44
|
-
Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription
|
|
45
|
-
) -> Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription
|
|
46
|
-
|
|
47
|
-
def initialize: (
|
|
48
|
-
id: String,
|
|
49
|
-
status: Stigg::Models::V1::SubscriptionCreateResponse::Data::status,
|
|
50
|
-
?checkout_billing_id: String?,
|
|
51
|
-
?checkout_url: String?,
|
|
52
|
-
?is_scheduled: bool,
|
|
53
|
-
?subscription: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription
|
|
54
|
-
) -> void
|
|
55
|
-
|
|
56
|
-
def to_hash: -> {
|
|
57
|
-
id: String,
|
|
58
|
-
status: Stigg::Models::V1::SubscriptionCreateResponse::Data::status,
|
|
59
|
-
checkout_billing_id: String?,
|
|
60
|
-
checkout_url: String?,
|
|
61
|
-
is_scheduled: bool,
|
|
62
|
-
subscription: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
type status = :SUCCESS | :PAYMENT_REQUIRED
|
|
66
|
-
|
|
67
|
-
module Status
|
|
68
|
-
extend Stigg::Internal::Type::Enum
|
|
69
|
-
|
|
70
|
-
SUCCESS: :SUCCESS
|
|
71
|
-
PAYMENT_REQUIRED: :PAYMENT_REQUIRED
|
|
72
|
-
|
|
73
|
-
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateResponse::Data::status]
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
type subscription =
|
|
77
|
-
{
|
|
78
|
-
id: String,
|
|
79
|
-
billing_id: String?,
|
|
80
|
-
created_at: Time,
|
|
81
|
-
customer_id: String,
|
|
82
|
-
payment_collection: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::payment_collection,
|
|
83
|
-
plan_id: String,
|
|
84
|
-
pricing_type: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::pricing_type,
|
|
85
|
-
start_date: Time,
|
|
86
|
-
status: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::status,
|
|
87
|
-
cancellation_date: Time?,
|
|
88
|
-
cancel_reason: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::cancel_reason?,
|
|
89
|
-
current_billing_period_end: Time?,
|
|
90
|
-
current_billing_period_start: Time?,
|
|
91
|
-
effective_end_date: Time?,
|
|
92
|
-
end_date: Time?,
|
|
93
|
-
metadata: ::Hash[Symbol, String],
|
|
94
|
-
paying_customer_id: String?,
|
|
95
|
-
payment_collection_method: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::payment_collection_method?,
|
|
96
|
-
resource_id: String?,
|
|
97
|
-
trial_end_date: Time?
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
class Subscription < Stigg::Internal::Type::BaseModel
|
|
101
|
-
attr_accessor id: String
|
|
102
|
-
|
|
103
|
-
attr_accessor billing_id: String?
|
|
104
|
-
|
|
105
|
-
attr_accessor created_at: Time
|
|
106
|
-
|
|
107
|
-
attr_accessor customer_id: String
|
|
108
|
-
|
|
109
|
-
attr_accessor payment_collection: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::payment_collection
|
|
110
|
-
|
|
111
|
-
attr_accessor plan_id: String
|
|
112
|
-
|
|
113
|
-
attr_accessor pricing_type: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::pricing_type
|
|
114
|
-
|
|
115
|
-
attr_accessor start_date: Time
|
|
116
|
-
|
|
117
|
-
attr_accessor status: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::status
|
|
118
|
-
|
|
119
|
-
attr_accessor cancellation_date: Time?
|
|
120
|
-
|
|
121
|
-
attr_accessor cancel_reason: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::cancel_reason?
|
|
122
|
-
|
|
123
|
-
attr_accessor current_billing_period_end: Time?
|
|
124
|
-
|
|
125
|
-
attr_accessor current_billing_period_start: Time?
|
|
126
|
-
|
|
127
|
-
attr_accessor effective_end_date: Time?
|
|
128
|
-
|
|
129
|
-
attr_accessor end_date: Time?
|
|
130
|
-
|
|
131
|
-
attr_reader metadata: ::Hash[Symbol, String]?
|
|
132
|
-
|
|
133
|
-
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
134
|
-
|
|
135
|
-
attr_accessor paying_customer_id: String?
|
|
136
|
-
|
|
137
|
-
attr_accessor payment_collection_method: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::payment_collection_method?
|
|
138
|
-
|
|
139
|
-
attr_accessor resource_id: String?
|
|
140
|
-
|
|
141
|
-
attr_accessor trial_end_date: Time?
|
|
142
|
-
|
|
143
|
-
def initialize: (
|
|
144
|
-
id: String,
|
|
145
|
-
billing_id: String?,
|
|
146
|
-
created_at: Time,
|
|
147
|
-
customer_id: String,
|
|
148
|
-
payment_collection: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::payment_collection,
|
|
149
|
-
plan_id: String,
|
|
150
|
-
pricing_type: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::pricing_type,
|
|
151
|
-
start_date: Time,
|
|
152
|
-
status: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::status,
|
|
153
|
-
?cancellation_date: Time?,
|
|
154
|
-
?cancel_reason: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::cancel_reason?,
|
|
155
|
-
?current_billing_period_end: Time?,
|
|
156
|
-
?current_billing_period_start: Time?,
|
|
157
|
-
?effective_end_date: Time?,
|
|
158
|
-
?end_date: Time?,
|
|
159
|
-
?metadata: ::Hash[Symbol, String],
|
|
160
|
-
?paying_customer_id: String?,
|
|
161
|
-
?payment_collection_method: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::payment_collection_method?,
|
|
162
|
-
?resource_id: String?,
|
|
163
|
-
?trial_end_date: Time?
|
|
164
|
-
) -> void
|
|
165
|
-
|
|
166
|
-
def to_hash: -> {
|
|
167
|
-
id: String,
|
|
168
|
-
billing_id: String?,
|
|
169
|
-
created_at: Time,
|
|
170
|
-
customer_id: String,
|
|
171
|
-
payment_collection: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::payment_collection,
|
|
172
|
-
plan_id: String,
|
|
173
|
-
pricing_type: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::pricing_type,
|
|
174
|
-
start_date: Time,
|
|
175
|
-
status: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::status,
|
|
176
|
-
cancellation_date: Time?,
|
|
177
|
-
cancel_reason: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::cancel_reason?,
|
|
178
|
-
current_billing_period_end: Time?,
|
|
179
|
-
current_billing_period_start: Time?,
|
|
180
|
-
effective_end_date: Time?,
|
|
181
|
-
end_date: Time?,
|
|
182
|
-
metadata: ::Hash[Symbol, String],
|
|
183
|
-
paying_customer_id: String?,
|
|
184
|
-
payment_collection_method: Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::payment_collection_method?,
|
|
185
|
-
resource_id: String?,
|
|
186
|
-
trial_end_date: Time?
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
type payment_collection =
|
|
190
|
-
:NOT_REQUIRED | :PROCESSING | :FAILED | :ACTION_REQUIRED
|
|
191
|
-
|
|
192
|
-
module PaymentCollection
|
|
193
|
-
extend Stigg::Internal::Type::Enum
|
|
194
|
-
|
|
195
|
-
NOT_REQUIRED: :NOT_REQUIRED
|
|
196
|
-
PROCESSING: :PROCESSING
|
|
197
|
-
FAILED: :FAILED
|
|
198
|
-
ACTION_REQUIRED: :ACTION_REQUIRED
|
|
199
|
-
|
|
200
|
-
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::payment_collection]
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
type pricing_type = :FREE | :PAID | :CUSTOM
|
|
204
|
-
|
|
205
|
-
module PricingType
|
|
206
|
-
extend Stigg::Internal::Type::Enum
|
|
207
|
-
|
|
208
|
-
FREE: :FREE
|
|
209
|
-
PAID: :PAID
|
|
210
|
-
CUSTOM: :CUSTOM
|
|
211
|
-
|
|
212
|
-
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::pricing_type]
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
type status =
|
|
216
|
-
:PAYMENT_PENDING
|
|
217
|
-
| :ACTIVE
|
|
218
|
-
| :EXPIRED
|
|
219
|
-
| :IN_TRIAL
|
|
220
|
-
| :CANCELED
|
|
221
|
-
| :NOT_STARTED
|
|
222
|
-
|
|
223
|
-
module Status
|
|
224
|
-
extend Stigg::Internal::Type::Enum
|
|
225
|
-
|
|
226
|
-
PAYMENT_PENDING: :PAYMENT_PENDING
|
|
227
|
-
ACTIVE: :ACTIVE
|
|
228
|
-
EXPIRED: :EXPIRED
|
|
229
|
-
IN_TRIAL: :IN_TRIAL
|
|
230
|
-
CANCELED: :CANCELED
|
|
231
|
-
NOT_STARTED: :NOT_STARTED
|
|
232
|
-
|
|
233
|
-
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::status]
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
type cancel_reason =
|
|
237
|
-
:UPGRADE_OR_DOWNGRADE
|
|
238
|
-
| :CANCELLED_BY_BILLING
|
|
239
|
-
| :EXPIRED
|
|
240
|
-
| :DETACH_BILLING
|
|
241
|
-
| :TRIAL_ENDED
|
|
242
|
-
| :Immediate
|
|
243
|
-
| :TRIAL_CONVERTED
|
|
244
|
-
| :PENDING_PAYMENT_EXPIRED
|
|
245
|
-
| :ScheduledCancellation
|
|
246
|
-
| :CustomerArchived
|
|
247
|
-
| :AutoCancellationRule
|
|
248
|
-
|
|
249
|
-
module CancelReason
|
|
250
|
-
extend Stigg::Internal::Type::Enum
|
|
251
|
-
|
|
252
|
-
UPGRADE_OR_DOWNGRADE: :UPGRADE_OR_DOWNGRADE
|
|
253
|
-
CANCELLED_BY_BILLING: :CANCELLED_BY_BILLING
|
|
254
|
-
EXPIRED: :EXPIRED
|
|
255
|
-
DETACH_BILLING: :DETACH_BILLING
|
|
256
|
-
TRIAL_ENDED: :TRIAL_ENDED
|
|
257
|
-
IMMEDIATE: :Immediate
|
|
258
|
-
TRIAL_CONVERTED: :TRIAL_CONVERTED
|
|
259
|
-
PENDING_PAYMENT_EXPIRED: :PENDING_PAYMENT_EXPIRED
|
|
260
|
-
SCHEDULED_CANCELLATION: :ScheduledCancellation
|
|
261
|
-
CUSTOMER_ARCHIVED: :CustomerArchived
|
|
262
|
-
AUTO_CANCELLATION_RULE: :AutoCancellationRule
|
|
263
|
-
|
|
264
|
-
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::cancel_reason]
|
|
265
|
-
end
|
|
266
|
-
|
|
267
|
-
type payment_collection_method = :CHARGE | :INVOICE | :NONE
|
|
268
|
-
|
|
269
|
-
module PaymentCollectionMethod
|
|
270
|
-
extend Stigg::Internal::Type::Enum
|
|
271
|
-
|
|
272
|
-
CHARGE: :CHARGE
|
|
273
|
-
INVOICE: :INVOICE
|
|
274
|
-
NONE: :NONE
|
|
275
|
-
|
|
276
|
-
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateResponse::Data::Subscription::payment_collection_method]
|
|
277
|
-
end
|
|
278
|
-
end
|
|
279
|
-
end
|
|
280
|
-
end
|
|
281
|
-
end
|
|
282
|
-
end
|
|
283
|
-
end
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
module Stigg
|
|
2
|
-
module Models
|
|
3
|
-
module V1
|
|
4
|
-
type subscription_delegate_response =
|
|
5
|
-
{ data: Stigg::Models::V1::SubscriptionDelegateResponse::Data }
|
|
6
|
-
|
|
7
|
-
class SubscriptionDelegateResponse < Stigg::Internal::Type::BaseModel
|
|
8
|
-
attr_accessor data: Stigg::Models::V1::SubscriptionDelegateResponse::Data
|
|
9
|
-
|
|
10
|
-
def initialize: (
|
|
11
|
-
data: Stigg::Models::V1::SubscriptionDelegateResponse::Data
|
|
12
|
-
) -> void
|
|
13
|
-
|
|
14
|
-
def to_hash: -> {
|
|
15
|
-
data: Stigg::Models::V1::SubscriptionDelegateResponse::Data
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
type data =
|
|
19
|
-
{
|
|
20
|
-
id: String,
|
|
21
|
-
billing_id: String?,
|
|
22
|
-
created_at: Time,
|
|
23
|
-
customer_id: String,
|
|
24
|
-
payment_collection: Stigg::Models::V1::SubscriptionDelegateResponse::Data::payment_collection,
|
|
25
|
-
plan_id: String,
|
|
26
|
-
pricing_type: Stigg::Models::V1::SubscriptionDelegateResponse::Data::pricing_type,
|
|
27
|
-
start_date: Time,
|
|
28
|
-
status: Stigg::Models::V1::SubscriptionDelegateResponse::Data::status,
|
|
29
|
-
cancellation_date: Time?,
|
|
30
|
-
cancel_reason: Stigg::Models::V1::SubscriptionDelegateResponse::Data::cancel_reason?,
|
|
31
|
-
current_billing_period_end: Time?,
|
|
32
|
-
current_billing_period_start: Time?,
|
|
33
|
-
effective_end_date: Time?,
|
|
34
|
-
end_date: Time?,
|
|
35
|
-
metadata: ::Hash[Symbol, String],
|
|
36
|
-
paying_customer_id: String?,
|
|
37
|
-
payment_collection_method: Stigg::Models::V1::SubscriptionDelegateResponse::Data::payment_collection_method?,
|
|
38
|
-
resource_id: String?,
|
|
39
|
-
trial_end_date: Time?
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
class Data < Stigg::Internal::Type::BaseModel
|
|
43
|
-
attr_accessor id: String
|
|
44
|
-
|
|
45
|
-
attr_accessor billing_id: String?
|
|
46
|
-
|
|
47
|
-
attr_accessor created_at: Time
|
|
48
|
-
|
|
49
|
-
attr_accessor customer_id: String
|
|
50
|
-
|
|
51
|
-
attr_accessor payment_collection: Stigg::Models::V1::SubscriptionDelegateResponse::Data::payment_collection
|
|
52
|
-
|
|
53
|
-
attr_accessor plan_id: String
|
|
54
|
-
|
|
55
|
-
attr_accessor pricing_type: Stigg::Models::V1::SubscriptionDelegateResponse::Data::pricing_type
|
|
56
|
-
|
|
57
|
-
attr_accessor start_date: Time
|
|
58
|
-
|
|
59
|
-
attr_accessor status: Stigg::Models::V1::SubscriptionDelegateResponse::Data::status
|
|
60
|
-
|
|
61
|
-
attr_accessor cancellation_date: Time?
|
|
62
|
-
|
|
63
|
-
attr_accessor cancel_reason: Stigg::Models::V1::SubscriptionDelegateResponse::Data::cancel_reason?
|
|
64
|
-
|
|
65
|
-
attr_accessor current_billing_period_end: Time?
|
|
66
|
-
|
|
67
|
-
attr_accessor current_billing_period_start: Time?
|
|
68
|
-
|
|
69
|
-
attr_accessor effective_end_date: Time?
|
|
70
|
-
|
|
71
|
-
attr_accessor end_date: Time?
|
|
72
|
-
|
|
73
|
-
attr_reader metadata: ::Hash[Symbol, String]?
|
|
74
|
-
|
|
75
|
-
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
76
|
-
|
|
77
|
-
attr_accessor paying_customer_id: String?
|
|
78
|
-
|
|
79
|
-
attr_accessor payment_collection_method: Stigg::Models::V1::SubscriptionDelegateResponse::Data::payment_collection_method?
|
|
80
|
-
|
|
81
|
-
attr_accessor resource_id: String?
|
|
82
|
-
|
|
83
|
-
attr_accessor trial_end_date: Time?
|
|
84
|
-
|
|
85
|
-
def initialize: (
|
|
86
|
-
id: String,
|
|
87
|
-
billing_id: String?,
|
|
88
|
-
created_at: Time,
|
|
89
|
-
customer_id: String,
|
|
90
|
-
payment_collection: Stigg::Models::V1::SubscriptionDelegateResponse::Data::payment_collection,
|
|
91
|
-
plan_id: String,
|
|
92
|
-
pricing_type: Stigg::Models::V1::SubscriptionDelegateResponse::Data::pricing_type,
|
|
93
|
-
start_date: Time,
|
|
94
|
-
status: Stigg::Models::V1::SubscriptionDelegateResponse::Data::status,
|
|
95
|
-
?cancellation_date: Time?,
|
|
96
|
-
?cancel_reason: Stigg::Models::V1::SubscriptionDelegateResponse::Data::cancel_reason?,
|
|
97
|
-
?current_billing_period_end: Time?,
|
|
98
|
-
?current_billing_period_start: Time?,
|
|
99
|
-
?effective_end_date: Time?,
|
|
100
|
-
?end_date: Time?,
|
|
101
|
-
?metadata: ::Hash[Symbol, String],
|
|
102
|
-
?paying_customer_id: String?,
|
|
103
|
-
?payment_collection_method: Stigg::Models::V1::SubscriptionDelegateResponse::Data::payment_collection_method?,
|
|
104
|
-
?resource_id: String?,
|
|
105
|
-
?trial_end_date: Time?
|
|
106
|
-
) -> void
|
|
107
|
-
|
|
108
|
-
def to_hash: -> {
|
|
109
|
-
id: String,
|
|
110
|
-
billing_id: String?,
|
|
111
|
-
created_at: Time,
|
|
112
|
-
customer_id: String,
|
|
113
|
-
payment_collection: Stigg::Models::V1::SubscriptionDelegateResponse::Data::payment_collection,
|
|
114
|
-
plan_id: String,
|
|
115
|
-
pricing_type: Stigg::Models::V1::SubscriptionDelegateResponse::Data::pricing_type,
|
|
116
|
-
start_date: Time,
|
|
117
|
-
status: Stigg::Models::V1::SubscriptionDelegateResponse::Data::status,
|
|
118
|
-
cancellation_date: Time?,
|
|
119
|
-
cancel_reason: Stigg::Models::V1::SubscriptionDelegateResponse::Data::cancel_reason?,
|
|
120
|
-
current_billing_period_end: Time?,
|
|
121
|
-
current_billing_period_start: Time?,
|
|
122
|
-
effective_end_date: Time?,
|
|
123
|
-
end_date: Time?,
|
|
124
|
-
metadata: ::Hash[Symbol, String],
|
|
125
|
-
paying_customer_id: String?,
|
|
126
|
-
payment_collection_method: Stigg::Models::V1::SubscriptionDelegateResponse::Data::payment_collection_method?,
|
|
127
|
-
resource_id: String?,
|
|
128
|
-
trial_end_date: Time?
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
type payment_collection =
|
|
132
|
-
:NOT_REQUIRED | :PROCESSING | :FAILED | :ACTION_REQUIRED
|
|
133
|
-
|
|
134
|
-
module PaymentCollection
|
|
135
|
-
extend Stigg::Internal::Type::Enum
|
|
136
|
-
|
|
137
|
-
NOT_REQUIRED: :NOT_REQUIRED
|
|
138
|
-
PROCESSING: :PROCESSING
|
|
139
|
-
FAILED: :FAILED
|
|
140
|
-
ACTION_REQUIRED: :ACTION_REQUIRED
|
|
141
|
-
|
|
142
|
-
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionDelegateResponse::Data::payment_collection]
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
type pricing_type = :FREE | :PAID | :CUSTOM
|
|
146
|
-
|
|
147
|
-
module PricingType
|
|
148
|
-
extend Stigg::Internal::Type::Enum
|
|
149
|
-
|
|
150
|
-
FREE: :FREE
|
|
151
|
-
PAID: :PAID
|
|
152
|
-
CUSTOM: :CUSTOM
|
|
153
|
-
|
|
154
|
-
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionDelegateResponse::Data::pricing_type]
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
type status =
|
|
158
|
-
:PAYMENT_PENDING
|
|
159
|
-
| :ACTIVE
|
|
160
|
-
| :EXPIRED
|
|
161
|
-
| :IN_TRIAL
|
|
162
|
-
| :CANCELED
|
|
163
|
-
| :NOT_STARTED
|
|
164
|
-
|
|
165
|
-
module Status
|
|
166
|
-
extend Stigg::Internal::Type::Enum
|
|
167
|
-
|
|
168
|
-
PAYMENT_PENDING: :PAYMENT_PENDING
|
|
169
|
-
ACTIVE: :ACTIVE
|
|
170
|
-
EXPIRED: :EXPIRED
|
|
171
|
-
IN_TRIAL: :IN_TRIAL
|
|
172
|
-
CANCELED: :CANCELED
|
|
173
|
-
NOT_STARTED: :NOT_STARTED
|
|
174
|
-
|
|
175
|
-
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionDelegateResponse::Data::status]
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
type cancel_reason =
|
|
179
|
-
:UPGRADE_OR_DOWNGRADE
|
|
180
|
-
| :CANCELLED_BY_BILLING
|
|
181
|
-
| :EXPIRED
|
|
182
|
-
| :DETACH_BILLING
|
|
183
|
-
| :TRIAL_ENDED
|
|
184
|
-
| :Immediate
|
|
185
|
-
| :TRIAL_CONVERTED
|
|
186
|
-
| :PENDING_PAYMENT_EXPIRED
|
|
187
|
-
| :ScheduledCancellation
|
|
188
|
-
| :CustomerArchived
|
|
189
|
-
| :AutoCancellationRule
|
|
190
|
-
|
|
191
|
-
module CancelReason
|
|
192
|
-
extend Stigg::Internal::Type::Enum
|
|
193
|
-
|
|
194
|
-
UPGRADE_OR_DOWNGRADE: :UPGRADE_OR_DOWNGRADE
|
|
195
|
-
CANCELLED_BY_BILLING: :CANCELLED_BY_BILLING
|
|
196
|
-
EXPIRED: :EXPIRED
|
|
197
|
-
DETACH_BILLING: :DETACH_BILLING
|
|
198
|
-
TRIAL_ENDED: :TRIAL_ENDED
|
|
199
|
-
IMMEDIATE: :Immediate
|
|
200
|
-
TRIAL_CONVERTED: :TRIAL_CONVERTED
|
|
201
|
-
PENDING_PAYMENT_EXPIRED: :PENDING_PAYMENT_EXPIRED
|
|
202
|
-
SCHEDULED_CANCELLATION: :ScheduledCancellation
|
|
203
|
-
CUSTOMER_ARCHIVED: :CustomerArchived
|
|
204
|
-
AUTO_CANCELLATION_RULE: :AutoCancellationRule
|
|
205
|
-
|
|
206
|
-
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionDelegateResponse::Data::cancel_reason]
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
type payment_collection_method = :CHARGE | :INVOICE | :NONE
|
|
210
|
-
|
|
211
|
-
module PaymentCollectionMethod
|
|
212
|
-
extend Stigg::Internal::Type::Enum
|
|
213
|
-
|
|
214
|
-
CHARGE: :CHARGE
|
|
215
|
-
INVOICE: :INVOICE
|
|
216
|
-
NONE: :NONE
|
|
217
|
-
|
|
218
|
-
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionDelegateResponse::Data::payment_collection_method]
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
end
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
end
|