stigg 0.1.0.pre.alpha.2 → 0.1.0.pre.alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/stigg/internal/type/base_model.rb +2 -2
- data/lib/stigg/models/v1/{coupon_create_response.rb → coupon.rb} +24 -24
- data/lib/stigg/models/v1/customer_import_params.rb +75 -0
- data/lib/stigg/models/v1/customer_import_response.rb +35 -0
- data/lib/stigg/models/v1/{customer_create_params.rb → customer_provision_params.rb} +16 -16
- data/lib/stigg/models/v1/customer_response.rb +1 -1
- data/lib/stigg/models/v1/customers/promotional_entitlement_grant_params.rb +296 -0
- data/lib/stigg/models/v1/customers/promotional_entitlement_grant_response.rb +341 -0
- data/lib/stigg/models/v1/customers/promotional_entitlement_revoke_params.rb +24 -0
- data/lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb +342 -0
- data/lib/stigg/models/v1/event_report_params.rb +91 -0
- data/lib/stigg/models/v1/event_report_response.rb +25 -0
- data/lib/stigg/models/v1/{subscription_retrieve_response.rb → subscription.rb} +30 -29
- data/lib/stigg/models/v1/subscription_cancel_params.rb +75 -0
- data/lib/stigg/models/v1/subscription_import_params.rb +92 -0
- data/lib/stigg/models/v1/subscription_import_response.rb +32 -0
- data/lib/stigg/models/v1/{subscription_create_params.rb → subscription_provision_params.rb} +118 -118
- data/lib/stigg/models/v1/{subscription_create_response.rb → subscription_provision_response.rb} +76 -75
- data/lib/stigg/models/v1/subscription_update_params.rb +1114 -0
- data/lib/stigg/models/v1/subscriptions/{future_update_cancel_pending_payment_response.rb → cancel_subscription.rb} +7 -5
- data/lib/stigg/models/v1/usage_history_params.rb +54 -0
- data/lib/stigg/models/v1/usage_history_response.rb +155 -0
- data/lib/stigg/models/v1/usage_report_params.rb +114 -0
- data/lib/stigg/models/v1/usage_report_response.rb +120 -0
- data/lib/stigg/models.rb +0 -4
- data/lib/stigg/resources/v1/coupons.rb +4 -4
- data/lib/stigg/resources/v1/customers/promotional_entitlements.rb +69 -0
- data/lib/stigg/resources/v1/customers.rb +59 -37
- data/lib/stigg/resources/v1/events.rb +38 -0
- data/lib/stigg/resources/v1/subscriptions/future_update.rb +4 -4
- data/lib/stigg/resources/v1/subscriptions.rb +166 -64
- data/lib/stigg/resources/v1/usage.rb +79 -0
- data/lib/stigg/resources/v1.rb +6 -42
- data/lib/stigg/version.rb +1 -1
- data/lib/stigg.rb +25 -16
- data/rbi/stigg/models/v1/{coupon_create_response.rbi → coupon.rbi} +156 -252
- data/rbi/stigg/models/v1/customer_import_params.rbi +130 -0
- data/rbi/stigg/models/v1/customer_import_response.rbi +76 -0
- data/rbi/stigg/models/v1/{customer_create_params.rbi → customer_provision_params.rbi} +35 -35
- data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_params.rbi +640 -0
- data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_response.rbi +690 -0
- data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbi +42 -0
- data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbi +696 -0
- data/rbi/stigg/models/v1/event_report_params.rbi +168 -0
- data/rbi/stigg/models/v1/event_report_response.rbi +35 -0
- data/rbi/stigg/models/v1/{subscription_migrate_response.rbi → subscription.rbi} +66 -117
- data/rbi/stigg/models/v1/subscription_cancel_params.rbi +182 -0
- data/rbi/stigg/models/v1/subscription_import_params.rbi +148 -0
- data/rbi/stigg/models/v1/subscription_import_response.rbi +69 -0
- data/rbi/stigg/models/v1/{subscription_create_params.rbi → subscription_provision_params.rbi} +794 -773
- data/rbi/stigg/models/v1/{subscription_create_response.rbi → subscription_provision_response.rbi} +481 -481
- data/rbi/stigg/models/v1/subscription_update_params.rbi +3578 -0
- data/rbi/stigg/models/v1/subscriptions/{future_update_cancel_schedule_response.rbi → cancel_subscription.rbi} +9 -16
- data/rbi/stigg/models/v1/usage_history_params.rbi +79 -0
- data/rbi/stigg/models/v1/usage_history_response.rbi +347 -0
- data/rbi/stigg/models/v1/usage_report_params.rbi +227 -0
- data/rbi/stigg/models/v1/usage_report_response.rbi +162 -0
- data/rbi/stigg/models.rbi +0 -4
- data/rbi/stigg/resources/v1/coupons.rbi +2 -2
- data/rbi/stigg/resources/v1/customers/promotional_entitlements.rbi +57 -0
- data/rbi/stigg/resources/v1/customers.rbi +53 -36
- data/rbi/stigg/resources/v1/events.rbi +28 -0
- data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +2 -6
- data/rbi/stigg/resources/v1/subscriptions.rbi +179 -74
- data/rbi/stigg/resources/v1/usage.rbi +57 -0
- data/rbi/stigg/resources/v1.rbi +4 -26
- data/sig/stigg/models/v1/{coupon_create_response.rbs → coupon.rbs} +29 -32
- data/sig/stigg/models/v1/customer_import_params.rbs +74 -0
- data/sig/stigg/models/v1/customer_import_response.rbs +30 -0
- data/sig/stigg/models/v1/{customer_create_params.rbs → customer_provision_params.rbs} +22 -22
- data/sig/stigg/models/v1/customers/promotional_entitlement_grant_params.rbs +234 -0
- data/sig/stigg/models/v1/customers/promotional_entitlement_grant_response.rbs +281 -0
- data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbs +27 -0
- data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbs +281 -0
- data/sig/stigg/models/v1/event_report_params.rbs +82 -0
- data/sig/stigg/models/v1/event_report_response.rbs +15 -0
- data/sig/stigg/models/v1/{subscription_retrieve_response.rbs → subscription.rbs} +36 -41
- data/sig/stigg/models/v1/subscription_cancel_params.rbs +79 -0
- data/sig/stigg/models/v1/subscription_import_params.rbs +84 -0
- data/sig/stigg/models/v1/subscription_import_response.rbs +30 -0
- data/sig/stigg/models/v1/{subscription_create_params.rbs → subscription_provision_params.rbs} +200 -200
- data/sig/stigg/models/v1/{subscription_create_response.rbs → subscription_provision_response.rbs} +106 -106
- data/sig/stigg/models/v1/subscription_update_params.rbs +1544 -0
- data/sig/stigg/models/v1/subscriptions/cancel_subscription.rbs +34 -0
- data/sig/stigg/models/v1/usage_history_params.rbs +52 -0
- data/sig/stigg/models/v1/usage_history_response.rbs +129 -0
- data/sig/stigg/models/v1/usage_report_params.rbs +102 -0
- data/sig/stigg/models/v1/usage_report_response.rbs +87 -0
- data/sig/stigg/models.rbs +0 -4
- data/sig/stigg/resources/v1/coupons.rbs +2 -2
- data/sig/stigg/resources/v1/customers/promotional_entitlements.rbs +23 -0
- data/sig/stigg/resources/v1/customers.rbs +17 -12
- data/sig/stigg/resources/v1/events.rbs +14 -0
- data/sig/stigg/resources/v1/subscriptions/future_update.rbs +2 -2
- data/sig/stigg/resources/v1/subscriptions.rbs +65 -32
- data/sig/stigg/resources/v1/usage.rbs +24 -0
- data/sig/stigg/resources/v1.rbs +2 -8
- metadata +77 -50
- data/lib/stigg/models/v1/coupon_retrieve_response.rb +0 -322
- data/lib/stigg/models/v1/subscription_delegate_response.rb +0 -314
- data/lib/stigg/models/v1/subscription_migrate_response.rb +0 -314
- data/lib/stigg/models/v1/subscription_transfer_response.rb +0 -314
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +0 -34
- data/lib/stigg/models/v1_create_event_params.rb +0 -89
- data/lib/stigg/models/v1_create_event_response.rb +0 -23
- data/lib/stigg/models/v1_create_usage_params.rb +0 -112
- data/lib/stigg/models/v1_create_usage_response.rb +0 -118
- data/lib/stigg/resources/v1/customers/usage.rb +0 -18
- data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +0 -987
- data/rbi/stigg/models/v1/subscription_delegate_response.rbi +0 -618
- data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +0 -618
- data/rbi/stigg/models/v1/subscription_transfer_response.rbi +0 -618
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +0 -80
- data/rbi/stigg/models/v1_create_event_params.rbi +0 -161
- data/rbi/stigg/models/v1_create_event_response.rbi +0 -30
- data/rbi/stigg/models/v1_create_usage_params.rbi +0 -217
- data/rbi/stigg/models/v1_create_usage_response.rbi +0 -157
- data/rbi/stigg/resources/v1/customers/usage.rbi +0 -16
- data/sig/stigg/models/v1/coupon_retrieve_response.rbs +0 -394
- data/sig/stigg/models/v1/subscription_delegate_response.rbs +0 -255
- data/sig/stigg/models/v1/subscription_migrate_response.rbs +0 -255
- data/sig/stigg/models/v1/subscription_transfer_response.rbs +0 -255
- data/sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbs +0 -34
- data/sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbs +0 -34
- data/sig/stigg/models/v1_create_event_params.rbs +0 -80
- data/sig/stigg/models/v1_create_event_response.rbs +0 -13
- data/sig/stigg/models/v1_create_usage_params.rbs +0 -100
- data/sig/stigg/models/v1_create_usage_response.rbs +0 -85
- data/sig/stigg/resources/v1/customers/usage.rbs +0 -11
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
module Stigg
|
|
4
4
|
module Models
|
|
5
5
|
module V1
|
|
6
|
-
# @see Stigg::Resources::V1::Subscriptions#
|
|
7
|
-
class
|
|
6
|
+
# @see Stigg::Resources::V1::Subscriptions#provision
|
|
7
|
+
class SubscriptionProvisionParams < Stigg::Internal::Type::BaseModel
|
|
8
8
|
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Stigg::Internal::Type::RequestParameters
|
|
10
10
|
|
|
@@ -28,15 +28,15 @@ module Stigg
|
|
|
28
28
|
|
|
29
29
|
# @!attribute addons
|
|
30
30
|
#
|
|
31
|
-
# @return [Array<Stigg::Models::V1::
|
|
32
|
-
optional :addons, -> { Stigg::Internal::Type::ArrayOf[Stigg::V1::
|
|
31
|
+
# @return [Array<Stigg::Models::V1::SubscriptionProvisionParams::Addon>, nil]
|
|
32
|
+
optional :addons, -> { Stigg::Internal::Type::ArrayOf[Stigg::V1::SubscriptionProvisionParams::Addon] }
|
|
33
33
|
|
|
34
34
|
# @!attribute applied_coupon
|
|
35
35
|
# Coupon configuration
|
|
36
36
|
#
|
|
37
|
-
# @return [Stigg::Models::V1::
|
|
37
|
+
# @return [Stigg::Models::V1::SubscriptionProvisionParams::AppliedCoupon, nil]
|
|
38
38
|
optional :applied_coupon,
|
|
39
|
-
-> { Stigg::V1::
|
|
39
|
+
-> { Stigg::V1::SubscriptionProvisionParams::AppliedCoupon },
|
|
40
40
|
api_name: :appliedCoupon
|
|
41
41
|
|
|
42
42
|
# @!attribute await_payment_confirmation
|
|
@@ -61,35 +61,35 @@ module Stigg
|
|
|
61
61
|
|
|
62
62
|
# @!attribute billing_information
|
|
63
63
|
#
|
|
64
|
-
# @return [Stigg::Models::V1::
|
|
64
|
+
# @return [Stigg::Models::V1::SubscriptionProvisionParams::BillingInformation, nil]
|
|
65
65
|
optional :billing_information,
|
|
66
|
-
-> { Stigg::V1::
|
|
66
|
+
-> { Stigg::V1::SubscriptionProvisionParams::BillingInformation },
|
|
67
67
|
api_name: :billingInformation
|
|
68
68
|
|
|
69
69
|
# @!attribute billing_period
|
|
70
70
|
# Billing period (MONTHLY or ANNUALLY)
|
|
71
71
|
#
|
|
72
|
-
# @return [Symbol, Stigg::Models::V1::
|
|
72
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::BillingPeriod, nil]
|
|
73
73
|
optional :billing_period,
|
|
74
|
-
enum: -> { Stigg::V1::
|
|
74
|
+
enum: -> { Stigg::V1::SubscriptionProvisionParams::BillingPeriod },
|
|
75
75
|
api_name: :billingPeriod
|
|
76
76
|
|
|
77
77
|
# @!attribute budget
|
|
78
78
|
#
|
|
79
|
-
# @return [Stigg::Models::V1::
|
|
80
|
-
optional :budget, -> { Stigg::V1::
|
|
79
|
+
# @return [Stigg::Models::V1::SubscriptionProvisionParams::Budget, nil]
|
|
80
|
+
optional :budget, -> { Stigg::V1::SubscriptionProvisionParams::Budget }, nil?: true
|
|
81
81
|
|
|
82
82
|
# @!attribute charges
|
|
83
83
|
#
|
|
84
|
-
# @return [Array<Stigg::Models::V1::
|
|
85
|
-
optional :charges, -> { Stigg::Internal::Type::ArrayOf[Stigg::V1::
|
|
84
|
+
# @return [Array<Stigg::Models::V1::SubscriptionProvisionParams::Charge>, nil]
|
|
85
|
+
optional :charges, -> { Stigg::Internal::Type::ArrayOf[Stigg::V1::SubscriptionProvisionParams::Charge] }
|
|
86
86
|
|
|
87
87
|
# @!attribute checkout_options
|
|
88
88
|
# Checkout page configuration for payment collection
|
|
89
89
|
#
|
|
90
|
-
# @return [Stigg::Models::V1::
|
|
90
|
+
# @return [Stigg::Models::V1::SubscriptionProvisionParams::CheckoutOptions, nil]
|
|
91
91
|
optional :checkout_options,
|
|
92
|
-
-> { Stigg::V1::
|
|
92
|
+
-> { Stigg::V1::SubscriptionProvisionParams::CheckoutOptions },
|
|
93
93
|
api_name: :checkoutOptions
|
|
94
94
|
|
|
95
95
|
# @!attribute metadata
|
|
@@ -100,9 +100,9 @@ module Stigg
|
|
|
100
100
|
|
|
101
101
|
# @!attribute minimum_spend
|
|
102
102
|
#
|
|
103
|
-
# @return [Stigg::Models::V1::
|
|
103
|
+
# @return [Stigg::Models::V1::SubscriptionProvisionParams::MinimumSpend, nil]
|
|
104
104
|
optional :minimum_spend,
|
|
105
|
-
-> { Stigg::V1::
|
|
105
|
+
-> { Stigg::V1::SubscriptionProvisionParams::MinimumSpend },
|
|
106
106
|
api_name: :minimumSpend,
|
|
107
107
|
nil?: true
|
|
108
108
|
|
|
@@ -115,16 +115,16 @@ module Stigg
|
|
|
115
115
|
# @!attribute payment_collection_method
|
|
116
116
|
# How payments should be collected for this subscription
|
|
117
117
|
#
|
|
118
|
-
# @return [Symbol, Stigg::Models::V1::
|
|
118
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::PaymentCollectionMethod, nil]
|
|
119
119
|
optional :payment_collection_method,
|
|
120
|
-
enum: -> { Stigg::V1::
|
|
120
|
+
enum: -> { Stigg::V1::SubscriptionProvisionParams::PaymentCollectionMethod },
|
|
121
121
|
api_name: :paymentCollectionMethod
|
|
122
122
|
|
|
123
123
|
# @!attribute price_overrides
|
|
124
124
|
#
|
|
125
|
-
# @return [Array<Stigg::Models::V1::
|
|
125
|
+
# @return [Array<Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride>, nil]
|
|
126
126
|
optional :price_overrides,
|
|
127
|
-
-> { Stigg::Internal::Type::ArrayOf[Stigg::V1::
|
|
127
|
+
-> { Stigg::Internal::Type::ArrayOf[Stigg::V1::SubscriptionProvisionParams::PriceOverride] },
|
|
128
128
|
api_name: :priceOverrides
|
|
129
129
|
|
|
130
130
|
# @!attribute resource_id
|
|
@@ -142,9 +142,9 @@ module Stigg
|
|
|
142
142
|
# @!attribute schedule_strategy
|
|
143
143
|
# Strategy for scheduling subscription changes
|
|
144
144
|
#
|
|
145
|
-
# @return [Symbol, Stigg::Models::V1::
|
|
145
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::ScheduleStrategy, nil]
|
|
146
146
|
optional :schedule_strategy,
|
|
147
|
-
enum: -> { Stigg::V1::
|
|
147
|
+
enum: -> { Stigg::V1::SubscriptionProvisionParams::ScheduleStrategy },
|
|
148
148
|
api_name: :scheduleStrategy
|
|
149
149
|
|
|
150
150
|
# @!attribute start_date
|
|
@@ -155,19 +155,19 @@ module Stigg
|
|
|
155
155
|
|
|
156
156
|
# @!attribute subscription_entitlements
|
|
157
157
|
#
|
|
158
|
-
# @return [Array<Stigg::Models::V1::
|
|
158
|
+
# @return [Array<Stigg::Models::V1::SubscriptionProvisionParams::SubscriptionEntitlement>, nil]
|
|
159
159
|
optional :subscription_entitlements,
|
|
160
160
|
-> {
|
|
161
|
-
Stigg::Internal::Type::ArrayOf[Stigg::V1::
|
|
161
|
+
Stigg::Internal::Type::ArrayOf[Stigg::V1::SubscriptionProvisionParams::SubscriptionEntitlement]
|
|
162
162
|
},
|
|
163
163
|
api_name: :subscriptionEntitlements
|
|
164
164
|
|
|
165
165
|
# @!attribute trial_override_configuration
|
|
166
166
|
# Trial period override settings
|
|
167
167
|
#
|
|
168
|
-
# @return [Stigg::Models::V1::
|
|
168
|
+
# @return [Stigg::Models::V1::SubscriptionProvisionParams::TrialOverrideConfiguration, nil]
|
|
169
169
|
optional :trial_override_configuration,
|
|
170
|
-
-> { Stigg::V1::
|
|
170
|
+
-> { Stigg::V1::SubscriptionProvisionParams::TrialOverrideConfiguration },
|
|
171
171
|
api_name: :trialOverrideConfiguration
|
|
172
172
|
|
|
173
173
|
# @!attribute unit_quantity
|
|
@@ -182,9 +182,9 @@ module Stigg
|
|
|
182
182
|
#
|
|
183
183
|
# @param id [String] Unique identifier for the subscription
|
|
184
184
|
#
|
|
185
|
-
# @param addons [Array<Stigg::Models::V1::
|
|
185
|
+
# @param addons [Array<Stigg::Models::V1::SubscriptionProvisionParams::Addon>]
|
|
186
186
|
#
|
|
187
|
-
# @param applied_coupon [Stigg::Models::V1::
|
|
187
|
+
# @param applied_coupon [Stigg::Models::V1::SubscriptionProvisionParams::AppliedCoupon] Coupon configuration
|
|
188
188
|
#
|
|
189
189
|
# @param await_payment_confirmation [Boolean] Whether to wait for payment confirmation before returning the subscription
|
|
190
190
|
#
|
|
@@ -192,37 +192,37 @@ module Stigg
|
|
|
192
192
|
#
|
|
193
193
|
# @param billing_id [String, nil] External billing system identifier
|
|
194
194
|
#
|
|
195
|
-
# @param billing_information [Stigg::Models::V1::
|
|
195
|
+
# @param billing_information [Stigg::Models::V1::SubscriptionProvisionParams::BillingInformation]
|
|
196
196
|
#
|
|
197
|
-
# @param billing_period [Symbol, Stigg::Models::V1::
|
|
197
|
+
# @param billing_period [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::BillingPeriod] Billing period (MONTHLY or ANNUALLY)
|
|
198
198
|
#
|
|
199
|
-
# @param budget [Stigg::Models::V1::
|
|
199
|
+
# @param budget [Stigg::Models::V1::SubscriptionProvisionParams::Budget, nil]
|
|
200
200
|
#
|
|
201
|
-
# @param charges [Array<Stigg::Models::V1::
|
|
201
|
+
# @param charges [Array<Stigg::Models::V1::SubscriptionProvisionParams::Charge>]
|
|
202
202
|
#
|
|
203
|
-
# @param checkout_options [Stigg::Models::V1::
|
|
203
|
+
# @param checkout_options [Stigg::Models::V1::SubscriptionProvisionParams::CheckoutOptions] Checkout page configuration for payment collection
|
|
204
204
|
#
|
|
205
205
|
# @param metadata [Hash{Symbol=>String}] Additional metadata for the subscription
|
|
206
206
|
#
|
|
207
|
-
# @param minimum_spend [Stigg::Models::V1::
|
|
207
|
+
# @param minimum_spend [Stigg::Models::V1::SubscriptionProvisionParams::MinimumSpend, nil]
|
|
208
208
|
#
|
|
209
209
|
# @param paying_customer_id [String, nil] Optional paying customer ID for split billing scenarios
|
|
210
210
|
#
|
|
211
|
-
# @param payment_collection_method [Symbol, Stigg::Models::V1::
|
|
211
|
+
# @param payment_collection_method [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::PaymentCollectionMethod] How payments should be collected for this subscription
|
|
212
212
|
#
|
|
213
|
-
# @param price_overrides [Array<Stigg::Models::V1::
|
|
213
|
+
# @param price_overrides [Array<Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride>]
|
|
214
214
|
#
|
|
215
215
|
# @param resource_id [String, nil] Optional resource ID for multi-instance subscriptions
|
|
216
216
|
#
|
|
217
217
|
# @param salesforce_id [String, nil] Salesforce ID
|
|
218
218
|
#
|
|
219
|
-
# @param schedule_strategy [Symbol, Stigg::Models::V1::
|
|
219
|
+
# @param schedule_strategy [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::ScheduleStrategy] Strategy for scheduling subscription changes
|
|
220
220
|
#
|
|
221
221
|
# @param start_date [Time] Subscription start date
|
|
222
222
|
#
|
|
223
|
-
# @param subscription_entitlements [Array<Stigg::Models::V1::
|
|
223
|
+
# @param subscription_entitlements [Array<Stigg::Models::V1::SubscriptionProvisionParams::SubscriptionEntitlement>]
|
|
224
224
|
#
|
|
225
|
-
# @param trial_override_configuration [Stigg::Models::V1::
|
|
225
|
+
# @param trial_override_configuration [Stigg::Models::V1::SubscriptionProvisionParams::TrialOverrideConfiguration] Trial period override settings
|
|
226
226
|
#
|
|
227
227
|
# @param unit_quantity [Float]
|
|
228
228
|
#
|
|
@@ -257,8 +257,8 @@ module Stigg
|
|
|
257
257
|
# @!attribute configuration
|
|
258
258
|
# Coupon timing configuration
|
|
259
259
|
#
|
|
260
|
-
# @return [Stigg::Models::V1::
|
|
261
|
-
optional :configuration, -> { Stigg::V1::
|
|
260
|
+
# @return [Stigg::Models::V1::SubscriptionProvisionParams::AppliedCoupon::Configuration, nil]
|
|
261
|
+
optional :configuration, -> { Stigg::V1::SubscriptionProvisionParams::AppliedCoupon::Configuration }
|
|
262
262
|
|
|
263
263
|
# @!attribute coupon_id
|
|
264
264
|
# Stigg coupon ID
|
|
@@ -269,8 +269,8 @@ module Stigg
|
|
|
269
269
|
# @!attribute discount
|
|
270
270
|
# Ad-hoc discount configuration
|
|
271
271
|
#
|
|
272
|
-
# @return [Stigg::Models::V1::
|
|
273
|
-
optional :discount, -> { Stigg::V1::
|
|
272
|
+
# @return [Stigg::Models::V1::SubscriptionProvisionParams::AppliedCoupon::Discount, nil]
|
|
273
|
+
optional :discount, -> { Stigg::V1::SubscriptionProvisionParams::AppliedCoupon::Discount }
|
|
274
274
|
|
|
275
275
|
# @!attribute promotion_code
|
|
276
276
|
# Promotion code to apply
|
|
@@ -283,15 +283,15 @@ module Stigg
|
|
|
283
283
|
#
|
|
284
284
|
# @param billing_coupon_id [String] Billing provider coupon ID
|
|
285
285
|
#
|
|
286
|
-
# @param configuration [Stigg::Models::V1::
|
|
286
|
+
# @param configuration [Stigg::Models::V1::SubscriptionProvisionParams::AppliedCoupon::Configuration] Coupon timing configuration
|
|
287
287
|
#
|
|
288
288
|
# @param coupon_id [String] Stigg coupon ID
|
|
289
289
|
#
|
|
290
|
-
# @param discount [Stigg::Models::V1::
|
|
290
|
+
# @param discount [Stigg::Models::V1::SubscriptionProvisionParams::AppliedCoupon::Discount] Ad-hoc discount configuration
|
|
291
291
|
#
|
|
292
292
|
# @param promotion_code [String] Promotion code to apply
|
|
293
293
|
|
|
294
|
-
# @see Stigg::Models::V1::
|
|
294
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::AppliedCoupon#configuration
|
|
295
295
|
class Configuration < Stigg::Internal::Type::BaseModel
|
|
296
296
|
# @!attribute start_date
|
|
297
297
|
# Coupon start date
|
|
@@ -305,15 +305,15 @@ module Stigg
|
|
|
305
305
|
# @param start_date [Time] Coupon start date
|
|
306
306
|
end
|
|
307
307
|
|
|
308
|
-
# @see Stigg::Models::V1::
|
|
308
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::AppliedCoupon#discount
|
|
309
309
|
class Discount < Stigg::Internal::Type::BaseModel
|
|
310
310
|
# @!attribute amounts_off
|
|
311
311
|
# Fixed amounts off by currency
|
|
312
312
|
#
|
|
313
|
-
# @return [Array<Stigg::Models::V1::
|
|
313
|
+
# @return [Array<Stigg::Models::V1::SubscriptionProvisionParams::AppliedCoupon::Discount::AmountsOff>, nil]
|
|
314
314
|
optional :amounts_off,
|
|
315
315
|
-> {
|
|
316
|
-
Stigg::Internal::Type::ArrayOf[Stigg::V1::
|
|
316
|
+
Stigg::Internal::Type::ArrayOf[Stigg::V1::SubscriptionProvisionParams::AppliedCoupon::Discount::AmountsOff]
|
|
317
317
|
},
|
|
318
318
|
api_name: :amountsOff,
|
|
319
319
|
nil?: true
|
|
@@ -345,7 +345,7 @@ module Stigg
|
|
|
345
345
|
# @!method initialize(amounts_off: nil, description: nil, duration_in_months: nil, name: nil, percent_off: nil)
|
|
346
346
|
# Ad-hoc discount configuration
|
|
347
347
|
#
|
|
348
|
-
# @param amounts_off [Array<Stigg::Models::V1::
|
|
348
|
+
# @param amounts_off [Array<Stigg::Models::V1::SubscriptionProvisionParams::AppliedCoupon::Discount::AmountsOff>, nil] Fixed amounts off by currency
|
|
349
349
|
#
|
|
350
350
|
# @param description [String] Ad-hoc discount
|
|
351
351
|
#
|
|
@@ -365,18 +365,18 @@ module Stigg
|
|
|
365
365
|
# @!attribute currency
|
|
366
366
|
# The price currency
|
|
367
367
|
#
|
|
368
|
-
# @return [Symbol, Stigg::Models::V1::
|
|
368
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::AppliedCoupon::Discount::AmountsOff::Currency]
|
|
369
369
|
required :currency,
|
|
370
|
-
enum: -> { Stigg::V1::
|
|
370
|
+
enum: -> { Stigg::V1::SubscriptionProvisionParams::AppliedCoupon::Discount::AmountsOff::Currency }
|
|
371
371
|
|
|
372
372
|
# @!method initialize(amount:, currency:)
|
|
373
373
|
# @param amount [Float] The price amount
|
|
374
374
|
#
|
|
375
|
-
# @param currency [Symbol, Stigg::Models::V1::
|
|
375
|
+
# @param currency [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::AppliedCoupon::Discount::AmountsOff::Currency] The price currency
|
|
376
376
|
|
|
377
377
|
# The price currency
|
|
378
378
|
#
|
|
379
|
-
# @see Stigg::Models::V1::
|
|
379
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::AppliedCoupon::Discount::AmountsOff#currency
|
|
380
380
|
module Currency
|
|
381
381
|
extend Stigg::Internal::Type::Enum
|
|
382
382
|
|
|
@@ -508,9 +508,9 @@ module Stigg
|
|
|
508
508
|
# @!attribute billing_address
|
|
509
509
|
# Billing address for the subscription
|
|
510
510
|
#
|
|
511
|
-
# @return [Stigg::Models::V1::
|
|
511
|
+
# @return [Stigg::Models::V1::SubscriptionProvisionParams::BillingInformation::BillingAddress, nil]
|
|
512
512
|
optional :billing_address,
|
|
513
|
-
-> { Stigg::V1::
|
|
513
|
+
-> { Stigg::V1::SubscriptionProvisionParams::BillingInformation::BillingAddress },
|
|
514
514
|
api_name: :billingAddress
|
|
515
515
|
|
|
516
516
|
# @!attribute charge_on_behalf_of_account
|
|
@@ -552,18 +552,18 @@ module Stigg
|
|
|
552
552
|
# @!attribute proration_behavior
|
|
553
553
|
# How to handle proration for billing changes
|
|
554
554
|
#
|
|
555
|
-
# @return [Symbol, Stigg::Models::V1::
|
|
555
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::BillingInformation::ProrationBehavior, nil]
|
|
556
556
|
optional :proration_behavior,
|
|
557
|
-
enum: -> { Stigg::V1::
|
|
557
|
+
enum: -> { Stigg::V1::SubscriptionProvisionParams::BillingInformation::ProrationBehavior },
|
|
558
558
|
api_name: :prorationBehavior
|
|
559
559
|
|
|
560
560
|
# @!attribute tax_ids
|
|
561
561
|
# Customer tax identification numbers
|
|
562
562
|
#
|
|
563
|
-
# @return [Array<Stigg::Models::V1::
|
|
563
|
+
# @return [Array<Stigg::Models::V1::SubscriptionProvisionParams::BillingInformation::TaxID>, nil]
|
|
564
564
|
optional :tax_ids,
|
|
565
565
|
-> {
|
|
566
|
-
Stigg::Internal::Type::ArrayOf[Stigg::V1::
|
|
566
|
+
Stigg::Internal::Type::ArrayOf[Stigg::V1::SubscriptionProvisionParams::BillingInformation::TaxID]
|
|
567
567
|
},
|
|
568
568
|
api_name: :taxIds
|
|
569
569
|
|
|
@@ -580,7 +580,7 @@ module Stigg
|
|
|
580
580
|
optional :tax_rate_ids, Stigg::Internal::Type::ArrayOf[String], api_name: :taxRateIds
|
|
581
581
|
|
|
582
582
|
# @!method initialize(billing_address: nil, charge_on_behalf_of_account: nil, integration_id: nil, invoice_days_until_due: nil, is_backdated: nil, is_invoice_paid: nil, metadata: nil, proration_behavior: nil, tax_ids: nil, tax_percentage: nil, tax_rate_ids: nil)
|
|
583
|
-
# @param billing_address [Stigg::Models::V1::
|
|
583
|
+
# @param billing_address [Stigg::Models::V1::SubscriptionProvisionParams::BillingInformation::BillingAddress] Billing address for the subscription
|
|
584
584
|
#
|
|
585
585
|
# @param charge_on_behalf_of_account [String, nil] Stripe Connect account to charge on behalf of
|
|
586
586
|
#
|
|
@@ -594,15 +594,15 @@ module Stigg
|
|
|
594
594
|
#
|
|
595
595
|
# @param metadata [Hash{Symbol=>String}] Additional metadata for the subscription
|
|
596
596
|
#
|
|
597
|
-
# @param proration_behavior [Symbol, Stigg::Models::V1::
|
|
597
|
+
# @param proration_behavior [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::BillingInformation::ProrationBehavior] How to handle proration for billing changes
|
|
598
598
|
#
|
|
599
|
-
# @param tax_ids [Array<Stigg::Models::V1::
|
|
599
|
+
# @param tax_ids [Array<Stigg::Models::V1::SubscriptionProvisionParams::BillingInformation::TaxID>] Customer tax identification numbers
|
|
600
600
|
#
|
|
601
601
|
# @param tax_percentage [Float] Tax percentage (0-100)
|
|
602
602
|
#
|
|
603
603
|
# @param tax_rate_ids [Array<String>] Tax rate identifiers to apply
|
|
604
604
|
|
|
605
|
-
# @see Stigg::Models::V1::
|
|
605
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::BillingInformation#billing_address
|
|
606
606
|
class BillingAddress < Stigg::Internal::Type::BaseModel
|
|
607
607
|
# @!attribute city
|
|
608
608
|
#
|
|
@@ -647,7 +647,7 @@ module Stigg
|
|
|
647
647
|
|
|
648
648
|
# How to handle proration for billing changes
|
|
649
649
|
#
|
|
650
|
-
# @see Stigg::Models::V1::
|
|
650
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::BillingInformation#proration_behavior
|
|
651
651
|
module ProrationBehavior
|
|
652
652
|
extend Stigg::Internal::Type::Enum
|
|
653
653
|
|
|
@@ -725,8 +725,8 @@ module Stigg
|
|
|
725
725
|
# @!attribute type
|
|
726
726
|
# Charge type
|
|
727
727
|
#
|
|
728
|
-
# @return [Symbol, Stigg::Models::V1::
|
|
729
|
-
required :type, enum: -> { Stigg::V1::
|
|
728
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::Charge::Type]
|
|
729
|
+
required :type, enum: -> { Stigg::V1::SubscriptionProvisionParams::Charge::Type }
|
|
730
730
|
|
|
731
731
|
# @!method initialize(id:, quantity:, type:)
|
|
732
732
|
# Charge item
|
|
@@ -735,11 +735,11 @@ module Stigg
|
|
|
735
735
|
#
|
|
736
736
|
# @param quantity [Float] Charge quantity
|
|
737
737
|
#
|
|
738
|
-
# @param type [Symbol, Stigg::Models::V1::
|
|
738
|
+
# @param type [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::Charge::Type] Charge type
|
|
739
739
|
|
|
740
740
|
# Charge type
|
|
741
741
|
#
|
|
742
|
-
# @see Stigg::Models::V1::
|
|
742
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::Charge#type
|
|
743
743
|
module Type
|
|
744
744
|
extend Stigg::Internal::Type::Enum
|
|
745
745
|
|
|
@@ -816,13 +816,13 @@ module Stigg
|
|
|
816
816
|
# @!attribute minimum
|
|
817
817
|
# Minimum spend amount
|
|
818
818
|
#
|
|
819
|
-
# @return [Stigg::Models::V1::
|
|
820
|
-
optional :minimum, -> { Stigg::V1::
|
|
819
|
+
# @return [Stigg::Models::V1::SubscriptionProvisionParams::MinimumSpend::Minimum, nil]
|
|
820
|
+
optional :minimum, -> { Stigg::V1::SubscriptionProvisionParams::MinimumSpend::Minimum }, nil?: true
|
|
821
821
|
|
|
822
822
|
# @!method initialize(minimum: nil)
|
|
823
|
-
# @param minimum [Stigg::Models::V1::
|
|
823
|
+
# @param minimum [Stigg::Models::V1::SubscriptionProvisionParams::MinimumSpend::Minimum, nil] Minimum spend amount
|
|
824
824
|
|
|
825
|
-
# @see Stigg::Models::V1::
|
|
825
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::MinimumSpend#minimum
|
|
826
826
|
class Minimum < Stigg::Internal::Type::BaseModel
|
|
827
827
|
# @!attribute amount
|
|
828
828
|
# The price amount
|
|
@@ -839,8 +839,8 @@ module Stigg
|
|
|
839
839
|
# @!attribute currency
|
|
840
840
|
# The price currency
|
|
841
841
|
#
|
|
842
|
-
# @return [Symbol, Stigg::Models::V1::
|
|
843
|
-
optional :currency, enum: -> { Stigg::V1::
|
|
842
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::MinimumSpend::Minimum::Currency, nil]
|
|
843
|
+
optional :currency, enum: -> { Stigg::V1::SubscriptionProvisionParams::MinimumSpend::Minimum::Currency }
|
|
844
844
|
|
|
845
845
|
# @!method initialize(amount: nil, billing_country_code: nil, currency: nil)
|
|
846
846
|
# Minimum spend amount
|
|
@@ -849,11 +849,11 @@ module Stigg
|
|
|
849
849
|
#
|
|
850
850
|
# @param billing_country_code [String, nil] The billing country code of the price
|
|
851
851
|
#
|
|
852
|
-
# @param currency [Symbol, Stigg::Models::V1::
|
|
852
|
+
# @param currency [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::MinimumSpend::Minimum::Currency] The price currency
|
|
853
853
|
|
|
854
854
|
# The price currency
|
|
855
855
|
#
|
|
856
|
-
# @see Stigg::Models::V1::
|
|
856
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::MinimumSpend::Minimum#currency
|
|
857
857
|
module Currency
|
|
858
858
|
extend Stigg::Internal::Type::Enum
|
|
859
859
|
|
|
@@ -1013,16 +1013,16 @@ module Stigg
|
|
|
1013
1013
|
|
|
1014
1014
|
# @!attribute credit_grant_cadence
|
|
1015
1015
|
#
|
|
1016
|
-
# @return [Symbol, Stigg::Models::V1::
|
|
1016
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::CreditGrantCadence, nil]
|
|
1017
1017
|
optional :credit_grant_cadence,
|
|
1018
|
-
enum: -> { Stigg::V1::
|
|
1018
|
+
enum: -> { Stigg::V1::SubscriptionProvisionParams::PriceOverride::CreditGrantCadence },
|
|
1019
1019
|
api_name: :creditGrantCadence
|
|
1020
1020
|
|
|
1021
1021
|
# @!attribute credit_rate
|
|
1022
1022
|
#
|
|
1023
|
-
# @return [Stigg::Models::V1::
|
|
1023
|
+
# @return [Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::CreditRate, nil]
|
|
1024
1024
|
optional :credit_rate,
|
|
1025
|
-
-> { Stigg::V1::
|
|
1025
|
+
-> { Stigg::V1::SubscriptionProvisionParams::PriceOverride::CreditRate },
|
|
1026
1026
|
api_name: :creditRate
|
|
1027
1027
|
|
|
1028
1028
|
# @!attribute feature_id
|
|
@@ -1034,15 +1034,15 @@ module Stigg
|
|
|
1034
1034
|
# @!attribute price
|
|
1035
1035
|
# Override price amount
|
|
1036
1036
|
#
|
|
1037
|
-
# @return [Stigg::Models::V1::
|
|
1038
|
-
optional :price, -> { Stigg::V1::
|
|
1037
|
+
# @return [Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Price, nil]
|
|
1038
|
+
optional :price, -> { Stigg::V1::SubscriptionProvisionParams::PriceOverride::Price }
|
|
1039
1039
|
|
|
1040
1040
|
# @!attribute tiers
|
|
1041
1041
|
# Pricing tiers configuration
|
|
1042
1042
|
#
|
|
1043
|
-
# @return [Array<Stigg::Models::V1::
|
|
1043
|
+
# @return [Array<Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Tier>, nil]
|
|
1044
1044
|
optional :tiers,
|
|
1045
|
-
-> { Stigg::Internal::Type::ArrayOf[Stigg::V1::
|
|
1045
|
+
-> { Stigg::Internal::Type::ArrayOf[Stigg::V1::SubscriptionProvisionParams::PriceOverride::Tier] }
|
|
1046
1046
|
|
|
1047
1047
|
# @!method initialize(addon_id: nil, base_charge: nil, block_size: nil, credit_grant_cadence: nil, credit_rate: nil, feature_id: nil, price: nil, tiers: nil)
|
|
1048
1048
|
# @param addon_id [String, nil] Addon identifier for the price override
|
|
@@ -1051,17 +1051,17 @@ module Stigg
|
|
|
1051
1051
|
#
|
|
1052
1052
|
# @param block_size [Float] Block size for pricing
|
|
1053
1053
|
#
|
|
1054
|
-
# @param credit_grant_cadence [Symbol, Stigg::Models::V1::
|
|
1054
|
+
# @param credit_grant_cadence [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::CreditGrantCadence]
|
|
1055
1055
|
#
|
|
1056
|
-
# @param credit_rate [Stigg::Models::V1::
|
|
1056
|
+
# @param credit_rate [Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::CreditRate]
|
|
1057
1057
|
#
|
|
1058
1058
|
# @param feature_id [String, nil] Feature identifier for the price override
|
|
1059
1059
|
#
|
|
1060
|
-
# @param price [Stigg::Models::V1::
|
|
1060
|
+
# @param price [Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Price] Override price amount
|
|
1061
1061
|
#
|
|
1062
|
-
# @param tiers [Array<Stigg::Models::V1::
|
|
1062
|
+
# @param tiers [Array<Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Tier>] Pricing tiers configuration
|
|
1063
1063
|
|
|
1064
|
-
# @see Stigg::Models::V1::
|
|
1064
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride#credit_grant_cadence
|
|
1065
1065
|
module CreditGrantCadence
|
|
1066
1066
|
extend Stigg::Internal::Type::Enum
|
|
1067
1067
|
|
|
@@ -1072,7 +1072,7 @@ module Stigg
|
|
|
1072
1072
|
# @return [Array<Symbol>]
|
|
1073
1073
|
end
|
|
1074
1074
|
|
|
1075
|
-
# @see Stigg::Models::V1::
|
|
1075
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride#credit_rate
|
|
1076
1076
|
class CreditRate < Stigg::Internal::Type::BaseModel
|
|
1077
1077
|
# @!attribute amount
|
|
1078
1078
|
# The credit rate amount
|
|
@@ -1100,7 +1100,7 @@ module Stigg
|
|
|
1100
1100
|
# @param cost_formula [String, nil] A custom formula for calculating cost based on single event dimensions
|
|
1101
1101
|
end
|
|
1102
1102
|
|
|
1103
|
-
# @see Stigg::Models::V1::
|
|
1103
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride#price
|
|
1104
1104
|
class Price < Stigg::Internal::Type::BaseModel
|
|
1105
1105
|
# @!attribute amount
|
|
1106
1106
|
# The price amount
|
|
@@ -1117,8 +1117,8 @@ module Stigg
|
|
|
1117
1117
|
# @!attribute currency
|
|
1118
1118
|
# The price currency
|
|
1119
1119
|
#
|
|
1120
|
-
# @return [Symbol, Stigg::Models::V1::
|
|
1121
|
-
optional :currency, enum: -> { Stigg::V1::
|
|
1120
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Price::Currency, nil]
|
|
1121
|
+
optional :currency, enum: -> { Stigg::V1::SubscriptionProvisionParams::PriceOverride::Price::Currency }
|
|
1122
1122
|
|
|
1123
1123
|
# @!method initialize(amount: nil, billing_country_code: nil, currency: nil)
|
|
1124
1124
|
# Override price amount
|
|
@@ -1127,11 +1127,11 @@ module Stigg
|
|
|
1127
1127
|
#
|
|
1128
1128
|
# @param billing_country_code [String, nil] The billing country code of the price
|
|
1129
1129
|
#
|
|
1130
|
-
# @param currency [Symbol, Stigg::Models::V1::
|
|
1130
|
+
# @param currency [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Price::Currency] The price currency
|
|
1131
1131
|
|
|
1132
1132
|
# The price currency
|
|
1133
1133
|
#
|
|
1134
|
-
# @see Stigg::Models::V1::
|
|
1134
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Price#currency
|
|
1135
1135
|
module Currency
|
|
1136
1136
|
extend Stigg::Internal::Type::Enum
|
|
1137
1137
|
|
|
@@ -1261,17 +1261,17 @@ module Stigg
|
|
|
1261
1261
|
# @!attribute flat_price
|
|
1262
1262
|
# The flat fee price of the price tier
|
|
1263
1263
|
#
|
|
1264
|
-
# @return [Stigg::Models::V1::
|
|
1264
|
+
# @return [Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Tier::FlatPrice, nil]
|
|
1265
1265
|
optional :flat_price,
|
|
1266
|
-
-> { Stigg::V1::
|
|
1266
|
+
-> { Stigg::V1::SubscriptionProvisionParams::PriceOverride::Tier::FlatPrice },
|
|
1267
1267
|
api_name: :flatPrice
|
|
1268
1268
|
|
|
1269
1269
|
# @!attribute unit_price
|
|
1270
1270
|
# The unit price of the price tier
|
|
1271
1271
|
#
|
|
1272
|
-
# @return [Stigg::Models::V1::
|
|
1272
|
+
# @return [Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Tier::UnitPrice, nil]
|
|
1273
1273
|
optional :unit_price,
|
|
1274
|
-
-> { Stigg::V1::
|
|
1274
|
+
-> { Stigg::V1::SubscriptionProvisionParams::PriceOverride::Tier::UnitPrice },
|
|
1275
1275
|
api_name: :unitPrice
|
|
1276
1276
|
|
|
1277
1277
|
# @!attribute up_to
|
|
@@ -1281,13 +1281,13 @@ module Stigg
|
|
|
1281
1281
|
optional :up_to, Float, api_name: :upTo
|
|
1282
1282
|
|
|
1283
1283
|
# @!method initialize(flat_price: nil, unit_price: nil, up_to: nil)
|
|
1284
|
-
# @param flat_price [Stigg::Models::V1::
|
|
1284
|
+
# @param flat_price [Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Tier::FlatPrice] The flat fee price of the price tier
|
|
1285
1285
|
#
|
|
1286
|
-
# @param unit_price [Stigg::Models::V1::
|
|
1286
|
+
# @param unit_price [Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Tier::UnitPrice] The unit price of the price tier
|
|
1287
1287
|
#
|
|
1288
1288
|
# @param up_to [Float] The up to quantity of the price tier
|
|
1289
1289
|
|
|
1290
|
-
# @see Stigg::Models::V1::
|
|
1290
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Tier#flat_price
|
|
1291
1291
|
class FlatPrice < Stigg::Internal::Type::BaseModel
|
|
1292
1292
|
# @!attribute amount
|
|
1293
1293
|
# The price amount
|
|
@@ -1304,9 +1304,9 @@ module Stigg
|
|
|
1304
1304
|
# @!attribute currency
|
|
1305
1305
|
# The price currency
|
|
1306
1306
|
#
|
|
1307
|
-
# @return [Symbol, Stigg::Models::V1::
|
|
1307
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Tier::FlatPrice::Currency, nil]
|
|
1308
1308
|
optional :currency,
|
|
1309
|
-
enum: -> { Stigg::V1::
|
|
1309
|
+
enum: -> { Stigg::V1::SubscriptionProvisionParams::PriceOverride::Tier::FlatPrice::Currency }
|
|
1310
1310
|
|
|
1311
1311
|
# @!method initialize(amount: nil, billing_country_code: nil, currency: nil)
|
|
1312
1312
|
# The flat fee price of the price tier
|
|
@@ -1315,11 +1315,11 @@ module Stigg
|
|
|
1315
1315
|
#
|
|
1316
1316
|
# @param billing_country_code [String, nil] The billing country code of the price
|
|
1317
1317
|
#
|
|
1318
|
-
# @param currency [Symbol, Stigg::Models::V1::
|
|
1318
|
+
# @param currency [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Tier::FlatPrice::Currency] The price currency
|
|
1319
1319
|
|
|
1320
1320
|
# The price currency
|
|
1321
1321
|
#
|
|
1322
|
-
# @see Stigg::Models::V1::
|
|
1322
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Tier::FlatPrice#currency
|
|
1323
1323
|
module Currency
|
|
1324
1324
|
extend Stigg::Internal::Type::Enum
|
|
1325
1325
|
|
|
@@ -1445,7 +1445,7 @@ module Stigg
|
|
|
1445
1445
|
end
|
|
1446
1446
|
end
|
|
1447
1447
|
|
|
1448
|
-
# @see Stigg::Models::V1::
|
|
1448
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Tier#unit_price
|
|
1449
1449
|
class UnitPrice < Stigg::Internal::Type::BaseModel
|
|
1450
1450
|
# @!attribute amount
|
|
1451
1451
|
# The price amount
|
|
@@ -1462,9 +1462,9 @@ module Stigg
|
|
|
1462
1462
|
# @!attribute currency
|
|
1463
1463
|
# The price currency
|
|
1464
1464
|
#
|
|
1465
|
-
# @return [Symbol, Stigg::Models::V1::
|
|
1465
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Tier::UnitPrice::Currency, nil]
|
|
1466
1466
|
optional :currency,
|
|
1467
|
-
enum: -> { Stigg::V1::
|
|
1467
|
+
enum: -> { Stigg::V1::SubscriptionProvisionParams::PriceOverride::Tier::UnitPrice::Currency }
|
|
1468
1468
|
|
|
1469
1469
|
# @!method initialize(amount: nil, billing_country_code: nil, currency: nil)
|
|
1470
1470
|
# The unit price of the price tier
|
|
@@ -1473,11 +1473,11 @@ module Stigg
|
|
|
1473
1473
|
#
|
|
1474
1474
|
# @param billing_country_code [String, nil] The billing country code of the price
|
|
1475
1475
|
#
|
|
1476
|
-
# @param currency [Symbol, Stigg::Models::V1::
|
|
1476
|
+
# @param currency [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Tier::UnitPrice::Currency] The price currency
|
|
1477
1477
|
|
|
1478
1478
|
# The price currency
|
|
1479
1479
|
#
|
|
1480
|
-
# @see Stigg::Models::V1::
|
|
1480
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::PriceOverride::Tier::UnitPrice#currency
|
|
1481
1481
|
module Currency
|
|
1482
1482
|
extend Stigg::Internal::Type::Enum
|
|
1483
1483
|
|
|
@@ -1652,10 +1652,10 @@ module Stigg
|
|
|
1652
1652
|
# @!attribute trial_end_behavior
|
|
1653
1653
|
# Behavior when trial ends: CONVERT_TO_PAID or CANCEL_SUBSCRIPTION
|
|
1654
1654
|
#
|
|
1655
|
-
# @return [Symbol, Stigg::Models::V1::
|
|
1655
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::TrialOverrideConfiguration::TrialEndBehavior, nil]
|
|
1656
1656
|
optional :trial_end_behavior,
|
|
1657
1657
|
enum: -> {
|
|
1658
|
-
Stigg::V1::
|
|
1658
|
+
Stigg::V1::SubscriptionProvisionParams::TrialOverrideConfiguration::TrialEndBehavior
|
|
1659
1659
|
},
|
|
1660
1660
|
api_name: :trialEndBehavior
|
|
1661
1661
|
|
|
@@ -1670,13 +1670,13 @@ module Stigg
|
|
|
1670
1670
|
#
|
|
1671
1671
|
# @param is_trial [Boolean] Whether the subscription should start with a trial period
|
|
1672
1672
|
#
|
|
1673
|
-
# @param trial_end_behavior [Symbol, Stigg::Models::V1::
|
|
1673
|
+
# @param trial_end_behavior [Symbol, Stigg::Models::V1::SubscriptionProvisionParams::TrialOverrideConfiguration::TrialEndBehavior] Behavior when trial ends: CONVERT_TO_PAID or CANCEL_SUBSCRIPTION
|
|
1674
1674
|
#
|
|
1675
1675
|
# @param trial_end_date [Time] Custom trial end date
|
|
1676
1676
|
|
|
1677
1677
|
# Behavior when trial ends: CONVERT_TO_PAID or CANCEL_SUBSCRIPTION
|
|
1678
1678
|
#
|
|
1679
|
-
# @see Stigg::Models::V1::
|
|
1679
|
+
# @see Stigg::Models::V1::SubscriptionProvisionParams::TrialOverrideConfiguration#trial_end_behavior
|
|
1680
1680
|
module TrialEndBehavior
|
|
1681
1681
|
extend Stigg::Internal::Type::Enum
|
|
1682
1682
|
|