orb-billing 1.24.0 → 1.26.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 +14 -0
- data/README.md +1 -1
- data/lib/orb/models/alert.rb +4 -2
- data/lib/orb/models/alert_update_params.rb +5 -3
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +530 -6
- data/lib/orb/models/beta_create_plan_version_params.rb +526 -6
- data/lib/orb/models/changed_subscription_resources.rb +5 -5
- data/lib/orb/models/invoice.rb +5 -5
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +5 -5
- data/lib/orb/models/invoice_issue_summary_response.rb +3 -3
- data/lib/orb/models/invoice_line_item_create_response.rb +2 -2
- data/lib/orb/models/invoice_list_summary_response.rb +3 -3
- data/lib/orb/models/per_price_cost.rb +2 -2
- data/lib/orb/models/plan.rb +2 -2
- data/lib/orb/models/plan_create_params.rb +259 -3
- data/lib/orb/models/plan_version.rb +2 -2
- data/lib/orb/models/price.rb +433 -1
- data/lib/orb/models/price_create_params.rb +244 -3
- data/lib/orb/models/price_evaluate_multiple_params.rb +255 -3
- data/lib/orb/models/price_evaluate_preview_events_params.rb +255 -3
- data/lib/orb/models/price_interval.rb +2 -2
- data/lib/orb/models/subscription_create_params.rb +521 -6
- data/lib/orb/models/subscription_price_intervals_params.rb +251 -3
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +530 -6
- data/lib/orb/resources/alerts.rb +5 -2
- data/lib/orb/resources/customers/costs.rb +20 -0
- data/lib/orb/resources/licenses/external_licenses.rb +7 -0
- data/lib/orb/resources/licenses/usage.rb +3 -0
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +5 -5
- data/lib/orb/resources/subscriptions.rb +39 -6
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/models/alert.rbi +6 -2
- data/rbi/orb/models/alert_update_params.rbi +8 -4
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +2789 -1903
- data/rbi/orb/models/beta_create_plan_version_params.rbi +2788 -1902
- data/rbi/orb/models/changed_subscription_resources.rbi +7 -6
- data/rbi/orb/models/invoice.rbi +7 -6
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +7 -6
- data/rbi/orb/models/invoice_issue_summary_response.rbi +6 -6
- data/rbi/orb/models/invoice_line_item_create_response.rbi +1 -0
- data/rbi/orb/models/invoice_list_summary_response.rbi +6 -6
- data/rbi/orb/models/per_price_cost.rbi +1 -0
- data/rbi/orb/models/plan.rbi +1 -0
- data/rbi/orb/models/plan_create_params.rbi +443 -0
- data/rbi/orb/models/plan_version.rbi +1 -0
- data/rbi/orb/models/price.rbi +766 -0
- data/rbi/orb/models/price_create_params.rbi +431 -0
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +431 -0
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +431 -0
- data/rbi/orb/models/price_interval.rbi +1 -0
- data/rbi/orb/models/subscription_create_params.rbi +2489 -1603
- data/rbi/orb/models/subscription_price_intervals_params.rbi +431 -0
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +2483 -1597
- data/rbi/orb/resources/alerts.rbi +8 -3
- data/rbi/orb/resources/customers/costs.rbi +20 -0
- data/rbi/orb/resources/licenses/external_licenses.rbi +7 -0
- data/rbi/orb/resources/licenses/usage.rbi +3 -0
- data/rbi/orb/resources/prices.rbi +1 -0
- data/rbi/orb/resources/subscriptions.rbi +39 -6
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +366 -0
- data/sig/orb/models/beta_create_plan_version_params.rbs +366 -0
- data/sig/orb/models/plan_create_params.rbs +183 -0
- data/sig/orb/models/price.rbs +327 -0
- data/sig/orb/models/price_create_params.rbs +173 -0
- data/sig/orb/models/price_evaluate_multiple_params.rbs +178 -0
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +178 -0
- data/sig/orb/models/subscription_create_params.rbs +366 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +178 -0
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +366 -0
- metadata +2 -2
data/lib/orb/models/price.rb
CHANGED
|
@@ -37,6 +37,8 @@ module Orb
|
|
|
37
37
|
|
|
38
38
|
variant :grouped_tiered, -> { Orb::Price::GroupedTiered }
|
|
39
39
|
|
|
40
|
+
variant :grouped_tiered_matrix, -> { Orb::Price::GroupedTieredMatrix }
|
|
41
|
+
|
|
40
42
|
variant :tiered_package_with_minimum, -> { Orb::Price::TieredPackageWithMinimum }
|
|
41
43
|
|
|
42
44
|
variant :package_with_allocation, -> { Orb::Price::PackageWithAllocation }
|
|
@@ -4016,6 +4018,436 @@ module Orb
|
|
|
4016
4018
|
end
|
|
4017
4019
|
end
|
|
4018
4020
|
|
|
4021
|
+
class GroupedTieredMatrix < Orb::Internal::Type::BaseModel
|
|
4022
|
+
# @!attribute id
|
|
4023
|
+
#
|
|
4024
|
+
# @return [String]
|
|
4025
|
+
required :id, String
|
|
4026
|
+
|
|
4027
|
+
# @!attribute billable_metric
|
|
4028
|
+
#
|
|
4029
|
+
# @return [Orb::Models::BillableMetricTiny, nil]
|
|
4030
|
+
required :billable_metric, -> { Orb::BillableMetricTiny }, nil?: true
|
|
4031
|
+
|
|
4032
|
+
# @!attribute billing_cycle_configuration
|
|
4033
|
+
#
|
|
4034
|
+
# @return [Orb::Models::BillingCycleConfiguration]
|
|
4035
|
+
required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration }
|
|
4036
|
+
|
|
4037
|
+
# @!attribute billing_mode
|
|
4038
|
+
#
|
|
4039
|
+
# @return [Symbol, Orb::Models::Price::GroupedTieredMatrix::BillingMode]
|
|
4040
|
+
required :billing_mode, enum: -> { Orb::Price::GroupedTieredMatrix::BillingMode }
|
|
4041
|
+
|
|
4042
|
+
# @!attribute cadence
|
|
4043
|
+
#
|
|
4044
|
+
# @return [Symbol, Orb::Models::Price::GroupedTieredMatrix::Cadence]
|
|
4045
|
+
required :cadence, enum: -> { Orb::Price::GroupedTieredMatrix::Cadence }
|
|
4046
|
+
|
|
4047
|
+
# @!attribute composite_price_filters
|
|
4048
|
+
#
|
|
4049
|
+
# @return [Array<Orb::Models::Price::GroupedTieredMatrix::CompositePriceFilter>, nil]
|
|
4050
|
+
required :composite_price_filters,
|
|
4051
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::Price::GroupedTieredMatrix::CompositePriceFilter] },
|
|
4052
|
+
nil?: true
|
|
4053
|
+
|
|
4054
|
+
# @!attribute conversion_rate
|
|
4055
|
+
#
|
|
4056
|
+
# @return [Float, nil]
|
|
4057
|
+
required :conversion_rate, Float, nil?: true
|
|
4058
|
+
|
|
4059
|
+
# @!attribute conversion_rate_config
|
|
4060
|
+
#
|
|
4061
|
+
# @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil]
|
|
4062
|
+
required :conversion_rate_config, union: -> { Orb::ConversionRateConfig }, nil?: true
|
|
4063
|
+
|
|
4064
|
+
# @!attribute created_at
|
|
4065
|
+
#
|
|
4066
|
+
# @return [Time]
|
|
4067
|
+
required :created_at, Time
|
|
4068
|
+
|
|
4069
|
+
# @!attribute credit_allocation
|
|
4070
|
+
#
|
|
4071
|
+
# @return [Orb::Models::Allocation, nil]
|
|
4072
|
+
required :credit_allocation, -> { Orb::Allocation }, nil?: true
|
|
4073
|
+
|
|
4074
|
+
# @!attribute currency
|
|
4075
|
+
#
|
|
4076
|
+
# @return [String]
|
|
4077
|
+
required :currency, String
|
|
4078
|
+
|
|
4079
|
+
# @!attribute discount
|
|
4080
|
+
# @deprecated
|
|
4081
|
+
#
|
|
4082
|
+
# @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, Orb::Models::Discount::TieredPercentage, nil]
|
|
4083
|
+
required :discount, union: -> { Orb::Discount }, nil?: true
|
|
4084
|
+
|
|
4085
|
+
# @!attribute external_price_id
|
|
4086
|
+
#
|
|
4087
|
+
# @return [String, nil]
|
|
4088
|
+
required :external_price_id, String, nil?: true
|
|
4089
|
+
|
|
4090
|
+
# @!attribute fixed_price_quantity
|
|
4091
|
+
#
|
|
4092
|
+
# @return [Float, nil]
|
|
4093
|
+
required :fixed_price_quantity, Float, nil?: true
|
|
4094
|
+
|
|
4095
|
+
# @!attribute grouped_tiered_matrix_config
|
|
4096
|
+
# Configuration for grouped_tiered_matrix pricing
|
|
4097
|
+
#
|
|
4098
|
+
# @return [Orb::Models::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig]
|
|
4099
|
+
required :grouped_tiered_matrix_config, -> { Orb::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig }
|
|
4100
|
+
|
|
4101
|
+
# @!attribute invoice_grouping_key
|
|
4102
|
+
#
|
|
4103
|
+
# @return [String, nil]
|
|
4104
|
+
required :invoice_grouping_key, String, nil?: true
|
|
4105
|
+
|
|
4106
|
+
# @!attribute invoicing_cycle_configuration
|
|
4107
|
+
#
|
|
4108
|
+
# @return [Orb::Models::BillingCycleConfiguration, nil]
|
|
4109
|
+
required :invoicing_cycle_configuration, -> { Orb::BillingCycleConfiguration }, nil?: true
|
|
4110
|
+
|
|
4111
|
+
# @!attribute item
|
|
4112
|
+
# A minimal representation of an Item containing only the essential identifying
|
|
4113
|
+
# information.
|
|
4114
|
+
#
|
|
4115
|
+
# @return [Orb::Models::ItemSlim]
|
|
4116
|
+
required :item, -> { Orb::ItemSlim }
|
|
4117
|
+
|
|
4118
|
+
# @!attribute maximum
|
|
4119
|
+
# @deprecated
|
|
4120
|
+
#
|
|
4121
|
+
# @return [Orb::Models::Maximum, nil]
|
|
4122
|
+
required :maximum, -> { Orb::Maximum }, nil?: true
|
|
4123
|
+
|
|
4124
|
+
# @!attribute maximum_amount
|
|
4125
|
+
# @deprecated
|
|
4126
|
+
#
|
|
4127
|
+
# @return [String, nil]
|
|
4128
|
+
required :maximum_amount, String, nil?: true
|
|
4129
|
+
|
|
4130
|
+
# @!attribute metadata
|
|
4131
|
+
# User specified key-value pairs for the resource. If not present, this defaults
|
|
4132
|
+
# to an empty dictionary. Individual keys can be removed by setting the value to
|
|
4133
|
+
# `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
4134
|
+
# `null`.
|
|
4135
|
+
#
|
|
4136
|
+
# @return [Hash{Symbol=>String}]
|
|
4137
|
+
required :metadata, Orb::Internal::Type::HashOf[String]
|
|
4138
|
+
|
|
4139
|
+
# @!attribute minimum
|
|
4140
|
+
# @deprecated
|
|
4141
|
+
#
|
|
4142
|
+
# @return [Orb::Models::Minimum, nil]
|
|
4143
|
+
required :minimum, -> { Orb::Minimum }, nil?: true
|
|
4144
|
+
|
|
4145
|
+
# @!attribute minimum_amount
|
|
4146
|
+
# @deprecated
|
|
4147
|
+
#
|
|
4148
|
+
# @return [String, nil]
|
|
4149
|
+
required :minimum_amount, String, nil?: true
|
|
4150
|
+
|
|
4151
|
+
# @!attribute model_type
|
|
4152
|
+
# The pricing model type
|
|
4153
|
+
#
|
|
4154
|
+
# @return [Symbol, :grouped_tiered_matrix]
|
|
4155
|
+
required :model_type, const: :grouped_tiered_matrix
|
|
4156
|
+
|
|
4157
|
+
# @!attribute name
|
|
4158
|
+
#
|
|
4159
|
+
# @return [String]
|
|
4160
|
+
required :name, String
|
|
4161
|
+
|
|
4162
|
+
# @!attribute plan_phase_order
|
|
4163
|
+
#
|
|
4164
|
+
# @return [Integer, nil]
|
|
4165
|
+
required :plan_phase_order, Integer, nil?: true
|
|
4166
|
+
|
|
4167
|
+
# @!attribute price_type
|
|
4168
|
+
#
|
|
4169
|
+
# @return [Symbol, Orb::Models::Price::GroupedTieredMatrix::PriceType]
|
|
4170
|
+
required :price_type, enum: -> { Orb::Price::GroupedTieredMatrix::PriceType }
|
|
4171
|
+
|
|
4172
|
+
# @!attribute replaces_price_id
|
|
4173
|
+
# The price id this price replaces. This price will take the place of the replaced
|
|
4174
|
+
# price in plan version migrations.
|
|
4175
|
+
#
|
|
4176
|
+
# @return [String, nil]
|
|
4177
|
+
required :replaces_price_id, String, nil?: true
|
|
4178
|
+
|
|
4179
|
+
# @!attribute dimensional_price_configuration
|
|
4180
|
+
#
|
|
4181
|
+
# @return [Orb::Models::DimensionalPriceConfiguration, nil]
|
|
4182
|
+
optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true
|
|
4183
|
+
|
|
4184
|
+
# @!attribute license_type
|
|
4185
|
+
# The LicenseType resource represents a type of license that can be assigned to
|
|
4186
|
+
# users. License types are used during billing by grouping metrics on the
|
|
4187
|
+
# configured grouping key.
|
|
4188
|
+
#
|
|
4189
|
+
# @return [Orb::Models::Price::GroupedTieredMatrix::LicenseType, nil]
|
|
4190
|
+
optional :license_type, -> { Orb::Price::GroupedTieredMatrix::LicenseType }, nil?: true
|
|
4191
|
+
|
|
4192
|
+
# @!method initialize(id:, billable_metric:, billing_cycle_configuration:, billing_mode:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_tiered_matrix_config:, invoice_grouping_key:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, license_type: nil, model_type: :grouped_tiered_matrix)
|
|
4193
|
+
# Some parameter documentations has been truncated, see
|
|
4194
|
+
# {Orb::Models::Price::GroupedTieredMatrix} for more details.
|
|
4195
|
+
#
|
|
4196
|
+
# @param id [String]
|
|
4197
|
+
#
|
|
4198
|
+
# @param billable_metric [Orb::Models::BillableMetricTiny, nil]
|
|
4199
|
+
#
|
|
4200
|
+
# @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration]
|
|
4201
|
+
#
|
|
4202
|
+
# @param billing_mode [Symbol, Orb::Models::Price::GroupedTieredMatrix::BillingMode]
|
|
4203
|
+
#
|
|
4204
|
+
# @param cadence [Symbol, Orb::Models::Price::GroupedTieredMatrix::Cadence]
|
|
4205
|
+
#
|
|
4206
|
+
# @param composite_price_filters [Array<Orb::Models::Price::GroupedTieredMatrix::CompositePriceFilter>, nil]
|
|
4207
|
+
#
|
|
4208
|
+
# @param conversion_rate [Float, nil]
|
|
4209
|
+
#
|
|
4210
|
+
# @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil]
|
|
4211
|
+
#
|
|
4212
|
+
# @param created_at [Time]
|
|
4213
|
+
#
|
|
4214
|
+
# @param credit_allocation [Orb::Models::Allocation, nil]
|
|
4215
|
+
#
|
|
4216
|
+
# @param currency [String]
|
|
4217
|
+
#
|
|
4218
|
+
# @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, Orb::Models::Discount::TieredPercentage, nil]
|
|
4219
|
+
#
|
|
4220
|
+
# @param external_price_id [String, nil]
|
|
4221
|
+
#
|
|
4222
|
+
# @param fixed_price_quantity [Float, nil]
|
|
4223
|
+
#
|
|
4224
|
+
# @param grouped_tiered_matrix_config [Orb::Models::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig] Configuration for grouped_tiered_matrix pricing
|
|
4225
|
+
#
|
|
4226
|
+
# @param invoice_grouping_key [String, nil]
|
|
4227
|
+
#
|
|
4228
|
+
# @param invoicing_cycle_configuration [Orb::Models::BillingCycleConfiguration, nil]
|
|
4229
|
+
#
|
|
4230
|
+
# @param item [Orb::Models::ItemSlim] A minimal representation of an Item containing only the essential identifying in
|
|
4231
|
+
#
|
|
4232
|
+
# @param maximum [Orb::Models::Maximum, nil]
|
|
4233
|
+
#
|
|
4234
|
+
# @param maximum_amount [String, nil]
|
|
4235
|
+
#
|
|
4236
|
+
# @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
|
|
4237
|
+
#
|
|
4238
|
+
# @param minimum [Orb::Models::Minimum, nil]
|
|
4239
|
+
#
|
|
4240
|
+
# @param minimum_amount [String, nil]
|
|
4241
|
+
#
|
|
4242
|
+
# @param name [String]
|
|
4243
|
+
#
|
|
4244
|
+
# @param plan_phase_order [Integer, nil]
|
|
4245
|
+
#
|
|
4246
|
+
# @param price_type [Symbol, Orb::Models::Price::GroupedTieredMatrix::PriceType]
|
|
4247
|
+
#
|
|
4248
|
+
# @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced
|
|
4249
|
+
#
|
|
4250
|
+
# @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil]
|
|
4251
|
+
#
|
|
4252
|
+
# @param license_type [Orb::Models::Price::GroupedTieredMatrix::LicenseType, nil] The LicenseType resource represents a type of license that can be assigned to us
|
|
4253
|
+
#
|
|
4254
|
+
# @param model_type [Symbol, :grouped_tiered_matrix] The pricing model type
|
|
4255
|
+
|
|
4256
|
+
# @see Orb::Models::Price::GroupedTieredMatrix#billing_mode
|
|
4257
|
+
module BillingMode
|
|
4258
|
+
extend Orb::Internal::Type::Enum
|
|
4259
|
+
|
|
4260
|
+
IN_ADVANCE = :in_advance
|
|
4261
|
+
IN_ARREAR = :in_arrear
|
|
4262
|
+
|
|
4263
|
+
# @!method self.values
|
|
4264
|
+
# @return [Array<Symbol>]
|
|
4265
|
+
end
|
|
4266
|
+
|
|
4267
|
+
# @see Orb::Models::Price::GroupedTieredMatrix#cadence
|
|
4268
|
+
module Cadence
|
|
4269
|
+
extend Orb::Internal::Type::Enum
|
|
4270
|
+
|
|
4271
|
+
ONE_TIME = :one_time
|
|
4272
|
+
MONTHLY = :monthly
|
|
4273
|
+
QUARTERLY = :quarterly
|
|
4274
|
+
SEMI_ANNUAL = :semi_annual
|
|
4275
|
+
ANNUAL = :annual
|
|
4276
|
+
CUSTOM = :custom
|
|
4277
|
+
|
|
4278
|
+
# @!method self.values
|
|
4279
|
+
# @return [Array<Symbol>]
|
|
4280
|
+
end
|
|
4281
|
+
|
|
4282
|
+
class CompositePriceFilter < Orb::Internal::Type::BaseModel
|
|
4283
|
+
# @!attribute field
|
|
4284
|
+
# The property of the price to filter on.
|
|
4285
|
+
#
|
|
4286
|
+
# @return [Symbol, Orb::Models::Price::GroupedTieredMatrix::CompositePriceFilter::Field]
|
|
4287
|
+
required :field, enum: -> { Orb::Price::GroupedTieredMatrix::CompositePriceFilter::Field }
|
|
4288
|
+
|
|
4289
|
+
# @!attribute operator
|
|
4290
|
+
# Should prices that match the filter be included or excluded.
|
|
4291
|
+
#
|
|
4292
|
+
# @return [Symbol, Orb::Models::Price::GroupedTieredMatrix::CompositePriceFilter::Operator]
|
|
4293
|
+
required :operator, enum: -> { Orb::Price::GroupedTieredMatrix::CompositePriceFilter::Operator }
|
|
4294
|
+
|
|
4295
|
+
# @!attribute values
|
|
4296
|
+
# The IDs or values that match this filter.
|
|
4297
|
+
#
|
|
4298
|
+
# @return [Array<String>]
|
|
4299
|
+
required :values, Orb::Internal::Type::ArrayOf[String]
|
|
4300
|
+
|
|
4301
|
+
# @!method initialize(field:, operator:, values:)
|
|
4302
|
+
# @param field [Symbol, Orb::Models::Price::GroupedTieredMatrix::CompositePriceFilter::Field] The property of the price to filter on.
|
|
4303
|
+
#
|
|
4304
|
+
# @param operator [Symbol, Orb::Models::Price::GroupedTieredMatrix::CompositePriceFilter::Operator] Should prices that match the filter be included or excluded.
|
|
4305
|
+
#
|
|
4306
|
+
# @param values [Array<String>] The IDs or values that match this filter.
|
|
4307
|
+
|
|
4308
|
+
# The property of the price to filter on.
|
|
4309
|
+
#
|
|
4310
|
+
# @see Orb::Models::Price::GroupedTieredMatrix::CompositePriceFilter#field
|
|
4311
|
+
module Field
|
|
4312
|
+
extend Orb::Internal::Type::Enum
|
|
4313
|
+
|
|
4314
|
+
PRICE_ID = :price_id
|
|
4315
|
+
ITEM_ID = :item_id
|
|
4316
|
+
PRICE_TYPE = :price_type
|
|
4317
|
+
CURRENCY = :currency
|
|
4318
|
+
PRICING_UNIT_ID = :pricing_unit_id
|
|
4319
|
+
|
|
4320
|
+
# @!method self.values
|
|
4321
|
+
# @return [Array<Symbol>]
|
|
4322
|
+
end
|
|
4323
|
+
|
|
4324
|
+
# Should prices that match the filter be included or excluded.
|
|
4325
|
+
#
|
|
4326
|
+
# @see Orb::Models::Price::GroupedTieredMatrix::CompositePriceFilter#operator
|
|
4327
|
+
module Operator
|
|
4328
|
+
extend Orb::Internal::Type::Enum
|
|
4329
|
+
|
|
4330
|
+
INCLUDES = :includes
|
|
4331
|
+
EXCLUDES = :excludes
|
|
4332
|
+
|
|
4333
|
+
# @!method self.values
|
|
4334
|
+
# @return [Array<Symbol>]
|
|
4335
|
+
end
|
|
4336
|
+
end
|
|
4337
|
+
|
|
4338
|
+
# @see Orb::Models::Price::GroupedTieredMatrix#grouped_tiered_matrix_config
|
|
4339
|
+
class GroupedTieredMatrixConfig < Orb::Internal::Type::BaseModel
|
|
4340
|
+
# @!attribute default_unit_amount
|
|
4341
|
+
# Per unit rate for usage whose dimension value has no configured tiers
|
|
4342
|
+
#
|
|
4343
|
+
# @return [String]
|
|
4344
|
+
required :default_unit_amount, String
|
|
4345
|
+
|
|
4346
|
+
# @!attribute dimension
|
|
4347
|
+
# The billable metric property used to group usage before tiering
|
|
4348
|
+
#
|
|
4349
|
+
# @return [String]
|
|
4350
|
+
required :dimension, String
|
|
4351
|
+
|
|
4352
|
+
# @!attribute tiers
|
|
4353
|
+
# Graduated tiers keyed by dimension value; usage for a value is tiered only
|
|
4354
|
+
# against its own rows
|
|
4355
|
+
#
|
|
4356
|
+
# @return [Array<Orb::Models::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier>]
|
|
4357
|
+
required :tiers,
|
|
4358
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier] }
|
|
4359
|
+
|
|
4360
|
+
# @!method initialize(default_unit_amount:, dimension:, tiers:)
|
|
4361
|
+
# Some parameter documentations has been truncated, see
|
|
4362
|
+
# {Orb::Models::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig} for more
|
|
4363
|
+
# details.
|
|
4364
|
+
#
|
|
4365
|
+
# Configuration for grouped_tiered_matrix pricing
|
|
4366
|
+
#
|
|
4367
|
+
# @param default_unit_amount [String] Per unit rate for usage whose dimension value has no configured tiers
|
|
4368
|
+
#
|
|
4369
|
+
# @param dimension [String] The billable metric property used to group usage before tiering
|
|
4370
|
+
#
|
|
4371
|
+
# @param tiers [Array<Orb::Models::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier>] Graduated tiers keyed by dimension value; usage for a value is tiered only again
|
|
4372
|
+
|
|
4373
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
4374
|
+
# @!attribute dimension_value
|
|
4375
|
+
# The dimension value this tier applies to
|
|
4376
|
+
#
|
|
4377
|
+
# @return [String]
|
|
4378
|
+
required :dimension_value, String
|
|
4379
|
+
|
|
4380
|
+
# @!attribute tier_lower_bound
|
|
4381
|
+
#
|
|
4382
|
+
# @return [String]
|
|
4383
|
+
required :tier_lower_bound, String
|
|
4384
|
+
|
|
4385
|
+
# @!attribute unit_amount
|
|
4386
|
+
# Per unit amount
|
|
4387
|
+
#
|
|
4388
|
+
# @return [String]
|
|
4389
|
+
required :unit_amount, String
|
|
4390
|
+
|
|
4391
|
+
# @!method initialize(dimension_value:, tier_lower_bound:, unit_amount:)
|
|
4392
|
+
# Configuration for a single tier scoped to a dimension value
|
|
4393
|
+
#
|
|
4394
|
+
# @param dimension_value [String] The dimension value this tier applies to
|
|
4395
|
+
#
|
|
4396
|
+
# @param tier_lower_bound [String]
|
|
4397
|
+
#
|
|
4398
|
+
# @param unit_amount [String] Per unit amount
|
|
4399
|
+
end
|
|
4400
|
+
end
|
|
4401
|
+
|
|
4402
|
+
# @see Orb::Models::Price::GroupedTieredMatrix#price_type
|
|
4403
|
+
module PriceType
|
|
4404
|
+
extend Orb::Internal::Type::Enum
|
|
4405
|
+
|
|
4406
|
+
USAGE_PRICE = :usage_price
|
|
4407
|
+
FIXED_PRICE = :fixed_price
|
|
4408
|
+
COMPOSITE_PRICE = :composite_price
|
|
4409
|
+
|
|
4410
|
+
# @!method self.values
|
|
4411
|
+
# @return [Array<Symbol>]
|
|
4412
|
+
end
|
|
4413
|
+
|
|
4414
|
+
# @see Orb::Models::Price::GroupedTieredMatrix#license_type
|
|
4415
|
+
class LicenseType < Orb::Internal::Type::BaseModel
|
|
4416
|
+
# @!attribute id
|
|
4417
|
+
# The Orb-assigned unique identifier for the license type.
|
|
4418
|
+
#
|
|
4419
|
+
# @return [String]
|
|
4420
|
+
required :id, String
|
|
4421
|
+
|
|
4422
|
+
# @!attribute grouping_key
|
|
4423
|
+
# The key used for grouping licenses of this type. This is typically a user
|
|
4424
|
+
# identifier field.
|
|
4425
|
+
#
|
|
4426
|
+
# @return [String]
|
|
4427
|
+
required :grouping_key, String
|
|
4428
|
+
|
|
4429
|
+
# @!attribute name
|
|
4430
|
+
# The name of the license type.
|
|
4431
|
+
#
|
|
4432
|
+
# @return [String]
|
|
4433
|
+
required :name, String
|
|
4434
|
+
|
|
4435
|
+
# @!method initialize(id:, grouping_key:, name:)
|
|
4436
|
+
# Some parameter documentations has been truncated, see
|
|
4437
|
+
# {Orb::Models::Price::GroupedTieredMatrix::LicenseType} for more details.
|
|
4438
|
+
#
|
|
4439
|
+
# The LicenseType resource represents a type of license that can be assigned to
|
|
4440
|
+
# users. License types are used during billing by grouping metrics on the
|
|
4441
|
+
# configured grouping key.
|
|
4442
|
+
#
|
|
4443
|
+
# @param id [String] The Orb-assigned unique identifier for the license type.
|
|
4444
|
+
#
|
|
4445
|
+
# @param grouping_key [String] The key used for grouping licenses of this type. This is typically a user identi
|
|
4446
|
+
#
|
|
4447
|
+
# @param name [String] The name of the license type.
|
|
4448
|
+
end
|
|
4449
|
+
end
|
|
4450
|
+
|
|
4019
4451
|
class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel
|
|
4020
4452
|
# @!attribute id
|
|
4021
4453
|
#
|
|
@@ -13993,7 +14425,7 @@ module Orb
|
|
|
13993
14425
|
end
|
|
13994
14426
|
|
|
13995
14427
|
# @!method self.variants
|
|
13996
|
-
# @return [Array(Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::BulkWithFilters, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::MatrixWithThresholdDiscounts, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::CumulativeGroupedAllocation, Orb::Models::Price::DailyCreditAllowance, Orb::Models::Price::MeteredAllowance, Orb::Models::Price::MinimumComposite, Orb::Models::Price::Percent, Orb::Models::Price::EventOutput)]
|
|
14428
|
+
# @return [Array(Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::BulkWithFilters, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::GroupedTieredMatrix, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::MatrixWithThresholdDiscounts, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::CumulativeGroupedAllocation, Orb::Models::Price::DailyCreditAllowance, Orb::Models::Price::MeteredAllowance, Orb::Models::Price::MinimumComposite, Orb::Models::Price::Percent, Orb::Models::Price::EventOutput)]
|
|
13997
14429
|
end
|
|
13998
14430
|
end
|
|
13999
14431
|
end
|