orb-billing 1.57.0 → 1.59.0
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 +16 -0
- data/README.md +1 -1
- data/lib/orb/client.rb +0 -8
- data/lib/orb/models/invoice_list_params.rb +12 -11
- data/lib/orb/models/invoice_list_summary_params.rb +12 -11
- data/lib/orb/models/invoice_status_filter.rb +18 -0
- data/lib/orb/models/migration_create_params.rb +10 -1
- data/lib/orb/models/{beta_create_plan_version_params.rb → plan_create_plan_version_params.rb} +430 -430
- data/lib/orb/models/{beta_fetch_plan_version_params.rb → plan_fetch_plan_version_params.rb} +2 -2
- data/lib/orb/models/{beta_set_default_plan_version_params.rb → plan_set_default_plan_version_params.rb} +2 -2
- data/lib/orb/models/plan_version.rb +1 -1
- data/lib/orb/models/plans/draft_discard_params.rb +22 -0
- data/lib/orb/models/plans/draft_fetch_params.rb +22 -0
- data/lib/orb/models/plans/draft_publish_params.rb +31 -0
- data/lib/orb/models/plans/draft_save_params.rb +7522 -0
- data/lib/orb/models/plans/external_plan_id/draft_discard_params.rb +24 -0
- data/lib/orb/models/plans/external_plan_id/draft_fetch_params.rb +24 -0
- data/lib/orb/models/plans/external_plan_id/draft_publish_params.rb +33 -0
- data/lib/orb/models/plans/external_plan_id/draft_save_params.rb +7595 -0
- data/lib/orb/models/{beta → plans}/external_plan_id_create_plan_version_params.rb +430 -430
- data/lib/orb/models/{beta → plans}/external_plan_id_fetch_plan_version_params.rb +2 -2
- data/lib/orb/models/{beta → plans}/external_plan_id_set_default_plan_version_params.rb +2 -2
- data/lib/orb/models/plans/plan_version_draft.rb +279 -0
- data/lib/orb/models/subscription_list_params.rb +52 -15
- data/lib/orb/models/subscription_list_summary_params.rb +50 -15
- data/lib/orb/models/subscription_status_filter.rb +16 -0
- data/lib/orb/models.rb +10 -8
- data/lib/orb/resources/customers/credits/ledger.rb +56 -0
- data/lib/orb/resources/invoices.rb +16 -2
- data/lib/orb/resources/migrations.rb +3 -1
- data/lib/orb/resources/plans/draft.rb +124 -0
- data/lib/orb/resources/plans/external_plan_id/draft.rb +126 -0
- data/lib/orb/resources/plans/external_plan_id.rb +96 -0
- data/lib/orb/resources/plans.rb +96 -0
- data/lib/orb/resources/subscriptions.rb +6 -6
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +19 -8
- data/rbi/orb/client.rbi +0 -7
- data/rbi/orb/models/invoice_list_params.rbi +37 -17
- data/rbi/orb/models/invoice_list_summary_params.rbi +38 -18
- data/rbi/orb/models/invoice_status_filter.rbi +22 -0
- data/rbi/orb/models/migration_create_params.rbi +13 -0
- data/rbi/orb/models/{beta_create_plan_version_params.rbi → plan_create_plan_version_params.rbi} +744 -744
- data/rbi/orb/models/{beta_fetch_plan_version_params.rbi → plan_fetch_plan_version_params.rbi} +2 -2
- data/rbi/orb/models/{beta_set_default_plan_version_params.rbi → plan_set_default_plan_version_params.rbi} +2 -2
- data/rbi/orb/models/plans/draft_discard_params.rbi +37 -0
- data/rbi/orb/models/plans/draft_fetch_params.rbi +37 -0
- data/rbi/orb/models/plans/draft_publish_params.rbi +54 -0
- data/rbi/orb/models/plans/draft_save_params.rbi +13143 -0
- data/rbi/orb/models/plans/external_plan_id/draft_discard_params.rbi +42 -0
- data/rbi/orb/models/plans/external_plan_id/draft_fetch_params.rbi +42 -0
- data/rbi/orb/models/plans/external_plan_id/draft_publish_params.rbi +59 -0
- data/rbi/orb/models/plans/external_plan_id/draft_save_params.rbi +13256 -0
- data/rbi/orb/models/{beta → plans}/external_plan_id_create_plan_version_params.rbi +744 -744
- data/rbi/orb/models/{beta → plans}/external_plan_id_fetch_plan_version_params.rbi +2 -2
- data/rbi/orb/models/{beta → plans}/external_plan_id_set_default_plan_version_params.rbi +2 -2
- data/rbi/orb/models/plans/plan_version_draft.rbi +502 -0
- data/rbi/orb/models/subscription_list_params.rbi +100 -21
- data/rbi/orb/models/subscription_list_summary_params.rbi +99 -28
- data/rbi/orb/models/subscription_status_filter.rbi +23 -0
- data/rbi/orb/models.rbi +10 -8
- data/rbi/orb/resources/customers/credits/ledger.rbi +56 -0
- data/rbi/orb/resources/invoices.rbi +28 -2
- data/rbi/orb/resources/migrations.rbi +4 -0
- data/rbi/orb/resources/{beta/external_plan_id.rbi → plans/draft.rbi} +58 -59
- data/rbi/orb/resources/plans/external_plan_id/draft.rbi +126 -0
- data/rbi/orb/resources/plans/external_plan_id.rbi +102 -0
- data/rbi/orb/resources/plans.rbi +94 -0
- data/rbi/orb/resources/subscriptions.rbi +25 -6
- data/sig/orb/client.rbs +0 -2
- data/sig/orb/models/invoice_list_params.rbs +10 -12
- data/sig/orb/models/invoice_list_summary_params.rbs +6 -8
- data/sig/orb/models/invoice_status_filter.rbs +17 -0
- data/sig/orb/models/migration_create_params.rbs +7 -0
- data/sig/orb/models/{beta_create_plan_version_params.rbs → plan_create_plan_version_params.rbs} +448 -448
- data/sig/orb/models/{beta_fetch_plan_version_params.rbs → plan_fetch_plan_version_params.rbs} +2 -2
- data/sig/orb/models/{beta_set_default_plan_version_params.rbs → plan_set_default_plan_version_params.rbs} +2 -2
- data/sig/orb/models/plans/draft_discard_params.rbs +25 -0
- data/sig/orb/models/plans/draft_fetch_params.rbs +25 -0
- data/sig/orb/models/plans/draft_publish_params.rbs +32 -0
- data/sig/orb/models/plans/draft_save_params.rbs +5210 -0
- data/sig/orb/models/plans/external_plan_id/draft_discard_params.rbs +27 -0
- data/sig/orb/models/plans/external_plan_id/draft_fetch_params.rbs +27 -0
- data/sig/orb/models/plans/external_plan_id/draft_publish_params.rbs +34 -0
- data/sig/orb/models/plans/external_plan_id/draft_save_params.rbs +5215 -0
- data/sig/orb/models/{beta → plans}/external_plan_id_create_plan_version_params.rbs +447 -447
- data/sig/orb/models/{beta → plans}/external_plan_id_fetch_plan_version_params.rbs +1 -1
- data/sig/orb/models/{beta → plans}/external_plan_id_set_default_plan_version_params.rbs +1 -1
- data/sig/orb/models/plans/plan_version_draft.rbs +205 -0
- data/sig/orb/models/subscription_list_params.rbs +34 -14
- data/sig/orb/models/subscription_list_summary_params.rbs +34 -14
- data/sig/orb/models/subscription_status_filter.rbs +15 -0
- data/sig/orb/models.rbs +10 -8
- data/sig/orb/resources/invoices.rbs +1 -1
- data/sig/orb/resources/migrations.rbs +1 -0
- data/sig/orb/resources/plans/draft.rbs +37 -0
- data/sig/orb/resources/plans/external_plan_id/draft.rbs +39 -0
- data/sig/orb/resources/plans/external_plan_id.rbs +27 -0
- data/sig/orb/resources/plans.rbs +27 -0
- data/sig/orb/resources/subscriptions.rbs +4 -4
- metadata +2044 -2005
- data/lib/orb/resources/beta/external_plan_id.rb +0 -108
- data/lib/orb/resources/beta.rb +0 -114
- data/rbi/orb/resources/beta.rbi +0 -110
- data/sig/orb/resources/beta/external_plan_id.rbs +0 -34
- data/sig/orb/resources/beta.rbs +0 -34
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
module Orb
|
|
4
4
|
module Models
|
|
5
|
-
module
|
|
6
|
-
# @see Orb::Resources::
|
|
5
|
+
module Plans
|
|
6
|
+
# @see Orb::Resources::Plans::ExternalPlanID#create_plan_version
|
|
7
7
|
class ExternalPlanIDCreatePlanVersionParams < Orb::Internal::Type::BaseModel
|
|
8
8
|
extend Orb::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Orb::Internal::Type::RequestParameters
|
|
@@ -22,60 +22,60 @@ module Orb
|
|
|
22
22
|
# @!attribute add_adjustments
|
|
23
23
|
# Additional adjustments to be added to the plan.
|
|
24
24
|
#
|
|
25
|
-
# @return [Array<Orb::Models::
|
|
25
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment>, nil]
|
|
26
26
|
optional :add_adjustments,
|
|
27
27
|
-> {
|
|
28
|
-
Orb::Internal::Type::ArrayOf[Orb::
|
|
28
|
+
Orb::Internal::Type::ArrayOf[Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment]
|
|
29
29
|
},
|
|
30
30
|
nil?: true
|
|
31
31
|
|
|
32
32
|
# @!attribute add_prices
|
|
33
33
|
# Additional prices to be added to the plan.
|
|
34
34
|
#
|
|
35
|
-
# @return [Array<Orb::Models::
|
|
35
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice>, nil]
|
|
36
36
|
optional :add_prices,
|
|
37
37
|
-> {
|
|
38
|
-
Orb::Internal::Type::ArrayOf[Orb::
|
|
38
|
+
Orb::Internal::Type::ArrayOf[Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice]
|
|
39
39
|
},
|
|
40
40
|
nil?: true
|
|
41
41
|
|
|
42
42
|
# @!attribute remove_adjustments
|
|
43
43
|
# Adjustments to be removed from the plan.
|
|
44
44
|
#
|
|
45
|
-
# @return [Array<Orb::Models::
|
|
45
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::RemoveAdjustment>, nil]
|
|
46
46
|
optional :remove_adjustments,
|
|
47
47
|
-> {
|
|
48
|
-
Orb::Internal::Type::ArrayOf[Orb::
|
|
48
|
+
Orb::Internal::Type::ArrayOf[Orb::Plans::ExternalPlanIDCreatePlanVersionParams::RemoveAdjustment]
|
|
49
49
|
},
|
|
50
50
|
nil?: true
|
|
51
51
|
|
|
52
52
|
# @!attribute remove_prices
|
|
53
53
|
# Prices to be removed from the plan.
|
|
54
54
|
#
|
|
55
|
-
# @return [Array<Orb::Models::
|
|
55
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::RemovePrice>, nil]
|
|
56
56
|
optional :remove_prices,
|
|
57
57
|
-> {
|
|
58
|
-
Orb::Internal::Type::ArrayOf[Orb::
|
|
58
|
+
Orb::Internal::Type::ArrayOf[Orb::Plans::ExternalPlanIDCreatePlanVersionParams::RemovePrice]
|
|
59
59
|
},
|
|
60
60
|
nil?: true
|
|
61
61
|
|
|
62
62
|
# @!attribute replace_adjustments
|
|
63
63
|
# Adjustments to be replaced with additional adjustments on the plan.
|
|
64
64
|
#
|
|
65
|
-
# @return [Array<Orb::Models::
|
|
65
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment>, nil]
|
|
66
66
|
optional :replace_adjustments,
|
|
67
67
|
-> {
|
|
68
|
-
Orb::Internal::Type::ArrayOf[Orb::
|
|
68
|
+
Orb::Internal::Type::ArrayOf[Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment]
|
|
69
69
|
},
|
|
70
70
|
nil?: true
|
|
71
71
|
|
|
72
72
|
# @!attribute replace_prices
|
|
73
73
|
# Prices to be replaced with additional prices on the plan.
|
|
74
74
|
#
|
|
75
|
-
# @return [Array<Orb::Models::
|
|
75
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice>, nil]
|
|
76
76
|
optional :replace_prices,
|
|
77
77
|
-> {
|
|
78
|
-
Orb::Internal::Type::ArrayOf[Orb::
|
|
78
|
+
Orb::Internal::Type::ArrayOf[Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice]
|
|
79
79
|
},
|
|
80
80
|
nil?: true
|
|
81
81
|
|
|
@@ -90,17 +90,17 @@ module Orb
|
|
|
90
90
|
#
|
|
91
91
|
# @param version [Integer] New version number.
|
|
92
92
|
#
|
|
93
|
-
# @param add_adjustments [Array<Orb::Models::
|
|
93
|
+
# @param add_adjustments [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment>, nil] Additional adjustments to be added to the plan.
|
|
94
94
|
#
|
|
95
|
-
# @param add_prices [Array<Orb::Models::
|
|
95
|
+
# @param add_prices [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice>, nil] Additional prices to be added to the plan.
|
|
96
96
|
#
|
|
97
|
-
# @param remove_adjustments [Array<Orb::Models::
|
|
97
|
+
# @param remove_adjustments [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::RemoveAdjustment>, nil] Adjustments to be removed from the plan.
|
|
98
98
|
#
|
|
99
|
-
# @param remove_prices [Array<Orb::Models::
|
|
99
|
+
# @param remove_prices [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::RemovePrice>, nil] Prices to be removed from the plan.
|
|
100
100
|
#
|
|
101
|
-
# @param replace_adjustments [Array<Orb::Models::
|
|
101
|
+
# @param replace_adjustments [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment>, nil] Adjustments to be replaced with additional adjustments on the plan.
|
|
102
102
|
#
|
|
103
|
-
# @param replace_prices [Array<Orb::Models::
|
|
103
|
+
# @param replace_prices [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice>, nil] Prices to be replaced with additional prices on the plan.
|
|
104
104
|
#
|
|
105
105
|
# @param set_as_default [Boolean, nil] Set this new plan version as the default
|
|
106
106
|
#
|
|
@@ -110,9 +110,9 @@ module Orb
|
|
|
110
110
|
# @!attribute adjustment
|
|
111
111
|
# The definition of a new adjustment to create and add to the plan.
|
|
112
112
|
#
|
|
113
|
-
# @return [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::
|
|
113
|
+
# @return [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount]
|
|
114
114
|
required :adjustment,
|
|
115
|
-
union: -> { Orb::
|
|
115
|
+
union: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment }
|
|
116
116
|
|
|
117
117
|
# @!attribute plan_phase_order
|
|
118
118
|
# The phase to add this adjustment to.
|
|
@@ -121,13 +121,13 @@ module Orb
|
|
|
121
121
|
optional :plan_phase_order, Integer, nil?: true
|
|
122
122
|
|
|
123
123
|
# @!method initialize(adjustment:, plan_phase_order: nil)
|
|
124
|
-
# @param adjustment [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::
|
|
124
|
+
# @param adjustment [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount] The definition of a new adjustment to create and add to the plan.
|
|
125
125
|
#
|
|
126
126
|
# @param plan_phase_order [Integer, nil] The phase to add this adjustment to.
|
|
127
127
|
|
|
128
128
|
# The definition of a new adjustment to create and add to the plan.
|
|
129
129
|
#
|
|
130
|
-
# @see Orb::Models::
|
|
130
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment#adjustment
|
|
131
131
|
module Adjustment
|
|
132
132
|
extend Orb::Internal::Type::Union
|
|
133
133
|
|
|
@@ -144,7 +144,7 @@ module Orb
|
|
|
144
144
|
variant :maximum, -> { Orb::NewMaximum }
|
|
145
145
|
|
|
146
146
|
variant :tiered_percentage_discount,
|
|
147
|
-
-> { Orb::
|
|
147
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount }
|
|
148
148
|
|
|
149
149
|
class TieredPercentageDiscount < Orb::Internal::Type::BaseModel
|
|
150
150
|
# @!attribute adjustment_type
|
|
@@ -154,21 +154,21 @@ module Orb
|
|
|
154
154
|
|
|
155
155
|
# @!attribute tiers
|
|
156
156
|
#
|
|
157
|
-
# @return [Array<Orb::Models::
|
|
157
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier>]
|
|
158
158
|
required :tiers,
|
|
159
159
|
-> do
|
|
160
160
|
Orb::Internal::Type::ArrayOf[
|
|
161
|
-
Orb::
|
|
161
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier
|
|
162
162
|
]
|
|
163
163
|
end
|
|
164
164
|
|
|
165
165
|
# @!attribute applies_to_all
|
|
166
166
|
# If set, the adjustment will apply to every price on the subscription.
|
|
167
167
|
#
|
|
168
|
-
# @return [Boolean, Orb::Models::
|
|
168
|
+
# @return [Boolean, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::AppliesToAll, nil]
|
|
169
169
|
optional :applies_to_all,
|
|
170
170
|
enum: -> {
|
|
171
|
-
Orb::
|
|
171
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::AppliesToAll
|
|
172
172
|
},
|
|
173
173
|
nil?: true
|
|
174
174
|
|
|
@@ -193,11 +193,11 @@ module Orb
|
|
|
193
193
|
# @!attribute filters
|
|
194
194
|
# A list of filters that determine which prices this adjustment will apply to.
|
|
195
195
|
#
|
|
196
|
-
# @return [Array<Orb::Models::
|
|
196
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter>, nil]
|
|
197
197
|
optional :filters,
|
|
198
198
|
-> do
|
|
199
199
|
Orb::Internal::Type::ArrayOf[
|
|
200
|
-
Orb::
|
|
200
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter
|
|
201
201
|
]
|
|
202
202
|
end,
|
|
203
203
|
nil?: true
|
|
@@ -212,21 +212,21 @@ module Orb
|
|
|
212
212
|
# @!attribute price_type
|
|
213
213
|
# If set, only prices of the specified type will have the adjustment applied.
|
|
214
214
|
#
|
|
215
|
-
# @return [Symbol, Orb::Models::
|
|
215
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::PriceType, nil]
|
|
216
216
|
optional :price_type,
|
|
217
217
|
enum: -> {
|
|
218
|
-
Orb::
|
|
218
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::PriceType
|
|
219
219
|
},
|
|
220
220
|
nil?: true
|
|
221
221
|
|
|
222
222
|
# @!method initialize(tiers:, applies_to_all: nil, applies_to_item_ids: nil, applies_to_price_ids: nil, currency: nil, filters: nil, is_invoice_level: nil, price_type: nil, adjustment_type: :tiered_percentage_discount)
|
|
223
223
|
# Some parameter documentations has been truncated, see
|
|
224
|
-
# {Orb::Models::
|
|
224
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount}
|
|
225
225
|
# for more details.
|
|
226
226
|
#
|
|
227
|
-
# @param tiers [Array<Orb::Models::
|
|
227
|
+
# @param tiers [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier>]
|
|
228
228
|
#
|
|
229
|
-
# @param applies_to_all [Boolean, Orb::Models::
|
|
229
|
+
# @param applies_to_all [Boolean, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::AppliesToAll, nil] If set, the adjustment will apply to every price on the subscription.
|
|
230
230
|
#
|
|
231
231
|
# @param applies_to_item_ids [Array<String>, nil] The set of item IDs to which this adjustment applies.
|
|
232
232
|
#
|
|
@@ -234,11 +234,11 @@ module Orb
|
|
|
234
234
|
#
|
|
235
235
|
# @param currency [String, nil] If set, only prices in the specified currency will have the adjustment applied.
|
|
236
236
|
#
|
|
237
|
-
# @param filters [Array<Orb::Models::
|
|
237
|
+
# @param filters [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter>, nil] A list of filters that determine which prices this adjustment will apply to.
|
|
238
238
|
#
|
|
239
239
|
# @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil
|
|
240
240
|
#
|
|
241
|
-
# @param price_type [Symbol, Orb::Models::
|
|
241
|
+
# @param price_type [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::PriceType, nil] If set, only prices of the specified type will have the adjustment applied.
|
|
242
242
|
#
|
|
243
243
|
# @param adjustment_type [Symbol, :tiered_percentage_discount]
|
|
244
244
|
|
|
@@ -271,7 +271,7 @@ module Orb
|
|
|
271
271
|
|
|
272
272
|
# If set, the adjustment will apply to every price on the subscription.
|
|
273
273
|
#
|
|
274
|
-
# @see Orb::Models::
|
|
274
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount#applies_to_all
|
|
275
275
|
module AppliesToAll
|
|
276
276
|
extend Orb::Internal::Type::Enum
|
|
277
277
|
|
|
@@ -285,16 +285,16 @@ module Orb
|
|
|
285
285
|
# @!attribute field
|
|
286
286
|
# The property of the price to filter on.
|
|
287
287
|
#
|
|
288
|
-
# @return [Symbol, Orb::Models::
|
|
288
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::Field]
|
|
289
289
|
required :field,
|
|
290
|
-
enum: -> { Orb::
|
|
290
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::Field }
|
|
291
291
|
|
|
292
292
|
# @!attribute operator
|
|
293
293
|
# Should prices that match the filter be included or excluded.
|
|
294
294
|
#
|
|
295
|
-
# @return [Symbol, Orb::Models::
|
|
295
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::Operator]
|
|
296
296
|
required :operator,
|
|
297
|
-
enum: -> { Orb::
|
|
297
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::Operator }
|
|
298
298
|
|
|
299
299
|
# @!attribute values
|
|
300
300
|
# The IDs or values that match this filter.
|
|
@@ -303,15 +303,15 @@ module Orb
|
|
|
303
303
|
required :values, Orb::Internal::Type::ArrayOf[String]
|
|
304
304
|
|
|
305
305
|
# @!method initialize(field:, operator:, values:)
|
|
306
|
-
# @param field [Symbol, Orb::Models::
|
|
306
|
+
# @param field [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::Field] The property of the price to filter on.
|
|
307
307
|
#
|
|
308
|
-
# @param operator [Symbol, Orb::Models::
|
|
308
|
+
# @param operator [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::Operator] Should prices that match the filter be included or excluded.
|
|
309
309
|
#
|
|
310
310
|
# @param values [Array<String>] The IDs or values that match this filter.
|
|
311
311
|
|
|
312
312
|
# The property of the price to filter on.
|
|
313
313
|
#
|
|
314
|
-
# @see Orb::Models::
|
|
314
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter#field
|
|
315
315
|
module Field
|
|
316
316
|
extend Orb::Internal::Type::Enum
|
|
317
317
|
|
|
@@ -327,7 +327,7 @@ module Orb
|
|
|
327
327
|
|
|
328
328
|
# Should prices that match the filter be included or excluded.
|
|
329
329
|
#
|
|
330
|
-
# @see Orb::Models::
|
|
330
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter#operator
|
|
331
331
|
module Operator
|
|
332
332
|
extend Orb::Internal::Type::Enum
|
|
333
333
|
|
|
@@ -341,7 +341,7 @@ module Orb
|
|
|
341
341
|
|
|
342
342
|
# If set, only prices of the specified type will have the adjustment applied.
|
|
343
343
|
#
|
|
344
|
-
# @see Orb::Models::
|
|
344
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount#price_type
|
|
345
345
|
module PriceType
|
|
346
346
|
extend Orb::Internal::Type::Enum
|
|
347
347
|
|
|
@@ -357,7 +357,7 @@ module Orb
|
|
|
357
357
|
end
|
|
358
358
|
|
|
359
359
|
# @!method self.variants
|
|
360
|
-
# @return [Array(Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::
|
|
360
|
+
# @return [Array(Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount)]
|
|
361
361
|
end
|
|
362
362
|
end
|
|
363
363
|
|
|
@@ -371,9 +371,9 @@ module Orb
|
|
|
371
371
|
# @!attribute license_allocation_price
|
|
372
372
|
# The license allocation price to add to the plan.
|
|
373
373
|
#
|
|
374
|
-
# @return [Orb::Models::
|
|
374
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice, nil]
|
|
375
375
|
optional :license_allocation_price,
|
|
376
|
-
-> { Orb::
|
|
376
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice },
|
|
377
377
|
nil?: true
|
|
378
378
|
|
|
379
379
|
# @!attribute plan_phase_order
|
|
@@ -385,28 +385,28 @@ module Orb
|
|
|
385
385
|
# @!attribute price
|
|
386
386
|
# New plan price request body params.
|
|
387
387
|
#
|
|
388
|
-
# @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::
|
|
388
|
+
# @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier, nil]
|
|
389
389
|
optional :price,
|
|
390
|
-
union: -> { Orb::
|
|
390
|
+
union: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price },
|
|
391
391
|
nil?: true
|
|
392
392
|
|
|
393
393
|
# @!method initialize(allocation_price: nil, license_allocation_price: nil, plan_phase_order: nil, price: nil)
|
|
394
394
|
# @param allocation_price [Orb::Models::NewAllocationPrice, nil] The allocation price to add to the plan.
|
|
395
395
|
#
|
|
396
|
-
# @param license_allocation_price [Orb::Models::
|
|
396
|
+
# @param license_allocation_price [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice, nil] The license allocation price to add to the plan.
|
|
397
397
|
#
|
|
398
398
|
# @param plan_phase_order [Integer, nil] The phase to add this price to.
|
|
399
399
|
#
|
|
400
|
-
# @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::
|
|
400
|
+
# @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier, nil] New plan price request body params.
|
|
401
401
|
|
|
402
|
-
# @see Orb::Models::
|
|
402
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice#license_allocation_price
|
|
403
403
|
class LicenseAllocationPrice < Orb::Internal::Type::BaseModel
|
|
404
404
|
# @!attribute cadence
|
|
405
405
|
# The cadence to bill for this price on.
|
|
406
406
|
#
|
|
407
|
-
# @return [Symbol, Orb::Models::
|
|
407
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::Cadence]
|
|
408
408
|
required :cadence,
|
|
409
|
-
enum: -> { Orb::
|
|
409
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::Cadence }
|
|
410
410
|
|
|
411
411
|
# @!attribute item_id
|
|
412
412
|
# The id of the item the price will be associated with.
|
|
@@ -420,16 +420,16 @@ module Orb
|
|
|
420
420
|
# license_type_configuration to be set. Usage prices draw down from these
|
|
421
421
|
# allocations only if they set the same license type.
|
|
422
422
|
#
|
|
423
|
-
# @return [Array<Orb::Models::
|
|
423
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::LicenseAllocation>]
|
|
424
424
|
required :license_allocations,
|
|
425
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
425
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::LicenseAllocation] }
|
|
426
426
|
|
|
427
427
|
# @!attribute model_type
|
|
428
428
|
# The pricing model type
|
|
429
429
|
#
|
|
430
|
-
# @return [Symbol, Orb::Models::
|
|
430
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::ModelType]
|
|
431
431
|
required :model_type,
|
|
432
|
-
enum: -> { Orb::
|
|
432
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::ModelType }
|
|
433
433
|
|
|
434
434
|
# @!attribute name
|
|
435
435
|
# The name of the price.
|
|
@@ -546,18 +546,18 @@ module Orb
|
|
|
546
546
|
|
|
547
547
|
# @!method initialize(cadence:, item_id:, license_allocations:, model_type:, name:, unit_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil)
|
|
548
548
|
# Some parameter documentations has been truncated, see
|
|
549
|
-
# {Orb::Models::
|
|
549
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice}
|
|
550
550
|
# for more details.
|
|
551
551
|
#
|
|
552
552
|
# The license allocation price to add to the plan.
|
|
553
553
|
#
|
|
554
|
-
# @param cadence [Symbol, Orb::Models::
|
|
554
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::Cadence] The cadence to bill for this price on.
|
|
555
555
|
#
|
|
556
556
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
557
557
|
#
|
|
558
|
-
# @param license_allocations [Array<Orb::Models::
|
|
558
|
+
# @param license_allocations [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::LicenseAllocation>] License allocations to associate with this price. Each entry defines a per-licen
|
|
559
559
|
#
|
|
560
|
-
# @param model_type [Symbol, Orb::Models::
|
|
560
|
+
# @param model_type [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::ModelType] The pricing model type
|
|
561
561
|
#
|
|
562
562
|
# @param name [String] The name of the price.
|
|
563
563
|
#
|
|
@@ -593,7 +593,7 @@ module Orb
|
|
|
593
593
|
|
|
594
594
|
# The cadence to bill for this price on.
|
|
595
595
|
#
|
|
596
|
-
# @see Orb::Models::
|
|
596
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice#cadence
|
|
597
597
|
module Cadence
|
|
598
598
|
extend Orb::Internal::Type::Enum
|
|
599
599
|
|
|
@@ -637,7 +637,7 @@ module Orb
|
|
|
637
637
|
|
|
638
638
|
# The pricing model type
|
|
639
639
|
#
|
|
640
|
-
# @see Orb::Models::
|
|
640
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice#model_type
|
|
641
641
|
module ModelType
|
|
642
642
|
extend Orb::Internal::Type::Enum
|
|
643
643
|
|
|
@@ -650,7 +650,7 @@ module Orb
|
|
|
650
650
|
|
|
651
651
|
# New plan price request body params.
|
|
652
652
|
#
|
|
653
|
-
# @see Orb::Models::
|
|
653
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice#price
|
|
654
654
|
module Price
|
|
655
655
|
extend Orb::Internal::Type::Union
|
|
656
656
|
|
|
@@ -663,7 +663,7 @@ module Orb
|
|
|
663
663
|
variant :bulk, -> { Orb::NewPlanBulkPrice }
|
|
664
664
|
|
|
665
665
|
variant :bulk_with_filters,
|
|
666
|
-
-> { Orb::
|
|
666
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters }
|
|
667
667
|
|
|
668
668
|
variant :package, -> { Orb::NewPlanPackagePrice }
|
|
669
669
|
|
|
@@ -678,7 +678,7 @@ module Orb
|
|
|
678
678
|
variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice }
|
|
679
679
|
|
|
680
680
|
variant :grouped_tiered_matrix,
|
|
681
|
-
-> { Orb::
|
|
681
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix }
|
|
682
682
|
|
|
683
683
|
variant :tiered_package_with_minimum, -> { Orb::NewPlanTieredPackageWithMinimumPrice }
|
|
684
684
|
|
|
@@ -689,13 +689,13 @@ module Orb
|
|
|
689
689
|
variant :matrix_with_allocation, -> { Orb::NewPlanMatrixWithAllocationPrice }
|
|
690
690
|
|
|
691
691
|
variant :tiered_matrix_with_allocation,
|
|
692
|
-
-> { Orb::
|
|
692
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation }
|
|
693
693
|
|
|
694
694
|
variant :matrix_with_threshold_discounts,
|
|
695
|
-
-> { Orb::
|
|
695
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts }
|
|
696
696
|
|
|
697
697
|
variant :tiered_with_proration,
|
|
698
|
-
-> { Orb::
|
|
698
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration }
|
|
699
699
|
|
|
700
700
|
variant :unit_with_proration, -> { Orb::NewPlanUnitWithProrationPrice }
|
|
701
701
|
|
|
@@ -708,7 +708,7 @@ module Orb
|
|
|
708
708
|
variant :grouped_with_metered_minimum, -> { Orb::NewPlanGroupedWithMeteredMinimumPrice }
|
|
709
709
|
|
|
710
710
|
variant :grouped_with_min_max_thresholds,
|
|
711
|
-
-> { Orb::
|
|
711
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds }
|
|
712
712
|
|
|
713
713
|
variant :matrix_with_display_name, -> { Orb::NewPlanMatrixWithDisplayNamePrice }
|
|
714
714
|
|
|
@@ -723,38 +723,38 @@ module Orb
|
|
|
723
723
|
variant :cumulative_grouped_bulk, -> { Orb::NewPlanCumulativeGroupedBulkPrice }
|
|
724
724
|
|
|
725
725
|
variant :cumulative_grouped_allocation,
|
|
726
|
-
-> { Orb::
|
|
726
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation }
|
|
727
727
|
|
|
728
728
|
variant :daily_credit_allowance,
|
|
729
|
-
-> { Orb::
|
|
729
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance }
|
|
730
730
|
|
|
731
731
|
variant :metered_allowance,
|
|
732
|
-
-> { Orb::
|
|
732
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance }
|
|
733
733
|
|
|
734
734
|
variant :minimum_composite, -> { Orb::NewPlanMinimumCompositePrice }
|
|
735
735
|
|
|
736
|
-
variant :percent, -> { Orb::
|
|
736
|
+
variant :percent, -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent }
|
|
737
737
|
|
|
738
738
|
variant :event_output,
|
|
739
|
-
-> { Orb::
|
|
739
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput }
|
|
740
740
|
|
|
741
741
|
variant :unit_with_multiplier,
|
|
742
|
-
-> { Orb::
|
|
742
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier }
|
|
743
743
|
|
|
744
744
|
class BulkWithFilters < Orb::Internal::Type::BaseModel
|
|
745
745
|
# @!attribute bulk_with_filters_config
|
|
746
746
|
# Configuration for bulk_with_filters pricing
|
|
747
747
|
#
|
|
748
|
-
# @return [Orb::Models::
|
|
748
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig]
|
|
749
749
|
required :bulk_with_filters_config,
|
|
750
|
-
-> { Orb::
|
|
750
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig }
|
|
751
751
|
|
|
752
752
|
# @!attribute cadence
|
|
753
753
|
# The cadence to bill for this price on.
|
|
754
754
|
#
|
|
755
|
-
# @return [Symbol, Orb::Models::
|
|
755
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::Cadence]
|
|
756
756
|
required :cadence,
|
|
757
|
-
enum: -> { Orb::
|
|
757
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::Cadence }
|
|
758
758
|
|
|
759
759
|
# @!attribute item_id
|
|
760
760
|
# The id of the item the price will be associated with.
|
|
@@ -877,12 +877,12 @@ module Orb
|
|
|
877
877
|
|
|
878
878
|
# @!method initialize(bulk_with_filters_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :bulk_with_filters)
|
|
879
879
|
# Some parameter documentations has been truncated, see
|
|
880
|
-
# {Orb::Models::
|
|
880
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters}
|
|
881
881
|
# for more details.
|
|
882
882
|
#
|
|
883
|
-
# @param bulk_with_filters_config [Orb::Models::
|
|
883
|
+
# @param bulk_with_filters_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig] Configuration for bulk_with_filters pricing
|
|
884
884
|
#
|
|
885
|
-
# @param cadence [Symbol, Orb::Models::
|
|
885
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::Cadence] The cadence to bill for this price on.
|
|
886
886
|
#
|
|
887
887
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
888
888
|
#
|
|
@@ -918,36 +918,36 @@ module Orb
|
|
|
918
918
|
#
|
|
919
919
|
# @param model_type [Symbol, :bulk_with_filters] The pricing model type
|
|
920
920
|
|
|
921
|
-
# @see Orb::Models::
|
|
921
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters#bulk_with_filters_config
|
|
922
922
|
class BulkWithFiltersConfig < Orb::Internal::Type::BaseModel
|
|
923
923
|
# @!attribute filters
|
|
924
924
|
# Property filters to apply (all must match)
|
|
925
925
|
#
|
|
926
|
-
# @return [Array<Orb::Models::
|
|
926
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter>]
|
|
927
927
|
required :filters,
|
|
928
928
|
-> do
|
|
929
929
|
Orb::Internal::Type::ArrayOf[
|
|
930
|
-
Orb::
|
|
930
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter
|
|
931
931
|
]
|
|
932
932
|
end
|
|
933
933
|
|
|
934
934
|
# @!attribute tiers
|
|
935
935
|
# Bulk tiers for rating based on total usage volume
|
|
936
936
|
#
|
|
937
|
-
# @return [Array<Orb::Models::
|
|
937
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier>]
|
|
938
938
|
required :tiers,
|
|
939
939
|
-> do
|
|
940
940
|
Orb::Internal::Type::ArrayOf[
|
|
941
|
-
Orb::
|
|
941
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier
|
|
942
942
|
]
|
|
943
943
|
end
|
|
944
944
|
|
|
945
945
|
# @!method initialize(filters:, tiers:)
|
|
946
946
|
# Configuration for bulk_with_filters pricing
|
|
947
947
|
#
|
|
948
|
-
# @param filters [Array<Orb::Models::
|
|
948
|
+
# @param filters [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter>] Property filters to apply (all must match)
|
|
949
949
|
#
|
|
950
|
-
# @param tiers [Array<Orb::Models::
|
|
950
|
+
# @param tiers [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier>] Bulk tiers for rating based on total usage volume
|
|
951
951
|
|
|
952
952
|
class Filter < Orb::Internal::Type::BaseModel
|
|
953
953
|
# @!attribute property_key
|
|
@@ -994,7 +994,7 @@ module Orb
|
|
|
994
994
|
|
|
995
995
|
# The cadence to bill for this price on.
|
|
996
996
|
#
|
|
997
|
-
# @see Orb::Models::
|
|
997
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters#cadence
|
|
998
998
|
module Cadence
|
|
999
999
|
extend Orb::Internal::Type::Enum
|
|
1000
1000
|
|
|
@@ -1014,16 +1014,16 @@ module Orb
|
|
|
1014
1014
|
# @!attribute cadence
|
|
1015
1015
|
# The cadence to bill for this price on.
|
|
1016
1016
|
#
|
|
1017
|
-
# @return [Symbol, Orb::Models::
|
|
1017
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::Cadence]
|
|
1018
1018
|
required :cadence,
|
|
1019
|
-
enum: -> { Orb::
|
|
1019
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::Cadence }
|
|
1020
1020
|
|
|
1021
1021
|
# @!attribute grouped_tiered_matrix_config
|
|
1022
1022
|
# Configuration for grouped_tiered_matrix pricing
|
|
1023
1023
|
#
|
|
1024
|
-
# @return [Orb::Models::
|
|
1024
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig]
|
|
1025
1025
|
required :grouped_tiered_matrix_config,
|
|
1026
|
-
-> { Orb::
|
|
1026
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig }
|
|
1027
1027
|
|
|
1028
1028
|
# @!attribute item_id
|
|
1029
1029
|
# The id of the item the price will be associated with.
|
|
@@ -1146,12 +1146,12 @@ module Orb
|
|
|
1146
1146
|
|
|
1147
1147
|
# @!method initialize(cadence:, grouped_tiered_matrix_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :grouped_tiered_matrix)
|
|
1148
1148
|
# Some parameter documentations has been truncated, see
|
|
1149
|
-
# {Orb::Models::
|
|
1149
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix}
|
|
1150
1150
|
# for more details.
|
|
1151
1151
|
#
|
|
1152
|
-
# @param cadence [Symbol, Orb::Models::
|
|
1152
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::Cadence] The cadence to bill for this price on.
|
|
1153
1153
|
#
|
|
1154
|
-
# @param grouped_tiered_matrix_config [Orb::Models::
|
|
1154
|
+
# @param grouped_tiered_matrix_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig] Configuration for grouped_tiered_matrix pricing
|
|
1155
1155
|
#
|
|
1156
1156
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
1157
1157
|
#
|
|
@@ -1189,7 +1189,7 @@ module Orb
|
|
|
1189
1189
|
|
|
1190
1190
|
# The cadence to bill for this price on.
|
|
1191
1191
|
#
|
|
1192
|
-
# @see Orb::Models::
|
|
1192
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix#cadence
|
|
1193
1193
|
module Cadence
|
|
1194
1194
|
extend Orb::Internal::Type::Enum
|
|
1195
1195
|
|
|
@@ -1204,7 +1204,7 @@ module Orb
|
|
|
1204
1204
|
# @return [Array<Symbol>]
|
|
1205
1205
|
end
|
|
1206
1206
|
|
|
1207
|
-
# @see Orb::Models::
|
|
1207
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix#grouped_tiered_matrix_config
|
|
1208
1208
|
class GroupedTieredMatrixConfig < Orb::Internal::Type::BaseModel
|
|
1209
1209
|
# @!attribute default_unit_amount
|
|
1210
1210
|
# Per unit rate for usage whose dimension value has no configured tiers
|
|
@@ -1222,17 +1222,17 @@ module Orb
|
|
|
1222
1222
|
# Graduated tiers keyed by dimension value; usage for a value is tiered only
|
|
1223
1223
|
# against its own rows
|
|
1224
1224
|
#
|
|
1225
|
-
# @return [Array<Orb::Models::
|
|
1225
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier>]
|
|
1226
1226
|
required :tiers,
|
|
1227
1227
|
-> do
|
|
1228
1228
|
Orb::Internal::Type::ArrayOf[
|
|
1229
|
-
Orb::
|
|
1229
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier
|
|
1230
1230
|
]
|
|
1231
1231
|
end
|
|
1232
1232
|
|
|
1233
1233
|
# @!method initialize(default_unit_amount:, dimension:, tiers:)
|
|
1234
1234
|
# Some parameter documentations has been truncated, see
|
|
1235
|
-
# {Orb::Models::
|
|
1235
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig}
|
|
1236
1236
|
# for more details.
|
|
1237
1237
|
#
|
|
1238
1238
|
# Configuration for grouped_tiered_matrix pricing
|
|
@@ -1241,7 +1241,7 @@ module Orb
|
|
|
1241
1241
|
#
|
|
1242
1242
|
# @param dimension [String] The billable metric property used to group usage before tiering
|
|
1243
1243
|
#
|
|
1244
|
-
# @param tiers [Array<Orb::Models::
|
|
1244
|
+
# @param tiers [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier>] Graduated tiers keyed by dimension value; usage for a value is tiered only again
|
|
1245
1245
|
|
|
1246
1246
|
class Tier < Orb::Internal::Type::BaseModel
|
|
1247
1247
|
# @!attribute dimension_value
|
|
@@ -1277,9 +1277,9 @@ module Orb
|
|
|
1277
1277
|
# @!attribute cadence
|
|
1278
1278
|
# The cadence to bill for this price on.
|
|
1279
1279
|
#
|
|
1280
|
-
# @return [Symbol, Orb::Models::
|
|
1280
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::Cadence]
|
|
1281
1281
|
required :cadence,
|
|
1282
|
-
enum: -> { Orb::
|
|
1282
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::Cadence }
|
|
1283
1283
|
|
|
1284
1284
|
# @!attribute item_id
|
|
1285
1285
|
# The id of the item the price will be associated with.
|
|
@@ -1302,9 +1302,9 @@ module Orb
|
|
|
1302
1302
|
# @!attribute tiered_matrix_with_allocation_config
|
|
1303
1303
|
# Configuration for tiered_matrix_with_allocation pricing
|
|
1304
1304
|
#
|
|
1305
|
-
# @return [Orb::Models::
|
|
1305
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig]
|
|
1306
1306
|
required :tiered_matrix_with_allocation_config,
|
|
1307
|
-
-> { Orb::
|
|
1307
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig }
|
|
1308
1308
|
|
|
1309
1309
|
# @!attribute billable_metric_id
|
|
1310
1310
|
# The id of the billable metric for the price. Only needed if the price is
|
|
@@ -1409,16 +1409,16 @@ module Orb
|
|
|
1409
1409
|
|
|
1410
1410
|
# @!method initialize(cadence:, item_id:, name:, tiered_matrix_with_allocation_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :tiered_matrix_with_allocation)
|
|
1411
1411
|
# Some parameter documentations has been truncated, see
|
|
1412
|
-
# {Orb::Models::
|
|
1412
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation}
|
|
1413
1413
|
# for more details.
|
|
1414
1414
|
#
|
|
1415
|
-
# @param cadence [Symbol, Orb::Models::
|
|
1415
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::Cadence] The cadence to bill for this price on.
|
|
1416
1416
|
#
|
|
1417
1417
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
1418
1418
|
#
|
|
1419
1419
|
# @param name [String] The name of the price.
|
|
1420
1420
|
#
|
|
1421
|
-
# @param tiered_matrix_with_allocation_config [Orb::Models::
|
|
1421
|
+
# @param tiered_matrix_with_allocation_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig] Configuration for tiered_matrix_with_allocation pricing
|
|
1422
1422
|
#
|
|
1423
1423
|
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
1424
1424
|
#
|
|
@@ -1452,7 +1452,7 @@ module Orb
|
|
|
1452
1452
|
|
|
1453
1453
|
# The cadence to bill for this price on.
|
|
1454
1454
|
#
|
|
1455
|
-
# @see Orb::Models::
|
|
1455
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation#cadence
|
|
1456
1456
|
module Cadence
|
|
1457
1457
|
extend Orb::Internal::Type::Enum
|
|
1458
1458
|
|
|
@@ -1467,7 +1467,7 @@ module Orb
|
|
|
1467
1467
|
# @return [Array<Symbol>]
|
|
1468
1468
|
end
|
|
1469
1469
|
|
|
1470
|
-
# @see Orb::Models::
|
|
1470
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation#tiered_matrix_with_allocation_config
|
|
1471
1471
|
class TieredMatrixWithAllocationConfig < Orb::Internal::Type::BaseModel
|
|
1472
1472
|
# @!attribute allocation
|
|
1473
1473
|
# Usage allocation, pooled across all matrix cells
|
|
@@ -1491,17 +1491,17 @@ module Orb
|
|
|
1491
1491
|
# Graduated tiers keyed by matrix cell; usage in a cell is tiered only against its
|
|
1492
1492
|
# own rows
|
|
1493
1493
|
#
|
|
1494
|
-
# @return [Array<Orb::Models::
|
|
1494
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier>]
|
|
1495
1495
|
required :tiers,
|
|
1496
1496
|
-> do
|
|
1497
1497
|
Orb::Internal::Type::ArrayOf[
|
|
1498
|
-
Orb::
|
|
1498
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier
|
|
1499
1499
|
]
|
|
1500
1500
|
end
|
|
1501
1501
|
|
|
1502
1502
|
# @!method initialize(allocation:, default_unit_amount:, dimensions:, tiers:)
|
|
1503
1503
|
# Some parameter documentations has been truncated, see
|
|
1504
|
-
# {Orb::Models::
|
|
1504
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig}
|
|
1505
1505
|
# for more details.
|
|
1506
1506
|
#
|
|
1507
1507
|
# Configuration for tiered_matrix_with_allocation pricing
|
|
@@ -1512,7 +1512,7 @@ module Orb
|
|
|
1512
1512
|
#
|
|
1513
1513
|
# @param dimensions [Array<String>] One or two event property values to evaluate matrix cells by
|
|
1514
1514
|
#
|
|
1515
|
-
# @param tiers [Array<Orb::Models::
|
|
1515
|
+
# @param tiers [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier>] Graduated tiers keyed by matrix cell; usage in a cell is tiered only against its
|
|
1516
1516
|
|
|
1517
1517
|
class Tier < Orb::Internal::Type::BaseModel
|
|
1518
1518
|
# @!attribute dimension_values
|
|
@@ -1536,7 +1536,7 @@ module Orb
|
|
|
1536
1536
|
|
|
1537
1537
|
# @!method initialize(dimension_values:, tier_lower_bound:, unit_amount:)
|
|
1538
1538
|
# Some parameter documentations has been truncated, see
|
|
1539
|
-
# {Orb::Models::
|
|
1539
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier}
|
|
1540
1540
|
# for more details.
|
|
1541
1541
|
#
|
|
1542
1542
|
# Configuration for a single tier scoped to one matrix cell
|
|
@@ -1554,9 +1554,9 @@ module Orb
|
|
|
1554
1554
|
# @!attribute cadence
|
|
1555
1555
|
# The cadence to bill for this price on.
|
|
1556
1556
|
#
|
|
1557
|
-
# @return [Symbol, Orb::Models::
|
|
1557
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::Cadence]
|
|
1558
1558
|
required :cadence,
|
|
1559
|
-
enum: -> { Orb::
|
|
1559
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::Cadence }
|
|
1560
1560
|
|
|
1561
1561
|
# @!attribute item_id
|
|
1562
1562
|
# The id of the item the price will be associated with.
|
|
@@ -1567,9 +1567,9 @@ module Orb
|
|
|
1567
1567
|
# @!attribute matrix_with_threshold_discounts_config
|
|
1568
1568
|
# Configuration for matrix_with_threshold_discounts pricing
|
|
1569
1569
|
#
|
|
1570
|
-
# @return [Orb::Models::
|
|
1570
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig]
|
|
1571
1571
|
required :matrix_with_threshold_discounts_config,
|
|
1572
|
-
-> { Orb::
|
|
1572
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig }
|
|
1573
1573
|
|
|
1574
1574
|
# @!attribute model_type
|
|
1575
1575
|
# The pricing model type
|
|
@@ -1686,14 +1686,14 @@ module Orb
|
|
|
1686
1686
|
|
|
1687
1687
|
# @!method initialize(cadence:, item_id:, matrix_with_threshold_discounts_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :matrix_with_threshold_discounts)
|
|
1688
1688
|
# Some parameter documentations has been truncated, see
|
|
1689
|
-
# {Orb::Models::
|
|
1689
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts}
|
|
1690
1690
|
# for more details.
|
|
1691
1691
|
#
|
|
1692
|
-
# @param cadence [Symbol, Orb::Models::
|
|
1692
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::Cadence] The cadence to bill for this price on.
|
|
1693
1693
|
#
|
|
1694
1694
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
1695
1695
|
#
|
|
1696
|
-
# @param matrix_with_threshold_discounts_config [Orb::Models::
|
|
1696
|
+
# @param matrix_with_threshold_discounts_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig] Configuration for matrix_with_threshold_discounts pricing
|
|
1697
1697
|
#
|
|
1698
1698
|
# @param name [String] The name of the price.
|
|
1699
1699
|
#
|
|
@@ -1729,7 +1729,7 @@ module Orb
|
|
|
1729
1729
|
|
|
1730
1730
|
# The cadence to bill for this price on.
|
|
1731
1731
|
#
|
|
1732
|
-
# @see Orb::Models::
|
|
1732
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts#cadence
|
|
1733
1733
|
module Cadence
|
|
1734
1734
|
extend Orb::Internal::Type::Enum
|
|
1735
1735
|
|
|
@@ -1744,7 +1744,7 @@ module Orb
|
|
|
1744
1744
|
# @return [Array<Symbol>]
|
|
1745
1745
|
end
|
|
1746
1746
|
|
|
1747
|
-
# @see Orb::Models::
|
|
1747
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts#matrix_with_threshold_discounts_config
|
|
1748
1748
|
class MatrixWithThresholdDiscountsConfig < Orb::Internal::Type::BaseModel
|
|
1749
1749
|
# @!attribute default_unit_amount
|
|
1750
1750
|
# Unit price used for usage that does not match any defined matrix cell.
|
|
@@ -1761,11 +1761,11 @@ module Orb
|
|
|
1761
1761
|
# @!attribute matrix_values
|
|
1762
1762
|
# Per-cell unit prices.
|
|
1763
1763
|
#
|
|
1764
|
-
# @return [Array<Orb::Models::
|
|
1764
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue>]
|
|
1765
1765
|
required :matrix_values,
|
|
1766
1766
|
-> do
|
|
1767
1767
|
Orb::Internal::Type::ArrayOf[
|
|
1768
|
-
Orb::
|
|
1768
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue
|
|
1769
1769
|
]
|
|
1770
1770
|
end
|
|
1771
1771
|
|
|
@@ -1777,11 +1777,11 @@ module Orb
|
|
|
1777
1777
|
|
|
1778
1778
|
# @!attribute threshold_discount_groups
|
|
1779
1779
|
#
|
|
1780
|
-
# @return [Array<Orb::Models::
|
|
1780
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup>, nil]
|
|
1781
1781
|
optional :threshold_discount_groups,
|
|
1782
1782
|
-> do
|
|
1783
1783
|
Orb::Internal::Type::ArrayOf[
|
|
1784
|
-
Orb::
|
|
1784
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup
|
|
1785
1785
|
]
|
|
1786
1786
|
end
|
|
1787
1787
|
|
|
@@ -1792,11 +1792,11 @@ module Orb
|
|
|
1792
1792
|
#
|
|
1793
1793
|
# @param first_dimension [String] First matrix dimension key.
|
|
1794
1794
|
#
|
|
1795
|
-
# @param matrix_values [Array<Orb::Models::
|
|
1795
|
+
# @param matrix_values [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue>] Per-cell unit prices.
|
|
1796
1796
|
#
|
|
1797
1797
|
# @param second_dimension [String, nil] Optional second matrix dimension key.
|
|
1798
1798
|
#
|
|
1799
|
-
# @param threshold_discount_groups [Array<Orb::Models::
|
|
1799
|
+
# @param threshold_discount_groups [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup>]
|
|
1800
1800
|
|
|
1801
1801
|
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
1802
1802
|
# @!attribute first_dimension_value
|
|
@@ -1854,7 +1854,7 @@ module Orb
|
|
|
1854
1854
|
|
|
1855
1855
|
# @!method initialize(above_threshold_discount_percentage:, below_threshold_discount_percentage:, cell_coordinates:, threshold_amount:, description: nil)
|
|
1856
1856
|
# Some parameter documentations has been truncated, see
|
|
1857
|
-
# {Orb::Models::
|
|
1857
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup}
|
|
1858
1858
|
# for more details.
|
|
1859
1859
|
#
|
|
1860
1860
|
# @param above_threshold_discount_percentage [String] Discount rate applied to spend above the threshold.
|
|
@@ -1874,9 +1874,9 @@ module Orb
|
|
|
1874
1874
|
# @!attribute cadence
|
|
1875
1875
|
# The cadence to bill for this price on.
|
|
1876
1876
|
#
|
|
1877
|
-
# @return [Symbol, Orb::Models::
|
|
1877
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence]
|
|
1878
1878
|
required :cadence,
|
|
1879
|
-
enum: -> { Orb::
|
|
1879
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence }
|
|
1880
1880
|
|
|
1881
1881
|
# @!attribute item_id
|
|
1882
1882
|
# The id of the item the price will be associated with.
|
|
@@ -1899,9 +1899,9 @@ module Orb
|
|
|
1899
1899
|
# @!attribute tiered_with_proration_config
|
|
1900
1900
|
# Configuration for tiered_with_proration pricing
|
|
1901
1901
|
#
|
|
1902
|
-
# @return [Orb::Models::
|
|
1902
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig]
|
|
1903
1903
|
required :tiered_with_proration_config,
|
|
1904
|
-
-> { Orb::
|
|
1904
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig }
|
|
1905
1905
|
|
|
1906
1906
|
# @!attribute billable_metric_id
|
|
1907
1907
|
# The id of the billable metric for the price. Only needed if the price is
|
|
@@ -2006,16 +2006,16 @@ module Orb
|
|
|
2006
2006
|
|
|
2007
2007
|
# @!method initialize(cadence:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_proration)
|
|
2008
2008
|
# Some parameter documentations has been truncated, see
|
|
2009
|
-
# {Orb::Models::
|
|
2009
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration}
|
|
2010
2010
|
# for more details.
|
|
2011
2011
|
#
|
|
2012
|
-
# @param cadence [Symbol, Orb::Models::
|
|
2012
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on.
|
|
2013
2013
|
#
|
|
2014
2014
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
2015
2015
|
#
|
|
2016
2016
|
# @param name [String] The name of the price.
|
|
2017
2017
|
#
|
|
2018
|
-
# @param tiered_with_proration_config [Orb::Models::
|
|
2018
|
+
# @param tiered_with_proration_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig] Configuration for tiered_with_proration pricing
|
|
2019
2019
|
#
|
|
2020
2020
|
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
2021
2021
|
#
|
|
@@ -2049,7 +2049,7 @@ module Orb
|
|
|
2049
2049
|
|
|
2050
2050
|
# The cadence to bill for this price on.
|
|
2051
2051
|
#
|
|
2052
|
-
# @see Orb::Models::
|
|
2052
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration#cadence
|
|
2053
2053
|
module Cadence
|
|
2054
2054
|
extend Orb::Internal::Type::Enum
|
|
2055
2055
|
|
|
@@ -2064,28 +2064,28 @@ module Orb
|
|
|
2064
2064
|
# @return [Array<Symbol>]
|
|
2065
2065
|
end
|
|
2066
2066
|
|
|
2067
|
-
# @see Orb::Models::
|
|
2067
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration#tiered_with_proration_config
|
|
2068
2068
|
class TieredWithProrationConfig < Orb::Internal::Type::BaseModel
|
|
2069
2069
|
# @!attribute tiers
|
|
2070
2070
|
# Tiers for rating based on total usage quantities into the specified tier with
|
|
2071
2071
|
# proration
|
|
2072
2072
|
#
|
|
2073
|
-
# @return [Array<Orb::Models::
|
|
2073
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier>]
|
|
2074
2074
|
required :tiers,
|
|
2075
2075
|
-> do
|
|
2076
2076
|
Orb::Internal::Type::ArrayOf[
|
|
2077
|
-
Orb::
|
|
2077
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier
|
|
2078
2078
|
]
|
|
2079
2079
|
end
|
|
2080
2080
|
|
|
2081
2081
|
# @!method initialize(tiers:)
|
|
2082
2082
|
# Some parameter documentations has been truncated, see
|
|
2083
|
-
# {Orb::Models::
|
|
2083
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig}
|
|
2084
2084
|
# for more details.
|
|
2085
2085
|
#
|
|
2086
2086
|
# Configuration for tiered_with_proration pricing
|
|
2087
2087
|
#
|
|
2088
|
-
# @param tiers [Array<Orb::Models::
|
|
2088
|
+
# @param tiers [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier>] Tiers for rating based on total usage quantities into the specified tier with pr
|
|
2089
2089
|
|
|
2090
2090
|
class Tier < Orb::Internal::Type::BaseModel
|
|
2091
2091
|
# @!attribute tier_lower_bound
|
|
@@ -2114,16 +2114,16 @@ module Orb
|
|
|
2114
2114
|
# @!attribute cadence
|
|
2115
2115
|
# The cadence to bill for this price on.
|
|
2116
2116
|
#
|
|
2117
|
-
# @return [Symbol, Orb::Models::
|
|
2117
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence]
|
|
2118
2118
|
required :cadence,
|
|
2119
|
-
enum: -> { Orb::
|
|
2119
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence }
|
|
2120
2120
|
|
|
2121
2121
|
# @!attribute grouped_with_min_max_thresholds_config
|
|
2122
2122
|
# Configuration for grouped_with_min_max_thresholds pricing
|
|
2123
2123
|
#
|
|
2124
|
-
# @return [Orb::Models::
|
|
2124
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig]
|
|
2125
2125
|
required :grouped_with_min_max_thresholds_config,
|
|
2126
|
-
-> { Orb::
|
|
2126
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig }
|
|
2127
2127
|
|
|
2128
2128
|
# @!attribute item_id
|
|
2129
2129
|
# The id of the item the price will be associated with.
|
|
@@ -2246,12 +2246,12 @@ module Orb
|
|
|
2246
2246
|
|
|
2247
2247
|
# @!method initialize(cadence:, grouped_with_min_max_thresholds_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_min_max_thresholds)
|
|
2248
2248
|
# Some parameter documentations has been truncated, see
|
|
2249
|
-
# {Orb::Models::
|
|
2249
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds}
|
|
2250
2250
|
# for more details.
|
|
2251
2251
|
#
|
|
2252
|
-
# @param cadence [Symbol, Orb::Models::
|
|
2252
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on.
|
|
2253
2253
|
#
|
|
2254
|
-
# @param grouped_with_min_max_thresholds_config [Orb::Models::
|
|
2254
|
+
# @param grouped_with_min_max_thresholds_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing
|
|
2255
2255
|
#
|
|
2256
2256
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
2257
2257
|
#
|
|
@@ -2289,7 +2289,7 @@ module Orb
|
|
|
2289
2289
|
|
|
2290
2290
|
# The cadence to bill for this price on.
|
|
2291
2291
|
#
|
|
2292
|
-
# @see Orb::Models::
|
|
2292
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds#cadence
|
|
2293
2293
|
module Cadence
|
|
2294
2294
|
extend Orb::Internal::Type::Enum
|
|
2295
2295
|
|
|
@@ -2304,7 +2304,7 @@ module Orb
|
|
|
2304
2304
|
# @return [Array<Symbol>]
|
|
2305
2305
|
end
|
|
2306
2306
|
|
|
2307
|
-
# @see Orb::Models::
|
|
2307
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config
|
|
2308
2308
|
class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel
|
|
2309
2309
|
# @!attribute grouping_key
|
|
2310
2310
|
# The event property used to group before applying thresholds
|
|
@@ -2347,16 +2347,16 @@ module Orb
|
|
|
2347
2347
|
# @!attribute cadence
|
|
2348
2348
|
# The cadence to bill for this price on.
|
|
2349
2349
|
#
|
|
2350
|
-
# @return [Symbol, Orb::Models::
|
|
2350
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation::Cadence]
|
|
2351
2351
|
required :cadence,
|
|
2352
|
-
enum: -> { Orb::
|
|
2352
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation::Cadence }
|
|
2353
2353
|
|
|
2354
2354
|
# @!attribute cumulative_grouped_allocation_config
|
|
2355
2355
|
# Configuration for cumulative_grouped_allocation pricing
|
|
2356
2356
|
#
|
|
2357
|
-
# @return [Orb::Models::
|
|
2357
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig]
|
|
2358
2358
|
required :cumulative_grouped_allocation_config,
|
|
2359
|
-
-> { Orb::
|
|
2359
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig }
|
|
2360
2360
|
|
|
2361
2361
|
# @!attribute item_id
|
|
2362
2362
|
# The id of the item the price will be associated with.
|
|
@@ -2479,12 +2479,12 @@ module Orb
|
|
|
2479
2479
|
|
|
2480
2480
|
# @!method initialize(cadence:, cumulative_grouped_allocation_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :cumulative_grouped_allocation)
|
|
2481
2481
|
# Some parameter documentations has been truncated, see
|
|
2482
|
-
# {Orb::Models::
|
|
2482
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation}
|
|
2483
2483
|
# for more details.
|
|
2484
2484
|
#
|
|
2485
|
-
# @param cadence [Symbol, Orb::Models::
|
|
2485
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation::Cadence] The cadence to bill for this price on.
|
|
2486
2486
|
#
|
|
2487
|
-
# @param cumulative_grouped_allocation_config [Orb::Models::
|
|
2487
|
+
# @param cumulative_grouped_allocation_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig] Configuration for cumulative_grouped_allocation pricing
|
|
2488
2488
|
#
|
|
2489
2489
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
2490
2490
|
#
|
|
@@ -2522,7 +2522,7 @@ module Orb
|
|
|
2522
2522
|
|
|
2523
2523
|
# The cadence to bill for this price on.
|
|
2524
2524
|
#
|
|
2525
|
-
# @see Orb::Models::
|
|
2525
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation#cadence
|
|
2526
2526
|
module Cadence
|
|
2527
2527
|
extend Orb::Internal::Type::Enum
|
|
2528
2528
|
|
|
@@ -2537,7 +2537,7 @@ module Orb
|
|
|
2537
2537
|
# @return [Array<Symbol>]
|
|
2538
2538
|
end
|
|
2539
2539
|
|
|
2540
|
-
# @see Orb::Models::
|
|
2540
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation#cumulative_grouped_allocation_config
|
|
2541
2541
|
class CumulativeGroupedAllocationConfig < Orb::Internal::Type::BaseModel
|
|
2542
2542
|
# @!attribute cumulative_allocation
|
|
2543
2543
|
# The overall allocation across all groups
|
|
@@ -2580,16 +2580,16 @@ module Orb
|
|
|
2580
2580
|
# @!attribute cadence
|
|
2581
2581
|
# The cadence to bill for this price on.
|
|
2582
2582
|
#
|
|
2583
|
-
# @return [Symbol, Orb::Models::
|
|
2583
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::Cadence]
|
|
2584
2584
|
required :cadence,
|
|
2585
|
-
enum: -> { Orb::
|
|
2585
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::Cadence }
|
|
2586
2586
|
|
|
2587
2587
|
# @!attribute daily_credit_allowance_config
|
|
2588
2588
|
# Configuration for daily_credit_allowance pricing
|
|
2589
2589
|
#
|
|
2590
|
-
# @return [Orb::Models::
|
|
2590
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig]
|
|
2591
2591
|
required :daily_credit_allowance_config,
|
|
2592
|
-
-> { Orb::
|
|
2592
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig }
|
|
2593
2593
|
|
|
2594
2594
|
# @!attribute item_id
|
|
2595
2595
|
# The id of the item the price will be associated with.
|
|
@@ -2712,12 +2712,12 @@ module Orb
|
|
|
2712
2712
|
|
|
2713
2713
|
# @!method initialize(cadence:, daily_credit_allowance_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :daily_credit_allowance)
|
|
2714
2714
|
# Some parameter documentations has been truncated, see
|
|
2715
|
-
# {Orb::Models::
|
|
2715
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance}
|
|
2716
2716
|
# for more details.
|
|
2717
2717
|
#
|
|
2718
|
-
# @param cadence [Symbol, Orb::Models::
|
|
2718
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::Cadence] The cadence to bill for this price on.
|
|
2719
2719
|
#
|
|
2720
|
-
# @param daily_credit_allowance_config [Orb::Models::
|
|
2720
|
+
# @param daily_credit_allowance_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig] Configuration for daily_credit_allowance pricing
|
|
2721
2721
|
#
|
|
2722
2722
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
2723
2723
|
#
|
|
@@ -2755,7 +2755,7 @@ module Orb
|
|
|
2755
2755
|
|
|
2756
2756
|
# The cadence to bill for this price on.
|
|
2757
2757
|
#
|
|
2758
|
-
# @see Orb::Models::
|
|
2758
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance#cadence
|
|
2759
2759
|
module Cadence
|
|
2760
2760
|
extend Orb::Internal::Type::Enum
|
|
2761
2761
|
|
|
@@ -2770,7 +2770,7 @@ module Orb
|
|
|
2770
2770
|
# @return [Array<Symbol>]
|
|
2771
2771
|
end
|
|
2772
2772
|
|
|
2773
|
-
# @see Orb::Models::
|
|
2773
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance#daily_credit_allowance_config
|
|
2774
2774
|
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
2775
2775
|
# @!attribute daily_allowance
|
|
2776
2776
|
# Credits granted per day. Lose-it-or-use-it; does not roll over.
|
|
@@ -2802,17 +2802,17 @@ module Orb
|
|
|
2802
2802
|
# @!attribute matrix_values
|
|
2803
2803
|
# Per-dimension credit rates
|
|
2804
2804
|
#
|
|
2805
|
-
# @return [Array<Orb::Models::
|
|
2805
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue>]
|
|
2806
2806
|
required :matrix_values,
|
|
2807
2807
|
-> do
|
|
2808
2808
|
Orb::Internal::Type::ArrayOf[
|
|
2809
|
-
Orb::
|
|
2809
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue
|
|
2810
2810
|
]
|
|
2811
2811
|
end
|
|
2812
2812
|
|
|
2813
2813
|
# @!method initialize(daily_allowance:, default_unit_amount:, dimensions:, event_day_property:, matrix_values:)
|
|
2814
2814
|
# Some parameter documentations has been truncated, see
|
|
2815
|
-
# {Orb::Models::
|
|
2815
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig}
|
|
2816
2816
|
# for more details.
|
|
2817
2817
|
#
|
|
2818
2818
|
# Configuration for daily_credit_allowance pricing
|
|
@@ -2826,7 +2826,7 @@ module Orb
|
|
|
2826
2826
|
#
|
|
2827
2827
|
# @param event_day_property [String] Event property whose value identifies the day bucket the event belongs to (e.g.
|
|
2828
2828
|
#
|
|
2829
|
-
# @param matrix_values [Array<Orb::Models::
|
|
2829
|
+
# @param matrix_values [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue>] Per-dimension credit rates
|
|
2830
2830
|
|
|
2831
2831
|
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
2832
2832
|
# @!attribute dimension_values
|
|
@@ -2844,7 +2844,7 @@ module Orb
|
|
|
2844
2844
|
|
|
2845
2845
|
# @!method initialize(dimension_values:, unit_amount:)
|
|
2846
2846
|
# Some parameter documentations has been truncated, see
|
|
2847
|
-
# {Orb::Models::
|
|
2847
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue}
|
|
2848
2848
|
# for more details.
|
|
2849
2849
|
#
|
|
2850
2850
|
# Per-dimension credit price for the daily credit allowance model.
|
|
@@ -2860,9 +2860,9 @@ module Orb
|
|
|
2860
2860
|
# @!attribute cadence
|
|
2861
2861
|
# The cadence to bill for this price on.
|
|
2862
2862
|
#
|
|
2863
|
-
# @return [Symbol, Orb::Models::
|
|
2863
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::Cadence]
|
|
2864
2864
|
required :cadence,
|
|
2865
|
-
enum: -> { Orb::
|
|
2865
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::Cadence }
|
|
2866
2866
|
|
|
2867
2867
|
# @!attribute item_id
|
|
2868
2868
|
# The id of the item the price will be associated with.
|
|
@@ -2873,9 +2873,9 @@ module Orb
|
|
|
2873
2873
|
# @!attribute metered_allowance_config
|
|
2874
2874
|
# Configuration for metered_allowance pricing
|
|
2875
2875
|
#
|
|
2876
|
-
# @return [Orb::Models::
|
|
2876
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig]
|
|
2877
2877
|
required :metered_allowance_config,
|
|
2878
|
-
-> { Orb::
|
|
2878
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig }
|
|
2879
2879
|
|
|
2880
2880
|
# @!attribute model_type
|
|
2881
2881
|
# The pricing model type
|
|
@@ -2992,14 +2992,14 @@ module Orb
|
|
|
2992
2992
|
|
|
2993
2993
|
# @!method initialize(cadence:, item_id:, metered_allowance_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :metered_allowance)
|
|
2994
2994
|
# Some parameter documentations has been truncated, see
|
|
2995
|
-
# {Orb::Models::
|
|
2995
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance}
|
|
2996
2996
|
# for more details.
|
|
2997
2997
|
#
|
|
2998
|
-
# @param cadence [Symbol, Orb::Models::
|
|
2998
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::Cadence] The cadence to bill for this price on.
|
|
2999
2999
|
#
|
|
3000
3000
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
3001
3001
|
#
|
|
3002
|
-
# @param metered_allowance_config [Orb::Models::
|
|
3002
|
+
# @param metered_allowance_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig] Configuration for metered_allowance pricing
|
|
3003
3003
|
#
|
|
3004
3004
|
# @param name [String] The name of the price.
|
|
3005
3005
|
#
|
|
@@ -3035,7 +3035,7 @@ module Orb
|
|
|
3035
3035
|
|
|
3036
3036
|
# The cadence to bill for this price on.
|
|
3037
3037
|
#
|
|
3038
|
-
# @see Orb::Models::
|
|
3038
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance#cadence
|
|
3039
3039
|
module Cadence
|
|
3040
3040
|
extend Orb::Internal::Type::Enum
|
|
3041
3041
|
|
|
@@ -3050,7 +3050,7 @@ module Orb
|
|
|
3050
3050
|
# @return [Array<Symbol>]
|
|
3051
3051
|
end
|
|
3052
3052
|
|
|
3053
|
-
# @see Orb::Models::
|
|
3053
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance#metered_allowance_config
|
|
3054
3054
|
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
3055
3055
|
# @!attribute allowance_grouping_value
|
|
3056
3056
|
# The grouping_key value whose summed quantity represents the allowance for this
|
|
@@ -3095,7 +3095,7 @@ module Orb
|
|
|
3095
3095
|
|
|
3096
3096
|
# @!method initialize(allowance_grouping_value:, consumption_grouping_value:, grouping_key:, unit_amount:, allowance_display_name: nil, consumption_display_name: nil)
|
|
3097
3097
|
# Some parameter documentations has been truncated, see
|
|
3098
|
-
# {Orb::Models::
|
|
3098
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig}
|
|
3099
3099
|
# for more details.
|
|
3100
3100
|
#
|
|
3101
3101
|
# Configuration for metered_allowance pricing
|
|
@@ -3118,9 +3118,9 @@ module Orb
|
|
|
3118
3118
|
# @!attribute cadence
|
|
3119
3119
|
# The cadence to bill for this price on.
|
|
3120
3120
|
#
|
|
3121
|
-
# @return [Symbol, Orb::Models::
|
|
3121
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::Cadence]
|
|
3122
3122
|
required :cadence,
|
|
3123
|
-
enum: -> { Orb::
|
|
3123
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::Cadence }
|
|
3124
3124
|
|
|
3125
3125
|
# @!attribute item_id
|
|
3126
3126
|
# The id of the item the price will be associated with.
|
|
@@ -3143,9 +3143,9 @@ module Orb
|
|
|
3143
3143
|
# @!attribute percent_config
|
|
3144
3144
|
# Configuration for percent pricing
|
|
3145
3145
|
#
|
|
3146
|
-
# @return [Orb::Models::
|
|
3146
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig]
|
|
3147
3147
|
required :percent_config,
|
|
3148
|
-
-> { Orb::
|
|
3148
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig }
|
|
3149
3149
|
|
|
3150
3150
|
# @!attribute billable_metric_id
|
|
3151
3151
|
# The id of the billable metric for the price. Only needed if the price is
|
|
@@ -3250,16 +3250,16 @@ module Orb
|
|
|
3250
3250
|
|
|
3251
3251
|
# @!method initialize(cadence:, item_id:, name:, percent_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :percent)
|
|
3252
3252
|
# Some parameter documentations has been truncated, see
|
|
3253
|
-
# {Orb::Models::
|
|
3253
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent}
|
|
3254
3254
|
# for more details.
|
|
3255
3255
|
#
|
|
3256
|
-
# @param cadence [Symbol, Orb::Models::
|
|
3256
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::Cadence] The cadence to bill for this price on.
|
|
3257
3257
|
#
|
|
3258
3258
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
3259
3259
|
#
|
|
3260
3260
|
# @param name [String] The name of the price.
|
|
3261
3261
|
#
|
|
3262
|
-
# @param percent_config [Orb::Models::
|
|
3262
|
+
# @param percent_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig] Configuration for percent pricing
|
|
3263
3263
|
#
|
|
3264
3264
|
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
3265
3265
|
#
|
|
@@ -3293,7 +3293,7 @@ module Orb
|
|
|
3293
3293
|
|
|
3294
3294
|
# The cadence to bill for this price on.
|
|
3295
3295
|
#
|
|
3296
|
-
# @see Orb::Models::
|
|
3296
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent#cadence
|
|
3297
3297
|
module Cadence
|
|
3298
3298
|
extend Orb::Internal::Type::Enum
|
|
3299
3299
|
|
|
@@ -3308,7 +3308,7 @@ module Orb
|
|
|
3308
3308
|
# @return [Array<Symbol>]
|
|
3309
3309
|
end
|
|
3310
3310
|
|
|
3311
|
-
# @see Orb::Models::
|
|
3311
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent#percent_config
|
|
3312
3312
|
class PercentConfig < Orb::Internal::Type::BaseModel
|
|
3313
3313
|
# @!attribute percent
|
|
3314
3314
|
# Fraction of the component subtotals to charge (0 < percent <= 1).
|
|
@@ -3338,7 +3338,7 @@ module Orb
|
|
|
3338
3338
|
|
|
3339
3339
|
# @!method initialize(percent:, maximum_amount: nil, minimum_amount: nil, prorated: nil)
|
|
3340
3340
|
# Some parameter documentations has been truncated, see
|
|
3341
|
-
# {Orb::Models::
|
|
3341
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig}
|
|
3342
3342
|
# for more details.
|
|
3343
3343
|
#
|
|
3344
3344
|
# Configuration for percent pricing
|
|
@@ -3357,16 +3357,16 @@ module Orb
|
|
|
3357
3357
|
# @!attribute cadence
|
|
3358
3358
|
# The cadence to bill for this price on.
|
|
3359
3359
|
#
|
|
3360
|
-
# @return [Symbol, Orb::Models::
|
|
3360
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::Cadence]
|
|
3361
3361
|
required :cadence,
|
|
3362
|
-
enum: -> { Orb::
|
|
3362
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::Cadence }
|
|
3363
3363
|
|
|
3364
3364
|
# @!attribute event_output_config
|
|
3365
3365
|
# Configuration for event_output pricing
|
|
3366
3366
|
#
|
|
3367
|
-
# @return [Orb::Models::
|
|
3367
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig]
|
|
3368
3368
|
required :event_output_config,
|
|
3369
|
-
-> { Orb::
|
|
3369
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig }
|
|
3370
3370
|
|
|
3371
3371
|
# @!attribute item_id
|
|
3372
3372
|
# The id of the item the price will be associated with.
|
|
@@ -3489,12 +3489,12 @@ module Orb
|
|
|
3489
3489
|
|
|
3490
3490
|
# @!method initialize(cadence:, event_output_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :event_output)
|
|
3491
3491
|
# Some parameter documentations has been truncated, see
|
|
3492
|
-
# {Orb::Models::
|
|
3492
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput}
|
|
3493
3493
|
# for more details.
|
|
3494
3494
|
#
|
|
3495
|
-
# @param cadence [Symbol, Orb::Models::
|
|
3495
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::Cadence] The cadence to bill for this price on.
|
|
3496
3496
|
#
|
|
3497
|
-
# @param event_output_config [Orb::Models::
|
|
3497
|
+
# @param event_output_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig] Configuration for event_output pricing
|
|
3498
3498
|
#
|
|
3499
3499
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
3500
3500
|
#
|
|
@@ -3532,7 +3532,7 @@ module Orb
|
|
|
3532
3532
|
|
|
3533
3533
|
# The cadence to bill for this price on.
|
|
3534
3534
|
#
|
|
3535
|
-
# @see Orb::Models::
|
|
3535
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput#cadence
|
|
3536
3536
|
module Cadence
|
|
3537
3537
|
extend Orb::Internal::Type::Enum
|
|
3538
3538
|
|
|
@@ -3547,7 +3547,7 @@ module Orb
|
|
|
3547
3547
|
# @return [Array<Symbol>]
|
|
3548
3548
|
end
|
|
3549
3549
|
|
|
3550
|
-
# @see Orb::Models::
|
|
3550
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput#event_output_config
|
|
3551
3551
|
class EventOutputConfig < Orb::Internal::Type::BaseModel
|
|
3552
3552
|
# @!attribute unit_rating_key
|
|
3553
3553
|
# The key in the event data to extract the unit rate from.
|
|
@@ -3572,7 +3572,7 @@ module Orb
|
|
|
3572
3572
|
|
|
3573
3573
|
# @!method initialize(unit_rating_key:, default_unit_rate: nil, grouping_key: nil)
|
|
3574
3574
|
# Some parameter documentations has been truncated, see
|
|
3575
|
-
# {Orb::Models::
|
|
3575
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig}
|
|
3576
3576
|
# for more details.
|
|
3577
3577
|
#
|
|
3578
3578
|
# Configuration for event_output pricing
|
|
@@ -3589,9 +3589,9 @@ module Orb
|
|
|
3589
3589
|
# @!attribute cadence
|
|
3590
3590
|
# The cadence to bill for this price on.
|
|
3591
3591
|
#
|
|
3592
|
-
# @return [Symbol, Orb::Models::
|
|
3592
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::Cadence]
|
|
3593
3593
|
required :cadence,
|
|
3594
|
-
enum: -> { Orb::
|
|
3594
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::Cadence }
|
|
3595
3595
|
|
|
3596
3596
|
# @!attribute item_id
|
|
3597
3597
|
# The id of the item the price will be associated with.
|
|
@@ -3614,9 +3614,9 @@ module Orb
|
|
|
3614
3614
|
# @!attribute unit_with_multiplier_config
|
|
3615
3615
|
# Configuration for unit_with_multiplier pricing
|
|
3616
3616
|
#
|
|
3617
|
-
# @return [Orb::Models::
|
|
3617
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig]
|
|
3618
3618
|
required :unit_with_multiplier_config,
|
|
3619
|
-
-> { Orb::
|
|
3619
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig }
|
|
3620
3620
|
|
|
3621
3621
|
# @!attribute billable_metric_id
|
|
3622
3622
|
# The id of the billable metric for the price. Only needed if the price is
|
|
@@ -3721,16 +3721,16 @@ module Orb
|
|
|
3721
3721
|
|
|
3722
3722
|
# @!method initialize(cadence:, item_id:, name:, unit_with_multiplier_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :unit_with_multiplier)
|
|
3723
3723
|
# Some parameter documentations has been truncated, see
|
|
3724
|
-
# {Orb::Models::
|
|
3724
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier}
|
|
3725
3725
|
# for more details.
|
|
3726
3726
|
#
|
|
3727
|
-
# @param cadence [Symbol, Orb::Models::
|
|
3727
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::Cadence] The cadence to bill for this price on.
|
|
3728
3728
|
#
|
|
3729
3729
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
3730
3730
|
#
|
|
3731
3731
|
# @param name [String] The name of the price.
|
|
3732
3732
|
#
|
|
3733
|
-
# @param unit_with_multiplier_config [Orb::Models::
|
|
3733
|
+
# @param unit_with_multiplier_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig] Configuration for unit_with_multiplier pricing
|
|
3734
3734
|
#
|
|
3735
3735
|
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
3736
3736
|
#
|
|
@@ -3764,7 +3764,7 @@ module Orb
|
|
|
3764
3764
|
|
|
3765
3765
|
# The cadence to bill for this price on.
|
|
3766
3766
|
#
|
|
3767
|
-
# @see Orb::Models::
|
|
3767
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier#cadence
|
|
3768
3768
|
module Cadence
|
|
3769
3769
|
extend Orb::Internal::Type::Enum
|
|
3770
3770
|
|
|
@@ -3779,7 +3779,7 @@ module Orb
|
|
|
3779
3779
|
# @return [Array<Symbol>]
|
|
3780
3780
|
end
|
|
3781
3781
|
|
|
3782
|
-
# @see Orb::Models::
|
|
3782
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier#unit_with_multiplier_config
|
|
3783
3783
|
class UnitWithMultiplierConfig < Orb::Internal::Type::BaseModel
|
|
3784
3784
|
# @!attribute default_display_name
|
|
3785
3785
|
# Sub-line label for list-price events that don't set display_name_key. Unlabeled
|
|
@@ -3812,7 +3812,7 @@ module Orb
|
|
|
3812
3812
|
|
|
3813
3813
|
# @!method initialize(default_display_name:, display_name_key:, multiplier_key:, unit_amount:)
|
|
3814
3814
|
# Some parameter documentations has been truncated, see
|
|
3815
|
-
# {Orb::Models::
|
|
3815
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig}
|
|
3816
3816
|
# for more details.
|
|
3817
3817
|
#
|
|
3818
3818
|
# Configuration for unit_with_multiplier pricing
|
|
@@ -3828,7 +3828,7 @@ module Orb
|
|
|
3828
3828
|
end
|
|
3829
3829
|
|
|
3830
3830
|
# @!method self.variants
|
|
3831
|
-
# @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::
|
|
3831
|
+
# @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier)]
|
|
3832
3832
|
end
|
|
3833
3833
|
end
|
|
3834
3834
|
|
|
@@ -3874,9 +3874,9 @@ module Orb
|
|
|
3874
3874
|
# @!attribute adjustment
|
|
3875
3875
|
# The definition of a new adjustment to create and add to the plan.
|
|
3876
3876
|
#
|
|
3877
|
-
# @return [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::
|
|
3877
|
+
# @return [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount]
|
|
3878
3878
|
required :adjustment,
|
|
3879
|
-
union: -> { Orb::
|
|
3879
|
+
union: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment }
|
|
3880
3880
|
|
|
3881
3881
|
# @!attribute replaces_adjustment_id
|
|
3882
3882
|
# The id of the adjustment on the plan to replace in the plan.
|
|
@@ -3891,7 +3891,7 @@ module Orb
|
|
|
3891
3891
|
optional :plan_phase_order, Integer, nil?: true
|
|
3892
3892
|
|
|
3893
3893
|
# @!method initialize(adjustment:, replaces_adjustment_id:, plan_phase_order: nil)
|
|
3894
|
-
# @param adjustment [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::
|
|
3894
|
+
# @param adjustment [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount] The definition of a new adjustment to create and add to the plan.
|
|
3895
3895
|
#
|
|
3896
3896
|
# @param replaces_adjustment_id [String] The id of the adjustment on the plan to replace in the plan.
|
|
3897
3897
|
#
|
|
@@ -3899,7 +3899,7 @@ module Orb
|
|
|
3899
3899
|
|
|
3900
3900
|
# The definition of a new adjustment to create and add to the plan.
|
|
3901
3901
|
#
|
|
3902
|
-
# @see Orb::Models::
|
|
3902
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment#adjustment
|
|
3903
3903
|
module Adjustment
|
|
3904
3904
|
extend Orb::Internal::Type::Union
|
|
3905
3905
|
|
|
@@ -3916,7 +3916,7 @@ module Orb
|
|
|
3916
3916
|
variant :maximum, -> { Orb::NewMaximum }
|
|
3917
3917
|
|
|
3918
3918
|
variant :tiered_percentage_discount,
|
|
3919
|
-
-> { Orb::
|
|
3919
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount }
|
|
3920
3920
|
|
|
3921
3921
|
class TieredPercentageDiscount < Orb::Internal::Type::BaseModel
|
|
3922
3922
|
# @!attribute adjustment_type
|
|
@@ -3926,21 +3926,21 @@ module Orb
|
|
|
3926
3926
|
|
|
3927
3927
|
# @!attribute tiers
|
|
3928
3928
|
#
|
|
3929
|
-
# @return [Array<Orb::Models::
|
|
3929
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier>]
|
|
3930
3930
|
required :tiers,
|
|
3931
3931
|
-> do
|
|
3932
3932
|
Orb::Internal::Type::ArrayOf[
|
|
3933
|
-
Orb::
|
|
3933
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier
|
|
3934
3934
|
]
|
|
3935
3935
|
end
|
|
3936
3936
|
|
|
3937
3937
|
# @!attribute applies_to_all
|
|
3938
3938
|
# If set, the adjustment will apply to every price on the subscription.
|
|
3939
3939
|
#
|
|
3940
|
-
# @return [Boolean, Orb::Models::
|
|
3940
|
+
# @return [Boolean, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::AppliesToAll, nil]
|
|
3941
3941
|
optional :applies_to_all,
|
|
3942
3942
|
enum: -> {
|
|
3943
|
-
Orb::
|
|
3943
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::AppliesToAll
|
|
3944
3944
|
},
|
|
3945
3945
|
nil?: true
|
|
3946
3946
|
|
|
@@ -3965,11 +3965,11 @@ module Orb
|
|
|
3965
3965
|
# @!attribute filters
|
|
3966
3966
|
# A list of filters that determine which prices this adjustment will apply to.
|
|
3967
3967
|
#
|
|
3968
|
-
# @return [Array<Orb::Models::
|
|
3968
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter>, nil]
|
|
3969
3969
|
optional :filters,
|
|
3970
3970
|
-> do
|
|
3971
3971
|
Orb::Internal::Type::ArrayOf[
|
|
3972
|
-
Orb::
|
|
3972
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter
|
|
3973
3973
|
]
|
|
3974
3974
|
end,
|
|
3975
3975
|
nil?: true
|
|
@@ -3984,21 +3984,21 @@ module Orb
|
|
|
3984
3984
|
# @!attribute price_type
|
|
3985
3985
|
# If set, only prices of the specified type will have the adjustment applied.
|
|
3986
3986
|
#
|
|
3987
|
-
# @return [Symbol, Orb::Models::
|
|
3987
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::PriceType, nil]
|
|
3988
3988
|
optional :price_type,
|
|
3989
3989
|
enum: -> {
|
|
3990
|
-
Orb::
|
|
3990
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::PriceType
|
|
3991
3991
|
},
|
|
3992
3992
|
nil?: true
|
|
3993
3993
|
|
|
3994
3994
|
# @!method initialize(tiers:, applies_to_all: nil, applies_to_item_ids: nil, applies_to_price_ids: nil, currency: nil, filters: nil, is_invoice_level: nil, price_type: nil, adjustment_type: :tiered_percentage_discount)
|
|
3995
3995
|
# Some parameter documentations has been truncated, see
|
|
3996
|
-
# {Orb::Models::
|
|
3996
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount}
|
|
3997
3997
|
# for more details.
|
|
3998
3998
|
#
|
|
3999
|
-
# @param tiers [Array<Orb::Models::
|
|
3999
|
+
# @param tiers [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier>]
|
|
4000
4000
|
#
|
|
4001
|
-
# @param applies_to_all [Boolean, Orb::Models::
|
|
4001
|
+
# @param applies_to_all [Boolean, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::AppliesToAll, nil] If set, the adjustment will apply to every price on the subscription.
|
|
4002
4002
|
#
|
|
4003
4003
|
# @param applies_to_item_ids [Array<String>, nil] The set of item IDs to which this adjustment applies.
|
|
4004
4004
|
#
|
|
@@ -4006,11 +4006,11 @@ module Orb
|
|
|
4006
4006
|
#
|
|
4007
4007
|
# @param currency [String, nil] If set, only prices in the specified currency will have the adjustment applied.
|
|
4008
4008
|
#
|
|
4009
|
-
# @param filters [Array<Orb::Models::
|
|
4009
|
+
# @param filters [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter>, nil] A list of filters that determine which prices this adjustment will apply to.
|
|
4010
4010
|
#
|
|
4011
4011
|
# @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil
|
|
4012
4012
|
#
|
|
4013
|
-
# @param price_type [Symbol, Orb::Models::
|
|
4013
|
+
# @param price_type [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::PriceType, nil] If set, only prices of the specified type will have the adjustment applied.
|
|
4014
4014
|
#
|
|
4015
4015
|
# @param adjustment_type [Symbol, :tiered_percentage_discount]
|
|
4016
4016
|
|
|
@@ -4043,7 +4043,7 @@ module Orb
|
|
|
4043
4043
|
|
|
4044
4044
|
# If set, the adjustment will apply to every price on the subscription.
|
|
4045
4045
|
#
|
|
4046
|
-
# @see Orb::Models::
|
|
4046
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount#applies_to_all
|
|
4047
4047
|
module AppliesToAll
|
|
4048
4048
|
extend Orb::Internal::Type::Enum
|
|
4049
4049
|
|
|
@@ -4057,16 +4057,16 @@ module Orb
|
|
|
4057
4057
|
# @!attribute field
|
|
4058
4058
|
# The property of the price to filter on.
|
|
4059
4059
|
#
|
|
4060
|
-
# @return [Symbol, Orb::Models::
|
|
4060
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::Field]
|
|
4061
4061
|
required :field,
|
|
4062
|
-
enum: -> { Orb::
|
|
4062
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::Field }
|
|
4063
4063
|
|
|
4064
4064
|
# @!attribute operator
|
|
4065
4065
|
# Should prices that match the filter be included or excluded.
|
|
4066
4066
|
#
|
|
4067
|
-
# @return [Symbol, Orb::Models::
|
|
4067
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::Operator]
|
|
4068
4068
|
required :operator,
|
|
4069
|
-
enum: -> { Orb::
|
|
4069
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::Operator }
|
|
4070
4070
|
|
|
4071
4071
|
# @!attribute values
|
|
4072
4072
|
# The IDs or values that match this filter.
|
|
@@ -4075,15 +4075,15 @@ module Orb
|
|
|
4075
4075
|
required :values, Orb::Internal::Type::ArrayOf[String]
|
|
4076
4076
|
|
|
4077
4077
|
# @!method initialize(field:, operator:, values:)
|
|
4078
|
-
# @param field [Symbol, Orb::Models::
|
|
4078
|
+
# @param field [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::Field] The property of the price to filter on.
|
|
4079
4079
|
#
|
|
4080
|
-
# @param operator [Symbol, Orb::Models::
|
|
4080
|
+
# @param operator [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::Operator] Should prices that match the filter be included or excluded.
|
|
4081
4081
|
#
|
|
4082
4082
|
# @param values [Array<String>] The IDs or values that match this filter.
|
|
4083
4083
|
|
|
4084
4084
|
# The property of the price to filter on.
|
|
4085
4085
|
#
|
|
4086
|
-
# @see Orb::Models::
|
|
4086
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter#field
|
|
4087
4087
|
module Field
|
|
4088
4088
|
extend Orb::Internal::Type::Enum
|
|
4089
4089
|
|
|
@@ -4099,7 +4099,7 @@ module Orb
|
|
|
4099
4099
|
|
|
4100
4100
|
# Should prices that match the filter be included or excluded.
|
|
4101
4101
|
#
|
|
4102
|
-
# @see Orb::Models::
|
|
4102
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter#operator
|
|
4103
4103
|
module Operator
|
|
4104
4104
|
extend Orb::Internal::Type::Enum
|
|
4105
4105
|
|
|
@@ -4113,7 +4113,7 @@ module Orb
|
|
|
4113
4113
|
|
|
4114
4114
|
# If set, only prices of the specified type will have the adjustment applied.
|
|
4115
4115
|
#
|
|
4116
|
-
# @see Orb::Models::
|
|
4116
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount#price_type
|
|
4117
4117
|
module PriceType
|
|
4118
4118
|
extend Orb::Internal::Type::Enum
|
|
4119
4119
|
|
|
@@ -4129,7 +4129,7 @@ module Orb
|
|
|
4129
4129
|
end
|
|
4130
4130
|
|
|
4131
4131
|
# @!method self.variants
|
|
4132
|
-
# @return [Array(Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::
|
|
4132
|
+
# @return [Array(Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount)]
|
|
4133
4133
|
end
|
|
4134
4134
|
end
|
|
4135
4135
|
|
|
@@ -4149,10 +4149,10 @@ module Orb
|
|
|
4149
4149
|
# @!attribute license_allocation_price
|
|
4150
4150
|
# The license allocation price to add to the plan.
|
|
4151
4151
|
#
|
|
4152
|
-
# @return [Orb::Models::
|
|
4152
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice, nil]
|
|
4153
4153
|
optional :license_allocation_price,
|
|
4154
4154
|
-> {
|
|
4155
|
-
Orb::
|
|
4155
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice
|
|
4156
4156
|
},
|
|
4157
4157
|
nil?: true
|
|
4158
4158
|
|
|
@@ -4165,9 +4165,9 @@ module Orb
|
|
|
4165
4165
|
# @!attribute price
|
|
4166
4166
|
# New plan price request body params.
|
|
4167
4167
|
#
|
|
4168
|
-
# @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::
|
|
4168
|
+
# @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier, nil]
|
|
4169
4169
|
optional :price,
|
|
4170
|
-
union: -> { Orb::
|
|
4170
|
+
union: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price },
|
|
4171
4171
|
nil?: true
|
|
4172
4172
|
|
|
4173
4173
|
# @!method initialize(replaces_price_id:, allocation_price: nil, license_allocation_price: nil, plan_phase_order: nil, price: nil)
|
|
@@ -4175,20 +4175,20 @@ module Orb
|
|
|
4175
4175
|
#
|
|
4176
4176
|
# @param allocation_price [Orb::Models::NewAllocationPrice, nil] The allocation price to add to the plan.
|
|
4177
4177
|
#
|
|
4178
|
-
# @param license_allocation_price [Orb::Models::
|
|
4178
|
+
# @param license_allocation_price [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice, nil] The license allocation price to add to the plan.
|
|
4179
4179
|
#
|
|
4180
4180
|
# @param plan_phase_order [Integer, nil] The phase to replace this price from.
|
|
4181
4181
|
#
|
|
4182
|
-
# @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::
|
|
4182
|
+
# @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier, nil] New plan price request body params.
|
|
4183
4183
|
|
|
4184
|
-
# @see Orb::Models::
|
|
4184
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice#license_allocation_price
|
|
4185
4185
|
class LicenseAllocationPrice < Orb::Internal::Type::BaseModel
|
|
4186
4186
|
# @!attribute cadence
|
|
4187
4187
|
# The cadence to bill for this price on.
|
|
4188
4188
|
#
|
|
4189
|
-
# @return [Symbol, Orb::Models::
|
|
4189
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::Cadence]
|
|
4190
4190
|
required :cadence,
|
|
4191
|
-
enum: -> { Orb::
|
|
4191
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::Cadence }
|
|
4192
4192
|
|
|
4193
4193
|
# @!attribute item_id
|
|
4194
4194
|
# The id of the item the price will be associated with.
|
|
@@ -4202,16 +4202,16 @@ module Orb
|
|
|
4202
4202
|
# license_type_configuration to be set. Usage prices draw down from these
|
|
4203
4203
|
# allocations only if they set the same license type.
|
|
4204
4204
|
#
|
|
4205
|
-
# @return [Array<Orb::Models::
|
|
4205
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::LicenseAllocation>]
|
|
4206
4206
|
required :license_allocations,
|
|
4207
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
4207
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::LicenseAllocation] }
|
|
4208
4208
|
|
|
4209
4209
|
# @!attribute model_type
|
|
4210
4210
|
# The pricing model type
|
|
4211
4211
|
#
|
|
4212
|
-
# @return [Symbol, Orb::Models::
|
|
4212
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::ModelType]
|
|
4213
4213
|
required :model_type,
|
|
4214
|
-
enum: -> { Orb::
|
|
4214
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::ModelType }
|
|
4215
4215
|
|
|
4216
4216
|
# @!attribute name
|
|
4217
4217
|
# The name of the price.
|
|
@@ -4328,18 +4328,18 @@ module Orb
|
|
|
4328
4328
|
|
|
4329
4329
|
# @!method initialize(cadence:, item_id:, license_allocations:, model_type:, name:, unit_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil)
|
|
4330
4330
|
# Some parameter documentations has been truncated, see
|
|
4331
|
-
# {Orb::Models::
|
|
4331
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice}
|
|
4332
4332
|
# for more details.
|
|
4333
4333
|
#
|
|
4334
4334
|
# The license allocation price to add to the plan.
|
|
4335
4335
|
#
|
|
4336
|
-
# @param cadence [Symbol, Orb::Models::
|
|
4336
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::Cadence] The cadence to bill for this price on.
|
|
4337
4337
|
#
|
|
4338
4338
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
4339
4339
|
#
|
|
4340
|
-
# @param license_allocations [Array<Orb::Models::
|
|
4340
|
+
# @param license_allocations [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::LicenseAllocation>] License allocations to associate with this price. Each entry defines a per-licen
|
|
4341
4341
|
#
|
|
4342
|
-
# @param model_type [Symbol, Orb::Models::
|
|
4342
|
+
# @param model_type [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::ModelType] The pricing model type
|
|
4343
4343
|
#
|
|
4344
4344
|
# @param name [String] The name of the price.
|
|
4345
4345
|
#
|
|
@@ -4375,7 +4375,7 @@ module Orb
|
|
|
4375
4375
|
|
|
4376
4376
|
# The cadence to bill for this price on.
|
|
4377
4377
|
#
|
|
4378
|
-
# @see Orb::Models::
|
|
4378
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice#cadence
|
|
4379
4379
|
module Cadence
|
|
4380
4380
|
extend Orb::Internal::Type::Enum
|
|
4381
4381
|
|
|
@@ -4419,7 +4419,7 @@ module Orb
|
|
|
4419
4419
|
|
|
4420
4420
|
# The pricing model type
|
|
4421
4421
|
#
|
|
4422
|
-
# @see Orb::Models::
|
|
4422
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice#model_type
|
|
4423
4423
|
module ModelType
|
|
4424
4424
|
extend Orb::Internal::Type::Enum
|
|
4425
4425
|
|
|
@@ -4432,7 +4432,7 @@ module Orb
|
|
|
4432
4432
|
|
|
4433
4433
|
# New plan price request body params.
|
|
4434
4434
|
#
|
|
4435
|
-
# @see Orb::Models::
|
|
4435
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice#price
|
|
4436
4436
|
module Price
|
|
4437
4437
|
extend Orb::Internal::Type::Union
|
|
4438
4438
|
|
|
@@ -4445,7 +4445,7 @@ module Orb
|
|
|
4445
4445
|
variant :bulk, -> { Orb::NewPlanBulkPrice }
|
|
4446
4446
|
|
|
4447
4447
|
variant :bulk_with_filters,
|
|
4448
|
-
-> { Orb::
|
|
4448
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters }
|
|
4449
4449
|
|
|
4450
4450
|
variant :package, -> { Orb::NewPlanPackagePrice }
|
|
4451
4451
|
|
|
@@ -4460,7 +4460,7 @@ module Orb
|
|
|
4460
4460
|
variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice }
|
|
4461
4461
|
|
|
4462
4462
|
variant :grouped_tiered_matrix,
|
|
4463
|
-
-> { Orb::
|
|
4463
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix }
|
|
4464
4464
|
|
|
4465
4465
|
variant :tiered_package_with_minimum, -> { Orb::NewPlanTieredPackageWithMinimumPrice }
|
|
4466
4466
|
|
|
@@ -4471,13 +4471,13 @@ module Orb
|
|
|
4471
4471
|
variant :matrix_with_allocation, -> { Orb::NewPlanMatrixWithAllocationPrice }
|
|
4472
4472
|
|
|
4473
4473
|
variant :tiered_matrix_with_allocation,
|
|
4474
|
-
-> { Orb::
|
|
4474
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation }
|
|
4475
4475
|
|
|
4476
4476
|
variant :matrix_with_threshold_discounts,
|
|
4477
|
-
-> { Orb::
|
|
4477
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts }
|
|
4478
4478
|
|
|
4479
4479
|
variant :tiered_with_proration,
|
|
4480
|
-
-> { Orb::
|
|
4480
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration }
|
|
4481
4481
|
|
|
4482
4482
|
variant :unit_with_proration, -> { Orb::NewPlanUnitWithProrationPrice }
|
|
4483
4483
|
|
|
@@ -4490,7 +4490,7 @@ module Orb
|
|
|
4490
4490
|
variant :grouped_with_metered_minimum, -> { Orb::NewPlanGroupedWithMeteredMinimumPrice }
|
|
4491
4491
|
|
|
4492
4492
|
variant :grouped_with_min_max_thresholds,
|
|
4493
|
-
-> { Orb::
|
|
4493
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds }
|
|
4494
4494
|
|
|
4495
4495
|
variant :matrix_with_display_name, -> { Orb::NewPlanMatrixWithDisplayNamePrice }
|
|
4496
4496
|
|
|
@@ -4505,38 +4505,38 @@ module Orb
|
|
|
4505
4505
|
variant :cumulative_grouped_bulk, -> { Orb::NewPlanCumulativeGroupedBulkPrice }
|
|
4506
4506
|
|
|
4507
4507
|
variant :cumulative_grouped_allocation,
|
|
4508
|
-
-> { Orb::
|
|
4508
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation }
|
|
4509
4509
|
|
|
4510
4510
|
variant :daily_credit_allowance,
|
|
4511
|
-
-> { Orb::
|
|
4511
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance }
|
|
4512
4512
|
|
|
4513
4513
|
variant :metered_allowance,
|
|
4514
|
-
-> { Orb::
|
|
4514
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance }
|
|
4515
4515
|
|
|
4516
4516
|
variant :minimum_composite, -> { Orb::NewPlanMinimumCompositePrice }
|
|
4517
4517
|
|
|
4518
|
-
variant :percent, -> { Orb::
|
|
4518
|
+
variant :percent, -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent }
|
|
4519
4519
|
|
|
4520
4520
|
variant :event_output,
|
|
4521
|
-
-> { Orb::
|
|
4521
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput }
|
|
4522
4522
|
|
|
4523
4523
|
variant :unit_with_multiplier,
|
|
4524
|
-
-> { Orb::
|
|
4524
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier }
|
|
4525
4525
|
|
|
4526
4526
|
class BulkWithFilters < Orb::Internal::Type::BaseModel
|
|
4527
4527
|
# @!attribute bulk_with_filters_config
|
|
4528
4528
|
# Configuration for bulk_with_filters pricing
|
|
4529
4529
|
#
|
|
4530
|
-
# @return [Orb::Models::
|
|
4530
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig]
|
|
4531
4531
|
required :bulk_with_filters_config,
|
|
4532
|
-
-> { Orb::
|
|
4532
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig }
|
|
4533
4533
|
|
|
4534
4534
|
# @!attribute cadence
|
|
4535
4535
|
# The cadence to bill for this price on.
|
|
4536
4536
|
#
|
|
4537
|
-
# @return [Symbol, Orb::Models::
|
|
4537
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::Cadence]
|
|
4538
4538
|
required :cadence,
|
|
4539
|
-
enum: -> { Orb::
|
|
4539
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::Cadence }
|
|
4540
4540
|
|
|
4541
4541
|
# @!attribute item_id
|
|
4542
4542
|
# The id of the item the price will be associated with.
|
|
@@ -4659,12 +4659,12 @@ module Orb
|
|
|
4659
4659
|
|
|
4660
4660
|
# @!method initialize(bulk_with_filters_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :bulk_with_filters)
|
|
4661
4661
|
# Some parameter documentations has been truncated, see
|
|
4662
|
-
# {Orb::Models::
|
|
4662
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters}
|
|
4663
4663
|
# for more details.
|
|
4664
4664
|
#
|
|
4665
|
-
# @param bulk_with_filters_config [Orb::Models::
|
|
4665
|
+
# @param bulk_with_filters_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig] Configuration for bulk_with_filters pricing
|
|
4666
4666
|
#
|
|
4667
|
-
# @param cadence [Symbol, Orb::Models::
|
|
4667
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::Cadence] The cadence to bill for this price on.
|
|
4668
4668
|
#
|
|
4669
4669
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
4670
4670
|
#
|
|
@@ -4700,36 +4700,36 @@ module Orb
|
|
|
4700
4700
|
#
|
|
4701
4701
|
# @param model_type [Symbol, :bulk_with_filters] The pricing model type
|
|
4702
4702
|
|
|
4703
|
-
# @see Orb::Models::
|
|
4703
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters#bulk_with_filters_config
|
|
4704
4704
|
class BulkWithFiltersConfig < Orb::Internal::Type::BaseModel
|
|
4705
4705
|
# @!attribute filters
|
|
4706
4706
|
# Property filters to apply (all must match)
|
|
4707
4707
|
#
|
|
4708
|
-
# @return [Array<Orb::Models::
|
|
4708
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter>]
|
|
4709
4709
|
required :filters,
|
|
4710
4710
|
-> do
|
|
4711
4711
|
Orb::Internal::Type::ArrayOf[
|
|
4712
|
-
Orb::
|
|
4712
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter
|
|
4713
4713
|
]
|
|
4714
4714
|
end
|
|
4715
4715
|
|
|
4716
4716
|
# @!attribute tiers
|
|
4717
4717
|
# Bulk tiers for rating based on total usage volume
|
|
4718
4718
|
#
|
|
4719
|
-
# @return [Array<Orb::Models::
|
|
4719
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier>]
|
|
4720
4720
|
required :tiers,
|
|
4721
4721
|
-> do
|
|
4722
4722
|
Orb::Internal::Type::ArrayOf[
|
|
4723
|
-
Orb::
|
|
4723
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier
|
|
4724
4724
|
]
|
|
4725
4725
|
end
|
|
4726
4726
|
|
|
4727
4727
|
# @!method initialize(filters:, tiers:)
|
|
4728
4728
|
# Configuration for bulk_with_filters pricing
|
|
4729
4729
|
#
|
|
4730
|
-
# @param filters [Array<Orb::Models::
|
|
4730
|
+
# @param filters [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter>] Property filters to apply (all must match)
|
|
4731
4731
|
#
|
|
4732
|
-
# @param tiers [Array<Orb::Models::
|
|
4732
|
+
# @param tiers [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier>] Bulk tiers for rating based on total usage volume
|
|
4733
4733
|
|
|
4734
4734
|
class Filter < Orb::Internal::Type::BaseModel
|
|
4735
4735
|
# @!attribute property_key
|
|
@@ -4776,7 +4776,7 @@ module Orb
|
|
|
4776
4776
|
|
|
4777
4777
|
# The cadence to bill for this price on.
|
|
4778
4778
|
#
|
|
4779
|
-
# @see Orb::Models::
|
|
4779
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters#cadence
|
|
4780
4780
|
module Cadence
|
|
4781
4781
|
extend Orb::Internal::Type::Enum
|
|
4782
4782
|
|
|
@@ -4796,16 +4796,16 @@ module Orb
|
|
|
4796
4796
|
# @!attribute cadence
|
|
4797
4797
|
# The cadence to bill for this price on.
|
|
4798
4798
|
#
|
|
4799
|
-
# @return [Symbol, Orb::Models::
|
|
4799
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::Cadence]
|
|
4800
4800
|
required :cadence,
|
|
4801
|
-
enum: -> { Orb::
|
|
4801
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::Cadence }
|
|
4802
4802
|
|
|
4803
4803
|
# @!attribute grouped_tiered_matrix_config
|
|
4804
4804
|
# Configuration for grouped_tiered_matrix pricing
|
|
4805
4805
|
#
|
|
4806
|
-
# @return [Orb::Models::
|
|
4806
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig]
|
|
4807
4807
|
required :grouped_tiered_matrix_config,
|
|
4808
|
-
-> { Orb::
|
|
4808
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig }
|
|
4809
4809
|
|
|
4810
4810
|
# @!attribute item_id
|
|
4811
4811
|
# The id of the item the price will be associated with.
|
|
@@ -4928,12 +4928,12 @@ module Orb
|
|
|
4928
4928
|
|
|
4929
4929
|
# @!method initialize(cadence:, grouped_tiered_matrix_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :grouped_tiered_matrix)
|
|
4930
4930
|
# Some parameter documentations has been truncated, see
|
|
4931
|
-
# {Orb::Models::
|
|
4931
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix}
|
|
4932
4932
|
# for more details.
|
|
4933
4933
|
#
|
|
4934
|
-
# @param cadence [Symbol, Orb::Models::
|
|
4934
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::Cadence] The cadence to bill for this price on.
|
|
4935
4935
|
#
|
|
4936
|
-
# @param grouped_tiered_matrix_config [Orb::Models::
|
|
4936
|
+
# @param grouped_tiered_matrix_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig] Configuration for grouped_tiered_matrix pricing
|
|
4937
4937
|
#
|
|
4938
4938
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
4939
4939
|
#
|
|
@@ -4971,7 +4971,7 @@ module Orb
|
|
|
4971
4971
|
|
|
4972
4972
|
# The cadence to bill for this price on.
|
|
4973
4973
|
#
|
|
4974
|
-
# @see Orb::Models::
|
|
4974
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix#cadence
|
|
4975
4975
|
module Cadence
|
|
4976
4976
|
extend Orb::Internal::Type::Enum
|
|
4977
4977
|
|
|
@@ -4986,7 +4986,7 @@ module Orb
|
|
|
4986
4986
|
# @return [Array<Symbol>]
|
|
4987
4987
|
end
|
|
4988
4988
|
|
|
4989
|
-
# @see Orb::Models::
|
|
4989
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix#grouped_tiered_matrix_config
|
|
4990
4990
|
class GroupedTieredMatrixConfig < Orb::Internal::Type::BaseModel
|
|
4991
4991
|
# @!attribute default_unit_amount
|
|
4992
4992
|
# Per unit rate for usage whose dimension value has no configured tiers
|
|
@@ -5004,17 +5004,17 @@ module Orb
|
|
|
5004
5004
|
# Graduated tiers keyed by dimension value; usage for a value is tiered only
|
|
5005
5005
|
# against its own rows
|
|
5006
5006
|
#
|
|
5007
|
-
# @return [Array<Orb::Models::
|
|
5007
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier>]
|
|
5008
5008
|
required :tiers,
|
|
5009
5009
|
-> do
|
|
5010
5010
|
Orb::Internal::Type::ArrayOf[
|
|
5011
|
-
Orb::
|
|
5011
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier
|
|
5012
5012
|
]
|
|
5013
5013
|
end
|
|
5014
5014
|
|
|
5015
5015
|
# @!method initialize(default_unit_amount:, dimension:, tiers:)
|
|
5016
5016
|
# Some parameter documentations has been truncated, see
|
|
5017
|
-
# {Orb::Models::
|
|
5017
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig}
|
|
5018
5018
|
# for more details.
|
|
5019
5019
|
#
|
|
5020
5020
|
# Configuration for grouped_tiered_matrix pricing
|
|
@@ -5023,7 +5023,7 @@ module Orb
|
|
|
5023
5023
|
#
|
|
5024
5024
|
# @param dimension [String] The billable metric property used to group usage before tiering
|
|
5025
5025
|
#
|
|
5026
|
-
# @param tiers [Array<Orb::Models::
|
|
5026
|
+
# @param tiers [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier>] Graduated tiers keyed by dimension value; usage for a value is tiered only again
|
|
5027
5027
|
|
|
5028
5028
|
class Tier < Orb::Internal::Type::BaseModel
|
|
5029
5029
|
# @!attribute dimension_value
|
|
@@ -5059,9 +5059,9 @@ module Orb
|
|
|
5059
5059
|
# @!attribute cadence
|
|
5060
5060
|
# The cadence to bill for this price on.
|
|
5061
5061
|
#
|
|
5062
|
-
# @return [Symbol, Orb::Models::
|
|
5062
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::Cadence]
|
|
5063
5063
|
required :cadence,
|
|
5064
|
-
enum: -> { Orb::
|
|
5064
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::Cadence }
|
|
5065
5065
|
|
|
5066
5066
|
# @!attribute item_id
|
|
5067
5067
|
# The id of the item the price will be associated with.
|
|
@@ -5084,9 +5084,9 @@ module Orb
|
|
|
5084
5084
|
# @!attribute tiered_matrix_with_allocation_config
|
|
5085
5085
|
# Configuration for tiered_matrix_with_allocation pricing
|
|
5086
5086
|
#
|
|
5087
|
-
# @return [Orb::Models::
|
|
5087
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig]
|
|
5088
5088
|
required :tiered_matrix_with_allocation_config,
|
|
5089
|
-
-> { Orb::
|
|
5089
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig }
|
|
5090
5090
|
|
|
5091
5091
|
# @!attribute billable_metric_id
|
|
5092
5092
|
# The id of the billable metric for the price. Only needed if the price is
|
|
@@ -5191,16 +5191,16 @@ module Orb
|
|
|
5191
5191
|
|
|
5192
5192
|
# @!method initialize(cadence:, item_id:, name:, tiered_matrix_with_allocation_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :tiered_matrix_with_allocation)
|
|
5193
5193
|
# Some parameter documentations has been truncated, see
|
|
5194
|
-
# {Orb::Models::
|
|
5194
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation}
|
|
5195
5195
|
# for more details.
|
|
5196
5196
|
#
|
|
5197
|
-
# @param cadence [Symbol, Orb::Models::
|
|
5197
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::Cadence] The cadence to bill for this price on.
|
|
5198
5198
|
#
|
|
5199
5199
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
5200
5200
|
#
|
|
5201
5201
|
# @param name [String] The name of the price.
|
|
5202
5202
|
#
|
|
5203
|
-
# @param tiered_matrix_with_allocation_config [Orb::Models::
|
|
5203
|
+
# @param tiered_matrix_with_allocation_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig] Configuration for tiered_matrix_with_allocation pricing
|
|
5204
5204
|
#
|
|
5205
5205
|
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
5206
5206
|
#
|
|
@@ -5234,7 +5234,7 @@ module Orb
|
|
|
5234
5234
|
|
|
5235
5235
|
# The cadence to bill for this price on.
|
|
5236
5236
|
#
|
|
5237
|
-
# @see Orb::Models::
|
|
5237
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation#cadence
|
|
5238
5238
|
module Cadence
|
|
5239
5239
|
extend Orb::Internal::Type::Enum
|
|
5240
5240
|
|
|
@@ -5249,7 +5249,7 @@ module Orb
|
|
|
5249
5249
|
# @return [Array<Symbol>]
|
|
5250
5250
|
end
|
|
5251
5251
|
|
|
5252
|
-
# @see Orb::Models::
|
|
5252
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation#tiered_matrix_with_allocation_config
|
|
5253
5253
|
class TieredMatrixWithAllocationConfig < Orb::Internal::Type::BaseModel
|
|
5254
5254
|
# @!attribute allocation
|
|
5255
5255
|
# Usage allocation, pooled across all matrix cells
|
|
@@ -5273,17 +5273,17 @@ module Orb
|
|
|
5273
5273
|
# Graduated tiers keyed by matrix cell; usage in a cell is tiered only against its
|
|
5274
5274
|
# own rows
|
|
5275
5275
|
#
|
|
5276
|
-
# @return [Array<Orb::Models::
|
|
5276
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier>]
|
|
5277
5277
|
required :tiers,
|
|
5278
5278
|
-> do
|
|
5279
5279
|
Orb::Internal::Type::ArrayOf[
|
|
5280
|
-
Orb::
|
|
5280
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier
|
|
5281
5281
|
]
|
|
5282
5282
|
end
|
|
5283
5283
|
|
|
5284
5284
|
# @!method initialize(allocation:, default_unit_amount:, dimensions:, tiers:)
|
|
5285
5285
|
# Some parameter documentations has been truncated, see
|
|
5286
|
-
# {Orb::Models::
|
|
5286
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig}
|
|
5287
5287
|
# for more details.
|
|
5288
5288
|
#
|
|
5289
5289
|
# Configuration for tiered_matrix_with_allocation pricing
|
|
@@ -5294,7 +5294,7 @@ module Orb
|
|
|
5294
5294
|
#
|
|
5295
5295
|
# @param dimensions [Array<String>] One or two event property values to evaluate matrix cells by
|
|
5296
5296
|
#
|
|
5297
|
-
# @param tiers [Array<Orb::Models::
|
|
5297
|
+
# @param tiers [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier>] Graduated tiers keyed by matrix cell; usage in a cell is tiered only against its
|
|
5298
5298
|
|
|
5299
5299
|
class Tier < Orb::Internal::Type::BaseModel
|
|
5300
5300
|
# @!attribute dimension_values
|
|
@@ -5318,7 +5318,7 @@ module Orb
|
|
|
5318
5318
|
|
|
5319
5319
|
# @!method initialize(dimension_values:, tier_lower_bound:, unit_amount:)
|
|
5320
5320
|
# Some parameter documentations has been truncated, see
|
|
5321
|
-
# {Orb::Models::
|
|
5321
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier}
|
|
5322
5322
|
# for more details.
|
|
5323
5323
|
#
|
|
5324
5324
|
# Configuration for a single tier scoped to one matrix cell
|
|
@@ -5336,9 +5336,9 @@ module Orb
|
|
|
5336
5336
|
# @!attribute cadence
|
|
5337
5337
|
# The cadence to bill for this price on.
|
|
5338
5338
|
#
|
|
5339
|
-
# @return [Symbol, Orb::Models::
|
|
5339
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::Cadence]
|
|
5340
5340
|
required :cadence,
|
|
5341
|
-
enum: -> { Orb::
|
|
5341
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::Cadence }
|
|
5342
5342
|
|
|
5343
5343
|
# @!attribute item_id
|
|
5344
5344
|
# The id of the item the price will be associated with.
|
|
@@ -5349,9 +5349,9 @@ module Orb
|
|
|
5349
5349
|
# @!attribute matrix_with_threshold_discounts_config
|
|
5350
5350
|
# Configuration for matrix_with_threshold_discounts pricing
|
|
5351
5351
|
#
|
|
5352
|
-
# @return [Orb::Models::
|
|
5352
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig]
|
|
5353
5353
|
required :matrix_with_threshold_discounts_config,
|
|
5354
|
-
-> { Orb::
|
|
5354
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig }
|
|
5355
5355
|
|
|
5356
5356
|
# @!attribute model_type
|
|
5357
5357
|
# The pricing model type
|
|
@@ -5468,14 +5468,14 @@ module Orb
|
|
|
5468
5468
|
|
|
5469
5469
|
# @!method initialize(cadence:, item_id:, matrix_with_threshold_discounts_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :matrix_with_threshold_discounts)
|
|
5470
5470
|
# Some parameter documentations has been truncated, see
|
|
5471
|
-
# {Orb::Models::
|
|
5471
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts}
|
|
5472
5472
|
# for more details.
|
|
5473
5473
|
#
|
|
5474
|
-
# @param cadence [Symbol, Orb::Models::
|
|
5474
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::Cadence] The cadence to bill for this price on.
|
|
5475
5475
|
#
|
|
5476
5476
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
5477
5477
|
#
|
|
5478
|
-
# @param matrix_with_threshold_discounts_config [Orb::Models::
|
|
5478
|
+
# @param matrix_with_threshold_discounts_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig] Configuration for matrix_with_threshold_discounts pricing
|
|
5479
5479
|
#
|
|
5480
5480
|
# @param name [String] The name of the price.
|
|
5481
5481
|
#
|
|
@@ -5511,7 +5511,7 @@ module Orb
|
|
|
5511
5511
|
|
|
5512
5512
|
# The cadence to bill for this price on.
|
|
5513
5513
|
#
|
|
5514
|
-
# @see Orb::Models::
|
|
5514
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts#cadence
|
|
5515
5515
|
module Cadence
|
|
5516
5516
|
extend Orb::Internal::Type::Enum
|
|
5517
5517
|
|
|
@@ -5526,7 +5526,7 @@ module Orb
|
|
|
5526
5526
|
# @return [Array<Symbol>]
|
|
5527
5527
|
end
|
|
5528
5528
|
|
|
5529
|
-
# @see Orb::Models::
|
|
5529
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts#matrix_with_threshold_discounts_config
|
|
5530
5530
|
class MatrixWithThresholdDiscountsConfig < Orb::Internal::Type::BaseModel
|
|
5531
5531
|
# @!attribute default_unit_amount
|
|
5532
5532
|
# Unit price used for usage that does not match any defined matrix cell.
|
|
@@ -5543,11 +5543,11 @@ module Orb
|
|
|
5543
5543
|
# @!attribute matrix_values
|
|
5544
5544
|
# Per-cell unit prices.
|
|
5545
5545
|
#
|
|
5546
|
-
# @return [Array<Orb::Models::
|
|
5546
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue>]
|
|
5547
5547
|
required :matrix_values,
|
|
5548
5548
|
-> do
|
|
5549
5549
|
Orb::Internal::Type::ArrayOf[
|
|
5550
|
-
Orb::
|
|
5550
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue
|
|
5551
5551
|
]
|
|
5552
5552
|
end
|
|
5553
5553
|
|
|
@@ -5559,11 +5559,11 @@ module Orb
|
|
|
5559
5559
|
|
|
5560
5560
|
# @!attribute threshold_discount_groups
|
|
5561
5561
|
#
|
|
5562
|
-
# @return [Array<Orb::Models::
|
|
5562
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup>, nil]
|
|
5563
5563
|
optional :threshold_discount_groups,
|
|
5564
5564
|
-> do
|
|
5565
5565
|
Orb::Internal::Type::ArrayOf[
|
|
5566
|
-
Orb::
|
|
5566
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup
|
|
5567
5567
|
]
|
|
5568
5568
|
end
|
|
5569
5569
|
|
|
@@ -5574,11 +5574,11 @@ module Orb
|
|
|
5574
5574
|
#
|
|
5575
5575
|
# @param first_dimension [String] First matrix dimension key.
|
|
5576
5576
|
#
|
|
5577
|
-
# @param matrix_values [Array<Orb::Models::
|
|
5577
|
+
# @param matrix_values [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue>] Per-cell unit prices.
|
|
5578
5578
|
#
|
|
5579
5579
|
# @param second_dimension [String, nil] Optional second matrix dimension key.
|
|
5580
5580
|
#
|
|
5581
|
-
# @param threshold_discount_groups [Array<Orb::Models::
|
|
5581
|
+
# @param threshold_discount_groups [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup>]
|
|
5582
5582
|
|
|
5583
5583
|
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
5584
5584
|
# @!attribute first_dimension_value
|
|
@@ -5636,7 +5636,7 @@ module Orb
|
|
|
5636
5636
|
|
|
5637
5637
|
# @!method initialize(above_threshold_discount_percentage:, below_threshold_discount_percentage:, cell_coordinates:, threshold_amount:, description: nil)
|
|
5638
5638
|
# Some parameter documentations has been truncated, see
|
|
5639
|
-
# {Orb::Models::
|
|
5639
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup}
|
|
5640
5640
|
# for more details.
|
|
5641
5641
|
#
|
|
5642
5642
|
# @param above_threshold_discount_percentage [String] Discount rate applied to spend above the threshold.
|
|
@@ -5656,9 +5656,9 @@ module Orb
|
|
|
5656
5656
|
# @!attribute cadence
|
|
5657
5657
|
# The cadence to bill for this price on.
|
|
5658
5658
|
#
|
|
5659
|
-
# @return [Symbol, Orb::Models::
|
|
5659
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence]
|
|
5660
5660
|
required :cadence,
|
|
5661
|
-
enum: -> { Orb::
|
|
5661
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence }
|
|
5662
5662
|
|
|
5663
5663
|
# @!attribute item_id
|
|
5664
5664
|
# The id of the item the price will be associated with.
|
|
@@ -5681,9 +5681,9 @@ module Orb
|
|
|
5681
5681
|
# @!attribute tiered_with_proration_config
|
|
5682
5682
|
# Configuration for tiered_with_proration pricing
|
|
5683
5683
|
#
|
|
5684
|
-
# @return [Orb::Models::
|
|
5684
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig]
|
|
5685
5685
|
required :tiered_with_proration_config,
|
|
5686
|
-
-> { Orb::
|
|
5686
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig }
|
|
5687
5687
|
|
|
5688
5688
|
# @!attribute billable_metric_id
|
|
5689
5689
|
# The id of the billable metric for the price. Only needed if the price is
|
|
@@ -5788,16 +5788,16 @@ module Orb
|
|
|
5788
5788
|
|
|
5789
5789
|
# @!method initialize(cadence:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_proration)
|
|
5790
5790
|
# Some parameter documentations has been truncated, see
|
|
5791
|
-
# {Orb::Models::
|
|
5791
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration}
|
|
5792
5792
|
# for more details.
|
|
5793
5793
|
#
|
|
5794
|
-
# @param cadence [Symbol, Orb::Models::
|
|
5794
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on.
|
|
5795
5795
|
#
|
|
5796
5796
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
5797
5797
|
#
|
|
5798
5798
|
# @param name [String] The name of the price.
|
|
5799
5799
|
#
|
|
5800
|
-
# @param tiered_with_proration_config [Orb::Models::
|
|
5800
|
+
# @param tiered_with_proration_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig] Configuration for tiered_with_proration pricing
|
|
5801
5801
|
#
|
|
5802
5802
|
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
5803
5803
|
#
|
|
@@ -5831,7 +5831,7 @@ module Orb
|
|
|
5831
5831
|
|
|
5832
5832
|
# The cadence to bill for this price on.
|
|
5833
5833
|
#
|
|
5834
|
-
# @see Orb::Models::
|
|
5834
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration#cadence
|
|
5835
5835
|
module Cadence
|
|
5836
5836
|
extend Orb::Internal::Type::Enum
|
|
5837
5837
|
|
|
@@ -5846,28 +5846,28 @@ module Orb
|
|
|
5846
5846
|
# @return [Array<Symbol>]
|
|
5847
5847
|
end
|
|
5848
5848
|
|
|
5849
|
-
# @see Orb::Models::
|
|
5849
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration#tiered_with_proration_config
|
|
5850
5850
|
class TieredWithProrationConfig < Orb::Internal::Type::BaseModel
|
|
5851
5851
|
# @!attribute tiers
|
|
5852
5852
|
# Tiers for rating based on total usage quantities into the specified tier with
|
|
5853
5853
|
# proration
|
|
5854
5854
|
#
|
|
5855
|
-
# @return [Array<Orb::Models::
|
|
5855
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier>]
|
|
5856
5856
|
required :tiers,
|
|
5857
5857
|
-> do
|
|
5858
5858
|
Orb::Internal::Type::ArrayOf[
|
|
5859
|
-
Orb::
|
|
5859
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier
|
|
5860
5860
|
]
|
|
5861
5861
|
end
|
|
5862
5862
|
|
|
5863
5863
|
# @!method initialize(tiers:)
|
|
5864
5864
|
# Some parameter documentations has been truncated, see
|
|
5865
|
-
# {Orb::Models::
|
|
5865
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig}
|
|
5866
5866
|
# for more details.
|
|
5867
5867
|
#
|
|
5868
5868
|
# Configuration for tiered_with_proration pricing
|
|
5869
5869
|
#
|
|
5870
|
-
# @param tiers [Array<Orb::Models::
|
|
5870
|
+
# @param tiers [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier>] Tiers for rating based on total usage quantities into the specified tier with pr
|
|
5871
5871
|
|
|
5872
5872
|
class Tier < Orb::Internal::Type::BaseModel
|
|
5873
5873
|
# @!attribute tier_lower_bound
|
|
@@ -5896,16 +5896,16 @@ module Orb
|
|
|
5896
5896
|
# @!attribute cadence
|
|
5897
5897
|
# The cadence to bill for this price on.
|
|
5898
5898
|
#
|
|
5899
|
-
# @return [Symbol, Orb::Models::
|
|
5899
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence]
|
|
5900
5900
|
required :cadence,
|
|
5901
|
-
enum: -> { Orb::
|
|
5901
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence }
|
|
5902
5902
|
|
|
5903
5903
|
# @!attribute grouped_with_min_max_thresholds_config
|
|
5904
5904
|
# Configuration for grouped_with_min_max_thresholds pricing
|
|
5905
5905
|
#
|
|
5906
|
-
# @return [Orb::Models::
|
|
5906
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig]
|
|
5907
5907
|
required :grouped_with_min_max_thresholds_config,
|
|
5908
|
-
-> { Orb::
|
|
5908
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig }
|
|
5909
5909
|
|
|
5910
5910
|
# @!attribute item_id
|
|
5911
5911
|
# The id of the item the price will be associated with.
|
|
@@ -6028,12 +6028,12 @@ module Orb
|
|
|
6028
6028
|
|
|
6029
6029
|
# @!method initialize(cadence:, grouped_with_min_max_thresholds_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_min_max_thresholds)
|
|
6030
6030
|
# Some parameter documentations has been truncated, see
|
|
6031
|
-
# {Orb::Models::
|
|
6031
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds}
|
|
6032
6032
|
# for more details.
|
|
6033
6033
|
#
|
|
6034
|
-
# @param cadence [Symbol, Orb::Models::
|
|
6034
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on.
|
|
6035
6035
|
#
|
|
6036
|
-
# @param grouped_with_min_max_thresholds_config [Orb::Models::
|
|
6036
|
+
# @param grouped_with_min_max_thresholds_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing
|
|
6037
6037
|
#
|
|
6038
6038
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
6039
6039
|
#
|
|
@@ -6071,7 +6071,7 @@ module Orb
|
|
|
6071
6071
|
|
|
6072
6072
|
# The cadence to bill for this price on.
|
|
6073
6073
|
#
|
|
6074
|
-
# @see Orb::Models::
|
|
6074
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds#cadence
|
|
6075
6075
|
module Cadence
|
|
6076
6076
|
extend Orb::Internal::Type::Enum
|
|
6077
6077
|
|
|
@@ -6086,7 +6086,7 @@ module Orb
|
|
|
6086
6086
|
# @return [Array<Symbol>]
|
|
6087
6087
|
end
|
|
6088
6088
|
|
|
6089
|
-
# @see Orb::Models::
|
|
6089
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config
|
|
6090
6090
|
class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel
|
|
6091
6091
|
# @!attribute grouping_key
|
|
6092
6092
|
# The event property used to group before applying thresholds
|
|
@@ -6129,16 +6129,16 @@ module Orb
|
|
|
6129
6129
|
# @!attribute cadence
|
|
6130
6130
|
# The cadence to bill for this price on.
|
|
6131
6131
|
#
|
|
6132
|
-
# @return [Symbol, Orb::Models::
|
|
6132
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::Cadence]
|
|
6133
6133
|
required :cadence,
|
|
6134
|
-
enum: -> { Orb::
|
|
6134
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::Cadence }
|
|
6135
6135
|
|
|
6136
6136
|
# @!attribute cumulative_grouped_allocation_config
|
|
6137
6137
|
# Configuration for cumulative_grouped_allocation pricing
|
|
6138
6138
|
#
|
|
6139
|
-
# @return [Orb::Models::
|
|
6139
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig]
|
|
6140
6140
|
required :cumulative_grouped_allocation_config,
|
|
6141
|
-
-> { Orb::
|
|
6141
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig }
|
|
6142
6142
|
|
|
6143
6143
|
# @!attribute item_id
|
|
6144
6144
|
# The id of the item the price will be associated with.
|
|
@@ -6261,12 +6261,12 @@ module Orb
|
|
|
6261
6261
|
|
|
6262
6262
|
# @!method initialize(cadence:, cumulative_grouped_allocation_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :cumulative_grouped_allocation)
|
|
6263
6263
|
# Some parameter documentations has been truncated, see
|
|
6264
|
-
# {Orb::Models::
|
|
6264
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation}
|
|
6265
6265
|
# for more details.
|
|
6266
6266
|
#
|
|
6267
|
-
# @param cadence [Symbol, Orb::Models::
|
|
6267
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::Cadence] The cadence to bill for this price on.
|
|
6268
6268
|
#
|
|
6269
|
-
# @param cumulative_grouped_allocation_config [Orb::Models::
|
|
6269
|
+
# @param cumulative_grouped_allocation_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig] Configuration for cumulative_grouped_allocation pricing
|
|
6270
6270
|
#
|
|
6271
6271
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
6272
6272
|
#
|
|
@@ -6304,7 +6304,7 @@ module Orb
|
|
|
6304
6304
|
|
|
6305
6305
|
# The cadence to bill for this price on.
|
|
6306
6306
|
#
|
|
6307
|
-
# @see Orb::Models::
|
|
6307
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation#cadence
|
|
6308
6308
|
module Cadence
|
|
6309
6309
|
extend Orb::Internal::Type::Enum
|
|
6310
6310
|
|
|
@@ -6319,7 +6319,7 @@ module Orb
|
|
|
6319
6319
|
# @return [Array<Symbol>]
|
|
6320
6320
|
end
|
|
6321
6321
|
|
|
6322
|
-
# @see Orb::Models::
|
|
6322
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation#cumulative_grouped_allocation_config
|
|
6323
6323
|
class CumulativeGroupedAllocationConfig < Orb::Internal::Type::BaseModel
|
|
6324
6324
|
# @!attribute cumulative_allocation
|
|
6325
6325
|
# The overall allocation across all groups
|
|
@@ -6362,16 +6362,16 @@ module Orb
|
|
|
6362
6362
|
# @!attribute cadence
|
|
6363
6363
|
# The cadence to bill for this price on.
|
|
6364
6364
|
#
|
|
6365
|
-
# @return [Symbol, Orb::Models::
|
|
6365
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::Cadence]
|
|
6366
6366
|
required :cadence,
|
|
6367
|
-
enum: -> { Orb::
|
|
6367
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::Cadence }
|
|
6368
6368
|
|
|
6369
6369
|
# @!attribute daily_credit_allowance_config
|
|
6370
6370
|
# Configuration for daily_credit_allowance pricing
|
|
6371
6371
|
#
|
|
6372
|
-
# @return [Orb::Models::
|
|
6372
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig]
|
|
6373
6373
|
required :daily_credit_allowance_config,
|
|
6374
|
-
-> { Orb::
|
|
6374
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig }
|
|
6375
6375
|
|
|
6376
6376
|
# @!attribute item_id
|
|
6377
6377
|
# The id of the item the price will be associated with.
|
|
@@ -6494,12 +6494,12 @@ module Orb
|
|
|
6494
6494
|
|
|
6495
6495
|
# @!method initialize(cadence:, daily_credit_allowance_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :daily_credit_allowance)
|
|
6496
6496
|
# Some parameter documentations has been truncated, see
|
|
6497
|
-
# {Orb::Models::
|
|
6497
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance}
|
|
6498
6498
|
# for more details.
|
|
6499
6499
|
#
|
|
6500
|
-
# @param cadence [Symbol, Orb::Models::
|
|
6500
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::Cadence] The cadence to bill for this price on.
|
|
6501
6501
|
#
|
|
6502
|
-
# @param daily_credit_allowance_config [Orb::Models::
|
|
6502
|
+
# @param daily_credit_allowance_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig] Configuration for daily_credit_allowance pricing
|
|
6503
6503
|
#
|
|
6504
6504
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
6505
6505
|
#
|
|
@@ -6537,7 +6537,7 @@ module Orb
|
|
|
6537
6537
|
|
|
6538
6538
|
# The cadence to bill for this price on.
|
|
6539
6539
|
#
|
|
6540
|
-
# @see Orb::Models::
|
|
6540
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance#cadence
|
|
6541
6541
|
module Cadence
|
|
6542
6542
|
extend Orb::Internal::Type::Enum
|
|
6543
6543
|
|
|
@@ -6552,7 +6552,7 @@ module Orb
|
|
|
6552
6552
|
# @return [Array<Symbol>]
|
|
6553
6553
|
end
|
|
6554
6554
|
|
|
6555
|
-
# @see Orb::Models::
|
|
6555
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance#daily_credit_allowance_config
|
|
6556
6556
|
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
6557
6557
|
# @!attribute daily_allowance
|
|
6558
6558
|
# Credits granted per day. Lose-it-or-use-it; does not roll over.
|
|
@@ -6584,17 +6584,17 @@ module Orb
|
|
|
6584
6584
|
# @!attribute matrix_values
|
|
6585
6585
|
# Per-dimension credit rates
|
|
6586
6586
|
#
|
|
6587
|
-
# @return [Array<Orb::Models::
|
|
6587
|
+
# @return [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue>]
|
|
6588
6588
|
required :matrix_values,
|
|
6589
6589
|
-> do
|
|
6590
6590
|
Orb::Internal::Type::ArrayOf[
|
|
6591
|
-
Orb::
|
|
6591
|
+
Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue
|
|
6592
6592
|
]
|
|
6593
6593
|
end
|
|
6594
6594
|
|
|
6595
6595
|
# @!method initialize(daily_allowance:, default_unit_amount:, dimensions:, event_day_property:, matrix_values:)
|
|
6596
6596
|
# Some parameter documentations has been truncated, see
|
|
6597
|
-
# {Orb::Models::
|
|
6597
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig}
|
|
6598
6598
|
# for more details.
|
|
6599
6599
|
#
|
|
6600
6600
|
# Configuration for daily_credit_allowance pricing
|
|
@@ -6608,7 +6608,7 @@ module Orb
|
|
|
6608
6608
|
#
|
|
6609
6609
|
# @param event_day_property [String] Event property whose value identifies the day bucket the event belongs to (e.g.
|
|
6610
6610
|
#
|
|
6611
|
-
# @param matrix_values [Array<Orb::Models::
|
|
6611
|
+
# @param matrix_values [Array<Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue>] Per-dimension credit rates
|
|
6612
6612
|
|
|
6613
6613
|
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
6614
6614
|
# @!attribute dimension_values
|
|
@@ -6626,7 +6626,7 @@ module Orb
|
|
|
6626
6626
|
|
|
6627
6627
|
# @!method initialize(dimension_values:, unit_amount:)
|
|
6628
6628
|
# Some parameter documentations has been truncated, see
|
|
6629
|
-
# {Orb::Models::
|
|
6629
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue}
|
|
6630
6630
|
# for more details.
|
|
6631
6631
|
#
|
|
6632
6632
|
# Per-dimension credit price for the daily credit allowance model.
|
|
@@ -6642,9 +6642,9 @@ module Orb
|
|
|
6642
6642
|
# @!attribute cadence
|
|
6643
6643
|
# The cadence to bill for this price on.
|
|
6644
6644
|
#
|
|
6645
|
-
# @return [Symbol, Orb::Models::
|
|
6645
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::Cadence]
|
|
6646
6646
|
required :cadence,
|
|
6647
|
-
enum: -> { Orb::
|
|
6647
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::Cadence }
|
|
6648
6648
|
|
|
6649
6649
|
# @!attribute item_id
|
|
6650
6650
|
# The id of the item the price will be associated with.
|
|
@@ -6655,9 +6655,9 @@ module Orb
|
|
|
6655
6655
|
# @!attribute metered_allowance_config
|
|
6656
6656
|
# Configuration for metered_allowance pricing
|
|
6657
6657
|
#
|
|
6658
|
-
# @return [Orb::Models::
|
|
6658
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig]
|
|
6659
6659
|
required :metered_allowance_config,
|
|
6660
|
-
-> { Orb::
|
|
6660
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig }
|
|
6661
6661
|
|
|
6662
6662
|
# @!attribute model_type
|
|
6663
6663
|
# The pricing model type
|
|
@@ -6774,14 +6774,14 @@ module Orb
|
|
|
6774
6774
|
|
|
6775
6775
|
# @!method initialize(cadence:, item_id:, metered_allowance_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :metered_allowance)
|
|
6776
6776
|
# Some parameter documentations has been truncated, see
|
|
6777
|
-
# {Orb::Models::
|
|
6777
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance}
|
|
6778
6778
|
# for more details.
|
|
6779
6779
|
#
|
|
6780
|
-
# @param cadence [Symbol, Orb::Models::
|
|
6780
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::Cadence] The cadence to bill for this price on.
|
|
6781
6781
|
#
|
|
6782
6782
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
6783
6783
|
#
|
|
6784
|
-
# @param metered_allowance_config [Orb::Models::
|
|
6784
|
+
# @param metered_allowance_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig] Configuration for metered_allowance pricing
|
|
6785
6785
|
#
|
|
6786
6786
|
# @param name [String] The name of the price.
|
|
6787
6787
|
#
|
|
@@ -6817,7 +6817,7 @@ module Orb
|
|
|
6817
6817
|
|
|
6818
6818
|
# The cadence to bill for this price on.
|
|
6819
6819
|
#
|
|
6820
|
-
# @see Orb::Models::
|
|
6820
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance#cadence
|
|
6821
6821
|
module Cadence
|
|
6822
6822
|
extend Orb::Internal::Type::Enum
|
|
6823
6823
|
|
|
@@ -6832,7 +6832,7 @@ module Orb
|
|
|
6832
6832
|
# @return [Array<Symbol>]
|
|
6833
6833
|
end
|
|
6834
6834
|
|
|
6835
|
-
# @see Orb::Models::
|
|
6835
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance#metered_allowance_config
|
|
6836
6836
|
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
6837
6837
|
# @!attribute allowance_grouping_value
|
|
6838
6838
|
# The grouping_key value whose summed quantity represents the allowance for this
|
|
@@ -6877,7 +6877,7 @@ module Orb
|
|
|
6877
6877
|
|
|
6878
6878
|
# @!method initialize(allowance_grouping_value:, consumption_grouping_value:, grouping_key:, unit_amount:, allowance_display_name: nil, consumption_display_name: nil)
|
|
6879
6879
|
# Some parameter documentations has been truncated, see
|
|
6880
|
-
# {Orb::Models::
|
|
6880
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig}
|
|
6881
6881
|
# for more details.
|
|
6882
6882
|
#
|
|
6883
6883
|
# Configuration for metered_allowance pricing
|
|
@@ -6900,9 +6900,9 @@ module Orb
|
|
|
6900
6900
|
# @!attribute cadence
|
|
6901
6901
|
# The cadence to bill for this price on.
|
|
6902
6902
|
#
|
|
6903
|
-
# @return [Symbol, Orb::Models::
|
|
6903
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent::Cadence]
|
|
6904
6904
|
required :cadence,
|
|
6905
|
-
enum: -> { Orb::
|
|
6905
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent::Cadence }
|
|
6906
6906
|
|
|
6907
6907
|
# @!attribute item_id
|
|
6908
6908
|
# The id of the item the price will be associated with.
|
|
@@ -6925,9 +6925,9 @@ module Orb
|
|
|
6925
6925
|
# @!attribute percent_config
|
|
6926
6926
|
# Configuration for percent pricing
|
|
6927
6927
|
#
|
|
6928
|
-
# @return [Orb::Models::
|
|
6928
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent::PercentConfig]
|
|
6929
6929
|
required :percent_config,
|
|
6930
|
-
-> { Orb::
|
|
6930
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent::PercentConfig }
|
|
6931
6931
|
|
|
6932
6932
|
# @!attribute billable_metric_id
|
|
6933
6933
|
# The id of the billable metric for the price. Only needed if the price is
|
|
@@ -7032,16 +7032,16 @@ module Orb
|
|
|
7032
7032
|
|
|
7033
7033
|
# @!method initialize(cadence:, item_id:, name:, percent_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :percent)
|
|
7034
7034
|
# Some parameter documentations has been truncated, see
|
|
7035
|
-
# {Orb::Models::
|
|
7035
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent}
|
|
7036
7036
|
# for more details.
|
|
7037
7037
|
#
|
|
7038
|
-
# @param cadence [Symbol, Orb::Models::
|
|
7038
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent::Cadence] The cadence to bill for this price on.
|
|
7039
7039
|
#
|
|
7040
7040
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
7041
7041
|
#
|
|
7042
7042
|
# @param name [String] The name of the price.
|
|
7043
7043
|
#
|
|
7044
|
-
# @param percent_config [Orb::Models::
|
|
7044
|
+
# @param percent_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent::PercentConfig] Configuration for percent pricing
|
|
7045
7045
|
#
|
|
7046
7046
|
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
7047
7047
|
#
|
|
@@ -7075,7 +7075,7 @@ module Orb
|
|
|
7075
7075
|
|
|
7076
7076
|
# The cadence to bill for this price on.
|
|
7077
7077
|
#
|
|
7078
|
-
# @see Orb::Models::
|
|
7078
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent#cadence
|
|
7079
7079
|
module Cadence
|
|
7080
7080
|
extend Orb::Internal::Type::Enum
|
|
7081
7081
|
|
|
@@ -7090,7 +7090,7 @@ module Orb
|
|
|
7090
7090
|
# @return [Array<Symbol>]
|
|
7091
7091
|
end
|
|
7092
7092
|
|
|
7093
|
-
# @see Orb::Models::
|
|
7093
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent#percent_config
|
|
7094
7094
|
class PercentConfig < Orb::Internal::Type::BaseModel
|
|
7095
7095
|
# @!attribute percent
|
|
7096
7096
|
# Fraction of the component subtotals to charge (0 < percent <= 1).
|
|
@@ -7120,7 +7120,7 @@ module Orb
|
|
|
7120
7120
|
|
|
7121
7121
|
# @!method initialize(percent:, maximum_amount: nil, minimum_amount: nil, prorated: nil)
|
|
7122
7122
|
# Some parameter documentations has been truncated, see
|
|
7123
|
-
# {Orb::Models::
|
|
7123
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent::PercentConfig}
|
|
7124
7124
|
# for more details.
|
|
7125
7125
|
#
|
|
7126
7126
|
# Configuration for percent pricing
|
|
@@ -7139,16 +7139,16 @@ module Orb
|
|
|
7139
7139
|
# @!attribute cadence
|
|
7140
7140
|
# The cadence to bill for this price on.
|
|
7141
7141
|
#
|
|
7142
|
-
# @return [Symbol, Orb::Models::
|
|
7142
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput::Cadence]
|
|
7143
7143
|
required :cadence,
|
|
7144
|
-
enum: -> { Orb::
|
|
7144
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput::Cadence }
|
|
7145
7145
|
|
|
7146
7146
|
# @!attribute event_output_config
|
|
7147
7147
|
# Configuration for event_output pricing
|
|
7148
7148
|
#
|
|
7149
|
-
# @return [Orb::Models::
|
|
7149
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput::EventOutputConfig]
|
|
7150
7150
|
required :event_output_config,
|
|
7151
|
-
-> { Orb::
|
|
7151
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput::EventOutputConfig }
|
|
7152
7152
|
|
|
7153
7153
|
# @!attribute item_id
|
|
7154
7154
|
# The id of the item the price will be associated with.
|
|
@@ -7271,12 +7271,12 @@ module Orb
|
|
|
7271
7271
|
|
|
7272
7272
|
# @!method initialize(cadence:, event_output_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :event_output)
|
|
7273
7273
|
# Some parameter documentations has been truncated, see
|
|
7274
|
-
# {Orb::Models::
|
|
7274
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput}
|
|
7275
7275
|
# for more details.
|
|
7276
7276
|
#
|
|
7277
|
-
# @param cadence [Symbol, Orb::Models::
|
|
7277
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput::Cadence] The cadence to bill for this price on.
|
|
7278
7278
|
#
|
|
7279
|
-
# @param event_output_config [Orb::Models::
|
|
7279
|
+
# @param event_output_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput::EventOutputConfig] Configuration for event_output pricing
|
|
7280
7280
|
#
|
|
7281
7281
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
7282
7282
|
#
|
|
@@ -7314,7 +7314,7 @@ module Orb
|
|
|
7314
7314
|
|
|
7315
7315
|
# The cadence to bill for this price on.
|
|
7316
7316
|
#
|
|
7317
|
-
# @see Orb::Models::
|
|
7317
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput#cadence
|
|
7318
7318
|
module Cadence
|
|
7319
7319
|
extend Orb::Internal::Type::Enum
|
|
7320
7320
|
|
|
@@ -7329,7 +7329,7 @@ module Orb
|
|
|
7329
7329
|
# @return [Array<Symbol>]
|
|
7330
7330
|
end
|
|
7331
7331
|
|
|
7332
|
-
# @see Orb::Models::
|
|
7332
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput#event_output_config
|
|
7333
7333
|
class EventOutputConfig < Orb::Internal::Type::BaseModel
|
|
7334
7334
|
# @!attribute unit_rating_key
|
|
7335
7335
|
# The key in the event data to extract the unit rate from.
|
|
@@ -7354,7 +7354,7 @@ module Orb
|
|
|
7354
7354
|
|
|
7355
7355
|
# @!method initialize(unit_rating_key:, default_unit_rate: nil, grouping_key: nil)
|
|
7356
7356
|
# Some parameter documentations has been truncated, see
|
|
7357
|
-
# {Orb::Models::
|
|
7357
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput::EventOutputConfig}
|
|
7358
7358
|
# for more details.
|
|
7359
7359
|
#
|
|
7360
7360
|
# Configuration for event_output pricing
|
|
@@ -7371,9 +7371,9 @@ module Orb
|
|
|
7371
7371
|
# @!attribute cadence
|
|
7372
7372
|
# The cadence to bill for this price on.
|
|
7373
7373
|
#
|
|
7374
|
-
# @return [Symbol, Orb::Models::
|
|
7374
|
+
# @return [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::Cadence]
|
|
7375
7375
|
required :cadence,
|
|
7376
|
-
enum: -> { Orb::
|
|
7376
|
+
enum: -> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::Cadence }
|
|
7377
7377
|
|
|
7378
7378
|
# @!attribute item_id
|
|
7379
7379
|
# The id of the item the price will be associated with.
|
|
@@ -7396,9 +7396,9 @@ module Orb
|
|
|
7396
7396
|
# @!attribute unit_with_multiplier_config
|
|
7397
7397
|
# Configuration for unit_with_multiplier pricing
|
|
7398
7398
|
#
|
|
7399
|
-
# @return [Orb::Models::
|
|
7399
|
+
# @return [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig]
|
|
7400
7400
|
required :unit_with_multiplier_config,
|
|
7401
|
-
-> { Orb::
|
|
7401
|
+
-> { Orb::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig }
|
|
7402
7402
|
|
|
7403
7403
|
# @!attribute billable_metric_id
|
|
7404
7404
|
# The id of the billable metric for the price. Only needed if the price is
|
|
@@ -7503,16 +7503,16 @@ module Orb
|
|
|
7503
7503
|
|
|
7504
7504
|
# @!method initialize(cadence:, item_id:, name:, unit_with_multiplier_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :unit_with_multiplier)
|
|
7505
7505
|
# Some parameter documentations has been truncated, see
|
|
7506
|
-
# {Orb::Models::
|
|
7506
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier}
|
|
7507
7507
|
# for more details.
|
|
7508
7508
|
#
|
|
7509
|
-
# @param cadence [Symbol, Orb::Models::
|
|
7509
|
+
# @param cadence [Symbol, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::Cadence] The cadence to bill for this price on.
|
|
7510
7510
|
#
|
|
7511
7511
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
7512
7512
|
#
|
|
7513
7513
|
# @param name [String] The name of the price.
|
|
7514
7514
|
#
|
|
7515
|
-
# @param unit_with_multiplier_config [Orb::Models::
|
|
7515
|
+
# @param unit_with_multiplier_config [Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig] Configuration for unit_with_multiplier pricing
|
|
7516
7516
|
#
|
|
7517
7517
|
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
7518
7518
|
#
|
|
@@ -7546,7 +7546,7 @@ module Orb
|
|
|
7546
7546
|
|
|
7547
7547
|
# The cadence to bill for this price on.
|
|
7548
7548
|
#
|
|
7549
|
-
# @see Orb::Models::
|
|
7549
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier#cadence
|
|
7550
7550
|
module Cadence
|
|
7551
7551
|
extend Orb::Internal::Type::Enum
|
|
7552
7552
|
|
|
@@ -7561,7 +7561,7 @@ module Orb
|
|
|
7561
7561
|
# @return [Array<Symbol>]
|
|
7562
7562
|
end
|
|
7563
7563
|
|
|
7564
|
-
# @see Orb::Models::
|
|
7564
|
+
# @see Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier#unit_with_multiplier_config
|
|
7565
7565
|
class UnitWithMultiplierConfig < Orb::Internal::Type::BaseModel
|
|
7566
7566
|
# @!attribute default_display_name
|
|
7567
7567
|
# Sub-line label for list-price events that don't set display_name_key. Unlabeled
|
|
@@ -7594,7 +7594,7 @@ module Orb
|
|
|
7594
7594
|
|
|
7595
7595
|
# @!method initialize(default_display_name:, display_name_key:, multiplier_key:, unit_amount:)
|
|
7596
7596
|
# Some parameter documentations has been truncated, see
|
|
7597
|
-
# {Orb::Models::
|
|
7597
|
+
# {Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig}
|
|
7598
7598
|
# for more details.
|
|
7599
7599
|
#
|
|
7600
7600
|
# Configuration for unit_with_multiplier pricing
|
|
@@ -7610,7 +7610,7 @@ module Orb
|
|
|
7610
7610
|
end
|
|
7611
7611
|
|
|
7612
7612
|
# @!method self.variants
|
|
7613
|
-
# @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::
|
|
7613
|
+
# @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput, Orb::Models::Plans::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier)]
|
|
7614
7614
|
end
|
|
7615
7615
|
end
|
|
7616
7616
|
end
|