orb-billing 1.57.0 → 1.58.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 +8 -0
- data/README.md +1 -1
- data/lib/orb/client.rb +0 -8
- 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.rb +6 -8
- 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/version.rb +1 -1
- data/lib/orb.rb +17 -8
- data/rbi/orb/client.rbi +0 -7
- 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.rbi +6 -8
- 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/sig/orb/client.rbs +0 -2
- 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.rbs +6 -8
- 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
- metadata +2038 -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
data/lib/orb/models/{beta_create_plan_version_params.rb → plan_create_plan_version_params.rb}
RENAMED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
module Orb
|
|
4
4
|
module Models
|
|
5
|
-
# @see Orb::Resources::
|
|
6
|
-
class
|
|
5
|
+
# @see Orb::Resources::Plans#create_plan_version
|
|
6
|
+
class PlanCreatePlanVersionParams < Orb::Internal::Type::BaseModel
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
|
9
9
|
|
|
@@ -21,49 +21,49 @@ module Orb
|
|
|
21
21
|
# @!attribute add_adjustments
|
|
22
22
|
# Additional adjustments to be added to the plan.
|
|
23
23
|
#
|
|
24
|
-
# @return [Array<Orb::Models::
|
|
24
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::AddAdjustment>, nil]
|
|
25
25
|
optional :add_adjustments,
|
|
26
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
26
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::AddAdjustment] },
|
|
27
27
|
nil?: true
|
|
28
28
|
|
|
29
29
|
# @!attribute add_prices
|
|
30
30
|
# Additional prices to be added to the plan.
|
|
31
31
|
#
|
|
32
|
-
# @return [Array<Orb::Models::
|
|
32
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice>, nil]
|
|
33
33
|
optional :add_prices,
|
|
34
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
34
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::AddPrice] },
|
|
35
35
|
nil?: true
|
|
36
36
|
|
|
37
37
|
# @!attribute remove_adjustments
|
|
38
38
|
# Adjustments to be removed from the plan.
|
|
39
39
|
#
|
|
40
|
-
# @return [Array<Orb::Models::
|
|
40
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::RemoveAdjustment>, nil]
|
|
41
41
|
optional :remove_adjustments,
|
|
42
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
42
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::RemoveAdjustment] },
|
|
43
43
|
nil?: true
|
|
44
44
|
|
|
45
45
|
# @!attribute remove_prices
|
|
46
46
|
# Prices to be removed from the plan.
|
|
47
47
|
#
|
|
48
|
-
# @return [Array<Orb::Models::
|
|
48
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::RemovePrice>, nil]
|
|
49
49
|
optional :remove_prices,
|
|
50
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
50
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::RemovePrice] },
|
|
51
51
|
nil?: true
|
|
52
52
|
|
|
53
53
|
# @!attribute replace_adjustments
|
|
54
54
|
# Adjustments to be replaced with additional adjustments on the plan.
|
|
55
55
|
#
|
|
56
|
-
# @return [Array<Orb::Models::
|
|
56
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment>, nil]
|
|
57
57
|
optional :replace_adjustments,
|
|
58
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
58
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::ReplaceAdjustment] },
|
|
59
59
|
nil?: true
|
|
60
60
|
|
|
61
61
|
# @!attribute replace_prices
|
|
62
62
|
# Prices to be replaced with additional prices on the plan.
|
|
63
63
|
#
|
|
64
|
-
# @return [Array<Orb::Models::
|
|
64
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice>, nil]
|
|
65
65
|
optional :replace_prices,
|
|
66
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
66
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::ReplacePrice] },
|
|
67
67
|
nil?: true
|
|
68
68
|
|
|
69
69
|
# @!attribute set_as_default
|
|
@@ -77,17 +77,17 @@ module Orb
|
|
|
77
77
|
#
|
|
78
78
|
# @param version [Integer] New version number.
|
|
79
79
|
#
|
|
80
|
-
# @param add_adjustments [Array<Orb::Models::
|
|
80
|
+
# @param add_adjustments [Array<Orb::Models::PlanCreatePlanVersionParams::AddAdjustment>, nil] Additional adjustments to be added to the plan.
|
|
81
81
|
#
|
|
82
|
-
# @param add_prices [Array<Orb::Models::
|
|
82
|
+
# @param add_prices [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice>, nil] Additional prices to be added to the plan.
|
|
83
83
|
#
|
|
84
|
-
# @param remove_adjustments [Array<Orb::Models::
|
|
84
|
+
# @param remove_adjustments [Array<Orb::Models::PlanCreatePlanVersionParams::RemoveAdjustment>, nil] Adjustments to be removed from the plan.
|
|
85
85
|
#
|
|
86
|
-
# @param remove_prices [Array<Orb::Models::
|
|
86
|
+
# @param remove_prices [Array<Orb::Models::PlanCreatePlanVersionParams::RemovePrice>, nil] Prices to be removed from the plan.
|
|
87
87
|
#
|
|
88
|
-
# @param replace_adjustments [Array<Orb::Models::
|
|
88
|
+
# @param replace_adjustments [Array<Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment>, nil] Adjustments to be replaced with additional adjustments on the plan.
|
|
89
89
|
#
|
|
90
|
-
# @param replace_prices [Array<Orb::Models::
|
|
90
|
+
# @param replace_prices [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice>, nil] Prices to be replaced with additional prices on the plan.
|
|
91
91
|
#
|
|
92
92
|
# @param set_as_default [Boolean, nil] Set this new plan version as the default
|
|
93
93
|
#
|
|
@@ -97,8 +97,8 @@ module Orb
|
|
|
97
97
|
# @!attribute adjustment
|
|
98
98
|
# The definition of a new adjustment to create and add to the plan.
|
|
99
99
|
#
|
|
100
|
-
# @return [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::
|
|
101
|
-
required :adjustment, union: -> { Orb::
|
|
100
|
+
# @return [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount]
|
|
101
|
+
required :adjustment, union: -> { Orb::PlanCreatePlanVersionParams::AddAdjustment::Adjustment }
|
|
102
102
|
|
|
103
103
|
# @!attribute plan_phase_order
|
|
104
104
|
# The phase to add this adjustment to.
|
|
@@ -107,13 +107,13 @@ module Orb
|
|
|
107
107
|
optional :plan_phase_order, Integer, nil?: true
|
|
108
108
|
|
|
109
109
|
# @!method initialize(adjustment:, plan_phase_order: nil)
|
|
110
|
-
# @param adjustment [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::
|
|
110
|
+
# @param adjustment [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount] The definition of a new adjustment to create and add to the plan.
|
|
111
111
|
#
|
|
112
112
|
# @param plan_phase_order [Integer, nil] The phase to add this adjustment to.
|
|
113
113
|
|
|
114
114
|
# The definition of a new adjustment to create and add to the plan.
|
|
115
115
|
#
|
|
116
|
-
# @see Orb::Models::
|
|
116
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddAdjustment#adjustment
|
|
117
117
|
module Adjustment
|
|
118
118
|
extend Orb::Internal::Type::Union
|
|
119
119
|
|
|
@@ -130,7 +130,7 @@ module Orb
|
|
|
130
130
|
variant :maximum, -> { Orb::NewMaximum }
|
|
131
131
|
|
|
132
132
|
variant :tiered_percentage_discount,
|
|
133
|
-
-> { Orb::
|
|
133
|
+
-> { Orb::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount }
|
|
134
134
|
|
|
135
135
|
class TieredPercentageDiscount < Orb::Internal::Type::BaseModel
|
|
136
136
|
# @!attribute adjustment_type
|
|
@@ -140,17 +140,17 @@ module Orb
|
|
|
140
140
|
|
|
141
141
|
# @!attribute tiers
|
|
142
142
|
#
|
|
143
|
-
# @return [Array<Orb::Models::
|
|
143
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier>]
|
|
144
144
|
required :tiers,
|
|
145
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
145
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier] }
|
|
146
146
|
|
|
147
147
|
# @!attribute applies_to_all
|
|
148
148
|
# If set, the adjustment will apply to every price on the subscription.
|
|
149
149
|
#
|
|
150
|
-
# @return [Boolean, Orb::Models::
|
|
150
|
+
# @return [Boolean, Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::AppliesToAll, nil]
|
|
151
151
|
optional :applies_to_all,
|
|
152
152
|
enum: -> {
|
|
153
|
-
Orb::
|
|
153
|
+
Orb::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::AppliesToAll
|
|
154
154
|
},
|
|
155
155
|
nil?: true
|
|
156
156
|
|
|
@@ -175,10 +175,10 @@ module Orb
|
|
|
175
175
|
# @!attribute filters
|
|
176
176
|
# A list of filters that determine which prices this adjustment will apply to.
|
|
177
177
|
#
|
|
178
|
-
# @return [Array<Orb::Models::
|
|
178
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter>, nil]
|
|
179
179
|
optional :filters,
|
|
180
180
|
-> {
|
|
181
|
-
Orb::Internal::Type::ArrayOf[Orb::
|
|
181
|
+
Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]
|
|
182
182
|
},
|
|
183
183
|
nil?: true
|
|
184
184
|
|
|
@@ -192,21 +192,21 @@ module Orb
|
|
|
192
192
|
# @!attribute price_type
|
|
193
193
|
# If set, only prices of the specified type will have the adjustment applied.
|
|
194
194
|
#
|
|
195
|
-
# @return [Symbol, Orb::Models::
|
|
195
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::PriceType, nil]
|
|
196
196
|
optional :price_type,
|
|
197
197
|
enum: -> {
|
|
198
|
-
Orb::
|
|
198
|
+
Orb::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::PriceType
|
|
199
199
|
},
|
|
200
200
|
nil?: true
|
|
201
201
|
|
|
202
202
|
# @!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)
|
|
203
203
|
# Some parameter documentations has been truncated, see
|
|
204
|
-
# {Orb::Models::
|
|
204
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount}
|
|
205
205
|
# for more details.
|
|
206
206
|
#
|
|
207
|
-
# @param tiers [Array<Orb::Models::
|
|
207
|
+
# @param tiers [Array<Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier>]
|
|
208
208
|
#
|
|
209
|
-
# @param applies_to_all [Boolean, Orb::Models::
|
|
209
|
+
# @param applies_to_all [Boolean, Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::AppliesToAll, nil] If set, the adjustment will apply to every price on the subscription.
|
|
210
210
|
#
|
|
211
211
|
# @param applies_to_item_ids [Array<String>, nil] The set of item IDs to which this adjustment applies.
|
|
212
212
|
#
|
|
@@ -214,11 +214,11 @@ module Orb
|
|
|
214
214
|
#
|
|
215
215
|
# @param currency [String, nil] If set, only prices in the specified currency will have the adjustment applied.
|
|
216
216
|
#
|
|
217
|
-
# @param filters [Array<Orb::Models::
|
|
217
|
+
# @param filters [Array<Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter>, nil] A list of filters that determine which prices this adjustment will apply to.
|
|
218
218
|
#
|
|
219
219
|
# @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil
|
|
220
220
|
#
|
|
221
|
-
# @param price_type [Symbol, Orb::Models::
|
|
221
|
+
# @param price_type [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::PriceType, nil] If set, only prices of the specified type will have the adjustment applied.
|
|
222
222
|
#
|
|
223
223
|
# @param adjustment_type [Symbol, :tiered_percentage_discount]
|
|
224
224
|
|
|
@@ -251,7 +251,7 @@ module Orb
|
|
|
251
251
|
|
|
252
252
|
# If set, the adjustment will apply to every price on the subscription.
|
|
253
253
|
#
|
|
254
|
-
# @see Orb::Models::
|
|
254
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount#applies_to_all
|
|
255
255
|
module AppliesToAll
|
|
256
256
|
extend Orb::Internal::Type::Enum
|
|
257
257
|
|
|
@@ -265,16 +265,16 @@ module Orb
|
|
|
265
265
|
# @!attribute field
|
|
266
266
|
# The property of the price to filter on.
|
|
267
267
|
#
|
|
268
|
-
# @return [Symbol, Orb::Models::
|
|
268
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::Field]
|
|
269
269
|
required :field,
|
|
270
|
-
enum: -> { Orb::
|
|
270
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::Field }
|
|
271
271
|
|
|
272
272
|
# @!attribute operator
|
|
273
273
|
# Should prices that match the filter be included or excluded.
|
|
274
274
|
#
|
|
275
|
-
# @return [Symbol, Orb::Models::
|
|
275
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::Operator]
|
|
276
276
|
required :operator,
|
|
277
|
-
enum: -> { Orb::
|
|
277
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::Operator }
|
|
278
278
|
|
|
279
279
|
# @!attribute values
|
|
280
280
|
# The IDs or values that match this filter.
|
|
@@ -283,15 +283,15 @@ module Orb
|
|
|
283
283
|
required :values, Orb::Internal::Type::ArrayOf[String]
|
|
284
284
|
|
|
285
285
|
# @!method initialize(field:, operator:, values:)
|
|
286
|
-
# @param field [Symbol, Orb::Models::
|
|
286
|
+
# @param field [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::Field] The property of the price to filter on.
|
|
287
287
|
#
|
|
288
|
-
# @param operator [Symbol, Orb::Models::
|
|
288
|
+
# @param operator [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::Operator] Should prices that match the filter be included or excluded.
|
|
289
289
|
#
|
|
290
290
|
# @param values [Array<String>] The IDs or values that match this filter.
|
|
291
291
|
|
|
292
292
|
# The property of the price to filter on.
|
|
293
293
|
#
|
|
294
|
-
# @see Orb::Models::
|
|
294
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter#field
|
|
295
295
|
module Field
|
|
296
296
|
extend Orb::Internal::Type::Enum
|
|
297
297
|
|
|
@@ -307,7 +307,7 @@ module Orb
|
|
|
307
307
|
|
|
308
308
|
# Should prices that match the filter be included or excluded.
|
|
309
309
|
#
|
|
310
|
-
# @see Orb::Models::
|
|
310
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter#operator
|
|
311
311
|
module Operator
|
|
312
312
|
extend Orb::Internal::Type::Enum
|
|
313
313
|
|
|
@@ -321,7 +321,7 @@ module Orb
|
|
|
321
321
|
|
|
322
322
|
# If set, only prices of the specified type will have the adjustment applied.
|
|
323
323
|
#
|
|
324
|
-
# @see Orb::Models::
|
|
324
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount#price_type
|
|
325
325
|
module PriceType
|
|
326
326
|
extend Orb::Internal::Type::Enum
|
|
327
327
|
|
|
@@ -337,7 +337,7 @@ module Orb
|
|
|
337
337
|
end
|
|
338
338
|
|
|
339
339
|
# @!method self.variants
|
|
340
|
-
# @return [Array(Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::
|
|
340
|
+
# @return [Array(Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::PlanCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount)]
|
|
341
341
|
end
|
|
342
342
|
end
|
|
343
343
|
|
|
@@ -351,9 +351,9 @@ module Orb
|
|
|
351
351
|
# @!attribute license_allocation_price
|
|
352
352
|
# The license allocation price to add to the plan.
|
|
353
353
|
#
|
|
354
|
-
# @return [Orb::Models::
|
|
354
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::AddPrice::LicenseAllocationPrice, nil]
|
|
355
355
|
optional :license_allocation_price,
|
|
356
|
-
-> { Orb::
|
|
356
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::LicenseAllocationPrice },
|
|
357
357
|
nil?: true
|
|
358
358
|
|
|
359
359
|
# @!attribute plan_phase_order
|
|
@@ -365,26 +365,26 @@ module Orb
|
|
|
365
365
|
# @!attribute price
|
|
366
366
|
# New plan price request body params.
|
|
367
367
|
#
|
|
368
|
-
# @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::
|
|
369
|
-
optional :price, union: -> { Orb::
|
|
368
|
+
# @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::Percent, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::EventOutput, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier, nil]
|
|
369
|
+
optional :price, union: -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price }, nil?: true
|
|
370
370
|
|
|
371
371
|
# @!method initialize(allocation_price: nil, license_allocation_price: nil, plan_phase_order: nil, price: nil)
|
|
372
372
|
# @param allocation_price [Orb::Models::NewAllocationPrice, nil] The allocation price to add to the plan.
|
|
373
373
|
#
|
|
374
|
-
# @param license_allocation_price [Orb::Models::
|
|
374
|
+
# @param license_allocation_price [Orb::Models::PlanCreatePlanVersionParams::AddPrice::LicenseAllocationPrice, nil] The license allocation price to add to the plan.
|
|
375
375
|
#
|
|
376
376
|
# @param plan_phase_order [Integer, nil] The phase to add this price to.
|
|
377
377
|
#
|
|
378
|
-
# @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::
|
|
378
|
+
# @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::Percent, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::EventOutput, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier, nil] New plan price request body params.
|
|
379
379
|
|
|
380
|
-
# @see Orb::Models::
|
|
380
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice#license_allocation_price
|
|
381
381
|
class LicenseAllocationPrice < Orb::Internal::Type::BaseModel
|
|
382
382
|
# @!attribute cadence
|
|
383
383
|
# The cadence to bill for this price on.
|
|
384
384
|
#
|
|
385
|
-
# @return [Symbol, Orb::Models::
|
|
385
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::Cadence]
|
|
386
386
|
required :cadence,
|
|
387
|
-
enum: -> { Orb::
|
|
387
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::Cadence }
|
|
388
388
|
|
|
389
389
|
# @!attribute item_id
|
|
390
390
|
# The id of the item the price will be associated with.
|
|
@@ -398,16 +398,16 @@ module Orb
|
|
|
398
398
|
# license_type_configuration to be set. Usage prices draw down from these
|
|
399
399
|
# allocations only if they set the same license type.
|
|
400
400
|
#
|
|
401
|
-
# @return [Array<Orb::Models::
|
|
401
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::LicenseAllocation>]
|
|
402
402
|
required :license_allocations,
|
|
403
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
403
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::LicenseAllocation] }
|
|
404
404
|
|
|
405
405
|
# @!attribute model_type
|
|
406
406
|
# The pricing model type
|
|
407
407
|
#
|
|
408
|
-
# @return [Symbol, Orb::Models::
|
|
408
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::ModelType]
|
|
409
409
|
required :model_type,
|
|
410
|
-
enum: -> { Orb::
|
|
410
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::ModelType }
|
|
411
411
|
|
|
412
412
|
# @!attribute name
|
|
413
413
|
# The name of the price.
|
|
@@ -520,18 +520,18 @@ module Orb
|
|
|
520
520
|
|
|
521
521
|
# @!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)
|
|
522
522
|
# Some parameter documentations has been truncated, see
|
|
523
|
-
# {Orb::Models::
|
|
523
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::LicenseAllocationPrice} for
|
|
524
524
|
# more details.
|
|
525
525
|
#
|
|
526
526
|
# The license allocation price to add to the plan.
|
|
527
527
|
#
|
|
528
|
-
# @param cadence [Symbol, Orb::Models::
|
|
528
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::Cadence] The cadence to bill for this price on.
|
|
529
529
|
#
|
|
530
530
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
531
531
|
#
|
|
532
|
-
# @param license_allocations [Array<Orb::Models::
|
|
532
|
+
# @param license_allocations [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::LicenseAllocation>] License allocations to associate with this price. Each entry defines a per-licen
|
|
533
533
|
#
|
|
534
|
-
# @param model_type [Symbol, Orb::Models::
|
|
534
|
+
# @param model_type [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::ModelType] The pricing model type
|
|
535
535
|
#
|
|
536
536
|
# @param name [String] The name of the price.
|
|
537
537
|
#
|
|
@@ -567,7 +567,7 @@ module Orb
|
|
|
567
567
|
|
|
568
568
|
# The cadence to bill for this price on.
|
|
569
569
|
#
|
|
570
|
-
# @see Orb::Models::
|
|
570
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::LicenseAllocationPrice#cadence
|
|
571
571
|
module Cadence
|
|
572
572
|
extend Orb::Internal::Type::Enum
|
|
573
573
|
|
|
@@ -611,7 +611,7 @@ module Orb
|
|
|
611
611
|
|
|
612
612
|
# The pricing model type
|
|
613
613
|
#
|
|
614
|
-
# @see Orb::Models::
|
|
614
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::LicenseAllocationPrice#model_type
|
|
615
615
|
module ModelType
|
|
616
616
|
extend Orb::Internal::Type::Enum
|
|
617
617
|
|
|
@@ -624,7 +624,7 @@ module Orb
|
|
|
624
624
|
|
|
625
625
|
# New plan price request body params.
|
|
626
626
|
#
|
|
627
|
-
# @see Orb::Models::
|
|
627
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice#price
|
|
628
628
|
module Price
|
|
629
629
|
extend Orb::Internal::Type::Union
|
|
630
630
|
|
|
@@ -636,7 +636,7 @@ module Orb
|
|
|
636
636
|
|
|
637
637
|
variant :bulk, -> { Orb::NewPlanBulkPrice }
|
|
638
638
|
|
|
639
|
-
variant :bulk_with_filters, -> { Orb::
|
|
639
|
+
variant :bulk_with_filters, -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters }
|
|
640
640
|
|
|
641
641
|
variant :package, -> { Orb::NewPlanPackagePrice }
|
|
642
642
|
|
|
@@ -651,7 +651,7 @@ module Orb
|
|
|
651
651
|
variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice }
|
|
652
652
|
|
|
653
653
|
variant :grouped_tiered_matrix,
|
|
654
|
-
-> { Orb::
|
|
654
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix }
|
|
655
655
|
|
|
656
656
|
variant :tiered_package_with_minimum, -> { Orb::NewPlanTieredPackageWithMinimumPrice }
|
|
657
657
|
|
|
@@ -662,13 +662,13 @@ module Orb
|
|
|
662
662
|
variant :matrix_with_allocation, -> { Orb::NewPlanMatrixWithAllocationPrice }
|
|
663
663
|
|
|
664
664
|
variant :tiered_matrix_with_allocation,
|
|
665
|
-
-> { Orb::
|
|
665
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation }
|
|
666
666
|
|
|
667
667
|
variant :matrix_with_threshold_discounts,
|
|
668
|
-
-> { Orb::
|
|
668
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts }
|
|
669
669
|
|
|
670
670
|
variant :tiered_with_proration,
|
|
671
|
-
-> { Orb::
|
|
671
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration }
|
|
672
672
|
|
|
673
673
|
variant :unit_with_proration, -> { Orb::NewPlanUnitWithProrationPrice }
|
|
674
674
|
|
|
@@ -681,7 +681,7 @@ module Orb
|
|
|
681
681
|
variant :grouped_with_metered_minimum, -> { Orb::NewPlanGroupedWithMeteredMinimumPrice }
|
|
682
682
|
|
|
683
683
|
variant :grouped_with_min_max_thresholds,
|
|
684
|
-
-> { Orb::
|
|
684
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds }
|
|
685
685
|
|
|
686
686
|
variant :matrix_with_display_name, -> { Orb::NewPlanMatrixWithDisplayNamePrice }
|
|
687
687
|
|
|
@@ -696,36 +696,36 @@ module Orb
|
|
|
696
696
|
variant :cumulative_grouped_bulk, -> { Orb::NewPlanCumulativeGroupedBulkPrice }
|
|
697
697
|
|
|
698
698
|
variant :cumulative_grouped_allocation,
|
|
699
|
-
-> { Orb::
|
|
699
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation }
|
|
700
700
|
|
|
701
701
|
variant :daily_credit_allowance,
|
|
702
|
-
-> { Orb::
|
|
702
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance }
|
|
703
703
|
|
|
704
|
-
variant :metered_allowance, -> { Orb::
|
|
704
|
+
variant :metered_allowance, -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::MeteredAllowance }
|
|
705
705
|
|
|
706
706
|
variant :minimum_composite, -> { Orb::NewPlanMinimumCompositePrice }
|
|
707
707
|
|
|
708
|
-
variant :percent, -> { Orb::
|
|
708
|
+
variant :percent, -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::Percent }
|
|
709
709
|
|
|
710
|
-
variant :event_output, -> { Orb::
|
|
710
|
+
variant :event_output, -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::EventOutput }
|
|
711
711
|
|
|
712
712
|
variant :unit_with_multiplier,
|
|
713
|
-
-> { Orb::
|
|
713
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier }
|
|
714
714
|
|
|
715
715
|
class BulkWithFilters < Orb::Internal::Type::BaseModel
|
|
716
716
|
# @!attribute bulk_with_filters_config
|
|
717
717
|
# Configuration for bulk_with_filters pricing
|
|
718
718
|
#
|
|
719
|
-
# @return [Orb::Models::
|
|
719
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig]
|
|
720
720
|
required :bulk_with_filters_config,
|
|
721
|
-
-> { Orb::
|
|
721
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig }
|
|
722
722
|
|
|
723
723
|
# @!attribute cadence
|
|
724
724
|
# The cadence to bill for this price on.
|
|
725
725
|
#
|
|
726
|
-
# @return [Symbol, Orb::Models::
|
|
726
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::Cadence]
|
|
727
727
|
required :cadence,
|
|
728
|
-
enum: -> { Orb::
|
|
728
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::Cadence }
|
|
729
729
|
|
|
730
730
|
# @!attribute item_id
|
|
731
731
|
# The id of the item the price will be associated with.
|
|
@@ -848,12 +848,12 @@ module Orb
|
|
|
848
848
|
|
|
849
849
|
# @!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)
|
|
850
850
|
# Some parameter documentations has been truncated, see
|
|
851
|
-
# {Orb::Models::
|
|
851
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters} for
|
|
852
852
|
# more details.
|
|
853
853
|
#
|
|
854
|
-
# @param bulk_with_filters_config [Orb::Models::
|
|
854
|
+
# @param bulk_with_filters_config [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig] Configuration for bulk_with_filters pricing
|
|
855
855
|
#
|
|
856
|
-
# @param cadence [Symbol, Orb::Models::
|
|
856
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::Cadence] The cadence to bill for this price on.
|
|
857
857
|
#
|
|
858
858
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
859
859
|
#
|
|
@@ -889,28 +889,28 @@ module Orb
|
|
|
889
889
|
#
|
|
890
890
|
# @param model_type [Symbol, :bulk_with_filters] The pricing model type
|
|
891
891
|
|
|
892
|
-
# @see Orb::Models::
|
|
892
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters#bulk_with_filters_config
|
|
893
893
|
class BulkWithFiltersConfig < Orb::Internal::Type::BaseModel
|
|
894
894
|
# @!attribute filters
|
|
895
895
|
# Property filters to apply (all must match)
|
|
896
896
|
#
|
|
897
|
-
# @return [Array<Orb::Models::
|
|
897
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter>]
|
|
898
898
|
required :filters,
|
|
899
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
899
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter] }
|
|
900
900
|
|
|
901
901
|
# @!attribute tiers
|
|
902
902
|
# Bulk tiers for rating based on total usage volume
|
|
903
903
|
#
|
|
904
|
-
# @return [Array<Orb::Models::
|
|
904
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier>]
|
|
905
905
|
required :tiers,
|
|
906
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
906
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier] }
|
|
907
907
|
|
|
908
908
|
# @!method initialize(filters:, tiers:)
|
|
909
909
|
# Configuration for bulk_with_filters pricing
|
|
910
910
|
#
|
|
911
|
-
# @param filters [Array<Orb::Models::
|
|
911
|
+
# @param filters [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter>] Property filters to apply (all must match)
|
|
912
912
|
#
|
|
913
|
-
# @param tiers [Array<Orb::Models::
|
|
913
|
+
# @param tiers [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier>] Bulk tiers for rating based on total usage volume
|
|
914
914
|
|
|
915
915
|
class Filter < Orb::Internal::Type::BaseModel
|
|
916
916
|
# @!attribute property_key
|
|
@@ -957,7 +957,7 @@ module Orb
|
|
|
957
957
|
|
|
958
958
|
# The cadence to bill for this price on.
|
|
959
959
|
#
|
|
960
|
-
# @see Orb::Models::
|
|
960
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters#cadence
|
|
961
961
|
module Cadence
|
|
962
962
|
extend Orb::Internal::Type::Enum
|
|
963
963
|
|
|
@@ -977,16 +977,16 @@ module Orb
|
|
|
977
977
|
# @!attribute cadence
|
|
978
978
|
# The cadence to bill for this price on.
|
|
979
979
|
#
|
|
980
|
-
# @return [Symbol, Orb::Models::
|
|
980
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::Cadence]
|
|
981
981
|
required :cadence,
|
|
982
|
-
enum: -> { Orb::
|
|
982
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::Cadence }
|
|
983
983
|
|
|
984
984
|
# @!attribute grouped_tiered_matrix_config
|
|
985
985
|
# Configuration for grouped_tiered_matrix pricing
|
|
986
986
|
#
|
|
987
|
-
# @return [Orb::Models::
|
|
987
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig]
|
|
988
988
|
required :grouped_tiered_matrix_config,
|
|
989
|
-
-> { Orb::
|
|
989
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig }
|
|
990
990
|
|
|
991
991
|
# @!attribute item_id
|
|
992
992
|
# The id of the item the price will be associated with.
|
|
@@ -1109,12 +1109,12 @@ module Orb
|
|
|
1109
1109
|
|
|
1110
1110
|
# @!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)
|
|
1111
1111
|
# Some parameter documentations has been truncated, see
|
|
1112
|
-
# {Orb::Models::
|
|
1112
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix}
|
|
1113
1113
|
# for more details.
|
|
1114
1114
|
#
|
|
1115
|
-
# @param cadence [Symbol, Orb::Models::
|
|
1115
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::Cadence] The cadence to bill for this price on.
|
|
1116
1116
|
#
|
|
1117
|
-
# @param grouped_tiered_matrix_config [Orb::Models::
|
|
1117
|
+
# @param grouped_tiered_matrix_config [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig] Configuration for grouped_tiered_matrix pricing
|
|
1118
1118
|
#
|
|
1119
1119
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
1120
1120
|
#
|
|
@@ -1152,7 +1152,7 @@ module Orb
|
|
|
1152
1152
|
|
|
1153
1153
|
# The cadence to bill for this price on.
|
|
1154
1154
|
#
|
|
1155
|
-
# @see Orb::Models::
|
|
1155
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix#cadence
|
|
1156
1156
|
module Cadence
|
|
1157
1157
|
extend Orb::Internal::Type::Enum
|
|
1158
1158
|
|
|
@@ -1167,7 +1167,7 @@ module Orb
|
|
|
1167
1167
|
# @return [Array<Symbol>]
|
|
1168
1168
|
end
|
|
1169
1169
|
|
|
1170
|
-
# @see Orb::Models::
|
|
1170
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix#grouped_tiered_matrix_config
|
|
1171
1171
|
class GroupedTieredMatrixConfig < Orb::Internal::Type::BaseModel
|
|
1172
1172
|
# @!attribute default_unit_amount
|
|
1173
1173
|
# Per unit rate for usage whose dimension value has no configured tiers
|
|
@@ -1185,13 +1185,13 @@ module Orb
|
|
|
1185
1185
|
# Graduated tiers keyed by dimension value; usage for a value is tiered only
|
|
1186
1186
|
# against its own rows
|
|
1187
1187
|
#
|
|
1188
|
-
# @return [Array<Orb::Models::
|
|
1188
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier>]
|
|
1189
1189
|
required :tiers,
|
|
1190
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
1190
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier] }
|
|
1191
1191
|
|
|
1192
1192
|
# @!method initialize(default_unit_amount:, dimension:, tiers:)
|
|
1193
1193
|
# Some parameter documentations has been truncated, see
|
|
1194
|
-
# {Orb::Models::
|
|
1194
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig}
|
|
1195
1195
|
# for more details.
|
|
1196
1196
|
#
|
|
1197
1197
|
# Configuration for grouped_tiered_matrix pricing
|
|
@@ -1200,7 +1200,7 @@ module Orb
|
|
|
1200
1200
|
#
|
|
1201
1201
|
# @param dimension [String] The billable metric property used to group usage before tiering
|
|
1202
1202
|
#
|
|
1203
|
-
# @param tiers [Array<Orb::Models::
|
|
1203
|
+
# @param tiers [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier>] Graduated tiers keyed by dimension value; usage for a value is tiered only again
|
|
1204
1204
|
|
|
1205
1205
|
class Tier < Orb::Internal::Type::BaseModel
|
|
1206
1206
|
# @!attribute dimension_value
|
|
@@ -1236,9 +1236,9 @@ module Orb
|
|
|
1236
1236
|
# @!attribute cadence
|
|
1237
1237
|
# The cadence to bill for this price on.
|
|
1238
1238
|
#
|
|
1239
|
-
# @return [Symbol, Orb::Models::
|
|
1239
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::Cadence]
|
|
1240
1240
|
required :cadence,
|
|
1241
|
-
enum: -> { Orb::
|
|
1241
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::Cadence }
|
|
1242
1242
|
|
|
1243
1243
|
# @!attribute item_id
|
|
1244
1244
|
# The id of the item the price will be associated with.
|
|
@@ -1261,9 +1261,9 @@ module Orb
|
|
|
1261
1261
|
# @!attribute tiered_matrix_with_allocation_config
|
|
1262
1262
|
# Configuration for tiered_matrix_with_allocation pricing
|
|
1263
1263
|
#
|
|
1264
|
-
# @return [Orb::Models::
|
|
1264
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig]
|
|
1265
1265
|
required :tiered_matrix_with_allocation_config,
|
|
1266
|
-
-> { Orb::
|
|
1266
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig }
|
|
1267
1267
|
|
|
1268
1268
|
# @!attribute billable_metric_id
|
|
1269
1269
|
# The id of the billable metric for the price. Only needed if the price is
|
|
@@ -1368,16 +1368,16 @@ module Orb
|
|
|
1368
1368
|
|
|
1369
1369
|
# @!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)
|
|
1370
1370
|
# Some parameter documentations has been truncated, see
|
|
1371
|
-
# {Orb::Models::
|
|
1371
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation}
|
|
1372
1372
|
# for more details.
|
|
1373
1373
|
#
|
|
1374
|
-
# @param cadence [Symbol, Orb::Models::
|
|
1374
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::Cadence] The cadence to bill for this price on.
|
|
1375
1375
|
#
|
|
1376
1376
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
1377
1377
|
#
|
|
1378
1378
|
# @param name [String] The name of the price.
|
|
1379
1379
|
#
|
|
1380
|
-
# @param tiered_matrix_with_allocation_config [Orb::Models::
|
|
1380
|
+
# @param tiered_matrix_with_allocation_config [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig] Configuration for tiered_matrix_with_allocation pricing
|
|
1381
1381
|
#
|
|
1382
1382
|
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
1383
1383
|
#
|
|
@@ -1411,7 +1411,7 @@ module Orb
|
|
|
1411
1411
|
|
|
1412
1412
|
# The cadence to bill for this price on.
|
|
1413
1413
|
#
|
|
1414
|
-
# @see Orb::Models::
|
|
1414
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation#cadence
|
|
1415
1415
|
module Cadence
|
|
1416
1416
|
extend Orb::Internal::Type::Enum
|
|
1417
1417
|
|
|
@@ -1426,7 +1426,7 @@ module Orb
|
|
|
1426
1426
|
# @return [Array<Symbol>]
|
|
1427
1427
|
end
|
|
1428
1428
|
|
|
1429
|
-
# @see Orb::Models::
|
|
1429
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation#tiered_matrix_with_allocation_config
|
|
1430
1430
|
class TieredMatrixWithAllocationConfig < Orb::Internal::Type::BaseModel
|
|
1431
1431
|
# @!attribute allocation
|
|
1432
1432
|
# Usage allocation, pooled across all matrix cells
|
|
@@ -1450,17 +1450,17 @@ module Orb
|
|
|
1450
1450
|
# Graduated tiers keyed by matrix cell; usage in a cell is tiered only against its
|
|
1451
1451
|
# own rows
|
|
1452
1452
|
#
|
|
1453
|
-
# @return [Array<Orb::Models::
|
|
1453
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier>]
|
|
1454
1454
|
required :tiers,
|
|
1455
1455
|
-> do
|
|
1456
1456
|
Orb::Internal::Type::ArrayOf[
|
|
1457
|
-
Orb::
|
|
1457
|
+
Orb::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier
|
|
1458
1458
|
]
|
|
1459
1459
|
end
|
|
1460
1460
|
|
|
1461
1461
|
# @!method initialize(allocation:, default_unit_amount:, dimensions:, tiers:)
|
|
1462
1462
|
# Some parameter documentations has been truncated, see
|
|
1463
|
-
# {Orb::Models::
|
|
1463
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig}
|
|
1464
1464
|
# for more details.
|
|
1465
1465
|
#
|
|
1466
1466
|
# Configuration for tiered_matrix_with_allocation pricing
|
|
@@ -1471,7 +1471,7 @@ module Orb
|
|
|
1471
1471
|
#
|
|
1472
1472
|
# @param dimensions [Array<String>] One or two event property values to evaluate matrix cells by
|
|
1473
1473
|
#
|
|
1474
|
-
# @param tiers [Array<Orb::Models::
|
|
1474
|
+
# @param tiers [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier>] Graduated tiers keyed by matrix cell; usage in a cell is tiered only against its
|
|
1475
1475
|
|
|
1476
1476
|
class Tier < Orb::Internal::Type::BaseModel
|
|
1477
1477
|
# @!attribute dimension_values
|
|
@@ -1495,7 +1495,7 @@ module Orb
|
|
|
1495
1495
|
|
|
1496
1496
|
# @!method initialize(dimension_values:, tier_lower_bound:, unit_amount:)
|
|
1497
1497
|
# Some parameter documentations has been truncated, see
|
|
1498
|
-
# {Orb::Models::
|
|
1498
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier}
|
|
1499
1499
|
# for more details.
|
|
1500
1500
|
#
|
|
1501
1501
|
# Configuration for a single tier scoped to one matrix cell
|
|
@@ -1513,9 +1513,9 @@ module Orb
|
|
|
1513
1513
|
# @!attribute cadence
|
|
1514
1514
|
# The cadence to bill for this price on.
|
|
1515
1515
|
#
|
|
1516
|
-
# @return [Symbol, Orb::Models::
|
|
1516
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::Cadence]
|
|
1517
1517
|
required :cadence,
|
|
1518
|
-
enum: -> { Orb::
|
|
1518
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::Cadence }
|
|
1519
1519
|
|
|
1520
1520
|
# @!attribute item_id
|
|
1521
1521
|
# The id of the item the price will be associated with.
|
|
@@ -1526,9 +1526,9 @@ module Orb
|
|
|
1526
1526
|
# @!attribute matrix_with_threshold_discounts_config
|
|
1527
1527
|
# Configuration for matrix_with_threshold_discounts pricing
|
|
1528
1528
|
#
|
|
1529
|
-
# @return [Orb::Models::
|
|
1529
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig]
|
|
1530
1530
|
required :matrix_with_threshold_discounts_config,
|
|
1531
|
-
-> { Orb::
|
|
1531
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig }
|
|
1532
1532
|
|
|
1533
1533
|
# @!attribute model_type
|
|
1534
1534
|
# The pricing model type
|
|
@@ -1645,14 +1645,14 @@ module Orb
|
|
|
1645
1645
|
|
|
1646
1646
|
# @!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)
|
|
1647
1647
|
# Some parameter documentations has been truncated, see
|
|
1648
|
-
# {Orb::Models::
|
|
1648
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts}
|
|
1649
1649
|
# for more details.
|
|
1650
1650
|
#
|
|
1651
|
-
# @param cadence [Symbol, Orb::Models::
|
|
1651
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::Cadence] The cadence to bill for this price on.
|
|
1652
1652
|
#
|
|
1653
1653
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
1654
1654
|
#
|
|
1655
|
-
# @param matrix_with_threshold_discounts_config [Orb::Models::
|
|
1655
|
+
# @param matrix_with_threshold_discounts_config [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig] Configuration for matrix_with_threshold_discounts pricing
|
|
1656
1656
|
#
|
|
1657
1657
|
# @param name [String] The name of the price.
|
|
1658
1658
|
#
|
|
@@ -1688,7 +1688,7 @@ module Orb
|
|
|
1688
1688
|
|
|
1689
1689
|
# The cadence to bill for this price on.
|
|
1690
1690
|
#
|
|
1691
|
-
# @see Orb::Models::
|
|
1691
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts#cadence
|
|
1692
1692
|
module Cadence
|
|
1693
1693
|
extend Orb::Internal::Type::Enum
|
|
1694
1694
|
|
|
@@ -1703,7 +1703,7 @@ module Orb
|
|
|
1703
1703
|
# @return [Array<Symbol>]
|
|
1704
1704
|
end
|
|
1705
1705
|
|
|
1706
|
-
# @see Orb::Models::
|
|
1706
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts#matrix_with_threshold_discounts_config
|
|
1707
1707
|
class MatrixWithThresholdDiscountsConfig < Orb::Internal::Type::BaseModel
|
|
1708
1708
|
# @!attribute default_unit_amount
|
|
1709
1709
|
# Unit price used for usage that does not match any defined matrix cell.
|
|
@@ -1720,11 +1720,11 @@ module Orb
|
|
|
1720
1720
|
# @!attribute matrix_values
|
|
1721
1721
|
# Per-cell unit prices.
|
|
1722
1722
|
#
|
|
1723
|
-
# @return [Array<Orb::Models::
|
|
1723
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue>]
|
|
1724
1724
|
required :matrix_values,
|
|
1725
1725
|
-> do
|
|
1726
1726
|
Orb::Internal::Type::ArrayOf[
|
|
1727
|
-
Orb::
|
|
1727
|
+
Orb::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue
|
|
1728
1728
|
]
|
|
1729
1729
|
end
|
|
1730
1730
|
|
|
@@ -1736,11 +1736,11 @@ module Orb
|
|
|
1736
1736
|
|
|
1737
1737
|
# @!attribute threshold_discount_groups
|
|
1738
1738
|
#
|
|
1739
|
-
# @return [Array<Orb::Models::
|
|
1739
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup>, nil]
|
|
1740
1740
|
optional :threshold_discount_groups,
|
|
1741
1741
|
-> do
|
|
1742
1742
|
Orb::Internal::Type::ArrayOf[
|
|
1743
|
-
Orb::
|
|
1743
|
+
Orb::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup
|
|
1744
1744
|
]
|
|
1745
1745
|
end
|
|
1746
1746
|
|
|
@@ -1751,11 +1751,11 @@ module Orb
|
|
|
1751
1751
|
#
|
|
1752
1752
|
# @param first_dimension [String] First matrix dimension key.
|
|
1753
1753
|
#
|
|
1754
|
-
# @param matrix_values [Array<Orb::Models::
|
|
1754
|
+
# @param matrix_values [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue>] Per-cell unit prices.
|
|
1755
1755
|
#
|
|
1756
1756
|
# @param second_dimension [String, nil] Optional second matrix dimension key.
|
|
1757
1757
|
#
|
|
1758
|
-
# @param threshold_discount_groups [Array<Orb::Models::
|
|
1758
|
+
# @param threshold_discount_groups [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup>]
|
|
1759
1759
|
|
|
1760
1760
|
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
1761
1761
|
# @!attribute first_dimension_value
|
|
@@ -1813,7 +1813,7 @@ module Orb
|
|
|
1813
1813
|
|
|
1814
1814
|
# @!method initialize(above_threshold_discount_percentage:, below_threshold_discount_percentage:, cell_coordinates:, threshold_amount:, description: nil)
|
|
1815
1815
|
# Some parameter documentations has been truncated, see
|
|
1816
|
-
# {Orb::Models::
|
|
1816
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup}
|
|
1817
1817
|
# for more details.
|
|
1818
1818
|
#
|
|
1819
1819
|
# @param above_threshold_discount_percentage [String] Discount rate applied to spend above the threshold.
|
|
@@ -1833,9 +1833,9 @@ module Orb
|
|
|
1833
1833
|
# @!attribute cadence
|
|
1834
1834
|
# The cadence to bill for this price on.
|
|
1835
1835
|
#
|
|
1836
|
-
# @return [Symbol, Orb::Models::
|
|
1836
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence]
|
|
1837
1837
|
required :cadence,
|
|
1838
|
-
enum: -> { Orb::
|
|
1838
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence }
|
|
1839
1839
|
|
|
1840
1840
|
# @!attribute item_id
|
|
1841
1841
|
# The id of the item the price will be associated with.
|
|
@@ -1858,9 +1858,9 @@ module Orb
|
|
|
1858
1858
|
# @!attribute tiered_with_proration_config
|
|
1859
1859
|
# Configuration for tiered_with_proration pricing
|
|
1860
1860
|
#
|
|
1861
|
-
# @return [Orb::Models::
|
|
1861
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig]
|
|
1862
1862
|
required :tiered_with_proration_config,
|
|
1863
|
-
-> { Orb::
|
|
1863
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig }
|
|
1864
1864
|
|
|
1865
1865
|
# @!attribute billable_metric_id
|
|
1866
1866
|
# The id of the billable metric for the price. Only needed if the price is
|
|
@@ -1965,16 +1965,16 @@ module Orb
|
|
|
1965
1965
|
|
|
1966
1966
|
# @!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)
|
|
1967
1967
|
# Some parameter documentations has been truncated, see
|
|
1968
|
-
# {Orb::Models::
|
|
1968
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration}
|
|
1969
1969
|
# for more details.
|
|
1970
1970
|
#
|
|
1971
|
-
# @param cadence [Symbol, Orb::Models::
|
|
1971
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on.
|
|
1972
1972
|
#
|
|
1973
1973
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
1974
1974
|
#
|
|
1975
1975
|
# @param name [String] The name of the price.
|
|
1976
1976
|
#
|
|
1977
|
-
# @param tiered_with_proration_config [Orb::Models::
|
|
1977
|
+
# @param tiered_with_proration_config [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig] Configuration for tiered_with_proration pricing
|
|
1978
1978
|
#
|
|
1979
1979
|
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
1980
1980
|
#
|
|
@@ -2008,7 +2008,7 @@ module Orb
|
|
|
2008
2008
|
|
|
2009
2009
|
# The cadence to bill for this price on.
|
|
2010
2010
|
#
|
|
2011
|
-
# @see Orb::Models::
|
|
2011
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration#cadence
|
|
2012
2012
|
module Cadence
|
|
2013
2013
|
extend Orb::Internal::Type::Enum
|
|
2014
2014
|
|
|
@@ -2023,24 +2023,24 @@ module Orb
|
|
|
2023
2023
|
# @return [Array<Symbol>]
|
|
2024
2024
|
end
|
|
2025
2025
|
|
|
2026
|
-
# @see Orb::Models::
|
|
2026
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration#tiered_with_proration_config
|
|
2027
2027
|
class TieredWithProrationConfig < Orb::Internal::Type::BaseModel
|
|
2028
2028
|
# @!attribute tiers
|
|
2029
2029
|
# Tiers for rating based on total usage quantities into the specified tier with
|
|
2030
2030
|
# proration
|
|
2031
2031
|
#
|
|
2032
|
-
# @return [Array<Orb::Models::
|
|
2032
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier>]
|
|
2033
2033
|
required :tiers,
|
|
2034
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
2034
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] }
|
|
2035
2035
|
|
|
2036
2036
|
# @!method initialize(tiers:)
|
|
2037
2037
|
# Some parameter documentations has been truncated, see
|
|
2038
|
-
# {Orb::Models::
|
|
2038
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig}
|
|
2039
2039
|
# for more details.
|
|
2040
2040
|
#
|
|
2041
2041
|
# Configuration for tiered_with_proration pricing
|
|
2042
2042
|
#
|
|
2043
|
-
# @param tiers [Array<Orb::Models::
|
|
2043
|
+
# @param tiers [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier>] Tiers for rating based on total usage quantities into the specified tier with pr
|
|
2044
2044
|
|
|
2045
2045
|
class Tier < Orb::Internal::Type::BaseModel
|
|
2046
2046
|
# @!attribute tier_lower_bound
|
|
@@ -2069,16 +2069,16 @@ module Orb
|
|
|
2069
2069
|
# @!attribute cadence
|
|
2070
2070
|
# The cadence to bill for this price on.
|
|
2071
2071
|
#
|
|
2072
|
-
# @return [Symbol, Orb::Models::
|
|
2072
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence]
|
|
2073
2073
|
required :cadence,
|
|
2074
|
-
enum: -> { Orb::
|
|
2074
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence }
|
|
2075
2075
|
|
|
2076
2076
|
# @!attribute grouped_with_min_max_thresholds_config
|
|
2077
2077
|
# Configuration for grouped_with_min_max_thresholds pricing
|
|
2078
2078
|
#
|
|
2079
|
-
# @return [Orb::Models::
|
|
2079
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig]
|
|
2080
2080
|
required :grouped_with_min_max_thresholds_config,
|
|
2081
|
-
-> { Orb::
|
|
2081
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig }
|
|
2082
2082
|
|
|
2083
2083
|
# @!attribute item_id
|
|
2084
2084
|
# The id of the item the price will be associated with.
|
|
@@ -2201,12 +2201,12 @@ module Orb
|
|
|
2201
2201
|
|
|
2202
2202
|
# @!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)
|
|
2203
2203
|
# Some parameter documentations has been truncated, see
|
|
2204
|
-
# {Orb::Models::
|
|
2204
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds}
|
|
2205
2205
|
# for more details.
|
|
2206
2206
|
#
|
|
2207
|
-
# @param cadence [Symbol, Orb::Models::
|
|
2207
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on.
|
|
2208
2208
|
#
|
|
2209
|
-
# @param grouped_with_min_max_thresholds_config [Orb::Models::
|
|
2209
|
+
# @param grouped_with_min_max_thresholds_config [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing
|
|
2210
2210
|
#
|
|
2211
2211
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
2212
2212
|
#
|
|
@@ -2244,7 +2244,7 @@ module Orb
|
|
|
2244
2244
|
|
|
2245
2245
|
# The cadence to bill for this price on.
|
|
2246
2246
|
#
|
|
2247
|
-
# @see Orb::Models::
|
|
2247
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds#cadence
|
|
2248
2248
|
module Cadence
|
|
2249
2249
|
extend Orb::Internal::Type::Enum
|
|
2250
2250
|
|
|
@@ -2259,7 +2259,7 @@ module Orb
|
|
|
2259
2259
|
# @return [Array<Symbol>]
|
|
2260
2260
|
end
|
|
2261
2261
|
|
|
2262
|
-
# @see Orb::Models::
|
|
2262
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config
|
|
2263
2263
|
class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel
|
|
2264
2264
|
# @!attribute grouping_key
|
|
2265
2265
|
# The event property used to group before applying thresholds
|
|
@@ -2302,16 +2302,16 @@ module Orb
|
|
|
2302
2302
|
# @!attribute cadence
|
|
2303
2303
|
# The cadence to bill for this price on.
|
|
2304
2304
|
#
|
|
2305
|
-
# @return [Symbol, Orb::Models::
|
|
2305
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation::Cadence]
|
|
2306
2306
|
required :cadence,
|
|
2307
|
-
enum: -> { Orb::
|
|
2307
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation::Cadence }
|
|
2308
2308
|
|
|
2309
2309
|
# @!attribute cumulative_grouped_allocation_config
|
|
2310
2310
|
# Configuration for cumulative_grouped_allocation pricing
|
|
2311
2311
|
#
|
|
2312
|
-
# @return [Orb::Models::
|
|
2312
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig]
|
|
2313
2313
|
required :cumulative_grouped_allocation_config,
|
|
2314
|
-
-> { Orb::
|
|
2314
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig }
|
|
2315
2315
|
|
|
2316
2316
|
# @!attribute item_id
|
|
2317
2317
|
# The id of the item the price will be associated with.
|
|
@@ -2434,12 +2434,12 @@ module Orb
|
|
|
2434
2434
|
|
|
2435
2435
|
# @!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)
|
|
2436
2436
|
# Some parameter documentations has been truncated, see
|
|
2437
|
-
# {Orb::Models::
|
|
2437
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation}
|
|
2438
2438
|
# for more details.
|
|
2439
2439
|
#
|
|
2440
|
-
# @param cadence [Symbol, Orb::Models::
|
|
2440
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation::Cadence] The cadence to bill for this price on.
|
|
2441
2441
|
#
|
|
2442
|
-
# @param cumulative_grouped_allocation_config [Orb::Models::
|
|
2442
|
+
# @param cumulative_grouped_allocation_config [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig] Configuration for cumulative_grouped_allocation pricing
|
|
2443
2443
|
#
|
|
2444
2444
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
2445
2445
|
#
|
|
@@ -2477,7 +2477,7 @@ module Orb
|
|
|
2477
2477
|
|
|
2478
2478
|
# The cadence to bill for this price on.
|
|
2479
2479
|
#
|
|
2480
|
-
# @see Orb::Models::
|
|
2480
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation#cadence
|
|
2481
2481
|
module Cadence
|
|
2482
2482
|
extend Orb::Internal::Type::Enum
|
|
2483
2483
|
|
|
@@ -2492,7 +2492,7 @@ module Orb
|
|
|
2492
2492
|
# @return [Array<Symbol>]
|
|
2493
2493
|
end
|
|
2494
2494
|
|
|
2495
|
-
# @see Orb::Models::
|
|
2495
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation#cumulative_grouped_allocation_config
|
|
2496
2496
|
class CumulativeGroupedAllocationConfig < Orb::Internal::Type::BaseModel
|
|
2497
2497
|
# @!attribute cumulative_allocation
|
|
2498
2498
|
# The overall allocation across all groups
|
|
@@ -2535,16 +2535,16 @@ module Orb
|
|
|
2535
2535
|
# @!attribute cadence
|
|
2536
2536
|
# The cadence to bill for this price on.
|
|
2537
2537
|
#
|
|
2538
|
-
# @return [Symbol, Orb::Models::
|
|
2538
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::Cadence]
|
|
2539
2539
|
required :cadence,
|
|
2540
|
-
enum: -> { Orb::
|
|
2540
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::Cadence }
|
|
2541
2541
|
|
|
2542
2542
|
# @!attribute daily_credit_allowance_config
|
|
2543
2543
|
# Configuration for daily_credit_allowance pricing
|
|
2544
2544
|
#
|
|
2545
|
-
# @return [Orb::Models::
|
|
2545
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig]
|
|
2546
2546
|
required :daily_credit_allowance_config,
|
|
2547
|
-
-> { Orb::
|
|
2547
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig }
|
|
2548
2548
|
|
|
2549
2549
|
# @!attribute item_id
|
|
2550
2550
|
# The id of the item the price will be associated with.
|
|
@@ -2667,12 +2667,12 @@ module Orb
|
|
|
2667
2667
|
|
|
2668
2668
|
# @!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)
|
|
2669
2669
|
# Some parameter documentations has been truncated, see
|
|
2670
|
-
# {Orb::Models::
|
|
2670
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance}
|
|
2671
2671
|
# for more details.
|
|
2672
2672
|
#
|
|
2673
|
-
# @param cadence [Symbol, Orb::Models::
|
|
2673
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::Cadence] The cadence to bill for this price on.
|
|
2674
2674
|
#
|
|
2675
|
-
# @param daily_credit_allowance_config [Orb::Models::
|
|
2675
|
+
# @param daily_credit_allowance_config [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig] Configuration for daily_credit_allowance pricing
|
|
2676
2676
|
#
|
|
2677
2677
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
2678
2678
|
#
|
|
@@ -2710,7 +2710,7 @@ module Orb
|
|
|
2710
2710
|
|
|
2711
2711
|
# The cadence to bill for this price on.
|
|
2712
2712
|
#
|
|
2713
|
-
# @see Orb::Models::
|
|
2713
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance#cadence
|
|
2714
2714
|
module Cadence
|
|
2715
2715
|
extend Orb::Internal::Type::Enum
|
|
2716
2716
|
|
|
@@ -2725,7 +2725,7 @@ module Orb
|
|
|
2725
2725
|
# @return [Array<Symbol>]
|
|
2726
2726
|
end
|
|
2727
2727
|
|
|
2728
|
-
# @see Orb::Models::
|
|
2728
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance#daily_credit_allowance_config
|
|
2729
2729
|
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
2730
2730
|
# @!attribute daily_allowance
|
|
2731
2731
|
# Credits granted per day. Lose-it-or-use-it; does not roll over.
|
|
@@ -2757,17 +2757,17 @@ module Orb
|
|
|
2757
2757
|
# @!attribute matrix_values
|
|
2758
2758
|
# Per-dimension credit rates
|
|
2759
2759
|
#
|
|
2760
|
-
# @return [Array<Orb::Models::
|
|
2760
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue>]
|
|
2761
2761
|
required :matrix_values,
|
|
2762
2762
|
-> do
|
|
2763
2763
|
Orb::Internal::Type::ArrayOf[
|
|
2764
|
-
Orb::
|
|
2764
|
+
Orb::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue
|
|
2765
2765
|
]
|
|
2766
2766
|
end
|
|
2767
2767
|
|
|
2768
2768
|
# @!method initialize(daily_allowance:, default_unit_amount:, dimensions:, event_day_property:, matrix_values:)
|
|
2769
2769
|
# Some parameter documentations has been truncated, see
|
|
2770
|
-
# {Orb::Models::
|
|
2770
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig}
|
|
2771
2771
|
# for more details.
|
|
2772
2772
|
#
|
|
2773
2773
|
# Configuration for daily_credit_allowance pricing
|
|
@@ -2781,7 +2781,7 @@ module Orb
|
|
|
2781
2781
|
#
|
|
2782
2782
|
# @param event_day_property [String] Event property whose value identifies the day bucket the event belongs to (e.g.
|
|
2783
2783
|
#
|
|
2784
|
-
# @param matrix_values [Array<Orb::Models::
|
|
2784
|
+
# @param matrix_values [Array<Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue>] Per-dimension credit rates
|
|
2785
2785
|
|
|
2786
2786
|
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
2787
2787
|
# @!attribute dimension_values
|
|
@@ -2799,7 +2799,7 @@ module Orb
|
|
|
2799
2799
|
|
|
2800
2800
|
# @!method initialize(dimension_values:, unit_amount:)
|
|
2801
2801
|
# Some parameter documentations has been truncated, see
|
|
2802
|
-
# {Orb::Models::
|
|
2802
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue}
|
|
2803
2803
|
# for more details.
|
|
2804
2804
|
#
|
|
2805
2805
|
# Per-dimension credit price for the daily credit allowance model.
|
|
@@ -2815,9 +2815,9 @@ module Orb
|
|
|
2815
2815
|
# @!attribute cadence
|
|
2816
2816
|
# The cadence to bill for this price on.
|
|
2817
2817
|
#
|
|
2818
|
-
# @return [Symbol, Orb::Models::
|
|
2818
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::Cadence]
|
|
2819
2819
|
required :cadence,
|
|
2820
|
-
enum: -> { Orb::
|
|
2820
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::Cadence }
|
|
2821
2821
|
|
|
2822
2822
|
# @!attribute item_id
|
|
2823
2823
|
# The id of the item the price will be associated with.
|
|
@@ -2828,9 +2828,9 @@ module Orb
|
|
|
2828
2828
|
# @!attribute metered_allowance_config
|
|
2829
2829
|
# Configuration for metered_allowance pricing
|
|
2830
2830
|
#
|
|
2831
|
-
# @return [Orb::Models::
|
|
2831
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig]
|
|
2832
2832
|
required :metered_allowance_config,
|
|
2833
|
-
-> { Orb::
|
|
2833
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig }
|
|
2834
2834
|
|
|
2835
2835
|
# @!attribute model_type
|
|
2836
2836
|
# The pricing model type
|
|
@@ -2947,14 +2947,14 @@ module Orb
|
|
|
2947
2947
|
|
|
2948
2948
|
# @!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)
|
|
2949
2949
|
# Some parameter documentations has been truncated, see
|
|
2950
|
-
# {Orb::Models::
|
|
2950
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MeteredAllowance}
|
|
2951
2951
|
# for more details.
|
|
2952
2952
|
#
|
|
2953
|
-
# @param cadence [Symbol, Orb::Models::
|
|
2953
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::Cadence] The cadence to bill for this price on.
|
|
2954
2954
|
#
|
|
2955
2955
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
2956
2956
|
#
|
|
2957
|
-
# @param metered_allowance_config [Orb::Models::
|
|
2957
|
+
# @param metered_allowance_config [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig] Configuration for metered_allowance pricing
|
|
2958
2958
|
#
|
|
2959
2959
|
# @param name [String] The name of the price.
|
|
2960
2960
|
#
|
|
@@ -2990,7 +2990,7 @@ module Orb
|
|
|
2990
2990
|
|
|
2991
2991
|
# The cadence to bill for this price on.
|
|
2992
2992
|
#
|
|
2993
|
-
# @see Orb::Models::
|
|
2993
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MeteredAllowance#cadence
|
|
2994
2994
|
module Cadence
|
|
2995
2995
|
extend Orb::Internal::Type::Enum
|
|
2996
2996
|
|
|
@@ -3005,7 +3005,7 @@ module Orb
|
|
|
3005
3005
|
# @return [Array<Symbol>]
|
|
3006
3006
|
end
|
|
3007
3007
|
|
|
3008
|
-
# @see Orb::Models::
|
|
3008
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MeteredAllowance#metered_allowance_config
|
|
3009
3009
|
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
3010
3010
|
# @!attribute allowance_grouping_value
|
|
3011
3011
|
# The grouping_key value whose summed quantity represents the allowance for this
|
|
@@ -3050,7 +3050,7 @@ module Orb
|
|
|
3050
3050
|
|
|
3051
3051
|
# @!method initialize(allowance_grouping_value:, consumption_grouping_value:, grouping_key:, unit_amount:, allowance_display_name: nil, consumption_display_name: nil)
|
|
3052
3052
|
# Some parameter documentations has been truncated, see
|
|
3053
|
-
# {Orb::Models::
|
|
3053
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig}
|
|
3054
3054
|
# for more details.
|
|
3055
3055
|
#
|
|
3056
3056
|
# Configuration for metered_allowance pricing
|
|
@@ -3073,8 +3073,8 @@ module Orb
|
|
|
3073
3073
|
# @!attribute cadence
|
|
3074
3074
|
# The cadence to bill for this price on.
|
|
3075
3075
|
#
|
|
3076
|
-
# @return [Symbol, Orb::Models::
|
|
3077
|
-
required :cadence, enum: -> { Orb::
|
|
3076
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::Percent::Cadence]
|
|
3077
|
+
required :cadence, enum: -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::Percent::Cadence }
|
|
3078
3078
|
|
|
3079
3079
|
# @!attribute item_id
|
|
3080
3080
|
# The id of the item the price will be associated with.
|
|
@@ -3097,8 +3097,8 @@ module Orb
|
|
|
3097
3097
|
# @!attribute percent_config
|
|
3098
3098
|
# Configuration for percent pricing
|
|
3099
3099
|
#
|
|
3100
|
-
# @return [Orb::Models::
|
|
3101
|
-
required :percent_config, -> { Orb::
|
|
3100
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig]
|
|
3101
|
+
required :percent_config, -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig }
|
|
3102
3102
|
|
|
3103
3103
|
# @!attribute billable_metric_id
|
|
3104
3104
|
# The id of the billable metric for the price. Only needed if the price is
|
|
@@ -3203,16 +3203,16 @@ module Orb
|
|
|
3203
3203
|
|
|
3204
3204
|
# @!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)
|
|
3205
3205
|
# Some parameter documentations has been truncated, see
|
|
3206
|
-
# {Orb::Models::
|
|
3206
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::Percent} for more
|
|
3207
3207
|
# details.
|
|
3208
3208
|
#
|
|
3209
|
-
# @param cadence [Symbol, Orb::Models::
|
|
3209
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::Percent::Cadence] The cadence to bill for this price on.
|
|
3210
3210
|
#
|
|
3211
3211
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
3212
3212
|
#
|
|
3213
3213
|
# @param name [String] The name of the price.
|
|
3214
3214
|
#
|
|
3215
|
-
# @param percent_config [Orb::Models::
|
|
3215
|
+
# @param percent_config [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig] Configuration for percent pricing
|
|
3216
3216
|
#
|
|
3217
3217
|
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
3218
3218
|
#
|
|
@@ -3246,7 +3246,7 @@ module Orb
|
|
|
3246
3246
|
|
|
3247
3247
|
# The cadence to bill for this price on.
|
|
3248
3248
|
#
|
|
3249
|
-
# @see Orb::Models::
|
|
3249
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::Percent#cadence
|
|
3250
3250
|
module Cadence
|
|
3251
3251
|
extend Orb::Internal::Type::Enum
|
|
3252
3252
|
|
|
@@ -3261,7 +3261,7 @@ module Orb
|
|
|
3261
3261
|
# @return [Array<Symbol>]
|
|
3262
3262
|
end
|
|
3263
3263
|
|
|
3264
|
-
# @see Orb::Models::
|
|
3264
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::Percent#percent_config
|
|
3265
3265
|
class PercentConfig < Orb::Internal::Type::BaseModel
|
|
3266
3266
|
# @!attribute percent
|
|
3267
3267
|
# Fraction of the component subtotals to charge (0 < percent <= 1).
|
|
@@ -3291,7 +3291,7 @@ module Orb
|
|
|
3291
3291
|
|
|
3292
3292
|
# @!method initialize(percent:, maximum_amount: nil, minimum_amount: nil, prorated: nil)
|
|
3293
3293
|
# Some parameter documentations has been truncated, see
|
|
3294
|
-
# {Orb::Models::
|
|
3294
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig}
|
|
3295
3295
|
# for more details.
|
|
3296
3296
|
#
|
|
3297
3297
|
# Configuration for percent pricing
|
|
@@ -3310,15 +3310,15 @@ module Orb
|
|
|
3310
3310
|
# @!attribute cadence
|
|
3311
3311
|
# The cadence to bill for this price on.
|
|
3312
3312
|
#
|
|
3313
|
-
# @return [Symbol, Orb::Models::
|
|
3314
|
-
required :cadence, enum: -> { Orb::
|
|
3313
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::EventOutput::Cadence]
|
|
3314
|
+
required :cadence, enum: -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::EventOutput::Cadence }
|
|
3315
3315
|
|
|
3316
3316
|
# @!attribute event_output_config
|
|
3317
3317
|
# Configuration for event_output pricing
|
|
3318
3318
|
#
|
|
3319
|
-
# @return [Orb::Models::
|
|
3319
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig]
|
|
3320
3320
|
required :event_output_config,
|
|
3321
|
-
-> { Orb::
|
|
3321
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig }
|
|
3322
3322
|
|
|
3323
3323
|
# @!attribute item_id
|
|
3324
3324
|
# The id of the item the price will be associated with.
|
|
@@ -3441,12 +3441,12 @@ module Orb
|
|
|
3441
3441
|
|
|
3442
3442
|
# @!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)
|
|
3443
3443
|
# Some parameter documentations has been truncated, see
|
|
3444
|
-
# {Orb::Models::
|
|
3444
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::EventOutput} for
|
|
3445
3445
|
# more details.
|
|
3446
3446
|
#
|
|
3447
|
-
# @param cadence [Symbol, Orb::Models::
|
|
3447
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::EventOutput::Cadence] The cadence to bill for this price on.
|
|
3448
3448
|
#
|
|
3449
|
-
# @param event_output_config [Orb::Models::
|
|
3449
|
+
# @param event_output_config [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig] Configuration for event_output pricing
|
|
3450
3450
|
#
|
|
3451
3451
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
3452
3452
|
#
|
|
@@ -3484,7 +3484,7 @@ module Orb
|
|
|
3484
3484
|
|
|
3485
3485
|
# The cadence to bill for this price on.
|
|
3486
3486
|
#
|
|
3487
|
-
# @see Orb::Models::
|
|
3487
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::EventOutput#cadence
|
|
3488
3488
|
module Cadence
|
|
3489
3489
|
extend Orb::Internal::Type::Enum
|
|
3490
3490
|
|
|
@@ -3499,7 +3499,7 @@ module Orb
|
|
|
3499
3499
|
# @return [Array<Symbol>]
|
|
3500
3500
|
end
|
|
3501
3501
|
|
|
3502
|
-
# @see Orb::Models::
|
|
3502
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::EventOutput#event_output_config
|
|
3503
3503
|
class EventOutputConfig < Orb::Internal::Type::BaseModel
|
|
3504
3504
|
# @!attribute unit_rating_key
|
|
3505
3505
|
# The key in the event data to extract the unit rate from.
|
|
@@ -3524,7 +3524,7 @@ module Orb
|
|
|
3524
3524
|
|
|
3525
3525
|
# @!method initialize(unit_rating_key:, default_unit_rate: nil, grouping_key: nil)
|
|
3526
3526
|
# Some parameter documentations has been truncated, see
|
|
3527
|
-
# {Orb::Models::
|
|
3527
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig}
|
|
3528
3528
|
# for more details.
|
|
3529
3529
|
#
|
|
3530
3530
|
# Configuration for event_output pricing
|
|
@@ -3541,9 +3541,9 @@ module Orb
|
|
|
3541
3541
|
# @!attribute cadence
|
|
3542
3542
|
# The cadence to bill for this price on.
|
|
3543
3543
|
#
|
|
3544
|
-
# @return [Symbol, Orb::Models::
|
|
3544
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::Cadence]
|
|
3545
3545
|
required :cadence,
|
|
3546
|
-
enum: -> { Orb::
|
|
3546
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::Cadence }
|
|
3547
3547
|
|
|
3548
3548
|
# @!attribute item_id
|
|
3549
3549
|
# The id of the item the price will be associated with.
|
|
@@ -3566,9 +3566,9 @@ module Orb
|
|
|
3566
3566
|
# @!attribute unit_with_multiplier_config
|
|
3567
3567
|
# Configuration for unit_with_multiplier pricing
|
|
3568
3568
|
#
|
|
3569
|
-
# @return [Orb::Models::
|
|
3569
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig]
|
|
3570
3570
|
required :unit_with_multiplier_config,
|
|
3571
|
-
-> { Orb::
|
|
3571
|
+
-> { Orb::PlanCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig }
|
|
3572
3572
|
|
|
3573
3573
|
# @!attribute billable_metric_id
|
|
3574
3574
|
# The id of the billable metric for the price. Only needed if the price is
|
|
@@ -3673,16 +3673,16 @@ module Orb
|
|
|
3673
3673
|
|
|
3674
3674
|
# @!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)
|
|
3675
3675
|
# Some parameter documentations has been truncated, see
|
|
3676
|
-
# {Orb::Models::
|
|
3676
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier}
|
|
3677
3677
|
# for more details.
|
|
3678
3678
|
#
|
|
3679
|
-
# @param cadence [Symbol, Orb::Models::
|
|
3679
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::Cadence] The cadence to bill for this price on.
|
|
3680
3680
|
#
|
|
3681
3681
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
3682
3682
|
#
|
|
3683
3683
|
# @param name [String] The name of the price.
|
|
3684
3684
|
#
|
|
3685
|
-
# @param unit_with_multiplier_config [Orb::Models::
|
|
3685
|
+
# @param unit_with_multiplier_config [Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig] Configuration for unit_with_multiplier pricing
|
|
3686
3686
|
#
|
|
3687
3687
|
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
3688
3688
|
#
|
|
@@ -3716,7 +3716,7 @@ module Orb
|
|
|
3716
3716
|
|
|
3717
3717
|
# The cadence to bill for this price on.
|
|
3718
3718
|
#
|
|
3719
|
-
# @see Orb::Models::
|
|
3719
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier#cadence
|
|
3720
3720
|
module Cadence
|
|
3721
3721
|
extend Orb::Internal::Type::Enum
|
|
3722
3722
|
|
|
@@ -3731,7 +3731,7 @@ module Orb
|
|
|
3731
3731
|
# @return [Array<Symbol>]
|
|
3732
3732
|
end
|
|
3733
3733
|
|
|
3734
|
-
# @see Orb::Models::
|
|
3734
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier#unit_with_multiplier_config
|
|
3735
3735
|
class UnitWithMultiplierConfig < Orb::Internal::Type::BaseModel
|
|
3736
3736
|
# @!attribute default_display_name
|
|
3737
3737
|
# Sub-line label for list-price events that don't set display_name_key. Unlabeled
|
|
@@ -3764,7 +3764,7 @@ module Orb
|
|
|
3764
3764
|
|
|
3765
3765
|
# @!method initialize(default_display_name:, display_name_key:, multiplier_key:, unit_amount:)
|
|
3766
3766
|
# Some parameter documentations has been truncated, see
|
|
3767
|
-
# {Orb::Models::
|
|
3767
|
+
# {Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig}
|
|
3768
3768
|
# for more details.
|
|
3769
3769
|
#
|
|
3770
3770
|
# Configuration for unit_with_multiplier pricing
|
|
@@ -3780,7 +3780,7 @@ module Orb
|
|
|
3780
3780
|
end
|
|
3781
3781
|
|
|
3782
3782
|
# @!method self.variants
|
|
3783
|
-
# @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::
|
|
3783
|
+
# @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::Percent, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::EventOutput, Orb::Models::PlanCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier)]
|
|
3784
3784
|
end
|
|
3785
3785
|
end
|
|
3786
3786
|
|
|
@@ -3826,8 +3826,8 @@ module Orb
|
|
|
3826
3826
|
# @!attribute adjustment
|
|
3827
3827
|
# The definition of a new adjustment to create and add to the plan.
|
|
3828
3828
|
#
|
|
3829
|
-
# @return [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::
|
|
3830
|
-
required :adjustment, union: -> { Orb::
|
|
3829
|
+
# @return [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount]
|
|
3830
|
+
required :adjustment, union: -> { Orb::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment }
|
|
3831
3831
|
|
|
3832
3832
|
# @!attribute replaces_adjustment_id
|
|
3833
3833
|
# The id of the adjustment on the plan to replace in the plan.
|
|
@@ -3842,7 +3842,7 @@ module Orb
|
|
|
3842
3842
|
optional :plan_phase_order, Integer, nil?: true
|
|
3843
3843
|
|
|
3844
3844
|
# @!method initialize(adjustment:, replaces_adjustment_id:, plan_phase_order: nil)
|
|
3845
|
-
# @param adjustment [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::
|
|
3845
|
+
# @param adjustment [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount] The definition of a new adjustment to create and add to the plan.
|
|
3846
3846
|
#
|
|
3847
3847
|
# @param replaces_adjustment_id [String] The id of the adjustment on the plan to replace in the plan.
|
|
3848
3848
|
#
|
|
@@ -3850,7 +3850,7 @@ module Orb
|
|
|
3850
3850
|
|
|
3851
3851
|
# The definition of a new adjustment to create and add to the plan.
|
|
3852
3852
|
#
|
|
3853
|
-
# @see Orb::Models::
|
|
3853
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment#adjustment
|
|
3854
3854
|
module Adjustment
|
|
3855
3855
|
extend Orb::Internal::Type::Union
|
|
3856
3856
|
|
|
@@ -3867,7 +3867,7 @@ module Orb
|
|
|
3867
3867
|
variant :maximum, -> { Orb::NewMaximum }
|
|
3868
3868
|
|
|
3869
3869
|
variant :tiered_percentage_discount,
|
|
3870
|
-
-> { Orb::
|
|
3870
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount }
|
|
3871
3871
|
|
|
3872
3872
|
class TieredPercentageDiscount < Orb::Internal::Type::BaseModel
|
|
3873
3873
|
# @!attribute adjustment_type
|
|
@@ -3877,17 +3877,17 @@ module Orb
|
|
|
3877
3877
|
|
|
3878
3878
|
# @!attribute tiers
|
|
3879
3879
|
#
|
|
3880
|
-
# @return [Array<Orb::Models::
|
|
3880
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier>]
|
|
3881
3881
|
required :tiers,
|
|
3882
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
3882
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier] }
|
|
3883
3883
|
|
|
3884
3884
|
# @!attribute applies_to_all
|
|
3885
3885
|
# If set, the adjustment will apply to every price on the subscription.
|
|
3886
3886
|
#
|
|
3887
|
-
# @return [Boolean, Orb::Models::
|
|
3887
|
+
# @return [Boolean, Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::AppliesToAll, nil]
|
|
3888
3888
|
optional :applies_to_all,
|
|
3889
3889
|
enum: -> {
|
|
3890
|
-
Orb::
|
|
3890
|
+
Orb::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::AppliesToAll
|
|
3891
3891
|
},
|
|
3892
3892
|
nil?: true
|
|
3893
3893
|
|
|
@@ -3912,10 +3912,10 @@ module Orb
|
|
|
3912
3912
|
# @!attribute filters
|
|
3913
3913
|
# A list of filters that determine which prices this adjustment will apply to.
|
|
3914
3914
|
#
|
|
3915
|
-
# @return [Array<Orb::Models::
|
|
3915
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter>, nil]
|
|
3916
3916
|
optional :filters,
|
|
3917
3917
|
-> {
|
|
3918
|
-
Orb::Internal::Type::ArrayOf[Orb::
|
|
3918
|
+
Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]
|
|
3919
3919
|
},
|
|
3920
3920
|
nil?: true
|
|
3921
3921
|
|
|
@@ -3929,21 +3929,21 @@ module Orb
|
|
|
3929
3929
|
# @!attribute price_type
|
|
3930
3930
|
# If set, only prices of the specified type will have the adjustment applied.
|
|
3931
3931
|
#
|
|
3932
|
-
# @return [Symbol, Orb::Models::
|
|
3932
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::PriceType, nil]
|
|
3933
3933
|
optional :price_type,
|
|
3934
3934
|
enum: -> {
|
|
3935
|
-
Orb::
|
|
3935
|
+
Orb::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::PriceType
|
|
3936
3936
|
},
|
|
3937
3937
|
nil?: true
|
|
3938
3938
|
|
|
3939
3939
|
# @!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)
|
|
3940
3940
|
# Some parameter documentations has been truncated, see
|
|
3941
|
-
# {Orb::Models::
|
|
3941
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount}
|
|
3942
3942
|
# for more details.
|
|
3943
3943
|
#
|
|
3944
|
-
# @param tiers [Array<Orb::Models::
|
|
3944
|
+
# @param tiers [Array<Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier>]
|
|
3945
3945
|
#
|
|
3946
|
-
# @param applies_to_all [Boolean, Orb::Models::
|
|
3946
|
+
# @param applies_to_all [Boolean, Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::AppliesToAll, nil] If set, the adjustment will apply to every price on the subscription.
|
|
3947
3947
|
#
|
|
3948
3948
|
# @param applies_to_item_ids [Array<String>, nil] The set of item IDs to which this adjustment applies.
|
|
3949
3949
|
#
|
|
@@ -3951,11 +3951,11 @@ module Orb
|
|
|
3951
3951
|
#
|
|
3952
3952
|
# @param currency [String, nil] If set, only prices in the specified currency will have the adjustment applied.
|
|
3953
3953
|
#
|
|
3954
|
-
# @param filters [Array<Orb::Models::
|
|
3954
|
+
# @param filters [Array<Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter>, nil] A list of filters that determine which prices this adjustment will apply to.
|
|
3955
3955
|
#
|
|
3956
3956
|
# @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil
|
|
3957
3957
|
#
|
|
3958
|
-
# @param price_type [Symbol, Orb::Models::
|
|
3958
|
+
# @param price_type [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::PriceType, nil] If set, only prices of the specified type will have the adjustment applied.
|
|
3959
3959
|
#
|
|
3960
3960
|
# @param adjustment_type [Symbol, :tiered_percentage_discount]
|
|
3961
3961
|
|
|
@@ -3988,7 +3988,7 @@ module Orb
|
|
|
3988
3988
|
|
|
3989
3989
|
# If set, the adjustment will apply to every price on the subscription.
|
|
3990
3990
|
#
|
|
3991
|
-
# @see Orb::Models::
|
|
3991
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount#applies_to_all
|
|
3992
3992
|
module AppliesToAll
|
|
3993
3993
|
extend Orb::Internal::Type::Enum
|
|
3994
3994
|
|
|
@@ -4002,16 +4002,16 @@ module Orb
|
|
|
4002
4002
|
# @!attribute field
|
|
4003
4003
|
# The property of the price to filter on.
|
|
4004
4004
|
#
|
|
4005
|
-
# @return [Symbol, Orb::Models::
|
|
4005
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::Field]
|
|
4006
4006
|
required :field,
|
|
4007
|
-
enum: -> { Orb::
|
|
4007
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::Field }
|
|
4008
4008
|
|
|
4009
4009
|
# @!attribute operator
|
|
4010
4010
|
# Should prices that match the filter be included or excluded.
|
|
4011
4011
|
#
|
|
4012
|
-
# @return [Symbol, Orb::Models::
|
|
4012
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::Operator]
|
|
4013
4013
|
required :operator,
|
|
4014
|
-
enum: -> { Orb::
|
|
4014
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::Operator }
|
|
4015
4015
|
|
|
4016
4016
|
# @!attribute values
|
|
4017
4017
|
# The IDs or values that match this filter.
|
|
@@ -4020,15 +4020,15 @@ module Orb
|
|
|
4020
4020
|
required :values, Orb::Internal::Type::ArrayOf[String]
|
|
4021
4021
|
|
|
4022
4022
|
# @!method initialize(field:, operator:, values:)
|
|
4023
|
-
# @param field [Symbol, Orb::Models::
|
|
4023
|
+
# @param field [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::Field] The property of the price to filter on.
|
|
4024
4024
|
#
|
|
4025
|
-
# @param operator [Symbol, Orb::Models::
|
|
4025
|
+
# @param operator [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::Operator] Should prices that match the filter be included or excluded.
|
|
4026
4026
|
#
|
|
4027
4027
|
# @param values [Array<String>] The IDs or values that match this filter.
|
|
4028
4028
|
|
|
4029
4029
|
# The property of the price to filter on.
|
|
4030
4030
|
#
|
|
4031
|
-
# @see Orb::Models::
|
|
4031
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter#field
|
|
4032
4032
|
module Field
|
|
4033
4033
|
extend Orb::Internal::Type::Enum
|
|
4034
4034
|
|
|
@@ -4044,7 +4044,7 @@ module Orb
|
|
|
4044
4044
|
|
|
4045
4045
|
# Should prices that match the filter be included or excluded.
|
|
4046
4046
|
#
|
|
4047
|
-
# @see Orb::Models::
|
|
4047
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter#operator
|
|
4048
4048
|
module Operator
|
|
4049
4049
|
extend Orb::Internal::Type::Enum
|
|
4050
4050
|
|
|
@@ -4058,7 +4058,7 @@ module Orb
|
|
|
4058
4058
|
|
|
4059
4059
|
# If set, only prices of the specified type will have the adjustment applied.
|
|
4060
4060
|
#
|
|
4061
|
-
# @see Orb::Models::
|
|
4061
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount#price_type
|
|
4062
4062
|
module PriceType
|
|
4063
4063
|
extend Orb::Internal::Type::Enum
|
|
4064
4064
|
|
|
@@ -4074,7 +4074,7 @@ module Orb
|
|
|
4074
4074
|
end
|
|
4075
4075
|
|
|
4076
4076
|
# @!method self.variants
|
|
4077
|
-
# @return [Array(Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::
|
|
4077
|
+
# @return [Array(Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, Orb::Models::PlanCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount)]
|
|
4078
4078
|
end
|
|
4079
4079
|
end
|
|
4080
4080
|
|
|
@@ -4094,9 +4094,9 @@ module Orb
|
|
|
4094
4094
|
# @!attribute license_allocation_price
|
|
4095
4095
|
# The license allocation price to add to the plan.
|
|
4096
4096
|
#
|
|
4097
|
-
# @return [Orb::Models::
|
|
4097
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice, nil]
|
|
4098
4098
|
optional :license_allocation_price,
|
|
4099
|
-
-> { Orb::
|
|
4099
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice },
|
|
4100
4100
|
nil?: true
|
|
4101
4101
|
|
|
4102
4102
|
# @!attribute plan_phase_order
|
|
@@ -4108,28 +4108,28 @@ module Orb
|
|
|
4108
4108
|
# @!attribute price
|
|
4109
4109
|
# New plan price request body params.
|
|
4110
4110
|
#
|
|
4111
|
-
# @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::
|
|
4112
|
-
optional :price, union: -> { Orb::
|
|
4111
|
+
# @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::Percent, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::EventOutput, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier, nil]
|
|
4112
|
+
optional :price, union: -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price }, nil?: true
|
|
4113
4113
|
|
|
4114
4114
|
# @!method initialize(replaces_price_id:, allocation_price: nil, license_allocation_price: nil, plan_phase_order: nil, price: nil)
|
|
4115
4115
|
# @param replaces_price_id [String] The id of the price on the plan to replace in the plan.
|
|
4116
4116
|
#
|
|
4117
4117
|
# @param allocation_price [Orb::Models::NewAllocationPrice, nil] The allocation price to add to the plan.
|
|
4118
4118
|
#
|
|
4119
|
-
# @param license_allocation_price [Orb::Models::
|
|
4119
|
+
# @param license_allocation_price [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice, nil] The license allocation price to add to the plan.
|
|
4120
4120
|
#
|
|
4121
4121
|
# @param plan_phase_order [Integer, nil] The phase to replace this price from.
|
|
4122
4122
|
#
|
|
4123
|
-
# @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::
|
|
4123
|
+
# @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::Percent, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::EventOutput, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier, nil] New plan price request body params.
|
|
4124
4124
|
|
|
4125
|
-
# @see Orb::Models::
|
|
4125
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice#license_allocation_price
|
|
4126
4126
|
class LicenseAllocationPrice < Orb::Internal::Type::BaseModel
|
|
4127
4127
|
# @!attribute cadence
|
|
4128
4128
|
# The cadence to bill for this price on.
|
|
4129
4129
|
#
|
|
4130
|
-
# @return [Symbol, Orb::Models::
|
|
4130
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::Cadence]
|
|
4131
4131
|
required :cadence,
|
|
4132
|
-
enum: -> { Orb::
|
|
4132
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::Cadence }
|
|
4133
4133
|
|
|
4134
4134
|
# @!attribute item_id
|
|
4135
4135
|
# The id of the item the price will be associated with.
|
|
@@ -4143,16 +4143,16 @@ module Orb
|
|
|
4143
4143
|
# license_type_configuration to be set. Usage prices draw down from these
|
|
4144
4144
|
# allocations only if they set the same license type.
|
|
4145
4145
|
#
|
|
4146
|
-
# @return [Array<Orb::Models::
|
|
4146
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::LicenseAllocation>]
|
|
4147
4147
|
required :license_allocations,
|
|
4148
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
4148
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::LicenseAllocation] }
|
|
4149
4149
|
|
|
4150
4150
|
# @!attribute model_type
|
|
4151
4151
|
# The pricing model type
|
|
4152
4152
|
#
|
|
4153
|
-
# @return [Symbol, Orb::Models::
|
|
4153
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::ModelType]
|
|
4154
4154
|
required :model_type,
|
|
4155
|
-
enum: -> { Orb::
|
|
4155
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::ModelType }
|
|
4156
4156
|
|
|
4157
4157
|
# @!attribute name
|
|
4158
4158
|
# The name of the price.
|
|
@@ -4265,18 +4265,18 @@ module Orb
|
|
|
4265
4265
|
|
|
4266
4266
|
# @!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)
|
|
4267
4267
|
# Some parameter documentations has been truncated, see
|
|
4268
|
-
# {Orb::Models::
|
|
4268
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice}
|
|
4269
4269
|
# for more details.
|
|
4270
4270
|
#
|
|
4271
4271
|
# The license allocation price to add to the plan.
|
|
4272
4272
|
#
|
|
4273
|
-
# @param cadence [Symbol, Orb::Models::
|
|
4273
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::Cadence] The cadence to bill for this price on.
|
|
4274
4274
|
#
|
|
4275
4275
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
4276
4276
|
#
|
|
4277
|
-
# @param license_allocations [Array<Orb::Models::
|
|
4277
|
+
# @param license_allocations [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::LicenseAllocation>] License allocations to associate with this price. Each entry defines a per-licen
|
|
4278
4278
|
#
|
|
4279
|
-
# @param model_type [Symbol, Orb::Models::
|
|
4279
|
+
# @param model_type [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::ModelType] The pricing model type
|
|
4280
4280
|
#
|
|
4281
4281
|
# @param name [String] The name of the price.
|
|
4282
4282
|
#
|
|
@@ -4312,7 +4312,7 @@ module Orb
|
|
|
4312
4312
|
|
|
4313
4313
|
# The cadence to bill for this price on.
|
|
4314
4314
|
#
|
|
4315
|
-
# @see Orb::Models::
|
|
4315
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice#cadence
|
|
4316
4316
|
module Cadence
|
|
4317
4317
|
extend Orb::Internal::Type::Enum
|
|
4318
4318
|
|
|
@@ -4356,7 +4356,7 @@ module Orb
|
|
|
4356
4356
|
|
|
4357
4357
|
# The pricing model type
|
|
4358
4358
|
#
|
|
4359
|
-
# @see Orb::Models::
|
|
4359
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice#model_type
|
|
4360
4360
|
module ModelType
|
|
4361
4361
|
extend Orb::Internal::Type::Enum
|
|
4362
4362
|
|
|
@@ -4369,7 +4369,7 @@ module Orb
|
|
|
4369
4369
|
|
|
4370
4370
|
# New plan price request body params.
|
|
4371
4371
|
#
|
|
4372
|
-
# @see Orb::Models::
|
|
4372
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice#price
|
|
4373
4373
|
module Price
|
|
4374
4374
|
extend Orb::Internal::Type::Union
|
|
4375
4375
|
|
|
@@ -4381,7 +4381,7 @@ module Orb
|
|
|
4381
4381
|
|
|
4382
4382
|
variant :bulk, -> { Orb::NewPlanBulkPrice }
|
|
4383
4383
|
|
|
4384
|
-
variant :bulk_with_filters, -> { Orb::
|
|
4384
|
+
variant :bulk_with_filters, -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters }
|
|
4385
4385
|
|
|
4386
4386
|
variant :package, -> { Orb::NewPlanPackagePrice }
|
|
4387
4387
|
|
|
@@ -4396,7 +4396,7 @@ module Orb
|
|
|
4396
4396
|
variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice }
|
|
4397
4397
|
|
|
4398
4398
|
variant :grouped_tiered_matrix,
|
|
4399
|
-
-> { Orb::
|
|
4399
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix }
|
|
4400
4400
|
|
|
4401
4401
|
variant :tiered_package_with_minimum, -> { Orb::NewPlanTieredPackageWithMinimumPrice }
|
|
4402
4402
|
|
|
@@ -4407,13 +4407,13 @@ module Orb
|
|
|
4407
4407
|
variant :matrix_with_allocation, -> { Orb::NewPlanMatrixWithAllocationPrice }
|
|
4408
4408
|
|
|
4409
4409
|
variant :tiered_matrix_with_allocation,
|
|
4410
|
-
-> { Orb::
|
|
4410
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation }
|
|
4411
4411
|
|
|
4412
4412
|
variant :matrix_with_threshold_discounts,
|
|
4413
|
-
-> { Orb::
|
|
4413
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts }
|
|
4414
4414
|
|
|
4415
4415
|
variant :tiered_with_proration,
|
|
4416
|
-
-> { Orb::
|
|
4416
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration }
|
|
4417
4417
|
|
|
4418
4418
|
variant :unit_with_proration, -> { Orb::NewPlanUnitWithProrationPrice }
|
|
4419
4419
|
|
|
@@ -4426,7 +4426,7 @@ module Orb
|
|
|
4426
4426
|
variant :grouped_with_metered_minimum, -> { Orb::NewPlanGroupedWithMeteredMinimumPrice }
|
|
4427
4427
|
|
|
4428
4428
|
variant :grouped_with_min_max_thresholds,
|
|
4429
|
-
-> { Orb::
|
|
4429
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds }
|
|
4430
4430
|
|
|
4431
4431
|
variant :matrix_with_display_name, -> { Orb::NewPlanMatrixWithDisplayNamePrice }
|
|
4432
4432
|
|
|
@@ -4441,36 +4441,36 @@ module Orb
|
|
|
4441
4441
|
variant :cumulative_grouped_bulk, -> { Orb::NewPlanCumulativeGroupedBulkPrice }
|
|
4442
4442
|
|
|
4443
4443
|
variant :cumulative_grouped_allocation,
|
|
4444
|
-
-> { Orb::
|
|
4444
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation }
|
|
4445
4445
|
|
|
4446
4446
|
variant :daily_credit_allowance,
|
|
4447
|
-
-> { Orb::
|
|
4447
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance }
|
|
4448
4448
|
|
|
4449
|
-
variant :metered_allowance, -> { Orb::
|
|
4449
|
+
variant :metered_allowance, -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance }
|
|
4450
4450
|
|
|
4451
4451
|
variant :minimum_composite, -> { Orb::NewPlanMinimumCompositePrice }
|
|
4452
4452
|
|
|
4453
|
-
variant :percent, -> { Orb::
|
|
4453
|
+
variant :percent, -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::Percent }
|
|
4454
4454
|
|
|
4455
|
-
variant :event_output, -> { Orb::
|
|
4455
|
+
variant :event_output, -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::EventOutput }
|
|
4456
4456
|
|
|
4457
4457
|
variant :unit_with_multiplier,
|
|
4458
|
-
-> { Orb::
|
|
4458
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier }
|
|
4459
4459
|
|
|
4460
4460
|
class BulkWithFilters < Orb::Internal::Type::BaseModel
|
|
4461
4461
|
# @!attribute bulk_with_filters_config
|
|
4462
4462
|
# Configuration for bulk_with_filters pricing
|
|
4463
4463
|
#
|
|
4464
|
-
# @return [Orb::Models::
|
|
4464
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig]
|
|
4465
4465
|
required :bulk_with_filters_config,
|
|
4466
|
-
-> { Orb::
|
|
4466
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig }
|
|
4467
4467
|
|
|
4468
4468
|
# @!attribute cadence
|
|
4469
4469
|
# The cadence to bill for this price on.
|
|
4470
4470
|
#
|
|
4471
|
-
# @return [Symbol, Orb::Models::
|
|
4471
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::Cadence]
|
|
4472
4472
|
required :cadence,
|
|
4473
|
-
enum: -> { Orb::
|
|
4473
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::Cadence }
|
|
4474
4474
|
|
|
4475
4475
|
# @!attribute item_id
|
|
4476
4476
|
# The id of the item the price will be associated with.
|
|
@@ -4593,12 +4593,12 @@ module Orb
|
|
|
4593
4593
|
|
|
4594
4594
|
# @!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)
|
|
4595
4595
|
# Some parameter documentations has been truncated, see
|
|
4596
|
-
# {Orb::Models::
|
|
4596
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters}
|
|
4597
4597
|
# for more details.
|
|
4598
4598
|
#
|
|
4599
|
-
# @param bulk_with_filters_config [Orb::Models::
|
|
4599
|
+
# @param bulk_with_filters_config [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig] Configuration for bulk_with_filters pricing
|
|
4600
4600
|
#
|
|
4601
|
-
# @param cadence [Symbol, Orb::Models::
|
|
4601
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::Cadence] The cadence to bill for this price on.
|
|
4602
4602
|
#
|
|
4603
4603
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
4604
4604
|
#
|
|
@@ -4634,28 +4634,28 @@ module Orb
|
|
|
4634
4634
|
#
|
|
4635
4635
|
# @param model_type [Symbol, :bulk_with_filters] The pricing model type
|
|
4636
4636
|
|
|
4637
|
-
# @see Orb::Models::
|
|
4637
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters#bulk_with_filters_config
|
|
4638
4638
|
class BulkWithFiltersConfig < Orb::Internal::Type::BaseModel
|
|
4639
4639
|
# @!attribute filters
|
|
4640
4640
|
# Property filters to apply (all must match)
|
|
4641
4641
|
#
|
|
4642
|
-
# @return [Array<Orb::Models::
|
|
4642
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter>]
|
|
4643
4643
|
required :filters,
|
|
4644
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
4644
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter] }
|
|
4645
4645
|
|
|
4646
4646
|
# @!attribute tiers
|
|
4647
4647
|
# Bulk tiers for rating based on total usage volume
|
|
4648
4648
|
#
|
|
4649
|
-
# @return [Array<Orb::Models::
|
|
4649
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier>]
|
|
4650
4650
|
required :tiers,
|
|
4651
|
-
-> { Orb::Internal::Type::ArrayOf[Orb::
|
|
4651
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier] }
|
|
4652
4652
|
|
|
4653
4653
|
# @!method initialize(filters:, tiers:)
|
|
4654
4654
|
# Configuration for bulk_with_filters pricing
|
|
4655
4655
|
#
|
|
4656
|
-
# @param filters [Array<Orb::Models::
|
|
4656
|
+
# @param filters [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter>] Property filters to apply (all must match)
|
|
4657
4657
|
#
|
|
4658
|
-
# @param tiers [Array<Orb::Models::
|
|
4658
|
+
# @param tiers [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier>] Bulk tiers for rating based on total usage volume
|
|
4659
4659
|
|
|
4660
4660
|
class Filter < Orb::Internal::Type::BaseModel
|
|
4661
4661
|
# @!attribute property_key
|
|
@@ -4702,7 +4702,7 @@ module Orb
|
|
|
4702
4702
|
|
|
4703
4703
|
# The cadence to bill for this price on.
|
|
4704
4704
|
#
|
|
4705
|
-
# @see Orb::Models::
|
|
4705
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters#cadence
|
|
4706
4706
|
module Cadence
|
|
4707
4707
|
extend Orb::Internal::Type::Enum
|
|
4708
4708
|
|
|
@@ -4722,16 +4722,16 @@ module Orb
|
|
|
4722
4722
|
# @!attribute cadence
|
|
4723
4723
|
# The cadence to bill for this price on.
|
|
4724
4724
|
#
|
|
4725
|
-
# @return [Symbol, Orb::Models::
|
|
4725
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::Cadence]
|
|
4726
4726
|
required :cadence,
|
|
4727
|
-
enum: -> { Orb::
|
|
4727
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::Cadence }
|
|
4728
4728
|
|
|
4729
4729
|
# @!attribute grouped_tiered_matrix_config
|
|
4730
4730
|
# Configuration for grouped_tiered_matrix pricing
|
|
4731
4731
|
#
|
|
4732
|
-
# @return [Orb::Models::
|
|
4732
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig]
|
|
4733
4733
|
required :grouped_tiered_matrix_config,
|
|
4734
|
-
-> { Orb::
|
|
4734
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig }
|
|
4735
4735
|
|
|
4736
4736
|
# @!attribute item_id
|
|
4737
4737
|
# The id of the item the price will be associated with.
|
|
@@ -4854,12 +4854,12 @@ module Orb
|
|
|
4854
4854
|
|
|
4855
4855
|
# @!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)
|
|
4856
4856
|
# Some parameter documentations has been truncated, see
|
|
4857
|
-
# {Orb::Models::
|
|
4857
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix}
|
|
4858
4858
|
# for more details.
|
|
4859
4859
|
#
|
|
4860
|
-
# @param cadence [Symbol, Orb::Models::
|
|
4860
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::Cadence] The cadence to bill for this price on.
|
|
4861
4861
|
#
|
|
4862
|
-
# @param grouped_tiered_matrix_config [Orb::Models::
|
|
4862
|
+
# @param grouped_tiered_matrix_config [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig] Configuration for grouped_tiered_matrix pricing
|
|
4863
4863
|
#
|
|
4864
4864
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
4865
4865
|
#
|
|
@@ -4897,7 +4897,7 @@ module Orb
|
|
|
4897
4897
|
|
|
4898
4898
|
# The cadence to bill for this price on.
|
|
4899
4899
|
#
|
|
4900
|
-
# @see Orb::Models::
|
|
4900
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix#cadence
|
|
4901
4901
|
module Cadence
|
|
4902
4902
|
extend Orb::Internal::Type::Enum
|
|
4903
4903
|
|
|
@@ -4912,7 +4912,7 @@ module Orb
|
|
|
4912
4912
|
# @return [Array<Symbol>]
|
|
4913
4913
|
end
|
|
4914
4914
|
|
|
4915
|
-
# @see Orb::Models::
|
|
4915
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix#grouped_tiered_matrix_config
|
|
4916
4916
|
class GroupedTieredMatrixConfig < Orb::Internal::Type::BaseModel
|
|
4917
4917
|
# @!attribute default_unit_amount
|
|
4918
4918
|
# Per unit rate for usage whose dimension value has no configured tiers
|
|
@@ -4930,17 +4930,17 @@ module Orb
|
|
|
4930
4930
|
# Graduated tiers keyed by dimension value; usage for a value is tiered only
|
|
4931
4931
|
# against its own rows
|
|
4932
4932
|
#
|
|
4933
|
-
# @return [Array<Orb::Models::
|
|
4933
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier>]
|
|
4934
4934
|
required :tiers,
|
|
4935
4935
|
-> do
|
|
4936
4936
|
Orb::Internal::Type::ArrayOf[
|
|
4937
|
-
Orb::
|
|
4937
|
+
Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier
|
|
4938
4938
|
]
|
|
4939
4939
|
end
|
|
4940
4940
|
|
|
4941
4941
|
# @!method initialize(default_unit_amount:, dimension:, tiers:)
|
|
4942
4942
|
# Some parameter documentations has been truncated, see
|
|
4943
|
-
# {Orb::Models::
|
|
4943
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig}
|
|
4944
4944
|
# for more details.
|
|
4945
4945
|
#
|
|
4946
4946
|
# Configuration for grouped_tiered_matrix pricing
|
|
@@ -4949,7 +4949,7 @@ module Orb
|
|
|
4949
4949
|
#
|
|
4950
4950
|
# @param dimension [String] The billable metric property used to group usage before tiering
|
|
4951
4951
|
#
|
|
4952
|
-
# @param tiers [Array<Orb::Models::
|
|
4952
|
+
# @param tiers [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier>] Graduated tiers keyed by dimension value; usage for a value is tiered only again
|
|
4953
4953
|
|
|
4954
4954
|
class Tier < Orb::Internal::Type::BaseModel
|
|
4955
4955
|
# @!attribute dimension_value
|
|
@@ -4985,9 +4985,9 @@ module Orb
|
|
|
4985
4985
|
# @!attribute cadence
|
|
4986
4986
|
# The cadence to bill for this price on.
|
|
4987
4987
|
#
|
|
4988
|
-
# @return [Symbol, Orb::Models::
|
|
4988
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::Cadence]
|
|
4989
4989
|
required :cadence,
|
|
4990
|
-
enum: -> { Orb::
|
|
4990
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::Cadence }
|
|
4991
4991
|
|
|
4992
4992
|
# @!attribute item_id
|
|
4993
4993
|
# The id of the item the price will be associated with.
|
|
@@ -5010,9 +5010,9 @@ module Orb
|
|
|
5010
5010
|
# @!attribute tiered_matrix_with_allocation_config
|
|
5011
5011
|
# Configuration for tiered_matrix_with_allocation pricing
|
|
5012
5012
|
#
|
|
5013
|
-
# @return [Orb::Models::
|
|
5013
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig]
|
|
5014
5014
|
required :tiered_matrix_with_allocation_config,
|
|
5015
|
-
-> { Orb::
|
|
5015
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig }
|
|
5016
5016
|
|
|
5017
5017
|
# @!attribute billable_metric_id
|
|
5018
5018
|
# The id of the billable metric for the price. Only needed if the price is
|
|
@@ -5117,16 +5117,16 @@ module Orb
|
|
|
5117
5117
|
|
|
5118
5118
|
# @!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)
|
|
5119
5119
|
# Some parameter documentations has been truncated, see
|
|
5120
|
-
# {Orb::Models::
|
|
5120
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation}
|
|
5121
5121
|
# for more details.
|
|
5122
5122
|
#
|
|
5123
|
-
# @param cadence [Symbol, Orb::Models::
|
|
5123
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::Cadence] The cadence to bill for this price on.
|
|
5124
5124
|
#
|
|
5125
5125
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
5126
5126
|
#
|
|
5127
5127
|
# @param name [String] The name of the price.
|
|
5128
5128
|
#
|
|
5129
|
-
# @param tiered_matrix_with_allocation_config [Orb::Models::
|
|
5129
|
+
# @param tiered_matrix_with_allocation_config [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig] Configuration for tiered_matrix_with_allocation pricing
|
|
5130
5130
|
#
|
|
5131
5131
|
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
5132
5132
|
#
|
|
@@ -5160,7 +5160,7 @@ module Orb
|
|
|
5160
5160
|
|
|
5161
5161
|
# The cadence to bill for this price on.
|
|
5162
5162
|
#
|
|
5163
|
-
# @see Orb::Models::
|
|
5163
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation#cadence
|
|
5164
5164
|
module Cadence
|
|
5165
5165
|
extend Orb::Internal::Type::Enum
|
|
5166
5166
|
|
|
@@ -5175,7 +5175,7 @@ module Orb
|
|
|
5175
5175
|
# @return [Array<Symbol>]
|
|
5176
5176
|
end
|
|
5177
5177
|
|
|
5178
|
-
# @see Orb::Models::
|
|
5178
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation#tiered_matrix_with_allocation_config
|
|
5179
5179
|
class TieredMatrixWithAllocationConfig < Orb::Internal::Type::BaseModel
|
|
5180
5180
|
# @!attribute allocation
|
|
5181
5181
|
# Usage allocation, pooled across all matrix cells
|
|
@@ -5199,17 +5199,17 @@ module Orb
|
|
|
5199
5199
|
# Graduated tiers keyed by matrix cell; usage in a cell is tiered only against its
|
|
5200
5200
|
# own rows
|
|
5201
5201
|
#
|
|
5202
|
-
# @return [Array<Orb::Models::
|
|
5202
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier>]
|
|
5203
5203
|
required :tiers,
|
|
5204
5204
|
-> do
|
|
5205
5205
|
Orb::Internal::Type::ArrayOf[
|
|
5206
|
-
Orb::
|
|
5206
|
+
Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier
|
|
5207
5207
|
]
|
|
5208
5208
|
end
|
|
5209
5209
|
|
|
5210
5210
|
# @!method initialize(allocation:, default_unit_amount:, dimensions:, tiers:)
|
|
5211
5211
|
# Some parameter documentations has been truncated, see
|
|
5212
|
-
# {Orb::Models::
|
|
5212
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig}
|
|
5213
5213
|
# for more details.
|
|
5214
5214
|
#
|
|
5215
5215
|
# Configuration for tiered_matrix_with_allocation pricing
|
|
@@ -5220,7 +5220,7 @@ module Orb
|
|
|
5220
5220
|
#
|
|
5221
5221
|
# @param dimensions [Array<String>] One or two event property values to evaluate matrix cells by
|
|
5222
5222
|
#
|
|
5223
|
-
# @param tiers [Array<Orb::Models::
|
|
5223
|
+
# @param tiers [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier>] Graduated tiers keyed by matrix cell; usage in a cell is tiered only against its
|
|
5224
5224
|
|
|
5225
5225
|
class Tier < Orb::Internal::Type::BaseModel
|
|
5226
5226
|
# @!attribute dimension_values
|
|
@@ -5244,7 +5244,7 @@ module Orb
|
|
|
5244
5244
|
|
|
5245
5245
|
# @!method initialize(dimension_values:, tier_lower_bound:, unit_amount:)
|
|
5246
5246
|
# Some parameter documentations has been truncated, see
|
|
5247
|
-
# {Orb::Models::
|
|
5247
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier}
|
|
5248
5248
|
# for more details.
|
|
5249
5249
|
#
|
|
5250
5250
|
# Configuration for a single tier scoped to one matrix cell
|
|
@@ -5262,9 +5262,9 @@ module Orb
|
|
|
5262
5262
|
# @!attribute cadence
|
|
5263
5263
|
# The cadence to bill for this price on.
|
|
5264
5264
|
#
|
|
5265
|
-
# @return [Symbol, Orb::Models::
|
|
5265
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::Cadence]
|
|
5266
5266
|
required :cadence,
|
|
5267
|
-
enum: -> { Orb::
|
|
5267
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::Cadence }
|
|
5268
5268
|
|
|
5269
5269
|
# @!attribute item_id
|
|
5270
5270
|
# The id of the item the price will be associated with.
|
|
@@ -5275,9 +5275,9 @@ module Orb
|
|
|
5275
5275
|
# @!attribute matrix_with_threshold_discounts_config
|
|
5276
5276
|
# Configuration for matrix_with_threshold_discounts pricing
|
|
5277
5277
|
#
|
|
5278
|
-
# @return [Orb::Models::
|
|
5278
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig]
|
|
5279
5279
|
required :matrix_with_threshold_discounts_config,
|
|
5280
|
-
-> { Orb::
|
|
5280
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig }
|
|
5281
5281
|
|
|
5282
5282
|
# @!attribute model_type
|
|
5283
5283
|
# The pricing model type
|
|
@@ -5394,14 +5394,14 @@ module Orb
|
|
|
5394
5394
|
|
|
5395
5395
|
# @!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)
|
|
5396
5396
|
# Some parameter documentations has been truncated, see
|
|
5397
|
-
# {Orb::Models::
|
|
5397
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts}
|
|
5398
5398
|
# for more details.
|
|
5399
5399
|
#
|
|
5400
|
-
# @param cadence [Symbol, Orb::Models::
|
|
5400
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::Cadence] The cadence to bill for this price on.
|
|
5401
5401
|
#
|
|
5402
5402
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
5403
5403
|
#
|
|
5404
|
-
# @param matrix_with_threshold_discounts_config [Orb::Models::
|
|
5404
|
+
# @param matrix_with_threshold_discounts_config [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig] Configuration for matrix_with_threshold_discounts pricing
|
|
5405
5405
|
#
|
|
5406
5406
|
# @param name [String] The name of the price.
|
|
5407
5407
|
#
|
|
@@ -5437,7 +5437,7 @@ module Orb
|
|
|
5437
5437
|
|
|
5438
5438
|
# The cadence to bill for this price on.
|
|
5439
5439
|
#
|
|
5440
|
-
# @see Orb::Models::
|
|
5440
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts#cadence
|
|
5441
5441
|
module Cadence
|
|
5442
5442
|
extend Orb::Internal::Type::Enum
|
|
5443
5443
|
|
|
@@ -5452,7 +5452,7 @@ module Orb
|
|
|
5452
5452
|
# @return [Array<Symbol>]
|
|
5453
5453
|
end
|
|
5454
5454
|
|
|
5455
|
-
# @see Orb::Models::
|
|
5455
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts#matrix_with_threshold_discounts_config
|
|
5456
5456
|
class MatrixWithThresholdDiscountsConfig < Orb::Internal::Type::BaseModel
|
|
5457
5457
|
# @!attribute default_unit_amount
|
|
5458
5458
|
# Unit price used for usage that does not match any defined matrix cell.
|
|
@@ -5469,11 +5469,11 @@ module Orb
|
|
|
5469
5469
|
# @!attribute matrix_values
|
|
5470
5470
|
# Per-cell unit prices.
|
|
5471
5471
|
#
|
|
5472
|
-
# @return [Array<Orb::Models::
|
|
5472
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue>]
|
|
5473
5473
|
required :matrix_values,
|
|
5474
5474
|
-> do
|
|
5475
5475
|
Orb::Internal::Type::ArrayOf[
|
|
5476
|
-
Orb::
|
|
5476
|
+
Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue
|
|
5477
5477
|
]
|
|
5478
5478
|
end
|
|
5479
5479
|
|
|
@@ -5485,11 +5485,11 @@ module Orb
|
|
|
5485
5485
|
|
|
5486
5486
|
# @!attribute threshold_discount_groups
|
|
5487
5487
|
#
|
|
5488
|
-
# @return [Array<Orb::Models::
|
|
5488
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup>, nil]
|
|
5489
5489
|
optional :threshold_discount_groups,
|
|
5490
5490
|
-> do
|
|
5491
5491
|
Orb::Internal::Type::ArrayOf[
|
|
5492
|
-
Orb::
|
|
5492
|
+
Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup
|
|
5493
5493
|
]
|
|
5494
5494
|
end
|
|
5495
5495
|
|
|
@@ -5500,11 +5500,11 @@ module Orb
|
|
|
5500
5500
|
#
|
|
5501
5501
|
# @param first_dimension [String] First matrix dimension key.
|
|
5502
5502
|
#
|
|
5503
|
-
# @param matrix_values [Array<Orb::Models::
|
|
5503
|
+
# @param matrix_values [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue>] Per-cell unit prices.
|
|
5504
5504
|
#
|
|
5505
5505
|
# @param second_dimension [String, nil] Optional second matrix dimension key.
|
|
5506
5506
|
#
|
|
5507
|
-
# @param threshold_discount_groups [Array<Orb::Models::
|
|
5507
|
+
# @param threshold_discount_groups [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup>]
|
|
5508
5508
|
|
|
5509
5509
|
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
5510
5510
|
# @!attribute first_dimension_value
|
|
@@ -5562,7 +5562,7 @@ module Orb
|
|
|
5562
5562
|
|
|
5563
5563
|
# @!method initialize(above_threshold_discount_percentage:, below_threshold_discount_percentage:, cell_coordinates:, threshold_amount:, description: nil)
|
|
5564
5564
|
# Some parameter documentations has been truncated, see
|
|
5565
|
-
# {Orb::Models::
|
|
5565
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup}
|
|
5566
5566
|
# for more details.
|
|
5567
5567
|
#
|
|
5568
5568
|
# @param above_threshold_discount_percentage [String] Discount rate applied to spend above the threshold.
|
|
@@ -5582,9 +5582,9 @@ module Orb
|
|
|
5582
5582
|
# @!attribute cadence
|
|
5583
5583
|
# The cadence to bill for this price on.
|
|
5584
5584
|
#
|
|
5585
|
-
# @return [Symbol, Orb::Models::
|
|
5585
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence]
|
|
5586
5586
|
required :cadence,
|
|
5587
|
-
enum: -> { Orb::
|
|
5587
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence }
|
|
5588
5588
|
|
|
5589
5589
|
# @!attribute item_id
|
|
5590
5590
|
# The id of the item the price will be associated with.
|
|
@@ -5607,9 +5607,9 @@ module Orb
|
|
|
5607
5607
|
# @!attribute tiered_with_proration_config
|
|
5608
5608
|
# Configuration for tiered_with_proration pricing
|
|
5609
5609
|
#
|
|
5610
|
-
# @return [Orb::Models::
|
|
5610
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig]
|
|
5611
5611
|
required :tiered_with_proration_config,
|
|
5612
|
-
-> { Orb::
|
|
5612
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig }
|
|
5613
5613
|
|
|
5614
5614
|
# @!attribute billable_metric_id
|
|
5615
5615
|
# The id of the billable metric for the price. Only needed if the price is
|
|
@@ -5714,16 +5714,16 @@ module Orb
|
|
|
5714
5714
|
|
|
5715
5715
|
# @!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)
|
|
5716
5716
|
# Some parameter documentations has been truncated, see
|
|
5717
|
-
# {Orb::Models::
|
|
5717
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration}
|
|
5718
5718
|
# for more details.
|
|
5719
5719
|
#
|
|
5720
|
-
# @param cadence [Symbol, Orb::Models::
|
|
5720
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on.
|
|
5721
5721
|
#
|
|
5722
5722
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
5723
5723
|
#
|
|
5724
5724
|
# @param name [String] The name of the price.
|
|
5725
5725
|
#
|
|
5726
|
-
# @param tiered_with_proration_config [Orb::Models::
|
|
5726
|
+
# @param tiered_with_proration_config [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig] Configuration for tiered_with_proration pricing
|
|
5727
5727
|
#
|
|
5728
5728
|
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
5729
5729
|
#
|
|
@@ -5757,7 +5757,7 @@ module Orb
|
|
|
5757
5757
|
|
|
5758
5758
|
# The cadence to bill for this price on.
|
|
5759
5759
|
#
|
|
5760
|
-
# @see Orb::Models::
|
|
5760
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration#cadence
|
|
5761
5761
|
module Cadence
|
|
5762
5762
|
extend Orb::Internal::Type::Enum
|
|
5763
5763
|
|
|
@@ -5772,28 +5772,28 @@ module Orb
|
|
|
5772
5772
|
# @return [Array<Symbol>]
|
|
5773
5773
|
end
|
|
5774
5774
|
|
|
5775
|
-
# @see Orb::Models::
|
|
5775
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration#tiered_with_proration_config
|
|
5776
5776
|
class TieredWithProrationConfig < Orb::Internal::Type::BaseModel
|
|
5777
5777
|
# @!attribute tiers
|
|
5778
5778
|
# Tiers for rating based on total usage quantities into the specified tier with
|
|
5779
5779
|
# proration
|
|
5780
5780
|
#
|
|
5781
|
-
# @return [Array<Orb::Models::
|
|
5781
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier>]
|
|
5782
5782
|
required :tiers,
|
|
5783
5783
|
-> do
|
|
5784
5784
|
Orb::Internal::Type::ArrayOf[
|
|
5785
|
-
Orb::
|
|
5785
|
+
Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier
|
|
5786
5786
|
]
|
|
5787
5787
|
end
|
|
5788
5788
|
|
|
5789
5789
|
# @!method initialize(tiers:)
|
|
5790
5790
|
# Some parameter documentations has been truncated, see
|
|
5791
|
-
# {Orb::Models::
|
|
5791
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig}
|
|
5792
5792
|
# for more details.
|
|
5793
5793
|
#
|
|
5794
5794
|
# Configuration for tiered_with_proration pricing
|
|
5795
5795
|
#
|
|
5796
|
-
# @param tiers [Array<Orb::Models::
|
|
5796
|
+
# @param tiers [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier>] Tiers for rating based on total usage quantities into the specified tier with pr
|
|
5797
5797
|
|
|
5798
5798
|
class Tier < Orb::Internal::Type::BaseModel
|
|
5799
5799
|
# @!attribute tier_lower_bound
|
|
@@ -5822,16 +5822,16 @@ module Orb
|
|
|
5822
5822
|
# @!attribute cadence
|
|
5823
5823
|
# The cadence to bill for this price on.
|
|
5824
5824
|
#
|
|
5825
|
-
# @return [Symbol, Orb::Models::
|
|
5825
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence]
|
|
5826
5826
|
required :cadence,
|
|
5827
|
-
enum: -> { Orb::
|
|
5827
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence }
|
|
5828
5828
|
|
|
5829
5829
|
# @!attribute grouped_with_min_max_thresholds_config
|
|
5830
5830
|
# Configuration for grouped_with_min_max_thresholds pricing
|
|
5831
5831
|
#
|
|
5832
|
-
# @return [Orb::Models::
|
|
5832
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig]
|
|
5833
5833
|
required :grouped_with_min_max_thresholds_config,
|
|
5834
|
-
-> { Orb::
|
|
5834
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig }
|
|
5835
5835
|
|
|
5836
5836
|
# @!attribute item_id
|
|
5837
5837
|
# The id of the item the price will be associated with.
|
|
@@ -5954,12 +5954,12 @@ module Orb
|
|
|
5954
5954
|
|
|
5955
5955
|
# @!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)
|
|
5956
5956
|
# Some parameter documentations has been truncated, see
|
|
5957
|
-
# {Orb::Models::
|
|
5957
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds}
|
|
5958
5958
|
# for more details.
|
|
5959
5959
|
#
|
|
5960
|
-
# @param cadence [Symbol, Orb::Models::
|
|
5960
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on.
|
|
5961
5961
|
#
|
|
5962
|
-
# @param grouped_with_min_max_thresholds_config [Orb::Models::
|
|
5962
|
+
# @param grouped_with_min_max_thresholds_config [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing
|
|
5963
5963
|
#
|
|
5964
5964
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
5965
5965
|
#
|
|
@@ -5997,7 +5997,7 @@ module Orb
|
|
|
5997
5997
|
|
|
5998
5998
|
# The cadence to bill for this price on.
|
|
5999
5999
|
#
|
|
6000
|
-
# @see Orb::Models::
|
|
6000
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds#cadence
|
|
6001
6001
|
module Cadence
|
|
6002
6002
|
extend Orb::Internal::Type::Enum
|
|
6003
6003
|
|
|
@@ -6012,7 +6012,7 @@ module Orb
|
|
|
6012
6012
|
# @return [Array<Symbol>]
|
|
6013
6013
|
end
|
|
6014
6014
|
|
|
6015
|
-
# @see Orb::Models::
|
|
6015
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config
|
|
6016
6016
|
class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel
|
|
6017
6017
|
# @!attribute grouping_key
|
|
6018
6018
|
# The event property used to group before applying thresholds
|
|
@@ -6055,16 +6055,16 @@ module Orb
|
|
|
6055
6055
|
# @!attribute cadence
|
|
6056
6056
|
# The cadence to bill for this price on.
|
|
6057
6057
|
#
|
|
6058
|
-
# @return [Symbol, Orb::Models::
|
|
6058
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::Cadence]
|
|
6059
6059
|
required :cadence,
|
|
6060
|
-
enum: -> { Orb::
|
|
6060
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::Cadence }
|
|
6061
6061
|
|
|
6062
6062
|
# @!attribute cumulative_grouped_allocation_config
|
|
6063
6063
|
# Configuration for cumulative_grouped_allocation pricing
|
|
6064
6064
|
#
|
|
6065
|
-
# @return [Orb::Models::
|
|
6065
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig]
|
|
6066
6066
|
required :cumulative_grouped_allocation_config,
|
|
6067
|
-
-> { Orb::
|
|
6067
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig }
|
|
6068
6068
|
|
|
6069
6069
|
# @!attribute item_id
|
|
6070
6070
|
# The id of the item the price will be associated with.
|
|
@@ -6187,12 +6187,12 @@ module Orb
|
|
|
6187
6187
|
|
|
6188
6188
|
# @!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)
|
|
6189
6189
|
# Some parameter documentations has been truncated, see
|
|
6190
|
-
# {Orb::Models::
|
|
6190
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation}
|
|
6191
6191
|
# for more details.
|
|
6192
6192
|
#
|
|
6193
|
-
# @param cadence [Symbol, Orb::Models::
|
|
6193
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::Cadence] The cadence to bill for this price on.
|
|
6194
6194
|
#
|
|
6195
|
-
# @param cumulative_grouped_allocation_config [Orb::Models::
|
|
6195
|
+
# @param cumulative_grouped_allocation_config [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig] Configuration for cumulative_grouped_allocation pricing
|
|
6196
6196
|
#
|
|
6197
6197
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
6198
6198
|
#
|
|
@@ -6230,7 +6230,7 @@ module Orb
|
|
|
6230
6230
|
|
|
6231
6231
|
# The cadence to bill for this price on.
|
|
6232
6232
|
#
|
|
6233
|
-
# @see Orb::Models::
|
|
6233
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation#cadence
|
|
6234
6234
|
module Cadence
|
|
6235
6235
|
extend Orb::Internal::Type::Enum
|
|
6236
6236
|
|
|
@@ -6245,7 +6245,7 @@ module Orb
|
|
|
6245
6245
|
# @return [Array<Symbol>]
|
|
6246
6246
|
end
|
|
6247
6247
|
|
|
6248
|
-
# @see Orb::Models::
|
|
6248
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation#cumulative_grouped_allocation_config
|
|
6249
6249
|
class CumulativeGroupedAllocationConfig < Orb::Internal::Type::BaseModel
|
|
6250
6250
|
# @!attribute cumulative_allocation
|
|
6251
6251
|
# The overall allocation across all groups
|
|
@@ -6288,16 +6288,16 @@ module Orb
|
|
|
6288
6288
|
# @!attribute cadence
|
|
6289
6289
|
# The cadence to bill for this price on.
|
|
6290
6290
|
#
|
|
6291
|
-
# @return [Symbol, Orb::Models::
|
|
6291
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::Cadence]
|
|
6292
6292
|
required :cadence,
|
|
6293
|
-
enum: -> { Orb::
|
|
6293
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::Cadence }
|
|
6294
6294
|
|
|
6295
6295
|
# @!attribute daily_credit_allowance_config
|
|
6296
6296
|
# Configuration for daily_credit_allowance pricing
|
|
6297
6297
|
#
|
|
6298
|
-
# @return [Orb::Models::
|
|
6298
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig]
|
|
6299
6299
|
required :daily_credit_allowance_config,
|
|
6300
|
-
-> { Orb::
|
|
6300
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig }
|
|
6301
6301
|
|
|
6302
6302
|
# @!attribute item_id
|
|
6303
6303
|
# The id of the item the price will be associated with.
|
|
@@ -6420,12 +6420,12 @@ module Orb
|
|
|
6420
6420
|
|
|
6421
6421
|
# @!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)
|
|
6422
6422
|
# Some parameter documentations has been truncated, see
|
|
6423
|
-
# {Orb::Models::
|
|
6423
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance}
|
|
6424
6424
|
# for more details.
|
|
6425
6425
|
#
|
|
6426
|
-
# @param cadence [Symbol, Orb::Models::
|
|
6426
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::Cadence] The cadence to bill for this price on.
|
|
6427
6427
|
#
|
|
6428
|
-
# @param daily_credit_allowance_config [Orb::Models::
|
|
6428
|
+
# @param daily_credit_allowance_config [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig] Configuration for daily_credit_allowance pricing
|
|
6429
6429
|
#
|
|
6430
6430
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
6431
6431
|
#
|
|
@@ -6463,7 +6463,7 @@ module Orb
|
|
|
6463
6463
|
|
|
6464
6464
|
# The cadence to bill for this price on.
|
|
6465
6465
|
#
|
|
6466
|
-
# @see Orb::Models::
|
|
6466
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance#cadence
|
|
6467
6467
|
module Cadence
|
|
6468
6468
|
extend Orb::Internal::Type::Enum
|
|
6469
6469
|
|
|
@@ -6478,7 +6478,7 @@ module Orb
|
|
|
6478
6478
|
# @return [Array<Symbol>]
|
|
6479
6479
|
end
|
|
6480
6480
|
|
|
6481
|
-
# @see Orb::Models::
|
|
6481
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance#daily_credit_allowance_config
|
|
6482
6482
|
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
6483
6483
|
# @!attribute daily_allowance
|
|
6484
6484
|
# Credits granted per day. Lose-it-or-use-it; does not roll over.
|
|
@@ -6510,17 +6510,17 @@ module Orb
|
|
|
6510
6510
|
# @!attribute matrix_values
|
|
6511
6511
|
# Per-dimension credit rates
|
|
6512
6512
|
#
|
|
6513
|
-
# @return [Array<Orb::Models::
|
|
6513
|
+
# @return [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue>]
|
|
6514
6514
|
required :matrix_values,
|
|
6515
6515
|
-> do
|
|
6516
6516
|
Orb::Internal::Type::ArrayOf[
|
|
6517
|
-
Orb::
|
|
6517
|
+
Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue
|
|
6518
6518
|
]
|
|
6519
6519
|
end
|
|
6520
6520
|
|
|
6521
6521
|
# @!method initialize(daily_allowance:, default_unit_amount:, dimensions:, event_day_property:, matrix_values:)
|
|
6522
6522
|
# Some parameter documentations has been truncated, see
|
|
6523
|
-
# {Orb::Models::
|
|
6523
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig}
|
|
6524
6524
|
# for more details.
|
|
6525
6525
|
#
|
|
6526
6526
|
# Configuration for daily_credit_allowance pricing
|
|
@@ -6534,7 +6534,7 @@ module Orb
|
|
|
6534
6534
|
#
|
|
6535
6535
|
# @param event_day_property [String] Event property whose value identifies the day bucket the event belongs to (e.g.
|
|
6536
6536
|
#
|
|
6537
|
-
# @param matrix_values [Array<Orb::Models::
|
|
6537
|
+
# @param matrix_values [Array<Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue>] Per-dimension credit rates
|
|
6538
6538
|
|
|
6539
6539
|
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
6540
6540
|
# @!attribute dimension_values
|
|
@@ -6552,7 +6552,7 @@ module Orb
|
|
|
6552
6552
|
|
|
6553
6553
|
# @!method initialize(dimension_values:, unit_amount:)
|
|
6554
6554
|
# Some parameter documentations has been truncated, see
|
|
6555
|
-
# {Orb::Models::
|
|
6555
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue}
|
|
6556
6556
|
# for more details.
|
|
6557
6557
|
#
|
|
6558
6558
|
# Per-dimension credit price for the daily credit allowance model.
|
|
@@ -6568,9 +6568,9 @@ module Orb
|
|
|
6568
6568
|
# @!attribute cadence
|
|
6569
6569
|
# The cadence to bill for this price on.
|
|
6570
6570
|
#
|
|
6571
|
-
# @return [Symbol, Orb::Models::
|
|
6571
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::Cadence]
|
|
6572
6572
|
required :cadence,
|
|
6573
|
-
enum: -> { Orb::
|
|
6573
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::Cadence }
|
|
6574
6574
|
|
|
6575
6575
|
# @!attribute item_id
|
|
6576
6576
|
# The id of the item the price will be associated with.
|
|
@@ -6581,9 +6581,9 @@ module Orb
|
|
|
6581
6581
|
# @!attribute metered_allowance_config
|
|
6582
6582
|
# Configuration for metered_allowance pricing
|
|
6583
6583
|
#
|
|
6584
|
-
# @return [Orb::Models::
|
|
6584
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig]
|
|
6585
6585
|
required :metered_allowance_config,
|
|
6586
|
-
-> { Orb::
|
|
6586
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig }
|
|
6587
6587
|
|
|
6588
6588
|
# @!attribute model_type
|
|
6589
6589
|
# The pricing model type
|
|
@@ -6700,14 +6700,14 @@ module Orb
|
|
|
6700
6700
|
|
|
6701
6701
|
# @!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)
|
|
6702
6702
|
# Some parameter documentations has been truncated, see
|
|
6703
|
-
# {Orb::Models::
|
|
6703
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance}
|
|
6704
6704
|
# for more details.
|
|
6705
6705
|
#
|
|
6706
|
-
# @param cadence [Symbol, Orb::Models::
|
|
6706
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::Cadence] The cadence to bill for this price on.
|
|
6707
6707
|
#
|
|
6708
6708
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
6709
6709
|
#
|
|
6710
|
-
# @param metered_allowance_config [Orb::Models::
|
|
6710
|
+
# @param metered_allowance_config [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig] Configuration for metered_allowance pricing
|
|
6711
6711
|
#
|
|
6712
6712
|
# @param name [String] The name of the price.
|
|
6713
6713
|
#
|
|
@@ -6743,7 +6743,7 @@ module Orb
|
|
|
6743
6743
|
|
|
6744
6744
|
# The cadence to bill for this price on.
|
|
6745
6745
|
#
|
|
6746
|
-
# @see Orb::Models::
|
|
6746
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance#cadence
|
|
6747
6747
|
module Cadence
|
|
6748
6748
|
extend Orb::Internal::Type::Enum
|
|
6749
6749
|
|
|
@@ -6758,7 +6758,7 @@ module Orb
|
|
|
6758
6758
|
# @return [Array<Symbol>]
|
|
6759
6759
|
end
|
|
6760
6760
|
|
|
6761
|
-
# @see Orb::Models::
|
|
6761
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance#metered_allowance_config
|
|
6762
6762
|
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
6763
6763
|
# @!attribute allowance_grouping_value
|
|
6764
6764
|
# The grouping_key value whose summed quantity represents the allowance for this
|
|
@@ -6803,7 +6803,7 @@ module Orb
|
|
|
6803
6803
|
|
|
6804
6804
|
# @!method initialize(allowance_grouping_value:, consumption_grouping_value:, grouping_key:, unit_amount:, allowance_display_name: nil, consumption_display_name: nil)
|
|
6805
6805
|
# Some parameter documentations has been truncated, see
|
|
6806
|
-
# {Orb::Models::
|
|
6806
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig}
|
|
6807
6807
|
# for more details.
|
|
6808
6808
|
#
|
|
6809
6809
|
# Configuration for metered_allowance pricing
|
|
@@ -6826,8 +6826,8 @@ module Orb
|
|
|
6826
6826
|
# @!attribute cadence
|
|
6827
6827
|
# The cadence to bill for this price on.
|
|
6828
6828
|
#
|
|
6829
|
-
# @return [Symbol, Orb::Models::
|
|
6830
|
-
required :cadence, enum: -> { Orb::
|
|
6829
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::Percent::Cadence]
|
|
6830
|
+
required :cadence, enum: -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::Percent::Cadence }
|
|
6831
6831
|
|
|
6832
6832
|
# @!attribute item_id
|
|
6833
6833
|
# The id of the item the price will be associated with.
|
|
@@ -6850,9 +6850,9 @@ module Orb
|
|
|
6850
6850
|
# @!attribute percent_config
|
|
6851
6851
|
# Configuration for percent pricing
|
|
6852
6852
|
#
|
|
6853
|
-
# @return [Orb::Models::
|
|
6853
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::Percent::PercentConfig]
|
|
6854
6854
|
required :percent_config,
|
|
6855
|
-
-> { Orb::
|
|
6855
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::Percent::PercentConfig }
|
|
6856
6856
|
|
|
6857
6857
|
# @!attribute billable_metric_id
|
|
6858
6858
|
# The id of the billable metric for the price. Only needed if the price is
|
|
@@ -6957,16 +6957,16 @@ module Orb
|
|
|
6957
6957
|
|
|
6958
6958
|
# @!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)
|
|
6959
6959
|
# Some parameter documentations has been truncated, see
|
|
6960
|
-
# {Orb::Models::
|
|
6960
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::Percent} for
|
|
6961
6961
|
# more details.
|
|
6962
6962
|
#
|
|
6963
|
-
# @param cadence [Symbol, Orb::Models::
|
|
6963
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::Percent::Cadence] The cadence to bill for this price on.
|
|
6964
6964
|
#
|
|
6965
6965
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
6966
6966
|
#
|
|
6967
6967
|
# @param name [String] The name of the price.
|
|
6968
6968
|
#
|
|
6969
|
-
# @param percent_config [Orb::Models::
|
|
6969
|
+
# @param percent_config [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::Percent::PercentConfig] Configuration for percent pricing
|
|
6970
6970
|
#
|
|
6971
6971
|
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
6972
6972
|
#
|
|
@@ -7000,7 +7000,7 @@ module Orb
|
|
|
7000
7000
|
|
|
7001
7001
|
# The cadence to bill for this price on.
|
|
7002
7002
|
#
|
|
7003
|
-
# @see Orb::Models::
|
|
7003
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::Percent#cadence
|
|
7004
7004
|
module Cadence
|
|
7005
7005
|
extend Orb::Internal::Type::Enum
|
|
7006
7006
|
|
|
@@ -7015,7 +7015,7 @@ module Orb
|
|
|
7015
7015
|
# @return [Array<Symbol>]
|
|
7016
7016
|
end
|
|
7017
7017
|
|
|
7018
|
-
# @see Orb::Models::
|
|
7018
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::Percent#percent_config
|
|
7019
7019
|
class PercentConfig < Orb::Internal::Type::BaseModel
|
|
7020
7020
|
# @!attribute percent
|
|
7021
7021
|
# Fraction of the component subtotals to charge (0 < percent <= 1).
|
|
@@ -7045,7 +7045,7 @@ module Orb
|
|
|
7045
7045
|
|
|
7046
7046
|
# @!method initialize(percent:, maximum_amount: nil, minimum_amount: nil, prorated: nil)
|
|
7047
7047
|
# Some parameter documentations has been truncated, see
|
|
7048
|
-
# {Orb::Models::
|
|
7048
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::Percent::PercentConfig}
|
|
7049
7049
|
# for more details.
|
|
7050
7050
|
#
|
|
7051
7051
|
# Configuration for percent pricing
|
|
@@ -7064,16 +7064,16 @@ module Orb
|
|
|
7064
7064
|
# @!attribute cadence
|
|
7065
7065
|
# The cadence to bill for this price on.
|
|
7066
7066
|
#
|
|
7067
|
-
# @return [Symbol, Orb::Models::
|
|
7067
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::EventOutput::Cadence]
|
|
7068
7068
|
required :cadence,
|
|
7069
|
-
enum: -> { Orb::
|
|
7069
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::EventOutput::Cadence }
|
|
7070
7070
|
|
|
7071
7071
|
# @!attribute event_output_config
|
|
7072
7072
|
# Configuration for event_output pricing
|
|
7073
7073
|
#
|
|
7074
|
-
# @return [Orb::Models::
|
|
7074
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::EventOutput::EventOutputConfig]
|
|
7075
7075
|
required :event_output_config,
|
|
7076
|
-
-> { Orb::
|
|
7076
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::EventOutput::EventOutputConfig }
|
|
7077
7077
|
|
|
7078
7078
|
# @!attribute item_id
|
|
7079
7079
|
# The id of the item the price will be associated with.
|
|
@@ -7196,12 +7196,12 @@ module Orb
|
|
|
7196
7196
|
|
|
7197
7197
|
# @!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)
|
|
7198
7198
|
# Some parameter documentations has been truncated, see
|
|
7199
|
-
# {Orb::Models::
|
|
7199
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::EventOutput} for
|
|
7200
7200
|
# more details.
|
|
7201
7201
|
#
|
|
7202
|
-
# @param cadence [Symbol, Orb::Models::
|
|
7202
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::EventOutput::Cadence] The cadence to bill for this price on.
|
|
7203
7203
|
#
|
|
7204
|
-
# @param event_output_config [Orb::Models::
|
|
7204
|
+
# @param event_output_config [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::EventOutput::EventOutputConfig] Configuration for event_output pricing
|
|
7205
7205
|
#
|
|
7206
7206
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
7207
7207
|
#
|
|
@@ -7239,7 +7239,7 @@ module Orb
|
|
|
7239
7239
|
|
|
7240
7240
|
# The cadence to bill for this price on.
|
|
7241
7241
|
#
|
|
7242
|
-
# @see Orb::Models::
|
|
7242
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::EventOutput#cadence
|
|
7243
7243
|
module Cadence
|
|
7244
7244
|
extend Orb::Internal::Type::Enum
|
|
7245
7245
|
|
|
@@ -7254,7 +7254,7 @@ module Orb
|
|
|
7254
7254
|
# @return [Array<Symbol>]
|
|
7255
7255
|
end
|
|
7256
7256
|
|
|
7257
|
-
# @see Orb::Models::
|
|
7257
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::EventOutput#event_output_config
|
|
7258
7258
|
class EventOutputConfig < Orb::Internal::Type::BaseModel
|
|
7259
7259
|
# @!attribute unit_rating_key
|
|
7260
7260
|
# The key in the event data to extract the unit rate from.
|
|
@@ -7279,7 +7279,7 @@ module Orb
|
|
|
7279
7279
|
|
|
7280
7280
|
# @!method initialize(unit_rating_key:, default_unit_rate: nil, grouping_key: nil)
|
|
7281
7281
|
# Some parameter documentations has been truncated, see
|
|
7282
|
-
# {Orb::Models::
|
|
7282
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::EventOutput::EventOutputConfig}
|
|
7283
7283
|
# for more details.
|
|
7284
7284
|
#
|
|
7285
7285
|
# Configuration for event_output pricing
|
|
@@ -7296,9 +7296,9 @@ module Orb
|
|
|
7296
7296
|
# @!attribute cadence
|
|
7297
7297
|
# The cadence to bill for this price on.
|
|
7298
7298
|
#
|
|
7299
|
-
# @return [Symbol, Orb::Models::
|
|
7299
|
+
# @return [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::Cadence]
|
|
7300
7300
|
required :cadence,
|
|
7301
|
-
enum: -> { Orb::
|
|
7301
|
+
enum: -> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::Cadence }
|
|
7302
7302
|
|
|
7303
7303
|
# @!attribute item_id
|
|
7304
7304
|
# The id of the item the price will be associated with.
|
|
@@ -7321,9 +7321,9 @@ module Orb
|
|
|
7321
7321
|
# @!attribute unit_with_multiplier_config
|
|
7322
7322
|
# Configuration for unit_with_multiplier pricing
|
|
7323
7323
|
#
|
|
7324
|
-
# @return [Orb::Models::
|
|
7324
|
+
# @return [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig]
|
|
7325
7325
|
required :unit_with_multiplier_config,
|
|
7326
|
-
-> { Orb::
|
|
7326
|
+
-> { Orb::PlanCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig }
|
|
7327
7327
|
|
|
7328
7328
|
# @!attribute billable_metric_id
|
|
7329
7329
|
# The id of the billable metric for the price. Only needed if the price is
|
|
@@ -7428,16 +7428,16 @@ module Orb
|
|
|
7428
7428
|
|
|
7429
7429
|
# @!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)
|
|
7430
7430
|
# Some parameter documentations has been truncated, see
|
|
7431
|
-
# {Orb::Models::
|
|
7431
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier}
|
|
7432
7432
|
# for more details.
|
|
7433
7433
|
#
|
|
7434
|
-
# @param cadence [Symbol, Orb::Models::
|
|
7434
|
+
# @param cadence [Symbol, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::Cadence] The cadence to bill for this price on.
|
|
7435
7435
|
#
|
|
7436
7436
|
# @param item_id [String] The id of the item the price will be associated with.
|
|
7437
7437
|
#
|
|
7438
7438
|
# @param name [String] The name of the price.
|
|
7439
7439
|
#
|
|
7440
|
-
# @param unit_with_multiplier_config [Orb::Models::
|
|
7440
|
+
# @param unit_with_multiplier_config [Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig] Configuration for unit_with_multiplier pricing
|
|
7441
7441
|
#
|
|
7442
7442
|
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
7443
7443
|
#
|
|
@@ -7471,7 +7471,7 @@ module Orb
|
|
|
7471
7471
|
|
|
7472
7472
|
# The cadence to bill for this price on.
|
|
7473
7473
|
#
|
|
7474
|
-
# @see Orb::Models::
|
|
7474
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier#cadence
|
|
7475
7475
|
module Cadence
|
|
7476
7476
|
extend Orb::Internal::Type::Enum
|
|
7477
7477
|
|
|
@@ -7486,7 +7486,7 @@ module Orb
|
|
|
7486
7486
|
# @return [Array<Symbol>]
|
|
7487
7487
|
end
|
|
7488
7488
|
|
|
7489
|
-
# @see Orb::Models::
|
|
7489
|
+
# @see Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier#unit_with_multiplier_config
|
|
7490
7490
|
class UnitWithMultiplierConfig < Orb::Internal::Type::BaseModel
|
|
7491
7491
|
# @!attribute default_display_name
|
|
7492
7492
|
# Sub-line label for list-price events that don't set display_name_key. Unlabeled
|
|
@@ -7519,7 +7519,7 @@ module Orb
|
|
|
7519
7519
|
|
|
7520
7520
|
# @!method initialize(default_display_name:, display_name_key:, multiplier_key:, unit_amount:)
|
|
7521
7521
|
# Some parameter documentations has been truncated, see
|
|
7522
|
-
# {Orb::Models::
|
|
7522
|
+
# {Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig}
|
|
7523
7523
|
# for more details.
|
|
7524
7524
|
#
|
|
7525
7525
|
# Configuration for unit_with_multiplier pricing
|
|
@@ -7535,7 +7535,7 @@ module Orb
|
|
|
7535
7535
|
end
|
|
7536
7536
|
|
|
7537
7537
|
# @!method self.variants
|
|
7538
|
-
# @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::
|
|
7538
|
+
# @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::Percent, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::EventOutput, Orb::Models::PlanCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier)]
|
|
7539
7539
|
end
|
|
7540
7540
|
end
|
|
7541
7541
|
end
|