stigg 0.1.0.pre.alpha.1 → 0.1.0.pre.alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +29 -1
- data/lib/stigg/internal/my_cursor_id_page.rb +32 -4
- data/lib/stigg/models/v1/coupon_create_params.rb +2 -0
- data/lib/stigg/models/v1/coupon_create_response.rb +11 -6
- data/lib/stigg/models/v1/coupon_list_params.rb +14 -14
- data/lib/stigg/models/v1/coupon_list_response.rb +262 -278
- data/lib/stigg/models/v1/coupon_retrieve_response.rb +11 -6
- data/lib/stigg/models/v1/customer_create_params.rb +2 -0
- data/lib/stigg/models/v1/customer_list_params.rb +14 -14
- data/lib/stigg/models/v1/customer_list_response.rb +160 -174
- data/lib/stigg/models/v1/customer_response.rb +8 -1
- data/lib/stigg/models/v1/customer_update_params.rb +2 -0
- data/lib/stigg/models/v1/customers/payment_method_attach_params.rb +3 -1
- data/lib/stigg/models/v1/subscription_create_params.rb +1485 -6
- data/lib/stigg/models/v1/subscription_create_response.rb +703 -4
- data/lib/stigg/models/v1/subscription_delegate_params.rb +7 -2
- data/lib/stigg/models/v1/subscription_delegate_response.rb +42 -2
- data/lib/stigg/models/v1/subscription_list_params.rb +20 -24
- data/lib/stigg/models/v1/subscription_list_response.rb +255 -236
- data/lib/stigg/models/v1/subscription_migrate_params.rb +3 -3
- data/lib/stigg/models/v1/subscription_migrate_response.rb +42 -2
- data/lib/stigg/models/v1/subscription_preview_params.rb +139 -46
- data/lib/stigg/models/v1/subscription_preview_response.rb +164 -49
- data/lib/stigg/models/v1/subscription_retrieve_response.rb +42 -2
- data/lib/stigg/models/v1/subscription_transfer_params.rb +2 -6
- data/lib/stigg/models/v1/subscription_transfer_response.rb +42 -2
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rb +2 -0
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +2 -0
- data/lib/stigg/models/v1_create_event_params.rb +2 -0
- data/lib/stigg/models/v1_create_event_response.rb +8 -1
- data/lib/stigg/models/v1_create_usage_params.rb +19 -3
- data/lib/stigg/models/v1_create_usage_response.rb +7 -1
- data/lib/stigg/resources/v1/coupons.rb +12 -10
- data/lib/stigg/resources/v1/customers/payment_method.rb +6 -5
- data/lib/stigg/resources/v1/customers/usage.rb +0 -41
- data/lib/stigg/resources/v1/customers.rb +20 -20
- data/lib/stigg/resources/v1/subscriptions/future_update.rb +6 -4
- data/lib/stigg/resources/v1/subscriptions.rb +74 -49
- data/lib/stigg/resources/v1.rb +2 -2
- data/lib/stigg/version.rb +1 -1
- data/lib/stigg.rb +0 -7
- data/rbi/stigg/internal/my_cursor_id_page.rbi +27 -0
- data/rbi/stigg/models/v1/coupon_create_params.rbi +1 -0
- data/rbi/stigg/models/v1/coupon_create_response.rbi +11 -10
- data/rbi/stigg/models/v1/coupon_list_params.rbi +21 -21
- data/rbi/stigg/models/v1/coupon_list_response.rbi +812 -869
- data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +11 -10
- data/rbi/stigg/models/v1/customer_create_params.rbi +1 -0
- data/rbi/stigg/models/v1/customer_list_params.rbi +21 -21
- data/rbi/stigg/models/v1/customer_list_response.rbi +307 -347
- data/rbi/stigg/models/v1/customer_response.rbi +8 -1
- data/rbi/stigg/models/v1/customer_update_params.rbi +1 -0
- data/rbi/stigg/models/v1/customers/payment_method_attach_params.rbi +3 -0
- data/rbi/stigg/models/v1/subscription_create_params.rbi +4975 -84
- data/rbi/stigg/models/v1/subscription_create_response.rbi +2508 -1
- data/rbi/stigg/models/v1/subscription_delegate_params.rbi +6 -2
- data/rbi/stigg/models/v1/subscription_delegate_response.rbi +84 -1
- data/rbi/stigg/models/v1/subscription_list_params.rbi +26 -28
- data/rbi/stigg/models/v1/subscription_list_response.rbi +460 -435
- data/rbi/stigg/models/v1/subscription_migrate_params.rbi +3 -3
- data/rbi/stigg/models/v1/subscription_migrate_response.rbi +84 -1
- data/rbi/stigg/models/v1/subscription_preview_params.rbi +112 -14
- data/rbi/stigg/models/v1/subscription_preview_response.rbi +139 -6
- data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +84 -1
- data/rbi/stigg/models/v1/subscription_transfer_params.rbi +2 -4
- data/rbi/stigg/models/v1/subscription_transfer_response.rbi +84 -1
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +1 -0
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbi +1 -0
- data/rbi/stigg/models/v1_create_event_params.rbi +1 -0
- data/rbi/stigg/models/v1_create_event_response.rbi +8 -1
- data/rbi/stigg/models/v1_create_usage_params.rbi +44 -4
- data/rbi/stigg/models/v1_create_usage_response.rbi +8 -1
- data/rbi/stigg/resources/v1/coupons.rbi +20 -12
- data/rbi/stigg/resources/v1/customers/payment_method.rbi +9 -3
- data/rbi/stigg/resources/v1/customers/usage.rbi +0 -29
- data/rbi/stigg/resources/v1/customers.rbi +34 -20
- data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +12 -4
- data/rbi/stigg/resources/v1/subscriptions.rbi +102 -23
- data/rbi/stigg/resources/v1.rbi +2 -2
- data/sig/stigg/internal/my_cursor_id_page.rbs +17 -0
- data/sig/stigg/models/v1/coupon_create_response.rbs +4 -4
- data/sig/stigg/models/v1/coupon_list_params.rbs +11 -11
- data/sig/stigg/models/v1/coupon_list_response.rbs +331 -351
- data/sig/stigg/models/v1/coupon_retrieve_response.rbs +4 -4
- data/sig/stigg/models/v1/customer_list_params.rbs +11 -11
- data/sig/stigg/models/v1/customer_list_response.rbs +133 -153
- data/sig/stigg/models/v1/subscription_create_params.rbs +2029 -5
- data/sig/stigg/models/v1/subscription_create_response.rbs +1022 -0
- data/sig/stigg/models/v1/subscription_delegate_response.rbs +31 -0
- data/sig/stigg/models/v1/subscription_list_params.rbs +14 -14
- data/sig/stigg/models/v1/subscription_list_response.rbs +196 -189
- data/sig/stigg/models/v1/subscription_migrate_response.rbs +31 -0
- data/sig/stigg/models/v1/subscription_preview_params.rbs +2 -6
- data/sig/stigg/models/v1/subscription_retrieve_response.rbs +31 -0
- data/sig/stigg/models/v1/subscription_transfer_response.rbs +31 -0
- data/sig/stigg/models/v1_create_usage_params.rbs +15 -5
- data/sig/stigg/resources/v1/coupons.rbs +3 -3
- data/sig/stigg/resources/v1/customers/usage.rbs +0 -10
- data/sig/stigg/resources/v1/customers.rbs +3 -5
- data/sig/stigg/resources/v1/subscriptions.rbs +19 -4
- metadata +2 -23
- data/lib/stigg/models/v1/customers/promotional_create_params.rb +0 -294
- data/lib/stigg/models/v1/customers/promotional_create_response.rb +0 -268
- data/lib/stigg/models/v1/customers/promotional_revoke_params.rb +0 -24
- data/lib/stigg/models/v1/customers/promotional_revoke_response.rb +0 -268
- data/lib/stigg/models/v1/customers/usage_retrieve_params.rb +0 -56
- data/lib/stigg/models/v1/customers/usage_retrieve_response.rb +0 -145
- data/lib/stigg/resources/v1/customers/promotional.rb +0 -69
- data/rbi/stigg/models/v1/customers/promotional_create_params.rbi +0 -639
- data/rbi/stigg/models/v1/customers/promotional_create_response.rbi +0 -495
- data/rbi/stigg/models/v1/customers/promotional_revoke_params.rbi +0 -42
- data/rbi/stigg/models/v1/customers/promotional_revoke_response.rbi +0 -497
- data/rbi/stigg/models/v1/customers/usage_retrieve_params.rbi +0 -84
- data/rbi/stigg/models/v1/customers/usage_retrieve_response.rbi +0 -353
- data/rbi/stigg/resources/v1/customers/promotional.rbi +0 -53
- data/sig/stigg/models/v1/customers/promotional_create_params.rbs +0 -234
- data/sig/stigg/models/v1/customers/promotional_create_response.rbs +0 -209
- data/sig/stigg/models/v1/customers/promotional_revoke_params.rbs +0 -27
- data/sig/stigg/models/v1/customers/promotional_revoke_response.rbs +0 -209
- data/sig/stigg/models/v1/customers/usage_retrieve_params.rbs +0 -54
- data/sig/stigg/models/v1/customers/usage_retrieve_response.rbs +0 -134
- data/sig/stigg/resources/v1/customers/promotional.rbs +0 -23
|
@@ -5,14 +5,29 @@ module Stigg
|
|
|
5
5
|
{
|
|
6
6
|
customer_id: String,
|
|
7
7
|
plan_id: String,
|
|
8
|
-
id: String
|
|
8
|
+
id: String,
|
|
9
|
+
addons: ::Array[Stigg::V1::SubscriptionCreateParams::Addon],
|
|
10
|
+
applied_coupon: Stigg::V1::SubscriptionCreateParams::AppliedCoupon,
|
|
9
11
|
await_payment_confirmation: bool,
|
|
12
|
+
billing_country_code: String?,
|
|
13
|
+
billing_id: String?,
|
|
14
|
+
billing_information: Stigg::V1::SubscriptionCreateParams::BillingInformation,
|
|
10
15
|
billing_period: Stigg::Models::V1::SubscriptionCreateParams::billing_period,
|
|
16
|
+
budget: Stigg::V1::SubscriptionCreateParams::Budget?,
|
|
17
|
+
charges: ::Array[Stigg::V1::SubscriptionCreateParams::Charge],
|
|
11
18
|
checkout_options: Stigg::V1::SubscriptionCreateParams::CheckoutOptions,
|
|
12
19
|
metadata: ::Hash[Symbol, String],
|
|
20
|
+
minimum_spend: Stigg::V1::SubscriptionCreateParams::MinimumSpend?,
|
|
13
21
|
paying_customer_id: String?,
|
|
22
|
+
payment_collection_method: Stigg::Models::V1::SubscriptionCreateParams::payment_collection_method,
|
|
23
|
+
price_overrides: ::Array[Stigg::V1::SubscriptionCreateParams::PriceOverride],
|
|
14
24
|
resource_id: String?,
|
|
15
|
-
|
|
25
|
+
salesforce_id: String?,
|
|
26
|
+
schedule_strategy: Stigg::Models::V1::SubscriptionCreateParams::schedule_strategy,
|
|
27
|
+
start_date: Time,
|
|
28
|
+
subscription_entitlements: ::Array[Stigg::V1::SubscriptionCreateParams::SubscriptionEntitlement],
|
|
29
|
+
trial_override_configuration: Stigg::V1::SubscriptionCreateParams::TrialOverrideConfiguration,
|
|
30
|
+
unit_quantity: Float
|
|
16
31
|
}
|
|
17
32
|
& Stigg::Internal::Type::request_parameters
|
|
18
33
|
|
|
@@ -24,18 +39,50 @@ module Stigg
|
|
|
24
39
|
|
|
25
40
|
attr_accessor plan_id: String
|
|
26
41
|
|
|
27
|
-
|
|
42
|
+
attr_reader id: String?
|
|
43
|
+
|
|
44
|
+
def id=: (String) -> String
|
|
45
|
+
|
|
46
|
+
attr_reader addons: ::Array[Stigg::V1::SubscriptionCreateParams::Addon]?
|
|
47
|
+
|
|
48
|
+
def addons=: (
|
|
49
|
+
::Array[Stigg::V1::SubscriptionCreateParams::Addon]
|
|
50
|
+
) -> ::Array[Stigg::V1::SubscriptionCreateParams::Addon]
|
|
51
|
+
|
|
52
|
+
attr_reader applied_coupon: Stigg::V1::SubscriptionCreateParams::AppliedCoupon?
|
|
53
|
+
|
|
54
|
+
def applied_coupon=: (
|
|
55
|
+
Stigg::V1::SubscriptionCreateParams::AppliedCoupon
|
|
56
|
+
) -> Stigg::V1::SubscriptionCreateParams::AppliedCoupon
|
|
28
57
|
|
|
29
58
|
attr_reader await_payment_confirmation: bool?
|
|
30
59
|
|
|
31
60
|
def await_payment_confirmation=: (bool) -> bool
|
|
32
61
|
|
|
62
|
+
attr_accessor billing_country_code: String?
|
|
63
|
+
|
|
64
|
+
attr_accessor billing_id: String?
|
|
65
|
+
|
|
66
|
+
attr_reader billing_information: Stigg::V1::SubscriptionCreateParams::BillingInformation?
|
|
67
|
+
|
|
68
|
+
def billing_information=: (
|
|
69
|
+
Stigg::V1::SubscriptionCreateParams::BillingInformation
|
|
70
|
+
) -> Stigg::V1::SubscriptionCreateParams::BillingInformation
|
|
71
|
+
|
|
33
72
|
attr_reader billing_period: Stigg::Models::V1::SubscriptionCreateParams::billing_period?
|
|
34
73
|
|
|
35
74
|
def billing_period=: (
|
|
36
75
|
Stigg::Models::V1::SubscriptionCreateParams::billing_period
|
|
37
76
|
) -> Stigg::Models::V1::SubscriptionCreateParams::billing_period
|
|
38
77
|
|
|
78
|
+
attr_accessor budget: Stigg::V1::SubscriptionCreateParams::Budget?
|
|
79
|
+
|
|
80
|
+
attr_reader charges: ::Array[Stigg::V1::SubscriptionCreateParams::Charge]?
|
|
81
|
+
|
|
82
|
+
def charges=: (
|
|
83
|
+
::Array[Stigg::V1::SubscriptionCreateParams::Charge]
|
|
84
|
+
) -> ::Array[Stigg::V1::SubscriptionCreateParams::Charge]
|
|
85
|
+
|
|
39
86
|
attr_reader checkout_options: Stigg::V1::SubscriptionCreateParams::CheckoutOptions?
|
|
40
87
|
|
|
41
88
|
def checkout_options=: (
|
|
@@ -46,44 +93,665 @@ module Stigg
|
|
|
46
93
|
|
|
47
94
|
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
48
95
|
|
|
96
|
+
attr_accessor minimum_spend: Stigg::V1::SubscriptionCreateParams::MinimumSpend?
|
|
97
|
+
|
|
49
98
|
attr_accessor paying_customer_id: String?
|
|
50
99
|
|
|
100
|
+
attr_reader payment_collection_method: Stigg::Models::V1::SubscriptionCreateParams::payment_collection_method?
|
|
101
|
+
|
|
102
|
+
def payment_collection_method=: (
|
|
103
|
+
Stigg::Models::V1::SubscriptionCreateParams::payment_collection_method
|
|
104
|
+
) -> Stigg::Models::V1::SubscriptionCreateParams::payment_collection_method
|
|
105
|
+
|
|
106
|
+
attr_reader price_overrides: ::Array[Stigg::V1::SubscriptionCreateParams::PriceOverride]?
|
|
107
|
+
|
|
108
|
+
def price_overrides=: (
|
|
109
|
+
::Array[Stigg::V1::SubscriptionCreateParams::PriceOverride]
|
|
110
|
+
) -> ::Array[Stigg::V1::SubscriptionCreateParams::PriceOverride]
|
|
111
|
+
|
|
51
112
|
attr_accessor resource_id: String?
|
|
52
113
|
|
|
114
|
+
attr_accessor salesforce_id: String?
|
|
115
|
+
|
|
116
|
+
attr_reader schedule_strategy: Stigg::Models::V1::SubscriptionCreateParams::schedule_strategy?
|
|
117
|
+
|
|
118
|
+
def schedule_strategy=: (
|
|
119
|
+
Stigg::Models::V1::SubscriptionCreateParams::schedule_strategy
|
|
120
|
+
) -> Stigg::Models::V1::SubscriptionCreateParams::schedule_strategy
|
|
121
|
+
|
|
122
|
+
attr_reader start_date: Time?
|
|
123
|
+
|
|
124
|
+
def start_date=: (Time) -> Time
|
|
125
|
+
|
|
126
|
+
attr_reader subscription_entitlements: ::Array[Stigg::V1::SubscriptionCreateParams::SubscriptionEntitlement]?
|
|
127
|
+
|
|
128
|
+
def subscription_entitlements=: (
|
|
129
|
+
::Array[Stigg::V1::SubscriptionCreateParams::SubscriptionEntitlement]
|
|
130
|
+
) -> ::Array[Stigg::V1::SubscriptionCreateParams::SubscriptionEntitlement]
|
|
131
|
+
|
|
53
132
|
attr_reader trial_override_configuration: Stigg::V1::SubscriptionCreateParams::TrialOverrideConfiguration?
|
|
54
133
|
|
|
55
134
|
def trial_override_configuration=: (
|
|
56
135
|
Stigg::V1::SubscriptionCreateParams::TrialOverrideConfiguration
|
|
57
136
|
) -> Stigg::V1::SubscriptionCreateParams::TrialOverrideConfiguration
|
|
58
137
|
|
|
138
|
+
attr_reader unit_quantity: Float?
|
|
139
|
+
|
|
140
|
+
def unit_quantity=: (Float) -> Float
|
|
141
|
+
|
|
59
142
|
def initialize: (
|
|
60
143
|
customer_id: String,
|
|
61
144
|
plan_id: String,
|
|
62
|
-
?id: String
|
|
145
|
+
?id: String,
|
|
146
|
+
?addons: ::Array[Stigg::V1::SubscriptionCreateParams::Addon],
|
|
147
|
+
?applied_coupon: Stigg::V1::SubscriptionCreateParams::AppliedCoupon,
|
|
63
148
|
?await_payment_confirmation: bool,
|
|
149
|
+
?billing_country_code: String?,
|
|
150
|
+
?billing_id: String?,
|
|
151
|
+
?billing_information: Stigg::V1::SubscriptionCreateParams::BillingInformation,
|
|
64
152
|
?billing_period: Stigg::Models::V1::SubscriptionCreateParams::billing_period,
|
|
153
|
+
?budget: Stigg::V1::SubscriptionCreateParams::Budget?,
|
|
154
|
+
?charges: ::Array[Stigg::V1::SubscriptionCreateParams::Charge],
|
|
65
155
|
?checkout_options: Stigg::V1::SubscriptionCreateParams::CheckoutOptions,
|
|
66
156
|
?metadata: ::Hash[Symbol, String],
|
|
157
|
+
?minimum_spend: Stigg::V1::SubscriptionCreateParams::MinimumSpend?,
|
|
67
158
|
?paying_customer_id: String?,
|
|
159
|
+
?payment_collection_method: Stigg::Models::V1::SubscriptionCreateParams::payment_collection_method,
|
|
160
|
+
?price_overrides: ::Array[Stigg::V1::SubscriptionCreateParams::PriceOverride],
|
|
68
161
|
?resource_id: String?,
|
|
162
|
+
?salesforce_id: String?,
|
|
163
|
+
?schedule_strategy: Stigg::Models::V1::SubscriptionCreateParams::schedule_strategy,
|
|
164
|
+
?start_date: Time,
|
|
165
|
+
?subscription_entitlements: ::Array[Stigg::V1::SubscriptionCreateParams::SubscriptionEntitlement],
|
|
69
166
|
?trial_override_configuration: Stigg::V1::SubscriptionCreateParams::TrialOverrideConfiguration,
|
|
167
|
+
?unit_quantity: Float,
|
|
70
168
|
?request_options: Stigg::request_opts
|
|
71
169
|
) -> void
|
|
72
170
|
|
|
73
171
|
def to_hash: -> {
|
|
74
172
|
customer_id: String,
|
|
75
173
|
plan_id: String,
|
|
76
|
-
id: String
|
|
174
|
+
id: String,
|
|
175
|
+
addons: ::Array[Stigg::V1::SubscriptionCreateParams::Addon],
|
|
176
|
+
applied_coupon: Stigg::V1::SubscriptionCreateParams::AppliedCoupon,
|
|
77
177
|
await_payment_confirmation: bool,
|
|
178
|
+
billing_country_code: String?,
|
|
179
|
+
billing_id: String?,
|
|
180
|
+
billing_information: Stigg::V1::SubscriptionCreateParams::BillingInformation,
|
|
78
181
|
billing_period: Stigg::Models::V1::SubscriptionCreateParams::billing_period,
|
|
182
|
+
budget: Stigg::V1::SubscriptionCreateParams::Budget?,
|
|
183
|
+
charges: ::Array[Stigg::V1::SubscriptionCreateParams::Charge],
|
|
79
184
|
checkout_options: Stigg::V1::SubscriptionCreateParams::CheckoutOptions,
|
|
80
185
|
metadata: ::Hash[Symbol, String],
|
|
186
|
+
minimum_spend: Stigg::V1::SubscriptionCreateParams::MinimumSpend?,
|
|
81
187
|
paying_customer_id: String?,
|
|
188
|
+
payment_collection_method: Stigg::Models::V1::SubscriptionCreateParams::payment_collection_method,
|
|
189
|
+
price_overrides: ::Array[Stigg::V1::SubscriptionCreateParams::PriceOverride],
|
|
82
190
|
resource_id: String?,
|
|
191
|
+
salesforce_id: String?,
|
|
192
|
+
schedule_strategy: Stigg::Models::V1::SubscriptionCreateParams::schedule_strategy,
|
|
193
|
+
start_date: Time,
|
|
194
|
+
subscription_entitlements: ::Array[Stigg::V1::SubscriptionCreateParams::SubscriptionEntitlement],
|
|
83
195
|
trial_override_configuration: Stigg::V1::SubscriptionCreateParams::TrialOverrideConfiguration,
|
|
196
|
+
unit_quantity: Float,
|
|
84
197
|
request_options: Stigg::RequestOptions
|
|
85
198
|
}
|
|
86
199
|
|
|
200
|
+
type addon = { addon_id: String, quantity: Integer }
|
|
201
|
+
|
|
202
|
+
class Addon < Stigg::Internal::Type::BaseModel
|
|
203
|
+
attr_accessor addon_id: String
|
|
204
|
+
|
|
205
|
+
attr_reader quantity: Integer?
|
|
206
|
+
|
|
207
|
+
def quantity=: (Integer) -> Integer
|
|
208
|
+
|
|
209
|
+
def initialize: (addon_id: String, ?quantity: Integer) -> void
|
|
210
|
+
|
|
211
|
+
def to_hash: -> { addon_id: String, quantity: Integer }
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
type applied_coupon =
|
|
215
|
+
{
|
|
216
|
+
billing_coupon_id: String,
|
|
217
|
+
configuration: Stigg::V1::SubscriptionCreateParams::AppliedCoupon::Configuration,
|
|
218
|
+
coupon_id: String,
|
|
219
|
+
discount: Stigg::V1::SubscriptionCreateParams::AppliedCoupon::Discount,
|
|
220
|
+
promotion_code: String
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
class AppliedCoupon < Stigg::Internal::Type::BaseModel
|
|
224
|
+
attr_reader billing_coupon_id: String?
|
|
225
|
+
|
|
226
|
+
def billing_coupon_id=: (String) -> String
|
|
227
|
+
|
|
228
|
+
attr_reader configuration: Stigg::V1::SubscriptionCreateParams::AppliedCoupon::Configuration?
|
|
229
|
+
|
|
230
|
+
def configuration=: (
|
|
231
|
+
Stigg::V1::SubscriptionCreateParams::AppliedCoupon::Configuration
|
|
232
|
+
) -> Stigg::V1::SubscriptionCreateParams::AppliedCoupon::Configuration
|
|
233
|
+
|
|
234
|
+
attr_reader coupon_id: String?
|
|
235
|
+
|
|
236
|
+
def coupon_id=: (String) -> String
|
|
237
|
+
|
|
238
|
+
attr_reader discount: Stigg::V1::SubscriptionCreateParams::AppliedCoupon::Discount?
|
|
239
|
+
|
|
240
|
+
def discount=: (
|
|
241
|
+
Stigg::V1::SubscriptionCreateParams::AppliedCoupon::Discount
|
|
242
|
+
) -> Stigg::V1::SubscriptionCreateParams::AppliedCoupon::Discount
|
|
243
|
+
|
|
244
|
+
attr_reader promotion_code: String?
|
|
245
|
+
|
|
246
|
+
def promotion_code=: (String) -> String
|
|
247
|
+
|
|
248
|
+
def initialize: (
|
|
249
|
+
?billing_coupon_id: String,
|
|
250
|
+
?configuration: Stigg::V1::SubscriptionCreateParams::AppliedCoupon::Configuration,
|
|
251
|
+
?coupon_id: String,
|
|
252
|
+
?discount: Stigg::V1::SubscriptionCreateParams::AppliedCoupon::Discount,
|
|
253
|
+
?promotion_code: String
|
|
254
|
+
) -> void
|
|
255
|
+
|
|
256
|
+
def to_hash: -> {
|
|
257
|
+
billing_coupon_id: String,
|
|
258
|
+
configuration: Stigg::V1::SubscriptionCreateParams::AppliedCoupon::Configuration,
|
|
259
|
+
coupon_id: String,
|
|
260
|
+
discount: Stigg::V1::SubscriptionCreateParams::AppliedCoupon::Discount,
|
|
261
|
+
promotion_code: String
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
type configuration = { start_date: Time }
|
|
265
|
+
|
|
266
|
+
class Configuration < Stigg::Internal::Type::BaseModel
|
|
267
|
+
attr_reader start_date: Time?
|
|
268
|
+
|
|
269
|
+
def start_date=: (Time) -> Time
|
|
270
|
+
|
|
271
|
+
def initialize: (?start_date: Time) -> void
|
|
272
|
+
|
|
273
|
+
def to_hash: -> { start_date: Time }
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
type discount =
|
|
277
|
+
{
|
|
278
|
+
amounts_off: ::Array[Stigg::V1::SubscriptionCreateParams::AppliedCoupon::Discount::AmountsOff]?,
|
|
279
|
+
description: String,
|
|
280
|
+
duration_in_months: Float,
|
|
281
|
+
name: String,
|
|
282
|
+
percent_off: Float
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
class Discount < Stigg::Internal::Type::BaseModel
|
|
286
|
+
attr_accessor amounts_off: ::Array[Stigg::V1::SubscriptionCreateParams::AppliedCoupon::Discount::AmountsOff]?
|
|
287
|
+
|
|
288
|
+
attr_reader description: String?
|
|
289
|
+
|
|
290
|
+
def description=: (String) -> String
|
|
291
|
+
|
|
292
|
+
attr_reader duration_in_months: Float?
|
|
293
|
+
|
|
294
|
+
def duration_in_months=: (Float) -> Float
|
|
295
|
+
|
|
296
|
+
attr_reader name: String?
|
|
297
|
+
|
|
298
|
+
def name=: (String) -> String
|
|
299
|
+
|
|
300
|
+
attr_reader percent_off: Float?
|
|
301
|
+
|
|
302
|
+
def percent_off=: (Float) -> Float
|
|
303
|
+
|
|
304
|
+
def initialize: (
|
|
305
|
+
?amounts_off: ::Array[Stigg::V1::SubscriptionCreateParams::AppliedCoupon::Discount::AmountsOff]?,
|
|
306
|
+
?description: String,
|
|
307
|
+
?duration_in_months: Float,
|
|
308
|
+
?name: String,
|
|
309
|
+
?percent_off: Float
|
|
310
|
+
) -> void
|
|
311
|
+
|
|
312
|
+
def to_hash: -> {
|
|
313
|
+
amounts_off: ::Array[Stigg::V1::SubscriptionCreateParams::AppliedCoupon::Discount::AmountsOff]?,
|
|
314
|
+
description: String,
|
|
315
|
+
duration_in_months: Float,
|
|
316
|
+
name: String,
|
|
317
|
+
percent_off: Float
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
type amounts_off =
|
|
321
|
+
{
|
|
322
|
+
amount: Float,
|
|
323
|
+
currency: Stigg::Models::V1::SubscriptionCreateParams::AppliedCoupon::Discount::AmountsOff::currency
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
class AmountsOff < Stigg::Internal::Type::BaseModel
|
|
327
|
+
attr_accessor amount: Float
|
|
328
|
+
|
|
329
|
+
attr_accessor currency: Stigg::Models::V1::SubscriptionCreateParams::AppliedCoupon::Discount::AmountsOff::currency
|
|
330
|
+
|
|
331
|
+
def initialize: (
|
|
332
|
+
amount: Float,
|
|
333
|
+
currency: Stigg::Models::V1::SubscriptionCreateParams::AppliedCoupon::Discount::AmountsOff::currency
|
|
334
|
+
) -> void
|
|
335
|
+
|
|
336
|
+
def to_hash: -> {
|
|
337
|
+
amount: Float,
|
|
338
|
+
currency: Stigg::Models::V1::SubscriptionCreateParams::AppliedCoupon::Discount::AmountsOff::currency
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
type currency =
|
|
342
|
+
:usd
|
|
343
|
+
| :aed
|
|
344
|
+
| :all
|
|
345
|
+
| :amd
|
|
346
|
+
| :ang
|
|
347
|
+
| :aud
|
|
348
|
+
| :awg
|
|
349
|
+
| :azn
|
|
350
|
+
| :bam
|
|
351
|
+
| :bbd
|
|
352
|
+
| :bdt
|
|
353
|
+
| :bgn
|
|
354
|
+
| :bif
|
|
355
|
+
| :bmd
|
|
356
|
+
| :bnd
|
|
357
|
+
| :bsd
|
|
358
|
+
| :bwp
|
|
359
|
+
| :byn
|
|
360
|
+
| :bzd
|
|
361
|
+
| :brl
|
|
362
|
+
| :cad
|
|
363
|
+
| :cdf
|
|
364
|
+
| :chf
|
|
365
|
+
| :cny
|
|
366
|
+
| :czk
|
|
367
|
+
| :dkk
|
|
368
|
+
| :dop
|
|
369
|
+
| :dzd
|
|
370
|
+
| :egp
|
|
371
|
+
| :etb
|
|
372
|
+
| :eur
|
|
373
|
+
| :fjd
|
|
374
|
+
| :gbp
|
|
375
|
+
| :gel
|
|
376
|
+
| :gip
|
|
377
|
+
| :gmd
|
|
378
|
+
| :gyd
|
|
379
|
+
| :hkd
|
|
380
|
+
| :hrk
|
|
381
|
+
| :htg
|
|
382
|
+
| :idr
|
|
383
|
+
| :ils
|
|
384
|
+
| :inr
|
|
385
|
+
| :isk
|
|
386
|
+
| :jmd
|
|
387
|
+
| :jpy
|
|
388
|
+
| :kes
|
|
389
|
+
| :kgs
|
|
390
|
+
| :khr
|
|
391
|
+
| :kmf
|
|
392
|
+
| :krw
|
|
393
|
+
| :kyd
|
|
394
|
+
| :kzt
|
|
395
|
+
| :lbp
|
|
396
|
+
| :lkr
|
|
397
|
+
| :lrd
|
|
398
|
+
| :lsl
|
|
399
|
+
| :mad
|
|
400
|
+
| :mdl
|
|
401
|
+
| :mga
|
|
402
|
+
| :mkd
|
|
403
|
+
| :mmk
|
|
404
|
+
| :mnt
|
|
405
|
+
| :mop
|
|
406
|
+
| :mro
|
|
407
|
+
| :mvr
|
|
408
|
+
| :mwk
|
|
409
|
+
| :mxn
|
|
410
|
+
| :myr
|
|
411
|
+
| :mzn
|
|
412
|
+
| :nad
|
|
413
|
+
| :ngn
|
|
414
|
+
| :nok
|
|
415
|
+
| :npr
|
|
416
|
+
| :nzd
|
|
417
|
+
| :pgk
|
|
418
|
+
| :php
|
|
419
|
+
| :pkr
|
|
420
|
+
| :pln
|
|
421
|
+
| :qar
|
|
422
|
+
| :ron
|
|
423
|
+
| :rsd
|
|
424
|
+
| :rub
|
|
425
|
+
| :rwf
|
|
426
|
+
| :sar
|
|
427
|
+
| :sbd
|
|
428
|
+
| :scr
|
|
429
|
+
| :sek
|
|
430
|
+
| :sgd
|
|
431
|
+
| :sle
|
|
432
|
+
| :sll
|
|
433
|
+
| :sos
|
|
434
|
+
| :szl
|
|
435
|
+
| :thb
|
|
436
|
+
| :tjs
|
|
437
|
+
| :top
|
|
438
|
+
| :try
|
|
439
|
+
| :ttd
|
|
440
|
+
| :tzs
|
|
441
|
+
| :uah
|
|
442
|
+
| :uzs
|
|
443
|
+
| :vnd
|
|
444
|
+
| :vuv
|
|
445
|
+
| :wst
|
|
446
|
+
| :xaf
|
|
447
|
+
| :xcd
|
|
448
|
+
| :yer
|
|
449
|
+
| :zar
|
|
450
|
+
| :zmw
|
|
451
|
+
| :clp
|
|
452
|
+
| :djf
|
|
453
|
+
| :gnf
|
|
454
|
+
| :ugx
|
|
455
|
+
| :pyg
|
|
456
|
+
| :xof
|
|
457
|
+
| :xpf
|
|
458
|
+
|
|
459
|
+
module Currency
|
|
460
|
+
extend Stigg::Internal::Type::Enum
|
|
461
|
+
|
|
462
|
+
USD: :usd
|
|
463
|
+
AED: :aed
|
|
464
|
+
ALL: :all
|
|
465
|
+
AMD: :amd
|
|
466
|
+
ANG: :ang
|
|
467
|
+
AUD: :aud
|
|
468
|
+
AWG: :awg
|
|
469
|
+
AZN: :azn
|
|
470
|
+
BAM: :bam
|
|
471
|
+
BBD: :bbd
|
|
472
|
+
BDT: :bdt
|
|
473
|
+
BGN: :bgn
|
|
474
|
+
BIF: :bif
|
|
475
|
+
BMD: :bmd
|
|
476
|
+
BND: :bnd
|
|
477
|
+
BSD: :bsd
|
|
478
|
+
BWP: :bwp
|
|
479
|
+
BYN: :byn
|
|
480
|
+
BZD: :bzd
|
|
481
|
+
BRL: :brl
|
|
482
|
+
CAD: :cad
|
|
483
|
+
CDF: :cdf
|
|
484
|
+
CHF: :chf
|
|
485
|
+
CNY: :cny
|
|
486
|
+
CZK: :czk
|
|
487
|
+
DKK: :dkk
|
|
488
|
+
DOP: :dop
|
|
489
|
+
DZD: :dzd
|
|
490
|
+
EGP: :egp
|
|
491
|
+
ETB: :etb
|
|
492
|
+
EUR: :eur
|
|
493
|
+
FJD: :fjd
|
|
494
|
+
GBP: :gbp
|
|
495
|
+
GEL: :gel
|
|
496
|
+
GIP: :gip
|
|
497
|
+
GMD: :gmd
|
|
498
|
+
GYD: :gyd
|
|
499
|
+
HKD: :hkd
|
|
500
|
+
HRK: :hrk
|
|
501
|
+
HTG: :htg
|
|
502
|
+
IDR: :idr
|
|
503
|
+
ILS: :ils
|
|
504
|
+
INR: :inr
|
|
505
|
+
ISK: :isk
|
|
506
|
+
JMD: :jmd
|
|
507
|
+
JPY: :jpy
|
|
508
|
+
KES: :kes
|
|
509
|
+
KGS: :kgs
|
|
510
|
+
KHR: :khr
|
|
511
|
+
KMF: :kmf
|
|
512
|
+
KRW: :krw
|
|
513
|
+
KYD: :kyd
|
|
514
|
+
KZT: :kzt
|
|
515
|
+
LBP: :lbp
|
|
516
|
+
LKR: :lkr
|
|
517
|
+
LRD: :lrd
|
|
518
|
+
LSL: :lsl
|
|
519
|
+
MAD: :mad
|
|
520
|
+
MDL: :mdl
|
|
521
|
+
MGA: :mga
|
|
522
|
+
MKD: :mkd
|
|
523
|
+
MMK: :mmk
|
|
524
|
+
MNT: :mnt
|
|
525
|
+
MOP: :mop
|
|
526
|
+
MRO: :mro
|
|
527
|
+
MVR: :mvr
|
|
528
|
+
MWK: :mwk
|
|
529
|
+
MXN: :mxn
|
|
530
|
+
MYR: :myr
|
|
531
|
+
MZN: :mzn
|
|
532
|
+
NAD: :nad
|
|
533
|
+
NGN: :ngn
|
|
534
|
+
NOK: :nok
|
|
535
|
+
NPR: :npr
|
|
536
|
+
NZD: :nzd
|
|
537
|
+
PGK: :pgk
|
|
538
|
+
PHP: :php
|
|
539
|
+
PKR: :pkr
|
|
540
|
+
PLN: :pln
|
|
541
|
+
QAR: :qar
|
|
542
|
+
RON: :ron
|
|
543
|
+
RSD: :rsd
|
|
544
|
+
RUB: :rub
|
|
545
|
+
RWF: :rwf
|
|
546
|
+
SAR: :sar
|
|
547
|
+
SBD: :sbd
|
|
548
|
+
SCR: :scr
|
|
549
|
+
SEK: :sek
|
|
550
|
+
SGD: :sgd
|
|
551
|
+
SLE: :sle
|
|
552
|
+
SLL: :sll
|
|
553
|
+
SOS: :sos
|
|
554
|
+
SZL: :szl
|
|
555
|
+
THB: :thb
|
|
556
|
+
TJS: :tjs
|
|
557
|
+
TOP: :top
|
|
558
|
+
TRY: :try
|
|
559
|
+
TTD: :ttd
|
|
560
|
+
TZS: :tzs
|
|
561
|
+
UAH: :uah
|
|
562
|
+
UZS: :uzs
|
|
563
|
+
VND: :vnd
|
|
564
|
+
VUV: :vuv
|
|
565
|
+
WST: :wst
|
|
566
|
+
XAF: :xaf
|
|
567
|
+
XCD: :xcd
|
|
568
|
+
YER: :yer
|
|
569
|
+
ZAR: :zar
|
|
570
|
+
ZMW: :zmw
|
|
571
|
+
CLP: :clp
|
|
572
|
+
DJF: :djf
|
|
573
|
+
GNF: :gnf
|
|
574
|
+
UGX: :ugx
|
|
575
|
+
PYG: :pyg
|
|
576
|
+
XOF: :xof
|
|
577
|
+
XPF: :xpf
|
|
578
|
+
|
|
579
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateParams::AppliedCoupon::Discount::AmountsOff::currency]
|
|
580
|
+
end
|
|
581
|
+
end
|
|
582
|
+
end
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
type billing_information =
|
|
586
|
+
{
|
|
587
|
+
billing_address: Stigg::V1::SubscriptionCreateParams::BillingInformation::BillingAddress,
|
|
588
|
+
charge_on_behalf_of_account: String?,
|
|
589
|
+
integration_id: String?,
|
|
590
|
+
invoice_days_until_due: Float,
|
|
591
|
+
is_backdated: bool,
|
|
592
|
+
is_invoice_paid: bool,
|
|
593
|
+
metadata: ::Hash[Symbol, String],
|
|
594
|
+
proration_behavior: Stigg::Models::V1::SubscriptionCreateParams::BillingInformation::proration_behavior,
|
|
595
|
+
tax_ids: ::Array[Stigg::V1::SubscriptionCreateParams::BillingInformation::TaxID],
|
|
596
|
+
tax_percentage: Float,
|
|
597
|
+
tax_rate_ids: ::Array[String]
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
class BillingInformation < Stigg::Internal::Type::BaseModel
|
|
601
|
+
attr_reader billing_address: Stigg::V1::SubscriptionCreateParams::BillingInformation::BillingAddress?
|
|
602
|
+
|
|
603
|
+
def billing_address=: (
|
|
604
|
+
Stigg::V1::SubscriptionCreateParams::BillingInformation::BillingAddress
|
|
605
|
+
) -> Stigg::V1::SubscriptionCreateParams::BillingInformation::BillingAddress
|
|
606
|
+
|
|
607
|
+
attr_accessor charge_on_behalf_of_account: String?
|
|
608
|
+
|
|
609
|
+
attr_accessor integration_id: String?
|
|
610
|
+
|
|
611
|
+
attr_reader invoice_days_until_due: Float?
|
|
612
|
+
|
|
613
|
+
def invoice_days_until_due=: (Float) -> Float
|
|
614
|
+
|
|
615
|
+
attr_reader is_backdated: bool?
|
|
616
|
+
|
|
617
|
+
def is_backdated=: (bool) -> bool
|
|
618
|
+
|
|
619
|
+
attr_reader is_invoice_paid: bool?
|
|
620
|
+
|
|
621
|
+
def is_invoice_paid=: (bool) -> bool
|
|
622
|
+
|
|
623
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
624
|
+
|
|
625
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
626
|
+
|
|
627
|
+
attr_reader proration_behavior: Stigg::Models::V1::SubscriptionCreateParams::BillingInformation::proration_behavior?
|
|
628
|
+
|
|
629
|
+
def proration_behavior=: (
|
|
630
|
+
Stigg::Models::V1::SubscriptionCreateParams::BillingInformation::proration_behavior
|
|
631
|
+
) -> Stigg::Models::V1::SubscriptionCreateParams::BillingInformation::proration_behavior
|
|
632
|
+
|
|
633
|
+
attr_reader tax_ids: ::Array[Stigg::V1::SubscriptionCreateParams::BillingInformation::TaxID]?
|
|
634
|
+
|
|
635
|
+
def tax_ids=: (
|
|
636
|
+
::Array[Stigg::V1::SubscriptionCreateParams::BillingInformation::TaxID]
|
|
637
|
+
) -> ::Array[Stigg::V1::SubscriptionCreateParams::BillingInformation::TaxID]
|
|
638
|
+
|
|
639
|
+
attr_reader tax_percentage: Float?
|
|
640
|
+
|
|
641
|
+
def tax_percentage=: (Float) -> Float
|
|
642
|
+
|
|
643
|
+
attr_reader tax_rate_ids: ::Array[String]?
|
|
644
|
+
|
|
645
|
+
def tax_rate_ids=: (::Array[String]) -> ::Array[String]
|
|
646
|
+
|
|
647
|
+
def initialize: (
|
|
648
|
+
?billing_address: Stigg::V1::SubscriptionCreateParams::BillingInformation::BillingAddress,
|
|
649
|
+
?charge_on_behalf_of_account: String?,
|
|
650
|
+
?integration_id: String?,
|
|
651
|
+
?invoice_days_until_due: Float,
|
|
652
|
+
?is_backdated: bool,
|
|
653
|
+
?is_invoice_paid: bool,
|
|
654
|
+
?metadata: ::Hash[Symbol, String],
|
|
655
|
+
?proration_behavior: Stigg::Models::V1::SubscriptionCreateParams::BillingInformation::proration_behavior,
|
|
656
|
+
?tax_ids: ::Array[Stigg::V1::SubscriptionCreateParams::BillingInformation::TaxID],
|
|
657
|
+
?tax_percentage: Float,
|
|
658
|
+
?tax_rate_ids: ::Array[String]
|
|
659
|
+
) -> void
|
|
660
|
+
|
|
661
|
+
def to_hash: -> {
|
|
662
|
+
billing_address: Stigg::V1::SubscriptionCreateParams::BillingInformation::BillingAddress,
|
|
663
|
+
charge_on_behalf_of_account: String?,
|
|
664
|
+
integration_id: String?,
|
|
665
|
+
invoice_days_until_due: Float,
|
|
666
|
+
is_backdated: bool,
|
|
667
|
+
is_invoice_paid: bool,
|
|
668
|
+
metadata: ::Hash[Symbol, String],
|
|
669
|
+
proration_behavior: Stigg::Models::V1::SubscriptionCreateParams::BillingInformation::proration_behavior,
|
|
670
|
+
tax_ids: ::Array[Stigg::V1::SubscriptionCreateParams::BillingInformation::TaxID],
|
|
671
|
+
tax_percentage: Float,
|
|
672
|
+
tax_rate_ids: ::Array[String]
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
type billing_address =
|
|
676
|
+
{
|
|
677
|
+
city: String,
|
|
678
|
+
country: String,
|
|
679
|
+
:line1 => String,
|
|
680
|
+
:line2 => String,
|
|
681
|
+
postal_code: String,
|
|
682
|
+
state: String
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
class BillingAddress < Stigg::Internal::Type::BaseModel
|
|
686
|
+
attr_reader city: String?
|
|
687
|
+
|
|
688
|
+
def city=: (String) -> String
|
|
689
|
+
|
|
690
|
+
attr_reader country: String?
|
|
691
|
+
|
|
692
|
+
def country=: (String) -> String
|
|
693
|
+
|
|
694
|
+
attr_reader line1: String?
|
|
695
|
+
|
|
696
|
+
def line1=: (String) -> String
|
|
697
|
+
|
|
698
|
+
attr_reader line2: String?
|
|
699
|
+
|
|
700
|
+
def line2=: (String) -> String
|
|
701
|
+
|
|
702
|
+
attr_reader postal_code: String?
|
|
703
|
+
|
|
704
|
+
def postal_code=: (String) -> String
|
|
705
|
+
|
|
706
|
+
attr_reader state: String?
|
|
707
|
+
|
|
708
|
+
def state=: (String) -> String
|
|
709
|
+
|
|
710
|
+
def initialize: (
|
|
711
|
+
?city: String,
|
|
712
|
+
?country: String,
|
|
713
|
+
?line1: String,
|
|
714
|
+
?line2: String,
|
|
715
|
+
?postal_code: String,
|
|
716
|
+
?state: String
|
|
717
|
+
) -> void
|
|
718
|
+
|
|
719
|
+
def to_hash: -> {
|
|
720
|
+
city: String,
|
|
721
|
+
country: String,
|
|
722
|
+
:line1 => String,
|
|
723
|
+
:line2 => String,
|
|
724
|
+
postal_code: String,
|
|
725
|
+
state: String
|
|
726
|
+
}
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
type proration_behavior =
|
|
730
|
+
:INVOICE_IMMEDIATELY | :CREATE_PRORATIONS | :NONE
|
|
731
|
+
|
|
732
|
+
module ProrationBehavior
|
|
733
|
+
extend Stigg::Internal::Type::Enum
|
|
734
|
+
|
|
735
|
+
INVOICE_IMMEDIATELY: :INVOICE_IMMEDIATELY
|
|
736
|
+
CREATE_PRORATIONS: :CREATE_PRORATIONS
|
|
737
|
+
NONE: :NONE
|
|
738
|
+
|
|
739
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateParams::BillingInformation::proration_behavior]
|
|
740
|
+
end
|
|
741
|
+
|
|
742
|
+
type tax_id = { type: String, value: String }
|
|
743
|
+
|
|
744
|
+
class TaxID < Stigg::Internal::Type::BaseModel
|
|
745
|
+
attr_accessor type: String
|
|
746
|
+
|
|
747
|
+
attr_accessor value: String
|
|
748
|
+
|
|
749
|
+
def initialize: (type: String, value: String) -> void
|
|
750
|
+
|
|
751
|
+
def to_hash: -> { type: String, value: String }
|
|
752
|
+
end
|
|
753
|
+
end
|
|
754
|
+
|
|
87
755
|
type billing_period = :MONTHLY | :ANNUALLY
|
|
88
756
|
|
|
89
757
|
module BillingPeriod
|
|
@@ -95,6 +763,56 @@ module Stigg
|
|
|
95
763
|
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateParams::billing_period]
|
|
96
764
|
end
|
|
97
765
|
|
|
766
|
+
type budget = { has_soft_limit: bool, limit: Float }
|
|
767
|
+
|
|
768
|
+
class Budget < Stigg::Internal::Type::BaseModel
|
|
769
|
+
attr_accessor has_soft_limit: bool
|
|
770
|
+
|
|
771
|
+
attr_accessor limit: Float
|
|
772
|
+
|
|
773
|
+
def initialize: (has_soft_limit: bool, limit: Float) -> void
|
|
774
|
+
|
|
775
|
+
def to_hash: -> { has_soft_limit: bool, limit: Float }
|
|
776
|
+
end
|
|
777
|
+
|
|
778
|
+
type charge =
|
|
779
|
+
{
|
|
780
|
+
id: String,
|
|
781
|
+
quantity: Float,
|
|
782
|
+
type: Stigg::Models::V1::SubscriptionCreateParams::Charge::type_
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
class Charge < Stigg::Internal::Type::BaseModel
|
|
786
|
+
attr_accessor id: String
|
|
787
|
+
|
|
788
|
+
attr_accessor quantity: Float
|
|
789
|
+
|
|
790
|
+
attr_accessor type: Stigg::Models::V1::SubscriptionCreateParams::Charge::type_
|
|
791
|
+
|
|
792
|
+
def initialize: (
|
|
793
|
+
id: String,
|
|
794
|
+
quantity: Float,
|
|
795
|
+
type: Stigg::Models::V1::SubscriptionCreateParams::Charge::type_
|
|
796
|
+
) -> void
|
|
797
|
+
|
|
798
|
+
def to_hash: -> {
|
|
799
|
+
id: String,
|
|
800
|
+
quantity: Float,
|
|
801
|
+
type: Stigg::Models::V1::SubscriptionCreateParams::Charge::type_
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
type type_ = :FEATURE | :CREDIT
|
|
805
|
+
|
|
806
|
+
module Type
|
|
807
|
+
extend Stigg::Internal::Type::Enum
|
|
808
|
+
|
|
809
|
+
FEATURE: :FEATURE
|
|
810
|
+
CREDIT: :CREDIT
|
|
811
|
+
|
|
812
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateParams::Charge::type_]
|
|
813
|
+
end
|
|
814
|
+
end
|
|
815
|
+
|
|
98
816
|
type checkout_options =
|
|
99
817
|
{
|
|
100
818
|
cancel_url: String,
|
|
@@ -150,6 +868,1312 @@ module Stigg
|
|
|
150
868
|
}
|
|
151
869
|
end
|
|
152
870
|
|
|
871
|
+
type minimum_spend =
|
|
872
|
+
{
|
|
873
|
+
minimum: Stigg::V1::SubscriptionCreateParams::MinimumSpend::Minimum?
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
class MinimumSpend < Stigg::Internal::Type::BaseModel
|
|
877
|
+
attr_accessor minimum: Stigg::V1::SubscriptionCreateParams::MinimumSpend::Minimum?
|
|
878
|
+
|
|
879
|
+
def initialize: (
|
|
880
|
+
?minimum: Stigg::V1::SubscriptionCreateParams::MinimumSpend::Minimum?
|
|
881
|
+
) -> void
|
|
882
|
+
|
|
883
|
+
def to_hash: -> {
|
|
884
|
+
minimum: Stigg::V1::SubscriptionCreateParams::MinimumSpend::Minimum?
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
type minimum =
|
|
888
|
+
{
|
|
889
|
+
amount: Float,
|
|
890
|
+
billing_country_code: String?,
|
|
891
|
+
currency: Stigg::Models::V1::SubscriptionCreateParams::MinimumSpend::Minimum::currency
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
class Minimum < Stigg::Internal::Type::BaseModel
|
|
895
|
+
attr_reader amount: Float?
|
|
896
|
+
|
|
897
|
+
def amount=: (Float) -> Float
|
|
898
|
+
|
|
899
|
+
attr_accessor billing_country_code: String?
|
|
900
|
+
|
|
901
|
+
attr_reader currency: Stigg::Models::V1::SubscriptionCreateParams::MinimumSpend::Minimum::currency?
|
|
902
|
+
|
|
903
|
+
def currency=: (
|
|
904
|
+
Stigg::Models::V1::SubscriptionCreateParams::MinimumSpend::Minimum::currency
|
|
905
|
+
) -> Stigg::Models::V1::SubscriptionCreateParams::MinimumSpend::Minimum::currency
|
|
906
|
+
|
|
907
|
+
def initialize: (
|
|
908
|
+
?amount: Float,
|
|
909
|
+
?billing_country_code: String?,
|
|
910
|
+
?currency: Stigg::Models::V1::SubscriptionCreateParams::MinimumSpend::Minimum::currency
|
|
911
|
+
) -> void
|
|
912
|
+
|
|
913
|
+
def to_hash: -> {
|
|
914
|
+
amount: Float,
|
|
915
|
+
billing_country_code: String?,
|
|
916
|
+
currency: Stigg::Models::V1::SubscriptionCreateParams::MinimumSpend::Minimum::currency
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
type currency =
|
|
920
|
+
:usd
|
|
921
|
+
| :aed
|
|
922
|
+
| :all
|
|
923
|
+
| :amd
|
|
924
|
+
| :ang
|
|
925
|
+
| :aud
|
|
926
|
+
| :awg
|
|
927
|
+
| :azn
|
|
928
|
+
| :bam
|
|
929
|
+
| :bbd
|
|
930
|
+
| :bdt
|
|
931
|
+
| :bgn
|
|
932
|
+
| :bif
|
|
933
|
+
| :bmd
|
|
934
|
+
| :bnd
|
|
935
|
+
| :bsd
|
|
936
|
+
| :bwp
|
|
937
|
+
| :byn
|
|
938
|
+
| :bzd
|
|
939
|
+
| :brl
|
|
940
|
+
| :cad
|
|
941
|
+
| :cdf
|
|
942
|
+
| :chf
|
|
943
|
+
| :cny
|
|
944
|
+
| :czk
|
|
945
|
+
| :dkk
|
|
946
|
+
| :dop
|
|
947
|
+
| :dzd
|
|
948
|
+
| :egp
|
|
949
|
+
| :etb
|
|
950
|
+
| :eur
|
|
951
|
+
| :fjd
|
|
952
|
+
| :gbp
|
|
953
|
+
| :gel
|
|
954
|
+
| :gip
|
|
955
|
+
| :gmd
|
|
956
|
+
| :gyd
|
|
957
|
+
| :hkd
|
|
958
|
+
| :hrk
|
|
959
|
+
| :htg
|
|
960
|
+
| :idr
|
|
961
|
+
| :ils
|
|
962
|
+
| :inr
|
|
963
|
+
| :isk
|
|
964
|
+
| :jmd
|
|
965
|
+
| :jpy
|
|
966
|
+
| :kes
|
|
967
|
+
| :kgs
|
|
968
|
+
| :khr
|
|
969
|
+
| :kmf
|
|
970
|
+
| :krw
|
|
971
|
+
| :kyd
|
|
972
|
+
| :kzt
|
|
973
|
+
| :lbp
|
|
974
|
+
| :lkr
|
|
975
|
+
| :lrd
|
|
976
|
+
| :lsl
|
|
977
|
+
| :mad
|
|
978
|
+
| :mdl
|
|
979
|
+
| :mga
|
|
980
|
+
| :mkd
|
|
981
|
+
| :mmk
|
|
982
|
+
| :mnt
|
|
983
|
+
| :mop
|
|
984
|
+
| :mro
|
|
985
|
+
| :mvr
|
|
986
|
+
| :mwk
|
|
987
|
+
| :mxn
|
|
988
|
+
| :myr
|
|
989
|
+
| :mzn
|
|
990
|
+
| :nad
|
|
991
|
+
| :ngn
|
|
992
|
+
| :nok
|
|
993
|
+
| :npr
|
|
994
|
+
| :nzd
|
|
995
|
+
| :pgk
|
|
996
|
+
| :php
|
|
997
|
+
| :pkr
|
|
998
|
+
| :pln
|
|
999
|
+
| :qar
|
|
1000
|
+
| :ron
|
|
1001
|
+
| :rsd
|
|
1002
|
+
| :rub
|
|
1003
|
+
| :rwf
|
|
1004
|
+
| :sar
|
|
1005
|
+
| :sbd
|
|
1006
|
+
| :scr
|
|
1007
|
+
| :sek
|
|
1008
|
+
| :sgd
|
|
1009
|
+
| :sle
|
|
1010
|
+
| :sll
|
|
1011
|
+
| :sos
|
|
1012
|
+
| :szl
|
|
1013
|
+
| :thb
|
|
1014
|
+
| :tjs
|
|
1015
|
+
| :top
|
|
1016
|
+
| :try
|
|
1017
|
+
| :ttd
|
|
1018
|
+
| :tzs
|
|
1019
|
+
| :uah
|
|
1020
|
+
| :uzs
|
|
1021
|
+
| :vnd
|
|
1022
|
+
| :vuv
|
|
1023
|
+
| :wst
|
|
1024
|
+
| :xaf
|
|
1025
|
+
| :xcd
|
|
1026
|
+
| :yer
|
|
1027
|
+
| :zar
|
|
1028
|
+
| :zmw
|
|
1029
|
+
| :clp
|
|
1030
|
+
| :djf
|
|
1031
|
+
| :gnf
|
|
1032
|
+
| :ugx
|
|
1033
|
+
| :pyg
|
|
1034
|
+
| :xof
|
|
1035
|
+
| :xpf
|
|
1036
|
+
|
|
1037
|
+
module Currency
|
|
1038
|
+
extend Stigg::Internal::Type::Enum
|
|
1039
|
+
|
|
1040
|
+
USD: :usd
|
|
1041
|
+
AED: :aed
|
|
1042
|
+
ALL: :all
|
|
1043
|
+
AMD: :amd
|
|
1044
|
+
ANG: :ang
|
|
1045
|
+
AUD: :aud
|
|
1046
|
+
AWG: :awg
|
|
1047
|
+
AZN: :azn
|
|
1048
|
+
BAM: :bam
|
|
1049
|
+
BBD: :bbd
|
|
1050
|
+
BDT: :bdt
|
|
1051
|
+
BGN: :bgn
|
|
1052
|
+
BIF: :bif
|
|
1053
|
+
BMD: :bmd
|
|
1054
|
+
BND: :bnd
|
|
1055
|
+
BSD: :bsd
|
|
1056
|
+
BWP: :bwp
|
|
1057
|
+
BYN: :byn
|
|
1058
|
+
BZD: :bzd
|
|
1059
|
+
BRL: :brl
|
|
1060
|
+
CAD: :cad
|
|
1061
|
+
CDF: :cdf
|
|
1062
|
+
CHF: :chf
|
|
1063
|
+
CNY: :cny
|
|
1064
|
+
CZK: :czk
|
|
1065
|
+
DKK: :dkk
|
|
1066
|
+
DOP: :dop
|
|
1067
|
+
DZD: :dzd
|
|
1068
|
+
EGP: :egp
|
|
1069
|
+
ETB: :etb
|
|
1070
|
+
EUR: :eur
|
|
1071
|
+
FJD: :fjd
|
|
1072
|
+
GBP: :gbp
|
|
1073
|
+
GEL: :gel
|
|
1074
|
+
GIP: :gip
|
|
1075
|
+
GMD: :gmd
|
|
1076
|
+
GYD: :gyd
|
|
1077
|
+
HKD: :hkd
|
|
1078
|
+
HRK: :hrk
|
|
1079
|
+
HTG: :htg
|
|
1080
|
+
IDR: :idr
|
|
1081
|
+
ILS: :ils
|
|
1082
|
+
INR: :inr
|
|
1083
|
+
ISK: :isk
|
|
1084
|
+
JMD: :jmd
|
|
1085
|
+
JPY: :jpy
|
|
1086
|
+
KES: :kes
|
|
1087
|
+
KGS: :kgs
|
|
1088
|
+
KHR: :khr
|
|
1089
|
+
KMF: :kmf
|
|
1090
|
+
KRW: :krw
|
|
1091
|
+
KYD: :kyd
|
|
1092
|
+
KZT: :kzt
|
|
1093
|
+
LBP: :lbp
|
|
1094
|
+
LKR: :lkr
|
|
1095
|
+
LRD: :lrd
|
|
1096
|
+
LSL: :lsl
|
|
1097
|
+
MAD: :mad
|
|
1098
|
+
MDL: :mdl
|
|
1099
|
+
MGA: :mga
|
|
1100
|
+
MKD: :mkd
|
|
1101
|
+
MMK: :mmk
|
|
1102
|
+
MNT: :mnt
|
|
1103
|
+
MOP: :mop
|
|
1104
|
+
MRO: :mro
|
|
1105
|
+
MVR: :mvr
|
|
1106
|
+
MWK: :mwk
|
|
1107
|
+
MXN: :mxn
|
|
1108
|
+
MYR: :myr
|
|
1109
|
+
MZN: :mzn
|
|
1110
|
+
NAD: :nad
|
|
1111
|
+
NGN: :ngn
|
|
1112
|
+
NOK: :nok
|
|
1113
|
+
NPR: :npr
|
|
1114
|
+
NZD: :nzd
|
|
1115
|
+
PGK: :pgk
|
|
1116
|
+
PHP: :php
|
|
1117
|
+
PKR: :pkr
|
|
1118
|
+
PLN: :pln
|
|
1119
|
+
QAR: :qar
|
|
1120
|
+
RON: :ron
|
|
1121
|
+
RSD: :rsd
|
|
1122
|
+
RUB: :rub
|
|
1123
|
+
RWF: :rwf
|
|
1124
|
+
SAR: :sar
|
|
1125
|
+
SBD: :sbd
|
|
1126
|
+
SCR: :scr
|
|
1127
|
+
SEK: :sek
|
|
1128
|
+
SGD: :sgd
|
|
1129
|
+
SLE: :sle
|
|
1130
|
+
SLL: :sll
|
|
1131
|
+
SOS: :sos
|
|
1132
|
+
SZL: :szl
|
|
1133
|
+
THB: :thb
|
|
1134
|
+
TJS: :tjs
|
|
1135
|
+
TOP: :top
|
|
1136
|
+
TRY: :try
|
|
1137
|
+
TTD: :ttd
|
|
1138
|
+
TZS: :tzs
|
|
1139
|
+
UAH: :uah
|
|
1140
|
+
UZS: :uzs
|
|
1141
|
+
VND: :vnd
|
|
1142
|
+
VUV: :vuv
|
|
1143
|
+
WST: :wst
|
|
1144
|
+
XAF: :xaf
|
|
1145
|
+
XCD: :xcd
|
|
1146
|
+
YER: :yer
|
|
1147
|
+
ZAR: :zar
|
|
1148
|
+
ZMW: :zmw
|
|
1149
|
+
CLP: :clp
|
|
1150
|
+
DJF: :djf
|
|
1151
|
+
GNF: :gnf
|
|
1152
|
+
UGX: :ugx
|
|
1153
|
+
PYG: :pyg
|
|
1154
|
+
XOF: :xof
|
|
1155
|
+
XPF: :xpf
|
|
1156
|
+
|
|
1157
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateParams::MinimumSpend::Minimum::currency]
|
|
1158
|
+
end
|
|
1159
|
+
end
|
|
1160
|
+
end
|
|
1161
|
+
|
|
1162
|
+
type payment_collection_method = :CHARGE | :INVOICE | :NONE
|
|
1163
|
+
|
|
1164
|
+
module PaymentCollectionMethod
|
|
1165
|
+
extend Stigg::Internal::Type::Enum
|
|
1166
|
+
|
|
1167
|
+
CHARGE: :CHARGE
|
|
1168
|
+
INVOICE: :INVOICE
|
|
1169
|
+
NONE: :NONE
|
|
1170
|
+
|
|
1171
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateParams::payment_collection_method]
|
|
1172
|
+
end
|
|
1173
|
+
|
|
1174
|
+
type price_override =
|
|
1175
|
+
{
|
|
1176
|
+
addon_id: String?,
|
|
1177
|
+
base_charge: bool,
|
|
1178
|
+
block_size: Float,
|
|
1179
|
+
credit_grant_cadence: Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::credit_grant_cadence,
|
|
1180
|
+
credit_rate: Stigg::V1::SubscriptionCreateParams::PriceOverride::CreditRate,
|
|
1181
|
+
feature_id: String?,
|
|
1182
|
+
price: Stigg::V1::SubscriptionCreateParams::PriceOverride::Price,
|
|
1183
|
+
tiers: ::Array[Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier]
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
class PriceOverride < Stigg::Internal::Type::BaseModel
|
|
1187
|
+
attr_accessor addon_id: String?
|
|
1188
|
+
|
|
1189
|
+
attr_reader base_charge: bool?
|
|
1190
|
+
|
|
1191
|
+
def base_charge=: (bool) -> bool
|
|
1192
|
+
|
|
1193
|
+
attr_reader block_size: Float?
|
|
1194
|
+
|
|
1195
|
+
def block_size=: (Float) -> Float
|
|
1196
|
+
|
|
1197
|
+
attr_reader credit_grant_cadence: Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::credit_grant_cadence?
|
|
1198
|
+
|
|
1199
|
+
def credit_grant_cadence=: (
|
|
1200
|
+
Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::credit_grant_cadence
|
|
1201
|
+
) -> Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::credit_grant_cadence
|
|
1202
|
+
|
|
1203
|
+
attr_reader credit_rate: Stigg::V1::SubscriptionCreateParams::PriceOverride::CreditRate?
|
|
1204
|
+
|
|
1205
|
+
def credit_rate=: (
|
|
1206
|
+
Stigg::V1::SubscriptionCreateParams::PriceOverride::CreditRate
|
|
1207
|
+
) -> Stigg::V1::SubscriptionCreateParams::PriceOverride::CreditRate
|
|
1208
|
+
|
|
1209
|
+
attr_accessor feature_id: String?
|
|
1210
|
+
|
|
1211
|
+
attr_reader price: Stigg::V1::SubscriptionCreateParams::PriceOverride::Price?
|
|
1212
|
+
|
|
1213
|
+
def price=: (
|
|
1214
|
+
Stigg::V1::SubscriptionCreateParams::PriceOverride::Price
|
|
1215
|
+
) -> Stigg::V1::SubscriptionCreateParams::PriceOverride::Price
|
|
1216
|
+
|
|
1217
|
+
attr_reader tiers: ::Array[Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier]?
|
|
1218
|
+
|
|
1219
|
+
def tiers=: (
|
|
1220
|
+
::Array[Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier]
|
|
1221
|
+
) -> ::Array[Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier]
|
|
1222
|
+
|
|
1223
|
+
def initialize: (
|
|
1224
|
+
?addon_id: String?,
|
|
1225
|
+
?base_charge: bool,
|
|
1226
|
+
?block_size: Float,
|
|
1227
|
+
?credit_grant_cadence: Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::credit_grant_cadence,
|
|
1228
|
+
?credit_rate: Stigg::V1::SubscriptionCreateParams::PriceOverride::CreditRate,
|
|
1229
|
+
?feature_id: String?,
|
|
1230
|
+
?price: Stigg::V1::SubscriptionCreateParams::PriceOverride::Price,
|
|
1231
|
+
?tiers: ::Array[Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier]
|
|
1232
|
+
) -> void
|
|
1233
|
+
|
|
1234
|
+
def to_hash: -> {
|
|
1235
|
+
addon_id: String?,
|
|
1236
|
+
base_charge: bool,
|
|
1237
|
+
block_size: Float,
|
|
1238
|
+
credit_grant_cadence: Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::credit_grant_cadence,
|
|
1239
|
+
credit_rate: Stigg::V1::SubscriptionCreateParams::PriceOverride::CreditRate,
|
|
1240
|
+
feature_id: String?,
|
|
1241
|
+
price: Stigg::V1::SubscriptionCreateParams::PriceOverride::Price,
|
|
1242
|
+
tiers: ::Array[Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier]
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
type credit_grant_cadence = :BEGINNING_OF_BILLING_PERIOD | :MONTHLY
|
|
1246
|
+
|
|
1247
|
+
module CreditGrantCadence
|
|
1248
|
+
extend Stigg::Internal::Type::Enum
|
|
1249
|
+
|
|
1250
|
+
BEGINNING_OF_BILLING_PERIOD: :BEGINNING_OF_BILLING_PERIOD
|
|
1251
|
+
MONTHLY: :MONTHLY
|
|
1252
|
+
|
|
1253
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::credit_grant_cadence]
|
|
1254
|
+
end
|
|
1255
|
+
|
|
1256
|
+
type credit_rate =
|
|
1257
|
+
{ amount: Float, currency_id: String, cost_formula: String? }
|
|
1258
|
+
|
|
1259
|
+
class CreditRate < Stigg::Internal::Type::BaseModel
|
|
1260
|
+
attr_accessor amount: Float
|
|
1261
|
+
|
|
1262
|
+
attr_accessor currency_id: String
|
|
1263
|
+
|
|
1264
|
+
attr_accessor cost_formula: String?
|
|
1265
|
+
|
|
1266
|
+
def initialize: (
|
|
1267
|
+
amount: Float,
|
|
1268
|
+
currency_id: String,
|
|
1269
|
+
?cost_formula: String?
|
|
1270
|
+
) -> void
|
|
1271
|
+
|
|
1272
|
+
def to_hash: -> {
|
|
1273
|
+
amount: Float,
|
|
1274
|
+
currency_id: String,
|
|
1275
|
+
cost_formula: String?
|
|
1276
|
+
}
|
|
1277
|
+
end
|
|
1278
|
+
|
|
1279
|
+
type price =
|
|
1280
|
+
{
|
|
1281
|
+
amount: Float,
|
|
1282
|
+
billing_country_code: String?,
|
|
1283
|
+
currency: Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Price::currency
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
class Price < Stigg::Internal::Type::BaseModel
|
|
1287
|
+
attr_reader amount: Float?
|
|
1288
|
+
|
|
1289
|
+
def amount=: (Float) -> Float
|
|
1290
|
+
|
|
1291
|
+
attr_accessor billing_country_code: String?
|
|
1292
|
+
|
|
1293
|
+
attr_reader currency: Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Price::currency?
|
|
1294
|
+
|
|
1295
|
+
def currency=: (
|
|
1296
|
+
Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Price::currency
|
|
1297
|
+
) -> Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Price::currency
|
|
1298
|
+
|
|
1299
|
+
def initialize: (
|
|
1300
|
+
?amount: Float,
|
|
1301
|
+
?billing_country_code: String?,
|
|
1302
|
+
?currency: Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Price::currency
|
|
1303
|
+
) -> void
|
|
1304
|
+
|
|
1305
|
+
def to_hash: -> {
|
|
1306
|
+
amount: Float,
|
|
1307
|
+
billing_country_code: String?,
|
|
1308
|
+
currency: Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Price::currency
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
type currency =
|
|
1312
|
+
:usd
|
|
1313
|
+
| :aed
|
|
1314
|
+
| :all
|
|
1315
|
+
| :amd
|
|
1316
|
+
| :ang
|
|
1317
|
+
| :aud
|
|
1318
|
+
| :awg
|
|
1319
|
+
| :azn
|
|
1320
|
+
| :bam
|
|
1321
|
+
| :bbd
|
|
1322
|
+
| :bdt
|
|
1323
|
+
| :bgn
|
|
1324
|
+
| :bif
|
|
1325
|
+
| :bmd
|
|
1326
|
+
| :bnd
|
|
1327
|
+
| :bsd
|
|
1328
|
+
| :bwp
|
|
1329
|
+
| :byn
|
|
1330
|
+
| :bzd
|
|
1331
|
+
| :brl
|
|
1332
|
+
| :cad
|
|
1333
|
+
| :cdf
|
|
1334
|
+
| :chf
|
|
1335
|
+
| :cny
|
|
1336
|
+
| :czk
|
|
1337
|
+
| :dkk
|
|
1338
|
+
| :dop
|
|
1339
|
+
| :dzd
|
|
1340
|
+
| :egp
|
|
1341
|
+
| :etb
|
|
1342
|
+
| :eur
|
|
1343
|
+
| :fjd
|
|
1344
|
+
| :gbp
|
|
1345
|
+
| :gel
|
|
1346
|
+
| :gip
|
|
1347
|
+
| :gmd
|
|
1348
|
+
| :gyd
|
|
1349
|
+
| :hkd
|
|
1350
|
+
| :hrk
|
|
1351
|
+
| :htg
|
|
1352
|
+
| :idr
|
|
1353
|
+
| :ils
|
|
1354
|
+
| :inr
|
|
1355
|
+
| :isk
|
|
1356
|
+
| :jmd
|
|
1357
|
+
| :jpy
|
|
1358
|
+
| :kes
|
|
1359
|
+
| :kgs
|
|
1360
|
+
| :khr
|
|
1361
|
+
| :kmf
|
|
1362
|
+
| :krw
|
|
1363
|
+
| :kyd
|
|
1364
|
+
| :kzt
|
|
1365
|
+
| :lbp
|
|
1366
|
+
| :lkr
|
|
1367
|
+
| :lrd
|
|
1368
|
+
| :lsl
|
|
1369
|
+
| :mad
|
|
1370
|
+
| :mdl
|
|
1371
|
+
| :mga
|
|
1372
|
+
| :mkd
|
|
1373
|
+
| :mmk
|
|
1374
|
+
| :mnt
|
|
1375
|
+
| :mop
|
|
1376
|
+
| :mro
|
|
1377
|
+
| :mvr
|
|
1378
|
+
| :mwk
|
|
1379
|
+
| :mxn
|
|
1380
|
+
| :myr
|
|
1381
|
+
| :mzn
|
|
1382
|
+
| :nad
|
|
1383
|
+
| :ngn
|
|
1384
|
+
| :nok
|
|
1385
|
+
| :npr
|
|
1386
|
+
| :nzd
|
|
1387
|
+
| :pgk
|
|
1388
|
+
| :php
|
|
1389
|
+
| :pkr
|
|
1390
|
+
| :pln
|
|
1391
|
+
| :qar
|
|
1392
|
+
| :ron
|
|
1393
|
+
| :rsd
|
|
1394
|
+
| :rub
|
|
1395
|
+
| :rwf
|
|
1396
|
+
| :sar
|
|
1397
|
+
| :sbd
|
|
1398
|
+
| :scr
|
|
1399
|
+
| :sek
|
|
1400
|
+
| :sgd
|
|
1401
|
+
| :sle
|
|
1402
|
+
| :sll
|
|
1403
|
+
| :sos
|
|
1404
|
+
| :szl
|
|
1405
|
+
| :thb
|
|
1406
|
+
| :tjs
|
|
1407
|
+
| :top
|
|
1408
|
+
| :try
|
|
1409
|
+
| :ttd
|
|
1410
|
+
| :tzs
|
|
1411
|
+
| :uah
|
|
1412
|
+
| :uzs
|
|
1413
|
+
| :vnd
|
|
1414
|
+
| :vuv
|
|
1415
|
+
| :wst
|
|
1416
|
+
| :xaf
|
|
1417
|
+
| :xcd
|
|
1418
|
+
| :yer
|
|
1419
|
+
| :zar
|
|
1420
|
+
| :zmw
|
|
1421
|
+
| :clp
|
|
1422
|
+
| :djf
|
|
1423
|
+
| :gnf
|
|
1424
|
+
| :ugx
|
|
1425
|
+
| :pyg
|
|
1426
|
+
| :xof
|
|
1427
|
+
| :xpf
|
|
1428
|
+
|
|
1429
|
+
module Currency
|
|
1430
|
+
extend Stigg::Internal::Type::Enum
|
|
1431
|
+
|
|
1432
|
+
USD: :usd
|
|
1433
|
+
AED: :aed
|
|
1434
|
+
ALL: :all
|
|
1435
|
+
AMD: :amd
|
|
1436
|
+
ANG: :ang
|
|
1437
|
+
AUD: :aud
|
|
1438
|
+
AWG: :awg
|
|
1439
|
+
AZN: :azn
|
|
1440
|
+
BAM: :bam
|
|
1441
|
+
BBD: :bbd
|
|
1442
|
+
BDT: :bdt
|
|
1443
|
+
BGN: :bgn
|
|
1444
|
+
BIF: :bif
|
|
1445
|
+
BMD: :bmd
|
|
1446
|
+
BND: :bnd
|
|
1447
|
+
BSD: :bsd
|
|
1448
|
+
BWP: :bwp
|
|
1449
|
+
BYN: :byn
|
|
1450
|
+
BZD: :bzd
|
|
1451
|
+
BRL: :brl
|
|
1452
|
+
CAD: :cad
|
|
1453
|
+
CDF: :cdf
|
|
1454
|
+
CHF: :chf
|
|
1455
|
+
CNY: :cny
|
|
1456
|
+
CZK: :czk
|
|
1457
|
+
DKK: :dkk
|
|
1458
|
+
DOP: :dop
|
|
1459
|
+
DZD: :dzd
|
|
1460
|
+
EGP: :egp
|
|
1461
|
+
ETB: :etb
|
|
1462
|
+
EUR: :eur
|
|
1463
|
+
FJD: :fjd
|
|
1464
|
+
GBP: :gbp
|
|
1465
|
+
GEL: :gel
|
|
1466
|
+
GIP: :gip
|
|
1467
|
+
GMD: :gmd
|
|
1468
|
+
GYD: :gyd
|
|
1469
|
+
HKD: :hkd
|
|
1470
|
+
HRK: :hrk
|
|
1471
|
+
HTG: :htg
|
|
1472
|
+
IDR: :idr
|
|
1473
|
+
ILS: :ils
|
|
1474
|
+
INR: :inr
|
|
1475
|
+
ISK: :isk
|
|
1476
|
+
JMD: :jmd
|
|
1477
|
+
JPY: :jpy
|
|
1478
|
+
KES: :kes
|
|
1479
|
+
KGS: :kgs
|
|
1480
|
+
KHR: :khr
|
|
1481
|
+
KMF: :kmf
|
|
1482
|
+
KRW: :krw
|
|
1483
|
+
KYD: :kyd
|
|
1484
|
+
KZT: :kzt
|
|
1485
|
+
LBP: :lbp
|
|
1486
|
+
LKR: :lkr
|
|
1487
|
+
LRD: :lrd
|
|
1488
|
+
LSL: :lsl
|
|
1489
|
+
MAD: :mad
|
|
1490
|
+
MDL: :mdl
|
|
1491
|
+
MGA: :mga
|
|
1492
|
+
MKD: :mkd
|
|
1493
|
+
MMK: :mmk
|
|
1494
|
+
MNT: :mnt
|
|
1495
|
+
MOP: :mop
|
|
1496
|
+
MRO: :mro
|
|
1497
|
+
MVR: :mvr
|
|
1498
|
+
MWK: :mwk
|
|
1499
|
+
MXN: :mxn
|
|
1500
|
+
MYR: :myr
|
|
1501
|
+
MZN: :mzn
|
|
1502
|
+
NAD: :nad
|
|
1503
|
+
NGN: :ngn
|
|
1504
|
+
NOK: :nok
|
|
1505
|
+
NPR: :npr
|
|
1506
|
+
NZD: :nzd
|
|
1507
|
+
PGK: :pgk
|
|
1508
|
+
PHP: :php
|
|
1509
|
+
PKR: :pkr
|
|
1510
|
+
PLN: :pln
|
|
1511
|
+
QAR: :qar
|
|
1512
|
+
RON: :ron
|
|
1513
|
+
RSD: :rsd
|
|
1514
|
+
RUB: :rub
|
|
1515
|
+
RWF: :rwf
|
|
1516
|
+
SAR: :sar
|
|
1517
|
+
SBD: :sbd
|
|
1518
|
+
SCR: :scr
|
|
1519
|
+
SEK: :sek
|
|
1520
|
+
SGD: :sgd
|
|
1521
|
+
SLE: :sle
|
|
1522
|
+
SLL: :sll
|
|
1523
|
+
SOS: :sos
|
|
1524
|
+
SZL: :szl
|
|
1525
|
+
THB: :thb
|
|
1526
|
+
TJS: :tjs
|
|
1527
|
+
TOP: :top
|
|
1528
|
+
TRY: :try
|
|
1529
|
+
TTD: :ttd
|
|
1530
|
+
TZS: :tzs
|
|
1531
|
+
UAH: :uah
|
|
1532
|
+
UZS: :uzs
|
|
1533
|
+
VND: :vnd
|
|
1534
|
+
VUV: :vuv
|
|
1535
|
+
WST: :wst
|
|
1536
|
+
XAF: :xaf
|
|
1537
|
+
XCD: :xcd
|
|
1538
|
+
YER: :yer
|
|
1539
|
+
ZAR: :zar
|
|
1540
|
+
ZMW: :zmw
|
|
1541
|
+
CLP: :clp
|
|
1542
|
+
DJF: :djf
|
|
1543
|
+
GNF: :gnf
|
|
1544
|
+
UGX: :ugx
|
|
1545
|
+
PYG: :pyg
|
|
1546
|
+
XOF: :xof
|
|
1547
|
+
XPF: :xpf
|
|
1548
|
+
|
|
1549
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Price::currency]
|
|
1550
|
+
end
|
|
1551
|
+
end
|
|
1552
|
+
|
|
1553
|
+
type tier =
|
|
1554
|
+
{
|
|
1555
|
+
flat_price: Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier::FlatPrice,
|
|
1556
|
+
unit_price: Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier::UnitPrice,
|
|
1557
|
+
up_to: Float
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
class Tier < Stigg::Internal::Type::BaseModel
|
|
1561
|
+
attr_reader flat_price: Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier::FlatPrice?
|
|
1562
|
+
|
|
1563
|
+
def flat_price=: (
|
|
1564
|
+
Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier::FlatPrice
|
|
1565
|
+
) -> Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier::FlatPrice
|
|
1566
|
+
|
|
1567
|
+
attr_reader unit_price: Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier::UnitPrice?
|
|
1568
|
+
|
|
1569
|
+
def unit_price=: (
|
|
1570
|
+
Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier::UnitPrice
|
|
1571
|
+
) -> Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier::UnitPrice
|
|
1572
|
+
|
|
1573
|
+
attr_reader up_to: Float?
|
|
1574
|
+
|
|
1575
|
+
def up_to=: (Float) -> Float
|
|
1576
|
+
|
|
1577
|
+
def initialize: (
|
|
1578
|
+
?flat_price: Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier::FlatPrice,
|
|
1579
|
+
?unit_price: Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier::UnitPrice,
|
|
1580
|
+
?up_to: Float
|
|
1581
|
+
) -> void
|
|
1582
|
+
|
|
1583
|
+
def to_hash: -> {
|
|
1584
|
+
flat_price: Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier::FlatPrice,
|
|
1585
|
+
unit_price: Stigg::V1::SubscriptionCreateParams::PriceOverride::Tier::UnitPrice,
|
|
1586
|
+
up_to: Float
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
type flat_price =
|
|
1590
|
+
{
|
|
1591
|
+
amount: Float,
|
|
1592
|
+
billing_country_code: String?,
|
|
1593
|
+
currency: Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Tier::FlatPrice::currency
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
class FlatPrice < Stigg::Internal::Type::BaseModel
|
|
1597
|
+
attr_reader amount: Float?
|
|
1598
|
+
|
|
1599
|
+
def amount=: (Float) -> Float
|
|
1600
|
+
|
|
1601
|
+
attr_accessor billing_country_code: String?
|
|
1602
|
+
|
|
1603
|
+
attr_reader currency: Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Tier::FlatPrice::currency?
|
|
1604
|
+
|
|
1605
|
+
def currency=: (
|
|
1606
|
+
Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Tier::FlatPrice::currency
|
|
1607
|
+
) -> Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Tier::FlatPrice::currency
|
|
1608
|
+
|
|
1609
|
+
def initialize: (
|
|
1610
|
+
?amount: Float,
|
|
1611
|
+
?billing_country_code: String?,
|
|
1612
|
+
?currency: Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Tier::FlatPrice::currency
|
|
1613
|
+
) -> void
|
|
1614
|
+
|
|
1615
|
+
def to_hash: -> {
|
|
1616
|
+
amount: Float,
|
|
1617
|
+
billing_country_code: String?,
|
|
1618
|
+
currency: Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Tier::FlatPrice::currency
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
type currency =
|
|
1622
|
+
:usd
|
|
1623
|
+
| :aed
|
|
1624
|
+
| :all
|
|
1625
|
+
| :amd
|
|
1626
|
+
| :ang
|
|
1627
|
+
| :aud
|
|
1628
|
+
| :awg
|
|
1629
|
+
| :azn
|
|
1630
|
+
| :bam
|
|
1631
|
+
| :bbd
|
|
1632
|
+
| :bdt
|
|
1633
|
+
| :bgn
|
|
1634
|
+
| :bif
|
|
1635
|
+
| :bmd
|
|
1636
|
+
| :bnd
|
|
1637
|
+
| :bsd
|
|
1638
|
+
| :bwp
|
|
1639
|
+
| :byn
|
|
1640
|
+
| :bzd
|
|
1641
|
+
| :brl
|
|
1642
|
+
| :cad
|
|
1643
|
+
| :cdf
|
|
1644
|
+
| :chf
|
|
1645
|
+
| :cny
|
|
1646
|
+
| :czk
|
|
1647
|
+
| :dkk
|
|
1648
|
+
| :dop
|
|
1649
|
+
| :dzd
|
|
1650
|
+
| :egp
|
|
1651
|
+
| :etb
|
|
1652
|
+
| :eur
|
|
1653
|
+
| :fjd
|
|
1654
|
+
| :gbp
|
|
1655
|
+
| :gel
|
|
1656
|
+
| :gip
|
|
1657
|
+
| :gmd
|
|
1658
|
+
| :gyd
|
|
1659
|
+
| :hkd
|
|
1660
|
+
| :hrk
|
|
1661
|
+
| :htg
|
|
1662
|
+
| :idr
|
|
1663
|
+
| :ils
|
|
1664
|
+
| :inr
|
|
1665
|
+
| :isk
|
|
1666
|
+
| :jmd
|
|
1667
|
+
| :jpy
|
|
1668
|
+
| :kes
|
|
1669
|
+
| :kgs
|
|
1670
|
+
| :khr
|
|
1671
|
+
| :kmf
|
|
1672
|
+
| :krw
|
|
1673
|
+
| :kyd
|
|
1674
|
+
| :kzt
|
|
1675
|
+
| :lbp
|
|
1676
|
+
| :lkr
|
|
1677
|
+
| :lrd
|
|
1678
|
+
| :lsl
|
|
1679
|
+
| :mad
|
|
1680
|
+
| :mdl
|
|
1681
|
+
| :mga
|
|
1682
|
+
| :mkd
|
|
1683
|
+
| :mmk
|
|
1684
|
+
| :mnt
|
|
1685
|
+
| :mop
|
|
1686
|
+
| :mro
|
|
1687
|
+
| :mvr
|
|
1688
|
+
| :mwk
|
|
1689
|
+
| :mxn
|
|
1690
|
+
| :myr
|
|
1691
|
+
| :mzn
|
|
1692
|
+
| :nad
|
|
1693
|
+
| :ngn
|
|
1694
|
+
| :nok
|
|
1695
|
+
| :npr
|
|
1696
|
+
| :nzd
|
|
1697
|
+
| :pgk
|
|
1698
|
+
| :php
|
|
1699
|
+
| :pkr
|
|
1700
|
+
| :pln
|
|
1701
|
+
| :qar
|
|
1702
|
+
| :ron
|
|
1703
|
+
| :rsd
|
|
1704
|
+
| :rub
|
|
1705
|
+
| :rwf
|
|
1706
|
+
| :sar
|
|
1707
|
+
| :sbd
|
|
1708
|
+
| :scr
|
|
1709
|
+
| :sek
|
|
1710
|
+
| :sgd
|
|
1711
|
+
| :sle
|
|
1712
|
+
| :sll
|
|
1713
|
+
| :sos
|
|
1714
|
+
| :szl
|
|
1715
|
+
| :thb
|
|
1716
|
+
| :tjs
|
|
1717
|
+
| :top
|
|
1718
|
+
| :try
|
|
1719
|
+
| :ttd
|
|
1720
|
+
| :tzs
|
|
1721
|
+
| :uah
|
|
1722
|
+
| :uzs
|
|
1723
|
+
| :vnd
|
|
1724
|
+
| :vuv
|
|
1725
|
+
| :wst
|
|
1726
|
+
| :xaf
|
|
1727
|
+
| :xcd
|
|
1728
|
+
| :yer
|
|
1729
|
+
| :zar
|
|
1730
|
+
| :zmw
|
|
1731
|
+
| :clp
|
|
1732
|
+
| :djf
|
|
1733
|
+
| :gnf
|
|
1734
|
+
| :ugx
|
|
1735
|
+
| :pyg
|
|
1736
|
+
| :xof
|
|
1737
|
+
| :xpf
|
|
1738
|
+
|
|
1739
|
+
module Currency
|
|
1740
|
+
extend Stigg::Internal::Type::Enum
|
|
1741
|
+
|
|
1742
|
+
USD: :usd
|
|
1743
|
+
AED: :aed
|
|
1744
|
+
ALL: :all
|
|
1745
|
+
AMD: :amd
|
|
1746
|
+
ANG: :ang
|
|
1747
|
+
AUD: :aud
|
|
1748
|
+
AWG: :awg
|
|
1749
|
+
AZN: :azn
|
|
1750
|
+
BAM: :bam
|
|
1751
|
+
BBD: :bbd
|
|
1752
|
+
BDT: :bdt
|
|
1753
|
+
BGN: :bgn
|
|
1754
|
+
BIF: :bif
|
|
1755
|
+
BMD: :bmd
|
|
1756
|
+
BND: :bnd
|
|
1757
|
+
BSD: :bsd
|
|
1758
|
+
BWP: :bwp
|
|
1759
|
+
BYN: :byn
|
|
1760
|
+
BZD: :bzd
|
|
1761
|
+
BRL: :brl
|
|
1762
|
+
CAD: :cad
|
|
1763
|
+
CDF: :cdf
|
|
1764
|
+
CHF: :chf
|
|
1765
|
+
CNY: :cny
|
|
1766
|
+
CZK: :czk
|
|
1767
|
+
DKK: :dkk
|
|
1768
|
+
DOP: :dop
|
|
1769
|
+
DZD: :dzd
|
|
1770
|
+
EGP: :egp
|
|
1771
|
+
ETB: :etb
|
|
1772
|
+
EUR: :eur
|
|
1773
|
+
FJD: :fjd
|
|
1774
|
+
GBP: :gbp
|
|
1775
|
+
GEL: :gel
|
|
1776
|
+
GIP: :gip
|
|
1777
|
+
GMD: :gmd
|
|
1778
|
+
GYD: :gyd
|
|
1779
|
+
HKD: :hkd
|
|
1780
|
+
HRK: :hrk
|
|
1781
|
+
HTG: :htg
|
|
1782
|
+
IDR: :idr
|
|
1783
|
+
ILS: :ils
|
|
1784
|
+
INR: :inr
|
|
1785
|
+
ISK: :isk
|
|
1786
|
+
JMD: :jmd
|
|
1787
|
+
JPY: :jpy
|
|
1788
|
+
KES: :kes
|
|
1789
|
+
KGS: :kgs
|
|
1790
|
+
KHR: :khr
|
|
1791
|
+
KMF: :kmf
|
|
1792
|
+
KRW: :krw
|
|
1793
|
+
KYD: :kyd
|
|
1794
|
+
KZT: :kzt
|
|
1795
|
+
LBP: :lbp
|
|
1796
|
+
LKR: :lkr
|
|
1797
|
+
LRD: :lrd
|
|
1798
|
+
LSL: :lsl
|
|
1799
|
+
MAD: :mad
|
|
1800
|
+
MDL: :mdl
|
|
1801
|
+
MGA: :mga
|
|
1802
|
+
MKD: :mkd
|
|
1803
|
+
MMK: :mmk
|
|
1804
|
+
MNT: :mnt
|
|
1805
|
+
MOP: :mop
|
|
1806
|
+
MRO: :mro
|
|
1807
|
+
MVR: :mvr
|
|
1808
|
+
MWK: :mwk
|
|
1809
|
+
MXN: :mxn
|
|
1810
|
+
MYR: :myr
|
|
1811
|
+
MZN: :mzn
|
|
1812
|
+
NAD: :nad
|
|
1813
|
+
NGN: :ngn
|
|
1814
|
+
NOK: :nok
|
|
1815
|
+
NPR: :npr
|
|
1816
|
+
NZD: :nzd
|
|
1817
|
+
PGK: :pgk
|
|
1818
|
+
PHP: :php
|
|
1819
|
+
PKR: :pkr
|
|
1820
|
+
PLN: :pln
|
|
1821
|
+
QAR: :qar
|
|
1822
|
+
RON: :ron
|
|
1823
|
+
RSD: :rsd
|
|
1824
|
+
RUB: :rub
|
|
1825
|
+
RWF: :rwf
|
|
1826
|
+
SAR: :sar
|
|
1827
|
+
SBD: :sbd
|
|
1828
|
+
SCR: :scr
|
|
1829
|
+
SEK: :sek
|
|
1830
|
+
SGD: :sgd
|
|
1831
|
+
SLE: :sle
|
|
1832
|
+
SLL: :sll
|
|
1833
|
+
SOS: :sos
|
|
1834
|
+
SZL: :szl
|
|
1835
|
+
THB: :thb
|
|
1836
|
+
TJS: :tjs
|
|
1837
|
+
TOP: :top
|
|
1838
|
+
TRY: :try
|
|
1839
|
+
TTD: :ttd
|
|
1840
|
+
TZS: :tzs
|
|
1841
|
+
UAH: :uah
|
|
1842
|
+
UZS: :uzs
|
|
1843
|
+
VND: :vnd
|
|
1844
|
+
VUV: :vuv
|
|
1845
|
+
WST: :wst
|
|
1846
|
+
XAF: :xaf
|
|
1847
|
+
XCD: :xcd
|
|
1848
|
+
YER: :yer
|
|
1849
|
+
ZAR: :zar
|
|
1850
|
+
ZMW: :zmw
|
|
1851
|
+
CLP: :clp
|
|
1852
|
+
DJF: :djf
|
|
1853
|
+
GNF: :gnf
|
|
1854
|
+
UGX: :ugx
|
|
1855
|
+
PYG: :pyg
|
|
1856
|
+
XOF: :xof
|
|
1857
|
+
XPF: :xpf
|
|
1858
|
+
|
|
1859
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Tier::FlatPrice::currency]
|
|
1860
|
+
end
|
|
1861
|
+
end
|
|
1862
|
+
|
|
1863
|
+
type unit_price =
|
|
1864
|
+
{
|
|
1865
|
+
amount: Float,
|
|
1866
|
+
billing_country_code: String?,
|
|
1867
|
+
currency: Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Tier::UnitPrice::currency
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
class UnitPrice < Stigg::Internal::Type::BaseModel
|
|
1871
|
+
attr_reader amount: Float?
|
|
1872
|
+
|
|
1873
|
+
def amount=: (Float) -> Float
|
|
1874
|
+
|
|
1875
|
+
attr_accessor billing_country_code: String?
|
|
1876
|
+
|
|
1877
|
+
attr_reader currency: Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Tier::UnitPrice::currency?
|
|
1878
|
+
|
|
1879
|
+
def currency=: (
|
|
1880
|
+
Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Tier::UnitPrice::currency
|
|
1881
|
+
) -> Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Tier::UnitPrice::currency
|
|
1882
|
+
|
|
1883
|
+
def initialize: (
|
|
1884
|
+
?amount: Float,
|
|
1885
|
+
?billing_country_code: String?,
|
|
1886
|
+
?currency: Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Tier::UnitPrice::currency
|
|
1887
|
+
) -> void
|
|
1888
|
+
|
|
1889
|
+
def to_hash: -> {
|
|
1890
|
+
amount: Float,
|
|
1891
|
+
billing_country_code: String?,
|
|
1892
|
+
currency: Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Tier::UnitPrice::currency
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
type currency =
|
|
1896
|
+
:usd
|
|
1897
|
+
| :aed
|
|
1898
|
+
| :all
|
|
1899
|
+
| :amd
|
|
1900
|
+
| :ang
|
|
1901
|
+
| :aud
|
|
1902
|
+
| :awg
|
|
1903
|
+
| :azn
|
|
1904
|
+
| :bam
|
|
1905
|
+
| :bbd
|
|
1906
|
+
| :bdt
|
|
1907
|
+
| :bgn
|
|
1908
|
+
| :bif
|
|
1909
|
+
| :bmd
|
|
1910
|
+
| :bnd
|
|
1911
|
+
| :bsd
|
|
1912
|
+
| :bwp
|
|
1913
|
+
| :byn
|
|
1914
|
+
| :bzd
|
|
1915
|
+
| :brl
|
|
1916
|
+
| :cad
|
|
1917
|
+
| :cdf
|
|
1918
|
+
| :chf
|
|
1919
|
+
| :cny
|
|
1920
|
+
| :czk
|
|
1921
|
+
| :dkk
|
|
1922
|
+
| :dop
|
|
1923
|
+
| :dzd
|
|
1924
|
+
| :egp
|
|
1925
|
+
| :etb
|
|
1926
|
+
| :eur
|
|
1927
|
+
| :fjd
|
|
1928
|
+
| :gbp
|
|
1929
|
+
| :gel
|
|
1930
|
+
| :gip
|
|
1931
|
+
| :gmd
|
|
1932
|
+
| :gyd
|
|
1933
|
+
| :hkd
|
|
1934
|
+
| :hrk
|
|
1935
|
+
| :htg
|
|
1936
|
+
| :idr
|
|
1937
|
+
| :ils
|
|
1938
|
+
| :inr
|
|
1939
|
+
| :isk
|
|
1940
|
+
| :jmd
|
|
1941
|
+
| :jpy
|
|
1942
|
+
| :kes
|
|
1943
|
+
| :kgs
|
|
1944
|
+
| :khr
|
|
1945
|
+
| :kmf
|
|
1946
|
+
| :krw
|
|
1947
|
+
| :kyd
|
|
1948
|
+
| :kzt
|
|
1949
|
+
| :lbp
|
|
1950
|
+
| :lkr
|
|
1951
|
+
| :lrd
|
|
1952
|
+
| :lsl
|
|
1953
|
+
| :mad
|
|
1954
|
+
| :mdl
|
|
1955
|
+
| :mga
|
|
1956
|
+
| :mkd
|
|
1957
|
+
| :mmk
|
|
1958
|
+
| :mnt
|
|
1959
|
+
| :mop
|
|
1960
|
+
| :mro
|
|
1961
|
+
| :mvr
|
|
1962
|
+
| :mwk
|
|
1963
|
+
| :mxn
|
|
1964
|
+
| :myr
|
|
1965
|
+
| :mzn
|
|
1966
|
+
| :nad
|
|
1967
|
+
| :ngn
|
|
1968
|
+
| :nok
|
|
1969
|
+
| :npr
|
|
1970
|
+
| :nzd
|
|
1971
|
+
| :pgk
|
|
1972
|
+
| :php
|
|
1973
|
+
| :pkr
|
|
1974
|
+
| :pln
|
|
1975
|
+
| :qar
|
|
1976
|
+
| :ron
|
|
1977
|
+
| :rsd
|
|
1978
|
+
| :rub
|
|
1979
|
+
| :rwf
|
|
1980
|
+
| :sar
|
|
1981
|
+
| :sbd
|
|
1982
|
+
| :scr
|
|
1983
|
+
| :sek
|
|
1984
|
+
| :sgd
|
|
1985
|
+
| :sle
|
|
1986
|
+
| :sll
|
|
1987
|
+
| :sos
|
|
1988
|
+
| :szl
|
|
1989
|
+
| :thb
|
|
1990
|
+
| :tjs
|
|
1991
|
+
| :top
|
|
1992
|
+
| :try
|
|
1993
|
+
| :ttd
|
|
1994
|
+
| :tzs
|
|
1995
|
+
| :uah
|
|
1996
|
+
| :uzs
|
|
1997
|
+
| :vnd
|
|
1998
|
+
| :vuv
|
|
1999
|
+
| :wst
|
|
2000
|
+
| :xaf
|
|
2001
|
+
| :xcd
|
|
2002
|
+
| :yer
|
|
2003
|
+
| :zar
|
|
2004
|
+
| :zmw
|
|
2005
|
+
| :clp
|
|
2006
|
+
| :djf
|
|
2007
|
+
| :gnf
|
|
2008
|
+
| :ugx
|
|
2009
|
+
| :pyg
|
|
2010
|
+
| :xof
|
|
2011
|
+
| :xpf
|
|
2012
|
+
|
|
2013
|
+
module Currency
|
|
2014
|
+
extend Stigg::Internal::Type::Enum
|
|
2015
|
+
|
|
2016
|
+
USD: :usd
|
|
2017
|
+
AED: :aed
|
|
2018
|
+
ALL: :all
|
|
2019
|
+
AMD: :amd
|
|
2020
|
+
ANG: :ang
|
|
2021
|
+
AUD: :aud
|
|
2022
|
+
AWG: :awg
|
|
2023
|
+
AZN: :azn
|
|
2024
|
+
BAM: :bam
|
|
2025
|
+
BBD: :bbd
|
|
2026
|
+
BDT: :bdt
|
|
2027
|
+
BGN: :bgn
|
|
2028
|
+
BIF: :bif
|
|
2029
|
+
BMD: :bmd
|
|
2030
|
+
BND: :bnd
|
|
2031
|
+
BSD: :bsd
|
|
2032
|
+
BWP: :bwp
|
|
2033
|
+
BYN: :byn
|
|
2034
|
+
BZD: :bzd
|
|
2035
|
+
BRL: :brl
|
|
2036
|
+
CAD: :cad
|
|
2037
|
+
CDF: :cdf
|
|
2038
|
+
CHF: :chf
|
|
2039
|
+
CNY: :cny
|
|
2040
|
+
CZK: :czk
|
|
2041
|
+
DKK: :dkk
|
|
2042
|
+
DOP: :dop
|
|
2043
|
+
DZD: :dzd
|
|
2044
|
+
EGP: :egp
|
|
2045
|
+
ETB: :etb
|
|
2046
|
+
EUR: :eur
|
|
2047
|
+
FJD: :fjd
|
|
2048
|
+
GBP: :gbp
|
|
2049
|
+
GEL: :gel
|
|
2050
|
+
GIP: :gip
|
|
2051
|
+
GMD: :gmd
|
|
2052
|
+
GYD: :gyd
|
|
2053
|
+
HKD: :hkd
|
|
2054
|
+
HRK: :hrk
|
|
2055
|
+
HTG: :htg
|
|
2056
|
+
IDR: :idr
|
|
2057
|
+
ILS: :ils
|
|
2058
|
+
INR: :inr
|
|
2059
|
+
ISK: :isk
|
|
2060
|
+
JMD: :jmd
|
|
2061
|
+
JPY: :jpy
|
|
2062
|
+
KES: :kes
|
|
2063
|
+
KGS: :kgs
|
|
2064
|
+
KHR: :khr
|
|
2065
|
+
KMF: :kmf
|
|
2066
|
+
KRW: :krw
|
|
2067
|
+
KYD: :kyd
|
|
2068
|
+
KZT: :kzt
|
|
2069
|
+
LBP: :lbp
|
|
2070
|
+
LKR: :lkr
|
|
2071
|
+
LRD: :lrd
|
|
2072
|
+
LSL: :lsl
|
|
2073
|
+
MAD: :mad
|
|
2074
|
+
MDL: :mdl
|
|
2075
|
+
MGA: :mga
|
|
2076
|
+
MKD: :mkd
|
|
2077
|
+
MMK: :mmk
|
|
2078
|
+
MNT: :mnt
|
|
2079
|
+
MOP: :mop
|
|
2080
|
+
MRO: :mro
|
|
2081
|
+
MVR: :mvr
|
|
2082
|
+
MWK: :mwk
|
|
2083
|
+
MXN: :mxn
|
|
2084
|
+
MYR: :myr
|
|
2085
|
+
MZN: :mzn
|
|
2086
|
+
NAD: :nad
|
|
2087
|
+
NGN: :ngn
|
|
2088
|
+
NOK: :nok
|
|
2089
|
+
NPR: :npr
|
|
2090
|
+
NZD: :nzd
|
|
2091
|
+
PGK: :pgk
|
|
2092
|
+
PHP: :php
|
|
2093
|
+
PKR: :pkr
|
|
2094
|
+
PLN: :pln
|
|
2095
|
+
QAR: :qar
|
|
2096
|
+
RON: :ron
|
|
2097
|
+
RSD: :rsd
|
|
2098
|
+
RUB: :rub
|
|
2099
|
+
RWF: :rwf
|
|
2100
|
+
SAR: :sar
|
|
2101
|
+
SBD: :sbd
|
|
2102
|
+
SCR: :scr
|
|
2103
|
+
SEK: :sek
|
|
2104
|
+
SGD: :sgd
|
|
2105
|
+
SLE: :sle
|
|
2106
|
+
SLL: :sll
|
|
2107
|
+
SOS: :sos
|
|
2108
|
+
SZL: :szl
|
|
2109
|
+
THB: :thb
|
|
2110
|
+
TJS: :tjs
|
|
2111
|
+
TOP: :top
|
|
2112
|
+
TRY: :try
|
|
2113
|
+
TTD: :ttd
|
|
2114
|
+
TZS: :tzs
|
|
2115
|
+
UAH: :uah
|
|
2116
|
+
UZS: :uzs
|
|
2117
|
+
VND: :vnd
|
|
2118
|
+
VUV: :vuv
|
|
2119
|
+
WST: :wst
|
|
2120
|
+
XAF: :xaf
|
|
2121
|
+
XCD: :xcd
|
|
2122
|
+
YER: :yer
|
|
2123
|
+
ZAR: :zar
|
|
2124
|
+
ZMW: :zmw
|
|
2125
|
+
CLP: :clp
|
|
2126
|
+
DJF: :djf
|
|
2127
|
+
GNF: :gnf
|
|
2128
|
+
UGX: :ugx
|
|
2129
|
+
PYG: :pyg
|
|
2130
|
+
XOF: :xof
|
|
2131
|
+
XPF: :xpf
|
|
2132
|
+
|
|
2133
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateParams::PriceOverride::Tier::UnitPrice::currency]
|
|
2134
|
+
end
|
|
2135
|
+
end
|
|
2136
|
+
end
|
|
2137
|
+
end
|
|
2138
|
+
|
|
2139
|
+
type schedule_strategy =
|
|
2140
|
+
:END_OF_BILLING_PERIOD | :END_OF_BILLING_MONTH | :IMMEDIATE
|
|
2141
|
+
|
|
2142
|
+
module ScheduleStrategy
|
|
2143
|
+
extend Stigg::Internal::Type::Enum
|
|
2144
|
+
|
|
2145
|
+
END_OF_BILLING_PERIOD: :END_OF_BILLING_PERIOD
|
|
2146
|
+
END_OF_BILLING_MONTH: :END_OF_BILLING_MONTH
|
|
2147
|
+
IMMEDIATE: :IMMEDIATE
|
|
2148
|
+
|
|
2149
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCreateParams::schedule_strategy]
|
|
2150
|
+
end
|
|
2151
|
+
|
|
2152
|
+
type subscription_entitlement =
|
|
2153
|
+
{ feature_id: String, usage_limit: Float, is_granted: bool }
|
|
2154
|
+
|
|
2155
|
+
class SubscriptionEntitlement < Stigg::Internal::Type::BaseModel
|
|
2156
|
+
attr_accessor feature_id: String
|
|
2157
|
+
|
|
2158
|
+
attr_accessor usage_limit: Float
|
|
2159
|
+
|
|
2160
|
+
attr_reader is_granted: bool?
|
|
2161
|
+
|
|
2162
|
+
def is_granted=: (bool) -> bool
|
|
2163
|
+
|
|
2164
|
+
def initialize: (
|
|
2165
|
+
feature_id: String,
|
|
2166
|
+
usage_limit: Float,
|
|
2167
|
+
?is_granted: bool
|
|
2168
|
+
) -> void
|
|
2169
|
+
|
|
2170
|
+
def to_hash: -> {
|
|
2171
|
+
feature_id: String,
|
|
2172
|
+
usage_limit: Float,
|
|
2173
|
+
is_granted: bool
|
|
2174
|
+
}
|
|
2175
|
+
end
|
|
2176
|
+
|
|
153
2177
|
type trial_override_configuration =
|
|
154
2178
|
{
|
|
155
2179
|
is_trial: bool,
|