orb-billing 1.30.0 → 1.32.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/beta/external_plan_id_create_plan_version_params.rb +566 -6
- data/lib/orb/models/beta_create_plan_version_params.rb +566 -6
- data/lib/orb/models/changed_subscription_resources.rb +3 -2
- data/lib/orb/models/customers/balance_transaction_create_response.rb +1 -0
- data/lib/orb/models/customers/balance_transaction_list_response.rb +1 -0
- data/lib/orb/models/invoice.rb +3 -2
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +3 -2
- data/lib/orb/models/invoice_issue_summary_response.rb +1 -0
- data/lib/orb/models/invoice_line_item_create_response.rb +2 -2
- data/lib/orb/models/invoice_list_summary_response.rb +1 -0
- 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 +278 -3
- data/lib/orb/models/plan_version.rb +2 -2
- data/lib/orb/models/price.rb +450 -1
- data/lib/orb/models/price_create_params.rb +263 -3
- data/lib/orb/models/price_evaluate_multiple_params.rb +273 -3
- data/lib/orb/models/price_evaluate_preview_events_params.rb +273 -3
- data/lib/orb/models/price_interval.rb +2 -2
- data/lib/orb/models/subscription_create_params.rb +566 -6
- data/lib/orb/models/subscription_price_intervals_params.rb +273 -3
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +566 -6
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +5 -5
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +2737 -1811
- data/rbi/orb/models/beta_create_plan_version_params.rbi +2745 -1819
- data/rbi/orb/models/changed_subscription_resources.rbi +6 -0
- data/rbi/orb/models/customers/balance_transaction_create_response.rbi +5 -0
- data/rbi/orb/models/customers/balance_transaction_list_response.rbi +5 -0
- data/rbi/orb/models/invoice.rbi +6 -0
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +6 -0
- data/rbi/orb/models/invoice_issue_summary_response.rbi +5 -0
- data/rbi/orb/models/invoice_line_item_create_response.rbi +1 -0
- data/rbi/orb/models/invoice_list_summary_response.rbi +5 -0
- 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 +463 -0
- data/rbi/orb/models/plan_version.rbi +1 -0
- data/rbi/orb/models/price.rbi +805 -0
- data/rbi/orb/models/price_create_params.rbi +451 -0
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +451 -0
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +451 -0
- data/rbi/orb/models/price_interval.rbi +1 -0
- data/rbi/orb/models/subscription_create_params.rbi +2660 -1734
- data/rbi/orb/models/subscription_price_intervals_params.rbi +451 -0
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +2660 -1734
- data/rbi/orb/resources/prices.rbi +1 -0
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +376 -0
- data/sig/orb/models/beta_create_plan_version_params.rbs +376 -0
- data/sig/orb/models/changed_subscription_resources.rbs +2 -0
- data/sig/orb/models/customers/balance_transaction_create_response.rbs +2 -0
- data/sig/orb/models/customers/balance_transaction_list_response.rbs +2 -0
- data/sig/orb/models/invoice.rbs +2 -0
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +2 -0
- data/sig/orb/models/invoice_issue_summary_response.rbs +2 -0
- data/sig/orb/models/invoice_list_summary_response.rbs +2 -0
- data/sig/orb/models/plan_create_params.rbs +188 -0
- data/sig/orb/models/price.rbs +332 -0
- data/sig/orb/models/price_create_params.rbs +178 -0
- data/sig/orb/models/price_evaluate_multiple_params.rbs +183 -0
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +183 -0
- data/sig/orb/models/subscription_create_params.rbs +376 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +183 -0
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +376 -0
- metadata +1 -1
data/lib/orb/models/price.rb
CHANGED
|
@@ -47,6 +47,8 @@ module Orb
|
|
|
47
47
|
|
|
48
48
|
variant :matrix_with_allocation, -> { Orb::Price::MatrixWithAllocation }
|
|
49
49
|
|
|
50
|
+
variant :tiered_matrix_with_allocation, -> { Orb::Price::TieredMatrixWithAllocation }
|
|
51
|
+
|
|
50
52
|
variant :matrix_with_threshold_discounts, -> { Orb::Price::MatrixWithThresholdDiscounts }
|
|
51
53
|
|
|
52
54
|
variant :tiered_with_proration, -> { Orb::Price::TieredWithProration }
|
|
@@ -6014,6 +6016,453 @@ module Orb
|
|
|
6014
6016
|
end
|
|
6015
6017
|
end
|
|
6016
6018
|
|
|
6019
|
+
class TieredMatrixWithAllocation < Orb::Internal::Type::BaseModel
|
|
6020
|
+
# @!attribute id
|
|
6021
|
+
#
|
|
6022
|
+
# @return [String]
|
|
6023
|
+
required :id, String
|
|
6024
|
+
|
|
6025
|
+
# @!attribute billable_metric
|
|
6026
|
+
#
|
|
6027
|
+
# @return [Orb::Models::BillableMetricTiny, nil]
|
|
6028
|
+
required :billable_metric, -> { Orb::BillableMetricTiny }, nil?: true
|
|
6029
|
+
|
|
6030
|
+
# @!attribute billing_cycle_configuration
|
|
6031
|
+
#
|
|
6032
|
+
# @return [Orb::Models::BillingCycleConfiguration]
|
|
6033
|
+
required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration }
|
|
6034
|
+
|
|
6035
|
+
# @!attribute billing_mode
|
|
6036
|
+
#
|
|
6037
|
+
# @return [Symbol, Orb::Models::Price::TieredMatrixWithAllocation::BillingMode]
|
|
6038
|
+
required :billing_mode, enum: -> { Orb::Price::TieredMatrixWithAllocation::BillingMode }
|
|
6039
|
+
|
|
6040
|
+
# @!attribute cadence
|
|
6041
|
+
#
|
|
6042
|
+
# @return [Symbol, Orb::Models::Price::TieredMatrixWithAllocation::Cadence]
|
|
6043
|
+
required :cadence, enum: -> { Orb::Price::TieredMatrixWithAllocation::Cadence }
|
|
6044
|
+
|
|
6045
|
+
# @!attribute composite_price_filters
|
|
6046
|
+
#
|
|
6047
|
+
# @return [Array<Orb::Models::Price::TieredMatrixWithAllocation::CompositePriceFilter>, nil]
|
|
6048
|
+
required :composite_price_filters,
|
|
6049
|
+
-> {
|
|
6050
|
+
Orb::Internal::Type::ArrayOf[Orb::Price::TieredMatrixWithAllocation::CompositePriceFilter]
|
|
6051
|
+
},
|
|
6052
|
+
nil?: true
|
|
6053
|
+
|
|
6054
|
+
# @!attribute conversion_rate
|
|
6055
|
+
#
|
|
6056
|
+
# @return [Float, nil]
|
|
6057
|
+
required :conversion_rate, Float, nil?: true
|
|
6058
|
+
|
|
6059
|
+
# @!attribute conversion_rate_config
|
|
6060
|
+
#
|
|
6061
|
+
# @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil]
|
|
6062
|
+
required :conversion_rate_config, union: -> { Orb::ConversionRateConfig }, nil?: true
|
|
6063
|
+
|
|
6064
|
+
# @!attribute created_at
|
|
6065
|
+
#
|
|
6066
|
+
# @return [Time]
|
|
6067
|
+
required :created_at, Time
|
|
6068
|
+
|
|
6069
|
+
# @!attribute credit_allocation
|
|
6070
|
+
#
|
|
6071
|
+
# @return [Orb::Models::Allocation, nil]
|
|
6072
|
+
required :credit_allocation, -> { Orb::Allocation }, nil?: true
|
|
6073
|
+
|
|
6074
|
+
# @!attribute currency
|
|
6075
|
+
#
|
|
6076
|
+
# @return [String]
|
|
6077
|
+
required :currency, String
|
|
6078
|
+
|
|
6079
|
+
# @!attribute discount
|
|
6080
|
+
# @deprecated
|
|
6081
|
+
#
|
|
6082
|
+
# @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, Orb::Models::Discount::TieredPercentage, nil]
|
|
6083
|
+
required :discount, union: -> { Orb::Discount }, nil?: true
|
|
6084
|
+
|
|
6085
|
+
# @!attribute external_price_id
|
|
6086
|
+
#
|
|
6087
|
+
# @return [String, nil]
|
|
6088
|
+
required :external_price_id, String, nil?: true
|
|
6089
|
+
|
|
6090
|
+
# @!attribute fixed_price_quantity
|
|
6091
|
+
#
|
|
6092
|
+
# @return [Float, nil]
|
|
6093
|
+
required :fixed_price_quantity, Float, nil?: true
|
|
6094
|
+
|
|
6095
|
+
# @!attribute invoice_grouping_key
|
|
6096
|
+
#
|
|
6097
|
+
# @return [String, nil]
|
|
6098
|
+
required :invoice_grouping_key, String, nil?: true
|
|
6099
|
+
|
|
6100
|
+
# @!attribute invoicing_cycle_configuration
|
|
6101
|
+
#
|
|
6102
|
+
# @return [Orb::Models::BillingCycleConfiguration, nil]
|
|
6103
|
+
required :invoicing_cycle_configuration, -> { Orb::BillingCycleConfiguration }, nil?: true
|
|
6104
|
+
|
|
6105
|
+
# @!attribute item
|
|
6106
|
+
# A minimal representation of an Item containing only the essential identifying
|
|
6107
|
+
# information.
|
|
6108
|
+
#
|
|
6109
|
+
# @return [Orb::Models::ItemSlim]
|
|
6110
|
+
required :item, -> { Orb::ItemSlim }
|
|
6111
|
+
|
|
6112
|
+
# @!attribute maximum
|
|
6113
|
+
# @deprecated
|
|
6114
|
+
#
|
|
6115
|
+
# @return [Orb::Models::Maximum, nil]
|
|
6116
|
+
required :maximum, -> { Orb::Maximum }, nil?: true
|
|
6117
|
+
|
|
6118
|
+
# @!attribute maximum_amount
|
|
6119
|
+
# @deprecated
|
|
6120
|
+
#
|
|
6121
|
+
# @return [String, nil]
|
|
6122
|
+
required :maximum_amount, String, nil?: true
|
|
6123
|
+
|
|
6124
|
+
# @!attribute metadata
|
|
6125
|
+
# User specified key-value pairs for the resource. If not present, this defaults
|
|
6126
|
+
# to an empty dictionary. Individual keys can be removed by setting the value to
|
|
6127
|
+
# `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
6128
|
+
# `null`.
|
|
6129
|
+
#
|
|
6130
|
+
# @return [Hash{Symbol=>String}]
|
|
6131
|
+
required :metadata, Orb::Internal::Type::HashOf[String]
|
|
6132
|
+
|
|
6133
|
+
# @!attribute minimum
|
|
6134
|
+
# @deprecated
|
|
6135
|
+
#
|
|
6136
|
+
# @return [Orb::Models::Minimum, nil]
|
|
6137
|
+
required :minimum, -> { Orb::Minimum }, nil?: true
|
|
6138
|
+
|
|
6139
|
+
# @!attribute minimum_amount
|
|
6140
|
+
# @deprecated
|
|
6141
|
+
#
|
|
6142
|
+
# @return [String, nil]
|
|
6143
|
+
required :minimum_amount, String, nil?: true
|
|
6144
|
+
|
|
6145
|
+
# @!attribute model_type
|
|
6146
|
+
# The pricing model type
|
|
6147
|
+
#
|
|
6148
|
+
# @return [Symbol, :tiered_matrix_with_allocation]
|
|
6149
|
+
required :model_type, const: :tiered_matrix_with_allocation
|
|
6150
|
+
|
|
6151
|
+
# @!attribute name
|
|
6152
|
+
#
|
|
6153
|
+
# @return [String]
|
|
6154
|
+
required :name, String
|
|
6155
|
+
|
|
6156
|
+
# @!attribute plan_phase_order
|
|
6157
|
+
#
|
|
6158
|
+
# @return [Integer, nil]
|
|
6159
|
+
required :plan_phase_order, Integer, nil?: true
|
|
6160
|
+
|
|
6161
|
+
# @!attribute price_type
|
|
6162
|
+
#
|
|
6163
|
+
# @return [Symbol, Orb::Models::Price::TieredMatrixWithAllocation::PriceType]
|
|
6164
|
+
required :price_type, enum: -> { Orb::Price::TieredMatrixWithAllocation::PriceType }
|
|
6165
|
+
|
|
6166
|
+
# @!attribute replaces_price_id
|
|
6167
|
+
# The price id this price replaces. This price will take the place of the replaced
|
|
6168
|
+
# price in plan version migrations.
|
|
6169
|
+
#
|
|
6170
|
+
# @return [String, nil]
|
|
6171
|
+
required :replaces_price_id, String, nil?: true
|
|
6172
|
+
|
|
6173
|
+
# @!attribute tiered_matrix_with_allocation_config
|
|
6174
|
+
# Configuration for tiered_matrix_with_allocation pricing
|
|
6175
|
+
#
|
|
6176
|
+
# @return [Orb::Models::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig]
|
|
6177
|
+
required :tiered_matrix_with_allocation_config,
|
|
6178
|
+
-> { Orb::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig }
|
|
6179
|
+
|
|
6180
|
+
# @!attribute dimensional_price_configuration
|
|
6181
|
+
#
|
|
6182
|
+
# @return [Orb::Models::DimensionalPriceConfiguration, nil]
|
|
6183
|
+
optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true
|
|
6184
|
+
|
|
6185
|
+
# @!attribute license_type
|
|
6186
|
+
# The LicenseType resource represents a type of license that can be assigned to
|
|
6187
|
+
# users. License types are used during billing by grouping metrics on the
|
|
6188
|
+
# configured grouping key.
|
|
6189
|
+
#
|
|
6190
|
+
# @return [Orb::Models::Price::TieredMatrixWithAllocation::LicenseType, nil]
|
|
6191
|
+
optional :license_type, -> { Orb::Price::TieredMatrixWithAllocation::LicenseType }, nil?: true
|
|
6192
|
+
|
|
6193
|
+
# @!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:, invoice_grouping_key:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_matrix_with_allocation_config:, dimensional_price_configuration: nil, license_type: nil, model_type: :tiered_matrix_with_allocation)
|
|
6194
|
+
# Some parameter documentations has been truncated, see
|
|
6195
|
+
# {Orb::Models::Price::TieredMatrixWithAllocation} for more details.
|
|
6196
|
+
#
|
|
6197
|
+
# @param id [String]
|
|
6198
|
+
#
|
|
6199
|
+
# @param billable_metric [Orb::Models::BillableMetricTiny, nil]
|
|
6200
|
+
#
|
|
6201
|
+
# @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration]
|
|
6202
|
+
#
|
|
6203
|
+
# @param billing_mode [Symbol, Orb::Models::Price::TieredMatrixWithAllocation::BillingMode]
|
|
6204
|
+
#
|
|
6205
|
+
# @param cadence [Symbol, Orb::Models::Price::TieredMatrixWithAllocation::Cadence]
|
|
6206
|
+
#
|
|
6207
|
+
# @param composite_price_filters [Array<Orb::Models::Price::TieredMatrixWithAllocation::CompositePriceFilter>, nil]
|
|
6208
|
+
#
|
|
6209
|
+
# @param conversion_rate [Float, nil]
|
|
6210
|
+
#
|
|
6211
|
+
# @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil]
|
|
6212
|
+
#
|
|
6213
|
+
# @param created_at [Time]
|
|
6214
|
+
#
|
|
6215
|
+
# @param credit_allocation [Orb::Models::Allocation, nil]
|
|
6216
|
+
#
|
|
6217
|
+
# @param currency [String]
|
|
6218
|
+
#
|
|
6219
|
+
# @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, Orb::Models::Discount::TieredPercentage, nil]
|
|
6220
|
+
#
|
|
6221
|
+
# @param external_price_id [String, nil]
|
|
6222
|
+
#
|
|
6223
|
+
# @param fixed_price_quantity [Float, nil]
|
|
6224
|
+
#
|
|
6225
|
+
# @param invoice_grouping_key [String, nil]
|
|
6226
|
+
#
|
|
6227
|
+
# @param invoicing_cycle_configuration [Orb::Models::BillingCycleConfiguration, nil]
|
|
6228
|
+
#
|
|
6229
|
+
# @param item [Orb::Models::ItemSlim] A minimal representation of an Item containing only the essential identifying in
|
|
6230
|
+
#
|
|
6231
|
+
# @param maximum [Orb::Models::Maximum, nil]
|
|
6232
|
+
#
|
|
6233
|
+
# @param maximum_amount [String, nil]
|
|
6234
|
+
#
|
|
6235
|
+
# @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
|
|
6236
|
+
#
|
|
6237
|
+
# @param minimum [Orb::Models::Minimum, nil]
|
|
6238
|
+
#
|
|
6239
|
+
# @param minimum_amount [String, nil]
|
|
6240
|
+
#
|
|
6241
|
+
# @param name [String]
|
|
6242
|
+
#
|
|
6243
|
+
# @param plan_phase_order [Integer, nil]
|
|
6244
|
+
#
|
|
6245
|
+
# @param price_type [Symbol, Orb::Models::Price::TieredMatrixWithAllocation::PriceType]
|
|
6246
|
+
#
|
|
6247
|
+
# @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced
|
|
6248
|
+
#
|
|
6249
|
+
# @param tiered_matrix_with_allocation_config [Orb::Models::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig] Configuration for tiered_matrix_with_allocation pricing
|
|
6250
|
+
#
|
|
6251
|
+
# @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil]
|
|
6252
|
+
#
|
|
6253
|
+
# @param license_type [Orb::Models::Price::TieredMatrixWithAllocation::LicenseType, nil] The LicenseType resource represents a type of license that can be assigned to us
|
|
6254
|
+
#
|
|
6255
|
+
# @param model_type [Symbol, :tiered_matrix_with_allocation] The pricing model type
|
|
6256
|
+
|
|
6257
|
+
# @see Orb::Models::Price::TieredMatrixWithAllocation#billing_mode
|
|
6258
|
+
module BillingMode
|
|
6259
|
+
extend Orb::Internal::Type::Enum
|
|
6260
|
+
|
|
6261
|
+
IN_ADVANCE = :in_advance
|
|
6262
|
+
IN_ARREAR = :in_arrear
|
|
6263
|
+
|
|
6264
|
+
# @!method self.values
|
|
6265
|
+
# @return [Array<Symbol>]
|
|
6266
|
+
end
|
|
6267
|
+
|
|
6268
|
+
# @see Orb::Models::Price::TieredMatrixWithAllocation#cadence
|
|
6269
|
+
module Cadence
|
|
6270
|
+
extend Orb::Internal::Type::Enum
|
|
6271
|
+
|
|
6272
|
+
ONE_TIME = :one_time
|
|
6273
|
+
MONTHLY = :monthly
|
|
6274
|
+
QUARTERLY = :quarterly
|
|
6275
|
+
SEMI_ANNUAL = :semi_annual
|
|
6276
|
+
ANNUAL = :annual
|
|
6277
|
+
CUSTOM = :custom
|
|
6278
|
+
|
|
6279
|
+
# @!method self.values
|
|
6280
|
+
# @return [Array<Symbol>]
|
|
6281
|
+
end
|
|
6282
|
+
|
|
6283
|
+
class CompositePriceFilter < Orb::Internal::Type::BaseModel
|
|
6284
|
+
# @!attribute field
|
|
6285
|
+
# The property of the price to filter on.
|
|
6286
|
+
#
|
|
6287
|
+
# @return [Symbol, Orb::Models::Price::TieredMatrixWithAllocation::CompositePriceFilter::Field]
|
|
6288
|
+
required :field, enum: -> { Orb::Price::TieredMatrixWithAllocation::CompositePriceFilter::Field }
|
|
6289
|
+
|
|
6290
|
+
# @!attribute operator
|
|
6291
|
+
# Should prices that match the filter be included or excluded.
|
|
6292
|
+
#
|
|
6293
|
+
# @return [Symbol, Orb::Models::Price::TieredMatrixWithAllocation::CompositePriceFilter::Operator]
|
|
6294
|
+
required :operator, enum: -> { Orb::Price::TieredMatrixWithAllocation::CompositePriceFilter::Operator }
|
|
6295
|
+
|
|
6296
|
+
# @!attribute values
|
|
6297
|
+
# The IDs or values that match this filter.
|
|
6298
|
+
#
|
|
6299
|
+
# @return [Array<String>]
|
|
6300
|
+
required :values, Orb::Internal::Type::ArrayOf[String]
|
|
6301
|
+
|
|
6302
|
+
# @!method initialize(field:, operator:, values:)
|
|
6303
|
+
# @param field [Symbol, Orb::Models::Price::TieredMatrixWithAllocation::CompositePriceFilter::Field] The property of the price to filter on.
|
|
6304
|
+
#
|
|
6305
|
+
# @param operator [Symbol, Orb::Models::Price::TieredMatrixWithAllocation::CompositePriceFilter::Operator] Should prices that match the filter be included or excluded.
|
|
6306
|
+
#
|
|
6307
|
+
# @param values [Array<String>] The IDs or values that match this filter.
|
|
6308
|
+
|
|
6309
|
+
# The property of the price to filter on.
|
|
6310
|
+
#
|
|
6311
|
+
# @see Orb::Models::Price::TieredMatrixWithAllocation::CompositePriceFilter#field
|
|
6312
|
+
module Field
|
|
6313
|
+
extend Orb::Internal::Type::Enum
|
|
6314
|
+
|
|
6315
|
+
PRICE_ID = :price_id
|
|
6316
|
+
ITEM_ID = :item_id
|
|
6317
|
+
PRICE_TYPE = :price_type
|
|
6318
|
+
CURRENCY = :currency
|
|
6319
|
+
PRICING_UNIT_ID = :pricing_unit_id
|
|
6320
|
+
|
|
6321
|
+
# @!method self.values
|
|
6322
|
+
# @return [Array<Symbol>]
|
|
6323
|
+
end
|
|
6324
|
+
|
|
6325
|
+
# Should prices that match the filter be included or excluded.
|
|
6326
|
+
#
|
|
6327
|
+
# @see Orb::Models::Price::TieredMatrixWithAllocation::CompositePriceFilter#operator
|
|
6328
|
+
module Operator
|
|
6329
|
+
extend Orb::Internal::Type::Enum
|
|
6330
|
+
|
|
6331
|
+
INCLUDES = :includes
|
|
6332
|
+
EXCLUDES = :excludes
|
|
6333
|
+
|
|
6334
|
+
# @!method self.values
|
|
6335
|
+
# @return [Array<Symbol>]
|
|
6336
|
+
end
|
|
6337
|
+
end
|
|
6338
|
+
|
|
6339
|
+
# @see Orb::Models::Price::TieredMatrixWithAllocation#price_type
|
|
6340
|
+
module PriceType
|
|
6341
|
+
extend Orb::Internal::Type::Enum
|
|
6342
|
+
|
|
6343
|
+
USAGE_PRICE = :usage_price
|
|
6344
|
+
FIXED_PRICE = :fixed_price
|
|
6345
|
+
COMPOSITE_PRICE = :composite_price
|
|
6346
|
+
|
|
6347
|
+
# @!method self.values
|
|
6348
|
+
# @return [Array<Symbol>]
|
|
6349
|
+
end
|
|
6350
|
+
|
|
6351
|
+
# @see Orb::Models::Price::TieredMatrixWithAllocation#tiered_matrix_with_allocation_config
|
|
6352
|
+
class TieredMatrixWithAllocationConfig < Orb::Internal::Type::BaseModel
|
|
6353
|
+
# @!attribute allocation
|
|
6354
|
+
# Usage allocation, pooled across all matrix cells
|
|
6355
|
+
#
|
|
6356
|
+
# @return [String]
|
|
6357
|
+
required :allocation, String
|
|
6358
|
+
|
|
6359
|
+
# @!attribute default_unit_amount
|
|
6360
|
+
# Per unit rate for usage whose matrix cell has no configured tiers
|
|
6361
|
+
#
|
|
6362
|
+
# @return [String]
|
|
6363
|
+
required :default_unit_amount, String
|
|
6364
|
+
|
|
6365
|
+
# @!attribute dimensions
|
|
6366
|
+
# One or two event property values to evaluate matrix cells by
|
|
6367
|
+
#
|
|
6368
|
+
# @return [Array<String>]
|
|
6369
|
+
required :dimensions, Orb::Internal::Type::ArrayOf[String]
|
|
6370
|
+
|
|
6371
|
+
# @!attribute tiers
|
|
6372
|
+
# Graduated tiers keyed by matrix cell; usage in a cell is tiered only against its
|
|
6373
|
+
# own rows
|
|
6374
|
+
#
|
|
6375
|
+
# @return [Array<Orb::Models::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier>]
|
|
6376
|
+
required :tiers,
|
|
6377
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier] }
|
|
6378
|
+
|
|
6379
|
+
# @!method initialize(allocation:, default_unit_amount:, dimensions:, tiers:)
|
|
6380
|
+
# Some parameter documentations has been truncated, see
|
|
6381
|
+
# {Orb::Models::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig}
|
|
6382
|
+
# for more details.
|
|
6383
|
+
#
|
|
6384
|
+
# Configuration for tiered_matrix_with_allocation pricing
|
|
6385
|
+
#
|
|
6386
|
+
# @param allocation [String] Usage allocation, pooled across all matrix cells
|
|
6387
|
+
#
|
|
6388
|
+
# @param default_unit_amount [String] Per unit rate for usage whose matrix cell has no configured tiers
|
|
6389
|
+
#
|
|
6390
|
+
# @param dimensions [Array<String>] One or two event property values to evaluate matrix cells by
|
|
6391
|
+
#
|
|
6392
|
+
# @param tiers [Array<Orb::Models::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier>] Graduated tiers keyed by matrix cell; usage in a cell is tiered only against its
|
|
6393
|
+
|
|
6394
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
6395
|
+
# @!attribute dimension_values
|
|
6396
|
+
# The matrix cell this tier applies to, as one or two dimension values
|
|
6397
|
+
#
|
|
6398
|
+
# @return [Array<String>]
|
|
6399
|
+
required :dimension_values, Orb::Internal::Type::ArrayOf[String]
|
|
6400
|
+
|
|
6401
|
+
# @!attribute tier_lower_bound
|
|
6402
|
+
# Exclusive tier starting value. The tier runs up to and including the next bound
|
|
6403
|
+
# configured for the same matrix cell.
|
|
6404
|
+
#
|
|
6405
|
+
# @return [String]
|
|
6406
|
+
required :tier_lower_bound, String
|
|
6407
|
+
|
|
6408
|
+
# @!attribute unit_amount
|
|
6409
|
+
# Per unit amount
|
|
6410
|
+
#
|
|
6411
|
+
# @return [String]
|
|
6412
|
+
required :unit_amount, String
|
|
6413
|
+
|
|
6414
|
+
# @!method initialize(dimension_values:, tier_lower_bound:, unit_amount:)
|
|
6415
|
+
# Some parameter documentations has been truncated, see
|
|
6416
|
+
# {Orb::Models::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier}
|
|
6417
|
+
# for more details.
|
|
6418
|
+
#
|
|
6419
|
+
# Configuration for a single tier scoped to one matrix cell
|
|
6420
|
+
#
|
|
6421
|
+
# @param dimension_values [Array<String>] The matrix cell this tier applies to, as one or two dimension values
|
|
6422
|
+
#
|
|
6423
|
+
# @param tier_lower_bound [String] Exclusive tier starting value. The tier runs up to and including the next bound
|
|
6424
|
+
#
|
|
6425
|
+
# @param unit_amount [String] Per unit amount
|
|
6426
|
+
end
|
|
6427
|
+
end
|
|
6428
|
+
|
|
6429
|
+
# @see Orb::Models::Price::TieredMatrixWithAllocation#license_type
|
|
6430
|
+
class LicenseType < Orb::Internal::Type::BaseModel
|
|
6431
|
+
# @!attribute id
|
|
6432
|
+
# The Orb-assigned unique identifier for the license type.
|
|
6433
|
+
#
|
|
6434
|
+
# @return [String]
|
|
6435
|
+
required :id, String
|
|
6436
|
+
|
|
6437
|
+
# @!attribute grouping_key
|
|
6438
|
+
# The key used for grouping licenses of this type. This is typically a user
|
|
6439
|
+
# identifier field.
|
|
6440
|
+
#
|
|
6441
|
+
# @return [String]
|
|
6442
|
+
required :grouping_key, String
|
|
6443
|
+
|
|
6444
|
+
# @!attribute name
|
|
6445
|
+
# The name of the license type.
|
|
6446
|
+
#
|
|
6447
|
+
# @return [String]
|
|
6448
|
+
required :name, String
|
|
6449
|
+
|
|
6450
|
+
# @!method initialize(id:, grouping_key:, name:)
|
|
6451
|
+
# Some parameter documentations has been truncated, see
|
|
6452
|
+
# {Orb::Models::Price::TieredMatrixWithAllocation::LicenseType} for more details.
|
|
6453
|
+
#
|
|
6454
|
+
# The LicenseType resource represents a type of license that can be assigned to
|
|
6455
|
+
# users. License types are used during billing by grouping metrics on the
|
|
6456
|
+
# configured grouping key.
|
|
6457
|
+
#
|
|
6458
|
+
# @param id [String] The Orb-assigned unique identifier for the license type.
|
|
6459
|
+
#
|
|
6460
|
+
# @param grouping_key [String] The key used for grouping licenses of this type. This is typically a user identi
|
|
6461
|
+
#
|
|
6462
|
+
# @param name [String] The name of the license type.
|
|
6463
|
+
end
|
|
6464
|
+
end
|
|
6465
|
+
|
|
6017
6466
|
class MatrixWithThresholdDiscounts < Orb::Internal::Type::BaseModel
|
|
6018
6467
|
# @!attribute id
|
|
6019
6468
|
#
|
|
@@ -14425,7 +14874,7 @@ module Orb
|
|
|
14425
14874
|
end
|
|
14426
14875
|
|
|
14427
14876
|
# @!method self.variants
|
|
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)]
|
|
14877
|
+
# @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::TieredMatrixWithAllocation, 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)]
|
|
14429
14878
|
end
|
|
14430
14879
|
end
|
|
14431
14880
|
end
|