orb-billing 1.54.0 → 1.55.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/models/beta/external_plan_id_create_plan_version_params.rb +496 -6
- data/lib/orb/models/beta_create_plan_version_params.rb +496 -6
- data/lib/orb/models/changed_subscription_resources.rb +2 -2
- data/lib/orb/models/credit_block_accounting_sync_failed_webhook_event.rb +4 -4
- data/lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb +4 -4
- data/lib/orb/models/credit_block_list_invoices_response.rb +4 -4
- data/lib/orb/models/credit_block_retrieve_response.rb +4 -4
- data/lib/orb/models/credit_block_update_response.rb +4 -4
- data/lib/orb/models/customer_credit_ledger_incremented_webhook_event.rb +4 -4
- data/lib/orb/models/dimensional_price_groups/price_create_response.rb +2 -2
- data/lib/orb/models/invoice.rb +2 -2
- data/lib/orb/models/invoice_edited_webhook_event.rb +2 -2
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +2 -2
- data/lib/orb/models/invoice_line_item_create_response.rb +2 -2
- 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 +246 -3
- data/lib/orb/models/plan_version.rb +2 -2
- data/lib/orb/models/price.rb +416 -1
- data/lib/orb/models/price_create_params.rb +231 -3
- data/lib/orb/models/price_edited_webhook_event.rb +2 -2
- data/lib/orb/models/price_evaluate_multiple_params.rb +238 -3
- data/lib/orb/models/price_evaluate_preview_events_params.rb +238 -3
- data/lib/orb/models/price_interval.rb +2 -2
- data/lib/orb/models/subscription_create_params.rb +495 -6
- data/lib/orb/models/subscription_price_intervals_params.rb +238 -3
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +496 -6
- data/lib/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rb +4 -4
- data/lib/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rb +4 -4
- data/lib/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rb +4 -4
- data/lib/orb/models/webhooks/invoice_edited_standard_webhook_event.rb +2 -2
- data/lib/orb/models/webhooks/price_edited_standard_webhook_event.rb +2 -2
- data/lib/orb/resources/credit_blocks.rb +1 -1
- data/lib/orb/resources/dimensional_price_groups/prices.rb +1 -1
- 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 +2939 -2129
- data/rbi/orb/models/beta_create_plan_version_params.rbi +2937 -2127
- data/rbi/orb/models/changed_subscription_resources.rbi +2 -1
- data/rbi/orb/models/credit_block_accounting_sync_failed_webhook_event.rbi +5 -5
- data/rbi/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbi +5 -5
- data/rbi/orb/models/credit_block_list_invoices_response.rbi +5 -5
- data/rbi/orb/models/credit_block_retrieve_response.rbi +5 -5
- data/rbi/orb/models/credit_block_update_response.rbi +5 -5
- data/rbi/orb/models/customer_credit_ledger_incremented_webhook_event.rbi +5 -5
- data/rbi/orb/models/dimensional_price_groups/price_create_response.rbi +2 -1
- data/rbi/orb/models/invoice.rbi +2 -1
- data/rbi/orb/models/invoice_edited_webhook_event.rbi +2 -1
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +2 -1
- data/rbi/orb/models/invoice_line_item_create_response.rbi +2 -1
- data/rbi/orb/models/per_price_cost.rbi +2 -1
- data/rbi/orb/models/plan.rbi +2 -1
- data/rbi/orb/models/plan_create_params.rbi +409 -4
- data/rbi/orb/models/plan_version.rbi +2 -1
- data/rbi/orb/models/price.rbi +716 -1
- data/rbi/orb/models/price_create_params.rbi +397 -4
- data/rbi/orb/models/price_edited_webhook_event.rbi +2 -1
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +397 -4
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +397 -4
- data/rbi/orb/models/price_interval.rbi +2 -1
- data/rbi/orb/models/subscription_create_params.rbi +2676 -1866
- data/rbi/orb/models/subscription_price_intervals_params.rbi +397 -4
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +2686 -1876
- data/rbi/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbi +5 -5
- data/rbi/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbi +5 -5
- data/rbi/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbi +5 -5
- data/rbi/orb/models/webhooks/invoice_edited_standard_webhook_event.rbi +2 -1
- data/rbi/orb/models/webhooks/price_edited_standard_webhook_event.rbi +2 -1
- data/rbi/orb/resources/credit_blocks.rbi +1 -1
- data/rbi/orb/resources/prices.rbi +2 -1
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +322 -0
- data/sig/orb/models/beta_create_plan_version_params.rbs +322 -0
- data/sig/orb/models/credit_block_accounting_sync_failed_webhook_event.rbs +2 -2
- data/sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs +2 -2
- data/sig/orb/models/credit_block_list_invoices_response.rbs +2 -2
- data/sig/orb/models/credit_block_retrieve_response.rbs +2 -2
- data/sig/orb/models/credit_block_update_response.rbs +2 -2
- data/sig/orb/models/customer_credit_ledger_incremented_webhook_event.rbs +2 -2
- data/sig/orb/models/plan_create_params.rbs +161 -0
- data/sig/orb/models/price.rbs +305 -0
- data/sig/orb/models/price_create_params.rbs +151 -0
- data/sig/orb/models/price_evaluate_multiple_params.rbs +156 -0
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +156 -0
- data/sig/orb/models/subscription_create_params.rbs +322 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +156 -0
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +322 -0
- data/sig/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbs +2 -2
- data/sig/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbs +2 -2
- data/sig/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbs +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ef71ac9d9c81b9dea0fab1815ad86078a1748dbf786c337f6d4674343a42d03
|
|
4
|
+
data.tar.gz: f19d04fcd3bef9138b70c93af37b7ed69ab58a446a59262571bb97dd943e3c74
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc018e955adc3e59db185c65ba0ae34479ef8bc3f7cdcfc8c431772776a02b93fda78c22b61514e0b2f715da8d43caf3ce3d52d9e5584e718f650e780d0af7d3
|
|
7
|
+
data.tar.gz: b1655fcd76a789906e3fbccda8509f9c733b805a7e2e9efc4bf3aab2fcc8f205514e58bec67da7fad9e179b876c2eec96cd6a427d5024224e6c950b461864b97
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.55.0](https://github.com/orbcorp/orb-ruby/compare/v1.54.0...v1.55.0) (2026-11-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** api update ([20bbdeb](https://github.com/orbcorp/orb-ruby/commit/20bbdeb7d23a6e41d948f4b6b1f35b9b97f61395))
|
|
9
|
+
* **api:** credit block status `void` renamed to `deleted` for deleted blocks ([20bbdeb](https://github.com/orbcorp/orb-ruby/commit/20bbdeb7d23a6e41d948f4b6b1f35b9b97f61395))
|
|
10
|
+
|
|
3
11
|
## [1.54.0](https://github.com/orbcorp/orb-ruby/compare/v1.53.0...v1.54.0) (2026-11-06)
|
|
4
12
|
|
|
5
13
|
|
data/README.md
CHANGED
|
@@ -385,7 +385,7 @@ module Orb
|
|
|
385
385
|
# @!attribute price
|
|
386
386
|
# New plan price request body params.
|
|
387
387
|
#
|
|
388
|
-
# @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput, nil]
|
|
388
|
+
# @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier, nil]
|
|
389
389
|
optional :price,
|
|
390
390
|
union: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price },
|
|
391
391
|
nil?: true
|
|
@@ -397,7 +397,7 @@ module Orb
|
|
|
397
397
|
#
|
|
398
398
|
# @param plan_phase_order [Integer, nil] The phase to add this price to.
|
|
399
399
|
#
|
|
400
|
-
# @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput, nil] New plan price request body params.
|
|
400
|
+
# @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier, nil] New plan price request body params.
|
|
401
401
|
|
|
402
402
|
# @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice#license_allocation_price
|
|
403
403
|
class LicenseAllocationPrice < Orb::Internal::Type::BaseModel
|
|
@@ -738,6 +738,9 @@ module Orb
|
|
|
738
738
|
variant :event_output,
|
|
739
739
|
-> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput }
|
|
740
740
|
|
|
741
|
+
variant :unit_with_multiplier,
|
|
742
|
+
-> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier }
|
|
743
|
+
|
|
741
744
|
class BulkWithFilters < Orb::Internal::Type::BaseModel
|
|
742
745
|
# @!attribute bulk_with_filters_config
|
|
743
746
|
# Configuration for bulk_with_filters pricing
|
|
@@ -3582,8 +3585,250 @@ module Orb
|
|
|
3582
3585
|
end
|
|
3583
3586
|
end
|
|
3584
3587
|
|
|
3588
|
+
class UnitWithMultiplier < Orb::Internal::Type::BaseModel
|
|
3589
|
+
# @!attribute cadence
|
|
3590
|
+
# The cadence to bill for this price on.
|
|
3591
|
+
#
|
|
3592
|
+
# @return [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::Cadence]
|
|
3593
|
+
required :cadence,
|
|
3594
|
+
enum: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::Cadence }
|
|
3595
|
+
|
|
3596
|
+
# @!attribute item_id
|
|
3597
|
+
# The id of the item the price will be associated with.
|
|
3598
|
+
#
|
|
3599
|
+
# @return [String]
|
|
3600
|
+
required :item_id, String
|
|
3601
|
+
|
|
3602
|
+
# @!attribute model_type
|
|
3603
|
+
# The pricing model type
|
|
3604
|
+
#
|
|
3605
|
+
# @return [Symbol, :unit_with_multiplier]
|
|
3606
|
+
required :model_type, const: :unit_with_multiplier
|
|
3607
|
+
|
|
3608
|
+
# @!attribute name
|
|
3609
|
+
# The name of the price.
|
|
3610
|
+
#
|
|
3611
|
+
# @return [String]
|
|
3612
|
+
required :name, String
|
|
3613
|
+
|
|
3614
|
+
# @!attribute unit_with_multiplier_config
|
|
3615
|
+
# Configuration for unit_with_multiplier pricing
|
|
3616
|
+
#
|
|
3617
|
+
# @return [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig]
|
|
3618
|
+
required :unit_with_multiplier_config,
|
|
3619
|
+
-> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig }
|
|
3620
|
+
|
|
3621
|
+
# @!attribute billable_metric_id
|
|
3622
|
+
# The id of the billable metric for the price. Only needed if the price is
|
|
3623
|
+
# usage-based.
|
|
3624
|
+
#
|
|
3625
|
+
# @return [String, nil]
|
|
3626
|
+
optional :billable_metric_id, String, nil?: true
|
|
3627
|
+
|
|
3628
|
+
# @!attribute billed_in_advance
|
|
3629
|
+
# If the Price represents a fixed cost, the price will be billed in-advance if
|
|
3630
|
+
# this is true, and in-arrears if this is false.
|
|
3631
|
+
#
|
|
3632
|
+
# @return [Boolean, nil]
|
|
3633
|
+
optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true
|
|
3634
|
+
|
|
3635
|
+
# @!attribute billing_cycle_configuration
|
|
3636
|
+
# For custom cadence: specifies the duration of the billing period in days or
|
|
3637
|
+
# months.
|
|
3638
|
+
#
|
|
3639
|
+
# @return [Orb::Models::NewBillingCycleConfiguration, nil]
|
|
3640
|
+
optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true
|
|
3641
|
+
|
|
3642
|
+
# @!attribute conversion_rate
|
|
3643
|
+
# The per unit conversion rate of the price currency to the invoicing currency.
|
|
3644
|
+
#
|
|
3645
|
+
# @return [Float, nil]
|
|
3646
|
+
optional :conversion_rate, Float, nil?: true
|
|
3647
|
+
|
|
3648
|
+
# @!attribute conversion_rate_config
|
|
3649
|
+
# The configuration for the rate of the price currency to the invoicing currency.
|
|
3650
|
+
#
|
|
3651
|
+
# @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil]
|
|
3652
|
+
optional :conversion_rate_config, union: -> { Orb::ConversionRateConfig }, nil?: true
|
|
3653
|
+
|
|
3654
|
+
# @!attribute currency
|
|
3655
|
+
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
3656
|
+
# price is billed.
|
|
3657
|
+
#
|
|
3658
|
+
# @return [String, nil]
|
|
3659
|
+
optional :currency, String, nil?: true
|
|
3660
|
+
|
|
3661
|
+
# @!attribute dimensional_price_configuration
|
|
3662
|
+
# For dimensional price: specifies a price group and dimension values
|
|
3663
|
+
#
|
|
3664
|
+
# @return [Orb::Models::NewDimensionalPriceConfiguration, nil]
|
|
3665
|
+
optional :dimensional_price_configuration,
|
|
3666
|
+
-> {
|
|
3667
|
+
Orb::NewDimensionalPriceConfiguration
|
|
3668
|
+
},
|
|
3669
|
+
nil?: true
|
|
3670
|
+
|
|
3671
|
+
# @!attribute external_price_id
|
|
3672
|
+
# An alias for the price.
|
|
3673
|
+
#
|
|
3674
|
+
# @return [String, nil]
|
|
3675
|
+
optional :external_price_id, String, nil?: true
|
|
3676
|
+
|
|
3677
|
+
# @!attribute fixed_price_quantity
|
|
3678
|
+
# If the Price represents a fixed cost, this represents the quantity of units
|
|
3679
|
+
# applied.
|
|
3680
|
+
#
|
|
3681
|
+
# @return [Float, nil]
|
|
3682
|
+
optional :fixed_price_quantity, Float, nil?: true
|
|
3683
|
+
|
|
3684
|
+
# @!attribute invoice_grouping_key
|
|
3685
|
+
# The property used to group this price on an invoice
|
|
3686
|
+
#
|
|
3687
|
+
# @return [String, nil]
|
|
3688
|
+
optional :invoice_grouping_key, String, nil?: true
|
|
3689
|
+
|
|
3690
|
+
# @!attribute invoicing_cycle_configuration
|
|
3691
|
+
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3692
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
|
3693
|
+
#
|
|
3694
|
+
# @return [Orb::Models::NewBillingCycleConfiguration, nil]
|
|
3695
|
+
optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true
|
|
3696
|
+
|
|
3697
|
+
# @!attribute license_type_id
|
|
3698
|
+
# The ID of the license type to associate with this price. On a usage price this
|
|
3699
|
+
# also marks the price as eligible to draw down from that license type's
|
|
3700
|
+
# allocation; a usage price created without it is billed normally. Usage prices
|
|
3701
|
+
# with a license type must use the `unit` model, and only draw down when their
|
|
3702
|
+
# currency matches the allocation's.
|
|
3703
|
+
#
|
|
3704
|
+
# @return [String, nil]
|
|
3705
|
+
optional :license_type_id, String, nil?: true
|
|
3706
|
+
|
|
3707
|
+
# @!attribute metadata
|
|
3708
|
+
# User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3709
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3710
|
+
# by setting `metadata` to `null`.
|
|
3711
|
+
#
|
|
3712
|
+
# @return [Hash{Symbol=>String, nil}, nil]
|
|
3713
|
+
optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true
|
|
3714
|
+
|
|
3715
|
+
# @!attribute reference_id
|
|
3716
|
+
# A transient ID that can be used to reference this price when adding adjustments
|
|
3717
|
+
# in the same API call.
|
|
3718
|
+
#
|
|
3719
|
+
# @return [String, nil]
|
|
3720
|
+
optional :reference_id, String, nil?: true
|
|
3721
|
+
|
|
3722
|
+
# @!method initialize(cadence:, item_id:, name:, unit_with_multiplier_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :unit_with_multiplier)
|
|
3723
|
+
# Some parameter documentations has been truncated, see
|
|
3724
|
+
# {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier}
|
|
3725
|
+
# for more details.
|
|
3726
|
+
#
|
|
3727
|
+
# @param cadence [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::Cadence] The cadence to bill for this price on.
|
|
3728
|
+
#
|
|
3729
|
+
# @param item_id [String] The id of the item the price will be associated with.
|
|
3730
|
+
#
|
|
3731
|
+
# @param name [String] The name of the price.
|
|
3732
|
+
#
|
|
3733
|
+
# @param unit_with_multiplier_config [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig] Configuration for unit_with_multiplier pricing
|
|
3734
|
+
#
|
|
3735
|
+
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
3736
|
+
#
|
|
3737
|
+
# @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi
|
|
3738
|
+
#
|
|
3739
|
+
# @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont
|
|
3740
|
+
#
|
|
3741
|
+
# @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency.
|
|
3742
|
+
#
|
|
3743
|
+
# @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency.
|
|
3744
|
+
#
|
|
3745
|
+
# @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr
|
|
3746
|
+
#
|
|
3747
|
+
# @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values
|
|
3748
|
+
#
|
|
3749
|
+
# @param external_price_id [String, nil] An alias for the price.
|
|
3750
|
+
#
|
|
3751
|
+
# @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl
|
|
3752
|
+
#
|
|
3753
|
+
# @param invoice_grouping_key [String, nil] The property used to group this price on an invoice
|
|
3754
|
+
#
|
|
3755
|
+
# @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3756
|
+
#
|
|
3757
|
+
# @param license_type_id [String, nil] The ID of the license type to associate with this price. On a usage price this a
|
|
3758
|
+
#
|
|
3759
|
+
# @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3760
|
+
#
|
|
3761
|
+
# @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments
|
|
3762
|
+
#
|
|
3763
|
+
# @param model_type [Symbol, :unit_with_multiplier] The pricing model type
|
|
3764
|
+
|
|
3765
|
+
# The cadence to bill for this price on.
|
|
3766
|
+
#
|
|
3767
|
+
# @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier#cadence
|
|
3768
|
+
module Cadence
|
|
3769
|
+
extend Orb::Internal::Type::Enum
|
|
3770
|
+
|
|
3771
|
+
ONE_TIME = :one_time
|
|
3772
|
+
MONTHLY = :monthly
|
|
3773
|
+
QUARTERLY = :quarterly
|
|
3774
|
+
SEMI_ANNUAL = :semi_annual
|
|
3775
|
+
ANNUAL = :annual
|
|
3776
|
+
CUSTOM = :custom
|
|
3777
|
+
|
|
3778
|
+
# @!method self.values
|
|
3779
|
+
# @return [Array<Symbol>]
|
|
3780
|
+
end
|
|
3781
|
+
|
|
3782
|
+
# @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier#unit_with_multiplier_config
|
|
3783
|
+
class UnitWithMultiplierConfig < Orb::Internal::Type::BaseModel
|
|
3784
|
+
# @!attribute default_display_name
|
|
3785
|
+
# Sub-line label for list-price events that don't set display_name_key. Unlabeled
|
|
3786
|
+
# events with another multiplier are labeled by their multiplier (e.g. '0.8×
|
|
3787
|
+
# rate').
|
|
3788
|
+
#
|
|
3789
|
+
# @return [String]
|
|
3790
|
+
required :default_display_name, String
|
|
3791
|
+
|
|
3792
|
+
# @!attribute display_name_key
|
|
3793
|
+
# Event property holding the sub-line label for the event's rate (e.g.
|
|
3794
|
+
# 'Off-peak').
|
|
3795
|
+
#
|
|
3796
|
+
# @return [String]
|
|
3797
|
+
required :display_name_key, String
|
|
3798
|
+
|
|
3799
|
+
# @!attribute multiplier_key
|
|
3800
|
+
# Event property holding the multiplier applied to unit_amount (e.g. 0.8 for a 20%
|
|
3801
|
+
# discount). Events without a number between 0 and 1000 with at most 12 decimal
|
|
3802
|
+
# places are charged at unit_amount.
|
|
3803
|
+
#
|
|
3804
|
+
# @return [String]
|
|
3805
|
+
required :multiplier_key, String
|
|
3806
|
+
|
|
3807
|
+
# @!attribute unit_amount
|
|
3808
|
+
# List price per unit, before the event's multiplier is applied.
|
|
3809
|
+
#
|
|
3810
|
+
# @return [String]
|
|
3811
|
+
required :unit_amount, String
|
|
3812
|
+
|
|
3813
|
+
# @!method initialize(default_display_name:, display_name_key:, multiplier_key:, unit_amount:)
|
|
3814
|
+
# Some parameter documentations has been truncated, see
|
|
3815
|
+
# {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig}
|
|
3816
|
+
# for more details.
|
|
3817
|
+
#
|
|
3818
|
+
# Configuration for unit_with_multiplier pricing
|
|
3819
|
+
#
|
|
3820
|
+
# @param default_display_name [String] Sub-line label for list-price events that don't set display_name_key. Unlabeled
|
|
3821
|
+
#
|
|
3822
|
+
# @param display_name_key [String] Event property holding the sub-line label for the event's rate (e.g. 'Off-peak')
|
|
3823
|
+
#
|
|
3824
|
+
# @param multiplier_key [String] Event property holding the multiplier applied to unit_amount (e.g. 0.8 for a 20%
|
|
3825
|
+
#
|
|
3826
|
+
# @param unit_amount [String] List price per unit, before the event's multiplier is applied.
|
|
3827
|
+
end
|
|
3828
|
+
end
|
|
3829
|
+
|
|
3585
3830
|
# @!method self.variants
|
|
3586
|
-
# @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput)]
|
|
3831
|
+
# @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier)]
|
|
3587
3832
|
end
|
|
3588
3833
|
end
|
|
3589
3834
|
|
|
@@ -3920,7 +4165,7 @@ module Orb
|
|
|
3920
4165
|
# @!attribute price
|
|
3921
4166
|
# New plan price request body params.
|
|
3922
4167
|
#
|
|
3923
|
-
# @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput, nil]
|
|
4168
|
+
# @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier, nil]
|
|
3924
4169
|
optional :price,
|
|
3925
4170
|
union: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price },
|
|
3926
4171
|
nil?: true
|
|
@@ -3934,7 +4179,7 @@ module Orb
|
|
|
3934
4179
|
#
|
|
3935
4180
|
# @param plan_phase_order [Integer, nil] The phase to replace this price from.
|
|
3936
4181
|
#
|
|
3937
|
-
# @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput, nil] New plan price request body params.
|
|
4182
|
+
# @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier, nil] New plan price request body params.
|
|
3938
4183
|
|
|
3939
4184
|
# @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice#license_allocation_price
|
|
3940
4185
|
class LicenseAllocationPrice < Orb::Internal::Type::BaseModel
|
|
@@ -4275,6 +4520,9 @@ module Orb
|
|
|
4275
4520
|
variant :event_output,
|
|
4276
4521
|
-> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput }
|
|
4277
4522
|
|
|
4523
|
+
variant :unit_with_multiplier,
|
|
4524
|
+
-> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier }
|
|
4525
|
+
|
|
4278
4526
|
class BulkWithFilters < Orb::Internal::Type::BaseModel
|
|
4279
4527
|
# @!attribute bulk_with_filters_config
|
|
4280
4528
|
# Configuration for bulk_with_filters pricing
|
|
@@ -7119,8 +7367,250 @@ module Orb
|
|
|
7119
7367
|
end
|
|
7120
7368
|
end
|
|
7121
7369
|
|
|
7370
|
+
class UnitWithMultiplier < Orb::Internal::Type::BaseModel
|
|
7371
|
+
# @!attribute cadence
|
|
7372
|
+
# The cadence to bill for this price on.
|
|
7373
|
+
#
|
|
7374
|
+
# @return [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::Cadence]
|
|
7375
|
+
required :cadence,
|
|
7376
|
+
enum: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::Cadence }
|
|
7377
|
+
|
|
7378
|
+
# @!attribute item_id
|
|
7379
|
+
# The id of the item the price will be associated with.
|
|
7380
|
+
#
|
|
7381
|
+
# @return [String]
|
|
7382
|
+
required :item_id, String
|
|
7383
|
+
|
|
7384
|
+
# @!attribute model_type
|
|
7385
|
+
# The pricing model type
|
|
7386
|
+
#
|
|
7387
|
+
# @return [Symbol, :unit_with_multiplier]
|
|
7388
|
+
required :model_type, const: :unit_with_multiplier
|
|
7389
|
+
|
|
7390
|
+
# @!attribute name
|
|
7391
|
+
# The name of the price.
|
|
7392
|
+
#
|
|
7393
|
+
# @return [String]
|
|
7394
|
+
required :name, String
|
|
7395
|
+
|
|
7396
|
+
# @!attribute unit_with_multiplier_config
|
|
7397
|
+
# Configuration for unit_with_multiplier pricing
|
|
7398
|
+
#
|
|
7399
|
+
# @return [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig]
|
|
7400
|
+
required :unit_with_multiplier_config,
|
|
7401
|
+
-> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig }
|
|
7402
|
+
|
|
7403
|
+
# @!attribute billable_metric_id
|
|
7404
|
+
# The id of the billable metric for the price. Only needed if the price is
|
|
7405
|
+
# usage-based.
|
|
7406
|
+
#
|
|
7407
|
+
# @return [String, nil]
|
|
7408
|
+
optional :billable_metric_id, String, nil?: true
|
|
7409
|
+
|
|
7410
|
+
# @!attribute billed_in_advance
|
|
7411
|
+
# If the Price represents a fixed cost, the price will be billed in-advance if
|
|
7412
|
+
# this is true, and in-arrears if this is false.
|
|
7413
|
+
#
|
|
7414
|
+
# @return [Boolean, nil]
|
|
7415
|
+
optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true
|
|
7416
|
+
|
|
7417
|
+
# @!attribute billing_cycle_configuration
|
|
7418
|
+
# For custom cadence: specifies the duration of the billing period in days or
|
|
7419
|
+
# months.
|
|
7420
|
+
#
|
|
7421
|
+
# @return [Orb::Models::NewBillingCycleConfiguration, nil]
|
|
7422
|
+
optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true
|
|
7423
|
+
|
|
7424
|
+
# @!attribute conversion_rate
|
|
7425
|
+
# The per unit conversion rate of the price currency to the invoicing currency.
|
|
7426
|
+
#
|
|
7427
|
+
# @return [Float, nil]
|
|
7428
|
+
optional :conversion_rate, Float, nil?: true
|
|
7429
|
+
|
|
7430
|
+
# @!attribute conversion_rate_config
|
|
7431
|
+
# The configuration for the rate of the price currency to the invoicing currency.
|
|
7432
|
+
#
|
|
7433
|
+
# @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil]
|
|
7434
|
+
optional :conversion_rate_config, union: -> { Orb::ConversionRateConfig }, nil?: true
|
|
7435
|
+
|
|
7436
|
+
# @!attribute currency
|
|
7437
|
+
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
7438
|
+
# price is billed.
|
|
7439
|
+
#
|
|
7440
|
+
# @return [String, nil]
|
|
7441
|
+
optional :currency, String, nil?: true
|
|
7442
|
+
|
|
7443
|
+
# @!attribute dimensional_price_configuration
|
|
7444
|
+
# For dimensional price: specifies a price group and dimension values
|
|
7445
|
+
#
|
|
7446
|
+
# @return [Orb::Models::NewDimensionalPriceConfiguration, nil]
|
|
7447
|
+
optional :dimensional_price_configuration,
|
|
7448
|
+
-> {
|
|
7449
|
+
Orb::NewDimensionalPriceConfiguration
|
|
7450
|
+
},
|
|
7451
|
+
nil?: true
|
|
7452
|
+
|
|
7453
|
+
# @!attribute external_price_id
|
|
7454
|
+
# An alias for the price.
|
|
7455
|
+
#
|
|
7456
|
+
# @return [String, nil]
|
|
7457
|
+
optional :external_price_id, String, nil?: true
|
|
7458
|
+
|
|
7459
|
+
# @!attribute fixed_price_quantity
|
|
7460
|
+
# If the Price represents a fixed cost, this represents the quantity of units
|
|
7461
|
+
# applied.
|
|
7462
|
+
#
|
|
7463
|
+
# @return [Float, nil]
|
|
7464
|
+
optional :fixed_price_quantity, Float, nil?: true
|
|
7465
|
+
|
|
7466
|
+
# @!attribute invoice_grouping_key
|
|
7467
|
+
# The property used to group this price on an invoice
|
|
7468
|
+
#
|
|
7469
|
+
# @return [String, nil]
|
|
7470
|
+
optional :invoice_grouping_key, String, nil?: true
|
|
7471
|
+
|
|
7472
|
+
# @!attribute invoicing_cycle_configuration
|
|
7473
|
+
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
7474
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
|
7475
|
+
#
|
|
7476
|
+
# @return [Orb::Models::NewBillingCycleConfiguration, nil]
|
|
7477
|
+
optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true
|
|
7478
|
+
|
|
7479
|
+
# @!attribute license_type_id
|
|
7480
|
+
# The ID of the license type to associate with this price. On a usage price this
|
|
7481
|
+
# also marks the price as eligible to draw down from that license type's
|
|
7482
|
+
# allocation; a usage price created without it is billed normally. Usage prices
|
|
7483
|
+
# with a license type must use the `unit` model, and only draw down when their
|
|
7484
|
+
# currency matches the allocation's.
|
|
7485
|
+
#
|
|
7486
|
+
# @return [String, nil]
|
|
7487
|
+
optional :license_type_id, String, nil?: true
|
|
7488
|
+
|
|
7489
|
+
# @!attribute metadata
|
|
7490
|
+
# User-specified key/value pairs for the resource. Individual keys can be removed
|
|
7491
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
7492
|
+
# by setting `metadata` to `null`.
|
|
7493
|
+
#
|
|
7494
|
+
# @return [Hash{Symbol=>String, nil}, nil]
|
|
7495
|
+
optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true
|
|
7496
|
+
|
|
7497
|
+
# @!attribute reference_id
|
|
7498
|
+
# A transient ID that can be used to reference this price when adding adjustments
|
|
7499
|
+
# in the same API call.
|
|
7500
|
+
#
|
|
7501
|
+
# @return [String, nil]
|
|
7502
|
+
optional :reference_id, String, nil?: true
|
|
7503
|
+
|
|
7504
|
+
# @!method initialize(cadence:, item_id:, name:, unit_with_multiplier_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :unit_with_multiplier)
|
|
7505
|
+
# Some parameter documentations has been truncated, see
|
|
7506
|
+
# {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier}
|
|
7507
|
+
# for more details.
|
|
7508
|
+
#
|
|
7509
|
+
# @param cadence [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::Cadence] The cadence to bill for this price on.
|
|
7510
|
+
#
|
|
7511
|
+
# @param item_id [String] The id of the item the price will be associated with.
|
|
7512
|
+
#
|
|
7513
|
+
# @param name [String] The name of the price.
|
|
7514
|
+
#
|
|
7515
|
+
# @param unit_with_multiplier_config [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig] Configuration for unit_with_multiplier pricing
|
|
7516
|
+
#
|
|
7517
|
+
# @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
|
|
7518
|
+
#
|
|
7519
|
+
# @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi
|
|
7520
|
+
#
|
|
7521
|
+
# @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont
|
|
7522
|
+
#
|
|
7523
|
+
# @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency.
|
|
7524
|
+
#
|
|
7525
|
+
# @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency.
|
|
7526
|
+
#
|
|
7527
|
+
# @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr
|
|
7528
|
+
#
|
|
7529
|
+
# @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values
|
|
7530
|
+
#
|
|
7531
|
+
# @param external_price_id [String, nil] An alias for the price.
|
|
7532
|
+
#
|
|
7533
|
+
# @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl
|
|
7534
|
+
#
|
|
7535
|
+
# @param invoice_grouping_key [String, nil] The property used to group this price on an invoice
|
|
7536
|
+
#
|
|
7537
|
+
# @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
7538
|
+
#
|
|
7539
|
+
# @param license_type_id [String, nil] The ID of the license type to associate with this price. On a usage price this a
|
|
7540
|
+
#
|
|
7541
|
+
# @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed
|
|
7542
|
+
#
|
|
7543
|
+
# @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments
|
|
7544
|
+
#
|
|
7545
|
+
# @param model_type [Symbol, :unit_with_multiplier] The pricing model type
|
|
7546
|
+
|
|
7547
|
+
# The cadence to bill for this price on.
|
|
7548
|
+
#
|
|
7549
|
+
# @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier#cadence
|
|
7550
|
+
module Cadence
|
|
7551
|
+
extend Orb::Internal::Type::Enum
|
|
7552
|
+
|
|
7553
|
+
ONE_TIME = :one_time
|
|
7554
|
+
MONTHLY = :monthly
|
|
7555
|
+
QUARTERLY = :quarterly
|
|
7556
|
+
SEMI_ANNUAL = :semi_annual
|
|
7557
|
+
ANNUAL = :annual
|
|
7558
|
+
CUSTOM = :custom
|
|
7559
|
+
|
|
7560
|
+
# @!method self.values
|
|
7561
|
+
# @return [Array<Symbol>]
|
|
7562
|
+
end
|
|
7563
|
+
|
|
7564
|
+
# @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier#unit_with_multiplier_config
|
|
7565
|
+
class UnitWithMultiplierConfig < Orb::Internal::Type::BaseModel
|
|
7566
|
+
# @!attribute default_display_name
|
|
7567
|
+
# Sub-line label for list-price events that don't set display_name_key. Unlabeled
|
|
7568
|
+
# events with another multiplier are labeled by their multiplier (e.g. '0.8×
|
|
7569
|
+
# rate').
|
|
7570
|
+
#
|
|
7571
|
+
# @return [String]
|
|
7572
|
+
required :default_display_name, String
|
|
7573
|
+
|
|
7574
|
+
# @!attribute display_name_key
|
|
7575
|
+
# Event property holding the sub-line label for the event's rate (e.g.
|
|
7576
|
+
# 'Off-peak').
|
|
7577
|
+
#
|
|
7578
|
+
# @return [String]
|
|
7579
|
+
required :display_name_key, String
|
|
7580
|
+
|
|
7581
|
+
# @!attribute multiplier_key
|
|
7582
|
+
# Event property holding the multiplier applied to unit_amount (e.g. 0.8 for a 20%
|
|
7583
|
+
# discount). Events without a number between 0 and 1000 with at most 12 decimal
|
|
7584
|
+
# places are charged at unit_amount.
|
|
7585
|
+
#
|
|
7586
|
+
# @return [String]
|
|
7587
|
+
required :multiplier_key, String
|
|
7588
|
+
|
|
7589
|
+
# @!attribute unit_amount
|
|
7590
|
+
# List price per unit, before the event's multiplier is applied.
|
|
7591
|
+
#
|
|
7592
|
+
# @return [String]
|
|
7593
|
+
required :unit_amount, String
|
|
7594
|
+
|
|
7595
|
+
# @!method initialize(default_display_name:, display_name_key:, multiplier_key:, unit_amount:)
|
|
7596
|
+
# Some parameter documentations has been truncated, see
|
|
7597
|
+
# {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig}
|
|
7598
|
+
# for more details.
|
|
7599
|
+
#
|
|
7600
|
+
# Configuration for unit_with_multiplier pricing
|
|
7601
|
+
#
|
|
7602
|
+
# @param default_display_name [String] Sub-line label for list-price events that don't set display_name_key. Unlabeled
|
|
7603
|
+
#
|
|
7604
|
+
# @param display_name_key [String] Event property holding the sub-line label for the event's rate (e.g. 'Off-peak')
|
|
7605
|
+
#
|
|
7606
|
+
# @param multiplier_key [String] Event property holding the multiplier applied to unit_amount (e.g. 0.8 for a 20%
|
|
7607
|
+
#
|
|
7608
|
+
# @param unit_amount [String] List price per unit, before the event's multiplier is applied.
|
|
7609
|
+
end
|
|
7610
|
+
end
|
|
7611
|
+
|
|
7122
7612
|
# @!method self.variants
|
|
7123
|
-
# @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput)]
|
|
7613
|
+
# @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier)]
|
|
7124
7614
|
end
|
|
7125
7615
|
end
|
|
7126
7616
|
end
|